protobuf/src/google/protobuf/timestamp.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: google/protobuf/timestamp.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2ftimestamp_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2ftimestamp_2eproto
6 
7 #include <limits>
8 #include <string>
9 
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3019000
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 3019005 < 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/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/generated_message_reflection.h>
30 #include <google/protobuf/message.h>
31 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
32 #include <google/protobuf/extension_set.h> // IWYU pragma: export
33 #include <google/protobuf/unknown_field_set.h>
34 // @@protoc_insertion_point(includes)
35 #include <google/protobuf/port_def.inc>
36 #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto PROTOBUF_EXPORT
37 PROTOBUF_NAMESPACE_OPEN
38 namespace internal {
39 class AnyMetadata;
40 } // namespace internal
41 PROTOBUF_NAMESPACE_CLOSE
42 
43 // Internal implementation detail -- do not use these members.
45  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
46  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
47  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
48  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
49  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
50  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
51  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
52  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
53  static const uint32_t offsets[];
54 };
55 PROTOBUF_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2ftimestamp_2eproto;
56 PROTOBUF_NAMESPACE_OPEN
57 class Timestamp;
60 PROTOBUF_NAMESPACE_CLOSE
61 PROTOBUF_NAMESPACE_OPEN
62 template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::Timestamp* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(Arena*);
63 PROTOBUF_NAMESPACE_CLOSE
64 PROTOBUF_NAMESPACE_OPEN
65 
66 // ===================================================================
67 
68 class PROTOBUF_EXPORT Timestamp final :
69  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Timestamp) */ {
70  public:
71  inline Timestamp() : Timestamp(nullptr) {}
72  ~Timestamp() override;
73  explicit constexpr Timestamp(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
74 
75  Timestamp(const Timestamp& from);
76  Timestamp(Timestamp&& from) noexcept
77  : Timestamp() {
78  *this = ::std::move(from);
79  }
80 
81  inline Timestamp& operator=(const Timestamp& from) {
82  CopyFrom(from);
83  return *this;
84  }
85  inline Timestamp& operator=(Timestamp&& from) noexcept {
86  if (this == &from) return *this;
87  if (GetOwningArena() == from.GetOwningArena()
88  #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
89  && GetOwningArena() != nullptr
90  #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
91  ) {
92  InternalSwap(&from);
93  } else {
94  CopyFrom(from);
95  }
96  return *this;
97  }
98 
100  return GetDescriptor();
101  }
103  return default_instance().GetMetadata().descriptor;
104  }
105  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
106  return default_instance().GetMetadata().reflection;
107  }
108  static const Timestamp& default_instance() {
109  return *internal_default_instance();
110  }
111  static inline const Timestamp* internal_default_instance() {
112  return reinterpret_cast<const Timestamp*>(
114  }
115  static constexpr int kIndexInFileMessages =
116  0;
117 
118  friend void swap(Timestamp& a, Timestamp& b) {
119  a.Swap(&b);
120  }
121  inline void Swap(Timestamp* other) {
122  if (other == this) return;
123  #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
124  if (GetOwningArena() != nullptr &&
125  GetOwningArena() == other->GetOwningArena()) {
126  #else // PROTOBUF_FORCE_COPY_IN_SWAP
127  if (GetOwningArena() == other->GetOwningArena()) {
128  #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
129  InternalSwap(other);
130  } else {
132  }
133  }
134  void UnsafeArenaSwap(Timestamp* other) {
135  if (other == this) return;
136  GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
137  InternalSwap(other);
138  }
139 
140  // implements Message ----------------------------------------------
141 
143  return CreateMaybeMessage<Timestamp>(arena);
144  }
146  void CopyFrom(const Timestamp& from);
148  void MergeFrom(const Timestamp& from);
149  private:
151  public:
152  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
153  bool IsInitialized() const final;
154 
155  size_t ByteSizeLong() const final;
156  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
158  uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
159  int GetCachedSize() const final { return _cached_size_.Get(); }
160 
161  private:
162  void SharedCtor();
163  void SharedDtor();
164  void SetCachedSize(int size) const final;
165  void InternalSwap(Timestamp* other);
166 
167  private:
168  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
169  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
170  return "google.protobuf.Timestamp";
171  }
172  protected:
174  bool is_message_owned = false);
175  private:
176  static void ArenaDtor(void* object);
177  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
178  public:
179 
180  static const ClassData _class_data_;
181  const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
182 
183  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
184 
185  // nested types ----------------------------------------------------
186 
187  // accessors -------------------------------------------------------
188 
189  enum : int {
190  kSecondsFieldNumber = 1,
191  kNanosFieldNumber = 2,
192  };
193  // int64 seconds = 1;
194  void clear_seconds();
195  int64_t seconds() const;
196  void set_seconds(int64_t value);
197  private:
198  int64_t _internal_seconds() const;
199  void _internal_set_seconds(int64_t value);
200  public:
201 
202  // int32 nanos = 2;
203  void clear_nanos();
204  int32_t nanos() const;
205  void set_nanos(int32_t value);
206  private:
207  int32_t _internal_nanos() const;
208  void _internal_set_nanos(int32_t value);
209  public:
210 
211  // @@protoc_insertion_point(class_scope:google.protobuf.Timestamp)
212  private:
213  class _Internal;
214 
215  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
217  typedef void DestructorSkippable_;
220  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
221  friend struct ::TableStruct_google_2fprotobuf_2ftimestamp_2eproto;
222 };
223 // ===================================================================
224 
225 
226 // ===================================================================
227 
228 #ifdef __GNUC__
229  #pragma GCC diagnostic push
230  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
231 #endif // __GNUC__
232 // Timestamp
233 
234 // int64 seconds = 1;
235 inline void Timestamp::clear_seconds() {
236  seconds_ = int64_t{0};
237 }
238 inline int64_t Timestamp::_internal_seconds() const {
239  return seconds_;
240 }
241 inline int64_t Timestamp::seconds() const {
242  // @@protoc_insertion_point(field_get:google.protobuf.Timestamp.seconds)
243  return _internal_seconds();
244 }
246 
247  seconds_ = value;
248 }
250  _internal_set_seconds(value);
251  // @@protoc_insertion_point(field_set:google.protobuf.Timestamp.seconds)
252 }
253 
254 // int32 nanos = 2;
255 inline void Timestamp::clear_nanos() {
256  nanos_ = 0;
257 }
258 inline int32_t Timestamp::_internal_nanos() const {
259  return nanos_;
260 }
261 inline int32_t Timestamp::nanos() const {
262  // @@protoc_insertion_point(field_get:google.protobuf.Timestamp.nanos)
263  return _internal_nanos();
264 }
266 
267  nanos_ = value;
268 }
270  _internal_set_nanos(value);
271  // @@protoc_insertion_point(field_set:google.protobuf.Timestamp.nanos)
272 }
273 
274 #ifdef __GNUC__
275  #pragma GCC diagnostic pop
276 #endif // __GNUC__
277 
278 // @@protoc_insertion_point(namespace_scope)
279 
280 PROTOBUF_NAMESPACE_CLOSE
281 
282 // @@protoc_insertion_point(global_scope)
283 
284 #include <google/protobuf/port_undef.inc>
285 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2ftimestamp_2eproto
Timestamp::GetDescriptor
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: protobuf/src/google/protobuf/timestamp.pb.h:102
ptr
char * ptr
Definition: abseil-cpp/absl/base/internal/low_level_alloc_test.cc:45
absl::time_internal::cctz::seconds
std::chrono::duration< std::int_fast64_t > seconds
Definition: abseil-cpp/absl/time/internal/cctz/include/cctz/time_zone.h:40
Arena
struct Arena Arena
Definition: third_party/bloaty/third_party/protobuf/src/google/protobuf/arena.h:189
ctx
Definition: benchmark-async.c:30
const
#define const
Definition: bloaty/third_party/zlib/zconf.h:230
Timestamp::_internal_set_nanos
void _internal_set_nanos(::PROTOBUF_NAMESPACE_ID::int32 value)
Definition: bloaty/third_party/protobuf/src/google/protobuf/timestamp.pb.h:271
Timestamp::descriptor
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: protobuf/src/google/protobuf/timestamp.pb.h:99
Timestamp
Definition: bloaty/third_party/protobuf/src/google/protobuf/timestamp.pb.h:69
google::protobuf.internal.python_message.MergeFrom
MergeFrom
Definition: bloaty/third_party/protobuf/python/google/protobuf/internal/python_message.py:1339
TimestampDefaultTypeInternal
Definition: bloaty/third_party/protobuf/src/google/protobuf/timestamp.pb.cc:18
Timestamp::New
Timestamp * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition: protobuf/src/google/protobuf/timestamp.pb.h:142
GOOGLE_DCHECK
#define GOOGLE_DCHECK
Definition: bloaty/third_party/protobuf/src/google/protobuf/stubs/logging.h:194
Timestamp::_class_data_
static const ClassData _class_data_
Definition: protobuf/src/google/protobuf/timestamp.pb.h:180
google::protobuf::python::cmessage::CopyFrom
static PyObject * CopyFrom(CMessage *self, PyObject *arg)
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/message.cc:1862
Arena
Definition: arena.c:39
grpc::protobuf::Message
GRPC_CUSTOM_MESSAGE Message
Definition: include/grpcpp/impl/codegen/config_protobuf.h:78
Timestamp::GetReflection
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: protobuf/src/google/protobuf/timestamp.pb.h:105
TableStruct_google_2fprotobuf_2ftimestamp_2eproto
Definition: bloaty/third_party/protobuf/src/google/protobuf/timestamp.pb.h:45
Timestamp::FullMessageName
::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
Definition: protobuf/src/google/protobuf/timestamp.pb.h:169
a
int a
Definition: abseil-cpp/absl/container/internal/hash_policy_traits_test.cc:88
google::protobuf.internal::GenericSwap
void GenericSwap(MessageLite *m1, MessageLite *m2)
Definition: bloaty/third_party/protobuf/src/google/protobuf/generated_message_util.cc:735
to
size_t to
Definition: abseil-cpp/absl/container/internal/layout_test.cc:1385
descriptor_table_google_2fprotobuf_2ftimestamp_2eproto
PROTOBUF_EXPORTconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2ftimestamp_2eproto
Definition: bloaty/third_party/protobuf/src/google/protobuf/timestamp.pb.cc:73
uint8_t
unsigned char uint8_t
Definition: stdint-msvc2008.h:78
google::protobuf.internal.python_message._InternalParse
_InternalParse
Definition: bloaty/third_party/protobuf/python/google/protobuf/internal/python_message.py:1196
Timestamp::Timestamp
Timestamp(Timestamp &&from) noexcept
Definition: protobuf/src/google/protobuf/timestamp.pb.h:76
Timestamp::seconds
::PROTOBUF_NAMESPACE_ID::int64 seconds() const
Definition: bloaty/third_party/protobuf/src/google/protobuf/timestamp.pb.h:247
Timestamp::nanos_
int32_t nanos_
Definition: protobuf/src/google/protobuf/timestamp.pb.h:219
Timestamp::operator=
Timestamp & operator=(const Timestamp &from)
Definition: protobuf/src/google/protobuf/timestamp.pb.h:81
arena
grpc_core::ScopedArenaPtr arena
Definition: binder_transport_test.cc:237
Timestamp::nanos
::PROTOBUF_NAMESPACE_ID::int32 nanos() const
Definition: bloaty/third_party/protobuf/src/google/protobuf/timestamp.pb.h:267
uint32_t
unsigned int uint32_t
Definition: stdint-msvc2008.h:80
Timestamp::InternalArenaConstructable_
void InternalArenaConstructable_
Definition: protobuf/src/google/protobuf/timestamp.pb.h:216
from
size_t from
Definition: abseil-cpp/absl/container/internal/layout_test.cc:1384
absl::move
constexpr absl::remove_reference_t< T > && move(T &&t) noexcept
Definition: abseil-cpp/absl/utility/utility.h:221
int64_t
signed __int64 int64_t
Definition: stdint-msvc2008.h:89
Timestamp::set_seconds
void set_seconds(::PROTOBUF_NAMESPACE_ID::int64 value)
Definition: bloaty/third_party/protobuf/src/google/protobuf/timestamp.pb.h:255
Timestamp::DestructorSkippable_
void DestructorSkippable_
Definition: protobuf/src/google/protobuf/timestamp.pb.h:217
Timestamp
struct Timestamp Timestamp
Definition: bloaty/third_party/protobuf/php/ext/google/protobuf/protobuf.h:672
Timestamp::clear_seconds
void clear_seconds()
Definition: bloaty/third_party/protobuf/src/google/protobuf/timestamp.pb.h:241
google::protobuf.internal.python_message._InternalSerialize
_InternalSerialize
Definition: bloaty/third_party/protobuf/python/google/protobuf/internal/python_message.py:1112
Timestamp::seconds_
int64_t seconds_
Definition: protobuf/src/google/protobuf/timestamp.pb.h:218
Timestamp::Swap
void Swap(Timestamp *other)
Definition: protobuf/src/google/protobuf/timestamp.pb.h:121
io
b
uint64_t b
Definition: abseil-cpp/absl/container/internal/layout_test.cc:53
Timestamp::clear_nanos
void clear_nanos()
Definition: bloaty/third_party/protobuf/src/google/protobuf/timestamp.pb.h:261
value
const char * value
Definition: hpack_parser_table.cc:165
Timestamp::Timestamp
Timestamp()
Definition: protobuf/src/google/protobuf/timestamp.pb.h:71
Timestamp::operator=
Timestamp & operator=(Timestamp &&from) noexcept
Definition: protobuf/src/google/protobuf/timestamp.pb.h:85
google::protobuf.internal.python_message.Clear
Clear
Definition: bloaty/third_party/protobuf/python/google/protobuf/internal/python_message.py:1430
Timestamp::swap
friend void swap(Timestamp &a, Timestamp &b)
Definition: protobuf/src/google/protobuf/timestamp.pb.h:118
Timestamp::default_instance
static const Timestamp & default_instance()
Definition: protobuf/src/google/protobuf/timestamp.pb.h:108
_Timestamp_default_instance_
PROTOBUF_EXPORT TimestampDefaultTypeInternal _Timestamp_default_instance_
Definition: protobuf/src/google/protobuf/timestamp.pb.cc:32
Timestamp::set_nanos
void set_nanos(::PROTOBUF_NAMESPACE_ID::int32 value)
Definition: bloaty/third_party/protobuf/src/google/protobuf/timestamp.pb.h:275
Timestamp::_internal_nanos
::PROTOBUF_NAMESPACE_ID::int32 _internal_nanos() const
Definition: bloaty/third_party/protobuf/src/google/protobuf/timestamp.pb.h:264
Timestamp::UnsafeArenaSwap
void UnsafeArenaSwap(Timestamp *other)
Definition: protobuf/src/google/protobuf/timestamp.pb.h:134
Timestamp::_internal_set_seconds
void _internal_set_seconds(::PROTOBUF_NAMESPACE_ID::int64 value)
Definition: bloaty/third_party/protobuf/src/google/protobuf/timestamp.pb.h:251
google::protobuf.internal.python_message.IsInitialized
IsInitialized
Definition: bloaty/third_party/protobuf/python/google/protobuf/internal/python_message.py:1245
Timestamp::_internal_seconds
::PROTOBUF_NAMESPACE_ID::int64 _internal_seconds() const
Definition: bloaty/third_party/protobuf/src/google/protobuf/timestamp.pb.h:244
internal
Definition: benchmark/test/output_test_helper.cc:20
grpc_binder::Metadata
std::vector< std::pair< std::string, std::string > > Metadata
Definition: transaction.h:38
grpc::protobuf::Descriptor
GRPC_CUSTOM_DESCRIPTOR Descriptor
Definition: include/grpcpp/impl/codegen/config_protobuf.h:81
size
voidpf void uLong size
Definition: bloaty/third_party/zlib/contrib/minizip/ioapi.h:136
int32_t
signed int int32_t
Definition: stdint-msvc2008.h:77
setup.target
target
Definition: third_party/bloaty/third_party/protobuf/python/setup.py:179
Timestamp::internal_default_instance
static const Timestamp * internal_default_instance()
Definition: protobuf/src/google/protobuf/timestamp.pb.h:111
google::protobuf::python::message_descriptor::GetDescriptor
static ParentDescriptor GetDescriptor(PyContainer *self)
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/descriptor_containers.cc:951
PROTOBUF_SECTION_VARIABLE
const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_google_2fprotobuf_2fany_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
stream
voidpf stream
Definition: bloaty/third_party/zlib/contrib/minizip/ioapi.h:136


grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:38