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

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

Issue 2495533002: third_party/protobuf: Update to HEAD (83d681ee2c) (Closed)
Patch Set: Make chrome settings proto generated file a component 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/type.proto 2 // source: google/protobuf/type.proto
3 3
4 #ifndef PROTOBUF_google_2fprotobuf_2ftype_2eproto__INCLUDED 4 #ifndef PROTOBUF_google_2fprotobuf_2ftype_2eproto__INCLUDED
5 #define PROTOBUF_google_2fprotobuf_2ftype_2eproto__INCLUDED 5 #define PROTOBUF_google_2fprotobuf_2ftype_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 < 3000000 11 #if GOOGLE_PROTOBUF_VERSION < 3001000
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 3000000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION 16 #if 3001000 < 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> 27 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
28 #include <google/protobuf/extension_set.h> 28 #include <google/protobuf/extension_set.h> // IWYU pragma: export
29 #include <google/protobuf/generated_enum_reflection.h> 29 #include <google/protobuf/generated_enum_reflection.h>
30 #include <google/protobuf/unknown_field_set.h> 30 #include <google/protobuf/unknown_field_set.h>
31 #include <google/protobuf/any.pb.h> 31 #include <google/protobuf/any.pb.h>
32 #include <google/protobuf/source_context.pb.h> 32 #include <google/protobuf/source_context.pb.h>
33 // @@protoc_insertion_point(includes) 33 // @@protoc_insertion_point(includes)
34 namespace google {
35 namespace protobuf {
36 class Any;
37 class AnyDefaultTypeInternal;
38 LIBPROTOBUF_EXPORT extern AnyDefaultTypeInternal _Any_default_instance_;
39 class Enum;
40 class EnumDefaultTypeInternal;
41 LIBPROTOBUF_EXPORT extern EnumDefaultTypeInternal _Enum_default_instance_;
42 class EnumValue;
43 class EnumValueDefaultTypeInternal;
44 LIBPROTOBUF_EXPORT extern EnumValueDefaultTypeInternal _EnumValue_default_instan ce_;
45 class Field;
46 class FieldDefaultTypeInternal;
47 LIBPROTOBUF_EXPORT extern FieldDefaultTypeInternal _Field_default_instance_;
48 class Option;
49 class OptionDefaultTypeInternal;
50 LIBPROTOBUF_EXPORT extern OptionDefaultTypeInternal _Option_default_instance_;
51 class SourceContext;
52 class SourceContextDefaultTypeInternal;
53 LIBPROTOBUF_EXPORT extern SourceContextDefaultTypeInternal _SourceContext_defaul t_instance_;
54 class Type;
55 class TypeDefaultTypeInternal;
56 LIBPROTOBUF_EXPORT extern TypeDefaultTypeInternal _Type_default_instance_;
57 } // namespace protobuf
58 } // namespace google
34 59
35 namespace google { 60 namespace google {
36 namespace protobuf { 61 namespace protobuf {
37 62
38 // Internal implementation detail -- do not call these. 63 // Internal implementation detail -- do not call these.
39 void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2ftype_2eproto(); 64 void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2ftype_2eproto();
40 void protobuf_AssignDesc_google_2fprotobuf_2ftype_2eproto(); 65 void LIBPROTOBUF_EXPORT protobuf_InitDefaults_google_2fprotobuf_2ftype_2eproto() ;
41 void protobuf_ShutdownFile_google_2fprotobuf_2ftype_2eproto();
42
43 class Enum;
44 class EnumValue;
45 class Field;
46 class Option;
47 class Type;
48 66
49 enum Field_Kind { 67 enum Field_Kind {
50 Field_Kind_TYPE_UNKNOWN = 0, 68 Field_Kind_TYPE_UNKNOWN = 0,
51 Field_Kind_TYPE_DOUBLE = 1, 69 Field_Kind_TYPE_DOUBLE = 1,
52 Field_Kind_TYPE_FLOAT = 2, 70 Field_Kind_TYPE_FLOAT = 2,
53 Field_Kind_TYPE_INT64 = 3, 71 Field_Kind_TYPE_INT64 = 3,
54 Field_Kind_TYPE_UINT64 = 4, 72 Field_Kind_TYPE_UINT64 = 4,
55 Field_Kind_TYPE_INT32 = 5, 73 Field_Kind_TYPE_INT32 = 5,
56 Field_Kind_TYPE_FIXED64 = 6, 74 Field_Kind_TYPE_FIXED64 = 6,
57 Field_Kind_TYPE_FIXED32 = 7, 75 Field_Kind_TYPE_FIXED32 = 7,
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 return ::google::protobuf::internal::NameOfEnum( 141 return ::google::protobuf::internal::NameOfEnum(
124 Syntax_descriptor(), value); 142 Syntax_descriptor(), value);
125 } 143 }
126 inline bool Syntax_Parse( 144 inline bool Syntax_Parse(
127 const ::std::string& name, Syntax* value) { 145 const ::std::string& name, Syntax* value) {
128 return ::google::protobuf::internal::ParseNamedEnum<Syntax>( 146 return ::google::protobuf::internal::ParseNamedEnum<Syntax>(
129 Syntax_descriptor(), name, value); 147 Syntax_descriptor(), name, value);
130 } 148 }
131 // =================================================================== 149 // ===================================================================
132 150
133 class LIBPROTOBUF_EXPORT Type : public ::google::protobuf::Message { 151 class LIBPROTOBUF_EXPORT Type : public ::google::protobuf::Message /* @@protoc_i nsertion_point(class_definition:google.protobuf.Type) */ {
134 public: 152 public:
135 Type(); 153 Type();
136 virtual ~Type(); 154 virtual ~Type();
137 155
138 Type(const Type& from); 156 Type(const Type& from);
139 157
140 inline Type& operator=(const Type& from) { 158 inline Type& operator=(const Type& from) {
141 CopyFrom(from); 159 CopyFrom(from);
142 return *this; 160 return *this;
143 } 161 }
144 162
163 inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
164 return GetArenaNoVirtual();
165 }
166 inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
167 return MaybeArenaPtr();
168 }
145 static const ::google::protobuf::Descriptor* descriptor(); 169 static const ::google::protobuf::Descriptor* descriptor();
146 static const Type& default_instance(); 170 static const Type& default_instance();
147 171
172 static inline const Type* internal_default_instance() {
173 return reinterpret_cast<const Type*>(
174 &_Type_default_instance_);
175 }
176
177 void UnsafeArenaSwap(Type* other);
148 void Swap(Type* other); 178 void Swap(Type* other);
149 179
150 // implements Message ---------------------------------------------- 180 // implements Message ----------------------------------------------
151 181
152 inline Type* New() const { return New(NULL); } 182 inline Type* New() const PROTOBUF_FINAL { return New(NULL); }
153 183
154 Type* New(::google::protobuf::Arena* arena) const; 184 Type* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
155 void CopyFrom(const ::google::protobuf::Message& from); 185 void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
156 void MergeFrom(const ::google::protobuf::Message& from); 186 void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
157 void CopyFrom(const Type& from); 187 void CopyFrom(const Type& from);
158 void MergeFrom(const Type& from); 188 void MergeFrom(const Type& from);
159 void Clear(); 189 void Clear() PROTOBUF_FINAL;
160 bool IsInitialized() const; 190 bool IsInitialized() const PROTOBUF_FINAL;
161 191
162 int ByteSize() const; 192 size_t ByteSizeLong() const PROTOBUF_FINAL;
163 bool MergePartialFromCodedStream( 193 bool MergePartialFromCodedStream(
164 ::google::protobuf::io::CodedInputStream* input); 194 ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
165 void SerializeWithCachedSizes( 195 void SerializeWithCachedSizes(
166 ::google::protobuf::io::CodedOutputStream* output) const; 196 ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
167 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf: :uint8* output) const; 197 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
168 int GetCachedSize() const { return _cached_size_; } 198 bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINA L;
199 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf: :uint8* output)
200 const PROTOBUF_FINAL {
201 return InternalSerializeWithCachedSizesToArray(false, output);
202 }
203 int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
169 private: 204 private:
170 void SharedCtor(); 205 void SharedCtor();
171 void SharedDtor(); 206 void SharedDtor();
172 void SetCachedSize(int size) const; 207 void SetCachedSize(int size) const PROTOBUF_FINAL;
173 void InternalSwap(Type* other); 208 void InternalSwap(Type* other);
209 protected:
210 explicit Type(::google::protobuf::Arena* arena);
211 private:
212 static void ArenaDtor(void* object);
213 inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
174 private: 214 private:
175 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 215 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
176 return _internal_metadata_.arena(); 216 return _internal_metadata_.arena();
177 } 217 }
178 inline void* MaybeArenaPtr() const { 218 inline void* MaybeArenaPtr() const {
179 return _internal_metadata_.raw_arena_ptr(); 219 return _internal_metadata_.raw_arena_ptr();
180 } 220 }
181 public: 221 public:
182 222
183 ::google::protobuf::Metadata GetMetadata() const; 223 ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
184 224
185 // nested types ---------------------------------------------------- 225 // nested types ----------------------------------------------------
186 226
187 // accessors ------------------------------------------------------- 227 // accessors -------------------------------------------------------
188 228
189 // optional string name = 1; 229 // string name = 1;
190 void clear_name(); 230 void clear_name();
191 static const int kNameFieldNumber = 1; 231 static const int kNameFieldNumber = 1;
192 const ::std::string& name() const; 232 const ::std::string& name() const;
193 void set_name(const ::std::string& value); 233 void set_name(const ::std::string& value);
194 void set_name(const char* value); 234 void set_name(const char* value);
195 void set_name(const char* value, size_t size); 235 void set_name(const char* value, size_t size);
196 ::std::string* mutable_name(); 236 ::std::string* mutable_name();
197 ::std::string* release_name(); 237 ::std::string* release_name();
198 void set_allocated_name(::std::string* name); 238 void set_allocated_name(::std::string* name);
239 ::std::string* unsafe_arena_release_name();
240 void unsafe_arena_set_allocated_name(
241 ::std::string* name);
199 242
200 // repeated .google.protobuf.Field fields = 2; 243 // repeated .google.protobuf.Field fields = 2;
201 int fields_size() const; 244 int fields_size() const;
202 void clear_fields(); 245 void clear_fields();
203 static const int kFieldsFieldNumber = 2; 246 static const int kFieldsFieldNumber = 2;
204 const ::google::protobuf::Field& fields(int index) const; 247 const ::google::protobuf::Field& fields(int index) const;
205 ::google::protobuf::Field* mutable_fields(int index); 248 ::google::protobuf::Field* mutable_fields(int index);
206 ::google::protobuf::Field* add_fields(); 249 ::google::protobuf::Field* add_fields();
207 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Field >* 250 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Field >*
208 mutable_fields(); 251 mutable_fields();
(...skipping 21 matching lines...) Expand all
230 void clear_options(); 273 void clear_options();
231 static const int kOptionsFieldNumber = 4; 274 static const int kOptionsFieldNumber = 4;
232 const ::google::protobuf::Option& options(int index) const; 275 const ::google::protobuf::Option& options(int index) const;
233 ::google::protobuf::Option* mutable_options(int index); 276 ::google::protobuf::Option* mutable_options(int index);
234 ::google::protobuf::Option* add_options(); 277 ::google::protobuf::Option* add_options();
235 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >* 278 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
236 mutable_options(); 279 mutable_options();
237 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >& 280 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
238 options() const; 281 options() const;
239 282
240 // optional .google.protobuf.SourceContext source_context = 5; 283 // .google.protobuf.SourceContext source_context = 5;
241 bool has_source_context() const; 284 bool has_source_context() const;
242 void clear_source_context(); 285 void clear_source_context();
243 static const int kSourceContextFieldNumber = 5; 286 static const int kSourceContextFieldNumber = 5;
287 private:
288 void _slow_mutable_source_context();
289 ::google::protobuf::SourceContext* _slow_release_source_context();
290 public:
244 const ::google::protobuf::SourceContext& source_context() const; 291 const ::google::protobuf::SourceContext& source_context() const;
245 ::google::protobuf::SourceContext* mutable_source_context(); 292 ::google::protobuf::SourceContext* mutable_source_context();
246 ::google::protobuf::SourceContext* release_source_context(); 293 ::google::protobuf::SourceContext* release_source_context();
247 void set_allocated_source_context(::google::protobuf::SourceContext* source_co ntext); 294 void set_allocated_source_context(::google::protobuf::SourceContext* source_co ntext);
295 ::google::protobuf::SourceContext* unsafe_arena_release_source_context();
296 void unsafe_arena_set_allocated_source_context(
297 ::google::protobuf::SourceContext* source_context);
248 298
249 // optional .google.protobuf.Syntax syntax = 6; 299 // .google.protobuf.Syntax syntax = 6;
250 void clear_syntax(); 300 void clear_syntax();
251 static const int kSyntaxFieldNumber = 6; 301 static const int kSyntaxFieldNumber = 6;
252 ::google::protobuf::Syntax syntax() const; 302 ::google::protobuf::Syntax syntax() const;
253 void set_syntax(::google::protobuf::Syntax value); 303 void set_syntax(::google::protobuf::Syntax value);
254 304
255 // @@protoc_insertion_point(class_scope:google.protobuf.Type) 305 // @@protoc_insertion_point(class_scope:google.protobuf.Type)
256 private: 306 private:
257 307
258 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; 308 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
259 bool _is_default_instance_; 309 friend class ::google::protobuf::Arena;
260 ::google::protobuf::internal::ArenaStringPtr name_; 310 typedef void InternalArenaConstructable_;
311 typedef void DestructorSkippable_;
261 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Field > fields_; 312 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Field > fields_;
262 ::google::protobuf::RepeatedPtrField< ::std::string> oneofs_; 313 ::google::protobuf::RepeatedPtrField< ::std::string> oneofs_;
263 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > options_; 314 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > options_;
315 ::google::protobuf::internal::ArenaStringPtr name_;
264 ::google::protobuf::SourceContext* source_context_; 316 ::google::protobuf::SourceContext* source_context_;
265 int syntax_; 317 int syntax_;
266 mutable int _cached_size_; 318 mutable int _cached_size_;
267 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2ftype_2epro to(); 319 friend void LIBPROTOBUF_EXPORT protobuf_InitDefaults_google_2fprotobuf_2ftype_ 2eproto_impl();
268 friend void protobuf_AssignDesc_google_2fprotobuf_2ftype_2eproto(); 320 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2ftype_2epro to_impl();
321 friend const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2f type_2eproto();
269 friend void protobuf_ShutdownFile_google_2fprotobuf_2ftype_2eproto(); 322 friend void protobuf_ShutdownFile_google_2fprotobuf_2ftype_2eproto();
270 323
271 void InitAsDefaultInstance();
272 static Type* default_instance_;
273 }; 324 };
274 // ------------------------------------------------------------------- 325 // -------------------------------------------------------------------
275 326
276 class LIBPROTOBUF_EXPORT Field : public ::google::protobuf::Message { 327 class LIBPROTOBUF_EXPORT Field : public ::google::protobuf::Message /* @@protoc_ insertion_point(class_definition:google.protobuf.Field) */ {
277 public: 328 public:
278 Field(); 329 Field();
279 virtual ~Field(); 330 virtual ~Field();
280 331
281 Field(const Field& from); 332 Field(const Field& from);
282 333
283 inline Field& operator=(const Field& from) { 334 inline Field& operator=(const Field& from) {
284 CopyFrom(from); 335 CopyFrom(from);
285 return *this; 336 return *this;
286 } 337 }
287 338
339 inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
340 return GetArenaNoVirtual();
341 }
342 inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
343 return MaybeArenaPtr();
344 }
288 static const ::google::protobuf::Descriptor* descriptor(); 345 static const ::google::protobuf::Descriptor* descriptor();
289 static const Field& default_instance(); 346 static const Field& default_instance();
290 347
348 static inline const Field* internal_default_instance() {
349 return reinterpret_cast<const Field*>(
350 &_Field_default_instance_);
351 }
352
353 void UnsafeArenaSwap(Field* other);
291 void Swap(Field* other); 354 void Swap(Field* other);
292 355
293 // implements Message ---------------------------------------------- 356 // implements Message ----------------------------------------------
294 357
295 inline Field* New() const { return New(NULL); } 358 inline Field* New() const PROTOBUF_FINAL { return New(NULL); }
296 359
297 Field* New(::google::protobuf::Arena* arena) const; 360 Field* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
298 void CopyFrom(const ::google::protobuf::Message& from); 361 void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
299 void MergeFrom(const ::google::protobuf::Message& from); 362 void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
300 void CopyFrom(const Field& from); 363 void CopyFrom(const Field& from);
301 void MergeFrom(const Field& from); 364 void MergeFrom(const Field& from);
302 void Clear(); 365 void Clear() PROTOBUF_FINAL;
303 bool IsInitialized() const; 366 bool IsInitialized() const PROTOBUF_FINAL;
304 367
305 int ByteSize() const; 368 size_t ByteSizeLong() const PROTOBUF_FINAL;
306 bool MergePartialFromCodedStream( 369 bool MergePartialFromCodedStream(
307 ::google::protobuf::io::CodedInputStream* input); 370 ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
308 void SerializeWithCachedSizes( 371 void SerializeWithCachedSizes(
309 ::google::protobuf::io::CodedOutputStream* output) const; 372 ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
310 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf: :uint8* output) const; 373 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
311 int GetCachedSize() const { return _cached_size_; } 374 bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINA L;
375 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf: :uint8* output)
376 const PROTOBUF_FINAL {
377 return InternalSerializeWithCachedSizesToArray(false, output);
378 }
379 int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
312 private: 380 private:
313 void SharedCtor(); 381 void SharedCtor();
314 void SharedDtor(); 382 void SharedDtor();
315 void SetCachedSize(int size) const; 383 void SetCachedSize(int size) const PROTOBUF_FINAL;
316 void InternalSwap(Field* other); 384 void InternalSwap(Field* other);
385 protected:
386 explicit Field(::google::protobuf::Arena* arena);
387 private:
388 static void ArenaDtor(void* object);
389 inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
317 private: 390 private:
318 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 391 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
319 return _internal_metadata_.arena(); 392 return _internal_metadata_.arena();
320 } 393 }
321 inline void* MaybeArenaPtr() const { 394 inline void* MaybeArenaPtr() const {
322 return _internal_metadata_.raw_arena_ptr(); 395 return _internal_metadata_.raw_arena_ptr();
323 } 396 }
324 public: 397 public:
325 398
326 ::google::protobuf::Metadata GetMetadata() const; 399 ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
327 400
328 // nested types ---------------------------------------------------- 401 // nested types ----------------------------------------------------
329 402
330 typedef Field_Kind Kind; 403 typedef Field_Kind Kind;
331 static const Kind TYPE_UNKNOWN = 404 static const Kind TYPE_UNKNOWN =
332 Field_Kind_TYPE_UNKNOWN; 405 Field_Kind_TYPE_UNKNOWN;
333 static const Kind TYPE_DOUBLE = 406 static const Kind TYPE_DOUBLE =
334 Field_Kind_TYPE_DOUBLE; 407 Field_Kind_TYPE_DOUBLE;
335 static const Kind TYPE_FLOAT = 408 static const Kind TYPE_FLOAT =
336 Field_Kind_TYPE_FLOAT; 409 Field_Kind_TYPE_FLOAT;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 static inline const ::std::string& Cardinality_Name(Cardinality value) { 485 static inline const ::std::string& Cardinality_Name(Cardinality value) {
413 return Field_Cardinality_Name(value); 486 return Field_Cardinality_Name(value);
414 } 487 }
415 static inline bool Cardinality_Parse(const ::std::string& name, 488 static inline bool Cardinality_Parse(const ::std::string& name,
416 Cardinality* value) { 489 Cardinality* value) {
417 return Field_Cardinality_Parse(name, value); 490 return Field_Cardinality_Parse(name, value);
418 } 491 }
419 492
420 // accessors ------------------------------------------------------- 493 // accessors -------------------------------------------------------
421 494
422 // optional .google.protobuf.Field.Kind kind = 1; 495 // .google.protobuf.Field.Kind kind = 1;
423 void clear_kind(); 496 void clear_kind();
424 static const int kKindFieldNumber = 1; 497 static const int kKindFieldNumber = 1;
425 ::google::protobuf::Field_Kind kind() const; 498 ::google::protobuf::Field_Kind kind() const;
426 void set_kind(::google::protobuf::Field_Kind value); 499 void set_kind(::google::protobuf::Field_Kind value);
427 500
428 // optional .google.protobuf.Field.Cardinality cardinality = 2; 501 // .google.protobuf.Field.Cardinality cardinality = 2;
429 void clear_cardinality(); 502 void clear_cardinality();
430 static const int kCardinalityFieldNumber = 2; 503 static const int kCardinalityFieldNumber = 2;
431 ::google::protobuf::Field_Cardinality cardinality() const; 504 ::google::protobuf::Field_Cardinality cardinality() const;
432 void set_cardinality(::google::protobuf::Field_Cardinality value); 505 void set_cardinality(::google::protobuf::Field_Cardinality value);
433 506
434 // optional int32 number = 3; 507 // int32 number = 3;
435 void clear_number(); 508 void clear_number();
436 static const int kNumberFieldNumber = 3; 509 static const int kNumberFieldNumber = 3;
437 ::google::protobuf::int32 number() const; 510 ::google::protobuf::int32 number() const;
438 void set_number(::google::protobuf::int32 value); 511 void set_number(::google::protobuf::int32 value);
439 512
440 // optional string name = 4; 513 // string name = 4;
441 void clear_name(); 514 void clear_name();
442 static const int kNameFieldNumber = 4; 515 static const int kNameFieldNumber = 4;
443 const ::std::string& name() const; 516 const ::std::string& name() const;
444 void set_name(const ::std::string& value); 517 void set_name(const ::std::string& value);
445 void set_name(const char* value); 518 void set_name(const char* value);
446 void set_name(const char* value, size_t size); 519 void set_name(const char* value, size_t size);
447 ::std::string* mutable_name(); 520 ::std::string* mutable_name();
448 ::std::string* release_name(); 521 ::std::string* release_name();
449 void set_allocated_name(::std::string* name); 522 void set_allocated_name(::std::string* name);
523 ::std::string* unsafe_arena_release_name();
524 void unsafe_arena_set_allocated_name(
525 ::std::string* name);
450 526
451 // optional string type_url = 6; 527 // string type_url = 6;
452 void clear_type_url(); 528 void clear_type_url();
453 static const int kTypeUrlFieldNumber = 6; 529 static const int kTypeUrlFieldNumber = 6;
454 const ::std::string& type_url() const; 530 const ::std::string& type_url() const;
455 void set_type_url(const ::std::string& value); 531 void set_type_url(const ::std::string& value);
456 void set_type_url(const char* value); 532 void set_type_url(const char* value);
457 void set_type_url(const char* value, size_t size); 533 void set_type_url(const char* value, size_t size);
458 ::std::string* mutable_type_url(); 534 ::std::string* mutable_type_url();
459 ::std::string* release_type_url(); 535 ::std::string* release_type_url();
460 void set_allocated_type_url(::std::string* type_url); 536 void set_allocated_type_url(::std::string* type_url);
537 ::std::string* unsafe_arena_release_type_url();
538 void unsafe_arena_set_allocated_type_url(
539 ::std::string* type_url);
461 540
462 // optional int32 oneof_index = 7; 541 // int32 oneof_index = 7;
463 void clear_oneof_index(); 542 void clear_oneof_index();
464 static const int kOneofIndexFieldNumber = 7; 543 static const int kOneofIndexFieldNumber = 7;
465 ::google::protobuf::int32 oneof_index() const; 544 ::google::protobuf::int32 oneof_index() const;
466 void set_oneof_index(::google::protobuf::int32 value); 545 void set_oneof_index(::google::protobuf::int32 value);
467 546
468 // optional bool packed = 8; 547 // bool packed = 8;
469 void clear_packed(); 548 void clear_packed();
470 static const int kPackedFieldNumber = 8; 549 static const int kPackedFieldNumber = 8;
471 bool packed() const; 550 bool packed() const;
472 void set_packed(bool value); 551 void set_packed(bool value);
473 552
474 // repeated .google.protobuf.Option options = 9; 553 // repeated .google.protobuf.Option options = 9;
475 int options_size() const; 554 int options_size() const;
476 void clear_options(); 555 void clear_options();
477 static const int kOptionsFieldNumber = 9; 556 static const int kOptionsFieldNumber = 9;
478 const ::google::protobuf::Option& options(int index) const; 557 const ::google::protobuf::Option& options(int index) const;
479 ::google::protobuf::Option* mutable_options(int index); 558 ::google::protobuf::Option* mutable_options(int index);
480 ::google::protobuf::Option* add_options(); 559 ::google::protobuf::Option* add_options();
481 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >* 560 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
482 mutable_options(); 561 mutable_options();
483 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >& 562 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
484 options() const; 563 options() const;
485 564
486 // optional string json_name = 10; 565 // string json_name = 10;
487 void clear_json_name(); 566 void clear_json_name();
488 static const int kJsonNameFieldNumber = 10; 567 static const int kJsonNameFieldNumber = 10;
489 const ::std::string& json_name() const; 568 const ::std::string& json_name() const;
490 void set_json_name(const ::std::string& value); 569 void set_json_name(const ::std::string& value);
491 void set_json_name(const char* value); 570 void set_json_name(const char* value);
492 void set_json_name(const char* value, size_t size); 571 void set_json_name(const char* value, size_t size);
493 ::std::string* mutable_json_name(); 572 ::std::string* mutable_json_name();
494 ::std::string* release_json_name(); 573 ::std::string* release_json_name();
495 void set_allocated_json_name(::std::string* json_name); 574 void set_allocated_json_name(::std::string* json_name);
575 ::std::string* unsafe_arena_release_json_name();
576 void unsafe_arena_set_allocated_json_name(
577 ::std::string* json_name);
496 578
497 // optional string default_value = 11; 579 // string default_value = 11;
498 void clear_default_value(); 580 void clear_default_value();
499 static const int kDefaultValueFieldNumber = 11; 581 static const int kDefaultValueFieldNumber = 11;
500 const ::std::string& default_value() const; 582 const ::std::string& default_value() const;
501 void set_default_value(const ::std::string& value); 583 void set_default_value(const ::std::string& value);
502 void set_default_value(const char* value); 584 void set_default_value(const char* value);
503 void set_default_value(const char* value, size_t size); 585 void set_default_value(const char* value, size_t size);
504 ::std::string* mutable_default_value(); 586 ::std::string* mutable_default_value();
505 ::std::string* release_default_value(); 587 ::std::string* release_default_value();
506 void set_allocated_default_value(::std::string* default_value); 588 void set_allocated_default_value(::std::string* default_value);
589 ::std::string* unsafe_arena_release_default_value();
590 void unsafe_arena_set_allocated_default_value(
591 ::std::string* default_value);
507 592
508 // @@protoc_insertion_point(class_scope:google.protobuf.Field) 593 // @@protoc_insertion_point(class_scope:google.protobuf.Field)
509 private: 594 private:
510 595
511 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; 596 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
512 bool _is_default_instance_; 597 friend class ::google::protobuf::Arena;
598 typedef void InternalArenaConstructable_;
599 typedef void DestructorSkippable_;
600 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > options_;
601 ::google::protobuf::internal::ArenaStringPtr name_;
602 ::google::protobuf::internal::ArenaStringPtr type_url_;
603 ::google::protobuf::internal::ArenaStringPtr json_name_;
604 ::google::protobuf::internal::ArenaStringPtr default_value_;
513 int kind_; 605 int kind_;
514 int cardinality_; 606 int cardinality_;
515 ::google::protobuf::internal::ArenaStringPtr name_;
516 ::google::protobuf::int32 number_; 607 ::google::protobuf::int32 number_;
517 ::google::protobuf::int32 oneof_index_; 608 ::google::protobuf::int32 oneof_index_;
518 ::google::protobuf::internal::ArenaStringPtr type_url_;
519 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > options_;
520 ::google::protobuf::internal::ArenaStringPtr json_name_;
521 ::google::protobuf::internal::ArenaStringPtr default_value_;
522 bool packed_; 609 bool packed_;
523 mutable int _cached_size_; 610 mutable int _cached_size_;
524 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2ftype_2epro to(); 611 friend void LIBPROTOBUF_EXPORT protobuf_InitDefaults_google_2fprotobuf_2ftype_ 2eproto_impl();
525 friend void protobuf_AssignDesc_google_2fprotobuf_2ftype_2eproto(); 612 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2ftype_2epro to_impl();
613 friend const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2f type_2eproto();
526 friend void protobuf_ShutdownFile_google_2fprotobuf_2ftype_2eproto(); 614 friend void protobuf_ShutdownFile_google_2fprotobuf_2ftype_2eproto();
527 615
528 void InitAsDefaultInstance();
529 static Field* default_instance_;
530 }; 616 };
531 // ------------------------------------------------------------------- 617 // -------------------------------------------------------------------
532 618
533 class LIBPROTOBUF_EXPORT Enum : public ::google::protobuf::Message { 619 class LIBPROTOBUF_EXPORT Enum : public ::google::protobuf::Message /* @@protoc_i nsertion_point(class_definition:google.protobuf.Enum) */ {
534 public: 620 public:
535 Enum(); 621 Enum();
536 virtual ~Enum(); 622 virtual ~Enum();
537 623
538 Enum(const Enum& from); 624 Enum(const Enum& from);
539 625
540 inline Enum& operator=(const Enum& from) { 626 inline Enum& operator=(const Enum& from) {
541 CopyFrom(from); 627 CopyFrom(from);
542 return *this; 628 return *this;
543 } 629 }
544 630
631 inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
632 return GetArenaNoVirtual();
633 }
634 inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
635 return MaybeArenaPtr();
636 }
545 static const ::google::protobuf::Descriptor* descriptor(); 637 static const ::google::protobuf::Descriptor* descriptor();
546 static const Enum& default_instance(); 638 static const Enum& default_instance();
547 639
640 static inline const Enum* internal_default_instance() {
641 return reinterpret_cast<const Enum*>(
642 &_Enum_default_instance_);
643 }
644
645 void UnsafeArenaSwap(Enum* other);
548 void Swap(Enum* other); 646 void Swap(Enum* other);
549 647
550 // implements Message ---------------------------------------------- 648 // implements Message ----------------------------------------------
551 649
552 inline Enum* New() const { return New(NULL); } 650 inline Enum* New() const PROTOBUF_FINAL { return New(NULL); }
553 651
554 Enum* New(::google::protobuf::Arena* arena) const; 652 Enum* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
555 void CopyFrom(const ::google::protobuf::Message& from); 653 void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
556 void MergeFrom(const ::google::protobuf::Message& from); 654 void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
557 void CopyFrom(const Enum& from); 655 void CopyFrom(const Enum& from);
558 void MergeFrom(const Enum& from); 656 void MergeFrom(const Enum& from);
559 void Clear(); 657 void Clear() PROTOBUF_FINAL;
560 bool IsInitialized() const; 658 bool IsInitialized() const PROTOBUF_FINAL;
561 659
562 int ByteSize() const; 660 size_t ByteSizeLong() const PROTOBUF_FINAL;
563 bool MergePartialFromCodedStream( 661 bool MergePartialFromCodedStream(
564 ::google::protobuf::io::CodedInputStream* input); 662 ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
565 void SerializeWithCachedSizes( 663 void SerializeWithCachedSizes(
566 ::google::protobuf::io::CodedOutputStream* output) const; 664 ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
567 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf: :uint8* output) const; 665 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
568 int GetCachedSize() const { return _cached_size_; } 666 bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINA L;
667 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf: :uint8* output)
668 const PROTOBUF_FINAL {
669 return InternalSerializeWithCachedSizesToArray(false, output);
670 }
671 int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
569 private: 672 private:
570 void SharedCtor(); 673 void SharedCtor();
571 void SharedDtor(); 674 void SharedDtor();
572 void SetCachedSize(int size) const; 675 void SetCachedSize(int size) const PROTOBUF_FINAL;
573 void InternalSwap(Enum* other); 676 void InternalSwap(Enum* other);
677 protected:
678 explicit Enum(::google::protobuf::Arena* arena);
679 private:
680 static void ArenaDtor(void* object);
681 inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
574 private: 682 private:
575 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 683 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
576 return _internal_metadata_.arena(); 684 return _internal_metadata_.arena();
577 } 685 }
578 inline void* MaybeArenaPtr() const { 686 inline void* MaybeArenaPtr() const {
579 return _internal_metadata_.raw_arena_ptr(); 687 return _internal_metadata_.raw_arena_ptr();
580 } 688 }
581 public: 689 public:
582 690
583 ::google::protobuf::Metadata GetMetadata() const; 691 ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
584 692
585 // nested types ---------------------------------------------------- 693 // nested types ----------------------------------------------------
586 694
587 // accessors ------------------------------------------------------- 695 // accessors -------------------------------------------------------
588 696
589 // optional string name = 1; 697 // string name = 1;
590 void clear_name(); 698 void clear_name();
591 static const int kNameFieldNumber = 1; 699 static const int kNameFieldNumber = 1;
592 const ::std::string& name() const; 700 const ::std::string& name() const;
593 void set_name(const ::std::string& value); 701 void set_name(const ::std::string& value);
594 void set_name(const char* value); 702 void set_name(const char* value);
595 void set_name(const char* value, size_t size); 703 void set_name(const char* value, size_t size);
596 ::std::string* mutable_name(); 704 ::std::string* mutable_name();
597 ::std::string* release_name(); 705 ::std::string* release_name();
598 void set_allocated_name(::std::string* name); 706 void set_allocated_name(::std::string* name);
707 ::std::string* unsafe_arena_release_name();
708 void unsafe_arena_set_allocated_name(
709 ::std::string* name);
599 710
600 // repeated .google.protobuf.EnumValue enumvalue = 2; 711 // repeated .google.protobuf.EnumValue enumvalue = 2;
601 int enumvalue_size() const; 712 int enumvalue_size() const;
602 void clear_enumvalue(); 713 void clear_enumvalue();
603 static const int kEnumvalueFieldNumber = 2; 714 static const int kEnumvalueFieldNumber = 2;
604 const ::google::protobuf::EnumValue& enumvalue(int index) const; 715 const ::google::protobuf::EnumValue& enumvalue(int index) const;
605 ::google::protobuf::EnumValue* mutable_enumvalue(int index); 716 ::google::protobuf::EnumValue* mutable_enumvalue(int index);
606 ::google::protobuf::EnumValue* add_enumvalue(); 717 ::google::protobuf::EnumValue* add_enumvalue();
607 ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValue >* 718 ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValue >*
608 mutable_enumvalue(); 719 mutable_enumvalue();
609 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValue >& 720 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValue >&
610 enumvalue() const; 721 enumvalue() const;
611 722
612 // repeated .google.protobuf.Option options = 3; 723 // repeated .google.protobuf.Option options = 3;
613 int options_size() const; 724 int options_size() const;
614 void clear_options(); 725 void clear_options();
615 static const int kOptionsFieldNumber = 3; 726 static const int kOptionsFieldNumber = 3;
616 const ::google::protobuf::Option& options(int index) const; 727 const ::google::protobuf::Option& options(int index) const;
617 ::google::protobuf::Option* mutable_options(int index); 728 ::google::protobuf::Option* mutable_options(int index);
618 ::google::protobuf::Option* add_options(); 729 ::google::protobuf::Option* add_options();
619 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >* 730 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
620 mutable_options(); 731 mutable_options();
621 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >& 732 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
622 options() const; 733 options() const;
623 734
624 // optional .google.protobuf.SourceContext source_context = 4; 735 // .google.protobuf.SourceContext source_context = 4;
625 bool has_source_context() const; 736 bool has_source_context() const;
626 void clear_source_context(); 737 void clear_source_context();
627 static const int kSourceContextFieldNumber = 4; 738 static const int kSourceContextFieldNumber = 4;
739 private:
740 void _slow_mutable_source_context();
741 ::google::protobuf::SourceContext* _slow_release_source_context();
742 public:
628 const ::google::protobuf::SourceContext& source_context() const; 743 const ::google::protobuf::SourceContext& source_context() const;
629 ::google::protobuf::SourceContext* mutable_source_context(); 744 ::google::protobuf::SourceContext* mutable_source_context();
630 ::google::protobuf::SourceContext* release_source_context(); 745 ::google::protobuf::SourceContext* release_source_context();
631 void set_allocated_source_context(::google::protobuf::SourceContext* source_co ntext); 746 void set_allocated_source_context(::google::protobuf::SourceContext* source_co ntext);
747 ::google::protobuf::SourceContext* unsafe_arena_release_source_context();
748 void unsafe_arena_set_allocated_source_context(
749 ::google::protobuf::SourceContext* source_context);
632 750
633 // optional .google.protobuf.Syntax syntax = 5; 751 // .google.protobuf.Syntax syntax = 5;
634 void clear_syntax(); 752 void clear_syntax();
635 static const int kSyntaxFieldNumber = 5; 753 static const int kSyntaxFieldNumber = 5;
636 ::google::protobuf::Syntax syntax() const; 754 ::google::protobuf::Syntax syntax() const;
637 void set_syntax(::google::protobuf::Syntax value); 755 void set_syntax(::google::protobuf::Syntax value);
638 756
639 // @@protoc_insertion_point(class_scope:google.protobuf.Enum) 757 // @@protoc_insertion_point(class_scope:google.protobuf.Enum)
640 private: 758 private:
641 759
642 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; 760 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
643 bool _is_default_instance_; 761 friend class ::google::protobuf::Arena;
644 ::google::protobuf::internal::ArenaStringPtr name_; 762 typedef void InternalArenaConstructable_;
763 typedef void DestructorSkippable_;
645 ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValue > enumvalu e_; 764 ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValue > enumvalu e_;
646 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > options_; 765 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > options_;
766 ::google::protobuf::internal::ArenaStringPtr name_;
647 ::google::protobuf::SourceContext* source_context_; 767 ::google::protobuf::SourceContext* source_context_;
648 int syntax_; 768 int syntax_;
649 mutable int _cached_size_; 769 mutable int _cached_size_;
650 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2ftype_2epro to(); 770 friend void LIBPROTOBUF_EXPORT protobuf_InitDefaults_google_2fprotobuf_2ftype_ 2eproto_impl();
651 friend void protobuf_AssignDesc_google_2fprotobuf_2ftype_2eproto(); 771 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2ftype_2epro to_impl();
772 friend const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2f type_2eproto();
652 friend void protobuf_ShutdownFile_google_2fprotobuf_2ftype_2eproto(); 773 friend void protobuf_ShutdownFile_google_2fprotobuf_2ftype_2eproto();
653 774
654 void InitAsDefaultInstance();
655 static Enum* default_instance_;
656 }; 775 };
657 // ------------------------------------------------------------------- 776 // -------------------------------------------------------------------
658 777
659 class LIBPROTOBUF_EXPORT EnumValue : public ::google::protobuf::Message { 778 class LIBPROTOBUF_EXPORT EnumValue : public ::google::protobuf::Message /* @@pro toc_insertion_point(class_definition:google.protobuf.EnumValue) */ {
660 public: 779 public:
661 EnumValue(); 780 EnumValue();
662 virtual ~EnumValue(); 781 virtual ~EnumValue();
663 782
664 EnumValue(const EnumValue& from); 783 EnumValue(const EnumValue& from);
665 784
666 inline EnumValue& operator=(const EnumValue& from) { 785 inline EnumValue& operator=(const EnumValue& from) {
667 CopyFrom(from); 786 CopyFrom(from);
668 return *this; 787 return *this;
669 } 788 }
670 789
790 inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
791 return GetArenaNoVirtual();
792 }
793 inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
794 return MaybeArenaPtr();
795 }
671 static const ::google::protobuf::Descriptor* descriptor(); 796 static const ::google::protobuf::Descriptor* descriptor();
672 static const EnumValue& default_instance(); 797 static const EnumValue& default_instance();
673 798
799 static inline const EnumValue* internal_default_instance() {
800 return reinterpret_cast<const EnumValue*>(
801 &_EnumValue_default_instance_);
802 }
803
804 void UnsafeArenaSwap(EnumValue* other);
674 void Swap(EnumValue* other); 805 void Swap(EnumValue* other);
675 806
676 // implements Message ---------------------------------------------- 807 // implements Message ----------------------------------------------
677 808
678 inline EnumValue* New() const { return New(NULL); } 809 inline EnumValue* New() const PROTOBUF_FINAL { return New(NULL); }
679 810
680 EnumValue* New(::google::protobuf::Arena* arena) const; 811 EnumValue* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
681 void CopyFrom(const ::google::protobuf::Message& from); 812 void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
682 void MergeFrom(const ::google::protobuf::Message& from); 813 void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
683 void CopyFrom(const EnumValue& from); 814 void CopyFrom(const EnumValue& from);
684 void MergeFrom(const EnumValue& from); 815 void MergeFrom(const EnumValue& from);
685 void Clear(); 816 void Clear() PROTOBUF_FINAL;
686 bool IsInitialized() const; 817 bool IsInitialized() const PROTOBUF_FINAL;
687 818
688 int ByteSize() const; 819 size_t ByteSizeLong() const PROTOBUF_FINAL;
689 bool MergePartialFromCodedStream( 820 bool MergePartialFromCodedStream(
690 ::google::protobuf::io::CodedInputStream* input); 821 ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
691 void SerializeWithCachedSizes( 822 void SerializeWithCachedSizes(
692 ::google::protobuf::io::CodedOutputStream* output) const; 823 ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
693 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf: :uint8* output) const; 824 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
694 int GetCachedSize() const { return _cached_size_; } 825 bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINA L;
826 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf: :uint8* output)
827 const PROTOBUF_FINAL {
828 return InternalSerializeWithCachedSizesToArray(false, output);
829 }
830 int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
695 private: 831 private:
696 void SharedCtor(); 832 void SharedCtor();
697 void SharedDtor(); 833 void SharedDtor();
698 void SetCachedSize(int size) const; 834 void SetCachedSize(int size) const PROTOBUF_FINAL;
699 void InternalSwap(EnumValue* other); 835 void InternalSwap(EnumValue* other);
836 protected:
837 explicit EnumValue(::google::protobuf::Arena* arena);
838 private:
839 static void ArenaDtor(void* object);
840 inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
700 private: 841 private:
701 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 842 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
702 return _internal_metadata_.arena(); 843 return _internal_metadata_.arena();
703 } 844 }
704 inline void* MaybeArenaPtr() const { 845 inline void* MaybeArenaPtr() const {
705 return _internal_metadata_.raw_arena_ptr(); 846 return _internal_metadata_.raw_arena_ptr();
706 } 847 }
707 public: 848 public:
708 849
709 ::google::protobuf::Metadata GetMetadata() const; 850 ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
710 851
711 // nested types ---------------------------------------------------- 852 // nested types ----------------------------------------------------
712 853
713 // accessors ------------------------------------------------------- 854 // accessors -------------------------------------------------------
714 855
715 // optional string name = 1; 856 // string name = 1;
716 void clear_name(); 857 void clear_name();
717 static const int kNameFieldNumber = 1; 858 static const int kNameFieldNumber = 1;
718 const ::std::string& name() const; 859 const ::std::string& name() const;
719 void set_name(const ::std::string& value); 860 void set_name(const ::std::string& value);
720 void set_name(const char* value); 861 void set_name(const char* value);
721 void set_name(const char* value, size_t size); 862 void set_name(const char* value, size_t size);
722 ::std::string* mutable_name(); 863 ::std::string* mutable_name();
723 ::std::string* release_name(); 864 ::std::string* release_name();
724 void set_allocated_name(::std::string* name); 865 void set_allocated_name(::std::string* name);
866 ::std::string* unsafe_arena_release_name();
867 void unsafe_arena_set_allocated_name(
868 ::std::string* name);
725 869
726 // optional int32 number = 2; 870 // int32 number = 2;
727 void clear_number(); 871 void clear_number();
728 static const int kNumberFieldNumber = 2; 872 static const int kNumberFieldNumber = 2;
729 ::google::protobuf::int32 number() const; 873 ::google::protobuf::int32 number() const;
730 void set_number(::google::protobuf::int32 value); 874 void set_number(::google::protobuf::int32 value);
731 875
732 // repeated .google.protobuf.Option options = 3; 876 // repeated .google.protobuf.Option options = 3;
733 int options_size() const; 877 int options_size() const;
734 void clear_options(); 878 void clear_options();
735 static const int kOptionsFieldNumber = 3; 879 static const int kOptionsFieldNumber = 3;
736 const ::google::protobuf::Option& options(int index) const; 880 const ::google::protobuf::Option& options(int index) const;
737 ::google::protobuf::Option* mutable_options(int index); 881 ::google::protobuf::Option* mutable_options(int index);
738 ::google::protobuf::Option* add_options(); 882 ::google::protobuf::Option* add_options();
739 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >* 883 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
740 mutable_options(); 884 mutable_options();
741 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >& 885 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
742 options() const; 886 options() const;
743 887
744 // @@protoc_insertion_point(class_scope:google.protobuf.EnumValue) 888 // @@protoc_insertion_point(class_scope:google.protobuf.EnumValue)
745 private: 889 private:
746 890
747 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; 891 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
748 bool _is_default_instance_; 892 friend class ::google::protobuf::Arena;
893 typedef void InternalArenaConstructable_;
894 typedef void DestructorSkippable_;
895 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > options_;
749 ::google::protobuf::internal::ArenaStringPtr name_; 896 ::google::protobuf::internal::ArenaStringPtr name_;
750 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > options_;
751 ::google::protobuf::int32 number_; 897 ::google::protobuf::int32 number_;
752 mutable int _cached_size_; 898 mutable int _cached_size_;
753 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2ftype_2epro to(); 899 friend void LIBPROTOBUF_EXPORT protobuf_InitDefaults_google_2fprotobuf_2ftype_ 2eproto_impl();
754 friend void protobuf_AssignDesc_google_2fprotobuf_2ftype_2eproto(); 900 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2ftype_2epro to_impl();
901 friend const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2f type_2eproto();
755 friend void protobuf_ShutdownFile_google_2fprotobuf_2ftype_2eproto(); 902 friend void protobuf_ShutdownFile_google_2fprotobuf_2ftype_2eproto();
756 903
757 void InitAsDefaultInstance();
758 static EnumValue* default_instance_;
759 }; 904 };
760 // ------------------------------------------------------------------- 905 // -------------------------------------------------------------------
761 906
762 class LIBPROTOBUF_EXPORT Option : public ::google::protobuf::Message { 907 class LIBPROTOBUF_EXPORT Option : public ::google::protobuf::Message /* @@protoc _insertion_point(class_definition:google.protobuf.Option) */ {
763 public: 908 public:
764 Option(); 909 Option();
765 virtual ~Option(); 910 virtual ~Option();
766 911
767 Option(const Option& from); 912 Option(const Option& from);
768 913
769 inline Option& operator=(const Option& from) { 914 inline Option& operator=(const Option& from) {
770 CopyFrom(from); 915 CopyFrom(from);
771 return *this; 916 return *this;
772 } 917 }
773 918
919 inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
920 return GetArenaNoVirtual();
921 }
922 inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
923 return MaybeArenaPtr();
924 }
774 static const ::google::protobuf::Descriptor* descriptor(); 925 static const ::google::protobuf::Descriptor* descriptor();
775 static const Option& default_instance(); 926 static const Option& default_instance();
776 927
928 static inline const Option* internal_default_instance() {
929 return reinterpret_cast<const Option*>(
930 &_Option_default_instance_);
931 }
932
933 void UnsafeArenaSwap(Option* other);
777 void Swap(Option* other); 934 void Swap(Option* other);
778 935
779 // implements Message ---------------------------------------------- 936 // implements Message ----------------------------------------------
780 937
781 inline Option* New() const { return New(NULL); } 938 inline Option* New() const PROTOBUF_FINAL { return New(NULL); }
782 939
783 Option* New(::google::protobuf::Arena* arena) const; 940 Option* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
784 void CopyFrom(const ::google::protobuf::Message& from); 941 void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
785 void MergeFrom(const ::google::protobuf::Message& from); 942 void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
786 void CopyFrom(const Option& from); 943 void CopyFrom(const Option& from);
787 void MergeFrom(const Option& from); 944 void MergeFrom(const Option& from);
788 void Clear(); 945 void Clear() PROTOBUF_FINAL;
789 bool IsInitialized() const; 946 bool IsInitialized() const PROTOBUF_FINAL;
790 947
791 int ByteSize() const; 948 size_t ByteSizeLong() const PROTOBUF_FINAL;
792 bool MergePartialFromCodedStream( 949 bool MergePartialFromCodedStream(
793 ::google::protobuf::io::CodedInputStream* input); 950 ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
794 void SerializeWithCachedSizes( 951 void SerializeWithCachedSizes(
795 ::google::protobuf::io::CodedOutputStream* output) const; 952 ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
796 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf: :uint8* output) const; 953 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
797 int GetCachedSize() const { return _cached_size_; } 954 bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINA L;
955 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf: :uint8* output)
956 const PROTOBUF_FINAL {
957 return InternalSerializeWithCachedSizesToArray(false, output);
958 }
959 int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
798 private: 960 private:
799 void SharedCtor(); 961 void SharedCtor();
800 void SharedDtor(); 962 void SharedDtor();
801 void SetCachedSize(int size) const; 963 void SetCachedSize(int size) const PROTOBUF_FINAL;
802 void InternalSwap(Option* other); 964 void InternalSwap(Option* other);
965 protected:
966 explicit Option(::google::protobuf::Arena* arena);
967 private:
968 static void ArenaDtor(void* object);
969 inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
803 private: 970 private:
804 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 971 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
805 return _internal_metadata_.arena(); 972 return _internal_metadata_.arena();
806 } 973 }
807 inline void* MaybeArenaPtr() const { 974 inline void* MaybeArenaPtr() const {
808 return _internal_metadata_.raw_arena_ptr(); 975 return _internal_metadata_.raw_arena_ptr();
809 } 976 }
810 public: 977 public:
811 978
812 ::google::protobuf::Metadata GetMetadata() const; 979 ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
813 980
814 // nested types ---------------------------------------------------- 981 // nested types ----------------------------------------------------
815 982
816 // accessors ------------------------------------------------------- 983 // accessors -------------------------------------------------------
817 984
818 // optional string name = 1; 985 // string name = 1;
819 void clear_name(); 986 void clear_name();
820 static const int kNameFieldNumber = 1; 987 static const int kNameFieldNumber = 1;
821 const ::std::string& name() const; 988 const ::std::string& name() const;
822 void set_name(const ::std::string& value); 989 void set_name(const ::std::string& value);
823 void set_name(const char* value); 990 void set_name(const char* value);
824 void set_name(const char* value, size_t size); 991 void set_name(const char* value, size_t size);
825 ::std::string* mutable_name(); 992 ::std::string* mutable_name();
826 ::std::string* release_name(); 993 ::std::string* release_name();
827 void set_allocated_name(::std::string* name); 994 void set_allocated_name(::std::string* name);
995 ::std::string* unsafe_arena_release_name();
996 void unsafe_arena_set_allocated_name(
997 ::std::string* name);
828 998
829 // optional .google.protobuf.Any value = 2; 999 // .google.protobuf.Any value = 2;
830 bool has_value() const; 1000 bool has_value() const;
831 void clear_value(); 1001 void clear_value();
832 static const int kValueFieldNumber = 2; 1002 static const int kValueFieldNumber = 2;
1003 private:
1004 void _slow_mutable_value();
1005 ::google::protobuf::Any* _slow_release_value();
1006 public:
833 const ::google::protobuf::Any& value() const; 1007 const ::google::protobuf::Any& value() const;
834 ::google::protobuf::Any* mutable_value(); 1008 ::google::protobuf::Any* mutable_value();
835 ::google::protobuf::Any* release_value(); 1009 ::google::protobuf::Any* release_value();
836 void set_allocated_value(::google::protobuf::Any* value); 1010 void set_allocated_value(::google::protobuf::Any* value);
1011 ::google::protobuf::Any* unsafe_arena_release_value();
1012 void unsafe_arena_set_allocated_value(
1013 ::google::protobuf::Any* value);
837 1014
838 // @@protoc_insertion_point(class_scope:google.protobuf.Option) 1015 // @@protoc_insertion_point(class_scope:google.protobuf.Option)
839 private: 1016 private:
840 1017
841 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; 1018 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
842 bool _is_default_instance_; 1019 friend class ::google::protobuf::Arena;
1020 typedef void InternalArenaConstructable_;
1021 typedef void DestructorSkippable_;
843 ::google::protobuf::internal::ArenaStringPtr name_; 1022 ::google::protobuf::internal::ArenaStringPtr name_;
844 ::google::protobuf::Any* value_; 1023 ::google::protobuf::Any* value_;
845 mutable int _cached_size_; 1024 mutable int _cached_size_;
846 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2ftype_2epro to(); 1025 friend void LIBPROTOBUF_EXPORT protobuf_InitDefaults_google_2fprotobuf_2ftype_ 2eproto_impl();
847 friend void protobuf_AssignDesc_google_2fprotobuf_2ftype_2eproto(); 1026 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2ftype_2epro to_impl();
1027 friend const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2f type_2eproto();
848 friend void protobuf_ShutdownFile_google_2fprotobuf_2ftype_2eproto(); 1028 friend void protobuf_ShutdownFile_google_2fprotobuf_2ftype_2eproto();
849 1029
850 void InitAsDefaultInstance();
851 static Option* default_instance_;
852 }; 1030 };
853 // =================================================================== 1031 // ===================================================================
854 1032
855 1033
856 // =================================================================== 1034 // ===================================================================
857 1035
858 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 1036 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
859 // Type 1037 // Type
860 1038
861 // optional string name = 1; 1039 // string name = 1;
862 inline void Type::clear_name() { 1040 inline void Type::clear_name() {
863 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 1041 name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), GetArenaNoVirtual());
864 } 1042 }
865 inline const ::std::string& Type::name() const { 1043 inline const ::std::string& Type::name() const {
866 // @@protoc_insertion_point(field_get:google.protobuf.Type.name) 1044 // @@protoc_insertion_point(field_get:google.protobuf.Type.name)
867 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited()); 1045 return name_.Get();
868 } 1046 }
869 inline void Type::set_name(const ::std::string& value) { 1047 inline void Type::set_name(const ::std::string& value) {
870 1048
871 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 1049 name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
872 // @@protoc_insertion_point(field_set:google.protobuf.Type.name) 1050 // @@protoc_insertion_point(field_set:google.protobuf.Type.name)
873 } 1051 }
874 inline void Type::set_name(const char* value) { 1052 inline void Type::set_name(const char* value) {
875 1053
876 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 1054 name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std: :string(value),
1055 GetArenaNoVirtual());
877 // @@protoc_insertion_point(field_set_char:google.protobuf.Type.name) 1056 // @@protoc_insertion_point(field_set_char:google.protobuf.Type.name)
878 } 1057 }
879 inline void Type::set_name(const char* value, size_t size) { 1058 inline void Type::set_name(const char* value,
1059 size_t size) {
880 1060
881 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 1061 name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std: :string(
882 ::std::string(reinterpret_cast<const char*>(value), size)); 1062 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
883 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Type.name) 1063 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Type.name)
884 } 1064 }
885 inline ::std::string* Type::mutable_name() { 1065 inline ::std::string* Type::mutable_name() {
886 1066
887 // @@protoc_insertion_point(field_mutable:google.protobuf.Type.name) 1067 // @@protoc_insertion_point(field_mutable:google.protobuf.Type.name)
888 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 1068 return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInite d(), GetArenaNoVirtual());
889 } 1069 }
890 inline ::std::string* Type::release_name() { 1070 inline ::std::string* Type::release_name() {
891 // @@protoc_insertion_point(field_release:google.protobuf.Type.name) 1071 // @@protoc_insertion_point(field_release:google.protobuf.Type.name)
892 1072
893 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 1073 return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInite d(), GetArenaNoVirtual());
1074 }
1075 inline ::std::string* Type::unsafe_arena_release_name() {
1076 // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Type.na me)
1077 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1078
1079 return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringA lreadyInited(),
1080 GetArenaNoVirtual());
894 } 1081 }
895 inline void Type::set_allocated_name(::std::string* name) { 1082 inline void Type::set_allocated_name(::std::string* name) {
896 if (name != NULL) { 1083 if (name != NULL) {
897 1084
898 } else { 1085 } else {
899 1086
900 } 1087 }
901 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name); 1088 name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), name,
1089 GetArenaNoVirtual());
902 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Type.name) 1090 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Type.name)
903 } 1091 }
1092 inline void Type::unsafe_arena_set_allocated_name(
1093 ::std::string* name) {
1094 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1095 if (name != NULL) {
1096
1097 } else {
1098
1099 }
1100 name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(),
1101 name, GetArenaNoVirtual());
1102 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.T ype.name)
1103 }
904 1104
905 // repeated .google.protobuf.Field fields = 2; 1105 // repeated .google.protobuf.Field fields = 2;
906 inline int Type::fields_size() const { 1106 inline int Type::fields_size() const {
907 return fields_.size(); 1107 return fields_.size();
908 } 1108 }
909 inline void Type::clear_fields() { 1109 inline void Type::clear_fields() {
910 fields_.Clear(); 1110 fields_.Clear();
911 } 1111 }
912 inline const ::google::protobuf::Field& Type::fields(int index) const { 1112 inline const ::google::protobuf::Field& Type::fields(int index) const {
913 // @@protoc_insertion_point(field_get:google.protobuf.Type.fields) 1113 // @@protoc_insertion_point(field_get:google.protobuf.Type.fields)
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
1010 Type::mutable_options() { 1210 Type::mutable_options() {
1011 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Type.options) 1211 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Type.options)
1012 return &options_; 1212 return &options_;
1013 } 1213 }
1014 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >& 1214 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
1015 Type::options() const { 1215 Type::options() const {
1016 // @@protoc_insertion_point(field_list:google.protobuf.Type.options) 1216 // @@protoc_insertion_point(field_list:google.protobuf.Type.options)
1017 return options_; 1217 return options_;
1018 } 1218 }
1019 1219
1020 // optional .google.protobuf.SourceContext source_context = 5; 1220 // .google.protobuf.SourceContext source_context = 5;
1021 inline bool Type::has_source_context() const { 1221 inline bool Type::has_source_context() const {
1022 return !_is_default_instance_ && source_context_ != NULL; 1222 return this != internal_default_instance() && source_context_ != NULL;
1023 } 1223 }
1024 inline void Type::clear_source_context() { 1224 inline void Type::clear_source_context() {
1025 if (GetArenaNoVirtual() == NULL && source_context_ != NULL) delete source_cont ext_; 1225 if (GetArenaNoVirtual() == NULL && source_context_ != NULL) delete source_cont ext_;
1026 source_context_ = NULL; 1226 source_context_ = NULL;
1027 } 1227 }
1028 inline const ::google::protobuf::SourceContext& Type::source_context() const { 1228 inline const ::google::protobuf::SourceContext& Type::source_context() const {
1029 // @@protoc_insertion_point(field_get:google.protobuf.Type.source_context) 1229 // @@protoc_insertion_point(field_get:google.protobuf.Type.source_context)
1030 return source_context_ != NULL ? *source_context_ : *default_instance_->source _context_; 1230 return source_context_ != NULL ? *source_context_
1231 : *::google::protobuf::SourceContext::internal_default_ instance();
1031 } 1232 }
1032 inline ::google::protobuf::SourceContext* Type::mutable_source_context() { 1233 inline ::google::protobuf::SourceContext* Type::mutable_source_context() {
1033 1234
1034 if (source_context_ == NULL) { 1235 if (source_context_ == NULL) {
1035 source_context_ = new ::google::protobuf::SourceContext; 1236 _slow_mutable_source_context();
1036 } 1237 }
1037 // @@protoc_insertion_point(field_mutable:google.protobuf.Type.source_context) 1238 // @@protoc_insertion_point(field_mutable:google.protobuf.Type.source_context)
1038 return source_context_; 1239 return source_context_;
1039 } 1240 }
1040 inline ::google::protobuf::SourceContext* Type::release_source_context() { 1241 inline ::google::protobuf::SourceContext* Type::release_source_context() {
1041 // @@protoc_insertion_point(field_release:google.protobuf.Type.source_context) 1242 // @@protoc_insertion_point(field_release:google.protobuf.Type.source_context)
1042 1243
1043 ::google::protobuf::SourceContext* temp = source_context_; 1244 if (GetArenaNoVirtual() != NULL) {
1044 source_context_ = NULL; 1245 return _slow_release_source_context();
1045 return temp; 1246 } else {
1247 ::google::protobuf::SourceContext* temp = source_context_;
1248 source_context_ = NULL;
1249 return temp;
1250 }
1046 } 1251 }
1047 inline void Type::set_allocated_source_context(::google::protobuf::SourceContext * source_context) { 1252 inline void Type::set_allocated_source_context(::google::protobuf::SourceContex t* source_context) {
1048 delete source_context_; 1253 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1254 if (message_arena == NULL) {
1255 delete source_context_;
1256 }
1257 if (source_context != NULL) {
1258 if (message_arena != NULL) {
1259 message_arena->Own(source_context);
1260 }
1261 }
1049 source_context_ = source_context; 1262 source_context_ = source_context;
1050 if (source_context) { 1263 if (source_context) {
1051 1264
1052 } else { 1265 } else {
1053 1266
1054 } 1267 }
1055 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Type.source_co ntext) 1268 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Type.source_co ntext)
1056 } 1269 }
1057 1270
1058 // optional .google.protobuf.Syntax syntax = 6; 1271 // .google.protobuf.Syntax syntax = 6;
1059 inline void Type::clear_syntax() { 1272 inline void Type::clear_syntax() {
1060 syntax_ = 0; 1273 syntax_ = 0;
1061 } 1274 }
1062 inline ::google::protobuf::Syntax Type::syntax() const { 1275 inline ::google::protobuf::Syntax Type::syntax() const {
1063 // @@protoc_insertion_point(field_get:google.protobuf.Type.syntax) 1276 // @@protoc_insertion_point(field_get:google.protobuf.Type.syntax)
1064 return static_cast< ::google::protobuf::Syntax >(syntax_); 1277 return static_cast< ::google::protobuf::Syntax >(syntax_);
1065 } 1278 }
1066 inline void Type::set_syntax(::google::protobuf::Syntax value) { 1279 inline void Type::set_syntax(::google::protobuf::Syntax value) {
1067 1280
1068 syntax_ = value; 1281 syntax_ = value;
1069 // @@protoc_insertion_point(field_set:google.protobuf.Type.syntax) 1282 // @@protoc_insertion_point(field_set:google.protobuf.Type.syntax)
1070 } 1283 }
1071 1284
1072 // ------------------------------------------------------------------- 1285 // -------------------------------------------------------------------
1073 1286
1074 // Field 1287 // Field
1075 1288
1076 // optional .google.protobuf.Field.Kind kind = 1; 1289 // .google.protobuf.Field.Kind kind = 1;
1077 inline void Field::clear_kind() { 1290 inline void Field::clear_kind() {
1078 kind_ = 0; 1291 kind_ = 0;
1079 } 1292 }
1080 inline ::google::protobuf::Field_Kind Field::kind() const { 1293 inline ::google::protobuf::Field_Kind Field::kind() const {
1081 // @@protoc_insertion_point(field_get:google.protobuf.Field.kind) 1294 // @@protoc_insertion_point(field_get:google.protobuf.Field.kind)
1082 return static_cast< ::google::protobuf::Field_Kind >(kind_); 1295 return static_cast< ::google::protobuf::Field_Kind >(kind_);
1083 } 1296 }
1084 inline void Field::set_kind(::google::protobuf::Field_Kind value) { 1297 inline void Field::set_kind(::google::protobuf::Field_Kind value) {
1085 1298
1086 kind_ = value; 1299 kind_ = value;
1087 // @@protoc_insertion_point(field_set:google.protobuf.Field.kind) 1300 // @@protoc_insertion_point(field_set:google.protobuf.Field.kind)
1088 } 1301 }
1089 1302
1090 // optional .google.protobuf.Field.Cardinality cardinality = 2; 1303 // .google.protobuf.Field.Cardinality cardinality = 2;
1091 inline void Field::clear_cardinality() { 1304 inline void Field::clear_cardinality() {
1092 cardinality_ = 0; 1305 cardinality_ = 0;
1093 } 1306 }
1094 inline ::google::protobuf::Field_Cardinality Field::cardinality() const { 1307 inline ::google::protobuf::Field_Cardinality Field::cardinality() const {
1095 // @@protoc_insertion_point(field_get:google.protobuf.Field.cardinality) 1308 // @@protoc_insertion_point(field_get:google.protobuf.Field.cardinality)
1096 return static_cast< ::google::protobuf::Field_Cardinality >(cardinality_); 1309 return static_cast< ::google::protobuf::Field_Cardinality >(cardinality_);
1097 } 1310 }
1098 inline void Field::set_cardinality(::google::protobuf::Field_Cardinality value) { 1311 inline void Field::set_cardinality(::google::protobuf::Field_Cardinality value) {
1099 1312
1100 cardinality_ = value; 1313 cardinality_ = value;
1101 // @@protoc_insertion_point(field_set:google.protobuf.Field.cardinality) 1314 // @@protoc_insertion_point(field_set:google.protobuf.Field.cardinality)
1102 } 1315 }
1103 1316
1104 // optional int32 number = 3; 1317 // int32 number = 3;
1105 inline void Field::clear_number() { 1318 inline void Field::clear_number() {
1106 number_ = 0; 1319 number_ = 0;
1107 } 1320 }
1108 inline ::google::protobuf::int32 Field::number() const { 1321 inline ::google::protobuf::int32 Field::number() const {
1109 // @@protoc_insertion_point(field_get:google.protobuf.Field.number) 1322 // @@protoc_insertion_point(field_get:google.protobuf.Field.number)
1110 return number_; 1323 return number_;
1111 } 1324 }
1112 inline void Field::set_number(::google::protobuf::int32 value) { 1325 inline void Field::set_number(::google::protobuf::int32 value) {
1113 1326
1114 number_ = value; 1327 number_ = value;
1115 // @@protoc_insertion_point(field_set:google.protobuf.Field.number) 1328 // @@protoc_insertion_point(field_set:google.protobuf.Field.number)
1116 } 1329 }
1117 1330
1118 // optional string name = 4; 1331 // string name = 4;
1119 inline void Field::clear_name() { 1332 inline void Field::clear_name() {
1120 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 1333 name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), GetArenaNoVirtual());
1121 } 1334 }
1122 inline const ::std::string& Field::name() const { 1335 inline const ::std::string& Field::name() const {
1123 // @@protoc_insertion_point(field_get:google.protobuf.Field.name) 1336 // @@protoc_insertion_point(field_get:google.protobuf.Field.name)
1124 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited()); 1337 return name_.Get();
1125 } 1338 }
1126 inline void Field::set_name(const ::std::string& value) { 1339 inline void Field::set_name(const ::std::string& value) {
1127 1340
1128 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 1341 name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
1129 // @@protoc_insertion_point(field_set:google.protobuf.Field.name) 1342 // @@protoc_insertion_point(field_set:google.protobuf.Field.name)
1130 } 1343 }
1131 inline void Field::set_name(const char* value) { 1344 inline void Field::set_name(const char* value) {
1132 1345
1133 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 1346 name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std: :string(value),
1347 GetArenaNoVirtual());
1134 // @@protoc_insertion_point(field_set_char:google.protobuf.Field.name) 1348 // @@protoc_insertion_point(field_set_char:google.protobuf.Field.name)
1135 } 1349 }
1136 inline void Field::set_name(const char* value, size_t size) { 1350 inline void Field::set_name(const char* value,
1351 size_t size) {
1137 1352
1138 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 1353 name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std: :string(
1139 ::std::string(reinterpret_cast<const char*>(value), size)); 1354 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
1140 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Field.name) 1355 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Field.name)
1141 } 1356 }
1142 inline ::std::string* Field::mutable_name() { 1357 inline ::std::string* Field::mutable_name() {
1143 1358
1144 // @@protoc_insertion_point(field_mutable:google.protobuf.Field.name) 1359 // @@protoc_insertion_point(field_mutable:google.protobuf.Field.name)
1145 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 1360 return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInite d(), GetArenaNoVirtual());
1146 } 1361 }
1147 inline ::std::string* Field::release_name() { 1362 inline ::std::string* Field::release_name() {
1148 // @@protoc_insertion_point(field_release:google.protobuf.Field.name) 1363 // @@protoc_insertion_point(field_release:google.protobuf.Field.name)
1149 1364
1150 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 1365 return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInite d(), GetArenaNoVirtual());
1366 }
1367 inline ::std::string* Field::unsafe_arena_release_name() {
1368 // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Field.n ame)
1369 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1370
1371 return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringA lreadyInited(),
1372 GetArenaNoVirtual());
1151 } 1373 }
1152 inline void Field::set_allocated_name(::std::string* name) { 1374 inline void Field::set_allocated_name(::std::string* name) {
1153 if (name != NULL) { 1375 if (name != NULL) {
1154 1376
1155 } else { 1377 } else {
1156 1378
1157 } 1379 }
1158 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name); 1380 name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), name,
1381 GetArenaNoVirtual());
1159 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.name) 1382 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.name)
1160 } 1383 }
1384 inline void Field::unsafe_arena_set_allocated_name(
1385 ::std::string* name) {
1386 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1387 if (name != NULL) {
1388
1389 } else {
1390
1391 }
1392 name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(),
1393 name, GetArenaNoVirtual());
1394 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.F ield.name)
1395 }
1161 1396
1162 // optional string type_url = 6; 1397 // string type_url = 6;
1163 inline void Field::clear_type_url() { 1398 inline void Field::clear_type_url() {
1164 type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited()); 1399 type_url_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted(), GetArenaNoVirtual());
1165 } 1400 }
1166 inline const ::std::string& Field::type_url() const { 1401 inline const ::std::string& Field::type_url() const {
1167 // @@protoc_insertion_point(field_get:google.protobuf.Field.type_url) 1402 // @@protoc_insertion_point(field_get:google.protobuf.Field.type_url)
1168 return type_url_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 1403 return type_url_.Get();
1169 } 1404 }
1170 inline void Field::set_type_url(const ::std::string& value) { 1405 inline void Field::set_type_url(const ::std::string& value) {
1171 1406
1172 type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d(), value); 1407 type_url_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), va lue, GetArenaNoVirtual());
1173 // @@protoc_insertion_point(field_set:google.protobuf.Field.type_url) 1408 // @@protoc_insertion_point(field_set:google.protobuf.Field.type_url)
1174 } 1409 }
1175 inline void Field::set_type_url(const char* value) { 1410 inline void Field::set_type_url(const char* value) {
1176 1411
1177 type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d(), ::std::string(value)); 1412 type_url_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), :: std::string(value),
1413 GetArenaNoVirtual());
1178 // @@protoc_insertion_point(field_set_char:google.protobuf.Field.type_url) 1414 // @@protoc_insertion_point(field_set_char:google.protobuf.Field.type_url)
1179 } 1415 }
1180 inline void Field::set_type_url(const char* value, size_t size) { 1416 inline void Field::set_type_url(const char* value,
1417 size_t size) {
1181 1418
1182 type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d(), 1419 type_url_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), :: std::string(
1183 ::std::string(reinterpret_cast<const char*>(value), size)); 1420 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
1184 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Field.type_url) 1421 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Field.type_url)
1185 } 1422 }
1186 inline ::std::string* Field::mutable_type_url() { 1423 inline ::std::string* Field::mutable_type_url() {
1187 1424
1188 // @@protoc_insertion_point(field_mutable:google.protobuf.Field.type_url) 1425 // @@protoc_insertion_point(field_mutable:google.protobuf.Field.type_url)
1189 return type_url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringA lreadyInited()); 1426 return type_url_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyI nited(), GetArenaNoVirtual());
1190 } 1427 }
1191 inline ::std::string* Field::release_type_url() { 1428 inline ::std::string* Field::release_type_url() {
1192 // @@protoc_insertion_point(field_release:google.protobuf.Field.type_url) 1429 // @@protoc_insertion_point(field_release:google.protobuf.Field.type_url)
1193 1430
1194 return type_url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringA lreadyInited()); 1431 return type_url_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyI nited(), GetArenaNoVirtual());
1432 }
1433 inline ::std::string* Field::unsafe_arena_release_type_url() {
1434 // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Field.t ype_url)
1435 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1436
1437 return type_url_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited(),
1438 GetArenaNoVirtual());
1195 } 1439 }
1196 inline void Field::set_allocated_type_url(::std::string* type_url) { 1440 inline void Field::set_allocated_type_url(::std::string* type_url) {
1197 if (type_url != NULL) { 1441 if (type_url != NULL) {
1198 1442
1199 } else { 1443 } else {
1200 1444
1201 } 1445 }
1202 type_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), type_url); 1446 type_url_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted(), type_url,
1447 GetArenaNoVirtual());
1203 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.type_url ) 1448 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.type_url )
1204 } 1449 }
1450 inline void Field::unsafe_arena_set_allocated_type_url(
1451 ::std::string* type_url) {
1452 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1453 if (type_url != NULL) {
1454
1455 } else {
1456
1457 }
1458 type_url_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited(),
1459 type_url, GetArenaNoVirtual());
1460 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.F ield.type_url)
1461 }
1205 1462
1206 // optional int32 oneof_index = 7; 1463 // int32 oneof_index = 7;
1207 inline void Field::clear_oneof_index() { 1464 inline void Field::clear_oneof_index() {
1208 oneof_index_ = 0; 1465 oneof_index_ = 0;
1209 } 1466 }
1210 inline ::google::protobuf::int32 Field::oneof_index() const { 1467 inline ::google::protobuf::int32 Field::oneof_index() const {
1211 // @@protoc_insertion_point(field_get:google.protobuf.Field.oneof_index) 1468 // @@protoc_insertion_point(field_get:google.protobuf.Field.oneof_index)
1212 return oneof_index_; 1469 return oneof_index_;
1213 } 1470 }
1214 inline void Field::set_oneof_index(::google::protobuf::int32 value) { 1471 inline void Field::set_oneof_index(::google::protobuf::int32 value) {
1215 1472
1216 oneof_index_ = value; 1473 oneof_index_ = value;
1217 // @@protoc_insertion_point(field_set:google.protobuf.Field.oneof_index) 1474 // @@protoc_insertion_point(field_set:google.protobuf.Field.oneof_index)
1218 } 1475 }
1219 1476
1220 // optional bool packed = 8; 1477 // bool packed = 8;
1221 inline void Field::clear_packed() { 1478 inline void Field::clear_packed() {
1222 packed_ = false; 1479 packed_ = false;
1223 } 1480 }
1224 inline bool Field::packed() const { 1481 inline bool Field::packed() const {
1225 // @@protoc_insertion_point(field_get:google.protobuf.Field.packed) 1482 // @@protoc_insertion_point(field_get:google.protobuf.Field.packed)
1226 return packed_; 1483 return packed_;
1227 } 1484 }
1228 inline void Field::set_packed(bool value) { 1485 inline void Field::set_packed(bool value) {
1229 1486
1230 packed_ = value; 1487 packed_ = value;
(...skipping 23 matching lines...) Expand all
1254 Field::mutable_options() { 1511 Field::mutable_options() {
1255 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Field.options) 1512 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Field.options)
1256 return &options_; 1513 return &options_;
1257 } 1514 }
1258 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >& 1515 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
1259 Field::options() const { 1516 Field::options() const {
1260 // @@protoc_insertion_point(field_list:google.protobuf.Field.options) 1517 // @@protoc_insertion_point(field_list:google.protobuf.Field.options)
1261 return options_; 1518 return options_;
1262 } 1519 }
1263 1520
1264 // optional string json_name = 10; 1521 // string json_name = 10;
1265 inline void Field::clear_json_name() { 1522 inline void Field::clear_json_name() {
1266 json_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited()); 1523 json_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited(), GetArenaNoVirtual());
1267 } 1524 }
1268 inline const ::std::string& Field::json_name() const { 1525 inline const ::std::string& Field::json_name() const {
1269 // @@protoc_insertion_point(field_get:google.protobuf.Field.json_name) 1526 // @@protoc_insertion_point(field_get:google.protobuf.Field.json_name)
1270 return json_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited()); 1527 return json_name_.Get();
1271 } 1528 }
1272 inline void Field::set_json_name(const ::std::string& value) { 1529 inline void Field::set_json_name(const ::std::string& value) {
1273 1530
1274 json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), value); 1531 json_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), v alue, GetArenaNoVirtual());
1275 // @@protoc_insertion_point(field_set:google.protobuf.Field.json_name) 1532 // @@protoc_insertion_point(field_set:google.protobuf.Field.json_name)
1276 } 1533 }
1277 inline void Field::set_json_name(const char* value) { 1534 inline void Field::set_json_name(const char* value) {
1278 1535
1279 json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), ::std::string(value)); 1536 json_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), : :std::string(value),
1537 GetArenaNoVirtual());
1280 // @@protoc_insertion_point(field_set_char:google.protobuf.Field.json_name) 1538 // @@protoc_insertion_point(field_set_char:google.protobuf.Field.json_name)
1281 } 1539 }
1282 inline void Field::set_json_name(const char* value, size_t size) { 1540 inline void Field::set_json_name(const char* value,
1541 size_t size) {
1283 1542
1284 json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), 1543 json_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), : :std::string(
1285 ::std::string(reinterpret_cast<const char*>(value), size)); 1544 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
1286 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Field.json_name) 1545 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Field.json_name)
1287 } 1546 }
1288 inline ::std::string* Field::mutable_json_name() { 1547 inline ::std::string* Field::mutable_json_name() {
1289 1548
1290 // @@protoc_insertion_point(field_mutable:google.protobuf.Field.json_name) 1549 // @@protoc_insertion_point(field_mutable:google.protobuf.Field.json_name)
1291 return json_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited()); 1550 return json_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlready Inited(), GetArenaNoVirtual());
1292 } 1551 }
1293 inline ::std::string* Field::release_json_name() { 1552 inline ::std::string* Field::release_json_name() {
1294 // @@protoc_insertion_point(field_release:google.protobuf.Field.json_name) 1553 // @@protoc_insertion_point(field_release:google.protobuf.Field.json_name)
1295 1554
1296 return json_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited()); 1555 return json_name_.Release(&::google::protobuf::internal::GetEmptyStringAlready Inited(), GetArenaNoVirtual());
1556 }
1557 inline ::std::string* Field::unsafe_arena_release_json_name() {
1558 // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Field.j son_name)
1559 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1560
1561 return json_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptySt ringAlreadyInited(),
1562 GetArenaNoVirtual());
1297 } 1563 }
1298 inline void Field::set_allocated_json_name(::std::string* json_name) { 1564 inline void Field::set_allocated_json_name(::std::string* json_name) {
1299 if (json_name != NULL) { 1565 if (json_name != NULL) {
1300 1566
1301 } else { 1567 } else {
1302 1568
1303 } 1569 }
1304 json_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited(), json_name); 1570 json_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited(), json_name,
1571 GetArenaNoVirtual());
1305 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.json_nam e) 1572 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.json_nam e)
1306 } 1573 }
1574 inline void Field::unsafe_arena_set_allocated_json_name(
1575 ::std::string* json_name) {
1576 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1577 if (json_name != NULL) {
1578
1579 } else {
1580
1581 }
1582 json_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited(),
1583 json_name, GetArenaNoVirtual());
1584 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.F ield.json_name)
1585 }
1307 1586
1308 // optional string default_value = 11; 1587 // string default_value = 11;
1309 inline void Field::clear_default_value() { 1588 inline void Field::clear_default_value() {
1310 default_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited()); 1589 default_value_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), GetArenaNoVirtual());
1311 } 1590 }
1312 inline const ::std::string& Field::default_value() const { 1591 inline const ::std::string& Field::default_value() const {
1313 // @@protoc_insertion_point(field_get:google.protobuf.Field.default_value) 1592 // @@protoc_insertion_point(field_get:google.protobuf.Field.default_value)
1314 return default_value_.GetNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited()); 1593 return default_value_.Get();
1315 } 1594 }
1316 inline void Field::set_default_value(const ::std::string& value) { 1595 inline void Field::set_default_value(const ::std::string& value) {
1317 1596
1318 default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), value); 1597 default_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), value, GetArenaNoVirtual());
1319 // @@protoc_insertion_point(field_set:google.protobuf.Field.default_value) 1598 // @@protoc_insertion_point(field_set:google.protobuf.Field.default_value)
1320 } 1599 }
1321 inline void Field::set_default_value(const char* value) { 1600 inline void Field::set_default_value(const char* value) {
1322 1601
1323 default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), ::std::string(value)); 1602 default_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), ::std::string(value),
1603 GetArenaNoVirtual());
1324 // @@protoc_insertion_point(field_set_char:google.protobuf.Field.default_value ) 1604 // @@protoc_insertion_point(field_set_char:google.protobuf.Field.default_value )
1325 } 1605 }
1326 inline void Field::set_default_value(const char* value, size_t size) { 1606 inline void Field::set_default_value(const char* value,
1607 size_t size) {
1327 1608
1328 default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), 1609 default_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), ::std::string(
1329 ::std::string(reinterpret_cast<const char*>(value), size)); 1610 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
1330 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Field.default_va lue) 1611 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Field.default_va lue)
1331 } 1612 }
1332 inline ::std::string* Field::mutable_default_value() { 1613 inline ::std::string* Field::mutable_default_value() {
1333 1614
1334 // @@protoc_insertion_point(field_mutable:google.protobuf.Field.default_value) 1615 // @@protoc_insertion_point(field_mutable:google.protobuf.Field.default_value)
1335 return default_value_.MutableNoArena(&::google::protobuf::internal::GetEmptySt ringAlreadyInited()); 1616 return default_value_.Mutable(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), GetArenaNoVirtual());
1336 } 1617 }
1337 inline ::std::string* Field::release_default_value() { 1618 inline ::std::string* Field::release_default_value() {
1338 // @@protoc_insertion_point(field_release:google.protobuf.Field.default_value) 1619 // @@protoc_insertion_point(field_release:google.protobuf.Field.default_value)
1339 1620
1340 return default_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptySt ringAlreadyInited()); 1621 return default_value_.Release(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), GetArenaNoVirtual());
1622 }
1623 inline ::std::string* Field::unsafe_arena_release_default_value() {
1624 // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Field.d efault_value)
1625 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1626
1627 return default_value_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmp tyStringAlreadyInited(),
1628 GetArenaNoVirtual());
1341 } 1629 }
1342 inline void Field::set_allocated_default_value(::std::string* default_value) { 1630 inline void Field::set_allocated_default_value(::std::string* default_value) {
1343 if (default_value != NULL) { 1631 if (default_value != NULL) {
1344 1632
1345 } else { 1633 } else {
1346 1634
1347 } 1635 }
1348 default_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited(), default_value); 1636 default_value_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), default_value,
1637 GetArenaNoVirtual());
1349 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.default_ value) 1638 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.default_ value)
1350 } 1639 }
1640 inline void Field::unsafe_arena_set_allocated_default_value(
1641 ::std::string* default_value) {
1642 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1643 if (default_value != NULL) {
1644
1645 } else {
1646
1647 }
1648 default_value_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmpty StringAlreadyInited(),
1649 default_value, GetArenaNoVirtual());
1650 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.F ield.default_value)
1651 }
1351 1652
1352 // ------------------------------------------------------------------- 1653 // -------------------------------------------------------------------
1353 1654
1354 // Enum 1655 // Enum
1355 1656
1356 // optional string name = 1; 1657 // string name = 1;
1357 inline void Enum::clear_name() { 1658 inline void Enum::clear_name() {
1358 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 1659 name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), GetArenaNoVirtual());
1359 } 1660 }
1360 inline const ::std::string& Enum::name() const { 1661 inline const ::std::string& Enum::name() const {
1361 // @@protoc_insertion_point(field_get:google.protobuf.Enum.name) 1662 // @@protoc_insertion_point(field_get:google.protobuf.Enum.name)
1362 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited()); 1663 return name_.Get();
1363 } 1664 }
1364 inline void Enum::set_name(const ::std::string& value) { 1665 inline void Enum::set_name(const ::std::string& value) {
1365 1666
1366 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 1667 name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
1367 // @@protoc_insertion_point(field_set:google.protobuf.Enum.name) 1668 // @@protoc_insertion_point(field_set:google.protobuf.Enum.name)
1368 } 1669 }
1369 inline void Enum::set_name(const char* value) { 1670 inline void Enum::set_name(const char* value) {
1370 1671
1371 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 1672 name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std: :string(value),
1673 GetArenaNoVirtual());
1372 // @@protoc_insertion_point(field_set_char:google.protobuf.Enum.name) 1674 // @@protoc_insertion_point(field_set_char:google.protobuf.Enum.name)
1373 } 1675 }
1374 inline void Enum::set_name(const char* value, size_t size) { 1676 inline void Enum::set_name(const char* value,
1677 size_t size) {
1375 1678
1376 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 1679 name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std: :string(
1377 ::std::string(reinterpret_cast<const char*>(value), size)); 1680 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
1378 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Enum.name) 1681 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Enum.name)
1379 } 1682 }
1380 inline ::std::string* Enum::mutable_name() { 1683 inline ::std::string* Enum::mutable_name() {
1381 1684
1382 // @@protoc_insertion_point(field_mutable:google.protobuf.Enum.name) 1685 // @@protoc_insertion_point(field_mutable:google.protobuf.Enum.name)
1383 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 1686 return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInite d(), GetArenaNoVirtual());
1384 } 1687 }
1385 inline ::std::string* Enum::release_name() { 1688 inline ::std::string* Enum::release_name() {
1386 // @@protoc_insertion_point(field_release:google.protobuf.Enum.name) 1689 // @@protoc_insertion_point(field_release:google.protobuf.Enum.name)
1387 1690
1388 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 1691 return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInite d(), GetArenaNoVirtual());
1692 }
1693 inline ::std::string* Enum::unsafe_arena_release_name() {
1694 // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Enum.na me)
1695 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1696
1697 return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringA lreadyInited(),
1698 GetArenaNoVirtual());
1389 } 1699 }
1390 inline void Enum::set_allocated_name(::std::string* name) { 1700 inline void Enum::set_allocated_name(::std::string* name) {
1391 if (name != NULL) { 1701 if (name != NULL) {
1392 1702
1393 } else { 1703 } else {
1394 1704
1395 } 1705 }
1396 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name); 1706 name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), name,
1707 GetArenaNoVirtual());
1397 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Enum.name) 1708 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Enum.name)
1398 } 1709 }
1710 inline void Enum::unsafe_arena_set_allocated_name(
1711 ::std::string* name) {
1712 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1713 if (name != NULL) {
1714
1715 } else {
1716
1717 }
1718 name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(),
1719 name, GetArenaNoVirtual());
1720 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.E num.name)
1721 }
1399 1722
1400 // repeated .google.protobuf.EnumValue enumvalue = 2; 1723 // repeated .google.protobuf.EnumValue enumvalue = 2;
1401 inline int Enum::enumvalue_size() const { 1724 inline int Enum::enumvalue_size() const {
1402 return enumvalue_.size(); 1725 return enumvalue_.size();
1403 } 1726 }
1404 inline void Enum::clear_enumvalue() { 1727 inline void Enum::clear_enumvalue() {
1405 enumvalue_.Clear(); 1728 enumvalue_.Clear();
1406 } 1729 }
1407 inline const ::google::protobuf::EnumValue& Enum::enumvalue(int index) const { 1730 inline const ::google::protobuf::EnumValue& Enum::enumvalue(int index) const {
1408 // @@protoc_insertion_point(field_get:google.protobuf.Enum.enumvalue) 1731 // @@protoc_insertion_point(field_get:google.protobuf.Enum.enumvalue)
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
1450 Enum::mutable_options() { 1773 Enum::mutable_options() {
1451 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Enum.options) 1774 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Enum.options)
1452 return &options_; 1775 return &options_;
1453 } 1776 }
1454 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >& 1777 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
1455 Enum::options() const { 1778 Enum::options() const {
1456 // @@protoc_insertion_point(field_list:google.protobuf.Enum.options) 1779 // @@protoc_insertion_point(field_list:google.protobuf.Enum.options)
1457 return options_; 1780 return options_;
1458 } 1781 }
1459 1782
1460 // optional .google.protobuf.SourceContext source_context = 4; 1783 // .google.protobuf.SourceContext source_context = 4;
1461 inline bool Enum::has_source_context() const { 1784 inline bool Enum::has_source_context() const {
1462 return !_is_default_instance_ && source_context_ != NULL; 1785 return this != internal_default_instance() && source_context_ != NULL;
1463 } 1786 }
1464 inline void Enum::clear_source_context() { 1787 inline void Enum::clear_source_context() {
1465 if (GetArenaNoVirtual() == NULL && source_context_ != NULL) delete source_cont ext_; 1788 if (GetArenaNoVirtual() == NULL && source_context_ != NULL) delete source_cont ext_;
1466 source_context_ = NULL; 1789 source_context_ = NULL;
1467 } 1790 }
1468 inline const ::google::protobuf::SourceContext& Enum::source_context() const { 1791 inline const ::google::protobuf::SourceContext& Enum::source_context() const {
1469 // @@protoc_insertion_point(field_get:google.protobuf.Enum.source_context) 1792 // @@protoc_insertion_point(field_get:google.protobuf.Enum.source_context)
1470 return source_context_ != NULL ? *source_context_ : *default_instance_->source _context_; 1793 return source_context_ != NULL ? *source_context_
1794 : *::google::protobuf::SourceContext::internal_default_ instance();
1471 } 1795 }
1472 inline ::google::protobuf::SourceContext* Enum::mutable_source_context() { 1796 inline ::google::protobuf::SourceContext* Enum::mutable_source_context() {
1473 1797
1474 if (source_context_ == NULL) { 1798 if (source_context_ == NULL) {
1475 source_context_ = new ::google::protobuf::SourceContext; 1799 _slow_mutable_source_context();
1476 } 1800 }
1477 // @@protoc_insertion_point(field_mutable:google.protobuf.Enum.source_context) 1801 // @@protoc_insertion_point(field_mutable:google.protobuf.Enum.source_context)
1478 return source_context_; 1802 return source_context_;
1479 } 1803 }
1480 inline ::google::protobuf::SourceContext* Enum::release_source_context() { 1804 inline ::google::protobuf::SourceContext* Enum::release_source_context() {
1481 // @@protoc_insertion_point(field_release:google.protobuf.Enum.source_context) 1805 // @@protoc_insertion_point(field_release:google.protobuf.Enum.source_context)
1482 1806
1483 ::google::protobuf::SourceContext* temp = source_context_; 1807 if (GetArenaNoVirtual() != NULL) {
1484 source_context_ = NULL; 1808 return _slow_release_source_context();
1485 return temp; 1809 } else {
1810 ::google::protobuf::SourceContext* temp = source_context_;
1811 source_context_ = NULL;
1812 return temp;
1813 }
1486 } 1814 }
1487 inline void Enum::set_allocated_source_context(::google::protobuf::SourceContext * source_context) { 1815 inline void Enum::set_allocated_source_context(::google::protobuf::SourceContex t* source_context) {
1488 delete source_context_; 1816 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1817 if (message_arena == NULL) {
1818 delete source_context_;
1819 }
1820 if (source_context != NULL) {
1821 if (message_arena != NULL) {
1822 message_arena->Own(source_context);
1823 }
1824 }
1489 source_context_ = source_context; 1825 source_context_ = source_context;
1490 if (source_context) { 1826 if (source_context) {
1491 1827
1492 } else { 1828 } else {
1493 1829
1494 } 1830 }
1495 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Enum.source_co ntext) 1831 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Enum.source_co ntext)
1496 } 1832 }
1497 1833
1498 // optional .google.protobuf.Syntax syntax = 5; 1834 // .google.protobuf.Syntax syntax = 5;
1499 inline void Enum::clear_syntax() { 1835 inline void Enum::clear_syntax() {
1500 syntax_ = 0; 1836 syntax_ = 0;
1501 } 1837 }
1502 inline ::google::protobuf::Syntax Enum::syntax() const { 1838 inline ::google::protobuf::Syntax Enum::syntax() const {
1503 // @@protoc_insertion_point(field_get:google.protobuf.Enum.syntax) 1839 // @@protoc_insertion_point(field_get:google.protobuf.Enum.syntax)
1504 return static_cast< ::google::protobuf::Syntax >(syntax_); 1840 return static_cast< ::google::protobuf::Syntax >(syntax_);
1505 } 1841 }
1506 inline void Enum::set_syntax(::google::protobuf::Syntax value) { 1842 inline void Enum::set_syntax(::google::protobuf::Syntax value) {
1507 1843
1508 syntax_ = value; 1844 syntax_ = value;
1509 // @@protoc_insertion_point(field_set:google.protobuf.Enum.syntax) 1845 // @@protoc_insertion_point(field_set:google.protobuf.Enum.syntax)
1510 } 1846 }
1511 1847
1512 // ------------------------------------------------------------------- 1848 // -------------------------------------------------------------------
1513 1849
1514 // EnumValue 1850 // EnumValue
1515 1851
1516 // optional string name = 1; 1852 // string name = 1;
1517 inline void EnumValue::clear_name() { 1853 inline void EnumValue::clear_name() {
1518 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 1854 name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), GetArenaNoVirtual());
1519 } 1855 }
1520 inline const ::std::string& EnumValue::name() const { 1856 inline const ::std::string& EnumValue::name() const {
1521 // @@protoc_insertion_point(field_get:google.protobuf.EnumValue.name) 1857 // @@protoc_insertion_point(field_get:google.protobuf.EnumValue.name)
1522 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited()); 1858 return name_.Get();
1523 } 1859 }
1524 inline void EnumValue::set_name(const ::std::string& value) { 1860 inline void EnumValue::set_name(const ::std::string& value) {
1525 1861
1526 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 1862 name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
1527 // @@protoc_insertion_point(field_set:google.protobuf.EnumValue.name) 1863 // @@protoc_insertion_point(field_set:google.protobuf.EnumValue.name)
1528 } 1864 }
1529 inline void EnumValue::set_name(const char* value) { 1865 inline void EnumValue::set_name(const char* value) {
1530 1866
1531 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 1867 name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std: :string(value),
1868 GetArenaNoVirtual());
1532 // @@protoc_insertion_point(field_set_char:google.protobuf.EnumValue.name) 1869 // @@protoc_insertion_point(field_set_char:google.protobuf.EnumValue.name)
1533 } 1870 }
1534 inline void EnumValue::set_name(const char* value, size_t size) { 1871 inline void EnumValue::set_name(const char* value,
1872 size_t size) {
1535 1873
1536 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 1874 name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std: :string(
1537 ::std::string(reinterpret_cast<const char*>(value), size)); 1875 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
1538 // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumValue.name) 1876 // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumValue.name)
1539 } 1877 }
1540 inline ::std::string* EnumValue::mutable_name() { 1878 inline ::std::string* EnumValue::mutable_name() {
1541 1879
1542 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValue.name) 1880 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValue.name)
1543 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 1881 return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInite d(), GetArenaNoVirtual());
1544 } 1882 }
1545 inline ::std::string* EnumValue::release_name() { 1883 inline ::std::string* EnumValue::release_name() {
1546 // @@protoc_insertion_point(field_release:google.protobuf.EnumValue.name) 1884 // @@protoc_insertion_point(field_release:google.protobuf.EnumValue.name)
1547 1885
1548 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 1886 return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInite d(), GetArenaNoVirtual());
1887 }
1888 inline ::std::string* EnumValue::unsafe_arena_release_name() {
1889 // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.EnumVal ue.name)
1890 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1891
1892 return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringA lreadyInited(),
1893 GetArenaNoVirtual());
1549 } 1894 }
1550 inline void EnumValue::set_allocated_name(::std::string* name) { 1895 inline void EnumValue::set_allocated_name(::std::string* name) {
1551 if (name != NULL) { 1896 if (name != NULL) {
1552 1897
1553 } else { 1898 } else {
1554 1899
1555 } 1900 }
1556 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name); 1901 name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), name,
1902 GetArenaNoVirtual());
1557 // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValue.name ) 1903 // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValue.name )
1558 } 1904 }
1905 inline void EnumValue::unsafe_arena_set_allocated_name(
1906 ::std::string* name) {
1907 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1908 if (name != NULL) {
1909
1910 } else {
1911
1912 }
1913 name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(),
1914 name, GetArenaNoVirtual());
1915 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.E numValue.name)
1916 }
1559 1917
1560 // optional int32 number = 2; 1918 // int32 number = 2;
1561 inline void EnumValue::clear_number() { 1919 inline void EnumValue::clear_number() {
1562 number_ = 0; 1920 number_ = 0;
1563 } 1921 }
1564 inline ::google::protobuf::int32 EnumValue::number() const { 1922 inline ::google::protobuf::int32 EnumValue::number() const {
1565 // @@protoc_insertion_point(field_get:google.protobuf.EnumValue.number) 1923 // @@protoc_insertion_point(field_get:google.protobuf.EnumValue.number)
1566 return number_; 1924 return number_;
1567 } 1925 }
1568 inline void EnumValue::set_number(::google::protobuf::int32 value) { 1926 inline void EnumValue::set_number(::google::protobuf::int32 value) {
1569 1927
1570 number_ = value; 1928 number_ = value;
(...skipping 27 matching lines...) Expand all
1598 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >& 1956 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
1599 EnumValue::options() const { 1957 EnumValue::options() const {
1600 // @@protoc_insertion_point(field_list:google.protobuf.EnumValue.options) 1958 // @@protoc_insertion_point(field_list:google.protobuf.EnumValue.options)
1601 return options_; 1959 return options_;
1602 } 1960 }
1603 1961
1604 // ------------------------------------------------------------------- 1962 // -------------------------------------------------------------------
1605 1963
1606 // Option 1964 // Option
1607 1965
1608 // optional string name = 1; 1966 // string name = 1;
1609 inline void Option::clear_name() { 1967 inline void Option::clear_name() {
1610 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 1968 name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), GetArenaNoVirtual());
1611 } 1969 }
1612 inline const ::std::string& Option::name() const { 1970 inline const ::std::string& Option::name() const {
1613 // @@protoc_insertion_point(field_get:google.protobuf.Option.name) 1971 // @@protoc_insertion_point(field_get:google.protobuf.Option.name)
1614 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited()); 1972 return name_.Get();
1615 } 1973 }
1616 inline void Option::set_name(const ::std::string& value) { 1974 inline void Option::set_name(const ::std::string& value) {
1617 1975
1618 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 1976 name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
1619 // @@protoc_insertion_point(field_set:google.protobuf.Option.name) 1977 // @@protoc_insertion_point(field_set:google.protobuf.Option.name)
1620 } 1978 }
1621 inline void Option::set_name(const char* value) { 1979 inline void Option::set_name(const char* value) {
1622 1980
1623 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 1981 name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std: :string(value),
1982 GetArenaNoVirtual());
1624 // @@protoc_insertion_point(field_set_char:google.protobuf.Option.name) 1983 // @@protoc_insertion_point(field_set_char:google.protobuf.Option.name)
1625 } 1984 }
1626 inline void Option::set_name(const char* value, size_t size) { 1985 inline void Option::set_name(const char* value,
1986 size_t size) {
1627 1987
1628 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 1988 name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std: :string(
1629 ::std::string(reinterpret_cast<const char*>(value), size)); 1989 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
1630 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Option.name) 1990 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Option.name)
1631 } 1991 }
1632 inline ::std::string* Option::mutable_name() { 1992 inline ::std::string* Option::mutable_name() {
1633 1993
1634 // @@protoc_insertion_point(field_mutable:google.protobuf.Option.name) 1994 // @@protoc_insertion_point(field_mutable:google.protobuf.Option.name)
1635 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 1995 return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInite d(), GetArenaNoVirtual());
1636 } 1996 }
1637 inline ::std::string* Option::release_name() { 1997 inline ::std::string* Option::release_name() {
1638 // @@protoc_insertion_point(field_release:google.protobuf.Option.name) 1998 // @@protoc_insertion_point(field_release:google.protobuf.Option.name)
1639 1999
1640 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 2000 return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInite d(), GetArenaNoVirtual());
2001 }
2002 inline ::std::string* Option::unsafe_arena_release_name() {
2003 // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Option. name)
2004 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
2005
2006 return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringA lreadyInited(),
2007 GetArenaNoVirtual());
1641 } 2008 }
1642 inline void Option::set_allocated_name(::std::string* name) { 2009 inline void Option::set_allocated_name(::std::string* name) {
1643 if (name != NULL) { 2010 if (name != NULL) {
1644 2011
1645 } else { 2012 } else {
1646 2013
1647 } 2014 }
1648 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name); 2015 name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), name,
2016 GetArenaNoVirtual());
1649 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Option.name) 2017 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Option.name)
1650 } 2018 }
2019 inline void Option::unsafe_arena_set_allocated_name(
2020 ::std::string* name) {
2021 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
2022 if (name != NULL) {
2023
2024 } else {
2025
2026 }
2027 name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(),
2028 name, GetArenaNoVirtual());
2029 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.O ption.name)
2030 }
1651 2031
1652 // optional .google.protobuf.Any value = 2; 2032 // .google.protobuf.Any value = 2;
1653 inline bool Option::has_value() const { 2033 inline bool Option::has_value() const {
1654 return !_is_default_instance_ && value_ != NULL; 2034 return this != internal_default_instance() && value_ != NULL;
1655 } 2035 }
1656 inline void Option::clear_value() { 2036 inline void Option::clear_value() {
1657 if (GetArenaNoVirtual() == NULL && value_ != NULL) delete value_; 2037 if (GetArenaNoVirtual() == NULL && value_ != NULL) delete value_;
1658 value_ = NULL; 2038 value_ = NULL;
1659 } 2039 }
1660 inline const ::google::protobuf::Any& Option::value() const { 2040 inline const ::google::protobuf::Any& Option::value() const {
1661 // @@protoc_insertion_point(field_get:google.protobuf.Option.value) 2041 // @@protoc_insertion_point(field_get:google.protobuf.Option.value)
1662 return value_ != NULL ? *value_ : *default_instance_->value_; 2042 return value_ != NULL ? *value_
2043 : *::google::protobuf::Any::internal_default_instance() ;
1663 } 2044 }
1664 inline ::google::protobuf::Any* Option::mutable_value() { 2045 inline ::google::protobuf::Any* Option::mutable_value() {
1665 2046
1666 if (value_ == NULL) { 2047 if (value_ == NULL) {
1667 value_ = new ::google::protobuf::Any; 2048 _slow_mutable_value();
1668 } 2049 }
1669 // @@protoc_insertion_point(field_mutable:google.protobuf.Option.value) 2050 // @@protoc_insertion_point(field_mutable:google.protobuf.Option.value)
1670 return value_; 2051 return value_;
1671 } 2052 }
1672 inline ::google::protobuf::Any* Option::release_value() { 2053 inline ::google::protobuf::Any* Option::release_value() {
1673 // @@protoc_insertion_point(field_release:google.protobuf.Option.value) 2054 // @@protoc_insertion_point(field_release:google.protobuf.Option.value)
1674 2055
1675 ::google::protobuf::Any* temp = value_; 2056 if (GetArenaNoVirtual() != NULL) {
1676 value_ = NULL; 2057 return _slow_release_value();
1677 return temp; 2058 } else {
2059 ::google::protobuf::Any* temp = value_;
2060 value_ = NULL;
2061 return temp;
2062 }
1678 } 2063 }
1679 inline void Option::set_allocated_value(::google::protobuf::Any* value) { 2064 inline void Option::set_allocated_value(::google::protobuf::Any* value) {
1680 delete value_; 2065 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
2066 if (message_arena == NULL) {
2067 delete value_;
2068 }
2069 if (value != NULL) {
2070 if (message_arena != NULL) {
2071 message_arena->Own(value);
2072 }
2073 }
1681 value_ = value; 2074 value_ = value;
1682 if (value) { 2075 if (value) {
1683 2076
1684 } else { 2077 } else {
1685 2078
1686 } 2079 }
1687 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Option.value) 2080 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Option.value)
1688 } 2081 }
1689 2082
1690 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 2083 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
1691 // ------------------------------------------------------------------- 2084 // -------------------------------------------------------------------
1692 2085
1693 // ------------------------------------------------------------------- 2086 // -------------------------------------------------------------------
1694 2087
1695 // ------------------------------------------------------------------- 2088 // -------------------------------------------------------------------
1696 2089
1697 // ------------------------------------------------------------------- 2090 // -------------------------------------------------------------------
1698 2091
1699 2092
1700 // @@protoc_insertion_point(namespace_scope) 2093 // @@protoc_insertion_point(namespace_scope)
1701 2094
2095
1702 } // namespace protobuf 2096 } // namespace protobuf
1703 } // namespace google 2097 } // namespace google
1704 2098
1705 #ifndef SWIG 2099 #ifndef SWIG
1706 namespace google { 2100 namespace google {
1707 namespace protobuf { 2101 namespace protobuf {
1708 2102
1709 template <> struct is_proto_enum< ::google::protobuf::Field_Kind> : ::google::pr otobuf::internal::true_type {}; 2103 template <> struct is_proto_enum< ::google::protobuf::Field_Kind> : ::google::pr otobuf::internal::true_type {};
1710 template <> 2104 template <>
1711 inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::Field_Kind>( ) { 2105 inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::Field_Kind>( ) {
(...skipping 10 matching lines...) Expand all
1722 return ::google::protobuf::Syntax_descriptor(); 2116 return ::google::protobuf::Syntax_descriptor();
1723 } 2117 }
1724 2118
1725 } // namespace protobuf 2119 } // namespace protobuf
1726 } // namespace google 2120 } // namespace google
1727 #endif // SWIG 2121 #endif // SWIG
1728 2122
1729 // @@protoc_insertion_point(global_scope) 2123 // @@protoc_insertion_point(global_scope)
1730 2124
1731 #endif // PROTOBUF_google_2fprotobuf_2ftype_2eproto__INCLUDED 2125 #endif // PROTOBUF_google_2fprotobuf_2ftype_2eproto__INCLUDED
OLDNEW
« no previous file with comments | « third_party/protobuf/src/google/protobuf/type.proto ('k') | third_party/protobuf/src/google/protobuf/type.pb.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698