Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1308)

Side by Side Diff: third_party/protobuf/src/google/protobuf/struct.pb.h

Issue 2590803003: Revert "third_party/protobuf: Update to HEAD (83d681ee2c)" (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Generated by the protocol buffer compiler. DO NOT EDIT! 1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: google/protobuf/struct.proto 2 // source: google/protobuf/struct.proto
3 3
4 #ifndef PROTOBUF_google_2fprotobuf_2fstruct_2eproto__INCLUDED 4 #ifndef PROTOBUF_google_2fprotobuf_2fstruct_2eproto__INCLUDED
5 #define PROTOBUF_google_2fprotobuf_2fstruct_2eproto__INCLUDED 5 #define PROTOBUF_google_2fprotobuf_2fstruct_2eproto__INCLUDED
6 6
7 #include <string> 7 #include <string>
8 8
9 #include <google/protobuf/stubs/common.h> 9 #include <google/protobuf/stubs/common.h>
10 10
11 #if GOOGLE_PROTOBUF_VERSION < 3001000 11 #if GOOGLE_PROTOBUF_VERSION < 3000000
12 #error This file was generated by a newer version of protoc which is 12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update 13 #error incompatible with your Protocol Buffer headers. Please update
14 #error your headers. 14 #error your headers.
15 #endif 15 #endif
16 #if 3001000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION 16 #if 3000000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is 17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please 18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc. 19 #error regenerate this file with a newer version of protoc.
20 #endif 20 #endif
21 21
22 #include <google/protobuf/arena.h> 22 #include <google/protobuf/arena.h>
23 #include <google/protobuf/arenastring.h> 23 #include <google/protobuf/arenastring.h>
24 #include <google/protobuf/generated_message_util.h> 24 #include <google/protobuf/generated_message_util.h>
25 #include <google/protobuf/metadata.h> 25 #include <google/protobuf/metadata.h>
26 #include <google/protobuf/message.h> 26 #include <google/protobuf/message.h>
27 #include <google/protobuf/repeated_field.h> // IWYU pragma: export 27 #include <google/protobuf/repeated_field.h>
28 #include <google/protobuf/extension_set.h> // IWYU pragma: export 28 #include <google/protobuf/extension_set.h>
29 #include <google/protobuf/map.h> 29 #include <google/protobuf/map.h>
30 #include <google/protobuf/map_field_inl.h> 30 #include <google/protobuf/map_field_inl.h>
31 #include <google/protobuf/generated_enum_reflection.h> 31 #include <google/protobuf/generated_enum_reflection.h>
32 #include <google/protobuf/unknown_field_set.h> 32 #include <google/protobuf/unknown_field_set.h>
33 // @@protoc_insertion_point(includes) 33 // @@protoc_insertion_point(includes)
34 namespace google {
35 namespace protobuf {
36 class ListValue;
37 class ListValueDefaultTypeInternal;
38 LIBPROTOBUF_EXPORT extern ListValueDefaultTypeInternal _ListValue_default_instan ce_;
39 class Struct;
40 class StructDefaultTypeInternal;
41 LIBPROTOBUF_EXPORT extern StructDefaultTypeInternal _Struct_default_instance_;
42 class Value;
43 class ValueDefaultTypeInternal;
44 LIBPROTOBUF_EXPORT extern ValueDefaultTypeInternal _Value_default_instance_;
45 } // namespace protobuf
46 } // namespace google
47 34
48 namespace google { 35 namespace google {
49 namespace protobuf { 36 namespace protobuf {
50 37
51 // Internal implementation detail -- do not call these. 38 // Internal implementation detail -- do not call these.
52 void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fstruct_2eproto(); 39 void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fstruct_2eproto();
53 void LIBPROTOBUF_EXPORT protobuf_InitDefaults_google_2fprotobuf_2fstruct_2eproto (); 40 void protobuf_AssignDesc_google_2fprotobuf_2fstruct_2eproto();
41 void protobuf_ShutdownFile_google_2fprotobuf_2fstruct_2eproto();
42
43 class ListValue;
44 class Struct;
45 class Value;
54 46
55 enum NullValue { 47 enum NullValue {
56 NULL_VALUE = 0, 48 NULL_VALUE = 0,
57 NullValue_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, 49 NullValue_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min,
58 NullValue_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max 50 NullValue_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max
59 }; 51 };
60 LIBPROTOBUF_EXPORT bool NullValue_IsValid(int value); 52 LIBPROTOBUF_EXPORT bool NullValue_IsValid(int value);
61 const NullValue NullValue_MIN = NULL_VALUE; 53 const NullValue NullValue_MIN = NULL_VALUE;
62 const NullValue NullValue_MAX = NULL_VALUE; 54 const NullValue NullValue_MAX = NULL_VALUE;
63 const int NullValue_ARRAYSIZE = NullValue_MAX + 1; 55 const int NullValue_ARRAYSIZE = NullValue_MAX + 1;
64 56
65 LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* NullValue_descripto r(); 57 LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* NullValue_descripto r();
66 inline const ::std::string& NullValue_Name(NullValue value) { 58 inline const ::std::string& NullValue_Name(NullValue value) {
67 return ::google::protobuf::internal::NameOfEnum( 59 return ::google::protobuf::internal::NameOfEnum(
68 NullValue_descriptor(), value); 60 NullValue_descriptor(), value);
69 } 61 }
70 inline bool NullValue_Parse( 62 inline bool NullValue_Parse(
71 const ::std::string& name, NullValue* value) { 63 const ::std::string& name, NullValue* value) {
72 return ::google::protobuf::internal::ParseNamedEnum<NullValue>( 64 return ::google::protobuf::internal::ParseNamedEnum<NullValue>(
73 NullValue_descriptor(), name, value); 65 NullValue_descriptor(), name, value);
74 } 66 }
75 // =================================================================== 67 // ===================================================================
76 68
77 69 class LIBPROTOBUF_EXPORT Struct : public ::google::protobuf::Message {
78 // -------------------------------------------------------------------
79
80 class LIBPROTOBUF_EXPORT Struct : public ::google::protobuf::Message /* @@protoc _insertion_point(class_definition:google.protobuf.Struct) */ {
81 public: 70 public:
82 Struct(); 71 Struct();
83 virtual ~Struct(); 72 virtual ~Struct();
84 73
85 Struct(const Struct& from); 74 Struct(const Struct& from);
86 75
87 inline Struct& operator=(const Struct& from) { 76 inline Struct& operator=(const Struct& from) {
88 CopyFrom(from); 77 CopyFrom(from);
89 return *this; 78 return *this;
90 } 79 }
91 80
92 inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
93 return GetArenaNoVirtual();
94 }
95 inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
96 return MaybeArenaPtr();
97 }
98 static const ::google::protobuf::Descriptor* descriptor(); 81 static const ::google::protobuf::Descriptor* descriptor();
99 static const Struct& default_instance(); 82 static const Struct& default_instance();
100 83
101 static inline const Struct* internal_default_instance() {
102 return reinterpret_cast<const Struct*>(
103 &_Struct_default_instance_);
104 }
105
106 void UnsafeArenaSwap(Struct* other);
107 void Swap(Struct* other); 84 void Swap(Struct* other);
108 85
109 // implements Message ---------------------------------------------- 86 // implements Message ----------------------------------------------
110 87
111 inline Struct* New() const PROTOBUF_FINAL { return New(NULL); } 88 inline Struct* New() const { return New(NULL); }
112 89
113 Struct* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; 90 Struct* New(::google::protobuf::Arena* arena) const;
114 void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; 91 void CopyFrom(const ::google::protobuf::Message& from);
115 void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; 92 void MergeFrom(const ::google::protobuf::Message& from);
116 void CopyFrom(const Struct& from); 93 void CopyFrom(const Struct& from);
117 void MergeFrom(const Struct& from); 94 void MergeFrom(const Struct& from);
118 void Clear() PROTOBUF_FINAL; 95 void Clear();
119 bool IsInitialized() const PROTOBUF_FINAL; 96 bool IsInitialized() const;
120 97
121 size_t ByteSizeLong() const PROTOBUF_FINAL; 98 int ByteSize() const;
122 bool MergePartialFromCodedStream( 99 bool MergePartialFromCodedStream(
123 ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; 100 ::google::protobuf::io::CodedInputStream* input);
124 void SerializeWithCachedSizes( 101 void SerializeWithCachedSizes(
125 ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; 102 ::google::protobuf::io::CodedOutputStream* output) const;
126 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( 103 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf: :uint8* output) const;
127 bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINA L; 104 int GetCachedSize() const { return _cached_size_; }
128 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf: :uint8* output)
129 const PROTOBUF_FINAL {
130 return InternalSerializeWithCachedSizesToArray(false, output);
131 }
132 int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
133 private: 105 private:
134 void SharedCtor(); 106 void SharedCtor();
135 void SharedDtor(); 107 void SharedDtor();
136 void SetCachedSize(int size) const PROTOBUF_FINAL; 108 void SetCachedSize(int size) const;
137 void InternalSwap(Struct* other); 109 void InternalSwap(Struct* other);
138 protected:
139 explicit Struct(::google::protobuf::Arena* arena);
140 private:
141 static void ArenaDtor(void* object);
142 inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
143 private: 110 private:
144 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 111 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
145 return _internal_metadata_.arena(); 112 return _internal_metadata_.arena();
146 } 113 }
147 inline void* MaybeArenaPtr() const { 114 inline void* MaybeArenaPtr() const {
148 return _internal_metadata_.raw_arena_ptr(); 115 return _internal_metadata_.raw_arena_ptr();
149 } 116 }
150 public: 117 public:
151 118
152 ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; 119 ::google::protobuf::Metadata GetMetadata() const;
153 120
154 // nested types ---------------------------------------------------- 121 // nested types ----------------------------------------------------
155 122
156 123
157 // accessors ------------------------------------------------------- 124 // accessors -------------------------------------------------------
158 125
159 // map<string, .google.protobuf.Value> fields = 1; 126 // map<string, .google.protobuf.Value> fields = 1;
160 int fields_size() const; 127 int fields_size() const;
161 void clear_fields(); 128 void clear_fields();
162 static const int kFieldsFieldNumber = 1; 129 static const int kFieldsFieldNumber = 1;
163 const ::google::protobuf::Map< ::std::string, ::google::protobuf::Value >& 130 const ::google::protobuf::Map< ::std::string, ::google::protobuf::Value >&
164 fields() const; 131 fields() const;
165 ::google::protobuf::Map< ::std::string, ::google::protobuf::Value >* 132 ::google::protobuf::Map< ::std::string, ::google::protobuf::Value >*
166 mutable_fields(); 133 mutable_fields();
167 134
168 // @@protoc_insertion_point(class_scope:google.protobuf.Struct) 135 // @@protoc_insertion_point(class_scope:google.protobuf.Struct)
169 private: 136 private:
170 137
171 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; 138 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
172 friend class ::google::protobuf::Arena; 139 bool _is_default_instance_;
173 typedef void InternalArenaConstructable_;
174 typedef void DestructorSkippable_;
175 typedef ::google::protobuf::internal::MapEntryLite< 140 typedef ::google::protobuf::internal::MapEntryLite<
176 ::std::string, ::google::protobuf::Value, 141 ::std::string, ::google::protobuf::Value,
177 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 142 ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
178 ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, 143 ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
179 0 > 144 0 >
180 Struct_FieldsEntry; 145 Struct_FieldsEntry;
181 ::google::protobuf::internal::MapField< 146 ::google::protobuf::internal::MapField<
182 ::std::string, ::google::protobuf::Value, 147 ::std::string, ::google::protobuf::Value,
183 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 148 ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
184 ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, 149 ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
185 0 > fields_; 150 0 > fields_;
186 mutable int _cached_size_; 151 mutable int _cached_size_;
187 friend void LIBPROTOBUF_EXPORT protobuf_InitDefaults_google_2fprotobuf_2fstruc t_2eproto_impl(); 152 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fstruct_2ep roto();
188 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fstruct_2ep roto_impl(); 153 friend void protobuf_AssignDesc_google_2fprotobuf_2fstruct_2eproto();
189 friend const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2f struct_2eproto();
190 friend void protobuf_ShutdownFile_google_2fprotobuf_2fstruct_2eproto(); 154 friend void protobuf_ShutdownFile_google_2fprotobuf_2fstruct_2eproto();
191 155
156 void InitAsDefaultInstance();
157 static Struct* default_instance_;
192 }; 158 };
193 // ------------------------------------------------------------------- 159 // -------------------------------------------------------------------
194 160
195 class LIBPROTOBUF_EXPORT Value : public ::google::protobuf::Message /* @@protoc_ insertion_point(class_definition:google.protobuf.Value) */ { 161 class LIBPROTOBUF_EXPORT Value : public ::google::protobuf::Message {
196 public: 162 public:
197 Value(); 163 Value();
198 virtual ~Value(); 164 virtual ~Value();
199 165
200 Value(const Value& from); 166 Value(const Value& from);
201 167
202 inline Value& operator=(const Value& from) { 168 inline Value& operator=(const Value& from) {
203 CopyFrom(from); 169 CopyFrom(from);
204 return *this; 170 return *this;
205 } 171 }
206 172
207 inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
208 return GetArenaNoVirtual();
209 }
210 inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
211 return MaybeArenaPtr();
212 }
213 static const ::google::protobuf::Descriptor* descriptor(); 173 static const ::google::protobuf::Descriptor* descriptor();
214 static const Value& default_instance(); 174 static const Value& default_instance();
215 175
216 enum KindCase { 176 enum KindCase {
217 kNullValue = 1, 177 kNullValue = 1,
218 kNumberValue = 2, 178 kNumberValue = 2,
219 kStringValue = 3, 179 kStringValue = 3,
220 kBoolValue = 4, 180 kBoolValue = 4,
221 kStructValue = 5, 181 kStructValue = 5,
222 kListValue = 6, 182 kListValue = 6,
223 KIND_NOT_SET = 0, 183 KIND_NOT_SET = 0,
224 }; 184 };
225 185
226 static inline const Value* internal_default_instance() {
227 return reinterpret_cast<const Value*>(
228 &_Value_default_instance_);
229 }
230
231 void UnsafeArenaSwap(Value* other);
232 void Swap(Value* other); 186 void Swap(Value* other);
233 187
234 // implements Message ---------------------------------------------- 188 // implements Message ----------------------------------------------
235 189
236 inline Value* New() const PROTOBUF_FINAL { return New(NULL); } 190 inline Value* New() const { return New(NULL); }
237 191
238 Value* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; 192 Value* New(::google::protobuf::Arena* arena) const;
239 void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; 193 void CopyFrom(const ::google::protobuf::Message& from);
240 void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; 194 void MergeFrom(const ::google::protobuf::Message& from);
241 void CopyFrom(const Value& from); 195 void CopyFrom(const Value& from);
242 void MergeFrom(const Value& from); 196 void MergeFrom(const Value& from);
243 void Clear() PROTOBUF_FINAL; 197 void Clear();
244 bool IsInitialized() const PROTOBUF_FINAL; 198 bool IsInitialized() const;
245 199
246 size_t ByteSizeLong() const PROTOBUF_FINAL; 200 int ByteSize() const;
247 bool MergePartialFromCodedStream( 201 bool MergePartialFromCodedStream(
248 ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; 202 ::google::protobuf::io::CodedInputStream* input);
249 void SerializeWithCachedSizes( 203 void SerializeWithCachedSizes(
250 ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; 204 ::google::protobuf::io::CodedOutputStream* output) const;
251 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( 205 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf: :uint8* output) const;
252 bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINA L; 206 int GetCachedSize() const { return _cached_size_; }
253 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf: :uint8* output)
254 const PROTOBUF_FINAL {
255 return InternalSerializeWithCachedSizesToArray(false, output);
256 }
257 int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
258 private: 207 private:
259 void SharedCtor(); 208 void SharedCtor();
260 void SharedDtor(); 209 void SharedDtor();
261 void SetCachedSize(int size) const PROTOBUF_FINAL; 210 void SetCachedSize(int size) const;
262 void InternalSwap(Value* other); 211 void InternalSwap(Value* other);
263 protected:
264 explicit Value(::google::protobuf::Arena* arena);
265 private:
266 static void ArenaDtor(void* object);
267 inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
268 private: 212 private:
269 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 213 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
270 return _internal_metadata_.arena(); 214 return _internal_metadata_.arena();
271 } 215 }
272 inline void* MaybeArenaPtr() const { 216 inline void* MaybeArenaPtr() const {
273 return _internal_metadata_.raw_arena_ptr(); 217 return _internal_metadata_.raw_arena_ptr();
274 } 218 }
275 public: 219 public:
276 220
277 ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; 221 ::google::protobuf::Metadata GetMetadata() const;
278 222
279 // nested types ---------------------------------------------------- 223 // nested types ----------------------------------------------------
280 224
281 // accessors ------------------------------------------------------- 225 // accessors -------------------------------------------------------
282 226
283 // .google.protobuf.NullValue null_value = 1; 227 // optional .google.protobuf.NullValue null_value = 1;
284 private: 228 private:
285 bool has_null_value() const; 229 bool has_null_value() const;
286 public: 230 public:
287 void clear_null_value(); 231 void clear_null_value();
288 static const int kNullValueFieldNumber = 1; 232 static const int kNullValueFieldNumber = 1;
289 ::google::protobuf::NullValue null_value() const; 233 ::google::protobuf::NullValue null_value() const;
290 void set_null_value(::google::protobuf::NullValue value); 234 void set_null_value(::google::protobuf::NullValue value);
291 235
292 // double number_value = 2; 236 // optional double number_value = 2;
293 private: 237 private:
294 bool has_number_value() const; 238 bool has_number_value() const;
295 public: 239 public:
296 void clear_number_value(); 240 void clear_number_value();
297 static const int kNumberValueFieldNumber = 2; 241 static const int kNumberValueFieldNumber = 2;
298 double number_value() const; 242 double number_value() const;
299 void set_number_value(double value); 243 void set_number_value(double value);
300 244
301 // string string_value = 3; 245 // optional string string_value = 3;
302 private: 246 private:
303 bool has_string_value() const; 247 bool has_string_value() const;
304 public: 248 public:
305 void clear_string_value(); 249 void clear_string_value();
306 static const int kStringValueFieldNumber = 3; 250 static const int kStringValueFieldNumber = 3;
307 const ::std::string& string_value() const; 251 const ::std::string& string_value() const;
308 void set_string_value(const ::std::string& value); 252 void set_string_value(const ::std::string& value);
309 void set_string_value(const char* value); 253 void set_string_value(const char* value);
310 void set_string_value(const char* value, size_t size); 254 void set_string_value(const char* value, size_t size);
311 ::std::string* mutable_string_value(); 255 ::std::string* mutable_string_value();
312 ::std::string* release_string_value(); 256 ::std::string* release_string_value();
313 void set_allocated_string_value(::std::string* string_value); 257 void set_allocated_string_value(::std::string* string_value);
314 ::std::string* unsafe_arena_release_string_value();
315 void unsafe_arena_set_allocated_string_value(
316 ::std::string* string_value);
317 258
318 // bool bool_value = 4; 259 // optional bool bool_value = 4;
319 private: 260 private:
320 bool has_bool_value() const; 261 bool has_bool_value() const;
321 public: 262 public:
322 void clear_bool_value(); 263 void clear_bool_value();
323 static const int kBoolValueFieldNumber = 4; 264 static const int kBoolValueFieldNumber = 4;
324 bool bool_value() const; 265 bool bool_value() const;
325 void set_bool_value(bool value); 266 void set_bool_value(bool value);
326 267
327 // .google.protobuf.Struct struct_value = 5; 268 // optional .google.protobuf.Struct struct_value = 5;
328 bool has_struct_value() const; 269 bool has_struct_value() const;
329 void clear_struct_value(); 270 void clear_struct_value();
330 static const int kStructValueFieldNumber = 5; 271 static const int kStructValueFieldNumber = 5;
331 private:
332 void _slow_mutable_struct_value();
333 void _slow_set_allocated_struct_value(
334 ::google::protobuf::Arena* message_arena, ::google::protobuf::Struct** str uct_value);
335 ::google::protobuf::Struct* _slow_release_struct_value();
336 public:
337 const ::google::protobuf::Struct& struct_value() const; 272 const ::google::protobuf::Struct& struct_value() const;
338 ::google::protobuf::Struct* mutable_struct_value(); 273 ::google::protobuf::Struct* mutable_struct_value();
339 ::google::protobuf::Struct* release_struct_value(); 274 ::google::protobuf::Struct* release_struct_value();
340 void set_allocated_struct_value(::google::protobuf::Struct* struct_value); 275 void set_allocated_struct_value(::google::protobuf::Struct* struct_value);
341 ::google::protobuf::Struct* unsafe_arena_release_struct_value();
342 void unsafe_arena_set_allocated_struct_value(
343 ::google::protobuf::Struct* struct_value);
344 276
345 // .google.protobuf.ListValue list_value = 6; 277 // optional .google.protobuf.ListValue list_value = 6;
346 bool has_list_value() const; 278 bool has_list_value() const;
347 void clear_list_value(); 279 void clear_list_value();
348 static const int kListValueFieldNumber = 6; 280 static const int kListValueFieldNumber = 6;
349 private:
350 void _slow_mutable_list_value();
351 void _slow_set_allocated_list_value(
352 ::google::protobuf::Arena* message_arena, ::google::protobuf::ListValue** list_value);
353 ::google::protobuf::ListValue* _slow_release_list_value();
354 public:
355 const ::google::protobuf::ListValue& list_value() const; 281 const ::google::protobuf::ListValue& list_value() const;
356 ::google::protobuf::ListValue* mutable_list_value(); 282 ::google::protobuf::ListValue* mutable_list_value();
357 ::google::protobuf::ListValue* release_list_value(); 283 ::google::protobuf::ListValue* release_list_value();
358 void set_allocated_list_value(::google::protobuf::ListValue* list_value); 284 void set_allocated_list_value(::google::protobuf::ListValue* list_value);
359 ::google::protobuf::ListValue* unsafe_arena_release_list_value();
360 void unsafe_arena_set_allocated_list_value(
361 ::google::protobuf::ListValue* list_value);
362 285
363 KindCase kind_case() const; 286 KindCase kind_case() const;
364 // @@protoc_insertion_point(class_scope:google.protobuf.Value) 287 // @@protoc_insertion_point(class_scope:google.protobuf.Value)
365 private: 288 private:
366 void set_has_null_value(); 289 inline void set_has_null_value();
367 void set_has_number_value(); 290 inline void set_has_number_value();
368 void set_has_string_value(); 291 inline void set_has_string_value();
369 void set_has_bool_value(); 292 inline void set_has_bool_value();
370 void set_has_struct_value(); 293 inline void set_has_struct_value();
371 void set_has_list_value(); 294 inline void set_has_list_value();
372 295
373 inline bool has_kind() const; 296 inline bool has_kind() const;
374 void clear_kind(); 297 void clear_kind();
375 inline void clear_has_kind(); 298 inline void clear_has_kind();
376 299
377 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; 300 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
378 friend class ::google::protobuf::Arena; 301 bool _is_default_instance_;
379 typedef void InternalArenaConstructable_;
380 typedef void DestructorSkippable_;
381 union KindUnion { 302 union KindUnion {
382 KindUnion() {} 303 KindUnion() {}
383 int null_value_; 304 int null_value_;
384 double number_value_; 305 double number_value_;
385 ::google::protobuf::internal::ArenaStringPtr string_value_; 306 ::google::protobuf::internal::ArenaStringPtr string_value_;
386 bool bool_value_; 307 bool bool_value_;
387 ::google::protobuf::Struct* struct_value_; 308 ::google::protobuf::Struct* struct_value_;
388 ::google::protobuf::ListValue* list_value_; 309 ::google::protobuf::ListValue* list_value_;
389 } kind_; 310 } kind_;
390 mutable int _cached_size_; 311 mutable int _cached_size_;
391 ::google::protobuf::uint32 _oneof_case_[1]; 312 ::google::protobuf::uint32 _oneof_case_[1];
392 313
393 friend void LIBPROTOBUF_EXPORT protobuf_InitDefaults_google_2fprotobuf_2fstruc t_2eproto_impl(); 314 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fstruct_2ep roto();
394 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fstruct_2ep roto_impl(); 315 friend void protobuf_AssignDesc_google_2fprotobuf_2fstruct_2eproto();
395 friend const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2f struct_2eproto();
396 friend void protobuf_ShutdownFile_google_2fprotobuf_2fstruct_2eproto(); 316 friend void protobuf_ShutdownFile_google_2fprotobuf_2fstruct_2eproto();
397 317
318 void InitAsDefaultInstance();
319 static Value* default_instance_;
398 }; 320 };
399 // ------------------------------------------------------------------- 321 // -------------------------------------------------------------------
400 322
401 class LIBPROTOBUF_EXPORT ListValue : public ::google::protobuf::Message /* @@pro toc_insertion_point(class_definition:google.protobuf.ListValue) */ { 323 class LIBPROTOBUF_EXPORT ListValue : public ::google::protobuf::Message {
402 public: 324 public:
403 ListValue(); 325 ListValue();
404 virtual ~ListValue(); 326 virtual ~ListValue();
405 327
406 ListValue(const ListValue& from); 328 ListValue(const ListValue& from);
407 329
408 inline ListValue& operator=(const ListValue& from) { 330 inline ListValue& operator=(const ListValue& from) {
409 CopyFrom(from); 331 CopyFrom(from);
410 return *this; 332 return *this;
411 } 333 }
412 334
413 inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
414 return GetArenaNoVirtual();
415 }
416 inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
417 return MaybeArenaPtr();
418 }
419 static const ::google::protobuf::Descriptor* descriptor(); 335 static const ::google::protobuf::Descriptor* descriptor();
420 static const ListValue& default_instance(); 336 static const ListValue& default_instance();
421 337
422 static inline const ListValue* internal_default_instance() {
423 return reinterpret_cast<const ListValue*>(
424 &_ListValue_default_instance_);
425 }
426
427 void UnsafeArenaSwap(ListValue* other);
428 void Swap(ListValue* other); 338 void Swap(ListValue* other);
429 339
430 // implements Message ---------------------------------------------- 340 // implements Message ----------------------------------------------
431 341
432 inline ListValue* New() const PROTOBUF_FINAL { return New(NULL); } 342 inline ListValue* New() const { return New(NULL); }
433 343
434 ListValue* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; 344 ListValue* New(::google::protobuf::Arena* arena) const;
435 void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; 345 void CopyFrom(const ::google::protobuf::Message& from);
436 void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; 346 void MergeFrom(const ::google::protobuf::Message& from);
437 void CopyFrom(const ListValue& from); 347 void CopyFrom(const ListValue& from);
438 void MergeFrom(const ListValue& from); 348 void MergeFrom(const ListValue& from);
439 void Clear() PROTOBUF_FINAL; 349 void Clear();
440 bool IsInitialized() const PROTOBUF_FINAL; 350 bool IsInitialized() const;
441 351
442 size_t ByteSizeLong() const PROTOBUF_FINAL; 352 int ByteSize() const;
443 bool MergePartialFromCodedStream( 353 bool MergePartialFromCodedStream(
444 ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; 354 ::google::protobuf::io::CodedInputStream* input);
445 void SerializeWithCachedSizes( 355 void SerializeWithCachedSizes(
446 ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; 356 ::google::protobuf::io::CodedOutputStream* output) const;
447 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( 357 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf: :uint8* output) const;
448 bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINA L; 358 int GetCachedSize() const { return _cached_size_; }
449 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf: :uint8* output)
450 const PROTOBUF_FINAL {
451 return InternalSerializeWithCachedSizesToArray(false, output);
452 }
453 int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
454 private: 359 private:
455 void SharedCtor(); 360 void SharedCtor();
456 void SharedDtor(); 361 void SharedDtor();
457 void SetCachedSize(int size) const PROTOBUF_FINAL; 362 void SetCachedSize(int size) const;
458 void InternalSwap(ListValue* other); 363 void InternalSwap(ListValue* other);
459 protected:
460 explicit ListValue(::google::protobuf::Arena* arena);
461 private:
462 static void ArenaDtor(void* object);
463 inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
464 private: 364 private:
465 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 365 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
466 return _internal_metadata_.arena(); 366 return _internal_metadata_.arena();
467 } 367 }
468 inline void* MaybeArenaPtr() const { 368 inline void* MaybeArenaPtr() const {
469 return _internal_metadata_.raw_arena_ptr(); 369 return _internal_metadata_.raw_arena_ptr();
470 } 370 }
471 public: 371 public:
472 372
473 ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; 373 ::google::protobuf::Metadata GetMetadata() const;
474 374
475 // nested types ---------------------------------------------------- 375 // nested types ----------------------------------------------------
476 376
477 // accessors ------------------------------------------------------- 377 // accessors -------------------------------------------------------
478 378
479 // repeated .google.protobuf.Value values = 1; 379 // repeated .google.protobuf.Value values = 1;
480 int values_size() const; 380 int values_size() const;
481 void clear_values(); 381 void clear_values();
482 static const int kValuesFieldNumber = 1; 382 static const int kValuesFieldNumber = 1;
483 const ::google::protobuf::Value& values(int index) const; 383 const ::google::protobuf::Value& values(int index) const;
484 ::google::protobuf::Value* mutable_values(int index); 384 ::google::protobuf::Value* mutable_values(int index);
485 ::google::protobuf::Value* add_values(); 385 ::google::protobuf::Value* add_values();
486 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Value >* 386 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Value >*
487 mutable_values(); 387 mutable_values();
488 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Value >& 388 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Value >&
489 values() const; 389 values() const;
490 390
491 // @@protoc_insertion_point(class_scope:google.protobuf.ListValue) 391 // @@protoc_insertion_point(class_scope:google.protobuf.ListValue)
492 private: 392 private:
493 393
494 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; 394 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
495 friend class ::google::protobuf::Arena; 395 bool _is_default_instance_;
496 typedef void InternalArenaConstructable_;
497 typedef void DestructorSkippable_;
498 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Value > values_; 396 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Value > values_;
499 mutable int _cached_size_; 397 mutable int _cached_size_;
500 friend void LIBPROTOBUF_EXPORT protobuf_InitDefaults_google_2fprotobuf_2fstruc t_2eproto_impl(); 398 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fstruct_2ep roto();
501 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fstruct_2ep roto_impl(); 399 friend void protobuf_AssignDesc_google_2fprotobuf_2fstruct_2eproto();
502 friend const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2f struct_2eproto();
503 friend void protobuf_ShutdownFile_google_2fprotobuf_2fstruct_2eproto(); 400 friend void protobuf_ShutdownFile_google_2fprotobuf_2fstruct_2eproto();
504 401
402 void InitAsDefaultInstance();
403 static ListValue* default_instance_;
505 }; 404 };
506 // =================================================================== 405 // ===================================================================
507 406
508 407
509 // =================================================================== 408 // ===================================================================
510 409
511 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 410 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
512 // -------------------------------------------------------------------
513
514 // Struct 411 // Struct
515 412
516 // map<string, .google.protobuf.Value> fields = 1; 413 // map<string, .google.protobuf.Value> fields = 1;
517 inline int Struct::fields_size() const { 414 inline int Struct::fields_size() const {
518 return fields_.size(); 415 return fields_.size();
519 } 416 }
520 inline void Struct::clear_fields() { 417 inline void Struct::clear_fields() {
521 fields_.Clear(); 418 fields_.Clear();
522 } 419 }
523 inline const ::google::protobuf::Map< ::std::string, ::google::protobuf::Value > & 420 inline const ::google::protobuf::Map< ::std::string, ::google::protobuf::Value > &
524 Struct::fields() const { 421 Struct::fields() const {
525 // @@protoc_insertion_point(field_map:google.protobuf.Struct.fields) 422 // @@protoc_insertion_point(field_map:google.protobuf.Struct.fields)
526 return fields_.GetMap(); 423 return fields_.GetMap();
527 } 424 }
528 inline ::google::protobuf::Map< ::std::string, ::google::protobuf::Value >* 425 inline ::google::protobuf::Map< ::std::string, ::google::protobuf::Value >*
529 Struct::mutable_fields() { 426 Struct::mutable_fields() {
530 // @@protoc_insertion_point(field_mutable_map:google.protobuf.Struct.fields) 427 // @@protoc_insertion_point(field_mutable_map:google.protobuf.Struct.fields)
531 return fields_.MutableMap(); 428 return fields_.MutableMap();
532 } 429 }
533 430
534 // ------------------------------------------------------------------- 431 // -------------------------------------------------------------------
535 432
536 // Value 433 // Value
537 434
538 // .google.protobuf.NullValue null_value = 1; 435 // optional .google.protobuf.NullValue null_value = 1;
539 inline bool Value::has_null_value() const { 436 inline bool Value::has_null_value() const {
540 return kind_case() == kNullValue; 437 return kind_case() == kNullValue;
541 } 438 }
542 inline void Value::set_has_null_value() { 439 inline void Value::set_has_null_value() {
543 _oneof_case_[0] = kNullValue; 440 _oneof_case_[0] = kNullValue;
544 } 441 }
545 inline void Value::clear_null_value() { 442 inline void Value::clear_null_value() {
546 if (has_null_value()) { 443 if (has_null_value()) {
547 kind_.null_value_ = 0; 444 kind_.null_value_ = 0;
548 clear_has_kind(); 445 clear_has_kind();
549 } 446 }
550 } 447 }
551 inline ::google::protobuf::NullValue Value::null_value() const { 448 inline ::google::protobuf::NullValue Value::null_value() const {
552 // @@protoc_insertion_point(field_get:google.protobuf.Value.null_value) 449 // @@protoc_insertion_point(field_get:google.protobuf.Value.null_value)
553 if (has_null_value()) { 450 if (has_null_value()) {
554 return static_cast< ::google::protobuf::NullValue >(kind_.null_value_); 451 return static_cast< ::google::protobuf::NullValue >(kind_.null_value_);
555 } 452 }
556 return static_cast< ::google::protobuf::NullValue >(0); 453 return static_cast< ::google::protobuf::NullValue >(0);
557 } 454 }
558 inline void Value::set_null_value(::google::protobuf::NullValue value) { 455 inline void Value::set_null_value(::google::protobuf::NullValue value) {
559 if (!has_null_value()) { 456 if (!has_null_value()) {
560 clear_kind(); 457 clear_kind();
561 set_has_null_value(); 458 set_has_null_value();
562 } 459 }
563 kind_.null_value_ = value; 460 kind_.null_value_ = value;
564 // @@protoc_insertion_point(field_set:google.protobuf.Value.null_value) 461 // @@protoc_insertion_point(field_set:google.protobuf.Value.null_value)
565 } 462 }
566 463
567 // double number_value = 2; 464 // optional double number_value = 2;
568 inline bool Value::has_number_value() const { 465 inline bool Value::has_number_value() const {
569 return kind_case() == kNumberValue; 466 return kind_case() == kNumberValue;
570 } 467 }
571 inline void Value::set_has_number_value() { 468 inline void Value::set_has_number_value() {
572 _oneof_case_[0] = kNumberValue; 469 _oneof_case_[0] = kNumberValue;
573 } 470 }
574 inline void Value::clear_number_value() { 471 inline void Value::clear_number_value() {
575 if (has_number_value()) { 472 if (has_number_value()) {
576 kind_.number_value_ = 0; 473 kind_.number_value_ = 0;
577 clear_has_kind(); 474 clear_has_kind();
578 } 475 }
579 } 476 }
580 inline double Value::number_value() const { 477 inline double Value::number_value() const {
581 // @@protoc_insertion_point(field_get:google.protobuf.Value.number_value) 478 // @@protoc_insertion_point(field_get:google.protobuf.Value.number_value)
582 if (has_number_value()) { 479 if (has_number_value()) {
583 return kind_.number_value_; 480 return kind_.number_value_;
584 } 481 }
585 return 0; 482 return 0;
586 } 483 }
587 inline void Value::set_number_value(double value) { 484 inline void Value::set_number_value(double value) {
588 if (!has_number_value()) { 485 if (!has_number_value()) {
589 clear_kind(); 486 clear_kind();
590 set_has_number_value(); 487 set_has_number_value();
591 } 488 }
592 kind_.number_value_ = value; 489 kind_.number_value_ = value;
593 // @@protoc_insertion_point(field_set:google.protobuf.Value.number_value) 490 // @@protoc_insertion_point(field_set:google.protobuf.Value.number_value)
594 } 491 }
595 492
596 // string string_value = 3; 493 // optional string string_value = 3;
597 inline bool Value::has_string_value() const { 494 inline bool Value::has_string_value() const {
598 return kind_case() == kStringValue; 495 return kind_case() == kStringValue;
599 } 496 }
600 inline void Value::set_has_string_value() { 497 inline void Value::set_has_string_value() {
601 _oneof_case_[0] = kStringValue; 498 _oneof_case_[0] = kStringValue;
602 } 499 }
603 inline void Value::clear_string_value() { 500 inline void Value::clear_string_value() {
604 if (has_string_value()) { 501 if (has_string_value()) {
605 kind_.string_value_.Destroy(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), 502 kind_.string_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptySt ringAlreadyInited());
606 GetArenaNoVirtual());
607 clear_has_kind(); 503 clear_has_kind();
608 } 504 }
609 } 505 }
610 inline const ::std::string& Value::string_value() const { 506 inline const ::std::string& Value::string_value() const {
611 // @@protoc_insertion_point(field_get:google.protobuf.Value.string_value) 507 // @@protoc_insertion_point(field_get:google.protobuf.Value.string_value)
612 if (has_string_value()) { 508 if (has_string_value()) {
613 return kind_.string_value_.Get(); 509 return kind_.string_value_.GetNoArena(&::google::protobuf::internal::GetEmpt yStringAlreadyInited());
614 } 510 }
615 return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); 511 return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
616 } 512 }
617 inline void Value::set_string_value(const ::std::string& value) { 513 inline void Value::set_string_value(const ::std::string& value) {
514 // @@protoc_insertion_point(field_set:google.protobuf.Value.string_value)
618 if (!has_string_value()) { 515 if (!has_string_value()) {
619 clear_kind(); 516 clear_kind();
620 set_has_string_value(); 517 set_has_string_value();
621 kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmpty StringAlreadyInited()); 518 kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmpty StringAlreadyInited());
622 } 519 }
623 kind_.string_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited(), value, 520 kind_.string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited(), value);
624 GetArenaNoVirtual());
625 // @@protoc_insertion_point(field_set:google.protobuf.Value.string_value) 521 // @@protoc_insertion_point(field_set:google.protobuf.Value.string_value)
626 } 522 }
627 inline void Value::set_string_value(const char* value) { 523 inline void Value::set_string_value(const char* value) {
628 if (!has_string_value()) { 524 if (!has_string_value()) {
629 clear_kind(); 525 clear_kind();
630 set_has_string_value(); 526 set_has_string_value();
631 kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmpty StringAlreadyInited()); 527 kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmpty StringAlreadyInited());
632 } 528 }
633 kind_.string_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited(), 529 kind_.string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited(),
634 ::std::string(value), GetArenaNoVirtual()); 530 ::std::string(value));
635 // @@protoc_insertion_point(field_set_char:google.protobuf.Value.string_value) 531 // @@protoc_insertion_point(field_set_char:google.protobuf.Value.string_value)
636 } 532 }
637 inline void Value::set_string_value(const char* value, 533 inline void Value::set_string_value(const char* value, size_t size) {
638 size_t size) {
639 if (!has_string_value()) { 534 if (!has_string_value()) {
640 clear_kind(); 535 clear_kind();
641 set_has_string_value(); 536 set_has_string_value();
642 kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmpty StringAlreadyInited()); 537 kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmpty StringAlreadyInited());
643 } 538 }
644 kind_.string_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited(), ::std::string( 539 kind_.string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited(), ::std::string(
645 reinterpret_cast<const char*>(value), size), 540 reinterpret_cast<const char*>(value), size));
646 GetArenaNoVirtual());
647 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Value.string_val ue) 541 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Value.string_val ue)
648 } 542 }
649 inline ::std::string* Value::mutable_string_value() { 543 inline ::std::string* Value::mutable_string_value() {
650 if (!has_string_value()) { 544 if (!has_string_value()) {
651 clear_kind(); 545 clear_kind();
652 set_has_string_value(); 546 set_has_string_value();
653 kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmpty StringAlreadyInited()); 547 kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmpty StringAlreadyInited());
654 } 548 }
655 return kind_.string_value_.Mutable(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited(),
656 GetArenaNoVirtual());
657 // @@protoc_insertion_point(field_mutable:google.protobuf.Value.string_value) 549 // @@protoc_insertion_point(field_mutable:google.protobuf.Value.string_value)
550 return kind_.string_value_.MutableNoArena(&::google::protobuf::internal::GetEm ptyStringAlreadyInited());
658 } 551 }
659 inline ::std::string* Value::release_string_value() { 552 inline ::std::string* Value::release_string_value() {
660 // @@protoc_insertion_point(field_release:google.protobuf.Value.string_value) 553 // @@protoc_insertion_point(field_release:google.protobuf.Value.string_value)
661 if (has_string_value()) { 554 if (has_string_value()) {
662 clear_has_kind(); 555 clear_has_kind();
663 return kind_.string_value_.Release(&::google::protobuf::internal::GetEmptySt ringAlreadyInited(), 556 return kind_.string_value_.ReleaseNoArena(&::google::protobuf::internal::Get EmptyStringAlreadyInited());
664 GetArenaNoVirtual());
665 } else { 557 } else {
666 return NULL; 558 return NULL;
667 } 559 }
668 }
669 inline ::std::string* Value::unsafe_arena_release_string_value() {
670 // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Value.s tring_value)
671 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
672 if (has_string_value()) {
673 clear_has_kind();
674 return kind_.string_value_.UnsafeArenaRelease(
675 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNo Virtual());
676 } else {
677 return NULL;
678 }
679 } 560 }
680 inline void Value::set_allocated_string_value(::std::string* string_value) { 561 inline void Value::set_allocated_string_value(::std::string* string_value) {
681 if (!has_string_value()) { 562 if (!has_string_value()) {
682 kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmpty StringAlreadyInited()); 563 kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmpty StringAlreadyInited());
683 } 564 }
684 clear_kind(); 565 clear_kind();
685 if (string_value != NULL) { 566 if (string_value != NULL) {
686 set_has_string_value(); 567 set_has_string_value();
687 kind_.string_value_.SetAllocated(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited(), string_value, 568 kind_.string_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEm ptyStringAlreadyInited(),
688 GetArenaNoVirtual()); 569 string_value);
689 } 570 }
690 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Value.string_v alue) 571 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Value.string_v alue)
691 } 572 }
692 inline void Value::unsafe_arena_set_allocated_string_value(::std::string* string _value) {
693 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
694 if (!has_string_value()) {
695 kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmpty StringAlreadyInited());
696 }
697 clear_kind();
698 if (string_value) {
699 set_has_string_value();
700 kind_.string_value_.UnsafeArenaSetAllocated(&::google::protobuf::internal::G etEmptyStringAlreadyInited(), string_value, GetArenaNoVirtual());
701 }
702 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.V alue.string_value)
703 }
704 573
705 // bool bool_value = 4; 574 // optional bool bool_value = 4;
706 inline bool Value::has_bool_value() const { 575 inline bool Value::has_bool_value() const {
707 return kind_case() == kBoolValue; 576 return kind_case() == kBoolValue;
708 } 577 }
709 inline void Value::set_has_bool_value() { 578 inline void Value::set_has_bool_value() {
710 _oneof_case_[0] = kBoolValue; 579 _oneof_case_[0] = kBoolValue;
711 } 580 }
712 inline void Value::clear_bool_value() { 581 inline void Value::clear_bool_value() {
713 if (has_bool_value()) { 582 if (has_bool_value()) {
714 kind_.bool_value_ = false; 583 kind_.bool_value_ = false;
715 clear_has_kind(); 584 clear_has_kind();
716 } 585 }
717 } 586 }
718 inline bool Value::bool_value() const { 587 inline bool Value::bool_value() const {
719 // @@protoc_insertion_point(field_get:google.protobuf.Value.bool_value) 588 // @@protoc_insertion_point(field_get:google.protobuf.Value.bool_value)
720 if (has_bool_value()) { 589 if (has_bool_value()) {
721 return kind_.bool_value_; 590 return kind_.bool_value_;
722 } 591 }
723 return false; 592 return false;
724 } 593 }
725 inline void Value::set_bool_value(bool value) { 594 inline void Value::set_bool_value(bool value) {
726 if (!has_bool_value()) { 595 if (!has_bool_value()) {
727 clear_kind(); 596 clear_kind();
728 set_has_bool_value(); 597 set_has_bool_value();
729 } 598 }
730 kind_.bool_value_ = value; 599 kind_.bool_value_ = value;
731 // @@protoc_insertion_point(field_set:google.protobuf.Value.bool_value) 600 // @@protoc_insertion_point(field_set:google.protobuf.Value.bool_value)
732 } 601 }
733 602
734 // .google.protobuf.Struct struct_value = 5; 603 // optional .google.protobuf.Struct struct_value = 5;
735 inline bool Value::has_struct_value() const { 604 inline bool Value::has_struct_value() const {
736 return kind_case() == kStructValue; 605 return kind_case() == kStructValue;
737 } 606 }
738 inline void Value::set_has_struct_value() { 607 inline void Value::set_has_struct_value() {
739 _oneof_case_[0] = kStructValue; 608 _oneof_case_[0] = kStructValue;
740 } 609 }
741 inline void Value::clear_struct_value() { 610 inline void Value::clear_struct_value() {
742 if (has_struct_value()) { 611 if (has_struct_value()) {
743 if (GetArenaNoVirtual() == NULL) { 612 delete kind_.struct_value_;
744 delete kind_.struct_value_;
745 }
746 clear_has_kind(); 613 clear_has_kind();
747 } 614 }
748 } 615 }
749 inline const ::google::protobuf::Struct& Value::struct_value() const { 616 inline const ::google::protobuf::Struct& Value::struct_value() const {
750 // @@protoc_insertion_point(field_get:google.protobuf.Value.struct_value) 617 // @@protoc_insertion_point(field_get:google.protobuf.Value.struct_value)
751 return has_struct_value() 618 return has_struct_value()
752 ? *kind_.struct_value_ 619 ? *kind_.struct_value_
753 : ::google::protobuf::Struct::default_instance(); 620 : ::google::protobuf::Struct::default_instance();
754 } 621 }
755 inline ::google::protobuf::Struct* Value::mutable_struct_value() { 622 inline ::google::protobuf::Struct* Value::mutable_struct_value() {
756 if (!has_struct_value()) { 623 if (!has_struct_value()) {
757 clear_kind(); 624 clear_kind();
758 set_has_struct_value(); 625 set_has_struct_value();
759 kind_.struct_value_ = 626 kind_.struct_value_ = new ::google::protobuf::Struct;
760 ::google::protobuf::Arena::CreateMessage< ::google::protobuf::Struct >(
761 GetArenaNoVirtual());
762 } 627 }
763 // @@protoc_insertion_point(field_mutable:google.protobuf.Value.struct_value) 628 // @@protoc_insertion_point(field_mutable:google.protobuf.Value.struct_value)
764 return kind_.struct_value_; 629 return kind_.struct_value_;
765 } 630 }
766 inline ::google::protobuf::Struct* Value::release_struct_value() { 631 inline ::google::protobuf::Struct* Value::release_struct_value() {
767 // @@protoc_insertion_point(field_release:google.protobuf.Value.struct_value) 632 // @@protoc_insertion_point(field_release:google.protobuf.Value.struct_value)
768 if (has_struct_value()) { 633 if (has_struct_value()) {
769 clear_has_kind(); 634 clear_has_kind();
770 if (GetArenaNoVirtual() != NULL) {
771 ::google::protobuf::Struct* temp = new ::google::protobuf::Struct(*kind_.s truct_value_);
772 kind_.struct_value_ = NULL;
773 return temp;
774 } else {
775 ::google::protobuf::Struct* temp = kind_.struct_value_;
776 kind_.struct_value_ = NULL;
777 return temp;
778 }
779 } else {
780 return NULL;
781 }
782 }
783 inline void Value::set_allocated_struct_value(::google::protobuf::Struct* struct _value) {
784 clear_kind();
785 if (struct_value) {
786 if (GetArenaNoVirtual() != NULL &&
787 ::google::protobuf::Arena::GetArena(struct_value) == NULL) {
788 GetArenaNoVirtual()->Own(struct_value);
789 } else if (GetArenaNoVirtual() !=
790 ::google::protobuf::Arena::GetArena(struct_value)) {
791 ::google::protobuf::Struct* new_struct_value =
792 ::google::protobuf::Arena::CreateMessage< ::google::protobuf::Struct > (
793 GetArenaNoVirtual());
794 new_struct_value->CopyFrom(*struct_value);
795 struct_value = new_struct_value;
796 }
797 set_has_struct_value();
798 kind_.struct_value_ = struct_value;
799 }
800 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Value.struct_v alue)
801 }
802 inline ::google::protobuf::Struct* Value::unsafe_arena_release_struct_value() {
803 // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Value.s truct_value)
804 if (has_struct_value()) {
805 clear_has_kind();
806 ::google::protobuf::Struct* temp = kind_.struct_value_; 635 ::google::protobuf::Struct* temp = kind_.struct_value_;
807 kind_.struct_value_ = NULL; 636 kind_.struct_value_ = NULL;
808 return temp; 637 return temp;
809 } else { 638 } else {
810 return NULL; 639 return NULL;
811 } 640 }
812 } 641 }
813 inline void Value::unsafe_arena_set_allocated_struct_value(::google::protobuf:: Struct* struct_value) { 642 inline void Value::set_allocated_struct_value(::google::protobuf::Struct* struct _value) {
814 clear_kind(); 643 clear_kind();
815 if (struct_value) { 644 if (struct_value) {
816 set_has_struct_value(); 645 set_has_struct_value();
817 kind_.struct_value_ = struct_value; 646 kind_.struct_value_ = struct_value;
818 } 647 }
819 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.V alue.struct_value) 648 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Value.struct_v alue)
820 } 649 }
821 650
822 // .google.protobuf.ListValue list_value = 6; 651 // optional .google.protobuf.ListValue list_value = 6;
823 inline bool Value::has_list_value() const { 652 inline bool Value::has_list_value() const {
824 return kind_case() == kListValue; 653 return kind_case() == kListValue;
825 } 654 }
826 inline void Value::set_has_list_value() { 655 inline void Value::set_has_list_value() {
827 _oneof_case_[0] = kListValue; 656 _oneof_case_[0] = kListValue;
828 } 657 }
829 inline void Value::clear_list_value() { 658 inline void Value::clear_list_value() {
830 if (has_list_value()) { 659 if (has_list_value()) {
831 if (GetArenaNoVirtual() == NULL) { 660 delete kind_.list_value_;
832 delete kind_.list_value_;
833 }
834 clear_has_kind(); 661 clear_has_kind();
835 } 662 }
836 } 663 }
837 inline const ::google::protobuf::ListValue& Value::list_value() const { 664 inline const ::google::protobuf::ListValue& Value::list_value() const {
838 // @@protoc_insertion_point(field_get:google.protobuf.Value.list_value) 665 // @@protoc_insertion_point(field_get:google.protobuf.Value.list_value)
839 return has_list_value() 666 return has_list_value()
840 ? *kind_.list_value_ 667 ? *kind_.list_value_
841 : ::google::protobuf::ListValue::default_instance(); 668 : ::google::protobuf::ListValue::default_instance();
842 } 669 }
843 inline ::google::protobuf::ListValue* Value::mutable_list_value() { 670 inline ::google::protobuf::ListValue* Value::mutable_list_value() {
844 if (!has_list_value()) { 671 if (!has_list_value()) {
845 clear_kind(); 672 clear_kind();
846 set_has_list_value(); 673 set_has_list_value();
847 kind_.list_value_ = 674 kind_.list_value_ = new ::google::protobuf::ListValue;
848 ::google::protobuf::Arena::CreateMessage< ::google::protobuf::ListValue >(
849 GetArenaNoVirtual());
850 } 675 }
851 // @@protoc_insertion_point(field_mutable:google.protobuf.Value.list_value) 676 // @@protoc_insertion_point(field_mutable:google.protobuf.Value.list_value)
852 return kind_.list_value_; 677 return kind_.list_value_;
853 } 678 }
854 inline ::google::protobuf::ListValue* Value::release_list_value() { 679 inline ::google::protobuf::ListValue* Value::release_list_value() {
855 // @@protoc_insertion_point(field_release:google.protobuf.Value.list_value) 680 // @@protoc_insertion_point(field_release:google.protobuf.Value.list_value)
856 if (has_list_value()) { 681 if (has_list_value()) {
857 clear_has_kind(); 682 clear_has_kind();
858 if (GetArenaNoVirtual() != NULL) {
859 ::google::protobuf::ListValue* temp = new ::google::protobuf::ListValue(*k ind_.list_value_);
860 kind_.list_value_ = NULL;
861 return temp;
862 } else {
863 ::google::protobuf::ListValue* temp = kind_.list_value_;
864 kind_.list_value_ = NULL;
865 return temp;
866 }
867 } else {
868 return NULL;
869 }
870 }
871 inline void Value::set_allocated_list_value(::google::protobuf::ListValue* list_ value) {
872 clear_kind();
873 if (list_value) {
874 if (GetArenaNoVirtual() != NULL &&
875 ::google::protobuf::Arena::GetArena(list_value) == NULL) {
876 GetArenaNoVirtual()->Own(list_value);
877 } else if (GetArenaNoVirtual() !=
878 ::google::protobuf::Arena::GetArena(list_value)) {
879 ::google::protobuf::ListValue* new_list_value =
880 ::google::protobuf::Arena::CreateMessage< ::google::protobuf::ListValu e >(
881 GetArenaNoVirtual());
882 new_list_value->CopyFrom(*list_value);
883 list_value = new_list_value;
884 }
885 set_has_list_value();
886 kind_.list_value_ = list_value;
887 }
888 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Value.list_val ue)
889 }
890 inline ::google::protobuf::ListValue* Value::unsafe_arena_release_list_value() {
891 // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Value.l ist_value)
892 if (has_list_value()) {
893 clear_has_kind();
894 ::google::protobuf::ListValue* temp = kind_.list_value_; 683 ::google::protobuf::ListValue* temp = kind_.list_value_;
895 kind_.list_value_ = NULL; 684 kind_.list_value_ = NULL;
896 return temp; 685 return temp;
897 } else { 686 } else {
898 return NULL; 687 return NULL;
899 } 688 }
900 } 689 }
901 inline void Value::unsafe_arena_set_allocated_list_value(::google::protobuf::Li stValue* list_value) { 690 inline void Value::set_allocated_list_value(::google::protobuf::ListValue* list_ value) {
902 clear_kind(); 691 clear_kind();
903 if (list_value) { 692 if (list_value) {
904 set_has_list_value(); 693 set_has_list_value();
905 kind_.list_value_ = list_value; 694 kind_.list_value_ = list_value;
906 } 695 }
907 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.V alue.list_value) 696 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Value.list_val ue)
908 } 697 }
909 698
910 inline bool Value::has_kind() const { 699 inline bool Value::has_kind() const {
911 return kind_case() != KIND_NOT_SET; 700 return kind_case() != KIND_NOT_SET;
912 } 701 }
913 inline void Value::clear_has_kind() { 702 inline void Value::clear_has_kind() {
914 _oneof_case_[0] = KIND_NOT_SET; 703 _oneof_case_[0] = KIND_NOT_SET;
915 } 704 }
916 inline Value::KindCase Value::kind_case() const { 705 inline Value::KindCase Value::kind_case() const {
917 return Value::KindCase(_oneof_case_[0]); 706 return Value::KindCase(_oneof_case_[0]);
(...skipping 30 matching lines...) Expand all
948 ListValue::values() const { 737 ListValue::values() const {
949 // @@protoc_insertion_point(field_list:google.protobuf.ListValue.values) 738 // @@protoc_insertion_point(field_list:google.protobuf.ListValue.values)
950 return values_; 739 return values_;
951 } 740 }
952 741
953 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 742 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
954 // ------------------------------------------------------------------- 743 // -------------------------------------------------------------------
955 744
956 // ------------------------------------------------------------------- 745 // -------------------------------------------------------------------
957 746
958 // -------------------------------------------------------------------
959
960 747
961 // @@protoc_insertion_point(namespace_scope) 748 // @@protoc_insertion_point(namespace_scope)
962 749
963
964 } // namespace protobuf 750 } // namespace protobuf
965 } // namespace google 751 } // namespace google
966 752
967 #ifndef SWIG 753 #ifndef SWIG
968 namespace google { 754 namespace google {
969 namespace protobuf { 755 namespace protobuf {
970 756
971 template <> struct is_proto_enum< ::google::protobuf::NullValue> : ::google::pro tobuf::internal::true_type {}; 757 template <> struct is_proto_enum< ::google::protobuf::NullValue> : ::google::pro tobuf::internal::true_type {};
972 template <> 758 template <>
973 inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::NullValue>() { 759 inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::NullValue>() {
974 return ::google::protobuf::NullValue_descriptor(); 760 return ::google::protobuf::NullValue_descriptor();
975 } 761 }
976 762
977 } // namespace protobuf 763 } // namespace protobuf
978 } // namespace google 764 } // namespace google
979 #endif // SWIG 765 #endif // SWIG
980 766
981 // @@protoc_insertion_point(global_scope) 767 // @@protoc_insertion_point(global_scope)
982 768
983 #endif // PROTOBUF_google_2fprotobuf_2fstruct_2eproto__INCLUDED 769 #endif // PROTOBUF_google_2fprotobuf_2fstruct_2eproto__INCLUDED
OLDNEW
« no previous file with comments | « third_party/protobuf/src/google/protobuf/struct.proto ('k') | third_party/protobuf/src/google/protobuf/struct.pb.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698