github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/c-deps/libroach/protos/util/hlc/timestamp.pb.h (about) 1 // Generated by the protocol buffer compiler. DO NOT EDIT! 2 // source: util/hlc/timestamp.proto 3 4 #ifndef PROTOBUF_INCLUDED_util_2fhlc_2ftimestamp_2eproto 5 #define PROTOBUF_INCLUDED_util_2fhlc_2ftimestamp_2eproto 6 7 #include <string> 8 9 #include <google/protobuf/stubs/common.h> 10 11 #if GOOGLE_PROTOBUF_VERSION < 3006000 12 #error This file was generated by a newer version of protoc which is 13 #error incompatible with your Protocol Buffer headers. Please update 14 #error your headers. 15 #endif 16 #if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION 17 #error This file was generated by an older version of protoc which is 18 #error incompatible with your Protocol Buffer headers. Please 19 #error regenerate this file with a newer version of protoc. 20 #endif 21 22 #include <google/protobuf/io/coded_stream.h> 23 #include <google/protobuf/arena.h> 24 #include <google/protobuf/arenastring.h> 25 #include <google/protobuf/generated_message_table_driven.h> 26 #include <google/protobuf/generated_message_util.h> 27 #include <google/protobuf/inlined_string_field.h> 28 #include <google/protobuf/metadata_lite.h> 29 #include <google/protobuf/message_lite.h> 30 #include <google/protobuf/repeated_field.h> // IWYU pragma: export 31 #include <google/protobuf/extension_set.h> // IWYU pragma: export 32 // @@protoc_insertion_point(includes) 33 #define PROTOBUF_INTERNAL_EXPORT_protobuf_util_2fhlc_2ftimestamp_2eproto 34 35 namespace protobuf_util_2fhlc_2ftimestamp_2eproto { 36 // Internal implementation detail -- do not use these members. 37 struct TableStruct { 38 static const ::google::protobuf::internal::ParseTableField entries[]; 39 static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; 40 static const ::google::protobuf::internal::ParseTable schema[1]; 41 static const ::google::protobuf::internal::FieldMetadata field_metadata[]; 42 static const ::google::protobuf::internal::SerializationTable serialization_table[]; 43 static const ::google::protobuf::uint32 offsets[]; 44 }; 45 } // namespace protobuf_util_2fhlc_2ftimestamp_2eproto 46 namespace cockroach { 47 namespace util { 48 namespace hlc { 49 class Timestamp; 50 class TimestampDefaultTypeInternal; 51 extern TimestampDefaultTypeInternal _Timestamp_default_instance_; 52 } // namespace hlc 53 } // namespace util 54 } // namespace cockroach 55 namespace google { 56 namespace protobuf { 57 template<> ::cockroach::util::hlc::Timestamp* Arena::CreateMaybeMessage<::cockroach::util::hlc::Timestamp>(Arena*); 58 } // namespace protobuf 59 } // namespace google 60 namespace cockroach { 61 namespace util { 62 namespace hlc { 63 64 // =================================================================== 65 66 class Timestamp : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.util.hlc.Timestamp) */ { 67 public: 68 Timestamp(); 69 virtual ~Timestamp(); 70 71 Timestamp(const Timestamp& from); 72 73 inline Timestamp& operator=(const Timestamp& from) { 74 CopyFrom(from); 75 return *this; 76 } 77 #if LANG_CXX11 78 Timestamp(Timestamp&& from) noexcept 79 : Timestamp() { 80 *this = ::std::move(from); 81 } 82 83 inline Timestamp& operator=(Timestamp&& from) noexcept { 84 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 85 if (this != &from) InternalSwap(&from); 86 } else { 87 CopyFrom(from); 88 } 89 return *this; 90 } 91 #endif 92 static const Timestamp& default_instance(); 93 94 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 95 static inline const Timestamp* internal_default_instance() { 96 return reinterpret_cast<const Timestamp*>( 97 &_Timestamp_default_instance_); 98 } 99 static constexpr int kIndexInFileMessages = 100 0; 101 102 void Swap(Timestamp* other); 103 friend void swap(Timestamp& a, Timestamp& b) { 104 a.Swap(&b); 105 } 106 107 // implements Message ---------------------------------------------- 108 109 inline Timestamp* New() const final { 110 return CreateMaybeMessage<Timestamp>(NULL); 111 } 112 113 Timestamp* New(::google::protobuf::Arena* arena) const final { 114 return CreateMaybeMessage<Timestamp>(arena); 115 } 116 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 117 final; 118 void CopyFrom(const Timestamp& from); 119 void MergeFrom(const Timestamp& from); 120 void Clear() final; 121 bool IsInitialized() const final; 122 123 size_t ByteSizeLong() const final; 124 bool MergePartialFromCodedStream( 125 ::google::protobuf::io::CodedInputStream* input) final; 126 void SerializeWithCachedSizes( 127 ::google::protobuf::io::CodedOutputStream* output) const final; 128 void DiscardUnknownFields(); 129 int GetCachedSize() const final { return _cached_size_.Get(); } 130 131 private: 132 void SharedCtor(); 133 void SharedDtor(); 134 void SetCachedSize(int size) const; 135 void InternalSwap(Timestamp* other); 136 private: 137 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 138 return NULL; 139 } 140 inline void* MaybeArenaPtr() const { 141 return NULL; 142 } 143 public: 144 145 ::std::string GetTypeName() const final; 146 147 // nested types ---------------------------------------------------- 148 149 // accessors ------------------------------------------------------- 150 151 // int64 wall_time = 1; 152 void clear_wall_time(); 153 static const int kWallTimeFieldNumber = 1; 154 ::google::protobuf::int64 wall_time() const; 155 void set_wall_time(::google::protobuf::int64 value); 156 157 // int32 logical = 2; 158 void clear_logical(); 159 static const int kLogicalFieldNumber = 2; 160 ::google::protobuf::int32 logical() const; 161 void set_logical(::google::protobuf::int32 value); 162 163 // @@protoc_insertion_point(class_scope:cockroach.util.hlc.Timestamp) 164 private: 165 166 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 167 ::google::protobuf::int64 wall_time_; 168 ::google::protobuf::int32 logical_; 169 mutable ::google::protobuf::internal::CachedSize _cached_size_; 170 friend struct ::protobuf_util_2fhlc_2ftimestamp_2eproto::TableStruct; 171 }; 172 // =================================================================== 173 174 175 // =================================================================== 176 177 #ifdef __GNUC__ 178 #pragma GCC diagnostic push 179 #pragma GCC diagnostic ignored "-Wstrict-aliasing" 180 #endif // __GNUC__ 181 // Timestamp 182 183 // int64 wall_time = 1; 184 inline void Timestamp::clear_wall_time() { 185 wall_time_ = GOOGLE_LONGLONG(0); 186 } 187 inline ::google::protobuf::int64 Timestamp::wall_time() const { 188 // @@protoc_insertion_point(field_get:cockroach.util.hlc.Timestamp.wall_time) 189 return wall_time_; 190 } 191 inline void Timestamp::set_wall_time(::google::protobuf::int64 value) { 192 193 wall_time_ = value; 194 // @@protoc_insertion_point(field_set:cockroach.util.hlc.Timestamp.wall_time) 195 } 196 197 // int32 logical = 2; 198 inline void Timestamp::clear_logical() { 199 logical_ = 0; 200 } 201 inline ::google::protobuf::int32 Timestamp::logical() const { 202 // @@protoc_insertion_point(field_get:cockroach.util.hlc.Timestamp.logical) 203 return logical_; 204 } 205 inline void Timestamp::set_logical(::google::protobuf::int32 value) { 206 207 logical_ = value; 208 // @@protoc_insertion_point(field_set:cockroach.util.hlc.Timestamp.logical) 209 } 210 211 #ifdef __GNUC__ 212 #pragma GCC diagnostic pop 213 #endif // __GNUC__ 214 215 // @@protoc_insertion_point(namespace_scope) 216 217 } // namespace hlc 218 } // namespace util 219 } // namespace cockroach 220 221 // @@protoc_insertion_point(global_scope) 222 223 #endif // PROTOBUF_INCLUDED_util_2fhlc_2ftimestamp_2eproto