1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: google/protobuf/descriptor.proto
3
4 #ifndef PROTOBUF_google_2fprotobuf_2fdescriptor_2eproto__INCLUDED
5 #define PROTOBUF_google_2fprotobuf_2fdescriptor_2eproto__INCLUDED
6
7 #include <string>
8
9 #include <google/protobuf/stubs/common.h>
10
11 #if GOOGLE_PROTOBUF_VERSION < 2006000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
14 #error your headers.
15 #endif
16 #if 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
20 #endif
21
22 #include <google/protobuf/generated_message_util.h>
23 #include <google/protobuf/message.h>
24 #include <google/protobuf/repeated_field.h>
25 #include <google/protobuf/extension_set.h>
26 #include <google/protobuf/generated_enum_reflection.h>
27 #include <google/protobuf/unknown_field_set.h>
28 // @@protoc_insertion_point(includes)
29
30 namespace google {
31 namespace protobuf {
32
33 // Internal implementation detail -- do not call these.
34 void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
35 void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
36 void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
37
38 class FileDescriptorSet;
39 class FileDescriptorProto;
40 class DescriptorProto;
41 class DescriptorProto_ExtensionRange;
42 class FieldDescriptorProto;
43 class OneofDescriptorProto;
44 class EnumDescriptorProto;
45 class EnumValueDescriptorProto;
46 class ServiceDescriptorProto;
47 class MethodDescriptorProto;
48 class FileOptions;
49 class MessageOptions;
50 class FieldOptions;
51 class EnumOptions;
52 class EnumValueOptions;
53 class ServiceOptions;
54 class MethodOptions;
55 class UninterpretedOption;
56 class UninterpretedOption_NamePart;
57 class SourceCodeInfo;
58 class SourceCodeInfo_Location;
59
60 enum FieldDescriptorProto_Type {
61 FieldDescriptorProto_Type_TYPE_DOUBLE = 1,
62 FieldDescriptorProto_Type_TYPE_FLOAT = 2,
63 FieldDescriptorProto_Type_TYPE_INT64 = 3,
64 FieldDescriptorProto_Type_TYPE_UINT64 = 4,
65 FieldDescriptorProto_Type_TYPE_INT32 = 5,
66 FieldDescriptorProto_Type_TYPE_FIXED64 = 6,
67 FieldDescriptorProto_Type_TYPE_FIXED32 = 7,
68 FieldDescriptorProto_Type_TYPE_BOOL = 8,
69 FieldDescriptorProto_Type_TYPE_STRING = 9,
70 FieldDescriptorProto_Type_TYPE_GROUP = 10,
71 FieldDescriptorProto_Type_TYPE_MESSAGE = 11,
72 FieldDescriptorProto_Type_TYPE_BYTES = 12,
73 FieldDescriptorProto_Type_TYPE_UINT32 = 13,
74 FieldDescriptorProto_Type_TYPE_ENUM = 14,
75 FieldDescriptorProto_Type_TYPE_SFIXED32 = 15,
76 FieldDescriptorProto_Type_TYPE_SFIXED64 = 16,
77 FieldDescriptorProto_Type_TYPE_SINT32 = 17,
78 FieldDescriptorProto_Type_TYPE_SINT64 = 18
79 };
80 LIBPROTOBUF_EXPORT bool FieldDescriptorProto_Type_IsValid(int value);
81 const FieldDescriptorProto_Type FieldDescriptorProto_Type_Type_MIN = FieldDescriptorProto_Type_TYPE_DOUBLE;
82 const FieldDescriptorProto_Type FieldDescriptorProto_Type_Type_MAX = FieldDescriptorProto_Type_TYPE_SINT64;
83 const int FieldDescriptorProto_Type_Type_ARRAYSIZE = FieldDescriptorProto_Type_Type_MAX + 1;
84
85 LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Type_descriptor();
FieldDescriptorProto_Type_Name(FieldDescriptorProto_Type value)86 inline const ::std::string& FieldDescriptorProto_Type_Name(FieldDescriptorProto_Type value) {
87 return ::google::protobuf::internal::NameOfEnum(
88 FieldDescriptorProto_Type_descriptor(), value);
89 }
FieldDescriptorProto_Type_Parse(const::std::string & name,FieldDescriptorProto_Type * value)90 inline bool FieldDescriptorProto_Type_Parse(
91 const ::std::string& name, FieldDescriptorProto_Type* value) {
92 return ::google::protobuf::internal::ParseNamedEnum<FieldDescriptorProto_Type>(
93 FieldDescriptorProto_Type_descriptor(), name, value);
94 }
95 enum FieldDescriptorProto_Label {
96 FieldDescriptorProto_Label_LABEL_OPTIONAL = 1,
97 FieldDescriptorProto_Label_LABEL_REQUIRED = 2,
98 FieldDescriptorProto_Label_LABEL_REPEATED = 3
99 };
100 LIBPROTOBUF_EXPORT bool FieldDescriptorProto_Label_IsValid(int value);
101 const FieldDescriptorProto_Label FieldDescriptorProto_Label_Label_MIN = FieldDescriptorProto_Label_LABEL_OPTIONAL;
102 const FieldDescriptorProto_Label FieldDescriptorProto_Label_Label_MAX = FieldDescriptorProto_Label_LABEL_REPEATED;
103 const int FieldDescriptorProto_Label_Label_ARRAYSIZE = FieldDescriptorProto_Label_Label_MAX + 1;
104
105 LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Label_descriptor();
FieldDescriptorProto_Label_Name(FieldDescriptorProto_Label value)106 inline const ::std::string& FieldDescriptorProto_Label_Name(FieldDescriptorProto_Label value) {
107 return ::google::protobuf::internal::NameOfEnum(
108 FieldDescriptorProto_Label_descriptor(), value);
109 }
FieldDescriptorProto_Label_Parse(const::std::string & name,FieldDescriptorProto_Label * value)110 inline bool FieldDescriptorProto_Label_Parse(
111 const ::std::string& name, FieldDescriptorProto_Label* value) {
112 return ::google::protobuf::internal::ParseNamedEnum<FieldDescriptorProto_Label>(
113 FieldDescriptorProto_Label_descriptor(), name, value);
114 }
115 enum FileOptions_OptimizeMode {
116 FileOptions_OptimizeMode_SPEED = 1,
117 FileOptions_OptimizeMode_CODE_SIZE = 2,
118 FileOptions_OptimizeMode_LITE_RUNTIME = 3
119 };
120 LIBPROTOBUF_EXPORT bool FileOptions_OptimizeMode_IsValid(int value);
121 const FileOptions_OptimizeMode FileOptions_OptimizeMode_OptimizeMode_MIN = FileOptions_OptimizeMode_SPEED;
122 const FileOptions_OptimizeMode FileOptions_OptimizeMode_OptimizeMode_MAX = FileOptions_OptimizeMode_LITE_RUNTIME;
123 const int FileOptions_OptimizeMode_OptimizeMode_ARRAYSIZE = FileOptions_OptimizeMode_OptimizeMode_MAX + 1;
124
125 LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FileOptions_OptimizeMode_descriptor();
FileOptions_OptimizeMode_Name(FileOptions_OptimizeMode value)126 inline const ::std::string& FileOptions_OptimizeMode_Name(FileOptions_OptimizeMode value) {
127 return ::google::protobuf::internal::NameOfEnum(
128 FileOptions_OptimizeMode_descriptor(), value);
129 }
FileOptions_OptimizeMode_Parse(const::std::string & name,FileOptions_OptimizeMode * value)130 inline bool FileOptions_OptimizeMode_Parse(
131 const ::std::string& name, FileOptions_OptimizeMode* value) {
132 return ::google::protobuf::internal::ParseNamedEnum<FileOptions_OptimizeMode>(
133 FileOptions_OptimizeMode_descriptor(), name, value);
134 }
135 enum FieldOptions_CType {
136 FieldOptions_CType_STRING = 0,
137 FieldOptions_CType_CORD = 1,
138 FieldOptions_CType_STRING_PIECE = 2
139 };
140 LIBPROTOBUF_EXPORT bool FieldOptions_CType_IsValid(int value);
141 const FieldOptions_CType FieldOptions_CType_CType_MIN = FieldOptions_CType_STRING;
142 const FieldOptions_CType FieldOptions_CType_CType_MAX = FieldOptions_CType_STRING_PIECE;
143 const int FieldOptions_CType_CType_ARRAYSIZE = FieldOptions_CType_CType_MAX + 1;
144
145 LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FieldOptions_CType_descriptor();
FieldOptions_CType_Name(FieldOptions_CType value)146 inline const ::std::string& FieldOptions_CType_Name(FieldOptions_CType value) {
147 return ::google::protobuf::internal::NameOfEnum(
148 FieldOptions_CType_descriptor(), value);
149 }
FieldOptions_CType_Parse(const::std::string & name,FieldOptions_CType * value)150 inline bool FieldOptions_CType_Parse(
151 const ::std::string& name, FieldOptions_CType* value) {
152 return ::google::protobuf::internal::ParseNamedEnum<FieldOptions_CType>(
153 FieldOptions_CType_descriptor(), name, value);
154 }
155 // ===================================================================
156
157 class LIBPROTOBUF_EXPORT FileDescriptorSet : public ::google::protobuf::Message {
158 public:
159 FileDescriptorSet();
160 virtual ~FileDescriptorSet();
161
162 FileDescriptorSet(const FileDescriptorSet& from);
163
164 inline FileDescriptorSet& operator=(const FileDescriptorSet& from) {
165 CopyFrom(from);
166 return *this;
167 }
168
unknown_fields()169 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
170 return _unknown_fields_;
171 }
172
mutable_unknown_fields()173 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
174 return &_unknown_fields_;
175 }
176
177 static const ::google::protobuf::Descriptor* descriptor();
178 static const FileDescriptorSet& default_instance();
179
180 void Swap(FileDescriptorSet* other);
181
182 // implements Message ----------------------------------------------
183
184 FileDescriptorSet* New() const;
185 void CopyFrom(const ::google::protobuf::Message& from);
186 void MergeFrom(const ::google::protobuf::Message& from);
187 void CopyFrom(const FileDescriptorSet& from);
188 void MergeFrom(const FileDescriptorSet& from);
189 void Clear();
190 bool IsInitialized() const;
191
192 int ByteSize() const;
193 bool MergePartialFromCodedStream(
194 ::google::protobuf::io::CodedInputStream* input);
195 void SerializeWithCachedSizes(
196 ::google::protobuf::io::CodedOutputStream* output) const;
197 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
GetCachedSize()198 int GetCachedSize() const { return _cached_size_; }
199 private:
200 void SharedCtor();
201 void SharedDtor();
202 void SetCachedSize(int size) const;
203 public:
204 ::google::protobuf::Metadata GetMetadata() const;
205
206 // nested types ----------------------------------------------------
207
208 // accessors -------------------------------------------------------
209
210 // repeated .google.protobuf.FileDescriptorProto file = 1;
211 inline int file_size() const;
212 inline void clear_file();
213 static const int kFileFieldNumber = 1;
214 inline const ::google::protobuf::FileDescriptorProto& file(int index) const;
215 inline ::google::protobuf::FileDescriptorProto* mutable_file(int index);
216 inline ::google::protobuf::FileDescriptorProto* add_file();
217 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >&
218 file() const;
219 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >*
220 mutable_file();
221
222 // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorSet)
223 private:
224
225 ::google::protobuf::UnknownFieldSet _unknown_fields_;
226
227 ::google::protobuf::uint32 _has_bits_[1];
228 mutable int _cached_size_;
229 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto > file_;
230 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
231 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
232 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
233
234 void InitAsDefaultInstance();
235 static FileDescriptorSet* default_instance_;
236 };
237 // -------------------------------------------------------------------
238
239 class LIBPROTOBUF_EXPORT FileDescriptorProto : public ::google::protobuf::Message {
240 public:
241 FileDescriptorProto();
242 virtual ~FileDescriptorProto();
243
244 FileDescriptorProto(const FileDescriptorProto& from);
245
246 inline FileDescriptorProto& operator=(const FileDescriptorProto& from) {
247 CopyFrom(from);
248 return *this;
249 }
250
unknown_fields()251 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
252 return _unknown_fields_;
253 }
254
mutable_unknown_fields()255 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
256 return &_unknown_fields_;
257 }
258
259 static const ::google::protobuf::Descriptor* descriptor();
260 static const FileDescriptorProto& default_instance();
261
262 void Swap(FileDescriptorProto* other);
263
264 // implements Message ----------------------------------------------
265
266 FileDescriptorProto* New() const;
267 void CopyFrom(const ::google::protobuf::Message& from);
268 void MergeFrom(const ::google::protobuf::Message& from);
269 void CopyFrom(const FileDescriptorProto& from);
270 void MergeFrom(const FileDescriptorProto& from);
271 void Clear();
272 bool IsInitialized() const;
273
274 int ByteSize() const;
275 bool MergePartialFromCodedStream(
276 ::google::protobuf::io::CodedInputStream* input);
277 void SerializeWithCachedSizes(
278 ::google::protobuf::io::CodedOutputStream* output) const;
279 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
GetCachedSize()280 int GetCachedSize() const { return _cached_size_; }
281 private:
282 void SharedCtor();
283 void SharedDtor();
284 void SetCachedSize(int size) const;
285 public:
286 ::google::protobuf::Metadata GetMetadata() const;
287
288 // nested types ----------------------------------------------------
289
290 // accessors -------------------------------------------------------
291
292 // optional string name = 1;
293 inline bool has_name() const;
294 inline void clear_name();
295 static const int kNameFieldNumber = 1;
296 inline const ::std::string& name() const;
297 inline void set_name(const ::std::string& value);
298 inline void set_name(const char* value);
299 inline void set_name(const char* value, size_t size);
300 inline ::std::string* mutable_name();
301 inline ::std::string* release_name();
302 inline void set_allocated_name(::std::string* name);
303
304 // optional string package = 2;
305 inline bool has_package() const;
306 inline void clear_package();
307 static const int kPackageFieldNumber = 2;
308 inline const ::std::string& package() const;
309 inline void set_package(const ::std::string& value);
310 inline void set_package(const char* value);
311 inline void set_package(const char* value, size_t size);
312 inline ::std::string* mutable_package();
313 inline ::std::string* release_package();
314 inline void set_allocated_package(::std::string* package);
315
316 // repeated string dependency = 3;
317 inline int dependency_size() const;
318 inline void clear_dependency();
319 static const int kDependencyFieldNumber = 3;
320 inline const ::std::string& dependency(int index) const;
321 inline ::std::string* mutable_dependency(int index);
322 inline void set_dependency(int index, const ::std::string& value);
323 inline void set_dependency(int index, const char* value);
324 inline void set_dependency(int index, const char* value, size_t size);
325 inline ::std::string* add_dependency();
326 inline void add_dependency(const ::std::string& value);
327 inline void add_dependency(const char* value);
328 inline void add_dependency(const char* value, size_t size);
329 inline const ::google::protobuf::RepeatedPtrField< ::std::string>& dependency() const;
330 inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_dependency();
331
332 // repeated int32 public_dependency = 10;
333 inline int public_dependency_size() const;
334 inline void clear_public_dependency();
335 static const int kPublicDependencyFieldNumber = 10;
336 inline ::google::protobuf::int32 public_dependency(int index) const;
337 inline void set_public_dependency(int index, ::google::protobuf::int32 value);
338 inline void add_public_dependency(::google::protobuf::int32 value);
339 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
340 public_dependency() const;
341 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
342 mutable_public_dependency();
343
344 // repeated int32 weak_dependency = 11;
345 inline int weak_dependency_size() const;
346 inline void clear_weak_dependency();
347 static const int kWeakDependencyFieldNumber = 11;
348 inline ::google::protobuf::int32 weak_dependency(int index) const;
349 inline void set_weak_dependency(int index, ::google::protobuf::int32 value);
350 inline void add_weak_dependency(::google::protobuf::int32 value);
351 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
352 weak_dependency() const;
353 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
354 mutable_weak_dependency();
355
356 // repeated .google.protobuf.DescriptorProto message_type = 4;
357 inline int message_type_size() const;
358 inline void clear_message_type();
359 static const int kMessageTypeFieldNumber = 4;
360 inline const ::google::protobuf::DescriptorProto& message_type(int index) const;
361 inline ::google::protobuf::DescriptorProto* mutable_message_type(int index);
362 inline ::google::protobuf::DescriptorProto* add_message_type();
363 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >&
364 message_type() const;
365 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >*
366 mutable_message_type();
367
368 // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
369 inline int enum_type_size() const;
370 inline void clear_enum_type();
371 static const int kEnumTypeFieldNumber = 5;
372 inline const ::google::protobuf::EnumDescriptorProto& enum_type(int index) const;
373 inline ::google::protobuf::EnumDescriptorProto* mutable_enum_type(int index);
374 inline ::google::protobuf::EnumDescriptorProto* add_enum_type();
375 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >&
376 enum_type() const;
377 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >*
378 mutable_enum_type();
379
380 // repeated .google.protobuf.ServiceDescriptorProto service = 6;
381 inline int service_size() const;
382 inline void clear_service();
383 static const int kServiceFieldNumber = 6;
384 inline const ::google::protobuf::ServiceDescriptorProto& service(int index) const;
385 inline ::google::protobuf::ServiceDescriptorProto* mutable_service(int index);
386 inline ::google::protobuf::ServiceDescriptorProto* add_service();
387 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >&
388 service() const;
389 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >*
390 mutable_service();
391
392 // repeated .google.protobuf.FieldDescriptorProto extension = 7;
393 inline int extension_size() const;
394 inline void clear_extension();
395 static const int kExtensionFieldNumber = 7;
396 inline const ::google::protobuf::FieldDescriptorProto& extension(int index) const;
397 inline ::google::protobuf::FieldDescriptorProto* mutable_extension(int index);
398 inline ::google::protobuf::FieldDescriptorProto* add_extension();
399 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
400 extension() const;
401 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
402 mutable_extension();
403
404 // optional .google.protobuf.FileOptions options = 8;
405 inline bool has_options() const;
406 inline void clear_options();
407 static const int kOptionsFieldNumber = 8;
408 inline const ::google::protobuf::FileOptions& options() const;
409 inline ::google::protobuf::FileOptions* mutable_options();
410 inline ::google::protobuf::FileOptions* release_options();
411 inline void set_allocated_options(::google::protobuf::FileOptions* options);
412
413 // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
414 inline bool has_source_code_info() const;
415 inline void clear_source_code_info();
416 static const int kSourceCodeInfoFieldNumber = 9;
417 inline const ::google::protobuf::SourceCodeInfo& source_code_info() const;
418 inline ::google::protobuf::SourceCodeInfo* mutable_source_code_info();
419 inline ::google::protobuf::SourceCodeInfo* release_source_code_info();
420 inline void set_allocated_source_code_info(::google::protobuf::SourceCodeInfo* source_code_info);
421
422 // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorProto)
423 private:
424 inline void set_has_name();
425 inline void clear_has_name();
426 inline void set_has_package();
427 inline void clear_has_package();
428 inline void set_has_options();
429 inline void clear_has_options();
430 inline void set_has_source_code_info();
431 inline void clear_has_source_code_info();
432
433 ::google::protobuf::UnknownFieldSet _unknown_fields_;
434
435 ::google::protobuf::uint32 _has_bits_[1];
436 mutable int _cached_size_;
437 ::std::string* name_;
438 ::std::string* package_;
439 ::google::protobuf::RepeatedPtrField< ::std::string> dependency_;
440 ::google::protobuf::RepeatedField< ::google::protobuf::int32 > public_dependency_;
441 ::google::protobuf::RepeatedField< ::google::protobuf::int32 > weak_dependency_;
442 ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto > message_type_;
443 ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto > enum_type_;
444 ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto > service_;
445 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto > extension_;
446 ::google::protobuf::FileOptions* options_;
447 ::google::protobuf::SourceCodeInfo* source_code_info_;
448 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
449 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
450 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
451
452 void InitAsDefaultInstance();
453 static FileDescriptorProto* default_instance_;
454 };
455 // -------------------------------------------------------------------
456
457 class LIBPROTOBUF_EXPORT DescriptorProto_ExtensionRange : public ::google::protobuf::Message {
458 public:
459 DescriptorProto_ExtensionRange();
460 virtual ~DescriptorProto_ExtensionRange();
461
462 DescriptorProto_ExtensionRange(const DescriptorProto_ExtensionRange& from);
463
464 inline DescriptorProto_ExtensionRange& operator=(const DescriptorProto_ExtensionRange& from) {
465 CopyFrom(from);
466 return *this;
467 }
468
unknown_fields()469 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
470 return _unknown_fields_;
471 }
472
mutable_unknown_fields()473 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
474 return &_unknown_fields_;
475 }
476
477 static const ::google::protobuf::Descriptor* descriptor();
478 static const DescriptorProto_ExtensionRange& default_instance();
479
480 void Swap(DescriptorProto_ExtensionRange* other);
481
482 // implements Message ----------------------------------------------
483
484 DescriptorProto_ExtensionRange* New() const;
485 void CopyFrom(const ::google::protobuf::Message& from);
486 void MergeFrom(const ::google::protobuf::Message& from);
487 void CopyFrom(const DescriptorProto_ExtensionRange& from);
488 void MergeFrom(const DescriptorProto_ExtensionRange& from);
489 void Clear();
490 bool IsInitialized() const;
491
492 int ByteSize() const;
493 bool MergePartialFromCodedStream(
494 ::google::protobuf::io::CodedInputStream* input);
495 void SerializeWithCachedSizes(
496 ::google::protobuf::io::CodedOutputStream* output) const;
497 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
GetCachedSize()498 int GetCachedSize() const { return _cached_size_; }
499 private:
500 void SharedCtor();
501 void SharedDtor();
502 void SetCachedSize(int size) const;
503 public:
504 ::google::protobuf::Metadata GetMetadata() const;
505
506 // nested types ----------------------------------------------------
507
508 // accessors -------------------------------------------------------
509
510 // optional int32 start = 1;
511 inline bool has_start() const;
512 inline void clear_start();
513 static const int kStartFieldNumber = 1;
514 inline ::google::protobuf::int32 start() const;
515 inline void set_start(::google::protobuf::int32 value);
516
517 // optional int32 end = 2;
518 inline bool has_end() const;
519 inline void clear_end();
520 static const int kEndFieldNumber = 2;
521 inline ::google::protobuf::int32 end() const;
522 inline void set_end(::google::protobuf::int32 value);
523
524 // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto.ExtensionRange)
525 private:
526 inline void set_has_start();
527 inline void clear_has_start();
528 inline void set_has_end();
529 inline void clear_has_end();
530
531 ::google::protobuf::UnknownFieldSet _unknown_fields_;
532
533 ::google::protobuf::uint32 _has_bits_[1];
534 mutable int _cached_size_;
535 ::google::protobuf::int32 start_;
536 ::google::protobuf::int32 end_;
537 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
538 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
539 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
540
541 void InitAsDefaultInstance();
542 static DescriptorProto_ExtensionRange* default_instance_;
543 };
544 // -------------------------------------------------------------------
545
546 class LIBPROTOBUF_EXPORT DescriptorProto : public ::google::protobuf::Message {
547 public:
548 DescriptorProto();
549 virtual ~DescriptorProto();
550
551 DescriptorProto(const DescriptorProto& from);
552
553 inline DescriptorProto& operator=(const DescriptorProto& from) {
554 CopyFrom(from);
555 return *this;
556 }
557
unknown_fields()558 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
559 return _unknown_fields_;
560 }
561
mutable_unknown_fields()562 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
563 return &_unknown_fields_;
564 }
565
566 static const ::google::protobuf::Descriptor* descriptor();
567 static const DescriptorProto& default_instance();
568
569 void Swap(DescriptorProto* other);
570
571 // implements Message ----------------------------------------------
572
573 DescriptorProto* New() const;
574 void CopyFrom(const ::google::protobuf::Message& from);
575 void MergeFrom(const ::google::protobuf::Message& from);
576 void CopyFrom(const DescriptorProto& from);
577 void MergeFrom(const DescriptorProto& from);
578 void Clear();
579 bool IsInitialized() const;
580
581 int ByteSize() const;
582 bool MergePartialFromCodedStream(
583 ::google::protobuf::io::CodedInputStream* input);
584 void SerializeWithCachedSizes(
585 ::google::protobuf::io::CodedOutputStream* output) const;
586 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
GetCachedSize()587 int GetCachedSize() const { return _cached_size_; }
588 private:
589 void SharedCtor();
590 void SharedDtor();
591 void SetCachedSize(int size) const;
592 public:
593 ::google::protobuf::Metadata GetMetadata() const;
594
595 // nested types ----------------------------------------------------
596
597 typedef DescriptorProto_ExtensionRange ExtensionRange;
598
599 // accessors -------------------------------------------------------
600
601 // optional string name = 1;
602 inline bool has_name() const;
603 inline void clear_name();
604 static const int kNameFieldNumber = 1;
605 inline const ::std::string& name() const;
606 inline void set_name(const ::std::string& value);
607 inline void set_name(const char* value);
608 inline void set_name(const char* value, size_t size);
609 inline ::std::string* mutable_name();
610 inline ::std::string* release_name();
611 inline void set_allocated_name(::std::string* name);
612
613 // repeated .google.protobuf.FieldDescriptorProto field = 2;
614 inline int field_size() const;
615 inline void clear_field();
616 static const int kFieldFieldNumber = 2;
617 inline const ::google::protobuf::FieldDescriptorProto& field(int index) const;
618 inline ::google::protobuf::FieldDescriptorProto* mutable_field(int index);
619 inline ::google::protobuf::FieldDescriptorProto* add_field();
620 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
621 field() const;
622 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
623 mutable_field();
624
625 // repeated .google.protobuf.FieldDescriptorProto extension = 6;
626 inline int extension_size() const;
627 inline void clear_extension();
628 static const int kExtensionFieldNumber = 6;
629 inline const ::google::protobuf::FieldDescriptorProto& extension(int index) const;
630 inline ::google::protobuf::FieldDescriptorProto* mutable_extension(int index);
631 inline ::google::protobuf::FieldDescriptorProto* add_extension();
632 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
633 extension() const;
634 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
635 mutable_extension();
636
637 // repeated .google.protobuf.DescriptorProto nested_type = 3;
638 inline int nested_type_size() const;
639 inline void clear_nested_type();
640 static const int kNestedTypeFieldNumber = 3;
641 inline const ::google::protobuf::DescriptorProto& nested_type(int index) const;
642 inline ::google::protobuf::DescriptorProto* mutable_nested_type(int index);
643 inline ::google::protobuf::DescriptorProto* add_nested_type();
644 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >&
645 nested_type() const;
646 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >*
647 mutable_nested_type();
648
649 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
650 inline int enum_type_size() const;
651 inline void clear_enum_type();
652 static const int kEnumTypeFieldNumber = 4;
653 inline const ::google::protobuf::EnumDescriptorProto& enum_type(int index) const;
654 inline ::google::protobuf::EnumDescriptorProto* mutable_enum_type(int index);
655 inline ::google::protobuf::EnumDescriptorProto* add_enum_type();
656 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >&
657 enum_type() const;
658 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >*
659 mutable_enum_type();
660
661 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
662 inline int extension_range_size() const;
663 inline void clear_extension_range();
664 static const int kExtensionRangeFieldNumber = 5;
665 inline const ::google::protobuf::DescriptorProto_ExtensionRange& extension_range(int index) const;
666 inline ::google::protobuf::DescriptorProto_ExtensionRange* mutable_extension_range(int index);
667 inline ::google::protobuf::DescriptorProto_ExtensionRange* add_extension_range();
668 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >&
669 extension_range() const;
670 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >*
671 mutable_extension_range();
672
673 // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
674 inline int oneof_decl_size() const;
675 inline void clear_oneof_decl();
676 static const int kOneofDeclFieldNumber = 8;
677 inline const ::google::protobuf::OneofDescriptorProto& oneof_decl(int index) const;
678 inline ::google::protobuf::OneofDescriptorProto* mutable_oneof_decl(int index);
679 inline ::google::protobuf::OneofDescriptorProto* add_oneof_decl();
680 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorProto >&
681 oneof_decl() const;
682 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorProto >*
683 mutable_oneof_decl();
684
685 // optional .google.protobuf.MessageOptions options = 7;
686 inline bool has_options() const;
687 inline void clear_options();
688 static const int kOptionsFieldNumber = 7;
689 inline const ::google::protobuf::MessageOptions& options() const;
690 inline ::google::protobuf::MessageOptions* mutable_options();
691 inline ::google::protobuf::MessageOptions* release_options();
692 inline void set_allocated_options(::google::protobuf::MessageOptions* options);
693
694 // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto)
695 private:
696 inline void set_has_name();
697 inline void clear_has_name();
698 inline void set_has_options();
699 inline void clear_has_options();
700
701 ::google::protobuf::UnknownFieldSet _unknown_fields_;
702
703 ::google::protobuf::uint32 _has_bits_[1];
704 mutable int _cached_size_;
705 ::std::string* name_;
706 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto > field_;
707 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto > extension_;
708 ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto > nested_type_;
709 ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto > enum_type_;
710 ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange > extension_range_;
711 ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorProto > oneof_decl_;
712 ::google::protobuf::MessageOptions* options_;
713 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
714 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
715 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
716
717 void InitAsDefaultInstance();
718 static DescriptorProto* default_instance_;
719 };
720 // -------------------------------------------------------------------
721
722 class LIBPROTOBUF_EXPORT FieldDescriptorProto : public ::google::protobuf::Message {
723 public:
724 FieldDescriptorProto();
725 virtual ~FieldDescriptorProto();
726
727 FieldDescriptorProto(const FieldDescriptorProto& from);
728
729 inline FieldDescriptorProto& operator=(const FieldDescriptorProto& from) {
730 CopyFrom(from);
731 return *this;
732 }
733
unknown_fields()734 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
735 return _unknown_fields_;
736 }
737
mutable_unknown_fields()738 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
739 return &_unknown_fields_;
740 }
741
742 static const ::google::protobuf::Descriptor* descriptor();
743 static const FieldDescriptorProto& default_instance();
744
745 void Swap(FieldDescriptorProto* other);
746
747 // implements Message ----------------------------------------------
748
749 FieldDescriptorProto* New() const;
750 void CopyFrom(const ::google::protobuf::Message& from);
751 void MergeFrom(const ::google::protobuf::Message& from);
752 void CopyFrom(const FieldDescriptorProto& from);
753 void MergeFrom(const FieldDescriptorProto& from);
754 void Clear();
755 bool IsInitialized() const;
756
757 int ByteSize() const;
758 bool MergePartialFromCodedStream(
759 ::google::protobuf::io::CodedInputStream* input);
760 void SerializeWithCachedSizes(
761 ::google::protobuf::io::CodedOutputStream* output) const;
762 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
GetCachedSize()763 int GetCachedSize() const { return _cached_size_; }
764 private:
765 void SharedCtor();
766 void SharedDtor();
767 void SetCachedSize(int size) const;
768 public:
769 ::google::protobuf::Metadata GetMetadata() const;
770
771 // nested types ----------------------------------------------------
772
773 typedef FieldDescriptorProto_Type Type;
774 static const Type TYPE_DOUBLE = FieldDescriptorProto_Type_TYPE_DOUBLE;
775 static const Type TYPE_FLOAT = FieldDescriptorProto_Type_TYPE_FLOAT;
776 static const Type TYPE_INT64 = FieldDescriptorProto_Type_TYPE_INT64;
777 static const Type TYPE_UINT64 = FieldDescriptorProto_Type_TYPE_UINT64;
778 static const Type TYPE_INT32 = FieldDescriptorProto_Type_TYPE_INT32;
779 static const Type TYPE_FIXED64 = FieldDescriptorProto_Type_TYPE_FIXED64;
780 static const Type TYPE_FIXED32 = FieldDescriptorProto_Type_TYPE_FIXED32;
781 static const Type TYPE_BOOL = FieldDescriptorProto_Type_TYPE_BOOL;
782 static const Type TYPE_STRING = FieldDescriptorProto_Type_TYPE_STRING;
783 static const Type TYPE_GROUP = FieldDescriptorProto_Type_TYPE_GROUP;
784 static const Type TYPE_MESSAGE = FieldDescriptorProto_Type_TYPE_MESSAGE;
785 static const Type TYPE_BYTES = FieldDescriptorProto_Type_TYPE_BYTES;
786 static const Type TYPE_UINT32 = FieldDescriptorProto_Type_TYPE_UINT32;
787 static const Type TYPE_ENUM = FieldDescriptorProto_Type_TYPE_ENUM;
788 static const Type TYPE_SFIXED32 = FieldDescriptorProto_Type_TYPE_SFIXED32;
789 static const Type TYPE_SFIXED64 = FieldDescriptorProto_Type_TYPE_SFIXED64;
790 static const Type TYPE_SINT32 = FieldDescriptorProto_Type_TYPE_SINT32;
791 static const Type TYPE_SINT64 = FieldDescriptorProto_Type_TYPE_SINT64;
Type_IsValid(int value)792 static inline bool Type_IsValid(int value) {
793 return FieldDescriptorProto_Type_IsValid(value);
794 }
795 static const Type Type_MIN =
796 FieldDescriptorProto_Type_Type_MIN;
797 static const Type Type_MAX =
798 FieldDescriptorProto_Type_Type_MAX;
799 static const int Type_ARRAYSIZE =
800 FieldDescriptorProto_Type_Type_ARRAYSIZE;
801 static inline const ::google::protobuf::EnumDescriptor*
Type_descriptor()802 Type_descriptor() {
803 return FieldDescriptorProto_Type_descriptor();
804 }
Type_Name(Type value)805 static inline const ::std::string& Type_Name(Type value) {
806 return FieldDescriptorProto_Type_Name(value);
807 }
Type_Parse(const::std::string & name,Type * value)808 static inline bool Type_Parse(const ::std::string& name,
809 Type* value) {
810 return FieldDescriptorProto_Type_Parse(name, value);
811 }
812
813 typedef FieldDescriptorProto_Label Label;
814 static const Label LABEL_OPTIONAL = FieldDescriptorProto_Label_LABEL_OPTIONAL;
815 static const Label LABEL_REQUIRED = FieldDescriptorProto_Label_LABEL_REQUIRED;
816 static const Label LABEL_REPEATED = FieldDescriptorProto_Label_LABEL_REPEATED;
Label_IsValid(int value)817 static inline bool Label_IsValid(int value) {
818 return FieldDescriptorProto_Label_IsValid(value);
819 }
820 static const Label Label_MIN =
821 FieldDescriptorProto_Label_Label_MIN;
822 static const Label Label_MAX =
823 FieldDescriptorProto_Label_Label_MAX;
824 static const int Label_ARRAYSIZE =
825 FieldDescriptorProto_Label_Label_ARRAYSIZE;
826 static inline const ::google::protobuf::EnumDescriptor*
Label_descriptor()827 Label_descriptor() {
828 return FieldDescriptorProto_Label_descriptor();
829 }
Label_Name(Label value)830 static inline const ::std::string& Label_Name(Label value) {
831 return FieldDescriptorProto_Label_Name(value);
832 }
Label_Parse(const::std::string & name,Label * value)833 static inline bool Label_Parse(const ::std::string& name,
834 Label* value) {
835 return FieldDescriptorProto_Label_Parse(name, value);
836 }
837
838 // accessors -------------------------------------------------------
839
840 // optional string name = 1;
841 inline bool has_name() const;
842 inline void clear_name();
843 static const int kNameFieldNumber = 1;
844 inline const ::std::string& name() const;
845 inline void set_name(const ::std::string& value);
846 inline void set_name(const char* value);
847 inline void set_name(const char* value, size_t size);
848 inline ::std::string* mutable_name();
849 inline ::std::string* release_name();
850 inline void set_allocated_name(::std::string* name);
851
852 // optional int32 number = 3;
853 inline bool has_number() const;
854 inline void clear_number();
855 static const int kNumberFieldNumber = 3;
856 inline ::google::protobuf::int32 number() const;
857 inline void set_number(::google::protobuf::int32 value);
858
859 // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
860 inline bool has_label() const;
861 inline void clear_label();
862 static const int kLabelFieldNumber = 4;
863 inline ::google::protobuf::FieldDescriptorProto_Label label() const;
864 inline void set_label(::google::protobuf::FieldDescriptorProto_Label value);
865
866 // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
867 inline bool has_type() const;
868 inline void clear_type();
869 static const int kTypeFieldNumber = 5;
870 inline ::google::protobuf::FieldDescriptorProto_Type type() const;
871 inline void set_type(::google::protobuf::FieldDescriptorProto_Type value);
872
873 // optional string type_name = 6;
874 inline bool has_type_name() const;
875 inline void clear_type_name();
876 static const int kTypeNameFieldNumber = 6;
877 inline const ::std::string& type_name() const;
878 inline void set_type_name(const ::std::string& value);
879 inline void set_type_name(const char* value);
880 inline void set_type_name(const char* value, size_t size);
881 inline ::std::string* mutable_type_name();
882 inline ::std::string* release_type_name();
883 inline void set_allocated_type_name(::std::string* type_name);
884
885 // optional string extendee = 2;
886 inline bool has_extendee() const;
887 inline void clear_extendee();
888 static const int kExtendeeFieldNumber = 2;
889 inline const ::std::string& extendee() const;
890 inline void set_extendee(const ::std::string& value);
891 inline void set_extendee(const char* value);
892 inline void set_extendee(const char* value, size_t size);
893 inline ::std::string* mutable_extendee();
894 inline ::std::string* release_extendee();
895 inline void set_allocated_extendee(::std::string* extendee);
896
897 // optional string default_value = 7;
898 inline bool has_default_value() const;
899 inline void clear_default_value();
900 static const int kDefaultValueFieldNumber = 7;
901 inline const ::std::string& default_value() const;
902 inline void set_default_value(const ::std::string& value);
903 inline void set_default_value(const char* value);
904 inline void set_default_value(const char* value, size_t size);
905 inline ::std::string* mutable_default_value();
906 inline ::std::string* release_default_value();
907 inline void set_allocated_default_value(::std::string* default_value);
908
909 // optional int32 oneof_index = 9;
910 inline bool has_oneof_index() const;
911 inline void clear_oneof_index();
912 static const int kOneofIndexFieldNumber = 9;
913 inline ::google::protobuf::int32 oneof_index() const;
914 inline void set_oneof_index(::google::protobuf::int32 value);
915
916 // optional .google.protobuf.FieldOptions options = 8;
917 inline bool has_options() const;
918 inline void clear_options();
919 static const int kOptionsFieldNumber = 8;
920 inline const ::google::protobuf::FieldOptions& options() const;
921 inline ::google::protobuf::FieldOptions* mutable_options();
922 inline ::google::protobuf::FieldOptions* release_options();
923 inline void set_allocated_options(::google::protobuf::FieldOptions* options);
924
925 // @@protoc_insertion_point(class_scope:google.protobuf.FieldDescriptorProto)
926 private:
927 inline void set_has_name();
928 inline void clear_has_name();
929 inline void set_has_number();
930 inline void clear_has_number();
931 inline void set_has_label();
932 inline void clear_has_label();
933 inline void set_has_type();
934 inline void clear_has_type();
935 inline void set_has_type_name();
936 inline void clear_has_type_name();
937 inline void set_has_extendee();
938 inline void clear_has_extendee();
939 inline void set_has_default_value();
940 inline void clear_has_default_value();
941 inline void set_has_oneof_index();
942 inline void clear_has_oneof_index();
943 inline void set_has_options();
944 inline void clear_has_options();
945
946 ::google::protobuf::UnknownFieldSet _unknown_fields_;
947
948 ::google::protobuf::uint32 _has_bits_[1];
949 mutable int _cached_size_;
950 ::std::string* name_;
951 ::google::protobuf::int32 number_;
952 int label_;
953 ::std::string* type_name_;
954 ::std::string* extendee_;
955 int type_;
956 ::google::protobuf::int32 oneof_index_;
957 ::std::string* default_value_;
958 ::google::protobuf::FieldOptions* options_;
959 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
960 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
961 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
962
963 void InitAsDefaultInstance();
964 static FieldDescriptorProto* default_instance_;
965 };
966 // -------------------------------------------------------------------
967
968 class LIBPROTOBUF_EXPORT OneofDescriptorProto : public ::google::protobuf::Message {
969 public:
970 OneofDescriptorProto();
971 virtual ~OneofDescriptorProto();
972
973 OneofDescriptorProto(const OneofDescriptorProto& from);
974
975 inline OneofDescriptorProto& operator=(const OneofDescriptorProto& from) {
976 CopyFrom(from);
977 return *this;
978 }
979
unknown_fields()980 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
981 return _unknown_fields_;
982 }
983
mutable_unknown_fields()984 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
985 return &_unknown_fields_;
986 }
987
988 static const ::google::protobuf::Descriptor* descriptor();
989 static const OneofDescriptorProto& default_instance();
990
991 void Swap(OneofDescriptorProto* other);
992
993 // implements Message ----------------------------------------------
994
995 OneofDescriptorProto* New() const;
996 void CopyFrom(const ::google::protobuf::Message& from);
997 void MergeFrom(const ::google::protobuf::Message& from);
998 void CopyFrom(const OneofDescriptorProto& from);
999 void MergeFrom(const OneofDescriptorProto& from);
1000 void Clear();
1001 bool IsInitialized() const;
1002
1003 int ByteSize() const;
1004 bool MergePartialFromCodedStream(
1005 ::google::protobuf::io::CodedInputStream* input);
1006 void SerializeWithCachedSizes(
1007 ::google::protobuf::io::CodedOutputStream* output) const;
1008 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
GetCachedSize()1009 int GetCachedSize() const { return _cached_size_; }
1010 private:
1011 void SharedCtor();
1012 void SharedDtor();
1013 void SetCachedSize(int size) const;
1014 public:
1015 ::google::protobuf::Metadata GetMetadata() const;
1016
1017 // nested types ----------------------------------------------------
1018
1019 // accessors -------------------------------------------------------
1020
1021 // optional string name = 1;
1022 inline bool has_name() const;
1023 inline void clear_name();
1024 static const int kNameFieldNumber = 1;
1025 inline const ::std::string& name() const;
1026 inline void set_name(const ::std::string& value);
1027 inline void set_name(const char* value);
1028 inline void set_name(const char* value, size_t size);
1029 inline ::std::string* mutable_name();
1030 inline ::std::string* release_name();
1031 inline void set_allocated_name(::std::string* name);
1032
1033 // @@protoc_insertion_point(class_scope:google.protobuf.OneofDescriptorProto)
1034 private:
1035 inline void set_has_name();
1036 inline void clear_has_name();
1037
1038 ::google::protobuf::UnknownFieldSet _unknown_fields_;
1039
1040 ::google::protobuf::uint32 _has_bits_[1];
1041 mutable int _cached_size_;
1042 ::std::string* name_;
1043 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
1044 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
1045 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
1046
1047 void InitAsDefaultInstance();
1048 static OneofDescriptorProto* default_instance_;
1049 };
1050 // -------------------------------------------------------------------
1051
1052 class LIBPROTOBUF_EXPORT EnumDescriptorProto : public ::google::protobuf::Message {
1053 public:
1054 EnumDescriptorProto();
1055 virtual ~EnumDescriptorProto();
1056
1057 EnumDescriptorProto(const EnumDescriptorProto& from);
1058
1059 inline EnumDescriptorProto& operator=(const EnumDescriptorProto& from) {
1060 CopyFrom(from);
1061 return *this;
1062 }
1063
unknown_fields()1064 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1065 return _unknown_fields_;
1066 }
1067
mutable_unknown_fields()1068 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1069 return &_unknown_fields_;
1070 }
1071
1072 static const ::google::protobuf::Descriptor* descriptor();
1073 static const EnumDescriptorProto& default_instance();
1074
1075 void Swap(EnumDescriptorProto* other);
1076
1077 // implements Message ----------------------------------------------
1078
1079 EnumDescriptorProto* New() const;
1080 void CopyFrom(const ::google::protobuf::Message& from);
1081 void MergeFrom(const ::google::protobuf::Message& from);
1082 void CopyFrom(const EnumDescriptorProto& from);
1083 void MergeFrom(const EnumDescriptorProto& from);
1084 void Clear();
1085 bool IsInitialized() const;
1086
1087 int ByteSize() const;
1088 bool MergePartialFromCodedStream(
1089 ::google::protobuf::io::CodedInputStream* input);
1090 void SerializeWithCachedSizes(
1091 ::google::protobuf::io::CodedOutputStream* output) const;
1092 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
GetCachedSize()1093 int GetCachedSize() const { return _cached_size_; }
1094 private:
1095 void SharedCtor();
1096 void SharedDtor();
1097 void SetCachedSize(int size) const;
1098 public:
1099 ::google::protobuf::Metadata GetMetadata() const;
1100
1101 // nested types ----------------------------------------------------
1102
1103 // accessors -------------------------------------------------------
1104
1105 // optional string name = 1;
1106 inline bool has_name() const;
1107 inline void clear_name();
1108 static const int kNameFieldNumber = 1;
1109 inline const ::std::string& name() const;
1110 inline void set_name(const ::std::string& value);
1111 inline void set_name(const char* value);
1112 inline void set_name(const char* value, size_t size);
1113 inline ::std::string* mutable_name();
1114 inline ::std::string* release_name();
1115 inline void set_allocated_name(::std::string* name);
1116
1117 // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
1118 inline int value_size() const;
1119 inline void clear_value();
1120 static const int kValueFieldNumber = 2;
1121 inline const ::google::protobuf::EnumValueDescriptorProto& value(int index) const;
1122 inline ::google::protobuf::EnumValueDescriptorProto* mutable_value(int index);
1123 inline ::google::protobuf::EnumValueDescriptorProto* add_value();
1124 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >&
1125 value() const;
1126 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >*
1127 mutable_value();
1128
1129 // optional .google.protobuf.EnumOptions options = 3;
1130 inline bool has_options() const;
1131 inline void clear_options();
1132 static const int kOptionsFieldNumber = 3;
1133 inline const ::google::protobuf::EnumOptions& options() const;
1134 inline ::google::protobuf::EnumOptions* mutable_options();
1135 inline ::google::protobuf::EnumOptions* release_options();
1136 inline void set_allocated_options(::google::protobuf::EnumOptions* options);
1137
1138 // @@protoc_insertion_point(class_scope:google.protobuf.EnumDescriptorProto)
1139 private:
1140 inline void set_has_name();
1141 inline void clear_has_name();
1142 inline void set_has_options();
1143 inline void clear_has_options();
1144
1145 ::google::protobuf::UnknownFieldSet _unknown_fields_;
1146
1147 ::google::protobuf::uint32 _has_bits_[1];
1148 mutable int _cached_size_;
1149 ::std::string* name_;
1150 ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto > value_;
1151 ::google::protobuf::EnumOptions* options_;
1152 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
1153 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
1154 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
1155
1156 void InitAsDefaultInstance();
1157 static EnumDescriptorProto* default_instance_;
1158 };
1159 // -------------------------------------------------------------------
1160
1161 class LIBPROTOBUF_EXPORT EnumValueDescriptorProto : public ::google::protobuf::Message {
1162 public:
1163 EnumValueDescriptorProto();
1164 virtual ~EnumValueDescriptorProto();
1165
1166 EnumValueDescriptorProto(const EnumValueDescriptorProto& from);
1167
1168 inline EnumValueDescriptorProto& operator=(const EnumValueDescriptorProto& from) {
1169 CopyFrom(from);
1170 return *this;
1171 }
1172
unknown_fields()1173 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1174 return _unknown_fields_;
1175 }
1176
mutable_unknown_fields()1177 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1178 return &_unknown_fields_;
1179 }
1180
1181 static const ::google::protobuf::Descriptor* descriptor();
1182 static const EnumValueDescriptorProto& default_instance();
1183
1184 void Swap(EnumValueDescriptorProto* other);
1185
1186 // implements Message ----------------------------------------------
1187
1188 EnumValueDescriptorProto* New() const;
1189 void CopyFrom(const ::google::protobuf::Message& from);
1190 void MergeFrom(const ::google::protobuf::Message& from);
1191 void CopyFrom(const EnumValueDescriptorProto& from);
1192 void MergeFrom(const EnumValueDescriptorProto& from);
1193 void Clear();
1194 bool IsInitialized() const;
1195
1196 int ByteSize() const;
1197 bool MergePartialFromCodedStream(
1198 ::google::protobuf::io::CodedInputStream* input);
1199 void SerializeWithCachedSizes(
1200 ::google::protobuf::io::CodedOutputStream* output) const;
1201 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
GetCachedSize()1202 int GetCachedSize() const { return _cached_size_; }
1203 private:
1204 void SharedCtor();
1205 void SharedDtor();
1206 void SetCachedSize(int size) const;
1207 public:
1208 ::google::protobuf::Metadata GetMetadata() const;
1209
1210 // nested types ----------------------------------------------------
1211
1212 // accessors -------------------------------------------------------
1213
1214 // optional string name = 1;
1215 inline bool has_name() const;
1216 inline void clear_name();
1217 static const int kNameFieldNumber = 1;
1218 inline const ::std::string& name() const;
1219 inline void set_name(const ::std::string& value);
1220 inline void set_name(const char* value);
1221 inline void set_name(const char* value, size_t size);
1222 inline ::std::string* mutable_name();
1223 inline ::std::string* release_name();
1224 inline void set_allocated_name(::std::string* name);
1225
1226 // optional int32 number = 2;
1227 inline bool has_number() const;
1228 inline void clear_number();
1229 static const int kNumberFieldNumber = 2;
1230 inline ::google::protobuf::int32 number() const;
1231 inline void set_number(::google::protobuf::int32 value);
1232
1233 // optional .google.protobuf.EnumValueOptions options = 3;
1234 inline bool has_options() const;
1235 inline void clear_options();
1236 static const int kOptionsFieldNumber = 3;
1237 inline const ::google::protobuf::EnumValueOptions& options() const;
1238 inline ::google::protobuf::EnumValueOptions* mutable_options();
1239 inline ::google::protobuf::EnumValueOptions* release_options();
1240 inline void set_allocated_options(::google::protobuf::EnumValueOptions* options);
1241
1242 // @@protoc_insertion_point(class_scope:google.protobuf.EnumValueDescriptorProto)
1243 private:
1244 inline void set_has_name();
1245 inline void clear_has_name();
1246 inline void set_has_number();
1247 inline void clear_has_number();
1248 inline void set_has_options();
1249 inline void clear_has_options();
1250
1251 ::google::protobuf::UnknownFieldSet _unknown_fields_;
1252
1253 ::google::protobuf::uint32 _has_bits_[1];
1254 mutable int _cached_size_;
1255 ::std::string* name_;
1256 ::google::protobuf::EnumValueOptions* options_;
1257 ::google::protobuf::int32 number_;
1258 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
1259 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
1260 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
1261
1262 void InitAsDefaultInstance();
1263 static EnumValueDescriptorProto* default_instance_;
1264 };
1265 // -------------------------------------------------------------------
1266
1267 class LIBPROTOBUF_EXPORT ServiceDescriptorProto : public ::google::protobuf::Message {
1268 public:
1269 ServiceDescriptorProto();
1270 virtual ~ServiceDescriptorProto();
1271
1272 ServiceDescriptorProto(const ServiceDescriptorProto& from);
1273
1274 inline ServiceDescriptorProto& operator=(const ServiceDescriptorProto& from) {
1275 CopyFrom(from);
1276 return *this;
1277 }
1278
unknown_fields()1279 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1280 return _unknown_fields_;
1281 }
1282
mutable_unknown_fields()1283 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1284 return &_unknown_fields_;
1285 }
1286
1287 static const ::google::protobuf::Descriptor* descriptor();
1288 static const ServiceDescriptorProto& default_instance();
1289
1290 void Swap(ServiceDescriptorProto* other);
1291
1292 // implements Message ----------------------------------------------
1293
1294 ServiceDescriptorProto* New() const;
1295 void CopyFrom(const ::google::protobuf::Message& from);
1296 void MergeFrom(const ::google::protobuf::Message& from);
1297 void CopyFrom(const ServiceDescriptorProto& from);
1298 void MergeFrom(const ServiceDescriptorProto& from);
1299 void Clear();
1300 bool IsInitialized() const;
1301
1302 int ByteSize() const;
1303 bool MergePartialFromCodedStream(
1304 ::google::protobuf::io::CodedInputStream* input);
1305 void SerializeWithCachedSizes(
1306 ::google::protobuf::io::CodedOutputStream* output) const;
1307 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
GetCachedSize()1308 int GetCachedSize() const { return _cached_size_; }
1309 private:
1310 void SharedCtor();
1311 void SharedDtor();
1312 void SetCachedSize(int size) const;
1313 public:
1314 ::google::protobuf::Metadata GetMetadata() const;
1315
1316 // nested types ----------------------------------------------------
1317
1318 // accessors -------------------------------------------------------
1319
1320 // optional string name = 1;
1321 inline bool has_name() const;
1322 inline void clear_name();
1323 static const int kNameFieldNumber = 1;
1324 inline const ::std::string& name() const;
1325 inline void set_name(const ::std::string& value);
1326 inline void set_name(const char* value);
1327 inline void set_name(const char* value, size_t size);
1328 inline ::std::string* mutable_name();
1329 inline ::std::string* release_name();
1330 inline void set_allocated_name(::std::string* name);
1331
1332 // repeated .google.protobuf.MethodDescriptorProto method = 2;
1333 inline int method_size() const;
1334 inline void clear_method();
1335 static const int kMethodFieldNumber = 2;
1336 inline const ::google::protobuf::MethodDescriptorProto& method(int index) const;
1337 inline ::google::protobuf::MethodDescriptorProto* mutable_method(int index);
1338 inline ::google::protobuf::MethodDescriptorProto* add_method();
1339 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >&
1340 method() const;
1341 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >*
1342 mutable_method();
1343
1344 // optional .google.protobuf.ServiceOptions options = 3;
1345 inline bool has_options() const;
1346 inline void clear_options();
1347 static const int kOptionsFieldNumber = 3;
1348 inline const ::google::protobuf::ServiceOptions& options() const;
1349 inline ::google::protobuf::ServiceOptions* mutable_options();
1350 inline ::google::protobuf::ServiceOptions* release_options();
1351 inline void set_allocated_options(::google::protobuf::ServiceOptions* options);
1352
1353 // @@protoc_insertion_point(class_scope:google.protobuf.ServiceDescriptorProto)
1354 private:
1355 inline void set_has_name();
1356 inline void clear_has_name();
1357 inline void set_has_options();
1358 inline void clear_has_options();
1359
1360 ::google::protobuf::UnknownFieldSet _unknown_fields_;
1361
1362 ::google::protobuf::uint32 _has_bits_[1];
1363 mutable int _cached_size_;
1364 ::std::string* name_;
1365 ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto > method_;
1366 ::google::protobuf::ServiceOptions* options_;
1367 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
1368 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
1369 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
1370
1371 void InitAsDefaultInstance();
1372 static ServiceDescriptorProto* default_instance_;
1373 };
1374 // -------------------------------------------------------------------
1375
1376 class LIBPROTOBUF_EXPORT MethodDescriptorProto : public ::google::protobuf::Message {
1377 public:
1378 MethodDescriptorProto();
1379 virtual ~MethodDescriptorProto();
1380
1381 MethodDescriptorProto(const MethodDescriptorProto& from);
1382
1383 inline MethodDescriptorProto& operator=(const MethodDescriptorProto& from) {
1384 CopyFrom(from);
1385 return *this;
1386 }
1387
unknown_fields()1388 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1389 return _unknown_fields_;
1390 }
1391
mutable_unknown_fields()1392 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1393 return &_unknown_fields_;
1394 }
1395
1396 static const ::google::protobuf::Descriptor* descriptor();
1397 static const MethodDescriptorProto& default_instance();
1398
1399 void Swap(MethodDescriptorProto* other);
1400
1401 // implements Message ----------------------------------------------
1402
1403 MethodDescriptorProto* New() const;
1404 void CopyFrom(const ::google::protobuf::Message& from);
1405 void MergeFrom(const ::google::protobuf::Message& from);
1406 void CopyFrom(const MethodDescriptorProto& from);
1407 void MergeFrom(const MethodDescriptorProto& from);
1408 void Clear();
1409 bool IsInitialized() const;
1410
1411 int ByteSize() const;
1412 bool MergePartialFromCodedStream(
1413 ::google::protobuf::io::CodedInputStream* input);
1414 void SerializeWithCachedSizes(
1415 ::google::protobuf::io::CodedOutputStream* output) const;
1416 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
GetCachedSize()1417 int GetCachedSize() const { return _cached_size_; }
1418 private:
1419 void SharedCtor();
1420 void SharedDtor();
1421 void SetCachedSize(int size) const;
1422 public:
1423 ::google::protobuf::Metadata GetMetadata() const;
1424
1425 // nested types ----------------------------------------------------
1426
1427 // accessors -------------------------------------------------------
1428
1429 // optional string name = 1;
1430 inline bool has_name() const;
1431 inline void clear_name();
1432 static const int kNameFieldNumber = 1;
1433 inline const ::std::string& name() const;
1434 inline void set_name(const ::std::string& value);
1435 inline void set_name(const char* value);
1436 inline void set_name(const char* value, size_t size);
1437 inline ::std::string* mutable_name();
1438 inline ::std::string* release_name();
1439 inline void set_allocated_name(::std::string* name);
1440
1441 // optional string input_type = 2;
1442 inline bool has_input_type() const;
1443 inline void clear_input_type();
1444 static const int kInputTypeFieldNumber = 2;
1445 inline const ::std::string& input_type() const;
1446 inline void set_input_type(const ::std::string& value);
1447 inline void set_input_type(const char* value);
1448 inline void set_input_type(const char* value, size_t size);
1449 inline ::std::string* mutable_input_type();
1450 inline ::std::string* release_input_type();
1451 inline void set_allocated_input_type(::std::string* input_type);
1452
1453 // optional string output_type = 3;
1454 inline bool has_output_type() const;
1455 inline void clear_output_type();
1456 static const int kOutputTypeFieldNumber = 3;
1457 inline const ::std::string& output_type() const;
1458 inline void set_output_type(const ::std::string& value);
1459 inline void set_output_type(const char* value);
1460 inline void set_output_type(const char* value, size_t size);
1461 inline ::std::string* mutable_output_type();
1462 inline ::std::string* release_output_type();
1463 inline void set_allocated_output_type(::std::string* output_type);
1464
1465 // optional .google.protobuf.MethodOptions options = 4;
1466 inline bool has_options() const;
1467 inline void clear_options();
1468 static const int kOptionsFieldNumber = 4;
1469 inline const ::google::protobuf::MethodOptions& options() const;
1470 inline ::google::protobuf::MethodOptions* mutable_options();
1471 inline ::google::protobuf::MethodOptions* release_options();
1472 inline void set_allocated_options(::google::protobuf::MethodOptions* options);
1473
1474 // @@protoc_insertion_point(class_scope:google.protobuf.MethodDescriptorProto)
1475 private:
1476 inline void set_has_name();
1477 inline void clear_has_name();
1478 inline void set_has_input_type();
1479 inline void clear_has_input_type();
1480 inline void set_has_output_type();
1481 inline void clear_has_output_type();
1482 inline void set_has_options();
1483 inline void clear_has_options();
1484
1485 ::google::protobuf::UnknownFieldSet _unknown_fields_;
1486
1487 ::google::protobuf::uint32 _has_bits_[1];
1488 mutable int _cached_size_;
1489 ::std::string* name_;
1490 ::std::string* input_type_;
1491 ::std::string* output_type_;
1492 ::google::protobuf::MethodOptions* options_;
1493 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
1494 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
1495 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
1496
1497 void InitAsDefaultInstance();
1498 static MethodDescriptorProto* default_instance_;
1499 };
1500 // -------------------------------------------------------------------
1501
1502 class LIBPROTOBUF_EXPORT FileOptions : public ::google::protobuf::Message {
1503 public:
1504 FileOptions();
1505 virtual ~FileOptions();
1506
1507 FileOptions(const FileOptions& from);
1508
1509 inline FileOptions& operator=(const FileOptions& from) {
1510 CopyFrom(from);
1511 return *this;
1512 }
1513
unknown_fields()1514 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1515 return _unknown_fields_;
1516 }
1517
mutable_unknown_fields()1518 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1519 return &_unknown_fields_;
1520 }
1521
1522 static const ::google::protobuf::Descriptor* descriptor();
1523 static const FileOptions& default_instance();
1524
1525 void Swap(FileOptions* other);
1526
1527 // implements Message ----------------------------------------------
1528
1529 FileOptions* New() const;
1530 void CopyFrom(const ::google::protobuf::Message& from);
1531 void MergeFrom(const ::google::protobuf::Message& from);
1532 void CopyFrom(const FileOptions& from);
1533 void MergeFrom(const FileOptions& from);
1534 void Clear();
1535 bool IsInitialized() const;
1536
1537 int ByteSize() const;
1538 bool MergePartialFromCodedStream(
1539 ::google::protobuf::io::CodedInputStream* input);
1540 void SerializeWithCachedSizes(
1541 ::google::protobuf::io::CodedOutputStream* output) const;
1542 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
GetCachedSize()1543 int GetCachedSize() const { return _cached_size_; }
1544 private:
1545 void SharedCtor();
1546 void SharedDtor();
1547 void SetCachedSize(int size) const;
1548 public:
1549 ::google::protobuf::Metadata GetMetadata() const;
1550
1551 // nested types ----------------------------------------------------
1552
1553 typedef FileOptions_OptimizeMode OptimizeMode;
1554 static const OptimizeMode SPEED = FileOptions_OptimizeMode_SPEED;
1555 static const OptimizeMode CODE_SIZE = FileOptions_OptimizeMode_CODE_SIZE;
1556 static const OptimizeMode LITE_RUNTIME = FileOptions_OptimizeMode_LITE_RUNTIME;
OptimizeMode_IsValid(int value)1557 static inline bool OptimizeMode_IsValid(int value) {
1558 return FileOptions_OptimizeMode_IsValid(value);
1559 }
1560 static const OptimizeMode OptimizeMode_MIN =
1561 FileOptions_OptimizeMode_OptimizeMode_MIN;
1562 static const OptimizeMode OptimizeMode_MAX =
1563 FileOptions_OptimizeMode_OptimizeMode_MAX;
1564 static const int OptimizeMode_ARRAYSIZE =
1565 FileOptions_OptimizeMode_OptimizeMode_ARRAYSIZE;
1566 static inline const ::google::protobuf::EnumDescriptor*
OptimizeMode_descriptor()1567 OptimizeMode_descriptor() {
1568 return FileOptions_OptimizeMode_descriptor();
1569 }
OptimizeMode_Name(OptimizeMode value)1570 static inline const ::std::string& OptimizeMode_Name(OptimizeMode value) {
1571 return FileOptions_OptimizeMode_Name(value);
1572 }
OptimizeMode_Parse(const::std::string & name,OptimizeMode * value)1573 static inline bool OptimizeMode_Parse(const ::std::string& name,
1574 OptimizeMode* value) {
1575 return FileOptions_OptimizeMode_Parse(name, value);
1576 }
1577
1578 // accessors -------------------------------------------------------
1579
1580 // optional string java_package = 1;
1581 inline bool has_java_package() const;
1582 inline void clear_java_package();
1583 static const int kJavaPackageFieldNumber = 1;
1584 inline const ::std::string& java_package() const;
1585 inline void set_java_package(const ::std::string& value);
1586 inline void set_java_package(const char* value);
1587 inline void set_java_package(const char* value, size_t size);
1588 inline ::std::string* mutable_java_package();
1589 inline ::std::string* release_java_package();
1590 inline void set_allocated_java_package(::std::string* java_package);
1591
1592 // optional string java_outer_classname = 8;
1593 inline bool has_java_outer_classname() const;
1594 inline void clear_java_outer_classname();
1595 static const int kJavaOuterClassnameFieldNumber = 8;
1596 inline const ::std::string& java_outer_classname() const;
1597 inline void set_java_outer_classname(const ::std::string& value);
1598 inline void set_java_outer_classname(const char* value);
1599 inline void set_java_outer_classname(const char* value, size_t size);
1600 inline ::std::string* mutable_java_outer_classname();
1601 inline ::std::string* release_java_outer_classname();
1602 inline void set_allocated_java_outer_classname(::std::string* java_outer_classname);
1603
1604 // optional bool java_multiple_files = 10 [default = false];
1605 inline bool has_java_multiple_files() const;
1606 inline void clear_java_multiple_files();
1607 static const int kJavaMultipleFilesFieldNumber = 10;
1608 inline bool java_multiple_files() const;
1609 inline void set_java_multiple_files(bool value);
1610
1611 // optional bool java_generate_equals_and_hash = 20 [default = false];
1612 inline bool has_java_generate_equals_and_hash() const;
1613 inline void clear_java_generate_equals_and_hash();
1614 static const int kJavaGenerateEqualsAndHashFieldNumber = 20;
1615 inline bool java_generate_equals_and_hash() const;
1616 inline void set_java_generate_equals_and_hash(bool value);
1617
1618 // optional bool java_string_check_utf8 = 27 [default = false];
1619 inline bool has_java_string_check_utf8() const;
1620 inline void clear_java_string_check_utf8();
1621 static const int kJavaStringCheckUtf8FieldNumber = 27;
1622 inline bool java_string_check_utf8() const;
1623 inline void set_java_string_check_utf8(bool value);
1624
1625 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
1626 inline bool has_optimize_for() const;
1627 inline void clear_optimize_for();
1628 static const int kOptimizeForFieldNumber = 9;
1629 inline ::google::protobuf::FileOptions_OptimizeMode optimize_for() const;
1630 inline void set_optimize_for(::google::protobuf::FileOptions_OptimizeMode value);
1631
1632 // optional string go_package = 11;
1633 inline bool has_go_package() const;
1634 inline void clear_go_package();
1635 static const int kGoPackageFieldNumber = 11;
1636 inline const ::std::string& go_package() const;
1637 inline void set_go_package(const ::std::string& value);
1638 inline void set_go_package(const char* value);
1639 inline void set_go_package(const char* value, size_t size);
1640 inline ::std::string* mutable_go_package();
1641 inline ::std::string* release_go_package();
1642 inline void set_allocated_go_package(::std::string* go_package);
1643
1644 // optional bool cc_generic_services = 16 [default = false];
1645 inline bool has_cc_generic_services() const;
1646 inline void clear_cc_generic_services();
1647 static const int kCcGenericServicesFieldNumber = 16;
1648 inline bool cc_generic_services() const;
1649 inline void set_cc_generic_services(bool value);
1650
1651 // optional bool java_generic_services = 17 [default = false];
1652 inline bool has_java_generic_services() const;
1653 inline void clear_java_generic_services();
1654 static const int kJavaGenericServicesFieldNumber = 17;
1655 inline bool java_generic_services() const;
1656 inline void set_java_generic_services(bool value);
1657
1658 // optional bool py_generic_services = 18 [default = false];
1659 inline bool has_py_generic_services() const;
1660 inline void clear_py_generic_services();
1661 static const int kPyGenericServicesFieldNumber = 18;
1662 inline bool py_generic_services() const;
1663 inline void set_py_generic_services(bool value);
1664
1665 // optional bool deprecated = 23 [default = false];
1666 inline bool has_deprecated() const;
1667 inline void clear_deprecated();
1668 static const int kDeprecatedFieldNumber = 23;
1669 inline bool deprecated() const;
1670 inline void set_deprecated(bool value);
1671
1672 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
1673 inline int uninterpreted_option_size() const;
1674 inline void clear_uninterpreted_option();
1675 static const int kUninterpretedOptionFieldNumber = 999;
1676 inline const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
1677 inline ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
1678 inline ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
1679 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
1680 uninterpreted_option() const;
1681 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
1682 mutable_uninterpreted_option();
1683
1684 GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(FileOptions)
1685 // @@protoc_insertion_point(class_scope:google.protobuf.FileOptions)
1686 private:
1687 inline void set_has_java_package();
1688 inline void clear_has_java_package();
1689 inline void set_has_java_outer_classname();
1690 inline void clear_has_java_outer_classname();
1691 inline void set_has_java_multiple_files();
1692 inline void clear_has_java_multiple_files();
1693 inline void set_has_java_generate_equals_and_hash();
1694 inline void clear_has_java_generate_equals_and_hash();
1695 inline void set_has_java_string_check_utf8();
1696 inline void clear_has_java_string_check_utf8();
1697 inline void set_has_optimize_for();
1698 inline void clear_has_optimize_for();
1699 inline void set_has_go_package();
1700 inline void clear_has_go_package();
1701 inline void set_has_cc_generic_services();
1702 inline void clear_has_cc_generic_services();
1703 inline void set_has_java_generic_services();
1704 inline void clear_has_java_generic_services();
1705 inline void set_has_py_generic_services();
1706 inline void clear_has_py_generic_services();
1707 inline void set_has_deprecated();
1708 inline void clear_has_deprecated();
1709
1710 ::google::protobuf::internal::ExtensionSet _extensions_;
1711
1712 ::google::protobuf::UnknownFieldSet _unknown_fields_;
1713
1714 ::google::protobuf::uint32 _has_bits_[1];
1715 mutable int _cached_size_;
1716 ::std::string* java_package_;
1717 ::std::string* java_outer_classname_;
1718 bool java_multiple_files_;
1719 bool java_generate_equals_and_hash_;
1720 bool java_string_check_utf8_;
1721 bool cc_generic_services_;
1722 int optimize_for_;
1723 ::std::string* go_package_;
1724 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
1725 bool java_generic_services_;
1726 bool py_generic_services_;
1727 bool deprecated_;
1728 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
1729 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
1730 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
1731
1732 void InitAsDefaultInstance();
1733 static FileOptions* default_instance_;
1734 };
1735 // -------------------------------------------------------------------
1736
1737 class LIBPROTOBUF_EXPORT MessageOptions : public ::google::protobuf::Message {
1738 public:
1739 MessageOptions();
1740 virtual ~MessageOptions();
1741
1742 MessageOptions(const MessageOptions& from);
1743
1744 inline MessageOptions& operator=(const MessageOptions& from) {
1745 CopyFrom(from);
1746 return *this;
1747 }
1748
unknown_fields()1749 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1750 return _unknown_fields_;
1751 }
1752
mutable_unknown_fields()1753 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1754 return &_unknown_fields_;
1755 }
1756
1757 static const ::google::protobuf::Descriptor* descriptor();
1758 static const MessageOptions& default_instance();
1759
1760 void Swap(MessageOptions* other);
1761
1762 // implements Message ----------------------------------------------
1763
1764 MessageOptions* New() const;
1765 void CopyFrom(const ::google::protobuf::Message& from);
1766 void MergeFrom(const ::google::protobuf::Message& from);
1767 void CopyFrom(const MessageOptions& from);
1768 void MergeFrom(const MessageOptions& from);
1769 void Clear();
1770 bool IsInitialized() const;
1771
1772 int ByteSize() const;
1773 bool MergePartialFromCodedStream(
1774 ::google::protobuf::io::CodedInputStream* input);
1775 void SerializeWithCachedSizes(
1776 ::google::protobuf::io::CodedOutputStream* output) const;
1777 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
GetCachedSize()1778 int GetCachedSize() const { return _cached_size_; }
1779 private:
1780 void SharedCtor();
1781 void SharedDtor();
1782 void SetCachedSize(int size) const;
1783 public:
1784 ::google::protobuf::Metadata GetMetadata() const;
1785
1786 // nested types ----------------------------------------------------
1787
1788 // accessors -------------------------------------------------------
1789
1790 // optional bool message_set_wire_format = 1 [default = false];
1791 inline bool has_message_set_wire_format() const;
1792 inline void clear_message_set_wire_format();
1793 static const int kMessageSetWireFormatFieldNumber = 1;
1794 inline bool message_set_wire_format() const;
1795 inline void set_message_set_wire_format(bool value);
1796
1797 // optional bool no_standard_descriptor_accessor = 2 [default = false];
1798 inline bool has_no_standard_descriptor_accessor() const;
1799 inline void clear_no_standard_descriptor_accessor();
1800 static const int kNoStandardDescriptorAccessorFieldNumber = 2;
1801 inline bool no_standard_descriptor_accessor() const;
1802 inline void set_no_standard_descriptor_accessor(bool value);
1803
1804 // optional bool deprecated = 3 [default = false];
1805 inline bool has_deprecated() const;
1806 inline void clear_deprecated();
1807 static const int kDeprecatedFieldNumber = 3;
1808 inline bool deprecated() const;
1809 inline void set_deprecated(bool value);
1810
1811 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
1812 inline int uninterpreted_option_size() const;
1813 inline void clear_uninterpreted_option();
1814 static const int kUninterpretedOptionFieldNumber = 999;
1815 inline const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
1816 inline ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
1817 inline ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
1818 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
1819 uninterpreted_option() const;
1820 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
1821 mutable_uninterpreted_option();
1822
1823 GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(MessageOptions)
1824 // @@protoc_insertion_point(class_scope:google.protobuf.MessageOptions)
1825 private:
1826 inline void set_has_message_set_wire_format();
1827 inline void clear_has_message_set_wire_format();
1828 inline void set_has_no_standard_descriptor_accessor();
1829 inline void clear_has_no_standard_descriptor_accessor();
1830 inline void set_has_deprecated();
1831 inline void clear_has_deprecated();
1832
1833 ::google::protobuf::internal::ExtensionSet _extensions_;
1834
1835 ::google::protobuf::UnknownFieldSet _unknown_fields_;
1836
1837 ::google::protobuf::uint32 _has_bits_[1];
1838 mutable int _cached_size_;
1839 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
1840 bool message_set_wire_format_;
1841 bool no_standard_descriptor_accessor_;
1842 bool deprecated_;
1843 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
1844 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
1845 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
1846
1847 void InitAsDefaultInstance();
1848 static MessageOptions* default_instance_;
1849 };
1850 // -------------------------------------------------------------------
1851
1852 class LIBPROTOBUF_EXPORT FieldOptions : public ::google::protobuf::Message {
1853 public:
1854 FieldOptions();
1855 virtual ~FieldOptions();
1856
1857 FieldOptions(const FieldOptions& from);
1858
1859 inline FieldOptions& operator=(const FieldOptions& from) {
1860 CopyFrom(from);
1861 return *this;
1862 }
1863
unknown_fields()1864 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1865 return _unknown_fields_;
1866 }
1867
mutable_unknown_fields()1868 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1869 return &_unknown_fields_;
1870 }
1871
1872 static const ::google::protobuf::Descriptor* descriptor();
1873 static const FieldOptions& default_instance();
1874
1875 void Swap(FieldOptions* other);
1876
1877 // implements Message ----------------------------------------------
1878
1879 FieldOptions* New() const;
1880 void CopyFrom(const ::google::protobuf::Message& from);
1881 void MergeFrom(const ::google::protobuf::Message& from);
1882 void CopyFrom(const FieldOptions& from);
1883 void MergeFrom(const FieldOptions& from);
1884 void Clear();
1885 bool IsInitialized() const;
1886
1887 int ByteSize() const;
1888 bool MergePartialFromCodedStream(
1889 ::google::protobuf::io::CodedInputStream* input);
1890 void SerializeWithCachedSizes(
1891 ::google::protobuf::io::CodedOutputStream* output) const;
1892 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
GetCachedSize()1893 int GetCachedSize() const { return _cached_size_; }
1894 private:
1895 void SharedCtor();
1896 void SharedDtor();
1897 void SetCachedSize(int size) const;
1898 public:
1899 ::google::protobuf::Metadata GetMetadata() const;
1900
1901 // nested types ----------------------------------------------------
1902
1903 typedef FieldOptions_CType CType;
1904 static const CType STRING = FieldOptions_CType_STRING;
1905 static const CType CORD = FieldOptions_CType_CORD;
1906 static const CType STRING_PIECE = FieldOptions_CType_STRING_PIECE;
CType_IsValid(int value)1907 static inline bool CType_IsValid(int value) {
1908 return FieldOptions_CType_IsValid(value);
1909 }
1910 static const CType CType_MIN =
1911 FieldOptions_CType_CType_MIN;
1912 static const CType CType_MAX =
1913 FieldOptions_CType_CType_MAX;
1914 static const int CType_ARRAYSIZE =
1915 FieldOptions_CType_CType_ARRAYSIZE;
1916 static inline const ::google::protobuf::EnumDescriptor*
CType_descriptor()1917 CType_descriptor() {
1918 return FieldOptions_CType_descriptor();
1919 }
CType_Name(CType value)1920 static inline const ::std::string& CType_Name(CType value) {
1921 return FieldOptions_CType_Name(value);
1922 }
CType_Parse(const::std::string & name,CType * value)1923 static inline bool CType_Parse(const ::std::string& name,
1924 CType* value) {
1925 return FieldOptions_CType_Parse(name, value);
1926 }
1927
1928 // accessors -------------------------------------------------------
1929
1930 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
1931 inline bool has_ctype() const;
1932 inline void clear_ctype();
1933 static const int kCtypeFieldNumber = 1;
1934 inline ::google::protobuf::FieldOptions_CType ctype() const;
1935 inline void set_ctype(::google::protobuf::FieldOptions_CType value);
1936
1937 // optional bool packed = 2;
1938 inline bool has_packed() const;
1939 inline void clear_packed();
1940 static const int kPackedFieldNumber = 2;
1941 inline bool packed() const;
1942 inline void set_packed(bool value);
1943
1944 // optional bool lazy = 5 [default = false];
1945 inline bool has_lazy() const;
1946 inline void clear_lazy();
1947 static const int kLazyFieldNumber = 5;
1948 inline bool lazy() const;
1949 inline void set_lazy(bool value);
1950
1951 // optional bool deprecated = 3 [default = false];
1952 inline bool has_deprecated() const;
1953 inline void clear_deprecated();
1954 static const int kDeprecatedFieldNumber = 3;
1955 inline bool deprecated() const;
1956 inline void set_deprecated(bool value);
1957
1958 // optional string experimental_map_key = 9;
1959 inline bool has_experimental_map_key() const;
1960 inline void clear_experimental_map_key();
1961 static const int kExperimentalMapKeyFieldNumber = 9;
1962 inline const ::std::string& experimental_map_key() const;
1963 inline void set_experimental_map_key(const ::std::string& value);
1964 inline void set_experimental_map_key(const char* value);
1965 inline void set_experimental_map_key(const char* value, size_t size);
1966 inline ::std::string* mutable_experimental_map_key();
1967 inline ::std::string* release_experimental_map_key();
1968 inline void set_allocated_experimental_map_key(::std::string* experimental_map_key);
1969
1970 // optional bool weak = 10 [default = false];
1971 inline bool has_weak() const;
1972 inline void clear_weak();
1973 static const int kWeakFieldNumber = 10;
1974 inline bool weak() const;
1975 inline void set_weak(bool value);
1976
1977 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
1978 inline int uninterpreted_option_size() const;
1979 inline void clear_uninterpreted_option();
1980 static const int kUninterpretedOptionFieldNumber = 999;
1981 inline const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
1982 inline ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
1983 inline ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
1984 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
1985 uninterpreted_option() const;
1986 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
1987 mutable_uninterpreted_option();
1988
1989 GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(FieldOptions)
1990 // @@protoc_insertion_point(class_scope:google.protobuf.FieldOptions)
1991 private:
1992 inline void set_has_ctype();
1993 inline void clear_has_ctype();
1994 inline void set_has_packed();
1995 inline void clear_has_packed();
1996 inline void set_has_lazy();
1997 inline void clear_has_lazy();
1998 inline void set_has_deprecated();
1999 inline void clear_has_deprecated();
2000 inline void set_has_experimental_map_key();
2001 inline void clear_has_experimental_map_key();
2002 inline void set_has_weak();
2003 inline void clear_has_weak();
2004
2005 ::google::protobuf::internal::ExtensionSet _extensions_;
2006
2007 ::google::protobuf::UnknownFieldSet _unknown_fields_;
2008
2009 ::google::protobuf::uint32 _has_bits_[1];
2010 mutable int _cached_size_;
2011 int ctype_;
2012 bool packed_;
2013 bool lazy_;
2014 bool deprecated_;
2015 bool weak_;
2016 ::std::string* experimental_map_key_;
2017 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
2018 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
2019 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
2020 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
2021
2022 void InitAsDefaultInstance();
2023 static FieldOptions* default_instance_;
2024 };
2025 // -------------------------------------------------------------------
2026
2027 class LIBPROTOBUF_EXPORT EnumOptions : public ::google::protobuf::Message {
2028 public:
2029 EnumOptions();
2030 virtual ~EnumOptions();
2031
2032 EnumOptions(const EnumOptions& from);
2033
2034 inline EnumOptions& operator=(const EnumOptions& from) {
2035 CopyFrom(from);
2036 return *this;
2037 }
2038
unknown_fields()2039 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
2040 return _unknown_fields_;
2041 }
2042
mutable_unknown_fields()2043 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
2044 return &_unknown_fields_;
2045 }
2046
2047 static const ::google::protobuf::Descriptor* descriptor();
2048 static const EnumOptions& default_instance();
2049
2050 void Swap(EnumOptions* other);
2051
2052 // implements Message ----------------------------------------------
2053
2054 EnumOptions* New() const;
2055 void CopyFrom(const ::google::protobuf::Message& from);
2056 void MergeFrom(const ::google::protobuf::Message& from);
2057 void CopyFrom(const EnumOptions& from);
2058 void MergeFrom(const EnumOptions& from);
2059 void Clear();
2060 bool IsInitialized() const;
2061
2062 int ByteSize() const;
2063 bool MergePartialFromCodedStream(
2064 ::google::protobuf::io::CodedInputStream* input);
2065 void SerializeWithCachedSizes(
2066 ::google::protobuf::io::CodedOutputStream* output) const;
2067 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
GetCachedSize()2068 int GetCachedSize() const { return _cached_size_; }
2069 private:
2070 void SharedCtor();
2071 void SharedDtor();
2072 void SetCachedSize(int size) const;
2073 public:
2074 ::google::protobuf::Metadata GetMetadata() const;
2075
2076 // nested types ----------------------------------------------------
2077
2078 // accessors -------------------------------------------------------
2079
2080 // optional bool allow_alias = 2;
2081 inline bool has_allow_alias() const;
2082 inline void clear_allow_alias();
2083 static const int kAllowAliasFieldNumber = 2;
2084 inline bool allow_alias() const;
2085 inline void set_allow_alias(bool value);
2086
2087 // optional bool deprecated = 3 [default = false];
2088 inline bool has_deprecated() const;
2089 inline void clear_deprecated();
2090 static const int kDeprecatedFieldNumber = 3;
2091 inline bool deprecated() const;
2092 inline void set_deprecated(bool value);
2093
2094 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
2095 inline int uninterpreted_option_size() const;
2096 inline void clear_uninterpreted_option();
2097 static const int kUninterpretedOptionFieldNumber = 999;
2098 inline const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
2099 inline ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
2100 inline ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
2101 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
2102 uninterpreted_option() const;
2103 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
2104 mutable_uninterpreted_option();
2105
2106 GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(EnumOptions)
2107 // @@protoc_insertion_point(class_scope:google.protobuf.EnumOptions)
2108 private:
2109 inline void set_has_allow_alias();
2110 inline void clear_has_allow_alias();
2111 inline void set_has_deprecated();
2112 inline void clear_has_deprecated();
2113
2114 ::google::protobuf::internal::ExtensionSet _extensions_;
2115
2116 ::google::protobuf::UnknownFieldSet _unknown_fields_;
2117
2118 ::google::protobuf::uint32 _has_bits_[1];
2119 mutable int _cached_size_;
2120 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
2121 bool allow_alias_;
2122 bool deprecated_;
2123 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
2124 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
2125 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
2126
2127 void InitAsDefaultInstance();
2128 static EnumOptions* default_instance_;
2129 };
2130 // -------------------------------------------------------------------
2131
2132 class LIBPROTOBUF_EXPORT EnumValueOptions : public ::google::protobuf::Message {
2133 public:
2134 EnumValueOptions();
2135 virtual ~EnumValueOptions();
2136
2137 EnumValueOptions(const EnumValueOptions& from);
2138
2139 inline EnumValueOptions& operator=(const EnumValueOptions& from) {
2140 CopyFrom(from);
2141 return *this;
2142 }
2143
unknown_fields()2144 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
2145 return _unknown_fields_;
2146 }
2147
mutable_unknown_fields()2148 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
2149 return &_unknown_fields_;
2150 }
2151
2152 static const ::google::protobuf::Descriptor* descriptor();
2153 static const EnumValueOptions& default_instance();
2154
2155 void Swap(EnumValueOptions* other);
2156
2157 // implements Message ----------------------------------------------
2158
2159 EnumValueOptions* New() const;
2160 void CopyFrom(const ::google::protobuf::Message& from);
2161 void MergeFrom(const ::google::protobuf::Message& from);
2162 void CopyFrom(const EnumValueOptions& from);
2163 void MergeFrom(const EnumValueOptions& from);
2164 void Clear();
2165 bool IsInitialized() const;
2166
2167 int ByteSize() const;
2168 bool MergePartialFromCodedStream(
2169 ::google::protobuf::io::CodedInputStream* input);
2170 void SerializeWithCachedSizes(
2171 ::google::protobuf::io::CodedOutputStream* output) const;
2172 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
GetCachedSize()2173 int GetCachedSize() const { return _cached_size_; }
2174 private:
2175 void SharedCtor();
2176 void SharedDtor();
2177 void SetCachedSize(int size) const;
2178 public:
2179 ::google::protobuf::Metadata GetMetadata() const;
2180
2181 // nested types ----------------------------------------------------
2182
2183 // accessors -------------------------------------------------------
2184
2185 // optional bool deprecated = 1 [default = false];
2186 inline bool has_deprecated() const;
2187 inline void clear_deprecated();
2188 static const int kDeprecatedFieldNumber = 1;
2189 inline bool deprecated() const;
2190 inline void set_deprecated(bool value);
2191
2192 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
2193 inline int uninterpreted_option_size() const;
2194 inline void clear_uninterpreted_option();
2195 static const int kUninterpretedOptionFieldNumber = 999;
2196 inline const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
2197 inline ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
2198 inline ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
2199 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
2200 uninterpreted_option() const;
2201 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
2202 mutable_uninterpreted_option();
2203
2204 GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(EnumValueOptions)
2205 // @@protoc_insertion_point(class_scope:google.protobuf.EnumValueOptions)
2206 private:
2207 inline void set_has_deprecated();
2208 inline void clear_has_deprecated();
2209
2210 ::google::protobuf::internal::ExtensionSet _extensions_;
2211
2212 ::google::protobuf::UnknownFieldSet _unknown_fields_;
2213
2214 ::google::protobuf::uint32 _has_bits_[1];
2215 mutable int _cached_size_;
2216 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
2217 bool deprecated_;
2218 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
2219 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
2220 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
2221
2222 void InitAsDefaultInstance();
2223 static EnumValueOptions* default_instance_;
2224 };
2225 // -------------------------------------------------------------------
2226
2227 class LIBPROTOBUF_EXPORT ServiceOptions : public ::google::protobuf::Message {
2228 public:
2229 ServiceOptions();
2230 virtual ~ServiceOptions();
2231
2232 ServiceOptions(const ServiceOptions& from);
2233
2234 inline ServiceOptions& operator=(const ServiceOptions& from) {
2235 CopyFrom(from);
2236 return *this;
2237 }
2238
unknown_fields()2239 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
2240 return _unknown_fields_;
2241 }
2242
mutable_unknown_fields()2243 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
2244 return &_unknown_fields_;
2245 }
2246
2247 static const ::google::protobuf::Descriptor* descriptor();
2248 static const ServiceOptions& default_instance();
2249
2250 void Swap(ServiceOptions* other);
2251
2252 // implements Message ----------------------------------------------
2253
2254 ServiceOptions* New() const;
2255 void CopyFrom(const ::google::protobuf::Message& from);
2256 void MergeFrom(const ::google::protobuf::Message& from);
2257 void CopyFrom(const ServiceOptions& from);
2258 void MergeFrom(const ServiceOptions& from);
2259 void Clear();
2260 bool IsInitialized() const;
2261
2262 int ByteSize() const;
2263 bool MergePartialFromCodedStream(
2264 ::google::protobuf::io::CodedInputStream* input);
2265 void SerializeWithCachedSizes(
2266 ::google::protobuf::io::CodedOutputStream* output) const;
2267 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
GetCachedSize()2268 int GetCachedSize() const { return _cached_size_; }
2269 private:
2270 void SharedCtor();
2271 void SharedDtor();
2272 void SetCachedSize(int size) const;
2273 public:
2274 ::google::protobuf::Metadata GetMetadata() const;
2275
2276 // nested types ----------------------------------------------------
2277
2278 // accessors -------------------------------------------------------
2279
2280 // optional bool deprecated = 33 [default = false];
2281 inline bool has_deprecated() const;
2282 inline void clear_deprecated();
2283 static const int kDeprecatedFieldNumber = 33;
2284 inline bool deprecated() const;
2285 inline void set_deprecated(bool value);
2286
2287 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
2288 inline int uninterpreted_option_size() const;
2289 inline void clear_uninterpreted_option();
2290 static const int kUninterpretedOptionFieldNumber = 999;
2291 inline const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
2292 inline ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
2293 inline ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
2294 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
2295 uninterpreted_option() const;
2296 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
2297 mutable_uninterpreted_option();
2298
2299 GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(ServiceOptions)
2300 // @@protoc_insertion_point(class_scope:google.protobuf.ServiceOptions)
2301 private:
2302 inline void set_has_deprecated();
2303 inline void clear_has_deprecated();
2304
2305 ::google::protobuf::internal::ExtensionSet _extensions_;
2306
2307 ::google::protobuf::UnknownFieldSet _unknown_fields_;
2308
2309 ::google::protobuf::uint32 _has_bits_[1];
2310 mutable int _cached_size_;
2311 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
2312 bool deprecated_;
2313 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
2314 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
2315 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
2316
2317 void InitAsDefaultInstance();
2318 static ServiceOptions* default_instance_;
2319 };
2320 // -------------------------------------------------------------------
2321
2322 class LIBPROTOBUF_EXPORT MethodOptions : public ::google::protobuf::Message {
2323 public:
2324 MethodOptions();
2325 virtual ~MethodOptions();
2326
2327 MethodOptions(const MethodOptions& from);
2328
2329 inline MethodOptions& operator=(const MethodOptions& from) {
2330 CopyFrom(from);
2331 return *this;
2332 }
2333
unknown_fields()2334 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
2335 return _unknown_fields_;
2336 }
2337
mutable_unknown_fields()2338 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
2339 return &_unknown_fields_;
2340 }
2341
2342 static const ::google::protobuf::Descriptor* descriptor();
2343 static const MethodOptions& default_instance();
2344
2345 void Swap(MethodOptions* other);
2346
2347 // implements Message ----------------------------------------------
2348
2349 MethodOptions* New() const;
2350 void CopyFrom(const ::google::protobuf::Message& from);
2351 void MergeFrom(const ::google::protobuf::Message& from);
2352 void CopyFrom(const MethodOptions& from);
2353 void MergeFrom(const MethodOptions& from);
2354 void Clear();
2355 bool IsInitialized() const;
2356
2357 int ByteSize() const;
2358 bool MergePartialFromCodedStream(
2359 ::google::protobuf::io::CodedInputStream* input);
2360 void SerializeWithCachedSizes(
2361 ::google::protobuf::io::CodedOutputStream* output) const;
2362 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
GetCachedSize()2363 int GetCachedSize() const { return _cached_size_; }
2364 private:
2365 void SharedCtor();
2366 void SharedDtor();
2367 void SetCachedSize(int size) const;
2368 public:
2369 ::google::protobuf::Metadata GetMetadata() const;
2370
2371 // nested types ----------------------------------------------------
2372
2373 // accessors -------------------------------------------------------
2374
2375 // optional bool deprecated = 33 [default = false];
2376 inline bool has_deprecated() const;
2377 inline void clear_deprecated();
2378 static const int kDeprecatedFieldNumber = 33;
2379 inline bool deprecated() const;
2380 inline void set_deprecated(bool value);
2381
2382 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
2383 inline int uninterpreted_option_size() const;
2384 inline void clear_uninterpreted_option();
2385 static const int kUninterpretedOptionFieldNumber = 999;
2386 inline const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
2387 inline ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
2388 inline ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
2389 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
2390 uninterpreted_option() const;
2391 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
2392 mutable_uninterpreted_option();
2393
2394 GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(MethodOptions)
2395 // @@protoc_insertion_point(class_scope:google.protobuf.MethodOptions)
2396 private:
2397 inline void set_has_deprecated();
2398 inline void clear_has_deprecated();
2399
2400 ::google::protobuf::internal::ExtensionSet _extensions_;
2401
2402 ::google::protobuf::UnknownFieldSet _unknown_fields_;
2403
2404 ::google::protobuf::uint32 _has_bits_[1];
2405 mutable int _cached_size_;
2406 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
2407 bool deprecated_;
2408 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
2409 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
2410 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
2411
2412 void InitAsDefaultInstance();
2413 static MethodOptions* default_instance_;
2414 };
2415 // -------------------------------------------------------------------
2416
2417 class LIBPROTOBUF_EXPORT UninterpretedOption_NamePart : public ::google::protobuf::Message {
2418 public:
2419 UninterpretedOption_NamePart();
2420 virtual ~UninterpretedOption_NamePart();
2421
2422 UninterpretedOption_NamePart(const UninterpretedOption_NamePart& from);
2423
2424 inline UninterpretedOption_NamePart& operator=(const UninterpretedOption_NamePart& from) {
2425 CopyFrom(from);
2426 return *this;
2427 }
2428
unknown_fields()2429 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
2430 return _unknown_fields_;
2431 }
2432
mutable_unknown_fields()2433 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
2434 return &_unknown_fields_;
2435 }
2436
2437 static const ::google::protobuf::Descriptor* descriptor();
2438 static const UninterpretedOption_NamePart& default_instance();
2439
2440 void Swap(UninterpretedOption_NamePart* other);
2441
2442 // implements Message ----------------------------------------------
2443
2444 UninterpretedOption_NamePart* New() const;
2445 void CopyFrom(const ::google::protobuf::Message& from);
2446 void MergeFrom(const ::google::protobuf::Message& from);
2447 void CopyFrom(const UninterpretedOption_NamePart& from);
2448 void MergeFrom(const UninterpretedOption_NamePart& from);
2449 void Clear();
2450 bool IsInitialized() const;
2451
2452 int ByteSize() const;
2453 bool MergePartialFromCodedStream(
2454 ::google::protobuf::io::CodedInputStream* input);
2455 void SerializeWithCachedSizes(
2456 ::google::protobuf::io::CodedOutputStream* output) const;
2457 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
GetCachedSize()2458 int GetCachedSize() const { return _cached_size_; }
2459 private:
2460 void SharedCtor();
2461 void SharedDtor();
2462 void SetCachedSize(int size) const;
2463 public:
2464 ::google::protobuf::Metadata GetMetadata() const;
2465
2466 // nested types ----------------------------------------------------
2467
2468 // accessors -------------------------------------------------------
2469
2470 // required string name_part = 1;
2471 inline bool has_name_part() const;
2472 inline void clear_name_part();
2473 static const int kNamePartFieldNumber = 1;
2474 inline const ::std::string& name_part() const;
2475 inline void set_name_part(const ::std::string& value);
2476 inline void set_name_part(const char* value);
2477 inline void set_name_part(const char* value, size_t size);
2478 inline ::std::string* mutable_name_part();
2479 inline ::std::string* release_name_part();
2480 inline void set_allocated_name_part(::std::string* name_part);
2481
2482 // required bool is_extension = 2;
2483 inline bool has_is_extension() const;
2484 inline void clear_is_extension();
2485 static const int kIsExtensionFieldNumber = 2;
2486 inline bool is_extension() const;
2487 inline void set_is_extension(bool value);
2488
2489 // @@protoc_insertion_point(class_scope:google.protobuf.UninterpretedOption.NamePart)
2490 private:
2491 inline void set_has_name_part();
2492 inline void clear_has_name_part();
2493 inline void set_has_is_extension();
2494 inline void clear_has_is_extension();
2495
2496 ::google::protobuf::UnknownFieldSet _unknown_fields_;
2497
2498 ::google::protobuf::uint32 _has_bits_[1];
2499 mutable int _cached_size_;
2500 ::std::string* name_part_;
2501 bool is_extension_;
2502 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
2503 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
2504 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
2505
2506 void InitAsDefaultInstance();
2507 static UninterpretedOption_NamePart* default_instance_;
2508 };
2509 // -------------------------------------------------------------------
2510
2511 class LIBPROTOBUF_EXPORT UninterpretedOption : public ::google::protobuf::Message {
2512 public:
2513 UninterpretedOption();
2514 virtual ~UninterpretedOption();
2515
2516 UninterpretedOption(const UninterpretedOption& from);
2517
2518 inline UninterpretedOption& operator=(const UninterpretedOption& from) {
2519 CopyFrom(from);
2520 return *this;
2521 }
2522
unknown_fields()2523 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
2524 return _unknown_fields_;
2525 }
2526
mutable_unknown_fields()2527 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
2528 return &_unknown_fields_;
2529 }
2530
2531 static const ::google::protobuf::Descriptor* descriptor();
2532 static const UninterpretedOption& default_instance();
2533
2534 void Swap(UninterpretedOption* other);
2535
2536 // implements Message ----------------------------------------------
2537
2538 UninterpretedOption* New() const;
2539 void CopyFrom(const ::google::protobuf::Message& from);
2540 void MergeFrom(const ::google::protobuf::Message& from);
2541 void CopyFrom(const UninterpretedOption& from);
2542 void MergeFrom(const UninterpretedOption& from);
2543 void Clear();
2544 bool IsInitialized() const;
2545
2546 int ByteSize() const;
2547 bool MergePartialFromCodedStream(
2548 ::google::protobuf::io::CodedInputStream* input);
2549 void SerializeWithCachedSizes(
2550 ::google::protobuf::io::CodedOutputStream* output) const;
2551 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
GetCachedSize()2552 int GetCachedSize() const { return _cached_size_; }
2553 private:
2554 void SharedCtor();
2555 void SharedDtor();
2556 void SetCachedSize(int size) const;
2557 public:
2558 ::google::protobuf::Metadata GetMetadata() const;
2559
2560 // nested types ----------------------------------------------------
2561
2562 typedef UninterpretedOption_NamePart NamePart;
2563
2564 // accessors -------------------------------------------------------
2565
2566 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
2567 inline int name_size() const;
2568 inline void clear_name();
2569 static const int kNameFieldNumber = 2;
2570 inline const ::google::protobuf::UninterpretedOption_NamePart& name(int index) const;
2571 inline ::google::protobuf::UninterpretedOption_NamePart* mutable_name(int index);
2572 inline ::google::protobuf::UninterpretedOption_NamePart* add_name();
2573 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >&
2574 name() const;
2575 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >*
2576 mutable_name();
2577
2578 // optional string identifier_value = 3;
2579 inline bool has_identifier_value() const;
2580 inline void clear_identifier_value();
2581 static const int kIdentifierValueFieldNumber = 3;
2582 inline const ::std::string& identifier_value() const;
2583 inline void set_identifier_value(const ::std::string& value);
2584 inline void set_identifier_value(const char* value);
2585 inline void set_identifier_value(const char* value, size_t size);
2586 inline ::std::string* mutable_identifier_value();
2587 inline ::std::string* release_identifier_value();
2588 inline void set_allocated_identifier_value(::std::string* identifier_value);
2589
2590 // optional uint64 positive_int_value = 4;
2591 inline bool has_positive_int_value() const;
2592 inline void clear_positive_int_value();
2593 static const int kPositiveIntValueFieldNumber = 4;
2594 inline ::google::protobuf::uint64 positive_int_value() const;
2595 inline void set_positive_int_value(::google::protobuf::uint64 value);
2596
2597 // optional int64 negative_int_value = 5;
2598 inline bool has_negative_int_value() const;
2599 inline void clear_negative_int_value();
2600 static const int kNegativeIntValueFieldNumber = 5;
2601 inline ::google::protobuf::int64 negative_int_value() const;
2602 inline void set_negative_int_value(::google::protobuf::int64 value);
2603
2604 // optional double double_value = 6;
2605 inline bool has_double_value() const;
2606 inline void clear_double_value();
2607 static const int kDoubleValueFieldNumber = 6;
2608 inline double double_value() const;
2609 inline void set_double_value(double value);
2610
2611 // optional bytes string_value = 7;
2612 inline bool has_string_value() const;
2613 inline void clear_string_value();
2614 static const int kStringValueFieldNumber = 7;
2615 inline const ::std::string& string_value() const;
2616 inline void set_string_value(const ::std::string& value);
2617 inline void set_string_value(const char* value);
2618 inline void set_string_value(const void* value, size_t size);
2619 inline ::std::string* mutable_string_value();
2620 inline ::std::string* release_string_value();
2621 inline void set_allocated_string_value(::std::string* string_value);
2622
2623 // optional string aggregate_value = 8;
2624 inline bool has_aggregate_value() const;
2625 inline void clear_aggregate_value();
2626 static const int kAggregateValueFieldNumber = 8;
2627 inline const ::std::string& aggregate_value() const;
2628 inline void set_aggregate_value(const ::std::string& value);
2629 inline void set_aggregate_value(const char* value);
2630 inline void set_aggregate_value(const char* value, size_t size);
2631 inline ::std::string* mutable_aggregate_value();
2632 inline ::std::string* release_aggregate_value();
2633 inline void set_allocated_aggregate_value(::std::string* aggregate_value);
2634
2635 // @@protoc_insertion_point(class_scope:google.protobuf.UninterpretedOption)
2636 private:
2637 inline void set_has_identifier_value();
2638 inline void clear_has_identifier_value();
2639 inline void set_has_positive_int_value();
2640 inline void clear_has_positive_int_value();
2641 inline void set_has_negative_int_value();
2642 inline void clear_has_negative_int_value();
2643 inline void set_has_double_value();
2644 inline void clear_has_double_value();
2645 inline void set_has_string_value();
2646 inline void clear_has_string_value();
2647 inline void set_has_aggregate_value();
2648 inline void clear_has_aggregate_value();
2649
2650 ::google::protobuf::UnknownFieldSet _unknown_fields_;
2651
2652 ::google::protobuf::uint32 _has_bits_[1];
2653 mutable int _cached_size_;
2654 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart > name_;
2655 ::std::string* identifier_value_;
2656 ::google::protobuf::uint64 positive_int_value_;
2657 ::google::protobuf::int64 negative_int_value_;
2658 double double_value_;
2659 ::std::string* string_value_;
2660 ::std::string* aggregate_value_;
2661 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
2662 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
2663 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
2664
2665 void InitAsDefaultInstance();
2666 static UninterpretedOption* default_instance_;
2667 };
2668 // -------------------------------------------------------------------
2669
2670 class LIBPROTOBUF_EXPORT SourceCodeInfo_Location : public ::google::protobuf::Message {
2671 public:
2672 SourceCodeInfo_Location();
2673 virtual ~SourceCodeInfo_Location();
2674
2675 SourceCodeInfo_Location(const SourceCodeInfo_Location& from);
2676
2677 inline SourceCodeInfo_Location& operator=(const SourceCodeInfo_Location& from) {
2678 CopyFrom(from);
2679 return *this;
2680 }
2681
unknown_fields()2682 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
2683 return _unknown_fields_;
2684 }
2685
mutable_unknown_fields()2686 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
2687 return &_unknown_fields_;
2688 }
2689
2690 static const ::google::protobuf::Descriptor* descriptor();
2691 static const SourceCodeInfo_Location& default_instance();
2692
2693 void Swap(SourceCodeInfo_Location* other);
2694
2695 // implements Message ----------------------------------------------
2696
2697 SourceCodeInfo_Location* New() const;
2698 void CopyFrom(const ::google::protobuf::Message& from);
2699 void MergeFrom(const ::google::protobuf::Message& from);
2700 void CopyFrom(const SourceCodeInfo_Location& from);
2701 void MergeFrom(const SourceCodeInfo_Location& from);
2702 void Clear();
2703 bool IsInitialized() const;
2704
2705 int ByteSize() const;
2706 bool MergePartialFromCodedStream(
2707 ::google::protobuf::io::CodedInputStream* input);
2708 void SerializeWithCachedSizes(
2709 ::google::protobuf::io::CodedOutputStream* output) const;
2710 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
GetCachedSize()2711 int GetCachedSize() const { return _cached_size_; }
2712 private:
2713 void SharedCtor();
2714 void SharedDtor();
2715 void SetCachedSize(int size) const;
2716 public:
2717 ::google::protobuf::Metadata GetMetadata() const;
2718
2719 // nested types ----------------------------------------------------
2720
2721 // accessors -------------------------------------------------------
2722
2723 // repeated int32 path = 1 [packed = true];
2724 inline int path_size() const;
2725 inline void clear_path();
2726 static const int kPathFieldNumber = 1;
2727 inline ::google::protobuf::int32 path(int index) const;
2728 inline void set_path(int index, ::google::protobuf::int32 value);
2729 inline void add_path(::google::protobuf::int32 value);
2730 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
2731 path() const;
2732 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
2733 mutable_path();
2734
2735 // repeated int32 span = 2 [packed = true];
2736 inline int span_size() const;
2737 inline void clear_span();
2738 static const int kSpanFieldNumber = 2;
2739 inline ::google::protobuf::int32 span(int index) const;
2740 inline void set_span(int index, ::google::protobuf::int32 value);
2741 inline void add_span(::google::protobuf::int32 value);
2742 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
2743 span() const;
2744 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
2745 mutable_span();
2746
2747 // optional string leading_comments = 3;
2748 inline bool has_leading_comments() const;
2749 inline void clear_leading_comments();
2750 static const int kLeadingCommentsFieldNumber = 3;
2751 inline const ::std::string& leading_comments() const;
2752 inline void set_leading_comments(const ::std::string& value);
2753 inline void set_leading_comments(const char* value);
2754 inline void set_leading_comments(const char* value, size_t size);
2755 inline ::std::string* mutable_leading_comments();
2756 inline ::std::string* release_leading_comments();
2757 inline void set_allocated_leading_comments(::std::string* leading_comments);
2758
2759 // optional string trailing_comments = 4;
2760 inline bool has_trailing_comments() const;
2761 inline void clear_trailing_comments();
2762 static const int kTrailingCommentsFieldNumber = 4;
2763 inline const ::std::string& trailing_comments() const;
2764 inline void set_trailing_comments(const ::std::string& value);
2765 inline void set_trailing_comments(const char* value);
2766 inline void set_trailing_comments(const char* value, size_t size);
2767 inline ::std::string* mutable_trailing_comments();
2768 inline ::std::string* release_trailing_comments();
2769 inline void set_allocated_trailing_comments(::std::string* trailing_comments);
2770
2771 // @@protoc_insertion_point(class_scope:google.protobuf.SourceCodeInfo.Location)
2772 private:
2773 inline void set_has_leading_comments();
2774 inline void clear_has_leading_comments();
2775 inline void set_has_trailing_comments();
2776 inline void clear_has_trailing_comments();
2777
2778 ::google::protobuf::UnknownFieldSet _unknown_fields_;
2779
2780 ::google::protobuf::uint32 _has_bits_[1];
2781 mutable int _cached_size_;
2782 ::google::protobuf::RepeatedField< ::google::protobuf::int32 > path_;
2783 mutable int _path_cached_byte_size_;
2784 ::google::protobuf::RepeatedField< ::google::protobuf::int32 > span_;
2785 mutable int _span_cached_byte_size_;
2786 ::std::string* leading_comments_;
2787 ::std::string* trailing_comments_;
2788 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
2789 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
2790 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
2791
2792 void InitAsDefaultInstance();
2793 static SourceCodeInfo_Location* default_instance_;
2794 };
2795 // -------------------------------------------------------------------
2796
2797 class LIBPROTOBUF_EXPORT SourceCodeInfo : public ::google::protobuf::Message {
2798 public:
2799 SourceCodeInfo();
2800 virtual ~SourceCodeInfo();
2801
2802 SourceCodeInfo(const SourceCodeInfo& from);
2803
2804 inline SourceCodeInfo& operator=(const SourceCodeInfo& from) {
2805 CopyFrom(from);
2806 return *this;
2807 }
2808
unknown_fields()2809 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
2810 return _unknown_fields_;
2811 }
2812
mutable_unknown_fields()2813 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
2814 return &_unknown_fields_;
2815 }
2816
2817 static const ::google::protobuf::Descriptor* descriptor();
2818 static const SourceCodeInfo& default_instance();
2819
2820 void Swap(SourceCodeInfo* other);
2821
2822 // implements Message ----------------------------------------------
2823
2824 SourceCodeInfo* New() const;
2825 void CopyFrom(const ::google::protobuf::Message& from);
2826 void MergeFrom(const ::google::protobuf::Message& from);
2827 void CopyFrom(const SourceCodeInfo& from);
2828 void MergeFrom(const SourceCodeInfo& from);
2829 void Clear();
2830 bool IsInitialized() const;
2831
2832 int ByteSize() const;
2833 bool MergePartialFromCodedStream(
2834 ::google::protobuf::io::CodedInputStream* input);
2835 void SerializeWithCachedSizes(
2836 ::google::protobuf::io::CodedOutputStream* output) const;
2837 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
GetCachedSize()2838 int GetCachedSize() const { return _cached_size_; }
2839 private:
2840 void SharedCtor();
2841 void SharedDtor();
2842 void SetCachedSize(int size) const;
2843 public:
2844 ::google::protobuf::Metadata GetMetadata() const;
2845
2846 // nested types ----------------------------------------------------
2847
2848 typedef SourceCodeInfo_Location Location;
2849
2850 // accessors -------------------------------------------------------
2851
2852 // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
2853 inline int location_size() const;
2854 inline void clear_location();
2855 static const int kLocationFieldNumber = 1;
2856 inline const ::google::protobuf::SourceCodeInfo_Location& location(int index) const;
2857 inline ::google::protobuf::SourceCodeInfo_Location* mutable_location(int index);
2858 inline ::google::protobuf::SourceCodeInfo_Location* add_location();
2859 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location >&
2860 location() const;
2861 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location >*
2862 mutable_location();
2863
2864 // @@protoc_insertion_point(class_scope:google.protobuf.SourceCodeInfo)
2865 private:
2866
2867 ::google::protobuf::UnknownFieldSet _unknown_fields_;
2868
2869 ::google::protobuf::uint32 _has_bits_[1];
2870 mutable int _cached_size_;
2871 ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location > location_;
2872 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
2873 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
2874 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
2875
2876 void InitAsDefaultInstance();
2877 static SourceCodeInfo* default_instance_;
2878 };
2879 // ===================================================================
2880
2881
2882 // ===================================================================
2883
2884 // FileDescriptorSet
2885
2886 // repeated .google.protobuf.FileDescriptorProto file = 1;
file_size()2887 inline int FileDescriptorSet::file_size() const {
2888 return file_.size();
2889 }
clear_file()2890 inline void FileDescriptorSet::clear_file() {
2891 file_.Clear();
2892 }
file(int index)2893 inline const ::google::protobuf::FileDescriptorProto& FileDescriptorSet::file(int index) const {
2894 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorSet.file)
2895 return file_.Get(index);
2896 }
mutable_file(int index)2897 inline ::google::protobuf::FileDescriptorProto* FileDescriptorSet::mutable_file(int index) {
2898 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorSet.file)
2899 return file_.Mutable(index);
2900 }
add_file()2901 inline ::google::protobuf::FileDescriptorProto* FileDescriptorSet::add_file() {
2902 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorSet.file)
2903 return file_.Add();
2904 }
2905 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >&
file()2906 FileDescriptorSet::file() const {
2907 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorSet.file)
2908 return file_;
2909 }
2910 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >*
mutable_file()2911 FileDescriptorSet::mutable_file() {
2912 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorSet.file)
2913 return &file_;
2914 }
2915
2916 // -------------------------------------------------------------------
2917
2918 // FileDescriptorProto
2919
2920 // optional string name = 1;
has_name()2921 inline bool FileDescriptorProto::has_name() const {
2922 return (_has_bits_[0] & 0x00000001u) != 0;
2923 }
set_has_name()2924 inline void FileDescriptorProto::set_has_name() {
2925 _has_bits_[0] |= 0x00000001u;
2926 }
clear_has_name()2927 inline void FileDescriptorProto::clear_has_name() {
2928 _has_bits_[0] &= ~0x00000001u;
2929 }
clear_name()2930 inline void FileDescriptorProto::clear_name() {
2931 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2932 name_->clear();
2933 }
2934 clear_has_name();
2935 }
name()2936 inline const ::std::string& FileDescriptorProto::name() const {
2937 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.name)
2938 return *name_;
2939 }
set_name(const::std::string & value)2940 inline void FileDescriptorProto::set_name(const ::std::string& value) {
2941 set_has_name();
2942 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2943 name_ = new ::std::string;
2944 }
2945 name_->assign(value);
2946 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.name)
2947 }
set_name(const char * value)2948 inline void FileDescriptorProto::set_name(const char* value) {
2949 set_has_name();
2950 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2951 name_ = new ::std::string;
2952 }
2953 name_->assign(value);
2954 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.name)
2955 }
set_name(const char * value,size_t size)2956 inline void FileDescriptorProto::set_name(const char* value, size_t size) {
2957 set_has_name();
2958 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2959 name_ = new ::std::string;
2960 }
2961 name_->assign(reinterpret_cast<const char*>(value), size);
2962 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.name)
2963 }
mutable_name()2964 inline ::std::string* FileDescriptorProto::mutable_name() {
2965 set_has_name();
2966 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2967 name_ = new ::std::string;
2968 }
2969 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.name)
2970 return name_;
2971 }
release_name()2972 inline ::std::string* FileDescriptorProto::release_name() {
2973 clear_has_name();
2974 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2975 return NULL;
2976 } else {
2977 ::std::string* temp = name_;
2978 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2979 return temp;
2980 }
2981 }
set_allocated_name(::std::string * name)2982 inline void FileDescriptorProto::set_allocated_name(::std::string* name) {
2983 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2984 delete name_;
2985 }
2986 if (name) {
2987 set_has_name();
2988 name_ = name;
2989 } else {
2990 clear_has_name();
2991 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2992 }
2993 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.name)
2994 }
2995
2996 // optional string package = 2;
has_package()2997 inline bool FileDescriptorProto::has_package() const {
2998 return (_has_bits_[0] & 0x00000002u) != 0;
2999 }
set_has_package()3000 inline void FileDescriptorProto::set_has_package() {
3001 _has_bits_[0] |= 0x00000002u;
3002 }
clear_has_package()3003 inline void FileDescriptorProto::clear_has_package() {
3004 _has_bits_[0] &= ~0x00000002u;
3005 }
clear_package()3006 inline void FileDescriptorProto::clear_package() {
3007 if (package_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3008 package_->clear();
3009 }
3010 clear_has_package();
3011 }
package()3012 inline const ::std::string& FileDescriptorProto::package() const {
3013 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.package)
3014 return *package_;
3015 }
set_package(const::std::string & value)3016 inline void FileDescriptorProto::set_package(const ::std::string& value) {
3017 set_has_package();
3018 if (package_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3019 package_ = new ::std::string;
3020 }
3021 package_->assign(value);
3022 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.package)
3023 }
set_package(const char * value)3024 inline void FileDescriptorProto::set_package(const char* value) {
3025 set_has_package();
3026 if (package_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3027 package_ = new ::std::string;
3028 }
3029 package_->assign(value);
3030 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.package)
3031 }
set_package(const char * value,size_t size)3032 inline void FileDescriptorProto::set_package(const char* value, size_t size) {
3033 set_has_package();
3034 if (package_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3035 package_ = new ::std::string;
3036 }
3037 package_->assign(reinterpret_cast<const char*>(value), size);
3038 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.package)
3039 }
mutable_package()3040 inline ::std::string* FileDescriptorProto::mutable_package() {
3041 set_has_package();
3042 if (package_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3043 package_ = new ::std::string;
3044 }
3045 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.package)
3046 return package_;
3047 }
release_package()3048 inline ::std::string* FileDescriptorProto::release_package() {
3049 clear_has_package();
3050 if (package_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3051 return NULL;
3052 } else {
3053 ::std::string* temp = package_;
3054 package_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3055 return temp;
3056 }
3057 }
set_allocated_package(::std::string * package)3058 inline void FileDescriptorProto::set_allocated_package(::std::string* package) {
3059 if (package_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3060 delete package_;
3061 }
3062 if (package) {
3063 set_has_package();
3064 package_ = package;
3065 } else {
3066 clear_has_package();
3067 package_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3068 }
3069 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.package)
3070 }
3071
3072 // repeated string dependency = 3;
dependency_size()3073 inline int FileDescriptorProto::dependency_size() const {
3074 return dependency_.size();
3075 }
clear_dependency()3076 inline void FileDescriptorProto::clear_dependency() {
3077 dependency_.Clear();
3078 }
dependency(int index)3079 inline const ::std::string& FileDescriptorProto::dependency(int index) const {
3080 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.dependency)
3081 return dependency_.Get(index);
3082 }
mutable_dependency(int index)3083 inline ::std::string* FileDescriptorProto::mutable_dependency(int index) {
3084 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.dependency)
3085 return dependency_.Mutable(index);
3086 }
set_dependency(int index,const::std::string & value)3087 inline void FileDescriptorProto::set_dependency(int index, const ::std::string& value) {
3088 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.dependency)
3089 dependency_.Mutable(index)->assign(value);
3090 }
set_dependency(int index,const char * value)3091 inline void FileDescriptorProto::set_dependency(int index, const char* value) {
3092 dependency_.Mutable(index)->assign(value);
3093 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.dependency)
3094 }
set_dependency(int index,const char * value,size_t size)3095 inline void FileDescriptorProto::set_dependency(int index, const char* value, size_t size) {
3096 dependency_.Mutable(index)->assign(
3097 reinterpret_cast<const char*>(value), size);
3098 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.dependency)
3099 }
add_dependency()3100 inline ::std::string* FileDescriptorProto::add_dependency() {
3101 return dependency_.Add();
3102 }
add_dependency(const::std::string & value)3103 inline void FileDescriptorProto::add_dependency(const ::std::string& value) {
3104 dependency_.Add()->assign(value);
3105 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.dependency)
3106 }
add_dependency(const char * value)3107 inline void FileDescriptorProto::add_dependency(const char* value) {
3108 dependency_.Add()->assign(value);
3109 // @@protoc_insertion_point(field_add_char:google.protobuf.FileDescriptorProto.dependency)
3110 }
add_dependency(const char * value,size_t size)3111 inline void FileDescriptorProto::add_dependency(const char* value, size_t size) {
3112 dependency_.Add()->assign(reinterpret_cast<const char*>(value), size);
3113 // @@protoc_insertion_point(field_add_pointer:google.protobuf.FileDescriptorProto.dependency)
3114 }
3115 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
dependency()3116 FileDescriptorProto::dependency() const {
3117 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.dependency)
3118 return dependency_;
3119 }
3120 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
mutable_dependency()3121 FileDescriptorProto::mutable_dependency() {
3122 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.dependency)
3123 return &dependency_;
3124 }
3125
3126 // repeated int32 public_dependency = 10;
public_dependency_size()3127 inline int FileDescriptorProto::public_dependency_size() const {
3128 return public_dependency_.size();
3129 }
clear_public_dependency()3130 inline void FileDescriptorProto::clear_public_dependency() {
3131 public_dependency_.Clear();
3132 }
public_dependency(int index)3133 inline ::google::protobuf::int32 FileDescriptorProto::public_dependency(int index) const {
3134 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.public_dependency)
3135 return public_dependency_.Get(index);
3136 }
set_public_dependency(int index,::google::protobuf::int32 value)3137 inline void FileDescriptorProto::set_public_dependency(int index, ::google::protobuf::int32 value) {
3138 public_dependency_.Set(index, value);
3139 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.public_dependency)
3140 }
add_public_dependency(::google::protobuf::int32 value)3141 inline void FileDescriptorProto::add_public_dependency(::google::protobuf::int32 value) {
3142 public_dependency_.Add(value);
3143 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.public_dependency)
3144 }
3145 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
public_dependency()3146 FileDescriptorProto::public_dependency() const {
3147 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.public_dependency)
3148 return public_dependency_;
3149 }
3150 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
mutable_public_dependency()3151 FileDescriptorProto::mutable_public_dependency() {
3152 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.public_dependency)
3153 return &public_dependency_;
3154 }
3155
3156 // repeated int32 weak_dependency = 11;
weak_dependency_size()3157 inline int FileDescriptorProto::weak_dependency_size() const {
3158 return weak_dependency_.size();
3159 }
clear_weak_dependency()3160 inline void FileDescriptorProto::clear_weak_dependency() {
3161 weak_dependency_.Clear();
3162 }
weak_dependency(int index)3163 inline ::google::protobuf::int32 FileDescriptorProto::weak_dependency(int index) const {
3164 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.weak_dependency)
3165 return weak_dependency_.Get(index);
3166 }
set_weak_dependency(int index,::google::protobuf::int32 value)3167 inline void FileDescriptorProto::set_weak_dependency(int index, ::google::protobuf::int32 value) {
3168 weak_dependency_.Set(index, value);
3169 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.weak_dependency)
3170 }
add_weak_dependency(::google::protobuf::int32 value)3171 inline void FileDescriptorProto::add_weak_dependency(::google::protobuf::int32 value) {
3172 weak_dependency_.Add(value);
3173 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.weak_dependency)
3174 }
3175 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
weak_dependency()3176 FileDescriptorProto::weak_dependency() const {
3177 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.weak_dependency)
3178 return weak_dependency_;
3179 }
3180 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
mutable_weak_dependency()3181 FileDescriptorProto::mutable_weak_dependency() {
3182 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.weak_dependency)
3183 return &weak_dependency_;
3184 }
3185
3186 // repeated .google.protobuf.DescriptorProto message_type = 4;
message_type_size()3187 inline int FileDescriptorProto::message_type_size() const {
3188 return message_type_.size();
3189 }
clear_message_type()3190 inline void FileDescriptorProto::clear_message_type() {
3191 message_type_.Clear();
3192 }
message_type(int index)3193 inline const ::google::protobuf::DescriptorProto& FileDescriptorProto::message_type(int index) const {
3194 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.message_type)
3195 return message_type_.Get(index);
3196 }
mutable_message_type(int index)3197 inline ::google::protobuf::DescriptorProto* FileDescriptorProto::mutable_message_type(int index) {
3198 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.message_type)
3199 return message_type_.Mutable(index);
3200 }
add_message_type()3201 inline ::google::protobuf::DescriptorProto* FileDescriptorProto::add_message_type() {
3202 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.message_type)
3203 return message_type_.Add();
3204 }
3205 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >&
message_type()3206 FileDescriptorProto::message_type() const {
3207 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.message_type)
3208 return message_type_;
3209 }
3210 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >*
mutable_message_type()3211 FileDescriptorProto::mutable_message_type() {
3212 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.message_type)
3213 return &message_type_;
3214 }
3215
3216 // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
enum_type_size()3217 inline int FileDescriptorProto::enum_type_size() const {
3218 return enum_type_.size();
3219 }
clear_enum_type()3220 inline void FileDescriptorProto::clear_enum_type() {
3221 enum_type_.Clear();
3222 }
enum_type(int index)3223 inline const ::google::protobuf::EnumDescriptorProto& FileDescriptorProto::enum_type(int index) const {
3224 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.enum_type)
3225 return enum_type_.Get(index);
3226 }
mutable_enum_type(int index)3227 inline ::google::protobuf::EnumDescriptorProto* FileDescriptorProto::mutable_enum_type(int index) {
3228 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.enum_type)
3229 return enum_type_.Mutable(index);
3230 }
add_enum_type()3231 inline ::google::protobuf::EnumDescriptorProto* FileDescriptorProto::add_enum_type() {
3232 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.enum_type)
3233 return enum_type_.Add();
3234 }
3235 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >&
enum_type()3236 FileDescriptorProto::enum_type() const {
3237 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.enum_type)
3238 return enum_type_;
3239 }
3240 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >*
mutable_enum_type()3241 FileDescriptorProto::mutable_enum_type() {
3242 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.enum_type)
3243 return &enum_type_;
3244 }
3245
3246 // repeated .google.protobuf.ServiceDescriptorProto service = 6;
service_size()3247 inline int FileDescriptorProto::service_size() const {
3248 return service_.size();
3249 }
clear_service()3250 inline void FileDescriptorProto::clear_service() {
3251 service_.Clear();
3252 }
service(int index)3253 inline const ::google::protobuf::ServiceDescriptorProto& FileDescriptorProto::service(int index) const {
3254 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.service)
3255 return service_.Get(index);
3256 }
mutable_service(int index)3257 inline ::google::protobuf::ServiceDescriptorProto* FileDescriptorProto::mutable_service(int index) {
3258 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.service)
3259 return service_.Mutable(index);
3260 }
add_service()3261 inline ::google::protobuf::ServiceDescriptorProto* FileDescriptorProto::add_service() {
3262 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.service)
3263 return service_.Add();
3264 }
3265 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >&
service()3266 FileDescriptorProto::service() const {
3267 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.service)
3268 return service_;
3269 }
3270 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >*
mutable_service()3271 FileDescriptorProto::mutable_service() {
3272 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.service)
3273 return &service_;
3274 }
3275
3276 // repeated .google.protobuf.FieldDescriptorProto extension = 7;
extension_size()3277 inline int FileDescriptorProto::extension_size() const {
3278 return extension_.size();
3279 }
clear_extension()3280 inline void FileDescriptorProto::clear_extension() {
3281 extension_.Clear();
3282 }
extension(int index)3283 inline const ::google::protobuf::FieldDescriptorProto& FileDescriptorProto::extension(int index) const {
3284 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.extension)
3285 return extension_.Get(index);
3286 }
mutable_extension(int index)3287 inline ::google::protobuf::FieldDescriptorProto* FileDescriptorProto::mutable_extension(int index) {
3288 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.extension)
3289 return extension_.Mutable(index);
3290 }
add_extension()3291 inline ::google::protobuf::FieldDescriptorProto* FileDescriptorProto::add_extension() {
3292 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.extension)
3293 return extension_.Add();
3294 }
3295 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
extension()3296 FileDescriptorProto::extension() const {
3297 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.extension)
3298 return extension_;
3299 }
3300 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
mutable_extension()3301 FileDescriptorProto::mutable_extension() {
3302 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.extension)
3303 return &extension_;
3304 }
3305
3306 // optional .google.protobuf.FileOptions options = 8;
has_options()3307 inline bool FileDescriptorProto::has_options() const {
3308 return (_has_bits_[0] & 0x00000200u) != 0;
3309 }
set_has_options()3310 inline void FileDescriptorProto::set_has_options() {
3311 _has_bits_[0] |= 0x00000200u;
3312 }
clear_has_options()3313 inline void FileDescriptorProto::clear_has_options() {
3314 _has_bits_[0] &= ~0x00000200u;
3315 }
clear_options()3316 inline void FileDescriptorProto::clear_options() {
3317 if (options_ != NULL) options_->::google::protobuf::FileOptions::Clear();
3318 clear_has_options();
3319 }
options()3320 inline const ::google::protobuf::FileOptions& FileDescriptorProto::options() const {
3321 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.options)
3322 return options_ != NULL ? *options_ : *default_instance_->options_;
3323 }
mutable_options()3324 inline ::google::protobuf::FileOptions* FileDescriptorProto::mutable_options() {
3325 set_has_options();
3326 if (options_ == NULL) options_ = new ::google::protobuf::FileOptions;
3327 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.options)
3328 return options_;
3329 }
release_options()3330 inline ::google::protobuf::FileOptions* FileDescriptorProto::release_options() {
3331 clear_has_options();
3332 ::google::protobuf::FileOptions* temp = options_;
3333 options_ = NULL;
3334 return temp;
3335 }
set_allocated_options(::google::protobuf::FileOptions * options)3336 inline void FileDescriptorProto::set_allocated_options(::google::protobuf::FileOptions* options) {
3337 delete options_;
3338 options_ = options;
3339 if (options) {
3340 set_has_options();
3341 } else {
3342 clear_has_options();
3343 }
3344 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.options)
3345 }
3346
3347 // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
has_source_code_info()3348 inline bool FileDescriptorProto::has_source_code_info() const {
3349 return (_has_bits_[0] & 0x00000400u) != 0;
3350 }
set_has_source_code_info()3351 inline void FileDescriptorProto::set_has_source_code_info() {
3352 _has_bits_[0] |= 0x00000400u;
3353 }
clear_has_source_code_info()3354 inline void FileDescriptorProto::clear_has_source_code_info() {
3355 _has_bits_[0] &= ~0x00000400u;
3356 }
clear_source_code_info()3357 inline void FileDescriptorProto::clear_source_code_info() {
3358 if (source_code_info_ != NULL) source_code_info_->::google::protobuf::SourceCodeInfo::Clear();
3359 clear_has_source_code_info();
3360 }
source_code_info()3361 inline const ::google::protobuf::SourceCodeInfo& FileDescriptorProto::source_code_info() const {
3362 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.source_code_info)
3363 return source_code_info_ != NULL ? *source_code_info_ : *default_instance_->source_code_info_;
3364 }
mutable_source_code_info()3365 inline ::google::protobuf::SourceCodeInfo* FileDescriptorProto::mutable_source_code_info() {
3366 set_has_source_code_info();
3367 if (source_code_info_ == NULL) source_code_info_ = new ::google::protobuf::SourceCodeInfo;
3368 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.source_code_info)
3369 return source_code_info_;
3370 }
release_source_code_info()3371 inline ::google::protobuf::SourceCodeInfo* FileDescriptorProto::release_source_code_info() {
3372 clear_has_source_code_info();
3373 ::google::protobuf::SourceCodeInfo* temp = source_code_info_;
3374 source_code_info_ = NULL;
3375 return temp;
3376 }
set_allocated_source_code_info(::google::protobuf::SourceCodeInfo * source_code_info)3377 inline void FileDescriptorProto::set_allocated_source_code_info(::google::protobuf::SourceCodeInfo* source_code_info) {
3378 delete source_code_info_;
3379 source_code_info_ = source_code_info;
3380 if (source_code_info) {
3381 set_has_source_code_info();
3382 } else {
3383 clear_has_source_code_info();
3384 }
3385 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.source_code_info)
3386 }
3387
3388 // -------------------------------------------------------------------
3389
3390 // DescriptorProto_ExtensionRange
3391
3392 // optional int32 start = 1;
has_start()3393 inline bool DescriptorProto_ExtensionRange::has_start() const {
3394 return (_has_bits_[0] & 0x00000001u) != 0;
3395 }
set_has_start()3396 inline void DescriptorProto_ExtensionRange::set_has_start() {
3397 _has_bits_[0] |= 0x00000001u;
3398 }
clear_has_start()3399 inline void DescriptorProto_ExtensionRange::clear_has_start() {
3400 _has_bits_[0] &= ~0x00000001u;
3401 }
clear_start()3402 inline void DescriptorProto_ExtensionRange::clear_start() {
3403 start_ = 0;
3404 clear_has_start();
3405 }
start()3406 inline ::google::protobuf::int32 DescriptorProto_ExtensionRange::start() const {
3407 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.start)
3408 return start_;
3409 }
set_start(::google::protobuf::int32 value)3410 inline void DescriptorProto_ExtensionRange::set_start(::google::protobuf::int32 value) {
3411 set_has_start();
3412 start_ = value;
3413 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ExtensionRange.start)
3414 }
3415
3416 // optional int32 end = 2;
has_end()3417 inline bool DescriptorProto_ExtensionRange::has_end() const {
3418 return (_has_bits_[0] & 0x00000002u) != 0;
3419 }
set_has_end()3420 inline void DescriptorProto_ExtensionRange::set_has_end() {
3421 _has_bits_[0] |= 0x00000002u;
3422 }
clear_has_end()3423 inline void DescriptorProto_ExtensionRange::clear_has_end() {
3424 _has_bits_[0] &= ~0x00000002u;
3425 }
clear_end()3426 inline void DescriptorProto_ExtensionRange::clear_end() {
3427 end_ = 0;
3428 clear_has_end();
3429 }
end()3430 inline ::google::protobuf::int32 DescriptorProto_ExtensionRange::end() const {
3431 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.end)
3432 return end_;
3433 }
set_end(::google::protobuf::int32 value)3434 inline void DescriptorProto_ExtensionRange::set_end(::google::protobuf::int32 value) {
3435 set_has_end();
3436 end_ = value;
3437 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ExtensionRange.end)
3438 }
3439
3440 // -------------------------------------------------------------------
3441
3442 // DescriptorProto
3443
3444 // optional string name = 1;
has_name()3445 inline bool DescriptorProto::has_name() const {
3446 return (_has_bits_[0] & 0x00000001u) != 0;
3447 }
set_has_name()3448 inline void DescriptorProto::set_has_name() {
3449 _has_bits_[0] |= 0x00000001u;
3450 }
clear_has_name()3451 inline void DescriptorProto::clear_has_name() {
3452 _has_bits_[0] &= ~0x00000001u;
3453 }
clear_name()3454 inline void DescriptorProto::clear_name() {
3455 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3456 name_->clear();
3457 }
3458 clear_has_name();
3459 }
name()3460 inline const ::std::string& DescriptorProto::name() const {
3461 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.name)
3462 return *name_;
3463 }
set_name(const::std::string & value)3464 inline void DescriptorProto::set_name(const ::std::string& value) {
3465 set_has_name();
3466 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3467 name_ = new ::std::string;
3468 }
3469 name_->assign(value);
3470 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.name)
3471 }
set_name(const char * value)3472 inline void DescriptorProto::set_name(const char* value) {
3473 set_has_name();
3474 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3475 name_ = new ::std::string;
3476 }
3477 name_->assign(value);
3478 // @@protoc_insertion_point(field_set_char:google.protobuf.DescriptorProto.name)
3479 }
set_name(const char * value,size_t size)3480 inline void DescriptorProto::set_name(const char* value, size_t size) {
3481 set_has_name();
3482 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3483 name_ = new ::std::string;
3484 }
3485 name_->assign(reinterpret_cast<const char*>(value), size);
3486 // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto.name)
3487 }
mutable_name()3488 inline ::std::string* DescriptorProto::mutable_name() {
3489 set_has_name();
3490 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3491 name_ = new ::std::string;
3492 }
3493 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.name)
3494 return name_;
3495 }
release_name()3496 inline ::std::string* DescriptorProto::release_name() {
3497 clear_has_name();
3498 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3499 return NULL;
3500 } else {
3501 ::std::string* temp = name_;
3502 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3503 return temp;
3504 }
3505 }
set_allocated_name(::std::string * name)3506 inline void DescriptorProto::set_allocated_name(::std::string* name) {
3507 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3508 delete name_;
3509 }
3510 if (name) {
3511 set_has_name();
3512 name_ = name;
3513 } else {
3514 clear_has_name();
3515 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3516 }
3517 // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProto.name)
3518 }
3519
3520 // repeated .google.protobuf.FieldDescriptorProto field = 2;
field_size()3521 inline int DescriptorProto::field_size() const {
3522 return field_.size();
3523 }
clear_field()3524 inline void DescriptorProto::clear_field() {
3525 field_.Clear();
3526 }
field(int index)3527 inline const ::google::protobuf::FieldDescriptorProto& DescriptorProto::field(int index) const {
3528 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.field)
3529 return field_.Get(index);
3530 }
mutable_field(int index)3531 inline ::google::protobuf::FieldDescriptorProto* DescriptorProto::mutable_field(int index) {
3532 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.field)
3533 return field_.Mutable(index);
3534 }
add_field()3535 inline ::google::protobuf::FieldDescriptorProto* DescriptorProto::add_field() {
3536 // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.field)
3537 return field_.Add();
3538 }
3539 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
field()3540 DescriptorProto::field() const {
3541 // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.field)
3542 return field_;
3543 }
3544 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
mutable_field()3545 DescriptorProto::mutable_field() {
3546 // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.field)
3547 return &field_;
3548 }
3549
3550 // repeated .google.protobuf.FieldDescriptorProto extension = 6;
extension_size()3551 inline int DescriptorProto::extension_size() const {
3552 return extension_.size();
3553 }
clear_extension()3554 inline void DescriptorProto::clear_extension() {
3555 extension_.Clear();
3556 }
extension(int index)3557 inline const ::google::protobuf::FieldDescriptorProto& DescriptorProto::extension(int index) const {
3558 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.extension)
3559 return extension_.Get(index);
3560 }
mutable_extension(int index)3561 inline ::google::protobuf::FieldDescriptorProto* DescriptorProto::mutable_extension(int index) {
3562 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.extension)
3563 return extension_.Mutable(index);
3564 }
add_extension()3565 inline ::google::protobuf::FieldDescriptorProto* DescriptorProto::add_extension() {
3566 // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.extension)
3567 return extension_.Add();
3568 }
3569 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
extension()3570 DescriptorProto::extension() const {
3571 // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.extension)
3572 return extension_;
3573 }
3574 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
mutable_extension()3575 DescriptorProto::mutable_extension() {
3576 // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.extension)
3577 return &extension_;
3578 }
3579
3580 // repeated .google.protobuf.DescriptorProto nested_type = 3;
nested_type_size()3581 inline int DescriptorProto::nested_type_size() const {
3582 return nested_type_.size();
3583 }
clear_nested_type()3584 inline void DescriptorProto::clear_nested_type() {
3585 nested_type_.Clear();
3586 }
nested_type(int index)3587 inline const ::google::protobuf::DescriptorProto& DescriptorProto::nested_type(int index) const {
3588 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.nested_type)
3589 return nested_type_.Get(index);
3590 }
mutable_nested_type(int index)3591 inline ::google::protobuf::DescriptorProto* DescriptorProto::mutable_nested_type(int index) {
3592 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.nested_type)
3593 return nested_type_.Mutable(index);
3594 }
add_nested_type()3595 inline ::google::protobuf::DescriptorProto* DescriptorProto::add_nested_type() {
3596 // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.nested_type)
3597 return nested_type_.Add();
3598 }
3599 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >&
nested_type()3600 DescriptorProto::nested_type() const {
3601 // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.nested_type)
3602 return nested_type_;
3603 }
3604 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >*
mutable_nested_type()3605 DescriptorProto::mutable_nested_type() {
3606 // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.nested_type)
3607 return &nested_type_;
3608 }
3609
3610 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
enum_type_size()3611 inline int DescriptorProto::enum_type_size() const {
3612 return enum_type_.size();
3613 }
clear_enum_type()3614 inline void DescriptorProto::clear_enum_type() {
3615 enum_type_.Clear();
3616 }
enum_type(int index)3617 inline const ::google::protobuf::EnumDescriptorProto& DescriptorProto::enum_type(int index) const {
3618 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.enum_type)
3619 return enum_type_.Get(index);
3620 }
mutable_enum_type(int index)3621 inline ::google::protobuf::EnumDescriptorProto* DescriptorProto::mutable_enum_type(int index) {
3622 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.enum_type)
3623 return enum_type_.Mutable(index);
3624 }
add_enum_type()3625 inline ::google::protobuf::EnumDescriptorProto* DescriptorProto::add_enum_type() {
3626 // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.enum_type)
3627 return enum_type_.Add();
3628 }
3629 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >&
enum_type()3630 DescriptorProto::enum_type() const {
3631 // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.enum_type)
3632 return enum_type_;
3633 }
3634 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >*
mutable_enum_type()3635 DescriptorProto::mutable_enum_type() {
3636 // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.enum_type)
3637 return &enum_type_;
3638 }
3639
3640 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
extension_range_size()3641 inline int DescriptorProto::extension_range_size() const {
3642 return extension_range_.size();
3643 }
clear_extension_range()3644 inline void DescriptorProto::clear_extension_range() {
3645 extension_range_.Clear();
3646 }
extension_range(int index)3647 inline const ::google::protobuf::DescriptorProto_ExtensionRange& DescriptorProto::extension_range(int index) const {
3648 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.extension_range)
3649 return extension_range_.Get(index);
3650 }
mutable_extension_range(int index)3651 inline ::google::protobuf::DescriptorProto_ExtensionRange* DescriptorProto::mutable_extension_range(int index) {
3652 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.extension_range)
3653 return extension_range_.Mutable(index);
3654 }
add_extension_range()3655 inline ::google::protobuf::DescriptorProto_ExtensionRange* DescriptorProto::add_extension_range() {
3656 // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.extension_range)
3657 return extension_range_.Add();
3658 }
3659 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >&
extension_range()3660 DescriptorProto::extension_range() const {
3661 // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.extension_range)
3662 return extension_range_;
3663 }
3664 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >*
mutable_extension_range()3665 DescriptorProto::mutable_extension_range() {
3666 // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.extension_range)
3667 return &extension_range_;
3668 }
3669
3670 // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
oneof_decl_size()3671 inline int DescriptorProto::oneof_decl_size() const {
3672 return oneof_decl_.size();
3673 }
clear_oneof_decl()3674 inline void DescriptorProto::clear_oneof_decl() {
3675 oneof_decl_.Clear();
3676 }
oneof_decl(int index)3677 inline const ::google::protobuf::OneofDescriptorProto& DescriptorProto::oneof_decl(int index) const {
3678 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.oneof_decl)
3679 return oneof_decl_.Get(index);
3680 }
mutable_oneof_decl(int index)3681 inline ::google::protobuf::OneofDescriptorProto* DescriptorProto::mutable_oneof_decl(int index) {
3682 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.oneof_decl)
3683 return oneof_decl_.Mutable(index);
3684 }
add_oneof_decl()3685 inline ::google::protobuf::OneofDescriptorProto* DescriptorProto::add_oneof_decl() {
3686 // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.oneof_decl)
3687 return oneof_decl_.Add();
3688 }
3689 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorProto >&
oneof_decl()3690 DescriptorProto::oneof_decl() const {
3691 // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.oneof_decl)
3692 return oneof_decl_;
3693 }
3694 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorProto >*
mutable_oneof_decl()3695 DescriptorProto::mutable_oneof_decl() {
3696 // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.oneof_decl)
3697 return &oneof_decl_;
3698 }
3699
3700 // optional .google.protobuf.MessageOptions options = 7;
has_options()3701 inline bool DescriptorProto::has_options() const {
3702 return (_has_bits_[0] & 0x00000080u) != 0;
3703 }
set_has_options()3704 inline void DescriptorProto::set_has_options() {
3705 _has_bits_[0] |= 0x00000080u;
3706 }
clear_has_options()3707 inline void DescriptorProto::clear_has_options() {
3708 _has_bits_[0] &= ~0x00000080u;
3709 }
clear_options()3710 inline void DescriptorProto::clear_options() {
3711 if (options_ != NULL) options_->::google::protobuf::MessageOptions::Clear();
3712 clear_has_options();
3713 }
options()3714 inline const ::google::protobuf::MessageOptions& DescriptorProto::options() const {
3715 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.options)
3716 return options_ != NULL ? *options_ : *default_instance_->options_;
3717 }
mutable_options()3718 inline ::google::protobuf::MessageOptions* DescriptorProto::mutable_options() {
3719 set_has_options();
3720 if (options_ == NULL) options_ = new ::google::protobuf::MessageOptions;
3721 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.options)
3722 return options_;
3723 }
release_options()3724 inline ::google::protobuf::MessageOptions* DescriptorProto::release_options() {
3725 clear_has_options();
3726 ::google::protobuf::MessageOptions* temp = options_;
3727 options_ = NULL;
3728 return temp;
3729 }
set_allocated_options(::google::protobuf::MessageOptions * options)3730 inline void DescriptorProto::set_allocated_options(::google::protobuf::MessageOptions* options) {
3731 delete options_;
3732 options_ = options;
3733 if (options) {
3734 set_has_options();
3735 } else {
3736 clear_has_options();
3737 }
3738 // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProto.options)
3739 }
3740
3741 // -------------------------------------------------------------------
3742
3743 // FieldDescriptorProto
3744
3745 // optional string name = 1;
has_name()3746 inline bool FieldDescriptorProto::has_name() const {
3747 return (_has_bits_[0] & 0x00000001u) != 0;
3748 }
set_has_name()3749 inline void FieldDescriptorProto::set_has_name() {
3750 _has_bits_[0] |= 0x00000001u;
3751 }
clear_has_name()3752 inline void FieldDescriptorProto::clear_has_name() {
3753 _has_bits_[0] &= ~0x00000001u;
3754 }
clear_name()3755 inline void FieldDescriptorProto::clear_name() {
3756 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3757 name_->clear();
3758 }
3759 clear_has_name();
3760 }
name()3761 inline const ::std::string& FieldDescriptorProto::name() const {
3762 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.name)
3763 return *name_;
3764 }
set_name(const::std::string & value)3765 inline void FieldDescriptorProto::set_name(const ::std::string& value) {
3766 set_has_name();
3767 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3768 name_ = new ::std::string;
3769 }
3770 name_->assign(value);
3771 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.name)
3772 }
set_name(const char * value)3773 inline void FieldDescriptorProto::set_name(const char* value) {
3774 set_has_name();
3775 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3776 name_ = new ::std::string;
3777 }
3778 name_->assign(value);
3779 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.name)
3780 }
set_name(const char * value,size_t size)3781 inline void FieldDescriptorProto::set_name(const char* value, size_t size) {
3782 set_has_name();
3783 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3784 name_ = new ::std::string;
3785 }
3786 name_->assign(reinterpret_cast<const char*>(value), size);
3787 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.name)
3788 }
mutable_name()3789 inline ::std::string* FieldDescriptorProto::mutable_name() {
3790 set_has_name();
3791 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3792 name_ = new ::std::string;
3793 }
3794 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.name)
3795 return name_;
3796 }
release_name()3797 inline ::std::string* FieldDescriptorProto::release_name() {
3798 clear_has_name();
3799 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3800 return NULL;
3801 } else {
3802 ::std::string* temp = name_;
3803 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3804 return temp;
3805 }
3806 }
set_allocated_name(::std::string * name)3807 inline void FieldDescriptorProto::set_allocated_name(::std::string* name) {
3808 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3809 delete name_;
3810 }
3811 if (name) {
3812 set_has_name();
3813 name_ = name;
3814 } else {
3815 clear_has_name();
3816 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3817 }
3818 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.name)
3819 }
3820
3821 // optional int32 number = 3;
has_number()3822 inline bool FieldDescriptorProto::has_number() const {
3823 return (_has_bits_[0] & 0x00000002u) != 0;
3824 }
set_has_number()3825 inline void FieldDescriptorProto::set_has_number() {
3826 _has_bits_[0] |= 0x00000002u;
3827 }
clear_has_number()3828 inline void FieldDescriptorProto::clear_has_number() {
3829 _has_bits_[0] &= ~0x00000002u;
3830 }
clear_number()3831 inline void FieldDescriptorProto::clear_number() {
3832 number_ = 0;
3833 clear_has_number();
3834 }
number()3835 inline ::google::protobuf::int32 FieldDescriptorProto::number() const {
3836 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.number)
3837 return number_;
3838 }
set_number(::google::protobuf::int32 value)3839 inline void FieldDescriptorProto::set_number(::google::protobuf::int32 value) {
3840 set_has_number();
3841 number_ = value;
3842 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.number)
3843 }
3844
3845 // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
has_label()3846 inline bool FieldDescriptorProto::has_label() const {
3847 return (_has_bits_[0] & 0x00000004u) != 0;
3848 }
set_has_label()3849 inline void FieldDescriptorProto::set_has_label() {
3850 _has_bits_[0] |= 0x00000004u;
3851 }
clear_has_label()3852 inline void FieldDescriptorProto::clear_has_label() {
3853 _has_bits_[0] &= ~0x00000004u;
3854 }
clear_label()3855 inline void FieldDescriptorProto::clear_label() {
3856 label_ = 1;
3857 clear_has_label();
3858 }
label()3859 inline ::google::protobuf::FieldDescriptorProto_Label FieldDescriptorProto::label() const {
3860 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.label)
3861 return static_cast< ::google::protobuf::FieldDescriptorProto_Label >(label_);
3862 }
set_label(::google::protobuf::FieldDescriptorProto_Label value)3863 inline void FieldDescriptorProto::set_label(::google::protobuf::FieldDescriptorProto_Label value) {
3864 assert(::google::protobuf::FieldDescriptorProto_Label_IsValid(value));
3865 set_has_label();
3866 label_ = value;
3867 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.label)
3868 }
3869
3870 // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
has_type()3871 inline bool FieldDescriptorProto::has_type() const {
3872 return (_has_bits_[0] & 0x00000008u) != 0;
3873 }
set_has_type()3874 inline void FieldDescriptorProto::set_has_type() {
3875 _has_bits_[0] |= 0x00000008u;
3876 }
clear_has_type()3877 inline void FieldDescriptorProto::clear_has_type() {
3878 _has_bits_[0] &= ~0x00000008u;
3879 }
clear_type()3880 inline void FieldDescriptorProto::clear_type() {
3881 type_ = 1;
3882 clear_has_type();
3883 }
type()3884 inline ::google::protobuf::FieldDescriptorProto_Type FieldDescriptorProto::type() const {
3885 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.type)
3886 return static_cast< ::google::protobuf::FieldDescriptorProto_Type >(type_);
3887 }
set_type(::google::protobuf::FieldDescriptorProto_Type value)3888 inline void FieldDescriptorProto::set_type(::google::protobuf::FieldDescriptorProto_Type value) {
3889 assert(::google::protobuf::FieldDescriptorProto_Type_IsValid(value));
3890 set_has_type();
3891 type_ = value;
3892 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.type)
3893 }
3894
3895 // optional string type_name = 6;
has_type_name()3896 inline bool FieldDescriptorProto::has_type_name() const {
3897 return (_has_bits_[0] & 0x00000010u) != 0;
3898 }
set_has_type_name()3899 inline void FieldDescriptorProto::set_has_type_name() {
3900 _has_bits_[0] |= 0x00000010u;
3901 }
clear_has_type_name()3902 inline void FieldDescriptorProto::clear_has_type_name() {
3903 _has_bits_[0] &= ~0x00000010u;
3904 }
clear_type_name()3905 inline void FieldDescriptorProto::clear_type_name() {
3906 if (type_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3907 type_name_->clear();
3908 }
3909 clear_has_type_name();
3910 }
type_name()3911 inline const ::std::string& FieldDescriptorProto::type_name() const {
3912 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.type_name)
3913 return *type_name_;
3914 }
set_type_name(const::std::string & value)3915 inline void FieldDescriptorProto::set_type_name(const ::std::string& value) {
3916 set_has_type_name();
3917 if (type_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3918 type_name_ = new ::std::string;
3919 }
3920 type_name_->assign(value);
3921 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.type_name)
3922 }
set_type_name(const char * value)3923 inline void FieldDescriptorProto::set_type_name(const char* value) {
3924 set_has_type_name();
3925 if (type_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3926 type_name_ = new ::std::string;
3927 }
3928 type_name_->assign(value);
3929 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.type_name)
3930 }
set_type_name(const char * value,size_t size)3931 inline void FieldDescriptorProto::set_type_name(const char* value, size_t size) {
3932 set_has_type_name();
3933 if (type_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3934 type_name_ = new ::std::string;
3935 }
3936 type_name_->assign(reinterpret_cast<const char*>(value), size);
3937 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.type_name)
3938 }
mutable_type_name()3939 inline ::std::string* FieldDescriptorProto::mutable_type_name() {
3940 set_has_type_name();
3941 if (type_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3942 type_name_ = new ::std::string;
3943 }
3944 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.type_name)
3945 return type_name_;
3946 }
release_type_name()3947 inline ::std::string* FieldDescriptorProto::release_type_name() {
3948 clear_has_type_name();
3949 if (type_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3950 return NULL;
3951 } else {
3952 ::std::string* temp = type_name_;
3953 type_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3954 return temp;
3955 }
3956 }
set_allocated_type_name(::std::string * type_name)3957 inline void FieldDescriptorProto::set_allocated_type_name(::std::string* type_name) {
3958 if (type_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3959 delete type_name_;
3960 }
3961 if (type_name) {
3962 set_has_type_name();
3963 type_name_ = type_name;
3964 } else {
3965 clear_has_type_name();
3966 type_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3967 }
3968 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.type_name)
3969 }
3970
3971 // optional string extendee = 2;
has_extendee()3972 inline bool FieldDescriptorProto::has_extendee() const {
3973 return (_has_bits_[0] & 0x00000020u) != 0;
3974 }
set_has_extendee()3975 inline void FieldDescriptorProto::set_has_extendee() {
3976 _has_bits_[0] |= 0x00000020u;
3977 }
clear_has_extendee()3978 inline void FieldDescriptorProto::clear_has_extendee() {
3979 _has_bits_[0] &= ~0x00000020u;
3980 }
clear_extendee()3981 inline void FieldDescriptorProto::clear_extendee() {
3982 if (extendee_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3983 extendee_->clear();
3984 }
3985 clear_has_extendee();
3986 }
extendee()3987 inline const ::std::string& FieldDescriptorProto::extendee() const {
3988 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.extendee)
3989 return *extendee_;
3990 }
set_extendee(const::std::string & value)3991 inline void FieldDescriptorProto::set_extendee(const ::std::string& value) {
3992 set_has_extendee();
3993 if (extendee_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3994 extendee_ = new ::std::string;
3995 }
3996 extendee_->assign(value);
3997 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.extendee)
3998 }
set_extendee(const char * value)3999 inline void FieldDescriptorProto::set_extendee(const char* value) {
4000 set_has_extendee();
4001 if (extendee_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4002 extendee_ = new ::std::string;
4003 }
4004 extendee_->assign(value);
4005 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.extendee)
4006 }
set_extendee(const char * value,size_t size)4007 inline void FieldDescriptorProto::set_extendee(const char* value, size_t size) {
4008 set_has_extendee();
4009 if (extendee_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4010 extendee_ = new ::std::string;
4011 }
4012 extendee_->assign(reinterpret_cast<const char*>(value), size);
4013 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.extendee)
4014 }
mutable_extendee()4015 inline ::std::string* FieldDescriptorProto::mutable_extendee() {
4016 set_has_extendee();
4017 if (extendee_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4018 extendee_ = new ::std::string;
4019 }
4020 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.extendee)
4021 return extendee_;
4022 }
release_extendee()4023 inline ::std::string* FieldDescriptorProto::release_extendee() {
4024 clear_has_extendee();
4025 if (extendee_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4026 return NULL;
4027 } else {
4028 ::std::string* temp = extendee_;
4029 extendee_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4030 return temp;
4031 }
4032 }
set_allocated_extendee(::std::string * extendee)4033 inline void FieldDescriptorProto::set_allocated_extendee(::std::string* extendee) {
4034 if (extendee_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4035 delete extendee_;
4036 }
4037 if (extendee) {
4038 set_has_extendee();
4039 extendee_ = extendee;
4040 } else {
4041 clear_has_extendee();
4042 extendee_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4043 }
4044 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.extendee)
4045 }
4046
4047 // optional string default_value = 7;
has_default_value()4048 inline bool FieldDescriptorProto::has_default_value() const {
4049 return (_has_bits_[0] & 0x00000040u) != 0;
4050 }
set_has_default_value()4051 inline void FieldDescriptorProto::set_has_default_value() {
4052 _has_bits_[0] |= 0x00000040u;
4053 }
clear_has_default_value()4054 inline void FieldDescriptorProto::clear_has_default_value() {
4055 _has_bits_[0] &= ~0x00000040u;
4056 }
clear_default_value()4057 inline void FieldDescriptorProto::clear_default_value() {
4058 if (default_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4059 default_value_->clear();
4060 }
4061 clear_has_default_value();
4062 }
default_value()4063 inline const ::std::string& FieldDescriptorProto::default_value() const {
4064 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.default_value)
4065 return *default_value_;
4066 }
set_default_value(const::std::string & value)4067 inline void FieldDescriptorProto::set_default_value(const ::std::string& value) {
4068 set_has_default_value();
4069 if (default_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4070 default_value_ = new ::std::string;
4071 }
4072 default_value_->assign(value);
4073 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.default_value)
4074 }
set_default_value(const char * value)4075 inline void FieldDescriptorProto::set_default_value(const char* value) {
4076 set_has_default_value();
4077 if (default_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4078 default_value_ = new ::std::string;
4079 }
4080 default_value_->assign(value);
4081 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.default_value)
4082 }
set_default_value(const char * value,size_t size)4083 inline void FieldDescriptorProto::set_default_value(const char* value, size_t size) {
4084 set_has_default_value();
4085 if (default_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4086 default_value_ = new ::std::string;
4087 }
4088 default_value_->assign(reinterpret_cast<const char*>(value), size);
4089 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.default_value)
4090 }
mutable_default_value()4091 inline ::std::string* FieldDescriptorProto::mutable_default_value() {
4092 set_has_default_value();
4093 if (default_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4094 default_value_ = new ::std::string;
4095 }
4096 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.default_value)
4097 return default_value_;
4098 }
release_default_value()4099 inline ::std::string* FieldDescriptorProto::release_default_value() {
4100 clear_has_default_value();
4101 if (default_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4102 return NULL;
4103 } else {
4104 ::std::string* temp = default_value_;
4105 default_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4106 return temp;
4107 }
4108 }
set_allocated_default_value(::std::string * default_value)4109 inline void FieldDescriptorProto::set_allocated_default_value(::std::string* default_value) {
4110 if (default_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4111 delete default_value_;
4112 }
4113 if (default_value) {
4114 set_has_default_value();
4115 default_value_ = default_value;
4116 } else {
4117 clear_has_default_value();
4118 default_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4119 }
4120 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.default_value)
4121 }
4122
4123 // optional int32 oneof_index = 9;
has_oneof_index()4124 inline bool FieldDescriptorProto::has_oneof_index() const {
4125 return (_has_bits_[0] & 0x00000080u) != 0;
4126 }
set_has_oneof_index()4127 inline void FieldDescriptorProto::set_has_oneof_index() {
4128 _has_bits_[0] |= 0x00000080u;
4129 }
clear_has_oneof_index()4130 inline void FieldDescriptorProto::clear_has_oneof_index() {
4131 _has_bits_[0] &= ~0x00000080u;
4132 }
clear_oneof_index()4133 inline void FieldDescriptorProto::clear_oneof_index() {
4134 oneof_index_ = 0;
4135 clear_has_oneof_index();
4136 }
oneof_index()4137 inline ::google::protobuf::int32 FieldDescriptorProto::oneof_index() const {
4138 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.oneof_index)
4139 return oneof_index_;
4140 }
set_oneof_index(::google::protobuf::int32 value)4141 inline void FieldDescriptorProto::set_oneof_index(::google::protobuf::int32 value) {
4142 set_has_oneof_index();
4143 oneof_index_ = value;
4144 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.oneof_index)
4145 }
4146
4147 // optional .google.protobuf.FieldOptions options = 8;
has_options()4148 inline bool FieldDescriptorProto::has_options() const {
4149 return (_has_bits_[0] & 0x00000100u) != 0;
4150 }
set_has_options()4151 inline void FieldDescriptorProto::set_has_options() {
4152 _has_bits_[0] |= 0x00000100u;
4153 }
clear_has_options()4154 inline void FieldDescriptorProto::clear_has_options() {
4155 _has_bits_[0] &= ~0x00000100u;
4156 }
clear_options()4157 inline void FieldDescriptorProto::clear_options() {
4158 if (options_ != NULL) options_->::google::protobuf::FieldOptions::Clear();
4159 clear_has_options();
4160 }
options()4161 inline const ::google::protobuf::FieldOptions& FieldDescriptorProto::options() const {
4162 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.options)
4163 return options_ != NULL ? *options_ : *default_instance_->options_;
4164 }
mutable_options()4165 inline ::google::protobuf::FieldOptions* FieldDescriptorProto::mutable_options() {
4166 set_has_options();
4167 if (options_ == NULL) options_ = new ::google::protobuf::FieldOptions;
4168 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.options)
4169 return options_;
4170 }
release_options()4171 inline ::google::protobuf::FieldOptions* FieldDescriptorProto::release_options() {
4172 clear_has_options();
4173 ::google::protobuf::FieldOptions* temp = options_;
4174 options_ = NULL;
4175 return temp;
4176 }
set_allocated_options(::google::protobuf::FieldOptions * options)4177 inline void FieldDescriptorProto::set_allocated_options(::google::protobuf::FieldOptions* options) {
4178 delete options_;
4179 options_ = options;
4180 if (options) {
4181 set_has_options();
4182 } else {
4183 clear_has_options();
4184 }
4185 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.options)
4186 }
4187
4188 // -------------------------------------------------------------------
4189
4190 // OneofDescriptorProto
4191
4192 // optional string name = 1;
has_name()4193 inline bool OneofDescriptorProto::has_name() const {
4194 return (_has_bits_[0] & 0x00000001u) != 0;
4195 }
set_has_name()4196 inline void OneofDescriptorProto::set_has_name() {
4197 _has_bits_[0] |= 0x00000001u;
4198 }
clear_has_name()4199 inline void OneofDescriptorProto::clear_has_name() {
4200 _has_bits_[0] &= ~0x00000001u;
4201 }
clear_name()4202 inline void OneofDescriptorProto::clear_name() {
4203 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4204 name_->clear();
4205 }
4206 clear_has_name();
4207 }
name()4208 inline const ::std::string& OneofDescriptorProto::name() const {
4209 // @@protoc_insertion_point(field_get:google.protobuf.OneofDescriptorProto.name)
4210 return *name_;
4211 }
set_name(const::std::string & value)4212 inline void OneofDescriptorProto::set_name(const ::std::string& value) {
4213 set_has_name();
4214 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4215 name_ = new ::std::string;
4216 }
4217 name_->assign(value);
4218 // @@protoc_insertion_point(field_set:google.protobuf.OneofDescriptorProto.name)
4219 }
set_name(const char * value)4220 inline void OneofDescriptorProto::set_name(const char* value) {
4221 set_has_name();
4222 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4223 name_ = new ::std::string;
4224 }
4225 name_->assign(value);
4226 // @@protoc_insertion_point(field_set_char:google.protobuf.OneofDescriptorProto.name)
4227 }
set_name(const char * value,size_t size)4228 inline void OneofDescriptorProto::set_name(const char* value, size_t size) {
4229 set_has_name();
4230 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4231 name_ = new ::std::string;
4232 }
4233 name_->assign(reinterpret_cast<const char*>(value), size);
4234 // @@protoc_insertion_point(field_set_pointer:google.protobuf.OneofDescriptorProto.name)
4235 }
mutable_name()4236 inline ::std::string* OneofDescriptorProto::mutable_name() {
4237 set_has_name();
4238 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4239 name_ = new ::std::string;
4240 }
4241 // @@protoc_insertion_point(field_mutable:google.protobuf.OneofDescriptorProto.name)
4242 return name_;
4243 }
release_name()4244 inline ::std::string* OneofDescriptorProto::release_name() {
4245 clear_has_name();
4246 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4247 return NULL;
4248 } else {
4249 ::std::string* temp = name_;
4250 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4251 return temp;
4252 }
4253 }
set_allocated_name(::std::string * name)4254 inline void OneofDescriptorProto::set_allocated_name(::std::string* name) {
4255 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4256 delete name_;
4257 }
4258 if (name) {
4259 set_has_name();
4260 name_ = name;
4261 } else {
4262 clear_has_name();
4263 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4264 }
4265 // @@protoc_insertion_point(field_set_allocated:google.protobuf.OneofDescriptorProto.name)
4266 }
4267
4268 // -------------------------------------------------------------------
4269
4270 // EnumDescriptorProto
4271
4272 // optional string name = 1;
has_name()4273 inline bool EnumDescriptorProto::has_name() const {
4274 return (_has_bits_[0] & 0x00000001u) != 0;
4275 }
set_has_name()4276 inline void EnumDescriptorProto::set_has_name() {
4277 _has_bits_[0] |= 0x00000001u;
4278 }
clear_has_name()4279 inline void EnumDescriptorProto::clear_has_name() {
4280 _has_bits_[0] &= ~0x00000001u;
4281 }
clear_name()4282 inline void EnumDescriptorProto::clear_name() {
4283 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4284 name_->clear();
4285 }
4286 clear_has_name();
4287 }
name()4288 inline const ::std::string& EnumDescriptorProto::name() const {
4289 // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.name)
4290 return *name_;
4291 }
set_name(const::std::string & value)4292 inline void EnumDescriptorProto::set_name(const ::std::string& value) {
4293 set_has_name();
4294 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4295 name_ = new ::std::string;
4296 }
4297 name_->assign(value);
4298 // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.name)
4299 }
set_name(const char * value)4300 inline void EnumDescriptorProto::set_name(const char* value) {
4301 set_has_name();
4302 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4303 name_ = new ::std::string;
4304 }
4305 name_->assign(value);
4306 // @@protoc_insertion_point(field_set_char:google.protobuf.EnumDescriptorProto.name)
4307 }
set_name(const char * value,size_t size)4308 inline void EnumDescriptorProto::set_name(const char* value, size_t size) {
4309 set_has_name();
4310 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4311 name_ = new ::std::string;
4312 }
4313 name_->assign(reinterpret_cast<const char*>(value), size);
4314 // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumDescriptorProto.name)
4315 }
mutable_name()4316 inline ::std::string* EnumDescriptorProto::mutable_name() {
4317 set_has_name();
4318 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4319 name_ = new ::std::string;
4320 }
4321 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.name)
4322 return name_;
4323 }
release_name()4324 inline ::std::string* EnumDescriptorProto::release_name() {
4325 clear_has_name();
4326 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4327 return NULL;
4328 } else {
4329 ::std::string* temp = name_;
4330 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4331 return temp;
4332 }
4333 }
set_allocated_name(::std::string * name)4334 inline void EnumDescriptorProto::set_allocated_name(::std::string* name) {
4335 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4336 delete name_;
4337 }
4338 if (name) {
4339 set_has_name();
4340 name_ = name;
4341 } else {
4342 clear_has_name();
4343 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4344 }
4345 // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumDescriptorProto.name)
4346 }
4347
4348 // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
value_size()4349 inline int EnumDescriptorProto::value_size() const {
4350 return value_.size();
4351 }
clear_value()4352 inline void EnumDescriptorProto::clear_value() {
4353 value_.Clear();
4354 }
value(int index)4355 inline const ::google::protobuf::EnumValueDescriptorProto& EnumDescriptorProto::value(int index) const {
4356 // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.value)
4357 return value_.Get(index);
4358 }
mutable_value(int index)4359 inline ::google::protobuf::EnumValueDescriptorProto* EnumDescriptorProto::mutable_value(int index) {
4360 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.value)
4361 return value_.Mutable(index);
4362 }
add_value()4363 inline ::google::protobuf::EnumValueDescriptorProto* EnumDescriptorProto::add_value() {
4364 // @@protoc_insertion_point(field_add:google.protobuf.EnumDescriptorProto.value)
4365 return value_.Add();
4366 }
4367 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >&
value()4368 EnumDescriptorProto::value() const {
4369 // @@protoc_insertion_point(field_list:google.protobuf.EnumDescriptorProto.value)
4370 return value_;
4371 }
4372 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >*
mutable_value()4373 EnumDescriptorProto::mutable_value() {
4374 // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumDescriptorProto.value)
4375 return &value_;
4376 }
4377
4378 // optional .google.protobuf.EnumOptions options = 3;
has_options()4379 inline bool EnumDescriptorProto::has_options() const {
4380 return (_has_bits_[0] & 0x00000004u) != 0;
4381 }
set_has_options()4382 inline void EnumDescriptorProto::set_has_options() {
4383 _has_bits_[0] |= 0x00000004u;
4384 }
clear_has_options()4385 inline void EnumDescriptorProto::clear_has_options() {
4386 _has_bits_[0] &= ~0x00000004u;
4387 }
clear_options()4388 inline void EnumDescriptorProto::clear_options() {
4389 if (options_ != NULL) options_->::google::protobuf::EnumOptions::Clear();
4390 clear_has_options();
4391 }
options()4392 inline const ::google::protobuf::EnumOptions& EnumDescriptorProto::options() const {
4393 // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.options)
4394 return options_ != NULL ? *options_ : *default_instance_->options_;
4395 }
mutable_options()4396 inline ::google::protobuf::EnumOptions* EnumDescriptorProto::mutable_options() {
4397 set_has_options();
4398 if (options_ == NULL) options_ = new ::google::protobuf::EnumOptions;
4399 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.options)
4400 return options_;
4401 }
release_options()4402 inline ::google::protobuf::EnumOptions* EnumDescriptorProto::release_options() {
4403 clear_has_options();
4404 ::google::protobuf::EnumOptions* temp = options_;
4405 options_ = NULL;
4406 return temp;
4407 }
set_allocated_options(::google::protobuf::EnumOptions * options)4408 inline void EnumDescriptorProto::set_allocated_options(::google::protobuf::EnumOptions* options) {
4409 delete options_;
4410 options_ = options;
4411 if (options) {
4412 set_has_options();
4413 } else {
4414 clear_has_options();
4415 }
4416 // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumDescriptorProto.options)
4417 }
4418
4419 // -------------------------------------------------------------------
4420
4421 // EnumValueDescriptorProto
4422
4423 // optional string name = 1;
has_name()4424 inline bool EnumValueDescriptorProto::has_name() const {
4425 return (_has_bits_[0] & 0x00000001u) != 0;
4426 }
set_has_name()4427 inline void EnumValueDescriptorProto::set_has_name() {
4428 _has_bits_[0] |= 0x00000001u;
4429 }
clear_has_name()4430 inline void EnumValueDescriptorProto::clear_has_name() {
4431 _has_bits_[0] &= ~0x00000001u;
4432 }
clear_name()4433 inline void EnumValueDescriptorProto::clear_name() {
4434 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4435 name_->clear();
4436 }
4437 clear_has_name();
4438 }
name()4439 inline const ::std::string& EnumValueDescriptorProto::name() const {
4440 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.name)
4441 return *name_;
4442 }
set_name(const::std::string & value)4443 inline void EnumValueDescriptorProto::set_name(const ::std::string& value) {
4444 set_has_name();
4445 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4446 name_ = new ::std::string;
4447 }
4448 name_->assign(value);
4449 // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto.name)
4450 }
set_name(const char * value)4451 inline void EnumValueDescriptorProto::set_name(const char* value) {
4452 set_has_name();
4453 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4454 name_ = new ::std::string;
4455 }
4456 name_->assign(value);
4457 // @@protoc_insertion_point(field_set_char:google.protobuf.EnumValueDescriptorProto.name)
4458 }
set_name(const char * value,size_t size)4459 inline void EnumValueDescriptorProto::set_name(const char* value, size_t size) {
4460 set_has_name();
4461 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4462 name_ = new ::std::string;
4463 }
4464 name_->assign(reinterpret_cast<const char*>(value), size);
4465 // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumValueDescriptorProto.name)
4466 }
mutable_name()4467 inline ::std::string* EnumValueDescriptorProto::mutable_name() {
4468 set_has_name();
4469 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4470 name_ = new ::std::string;
4471 }
4472 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorProto.name)
4473 return name_;
4474 }
release_name()4475 inline ::std::string* EnumValueDescriptorProto::release_name() {
4476 clear_has_name();
4477 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4478 return NULL;
4479 } else {
4480 ::std::string* temp = name_;
4481 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4482 return temp;
4483 }
4484 }
set_allocated_name(::std::string * name)4485 inline void EnumValueDescriptorProto::set_allocated_name(::std::string* name) {
4486 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4487 delete name_;
4488 }
4489 if (name) {
4490 set_has_name();
4491 name_ = name;
4492 } else {
4493 clear_has_name();
4494 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4495 }
4496 // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValueDescriptorProto.name)
4497 }
4498
4499 // optional int32 number = 2;
has_number()4500 inline bool EnumValueDescriptorProto::has_number() const {
4501 return (_has_bits_[0] & 0x00000002u) != 0;
4502 }
set_has_number()4503 inline void EnumValueDescriptorProto::set_has_number() {
4504 _has_bits_[0] |= 0x00000002u;
4505 }
clear_has_number()4506 inline void EnumValueDescriptorProto::clear_has_number() {
4507 _has_bits_[0] &= ~0x00000002u;
4508 }
clear_number()4509 inline void EnumValueDescriptorProto::clear_number() {
4510 number_ = 0;
4511 clear_has_number();
4512 }
number()4513 inline ::google::protobuf::int32 EnumValueDescriptorProto::number() const {
4514 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.number)
4515 return number_;
4516 }
set_number(::google::protobuf::int32 value)4517 inline void EnumValueDescriptorProto::set_number(::google::protobuf::int32 value) {
4518 set_has_number();
4519 number_ = value;
4520 // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto.number)
4521 }
4522
4523 // optional .google.protobuf.EnumValueOptions options = 3;
has_options()4524 inline bool EnumValueDescriptorProto::has_options() const {
4525 return (_has_bits_[0] & 0x00000004u) != 0;
4526 }
set_has_options()4527