webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
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 PROTOBUF_google_2fprotobuf_2ftimestamp_2eproto__INCLUDED
5 #define PROTOBUF_google_2fprotobuf_2ftimestamp_2eproto__INCLUDED
6 
7 #include <string>
8 
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3000000
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 3000000 < 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/arena.h>
30 // @@protoc_insertion_point(includes)
31 
32 namespace google {
33 namespace protobuf {
34 
35 // Internal implementation detail -- do not call these.
39 
40 class Timestamp;
41 
42 // ===================================================================
43 
45  public:
46  Timestamp();
47  virtual ~Timestamp();
48 
49  Timestamp(const Timestamp& from);
50 
51  inline Timestamp& operator=(const Timestamp& from) {
52  CopyFrom(from);
53  return *this;
54  }
55 
56  inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); }
57  inline void* GetMaybeArenaPointer() const {
58  return MaybeArenaPtr();
59  }
61  static const Timestamp& default_instance();
62 
63  void UnsafeArenaSwap(Timestamp* other);
64  void Swap(Timestamp* other);
65 
66  // implements Message ----------------------------------------------
67 
68  inline Timestamp* New() const { return New(NULL); }
69 
70  Timestamp* New(::google::protobuf::Arena* arena) const;
71  void CopyFrom(const ::google::protobuf::Message& from);
73  void CopyFrom(const Timestamp& from);
74  void MergeFrom(const Timestamp& from);
75  void Clear();
76  bool IsInitialized() const;
77 
78  int ByteSize() const;
79  bool MergePartialFromCodedStream(
81  void SerializeWithCachedSizes(
83  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
84  int GetCachedSize() const { return _cached_size_; }
85  private:
86  void SharedCtor();
87  void SharedDtor();
88  void SetCachedSize(int size) const;
89  void InternalSwap(Timestamp* other);
90  protected:
91  explicit Timestamp(::google::protobuf::Arena* arena);
92  private:
93  static void ArenaDtor(void* object);
94  inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
95  private:
96  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
97  return _internal_metadata_.arena();
98  }
99  inline void* MaybeArenaPtr() const {
100  return _internal_metadata_.raw_arena_ptr();
101  }
102  public:
103 
104  ::google::protobuf::Metadata GetMetadata() const;
105 
106  // nested types ----------------------------------------------------
107 
108  // accessors -------------------------------------------------------
109 
110  // optional int64 seconds = 1;
111  void clear_seconds();
112  static const int kSecondsFieldNumber = 1;
113  ::google::protobuf::int64 seconds() const;
114  void set_seconds(::google::protobuf::int64 value);
115 
116  // optional int32 nanos = 2;
117  void clear_nanos();
118  static const int kNanosFieldNumber = 2;
119  ::google::protobuf::int32 nanos() const;
120  void set_nanos(::google::protobuf::int32 value);
121 
122  // @@protoc_insertion_point(class_scope:google.protobuf.Timestamp)
123  private:
124 
126  friend class ::google::protobuf::Arena;
127  typedef void InternalArenaConstructable_;
128  typedef void DestructorSkippable_;
129  bool _is_default_instance_;
130  ::google::protobuf::int64 seconds_;
132  mutable int _cached_size_;
136 
137  void InitAsDefaultInstance();
138  static Timestamp* default_instance_;
139 };
140 // ===================================================================
141 
142 
143 // ===================================================================
144 
145 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
146 // Timestamp
147 
148 // optional int64 seconds = 1;
150  seconds_ = GOOGLE_LONGLONG(0);
151 }
153  // @@protoc_insertion_point(field_get:google.protobuf.Timestamp.seconds)
154  return seconds_;
155 }
157 
158  seconds_ = value;
159  // @@protoc_insertion_point(field_set:google.protobuf.Timestamp.seconds)
160 }
161 
162 // optional int32 nanos = 2;
163 inline void Timestamp::clear_nanos() {
164  nanos_ = 0;
165 }
167  // @@protoc_insertion_point(field_get:google.protobuf.Timestamp.nanos)
168  return nanos_;
169 }
171 
172  nanos_ = value;
173  // @@protoc_insertion_point(field_set:google.protobuf.Timestamp.nanos)
174 }
175 
176 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
177 
178 // @@protoc_insertion_point(namespace_scope)
179 
180 } // namespace protobuf
181 } // namespace google
182 
183 // @@protoc_insertion_point(global_scope)
184 
185 #endif // PROTOBUF_google_2fprotobuf_2ftimestamp_2eproto__INCLUDED
Definition: message.h:179
EGLStreamKHR EGLint EGLint EGLint size
Definition: eglext.h:984
Definition: timestamp.pb.h:44
void clear_seconds()
Definition: timestamp.pb.h:149
void protobuf_AssignDesc_google_2fprotobuf_2ftimestamp_2eproto()
Definition: timestamp.pb.cc:32
Timestamp * New() const
Definition: timestamp.pb.h:68
struct Descriptor Descriptor
Definition: protobuf.h:23
#define GOOGLE_LONGLONG(x)
Definition: port.h:150
void protobuf_AddDesc_google_2fprotobuf_2ftimestamp_2eproto()
Definition: timestamp.pb.cc:77
const Descriptor * descriptor
Definition: descriptor.cc:271
uint8_t uint8
Definition: port.h:133
Message
Definition: peerconnection_unittest.cc:105
Definition: message.h:164
void * GetMaybeArenaPointer() const
Definition: timestamp.pb.h:57
#define output
Definition: wire_format_lite.h:418
::google::protobuf::int32 nanos() const
Definition: timestamp.pb.h:166
Timestamp & operator=(const Timestamp &from)
Definition: timestamp.pb.h:51
int64_t int64
Definition: angle_config.h:29
const FieldDescriptor const OneofDescriptor value
Definition: descriptor.h:1717
int32_t int32
Definition: port.h:130
IsInitialized
Definition: python_message.py:1169
EGLAttrib * value
Definition: eglext.h:120
void protobuf_ShutdownFile_google_2fprotobuf_2ftimestamp_2eproto()
Definition: timestamp.pb.cc:72
void set_nanos(::google::protobuf::int32 value)
Definition: timestamp.pb.h:170
void clear_nanos()
Definition: timestamp.pb.h:163
::google::protobuf::int64 seconds() const
Definition: timestamp.pb.h:152
Definition: __init__.py:1
Definition: arena.h:218
int64_t int64
Definition: port.h:131
#define NULL
Definition: common_types.h:41
inline ::google::protobuf::Arena * GetArena() const
Definition: timestamp.pb.h:56
#define LIBPROTOBUF_EXPORT
Definition: port.h:97
Definition: gflags_completions.h:115
double Timestamp
Definition: InspectorProtocolObjects.h:290
string input
Definition: tokenizer_unittest.cc:198
ByteSize
Definition: python_message.py:1040
Definition: coded_stream.h:665
int GetCachedSize() const
Definition: timestamp.pb.h:84
Definition: coded_stream.h:159
MergeFrom
Definition: python_message.py:1259
int32_t int32
Definition: angle_config.h:27
void set_seconds(::google::protobuf::int64 value)
Definition: timestamp.pb.h:156