webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
duration.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: google/protobuf/duration.proto
3 
4 #ifndef PROTOBUF_google_2fprotobuf_2fduration_2eproto__INCLUDED
5 #define PROTOBUF_google_2fprotobuf_2fduration_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 Duration;
41 
42 // ===================================================================
43 
45  public:
46  Duration();
47  virtual ~Duration();
48 
49  Duration(const Duration& from);
50 
51  inline Duration& operator=(const Duration& from) {
52  CopyFrom(from);
53  return *this;
54  }
55 
57  static const Duration& default_instance();
58 
59  void Swap(Duration* other);
60 
61  // implements Message ----------------------------------------------
62 
63  inline Duration* New() const { return New(NULL); }
64 
65  Duration* New(::google::protobuf::Arena* arena) const;
66  void CopyFrom(const ::google::protobuf::Message& from);
68  void CopyFrom(const Duration& from);
69  void MergeFrom(const Duration& from);
70  void Clear();
71  bool IsInitialized() const;
72 
73  int ByteSize() const;
74  bool MergePartialFromCodedStream(
76  void SerializeWithCachedSizes(
78  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
79  int GetCachedSize() const { return _cached_size_; }
80  private:
81  void SharedCtor();
82  void SharedDtor();
83  void SetCachedSize(int size) const;
84  void InternalSwap(Duration* other);
85  private:
86  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
87  return _internal_metadata_.arena();
88  }
89  inline void* MaybeArenaPtr() const {
90  return _internal_metadata_.raw_arena_ptr();
91  }
92  public:
93 
94  ::google::protobuf::Metadata GetMetadata() const;
95 
96  // nested types ----------------------------------------------------
97 
98  // accessors -------------------------------------------------------
99 
100  // optional int64 seconds = 1;
101  void clear_seconds();
102  static const int kSecondsFieldNumber = 1;
103  ::google::protobuf::int64 seconds() const;
104  void set_seconds(::google::protobuf::int64 value);
105 
106  // optional int32 nanos = 2;
107  void clear_nanos();
108  static const int kNanosFieldNumber = 2;
109  ::google::protobuf::int32 nanos() const;
110  void set_nanos(::google::protobuf::int32 value);
111 
112  // @@protoc_insertion_point(class_scope:google.protobuf.Duration)
113  private:
114 
116  bool _is_default_instance_;
117  ::google::protobuf::int64 seconds_;
119  mutable int _cached_size_;
123 
124  void InitAsDefaultInstance();
125  static Duration* default_instance_;
126 };
127 // ===================================================================
128 
129 
130 // ===================================================================
131 
132 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
133 // Duration
134 
135 // optional int64 seconds = 1;
136 inline void Duration::clear_seconds() {
137  seconds_ = GOOGLE_LONGLONG(0);
138 }
140  // @@protoc_insertion_point(field_get:google.protobuf.Duration.seconds)
141  return seconds_;
142 }
144 
145  seconds_ = value;
146  // @@protoc_insertion_point(field_set:google.protobuf.Duration.seconds)
147 }
148 
149 // optional int32 nanos = 2;
150 inline void Duration::clear_nanos() {
151  nanos_ = 0;
152 }
154  // @@protoc_insertion_point(field_get:google.protobuf.Duration.nanos)
155  return nanos_;
156 }
158 
159  nanos_ = value;
160  // @@protoc_insertion_point(field_set:google.protobuf.Duration.nanos)
161 }
162 
163 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
164 
165 // @@protoc_insertion_point(namespace_scope)
166 
167 } // namespace protobuf
168 } // namespace google
169 
170 // @@protoc_insertion_point(global_scope)
171 
172 #endif // PROTOBUF_google_2fprotobuf_2fduration_2eproto__INCLUDED
Definition: message.h:179
EGLStreamKHR EGLint EGLint EGLint size
Definition: eglext.h:984
Duration * New() const
Definition: duration.pb.h:63
struct Descriptor Descriptor
Definition: protobuf.h:23
#define GOOGLE_LONGLONG(x)
Definition: port.h:150
void protobuf_AddDesc_google_2fprotobuf_2fduration_2eproto()
Definition: duration.pb.cc:77
const Descriptor * descriptor
Definition: descriptor.cc:271
uint8_t uint8
Definition: port.h:133
void clear_seconds()
Definition: duration.pb.h:136
Message
Definition: peerconnection_unittest.cc:105
Definition: message.h:164
#define output
Definition: wire_format_lite.h:418
int64_t int64
Definition: angle_config.h:29
const FieldDescriptor const OneofDescriptor value
Definition: descriptor.h:1717
void set_seconds(::google::protobuf::int64 value)
Definition: duration.pb.h:143
int32_t int32
Definition: port.h:130
IsInitialized
Definition: python_message.py:1169
void protobuf_ShutdownFile_google_2fprotobuf_2fduration_2eproto()
Definition: duration.pb.cc:72
EGLAttrib * value
Definition: eglext.h:120
Definition: __init__.py:1
::google::protobuf::int32 nanos() const
Definition: duration.pb.h:153
Definition: arena.h:218
int GetCachedSize() const
Definition: duration.pb.h:79
void set_nanos(::google::protobuf::int32 value)
Definition: duration.pb.h:157
Definition: duration.pb.h:44
int64_t int64
Definition: port.h:131
#define NULL
Definition: common_types.h:41
::google::protobuf::int64 seconds() const
Definition: duration.pb.h:139
#define LIBPROTOBUF_EXPORT
Definition: port.h:97
Definition: gflags_completions.h:115
string input
Definition: tokenizer_unittest.cc:198
Duration & operator=(const Duration &from)
Definition: duration.pb.h:51
ByteSize
Definition: python_message.py:1040
Definition: coded_stream.h:665
void clear_nanos()
Definition: duration.pb.h:150
Definition: coded_stream.h:159
void protobuf_AssignDesc_google_2fprotobuf_2fduration_2eproto()
Definition: duration.pb.cc:32
MergeFrom
Definition: python_message.py:1259
int32_t int32
Definition: angle_config.h:27