Debian Codegraph @

samples/protobuf-sample/src/descriptor.pb.h

raw symbols SCIP
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 < 3000000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
14 #error your headers.
15 #endif
16 #if 3000000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
20 #endif
21
22 #include <google/protobuf/arena.h>
23 #include <google/protobuf/arenastring.h>
24 #include <google/protobuf/generated_message_util.h>
25 #include <google/protobuf/metadata.h>
26 #include <google/protobuf/message.h>
27 #include <google/protobuf/repeated_field.h>
28 #include <google/protobuf/extension_set.h>
29 #include <google/protobuf/generated_enum_reflection.h>
30 #include <google/protobuf/unknown_field_set.h>
31 // @@protoc_insertion_point(includes)
32
33 namespace google {
34 namespace protobuf {
35
36 // Internal implementation detail -- do not call these.
37 void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
38 void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
39 void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
40
41 class DescriptorProto;
42 class DescriptorProto_ExtensionRange;
43 class DescriptorProto_ReservedRange;
44 class EnumDescriptorProto;
45 class EnumOptions;
46 class EnumValueDescriptorProto;
47 class EnumValueOptions;
48 class FieldDescriptorProto;
49 class FieldOptions;
50 class FileDescriptorProto;
51 class FileDescriptorSet;
52 class FileOptions;
53 class GeneratedCodeInfo;
54 class GeneratedCodeInfo_Annotation;
55 class MessageOptions;
56 class MethodDescriptorProto;
57 class MethodOptions;
58 class OneofDescriptorProto;
59 class ServiceDescriptorProto;
60 class ServiceOptions;
61 class SourceCodeInfo;
62 class SourceCodeInfo_Location;
63 class UninterpretedOption;
64 class UninterpretedOption_NamePart;
65
66 enum FieldDescriptorProto_Type {
67 FieldDescriptorProto_Type_TYPE_DOUBLE = 1,
68 FieldDescriptorProto_Type_TYPE_FLOAT = 2,
69 FieldDescriptorProto_Type_TYPE_INT64 = 3,
70 FieldDescriptorProto_Type_TYPE_UINT64 = 4,
71 FieldDescriptorProto_Type_TYPE_INT32 = 5,
72 FieldDescriptorProto_Type_TYPE_FIXED64 = 6,
73 FieldDescriptorProto_Type_TYPE_FIXED32 = 7,
74 FieldDescriptorProto_Type_TYPE_BOOL = 8,
75 FieldDescriptorProto_Type_TYPE_STRING = 9,
76 FieldDescriptorProto_Type_TYPE_GROUP = 10,
77 FieldDescriptorProto_Type_TYPE_MESSAGE = 11,
78 FieldDescriptorProto_Type_TYPE_BYTES = 12,
79 FieldDescriptorProto_Type_TYPE_UINT32 = 13,
80 FieldDescriptorProto_Type_TYPE_ENUM = 14,
81 FieldDescriptorProto_Type_TYPE_SFIXED32 = 15,
82 FieldDescriptorProto_Type_TYPE_SFIXED64 = 16,
83 FieldDescriptorProto_Type_TYPE_SINT32 = 17,
84 FieldDescriptorProto_Type_TYPE_SINT64 = 18
85 };
86 LIBPROTOBUF_EXPORT bool FieldDescriptorProto_Type_IsValid(int value);
87 const FieldDescriptorProto_Type FieldDescriptorProto_Type_Type_MIN = FieldDescriptorProto_Type_TYPE_DOUBLE;
88 const FieldDescriptorProto_Type FieldDescriptorProto_Type_Type_MAX = FieldDescriptorProto_Type_TYPE_SINT64;
89 const int FieldDescriptorProto_Type_Type_ARRAYSIZE = FieldDescriptorProto_Type_Type_MAX + 1;
90
91 LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Type_descriptor();
92 inline const ::std::string& FieldDescriptorProto_Type_Name(FieldDescriptorProto_Type value) {
93 return ::google::protobuf::internal::NameOfEnum(
94 FieldDescriptorProto_Type_descriptor(), value);
95 }
96 inline bool FieldDescriptorProto_Type_Parse(
97 const ::std::string& name, FieldDescriptorProto_Type* value) {
98 return ::google::protobuf::internal::ParseNamedEnum<FieldDescriptorProto_Type>(
99 FieldDescriptorProto_Type_descriptor(), name, value);
100 }
101 enum FieldDescriptorProto_Label {
102 FieldDescriptorProto_Label_LABEL_OPTIONAL = 1,
103 FieldDescriptorProto_Label_LABEL_REQUIRED = 2,
104 FieldDescriptorProto_Label_LABEL_REPEATED = 3
105 };
106 LIBPROTOBUF_EXPORT bool FieldDescriptorProto_Label_IsValid(int value);
107 const FieldDescriptorProto_Label FieldDescriptorProto_Label_Label_MIN = FieldDescriptorProto_Label_LABEL_OPTIONAL;
108 const FieldDescriptorProto_Label FieldDescriptorProto_Label_Label_MAX = FieldDescriptorProto_Label_LABEL_REPEATED;
109 const int FieldDescriptorProto_Label_Label_ARRAYSIZE = FieldDescriptorProto_Label_Label_MAX + 1;
110
111 LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Label_descriptor();
112 inline const ::std::string& FieldDescriptorProto_Label_Name(FieldDescriptorProto_Label value) {
113 return ::google::protobuf::internal::NameOfEnum(
114 FieldDescriptorProto_Label_descriptor(), value);
115 }
116 inline bool FieldDescriptorProto_Label_Parse(
117 const ::std::string& name, FieldDescriptorProto_Label* value) {
118 return ::google::protobuf::internal::ParseNamedEnum<FieldDescriptorProto_Label>(
119 FieldDescriptorProto_Label_descriptor(), name, value);
120 }
121 enum FileOptions_OptimizeMode {
122 FileOptions_OptimizeMode_SPEED = 1,
123 FileOptions_OptimizeMode_CODE_SIZE = 2,
124 FileOptions_OptimizeMode_LITE_RUNTIME = 3
125 };
126 LIBPROTOBUF_EXPORT bool FileOptions_OptimizeMode_IsValid(int value);
127 const FileOptions_OptimizeMode FileOptions_OptimizeMode_OptimizeMode_MIN = FileOptions_OptimizeMode_SPEED;
128 const FileOptions_OptimizeMode FileOptions_OptimizeMode_OptimizeMode_MAX = FileOptions_OptimizeMode_LITE_RUNTIME;
129 const int FileOptions_OptimizeMode_OptimizeMode_ARRAYSIZE = FileOptions_OptimizeMode_OptimizeMode_MAX + 1;
130
131 LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FileOptions_OptimizeMode_descriptor();
132 inline const ::std::string& FileOptions_OptimizeMode_Name(FileOptions_OptimizeMode value) {
133 return ::google::protobuf::internal::NameOfEnum(
134 FileOptions_OptimizeMode_descriptor(), value);
135 }
136 inline bool FileOptions_OptimizeMode_Parse(
137 const ::std::string& name, FileOptions_OptimizeMode* value) {
138 return ::google::protobuf::internal::ParseNamedEnum<FileOptions_OptimizeMode>(
139 FileOptions_OptimizeMode_descriptor(), name, value);
140 }
141 enum FieldOptions_CType {
142 FieldOptions_CType_STRING = 0,
143 FieldOptions_CType_CORD = 1,
144 FieldOptions_CType_STRING_PIECE = 2
145 };
146 LIBPROTOBUF_EXPORT bool FieldOptions_CType_IsValid(int value);
147 const FieldOptions_CType FieldOptions_CType_CType_MIN = FieldOptions_CType_STRING;
148 const FieldOptions_CType FieldOptions_CType_CType_MAX = FieldOptions_CType_STRING_PIECE;
149 const int FieldOptions_CType_CType_ARRAYSIZE = FieldOptions_CType_CType_MAX + 1;
150
151 LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FieldOptions_CType_descriptor();
152 inline const ::std::string& FieldOptions_CType_Name(FieldOptions_CType value) {
153 return ::google::protobuf::internal::NameOfEnum(
154 FieldOptions_CType_descriptor(), value);
155 }
156 inline bool FieldOptions_CType_Parse(
157 const ::std::string& name, FieldOptions_CType* value) {
158 return ::google::protobuf::internal::ParseNamedEnum<FieldOptions_CType>(
159 FieldOptions_CType_descriptor(), name, value);
160 }
161 enum FieldOptions_JSType {
162 FieldOptions_JSType_JS_NORMAL = 0,
163 FieldOptions_JSType_JS_STRING = 1,
164 FieldOptions_JSType_JS_NUMBER = 2
165 };
166 LIBPROTOBUF_EXPORT bool FieldOptions_JSType_IsValid(int value);
167 const FieldOptions_JSType FieldOptions_JSType_JSType_MIN = FieldOptions_JSType_JS_NORMAL;
168 const FieldOptions_JSType FieldOptions_JSType_JSType_MAX = FieldOptions_JSType_JS_NUMBER;
169 const int FieldOptions_JSType_JSType_ARRAYSIZE = FieldOptions_JSType_JSType_MAX + 1;
170
171 LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FieldOptions_JSType_descriptor();
172 inline const ::std::string& FieldOptions_JSType_Name(FieldOptions_JSType value) {
173 return ::google::protobuf::internal::NameOfEnum(
174 FieldOptions_JSType_descriptor(), value);
175 }
176 inline bool FieldOptions_JSType_Parse(
177 const ::std::string& name, FieldOptions_JSType* value) {
178 return ::google::protobuf::internal::ParseNamedEnum<FieldOptions_JSType>(
179 FieldOptions_JSType_descriptor(), name, value);
180 }
181 // ===================================================================
182
183 class LIBPROTOBUF_EXPORT FileDescriptorSet : public ::google::protobuf::Message {
184 public:
185 FileDescriptorSet();
186 virtual ~FileDescriptorSet();
187
188 FileDescriptorSet(const FileDescriptorSet& from);
189
190 inline FileDescriptorSet& operator=(const FileDescriptorSet& from) {
191 CopyFrom(from);
192 return *this;
193 }
194
195 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
196 return _internal_metadata_.unknown_fields();
197 }
198
199 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
200 return _internal_metadata_.mutable_unknown_fields();
201 }
202
203 static const ::google::protobuf::Descriptor* descriptor();
204 static const FileDescriptorSet& default_instance();
205
206 void Swap(FileDescriptorSet* other);
207
208 // implements Message ----------------------------------------------
209
210 inline FileDescriptorSet* New() const { return New(NULL); }
211
212 FileDescriptorSet* New(::google::protobuf::Arena* arena) const;
213 void CopyFrom(const ::google::protobuf::Message& from);
214 void MergeFrom(const ::google::protobuf::Message& from);
215 void CopyFrom(const FileDescriptorSet& from);
216 void MergeFrom(const FileDescriptorSet& from);
217 void Clear();
218 bool IsInitialized() const;
219
220 int ByteSize() const;
221 bool MergePartialFromCodedStream(
222 ::google::protobuf::io::CodedInputStream* input);
223 void SerializeWithCachedSizes(
224 ::google::protobuf::io::CodedOutputStream* output) const;
225 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
226 int GetCachedSize() const { return _cached_size_; }
227 private:
228 void SharedCtor();
229 void SharedDtor();
230 void SetCachedSize(int size) const;
231 void InternalSwap(FileDescriptorSet* other);
232 private:
233 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
234 return _internal_metadata_.arena();
235 }
236 inline void* MaybeArenaPtr() const {
237 return _internal_metadata_.raw_arena_ptr();
238 }
239 public:
240
241 ::google::protobuf::Metadata GetMetadata() const;
242
243 // nested types ----------------------------------------------------
244
245 // accessors -------------------------------------------------------
246
247 // repeated .google.protobuf.FileDescriptorProto file = 1;
248 int file_size() const;
249 void clear_file();
250 static const int kFileFieldNumber = 1;
251 const ::google::protobuf::FileDescriptorProto& file(int index) const;
252 ::google::protobuf::FileDescriptorProto* mutable_file(int index);
253 ::google::protobuf::FileDescriptorProto* add_file();
254 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >*
255 mutable_file();
256 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >&
257 file() const;
258
259 // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorSet)
260 private:
261
262 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
263 ::google::protobuf::uint32 _has_bits_[1];
264 mutable int _cached_size_;
265 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto > file_;
266 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
267 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
268 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
269
270 void InitAsDefaultInstance();
271 static FileDescriptorSet* default_instance_;
272 };
273 // -------------------------------------------------------------------
274
275 class LIBPROTOBUF_EXPORT FileDescriptorProto : public ::google::protobuf::Message {
276 public:
277 FileDescriptorProto();
278 virtual ~FileDescriptorProto();
279
280 FileDescriptorProto(const FileDescriptorProto& from);
281
282 inline FileDescriptorProto& operator=(const FileDescriptorProto& from) {
283 CopyFrom(from);
284 return *this;
285 }
286
287 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
288 return _internal_metadata_.unknown_fields();
289 }
290
291 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
292 return _internal_metadata_.mutable_unknown_fields();
293 }
294
295 static const ::google::protobuf::Descriptor* descriptor();
296 static const FileDescriptorProto& default_instance();
297
298 void Swap(FileDescriptorProto* other);
299
300 // implements Message ----------------------------------------------
301
302 inline FileDescriptorProto* New() const { return New(NULL); }
303
304 FileDescriptorProto* New(::google::protobuf::Arena* arena) const;
305 void CopyFrom(const ::google::protobuf::Message& from);
306 void MergeFrom(const ::google::protobuf::Message& from);
307 void CopyFrom(const FileDescriptorProto& from);
308 void MergeFrom(const FileDescriptorProto& from);
309 void Clear();
310 bool IsInitialized() const;
311
312 int ByteSize() const;
313 bool MergePartialFromCodedStream(
314 ::google::protobuf::io::CodedInputStream* input);
315 void SerializeWithCachedSizes(
316 ::google::protobuf::io::CodedOutputStream* output) const;
317 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
318 int GetCachedSize() const { return _cached_size_; }
319 private:
320 void SharedCtor();
321 void SharedDtor();
322 void SetCachedSize(int size) const;
323 void InternalSwap(FileDescriptorProto* other);
324 private:
325 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
326 return _internal_metadata_.arena();
327 }
328 inline void* MaybeArenaPtr() const {
329 return _internal_metadata_.raw_arena_ptr();
330 }
331 public:
332
333 ::google::protobuf::Metadata GetMetadata() const;
334
335 // nested types ----------------------------------------------------
336
337 // accessors -------------------------------------------------------
338
339 // optional string name = 1;
340 bool has_name() const;
341 void clear_name();
342 static const int kNameFieldNumber = 1;
343 const ::std::string& name() const;
344 void set_name(const ::std::string& value);
345 void set_name(const char* value);
346 void set_name(const char* value, size_t size);
347 ::std::string* mutable_name();
348 ::std::string* release_name();
349 void set_allocated_name(::std::string* name);
350
351 // optional string package = 2;
352 bool has_package() const;
353 void clear_package();
354 static const int kPackageFieldNumber = 2;
355 const ::std::string& package() const;
356 void set_package(const ::std::string& value);
357 void set_package(const char* value);
358 void set_package(const char* value, size_t size);
359 ::std::string* mutable_package();
360 ::std::string* release_package();
361 void set_allocated_package(::std::string* package);
362
363 // repeated string dependency = 3;
364 int dependency_size() const;
365 void clear_dependency();
366 static const int kDependencyFieldNumber = 3;
367 const ::std::string& dependency(int index) const;
368 ::std::string* mutable_dependency(int index);
369 void set_dependency(int index, const ::std::string& value);
370 void set_dependency(int index, const char* value);
371 void set_dependency(int index, const char* value, size_t size);
372 ::std::string* add_dependency();
373 void add_dependency(const ::std::string& value);
374 void add_dependency(const char* value);
375 void add_dependency(const char* value, size_t size);
376 const ::google::protobuf::RepeatedPtrField< ::std::string>& dependency() const;
377 ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_dependency();
378
379 // repeated int32 public_dependency = 10;
380 int public_dependency_size() const;
381 void clear_public_dependency();
382 static const int kPublicDependencyFieldNumber = 10;
383 ::google::protobuf::int32 public_dependency(int index) const;
384 void set_public_dependency(int index, ::google::protobuf::int32 value);
385 void add_public_dependency(::google::protobuf::int32 value);
386 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
387 public_dependency() const;
388 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
389 mutable_public_dependency();
390
391 // repeated int32 weak_dependency = 11;
392 int weak_dependency_size() const;
393 void clear_weak_dependency();
394 static const int kWeakDependencyFieldNumber = 11;
395 ::google::protobuf::int32 weak_dependency(int index) const;
396 void set_weak_dependency(int index, ::google::protobuf::int32 value);
397 void add_weak_dependency(::google::protobuf::int32 value);
398 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
399 weak_dependency() const;
400 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
401 mutable_weak_dependency();
402
403 // repeated .google.protobuf.DescriptorProto message_type = 4;
404 int message_type_size() const;
405 void clear_message_type();
406 static const int kMessageTypeFieldNumber = 4;
407 const ::google::protobuf::DescriptorProto& message_type(int index) const;
408 ::google::protobuf::DescriptorProto* mutable_message_type(int index);
409 ::google::protobuf::DescriptorProto* add_message_type();
410 ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >*
411 mutable_message_type();
412 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >&
413 message_type() const;
414
415 // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
416 int enum_type_size() const;
417 void clear_enum_type();
418 static const int kEnumTypeFieldNumber = 5;
419 const ::google::protobuf::EnumDescriptorProto& enum_type(int index) const;
420 ::google::protobuf::EnumDescriptorProto* mutable_enum_type(int index);
421 ::google::protobuf::EnumDescriptorProto* add_enum_type();
422 ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >*
423 mutable_enum_type();
424 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >&
425 enum_type() const;
426
427 // repeated .google.protobuf.ServiceDescriptorProto service = 6;
428 int service_size() const;
429 void clear_service();
430 static const int kServiceFieldNumber = 6;
431 const ::google::protobuf::ServiceDescriptorProto& service(int index) const;
432 ::google::protobuf::ServiceDescriptorProto* mutable_service(int index);
433 ::google::protobuf::ServiceDescriptorProto* add_service();
434 ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >*
435 mutable_service();
436 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >&
437 service() const;
438
439 // repeated .google.protobuf.FieldDescriptorProto extension = 7;
440 int extension_size() const;
441 void clear_extension();
442 static const int kExtensionFieldNumber = 7;
443 const ::google::protobuf::FieldDescriptorProto& extension(int index) const;
444 ::google::protobuf::FieldDescriptorProto* mutable_extension(int index);
445 ::google::protobuf::FieldDescriptorProto* add_extension();
446 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
447 mutable_extension();
448 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
449 extension() const;
450
451 // optional .google.protobuf.FileOptions options = 8;
452 bool has_options() const;
453 void clear_options();
454 static const int kOptionsFieldNumber = 8;
455 const ::google::protobuf::FileOptions& options() const;
456 ::google::protobuf::FileOptions* mutable_options();
457 ::google::protobuf::FileOptions* release_options();
458 void set_allocated_options(::google::protobuf::FileOptions* options);
459
460 // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
461 bool has_source_code_info() const;
462 void clear_source_code_info();
463 static const int kSourceCodeInfoFieldNumber = 9;
464 const ::google::protobuf::SourceCodeInfo& source_code_info() const;
465 ::google::protobuf::SourceCodeInfo* mutable_source_code_info();
466 ::google::protobuf::SourceCodeInfo* release_source_code_info();
467 void set_allocated_source_code_info(::google::protobuf::SourceCodeInfo* source_code_info);
468
469 // optional string syntax = 12;
470 bool has_syntax() const;
471 void clear_syntax();
472 static const int kSyntaxFieldNumber = 12;
473 const ::std::string& syntax() const;
474 void set_syntax(const ::std::string& value);
475 void set_syntax(const char* value);
476 void set_syntax(const char* value, size_t size);
477 ::std::string* mutable_syntax();
478 ::std::string* release_syntax();
479 void set_allocated_syntax(::std::string* syntax);
480
481 // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorProto)
482 private:
483 inline void set_has_name();
484 inline void clear_has_name();
485 inline void set_has_package();
486 inline void clear_has_package();
487 inline void set_has_options();
488 inline void clear_has_options();
489 inline void set_has_source_code_info();
490 inline void clear_has_source_code_info();
491 inline void set_has_syntax();
492 inline void clear_has_syntax();
493
494 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
495 ::google::protobuf::uint32 _has_bits_[1];
496 mutable int _cached_size_;
497 ::google::protobuf::internal::ArenaStringPtr name_;
498 ::google::protobuf::internal::ArenaStringPtr package_;
499 ::google::protobuf::RepeatedPtrField< ::std::string> dependency_;
500 ::google::protobuf::RepeatedField< ::google::protobuf::int32 > public_dependency_;
501 ::google::protobuf::RepeatedField< ::google::protobuf::int32 > weak_dependency_;
502 ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto > message_type_;
503 ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto > enum_type_;
504 ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto > service_;
505 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto > extension_;
506 ::google::protobuf::FileOptions* options_;
507 ::google::protobuf::SourceCodeInfo* source_code_info_;
508 ::google::protobuf::internal::ArenaStringPtr syntax_;
509 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
510 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
511 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
512
513 void InitAsDefaultInstance();
514 static FileDescriptorProto* default_instance_;
515 };
516 // -------------------------------------------------------------------
517
518 class LIBPROTOBUF_EXPORT DescriptorProto_ExtensionRange : public ::google::protobuf::Message {
519 public:
520 DescriptorProto_ExtensionRange();
521 virtual ~DescriptorProto_ExtensionRange();
522
523 DescriptorProto_ExtensionRange(const DescriptorProto_ExtensionRange& from);
524
525 inline DescriptorProto_ExtensionRange& operator=(const DescriptorProto_ExtensionRange& from) {
526 CopyFrom(from);
527 return *this;
528 }
529
530 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
531 return _internal_metadata_.unknown_fields();
532 }
533
534 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
535 return _internal_metadata_.mutable_unknown_fields();
536 }
537
538 static const ::google::protobuf::Descriptor* descriptor();
539 static const DescriptorProto_ExtensionRange& default_instance();
540
541 void Swap(DescriptorProto_ExtensionRange* other);
542
543 // implements Message ----------------------------------------------
544
545 inline DescriptorProto_ExtensionRange* New() const { return New(NULL); }
546
547 DescriptorProto_ExtensionRange* New(::google::protobuf::Arena* arena) const;
548 void CopyFrom(const ::google::protobuf::Message& from);
549 void MergeFrom(const ::google::protobuf::Message& from);
550 void CopyFrom(const DescriptorProto_ExtensionRange& from);
551 void MergeFrom(const DescriptorProto_ExtensionRange& from);
552 void Clear();
553 bool IsInitialized() const;
554
555 int ByteSize() const;
556 bool MergePartialFromCodedStream(
557 ::google::protobuf::io::CodedInputStream* input);
558 void SerializeWithCachedSizes(
559 ::google::protobuf::io::CodedOutputStream* output) const;
560 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
561 int GetCachedSize() const { return _cached_size_; }
562 private:
563 void SharedCtor();
564 void SharedDtor();
565 void SetCachedSize(int size) const;
566 void InternalSwap(DescriptorProto_ExtensionRange* other);
567 private:
568 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
569 return _internal_metadata_.arena();
570 }
571 inline void* MaybeArenaPtr() const {
572 return _internal_metadata_.raw_arena_ptr();
573 }
574 public:
575
576 ::google::protobuf::Metadata GetMetadata() const;
577
578 // nested types ----------------------------------------------------
579
580 // accessors -------------------------------------------------------
581
582 // optional int32 start = 1;
583 bool has_start() const;
584 void clear_start();
585 static const int kStartFieldNumber = 1;
586 ::google::protobuf::int32 start() const;
587 void set_start(::google::protobuf::int32 value);
588
589 // optional int32 end = 2;
590 bool has_end() const;
591 void clear_end();
592 static const int kEndFieldNumber = 2;
593 ::google::protobuf::int32 end() const;
594 void set_end(::google::protobuf::int32 value);
595
596 // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto.ExtensionRange)
597 private:
598 inline void set_has_start();
599 inline void clear_has_start();
600 inline void set_has_end();
601 inline void clear_has_end();
602
603 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
604 ::google::protobuf::uint32 _has_bits_[1];
605 mutable int _cached_size_;
606 ::google::protobuf::int32 start_;
607 ::google::protobuf::int32 end_;
608 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
609 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
610 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
611
612 void InitAsDefaultInstance();
613 static DescriptorProto_ExtensionRange* default_instance_;
614 };
615 // -------------------------------------------------------------------
616
617 class LIBPROTOBUF_EXPORT DescriptorProto_ReservedRange : public ::google::protobuf::Message {
618 public:
619 DescriptorProto_ReservedRange();
620 virtual ~DescriptorProto_ReservedRange();
621
622 DescriptorProto_ReservedRange(const DescriptorProto_ReservedRange& from);
623
624 inline DescriptorProto_ReservedRange& operator=(const DescriptorProto_ReservedRange& from) {
625 CopyFrom(from);
626 return *this;
627 }
628
629 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
630 return _internal_metadata_.unknown_fields();
631 }
632
633 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
634 return _internal_metadata_.mutable_unknown_fields();
635 }
636
637 static const ::google::protobuf::Descriptor* descriptor();
638 static const DescriptorProto_ReservedRange& default_instance();
639
640 void Swap(DescriptorProto_ReservedRange* other);
641
642 // implements Message ----------------------------------------------
643
644 inline DescriptorProto_ReservedRange* New() const { return New(NULL); }
645
646 DescriptorProto_ReservedRange* New(::google::protobuf::Arena* arena) const;
647 void CopyFrom(const ::google::protobuf::Message& from);
648 void MergeFrom(const ::google::protobuf::Message& from);
649 void CopyFrom(const DescriptorProto_ReservedRange& from);
650 void MergeFrom(const DescriptorProto_ReservedRange& from);
651 void Clear();
652 bool IsInitialized() const;
653
654 int ByteSize() const;
655 bool MergePartialFromCodedStream(
656 ::google::protobuf::io::CodedInputStream* input);
657 void SerializeWithCachedSizes(
658 ::google::protobuf::io::CodedOutputStream* output) const;
659 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
660 int GetCachedSize() const { return _cached_size_; }
661 private:
662 void SharedCtor();
663 void SharedDtor();
664 void SetCachedSize(int size) const;
665 void InternalSwap(DescriptorProto_ReservedRange* other);
666 private:
667 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
668 return _internal_metadata_.arena();
669 }
670 inline void* MaybeArenaPtr() const {
671 return _internal_metadata_.raw_arena_ptr();
672 }
673 public:
674
675 ::google::protobuf::Metadata GetMetadata() const;
676
677 // nested types ----------------------------------------------------
678
679 // accessors -------------------------------------------------------
680
681 // optional int32 start = 1;
682 bool has_start() const;
683 void clear_start();
684 static const int kStartFieldNumber = 1;
685 ::google::protobuf::int32 start() const;
686 void set_start(::google::protobuf::int32 value);
687
688 // optional int32 end = 2;
689 bool has_end() const;
690 void clear_end();
691 static const int kEndFieldNumber = 2;
692 ::google::protobuf::int32 end() const;
693 void set_end(::google::protobuf::int32 value);
694
695 // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto.ReservedRange)
696 private:
697 inline void set_has_start();
698 inline void clear_has_start();
699 inline void set_has_end();
700 inline void clear_has_end();
701
702 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
703 ::google::protobuf::uint32 _has_bits_[1];
704 mutable int _cached_size_;
705 ::google::protobuf::int32 start_;
706 ::google::protobuf::int32 end_;
707 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
708 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
709 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
710
711 void InitAsDefaultInstance();
712 static DescriptorProto_ReservedRange* default_instance_;
713 };
714 // -------------------------------------------------------------------
715
716 class LIBPROTOBUF_EXPORT DescriptorProto : public ::google::protobuf::Message {
717 public:
718 DescriptorProto();
719 virtual ~DescriptorProto();
720
721 DescriptorProto(const DescriptorProto& from);
722
723 inline DescriptorProto& operator=(const DescriptorProto& from) {
724 CopyFrom(from);
725 return *this;
726 }
727
728 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
729 return _internal_metadata_.unknown_fields();
730 }
731
732 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
733 return _internal_metadata_.mutable_unknown_fields();
734 }
735
736 static const ::google::protobuf::Descriptor* descriptor();
737 static const DescriptorProto& default_instance();
738
739 void Swap(DescriptorProto* other);
740
741 // implements Message ----------------------------------------------
742
743 inline DescriptorProto* New() const { return New(NULL); }
744
745 DescriptorProto* New(::google::protobuf::Arena* arena) const;
746 void CopyFrom(const ::google::protobuf::Message& from);
747 void MergeFrom(const ::google::protobuf::Message& from);
748 void CopyFrom(const DescriptorProto& from);
749 void MergeFrom(const DescriptorProto& from);
750 void Clear();
751 bool IsInitialized() const;
752
753 int ByteSize() const;
754 bool MergePartialFromCodedStream(
755 ::google::protobuf::io::CodedInputStream* input);
756 void SerializeWithCachedSizes(
757 ::google::protobuf::io::CodedOutputStream* output) const;
758 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
759 int GetCachedSize() const { return _cached_size_; }
760 private:
761 void SharedCtor();
762 void SharedDtor();
763 void SetCachedSize(int size) const;
764 void InternalSwap(DescriptorProto* other);
765 private:
766 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
767 return _internal_metadata_.arena();
768 }
769 inline void* MaybeArenaPtr() const {
770 return _internal_metadata_.raw_arena_ptr();
771 }
772 public:
773
774 ::google::protobuf::Metadata GetMetadata() const;
775
776 // nested types ----------------------------------------------------
777
778 typedef DescriptorProto_ExtensionRange ExtensionRange;
779 typedef DescriptorProto_ReservedRange ReservedRange;
780
781 // accessors -------------------------------------------------------
782
783 // optional string name = 1;
784 bool has_name() const;
785 void clear_name();
786 static const int kNameFieldNumber = 1;
787 const ::std::string& name() const;
788 void set_name(const ::std::string& value);
789 void set_name(const char* value);
790 void set_name(const char* value, size_t size);
791 ::std::string* mutable_name();
792 ::std::string* release_name();
793 void set_allocated_name(::std::string* name);
794
795 // repeated .google.protobuf.FieldDescriptorProto field = 2;
796 int field_size() const;
797 void clear_field();
798 static const int kFieldFieldNumber = 2;
799 const ::google::protobuf::FieldDescriptorProto& field(int index) const;
800 ::google::protobuf::FieldDescriptorProto* mutable_field(int index);
801 ::google::protobuf::FieldDescriptorProto* add_field();
802 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
803 mutable_field();
804 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
805 field() const;
806
807 // repeated .google.protobuf.FieldDescriptorProto extension = 6;
808 int extension_size() const;
809 void clear_extension();
810 static const int kExtensionFieldNumber = 6;
811 const ::google::protobuf::FieldDescriptorProto& extension(int index) const;
812 ::google::protobuf::FieldDescriptorProto* mutable_extension(int index);
813 ::google::protobuf::FieldDescriptorProto* add_extension();
814 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
815 mutable_extension();
816 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
817 extension() const;
818
819 // repeated .google.protobuf.DescriptorProto nested_type = 3;
820 int nested_type_size() const;
821 void clear_nested_type();
822 static const int kNestedTypeFieldNumber = 3;
823 const ::google::protobuf::DescriptorProto& nested_type(int index) const;
824 ::google::protobuf::DescriptorProto* mutable_nested_type(int index);
825 ::google::protobuf::DescriptorProto* add_nested_type();
826 ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >*
827 mutable_nested_type();
828 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >&
829 nested_type() const;
830
831 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
832 int enum_type_size() const;
833 void clear_enum_type();
834 static const int kEnumTypeFieldNumber = 4;
835 const ::google::protobuf::EnumDescriptorProto& enum_type(int index) const;
836 ::google::protobuf::EnumDescriptorProto* mutable_enum_type(int index);
837 ::google::protobuf::EnumDescriptorProto* add_enum_type();
838 ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >*
839 mutable_enum_type();
840 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >&
841 enum_type() const;
842
843 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
844 int extension_range_size() const;
845 void clear_extension_range();
846 static const int kExtensionRangeFieldNumber = 5;
847 const ::google::protobuf::DescriptorProto_ExtensionRange& extension_range(int index) const;
848 ::google::protobuf::DescriptorProto_ExtensionRange* mutable_extension_range(int index);
849 ::google::protobuf::DescriptorProto_ExtensionRange* add_extension_range();
850 ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >*
851 mutable_extension_range();
852 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >&
853 extension_range() const;
854
855 // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
856 int oneof_decl_size() const;
857 void clear_oneof_decl();
858 static const int kOneofDeclFieldNumber = 8;
859 const ::google::protobuf::OneofDescriptorProto& oneof_decl(int index) const;
860 ::google::protobuf::OneofDescriptorProto* mutable_oneof_decl(int index);
861 ::google::protobuf::OneofDescriptorProto* add_oneof_decl();
862 ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorProto >*
863 mutable_oneof_decl();
864 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorProto >&
865 oneof_decl() const;
866
867 // optional .google.protobuf.MessageOptions options = 7;
868 bool has_options() const;
869 void clear_options();
870 static const int kOptionsFieldNumber = 7;
871 const ::google::protobuf::MessageOptions& options() const;
872 ::google::protobuf::MessageOptions* mutable_options();
873 ::google::protobuf::MessageOptions* release_options();
874 void set_allocated_options(::google::protobuf::MessageOptions* options);
875
876 // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
877 int reserved_range_size() const;
878 void clear_reserved_range();
879 static const int kReservedRangeFieldNumber = 9;
880 const ::google::protobuf::DescriptorProto_ReservedRange& reserved_range(int index) const;
881 ::google::protobuf::DescriptorProto_ReservedRange* mutable_reserved_range(int index);
882 ::google::protobuf::DescriptorProto_ReservedRange* add_reserved_range();
883 ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ReservedRange >*
884 mutable_reserved_range();
885 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ReservedRange >&
886 reserved_range() const;
887
888 // repeated string reserved_name = 10;
889 int reserved_name_size() const;
890 void clear_reserved_name();
891 static const int kReservedNameFieldNumber = 10;
892 const ::std::string& reserved_name(int index) const;
893 ::std::string* mutable_reserved_name(int index);
894 void set_reserved_name(int index, const ::std::string& value);
895 void set_reserved_name(int index, const char* value);
896 void set_reserved_name(int index, const char* value, size_t size);
897 ::std::string* add_reserved_name();
898 void add_reserved_name(const ::std::string& value);
899 void add_reserved_name(const char* value);
900 void add_reserved_name(const char* value, size_t size);
901 const ::google::protobuf::RepeatedPtrField< ::std::string>& reserved_name() const;
902 ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_reserved_name();
903
904 // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto)
905 private:
906 inline void set_has_name();
907 inline void clear_has_name();
908 inline void set_has_options();
909 inline void clear_has_options();
910
911 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
912 ::google::protobuf::uint32 _has_bits_[1];
913 mutable int _cached_size_;
914 ::google::protobuf::internal::ArenaStringPtr name_;
915 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto > field_;
916 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto > extension_;
917 ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto > nested_type_;
918 ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto > enum_type_;
919 ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange > extension_range_;
920 ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorProto > oneof_decl_;
921 ::google::protobuf::MessageOptions* options_;
922 ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ReservedRange > reserved_range_;
923 ::google::protobuf::RepeatedPtrField< ::std::string> reserved_name_;
924 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
925 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
926 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
927
928 void InitAsDefaultInstance();
929 static DescriptorProto* default_instance_;
930 };
931 // -------------------------------------------------------------------
932
933 class LIBPROTOBUF_EXPORT FieldDescriptorProto : public ::google::protobuf::Message {
934 public:
935 FieldDescriptorProto();
936 virtual ~FieldDescriptorProto();
937
938 FieldDescriptorProto(const FieldDescriptorProto& from);
939
940 inline FieldDescriptorProto& operator=(const FieldDescriptorProto& from) {
941 CopyFrom(from);
942 return *this;
943 }
944
945 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
946 return _internal_metadata_.unknown_fields();
947 }
948
949 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
950 return _internal_metadata_.mutable_unknown_fields();
951 }
952
953 static const ::google::protobuf::Descriptor* descriptor();
954 static const FieldDescriptorProto& default_instance();
955
956 void Swap(FieldDescriptorProto* other);
957
958 // implements Message ----------------------------------------------
959
960 inline FieldDescriptorProto* New() const { return New(NULL); }
961
962 FieldDescriptorProto* New(::google::protobuf::Arena* arena) const;
963 void CopyFrom(const ::google::protobuf::Message& from);
964 void MergeFrom(const ::google::protobuf::Message& from);
965 void CopyFrom(const FieldDescriptorProto& from);
966 void MergeFrom(const FieldDescriptorProto& from);
967 void Clear();
968 bool IsInitialized() const;
969
970 int ByteSize() const;
971 bool MergePartialFromCodedStream(
972 ::google::protobuf::io::CodedInputStream* input);
973 void SerializeWithCachedSizes(
974 ::google::protobuf::io::CodedOutputStream* output) const;
975 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
976 int GetCachedSize() const { return _cached_size_; }
977 private:
978 void SharedCtor();
979 void SharedDtor();
980 void SetCachedSize(int size) const;
981 void InternalSwap(FieldDescriptorProto* other);
982 private:
983 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
984 return _internal_metadata_.arena();
985 }
986 inline void* MaybeArenaPtr() const {
987 return _internal_metadata_.raw_arena_ptr();
988 }
989 public:
990
991 ::google::protobuf::Metadata GetMetadata() const;
992
993 // nested types ----------------------------------------------------
994
995 typedef FieldDescriptorProto_Type Type;
996 static const Type TYPE_DOUBLE =
997 FieldDescriptorProto_Type_TYPE_DOUBLE;
998 static const Type TYPE_FLOAT =
999 FieldDescriptorProto_Type_TYPE_FLOAT;
1000 static const Type TYPE_INT64 =
1001 FieldDescriptorProto_Type_TYPE_INT64;
1002 static const Type TYPE_UINT64 =
1003 FieldDescriptorProto_Type_TYPE_UINT64;
1004 static const Type TYPE_INT32 =
1005 FieldDescriptorProto_Type_TYPE_INT32;
1006 static const Type TYPE_FIXED64 =
1007 FieldDescriptorProto_Type_TYPE_FIXED64;
1008 static const Type TYPE_FIXED32 =
1009 FieldDescriptorProto_Type_TYPE_FIXED32;
1010 static const Type TYPE_BOOL =
1011 FieldDescriptorProto_Type_TYPE_BOOL;
1012 static const Type TYPE_STRING =
1013 FieldDescriptorProto_Type_TYPE_STRING;
1014 static const Type TYPE_GROUP =
1015 FieldDescriptorProto_Type_TYPE_GROUP;
1016 static const Type TYPE_MESSAGE =
1017 FieldDescriptorProto_Type_TYPE_MESSAGE;
1018 static const Type TYPE_BYTES =
1019 FieldDescriptorProto_Type_TYPE_BYTES;
1020 static const Type TYPE_UINT32 =
1021 FieldDescriptorProto_Type_TYPE_UINT32;
1022 static const Type TYPE_ENUM =
1023 FieldDescriptorProto_Type_TYPE_ENUM;
1024 static const Type TYPE_SFIXED32 =
1025 FieldDescriptorProto_Type_TYPE_SFIXED32;
1026 static const Type TYPE_SFIXED64 =
1027 FieldDescriptorProto_Type_TYPE_SFIXED64;
1028 static const Type TYPE_SINT32 =
1029 FieldDescriptorProto_Type_TYPE_SINT32;
1030 static const Type TYPE_SINT64 =
1031 FieldDescriptorProto_Type_TYPE_SINT64;
1032 static inline bool Type_IsValid(int value) {
1033 return FieldDescriptorProto_Type_IsValid(value);
1034 }
1035 static const Type Type_MIN =
1036 FieldDescriptorProto_Type_Type_MIN;
1037 static const Type Type_MAX =
1038 FieldDescriptorProto_Type_Type_MAX;
1039 static const int Type_ARRAYSIZE =
1040 FieldDescriptorProto_Type_Type_ARRAYSIZE;
1041 static inline const ::google::protobuf::EnumDescriptor*
1042 Type_descriptor() {
1043 return FieldDescriptorProto_Type_descriptor();
1044 }
1045 static inline const ::std::string& Type_Name(Type value) {
1046 return FieldDescriptorProto_Type_Name(value);
1047 }
1048 static inline bool Type_Parse(const ::std::string& name,
1049 Type* value) {
1050 return FieldDescriptorProto_Type_Parse(name, value);
1051 }
1052
1053 typedef FieldDescriptorProto_Label Label;
1054 static const Label LABEL_OPTIONAL =
1055 FieldDescriptorProto_Label_LABEL_OPTIONAL;
1056 static const Label LABEL_REQUIRED =
1057 FieldDescriptorProto_Label_LABEL_REQUIRED;
1058 static const Label LABEL_REPEATED =
1059 FieldDescriptorProto_Label_LABEL_REPEATED;
1060 static inline bool Label_IsValid(int value) {
1061 return FieldDescriptorProto_Label_IsValid(value);
1062 }
1063 static const Label Label_MIN =
1064 FieldDescriptorProto_Label_Label_MIN;
1065 static const Label Label_MAX =
1066 FieldDescriptorProto_Label_Label_MAX;
1067 static const int Label_ARRAYSIZE =
1068 FieldDescriptorProto_Label_Label_ARRAYSIZE;
1069 static inline const ::google::protobuf::EnumDescriptor*
1070 Label_descriptor() {
1071 return FieldDescriptorProto_Label_descriptor();
1072 }
1073 static inline const ::std::string& Label_Name(Label value) {
1074 return FieldDescriptorProto_Label_Name(value);
1075 }
1076 static inline bool Label_Parse(const ::std::string& name,
1077 Label* value) {
1078 return FieldDescriptorProto_Label_Parse(name, value);
1079 }
1080
1081 // accessors -------------------------------------------------------
1082
1083 // optional string name = 1;
1084 bool has_name() const;
1085 void clear_name();
1086 static const int kNameFieldNumber = 1;
1087 const ::std::string& name() const;
1088 void set_name(const ::std::string& value);
1089 void set_name(const char* value);
1090 void set_name(const char* value, size_t size);
1091 ::std::string* mutable_name();
1092 ::std::string* release_name();
1093 void set_allocated_name(::std::string* name);
1094
1095 // optional int32 number = 3;
1096 bool has_number() const;
1097 void clear_number();
1098 static const int kNumberFieldNumber = 3;
1099 ::google::protobuf::int32 number() const;
1100 void set_number(::google::protobuf::int32 value);
1101
1102 // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
1103 bool has_label() const;
1104 void clear_label();
1105 static const int kLabelFieldNumber = 4;
1106 ::google::protobuf::FieldDescriptorProto_Label label() const;
1107 void set_label(::google::protobuf::FieldDescriptorProto_Label value);
1108
1109 // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
1110 bool has_type() const;
1111 void clear_type();
1112 static const int kTypeFieldNumber = 5;
1113 ::google::protobuf::FieldDescriptorProto_Type type() const;
1114 void set_type(::google::protobuf::FieldDescriptorProto_Type value);
1115
1116 // optional string type_name = 6;
1117 bool has_type_name() const;
1118 void clear_type_name();
1119 static const int kTypeNameFieldNumber = 6;
1120 const ::std::string& type_name() const;
1121 void set_type_name(const ::std::string& value);
1122 void set_type_name(const char* value);
1123 void set_type_name(const char* value, size_t size);
1124 ::std::string* mutable_type_name();
1125 ::std::string* release_type_name();
1126 void set_allocated_type_name(::std::string* type_name);
1127
1128 // optional string extendee = 2;
1129 bool has_extendee() const;
1130 void clear_extendee();
1131 static const int kExtendeeFieldNumber = 2;
1132 const ::std::string& extendee() const;
1133 void set_extendee(const ::std::string& value);
1134 void set_extendee(const char* value);
1135 void set_extendee(const char* value, size_t size);
1136 ::std::string* mutable_extendee();
1137 ::std::string* release_extendee();
1138 void set_allocated_extendee(::std::string* extendee);
1139
1140 // optional string default_value = 7;
1141 bool has_default_value() const;
1142 void clear_default_value();
1143 static const int kDefaultValueFieldNumber = 7;
1144 const ::std::string& default_value() const;
1145 void set_default_value(const ::std::string& value);
1146 void set_default_value(const char* value);
1147 void set_default_value(const char* value, size_t size);
1148 ::std::string* mutable_default_value();
1149 ::std::string* release_default_value();
1150 void set_allocated_default_value(::std::string* default_value);
1151
1152 // optional int32 oneof_index = 9;
1153 bool has_oneof_index() const;
1154 void clear_oneof_index();
1155 static const int kOneofIndexFieldNumber = 9;
1156 ::google::protobuf::int32 oneof_index() const;
1157 void set_oneof_index(::google::protobuf::int32 value);
1158
1159 // optional string json_name = 10;
1160 bool has_json_name() const;
1161 void clear_json_name();
1162 static const int kJsonNameFieldNumber = 10;
1163 const ::std::string& json_name() const;
1164 void set_json_name(const ::std::string& value);
1165 void set_json_name(const char* value);
1166 void set_json_name(const char* value, size_t size);
1167 ::std::string* mutable_json_name();
1168 ::std::string* release_json_name();
1169 void set_allocated_json_name(::std::string* json_name);
1170
1171 // optional .google.protobuf.FieldOptions options = 8;
1172 bool has_options() const;
1173 void clear_options();
1174 static const int kOptionsFieldNumber = 8;
1175 const ::google::protobuf::FieldOptions& options() const;
1176 ::google::protobuf::FieldOptions* mutable_options();
1177 ::google::protobuf::FieldOptions* release_options();
1178 void set_allocated_options(::google::protobuf::FieldOptions* options);
1179
1180 // @@protoc_insertion_point(class_scope:google.protobuf.FieldDescriptorProto)
1181 private:
1182 inline void set_has_name();
1183 inline void clear_has_name();
1184 inline void set_has_number();
1185 inline void clear_has_number();
1186 inline void set_has_label();
1187 inline void clear_has_label();
1188 inline void set_has_type();
1189 inline void clear_has_type();
1190 inline void set_has_type_name();
1191 inline void clear_has_type_name();
1192 inline void set_has_extendee();
1193 inline void clear_has_extendee();
1194 inline void set_has_default_value();
1195 inline void clear_has_default_value();
1196 inline void set_has_oneof_index();
1197 inline void clear_has_oneof_index();
1198 inline void set_has_json_name();
1199 inline void clear_has_json_name();
1200 inline void set_has_options();
1201 inline void clear_has_options();
1202
1203 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1204 ::google::protobuf::uint32 _has_bits_[1];
1205 mutable int _cached_size_;
1206 ::google::protobuf::internal::ArenaStringPtr name_;
1207 ::google::protobuf::int32 number_;
1208 int label_;
1209 ::google::protobuf::internal::ArenaStringPtr type_name_;
1210 ::google::protobuf::internal::ArenaStringPtr extendee_;
1211 int type_;
1212 ::google::protobuf::int32 oneof_index_;
1213 ::google::protobuf::internal::ArenaStringPtr default_value_;
1214 ::google::protobuf::internal::ArenaStringPtr json_name_;
1215 ::google::protobuf::FieldOptions* options_;
1216 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
1217 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
1218 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
1219
1220 void InitAsDefaultInstance();
1221 static FieldDescriptorProto* default_instance_;
1222 };
1223 // -------------------------------------------------------------------
1224
1225 class LIBPROTOBUF_EXPORT OneofDescriptorProto : public ::google::protobuf::Message {
1226 public:
1227 OneofDescriptorProto();
1228 virtual ~OneofDescriptorProto();
1229
1230 OneofDescriptorProto(const OneofDescriptorProto& from);
1231
1232 inline OneofDescriptorProto& operator=(const OneofDescriptorProto& from) {
1233 CopyFrom(from);
1234 return *this;
1235 }
1236
1237 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1238 return _internal_metadata_.unknown_fields();
1239 }
1240
1241 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1242 return _internal_metadata_.mutable_unknown_fields();
1243 }
1244
1245 static const ::google::protobuf::Descriptor* descriptor();
1246 static const OneofDescriptorProto& default_instance();
1247
1248 void Swap(OneofDescriptorProto* other);
1249
1250 // implements Message ----------------------------------------------
1251
1252 inline OneofDescriptorProto* New() const { return New(NULL); }
1253
1254 OneofDescriptorProto* New(::google::protobuf::Arena* arena) const;
1255 void CopyFrom(const ::google::protobuf::Message& from);
1256 void MergeFrom(const ::google::protobuf::Message& from);
1257 void CopyFrom(const OneofDescriptorProto& from);
1258 void MergeFrom(const OneofDescriptorProto& from);
1259 void Clear();
1260 bool IsInitialized() const;
1261
1262 int ByteSize() const;
1263 bool MergePartialFromCodedStream(
1264 ::google::protobuf::io::CodedInputStream* input);
1265 void SerializeWithCachedSizes(
1266 ::google::protobuf::io::CodedOutputStream* output) const;
1267 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1268 int GetCachedSize() const { return _cached_size_; }
1269 private:
1270 void SharedCtor();
1271 void SharedDtor();
1272 void SetCachedSize(int size) const;
1273 void InternalSwap(OneofDescriptorProto* other);
1274 private:
1275 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
1276 return _internal_metadata_.arena();
1277 }
1278 inline void* MaybeArenaPtr() const {
1279 return _internal_metadata_.raw_arena_ptr();
1280 }
1281 public:
1282
1283 ::google::protobuf::Metadata GetMetadata() const;
1284
1285 // nested types ----------------------------------------------------
1286
1287 // accessors -------------------------------------------------------
1288
1289 // optional string name = 1;
1290 bool has_name() const;
1291 void clear_name();
1292 static const int kNameFieldNumber = 1;
1293 const ::std::string& name() const;
1294 void set_name(const ::std::string& value);
1295 void set_name(const char* value);
1296 void set_name(const char* value, size_t size);
1297 ::std::string* mutable_name();
1298 ::std::string* release_name();
1299 void set_allocated_name(::std::string* name);
1300
1301 // @@protoc_insertion_point(class_scope:google.protobuf.OneofDescriptorProto)
1302 private:
1303 inline void set_has_name();
1304 inline void clear_has_name();
1305
1306 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1307 ::google::protobuf::uint32 _has_bits_[1];
1308 mutable int _cached_size_;
1309 ::google::protobuf::internal::ArenaStringPtr name_;
1310 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
1311 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
1312 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
1313
1314 void InitAsDefaultInstance();
1315 static OneofDescriptorProto* default_instance_;
1316 };
1317 // -------------------------------------------------------------------
1318
1319 class LIBPROTOBUF_EXPORT EnumDescriptorProto : public ::google::protobuf::Message {
1320 public:
1321 EnumDescriptorProto();
1322 virtual ~EnumDescriptorProto();
1323
1324 EnumDescriptorProto(const EnumDescriptorProto& from);
1325
1326 inline EnumDescriptorProto& operator=(const EnumDescriptorProto& from) {
1327 CopyFrom(from);
1328 return *this;
1329 }
1330
1331 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1332 return _internal_metadata_.unknown_fields();
1333 }
1334
1335 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1336 return _internal_metadata_.mutable_unknown_fields();
1337 }
1338
1339 static const ::google::protobuf::Descriptor* descriptor();
1340 static const EnumDescriptorProto& default_instance();
1341
1342 void Swap(EnumDescriptorProto* other);
1343
1344 // implements Message ----------------------------------------------
1345
1346 inline EnumDescriptorProto* New() const { return New(NULL); }
1347
1348 EnumDescriptorProto* New(::google::protobuf::Arena* arena) const;
1349 void CopyFrom(const ::google::protobuf::Message& from);
1350 void MergeFrom(const ::google::protobuf::Message& from);
1351 void CopyFrom(const EnumDescriptorProto& from);
1352 void MergeFrom(const EnumDescriptorProto& from);
1353 void Clear();
1354 bool IsInitialized() const;
1355
1356 int ByteSize() const;
1357 bool MergePartialFromCodedStream(
1358 ::google::protobuf::io::CodedInputStream* input);
1359 void SerializeWithCachedSizes(
1360 ::google::protobuf::io::CodedOutputStream* output) const;
1361 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1362 int GetCachedSize() const { return _cached_size_; }
1363 private:
1364 void SharedCtor();
1365 void SharedDtor();
1366 void SetCachedSize(int size) const;
1367 void InternalSwap(EnumDescriptorProto* other);
1368 private:
1369 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
1370 return _internal_metadata_.arena();
1371 }
1372 inline void* MaybeArenaPtr() const {
1373 return _internal_metadata_.raw_arena_ptr();
1374 }
1375 public:
1376
1377 ::google::protobuf::Metadata GetMetadata() const;
1378
1379 // nested types ----------------------------------------------------
1380
1381 // accessors -------------------------------------------------------
1382
1383 // optional string name = 1;
1384 bool has_name() const;
1385 void clear_name();
1386 static const int kNameFieldNumber = 1;
1387 const ::std::string& name() const;
1388 void set_name(const ::std::string& value);
1389 void set_name(const char* value);
1390 void set_name(const char* value, size_t size);
1391 ::std::string* mutable_name();
1392 ::std::string* release_name();
1393 void set_allocated_name(::std::string* name);
1394
1395 // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
1396 int value_size() const;
1397 void clear_value();
1398 static const int kValueFieldNumber = 2;
1399 const ::google::protobuf::EnumValueDescriptorProto& value(int index) const;
1400 ::google::protobuf::EnumValueDescriptorProto* mutable_value(int index);
1401 ::google::protobuf::EnumValueDescriptorProto* add_value();
1402 ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >*
1403 mutable_value();
1404 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >&
1405 value() const;
1406
1407 // optional .google.protobuf.EnumOptions options = 3;
1408 bool has_options() const;
1409 void clear_options();
1410 static const int kOptionsFieldNumber = 3;
1411 const ::google::protobuf::EnumOptions& options() const;
1412 ::google::protobuf::EnumOptions* mutable_options();
1413 ::google::protobuf::EnumOptions* release_options();
1414 void set_allocated_options(::google::protobuf::EnumOptions* options);
1415
1416 // @@protoc_insertion_point(class_scope:google.protobuf.EnumDescriptorProto)
1417 private:
1418 inline void set_has_name();
1419 inline void clear_has_name();
1420 inline void set_has_options();
1421 inline void clear_has_options();
1422
1423 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1424 ::google::protobuf::uint32 _has_bits_[1];
1425 mutable int _cached_size_;
1426 ::google::protobuf::internal::ArenaStringPtr name_;
1427 ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto > value_;
1428 ::google::protobuf::EnumOptions* options_;
1429 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
1430 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
1431 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
1432
1433 void InitAsDefaultInstance();
1434 static EnumDescriptorProto* default_instance_;
1435 };
1436 // -------------------------------------------------------------------
1437
1438 class LIBPROTOBUF_EXPORT EnumValueDescriptorProto : public ::google::protobuf::Message {
1439 public:
1440 EnumValueDescriptorProto();
1441 virtual ~EnumValueDescriptorProto();
1442
1443 EnumValueDescriptorProto(const EnumValueDescriptorProto& from);
1444
1445 inline EnumValueDescriptorProto& operator=(const EnumValueDescriptorProto& from) {
1446 CopyFrom(from);
1447 return *this;
1448 }
1449
1450 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1451 return _internal_metadata_.unknown_fields();
1452 }
1453
1454 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1455 return _internal_metadata_.mutable_unknown_fields();
1456 }
1457
1458 static const ::google::protobuf::Descriptor* descriptor();
1459 static const EnumValueDescriptorProto& default_instance();
1460
1461 void Swap(EnumValueDescriptorProto* other);
1462
1463 // implements Message ----------------------------------------------
1464
1465 inline EnumValueDescriptorProto* New() const { return New(NULL); }
1466
1467 EnumValueDescriptorProto* New(::google::protobuf::Arena* arena) const;
1468 void CopyFrom(const ::google::protobuf::Message& from);
1469 void MergeFrom(const ::google::protobuf::Message& from);
1470 void CopyFrom(const EnumValueDescriptorProto& from);
1471 void MergeFrom(const EnumValueDescriptorProto& from);
1472 void Clear();
1473 bool IsInitialized() const;
1474
1475 int ByteSize() const;
1476 bool MergePartialFromCodedStream(
1477 ::google::protobuf::io::CodedInputStream* input);
1478 void SerializeWithCachedSizes(
1479 ::google::protobuf::io::CodedOutputStream* output) const;
1480 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1481 int GetCachedSize() const { return _cached_size_; }
1482 private:
1483 void SharedCtor();
1484 void SharedDtor();
1485 void SetCachedSize(int size) const;
1486 void InternalSwap(EnumValueDescriptorProto* other);
1487 private:
1488 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
1489 return _internal_metadata_.arena();
1490 }
1491 inline void* MaybeArenaPtr() const {
1492 return _internal_metadata_.raw_arena_ptr();
1493 }
1494 public:
1495
1496 ::google::protobuf::Metadata GetMetadata() const;
1497
1498 // nested types ----------------------------------------------------
1499
1500 // accessors -------------------------------------------------------
1501
1502 // optional string name = 1;
1503 bool has_name() const;
1504 void clear_name();
1505 static const int kNameFieldNumber = 1;
1506 const ::std::string& name() const;
1507 void set_name(const ::std::string& value);
1508 void set_name(const char* value);
1509 void set_name(const char* value, size_t size);
1510 ::std::string* mutable_name();
1511 ::std::string* release_name();
1512 void set_allocated_name(::std::string* name);
1513
1514 // optional int32 number = 2;
1515 bool has_number() const;
1516 void clear_number();
1517 static const int kNumberFieldNumber = 2;
1518 ::google::protobuf::int32 number() const;
1519 void set_number(::google::protobuf::int32 value);
1520
1521 // optional .google.protobuf.EnumValueOptions options = 3;
1522 bool has_options() const;
1523 void clear_options();
1524 static const int kOptionsFieldNumber = 3;
1525 const ::google::protobuf::EnumValueOptions& options() const;
1526 ::google::protobuf::EnumValueOptions* mutable_options();
1527 ::google::protobuf::EnumValueOptions* release_options();
1528 void set_allocated_options(::google::protobuf::EnumValueOptions* options);
1529
1530 // @@protoc_insertion_point(class_scope:google.protobuf.EnumValueDescriptorProto)
1531 private:
1532 inline void set_has_name();
1533 inline void clear_has_name();
1534 inline void set_has_number();
1535 inline void clear_has_number();
1536 inline void set_has_options();
1537 inline void clear_has_options();
1538
1539 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1540 ::google::protobuf::uint32 _has_bits_[1];
1541 mutable int _cached_size_;
1542 ::google::protobuf::internal::ArenaStringPtr name_;
1543 ::google::protobuf::EnumValueOptions* options_;
1544 ::google::protobuf::int32 number_;
1545 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
1546 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
1547 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
1548
1549 void InitAsDefaultInstance();
1550 static EnumValueDescriptorProto* default_instance_;
1551 };
1552 // -------------------------------------------------------------------
1553
1554 class LIBPROTOBUF_EXPORT ServiceDescriptorProto : public ::google::protobuf::Message {
1555 public:
1556 ServiceDescriptorProto();
1557 virtual ~ServiceDescriptorProto();
1558
1559 ServiceDescriptorProto(const ServiceDescriptorProto& from);
1560
1561 inline ServiceDescriptorProto& operator=(const ServiceDescriptorProto& from) {
1562 CopyFrom(from);
1563 return *this;
1564 }
1565
1566 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1567 return _internal_metadata_.unknown_fields();
1568 }
1569
1570 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1571 return _internal_metadata_.mutable_unknown_fields();
1572 }
1573
1574 static const ::google::protobuf::Descriptor* descriptor();
1575 static const ServiceDescriptorProto& default_instance();
1576
1577 void Swap(ServiceDescriptorProto* other);
1578
1579 // implements Message ----------------------------------------------
1580
1581 inline ServiceDescriptorProto* New() const { return New(NULL); }
1582
1583 ServiceDescriptorProto* New(::google::protobuf::Arena* arena) const;
1584 void CopyFrom(const ::google::protobuf::Message& from);
1585 void MergeFrom(const ::google::protobuf::Message& from);
1586 void CopyFrom(const ServiceDescriptorProto& from);
1587 void MergeFrom(const ServiceDescriptorProto& from);
1588 void Clear();
1589 bool IsInitialized() const;
1590
1591 int ByteSize() const;
1592 bool MergePartialFromCodedStream(
1593 ::google::protobuf::io::CodedInputStream* input);
1594 void SerializeWithCachedSizes(
1595 ::google::protobuf::io::CodedOutputStream* output) const;
1596 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1597 int GetCachedSize() const { return _cached_size_; }
1598 private:
1599 void SharedCtor();
1600 void SharedDtor();
1601 void SetCachedSize(int size) const;
1602 void InternalSwap(ServiceDescriptorProto* other);
1603 private:
1604 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
1605 return _internal_metadata_.arena();
1606 }
1607 inline void* MaybeArenaPtr() const {
1608 return _internal_metadata_.raw_arena_ptr();
1609 }
1610 public:
1611
1612 ::google::protobuf::Metadata GetMetadata() const;
1613
1614 // nested types ----------------------------------------------------
1615
1616 // accessors -------------------------------------------------------
1617
1618 // optional string name = 1;
1619 bool has_name() const;
1620 void clear_name();
1621 static const int kNameFieldNumber = 1;
1622 const ::std::string& name() const;
1623 void set_name(const ::std::string& value);
1624 void set_name(const char* value);
1625 void set_name(const char* value, size_t size);
1626 ::std::string* mutable_name();
1627 ::std::string* release_name();
1628 void set_allocated_name(::std::string* name);
1629
1630 // repeated .google.protobuf.MethodDescriptorProto method = 2;
1631 int method_size() const;
1632 void clear_method();
1633 static const int kMethodFieldNumber = 2;
1634 const ::google::protobuf::MethodDescriptorProto& method(int index) const;
1635 ::google::protobuf::MethodDescriptorProto* mutable_method(int index);
1636 ::google::protobuf::MethodDescriptorProto* add_method();
1637 ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >*
1638 mutable_method();
1639 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >&
1640 method() const;
1641
1642 // optional .google.protobuf.ServiceOptions options = 3;
1643 bool has_options() const;
1644 void clear_options();
1645 static const int kOptionsFieldNumber = 3;
1646 const ::google::protobuf::ServiceOptions& options() const;
1647 ::google::protobuf::ServiceOptions* mutable_options();
1648 ::google::protobuf::ServiceOptions* release_options();
1649 void set_allocated_options(::google::protobuf::ServiceOptions* options);
1650
1651 // @@protoc_insertion_point(class_scope:google.protobuf.ServiceDescriptorProto)
1652 private:
1653 inline void set_has_name();
1654 inline void clear_has_name();
1655 inline void set_has_options();
1656 inline void clear_has_options();
1657
1658 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1659 ::google::protobuf::uint32 _has_bits_[1];
1660 mutable int _cached_size_;
1661 ::google::protobuf::internal::ArenaStringPtr name_;
1662 ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto > method_;
1663 ::google::protobuf::ServiceOptions* options_;
1664 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
1665 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
1666 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
1667
1668 void InitAsDefaultInstance();
1669 static ServiceDescriptorProto* default_instance_;
1670 };
1671 // -------------------------------------------------------------------
1672
1673 class LIBPROTOBUF_EXPORT MethodDescriptorProto : public ::google::protobuf::Message {
1674 public:
1675 MethodDescriptorProto();
1676 virtual ~MethodDescriptorProto();
1677
1678 MethodDescriptorProto(const MethodDescriptorProto& from);
1679
1680 inline MethodDescriptorProto& operator=(const MethodDescriptorProto& from) {
1681 CopyFrom(from);
1682 return *this;
1683 }
1684
1685 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1686 return _internal_metadata_.unknown_fields();
1687 }
1688
1689 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1690 return _internal_metadata_.mutable_unknown_fields();
1691 }
1692
1693 static const ::google::protobuf::Descriptor* descriptor();
1694 static const MethodDescriptorProto& default_instance();
1695
1696 void Swap(MethodDescriptorProto* other);
1697
1698 // implements Message ----------------------------------------------
1699
1700 inline MethodDescriptorProto* New() const { return New(NULL); }
1701
1702 MethodDescriptorProto* New(::google::protobuf::Arena* arena) const;
1703 void CopyFrom(const ::google::protobuf::Message& from);
1704 void MergeFrom(const ::google::protobuf::Message& from);
1705 void CopyFrom(const MethodDescriptorProto& from);
1706 void MergeFrom(const MethodDescriptorProto& from);
1707 void Clear();
1708 bool IsInitialized() const;
1709
1710 int ByteSize() const;
1711 bool MergePartialFromCodedStream(
1712 ::google::protobuf::io::CodedInputStream* input);
1713 void SerializeWithCachedSizes(
1714 ::google::protobuf::io::CodedOutputStream* output) const;
1715 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1716 int GetCachedSize() const { return _cached_size_; }
1717 private:
1718 void SharedCtor();
1719 void SharedDtor();
1720 void SetCachedSize(int size) const;
1721 void InternalSwap(MethodDescriptorProto* other);
1722 private:
1723 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
1724 return _internal_metadata_.arena();
1725 }
1726 inline void* MaybeArenaPtr() const {
1727 return _internal_metadata_.raw_arena_ptr();
1728 }
1729 public:
1730
1731 ::google::protobuf::Metadata GetMetadata() const;
1732
1733 // nested types ----------------------------------------------------
1734
1735 // accessors -------------------------------------------------------
1736
1737 // optional string name = 1;
1738 bool has_name() const;
1739 void clear_name();
1740 static const int kNameFieldNumber = 1;
1741 const ::std::string& name() const;
1742 void set_name(const ::std::string& value);
1743 void set_name(const char* value);
1744 void set_name(const char* value, size_t size);
1745 ::std::string* mutable_name();
1746 ::std::string* release_name();
1747 void set_allocated_name(::std::string* name);
1748
1749 // optional string input_type = 2;
1750 bool has_input_type() const;
1751 void clear_input_type();
1752 static const int kInputTypeFieldNumber = 2;
1753 const ::std::string& input_type() const;
1754 void set_input_type(const ::std::string& value);
1755 void set_input_type(const char* value);
1756 void set_input_type(const char* value, size_t size);
1757 ::std::string* mutable_input_type();
1758 ::std::string* release_input_type();
1759 void set_allocated_input_type(::std::string* input_type);
1760
1761 // optional string output_type = 3;
1762 bool has_output_type() const;
1763 void clear_output_type();
1764 static const int kOutputTypeFieldNumber = 3;
1765 const ::std::string& output_type() const;
1766 void set_output_type(const ::std::string& value);
1767 void set_output_type(const char* value);
1768 void set_output_type(const char* value, size_t size);
1769 ::std::string* mutable_output_type();
1770 ::std::string* release_output_type();
1771 void set_allocated_output_type(::std::string* output_type);
1772
1773 // optional .google.protobuf.MethodOptions options = 4;
1774 bool has_options() const;
1775 void clear_options();
1776 static const int kOptionsFieldNumber = 4;
1777 const ::google::protobuf::MethodOptions& options() const;
1778 ::google::protobuf::MethodOptions* mutable_options();
1779 ::google::protobuf::MethodOptions* release_options();
1780 void set_allocated_options(::google::protobuf::MethodOptions* options);
1781
1782 // optional bool client_streaming = 5 [default = false];
1783 bool has_client_streaming() const;
1784 void clear_client_streaming();
1785 static const int kClientStreamingFieldNumber = 5;
1786 bool client_streaming() const;
1787 void set_client_streaming(bool value);
1788
1789 // optional bool server_streaming = 6 [default = false];
1790 bool has_server_streaming() const;
1791 void clear_server_streaming();
1792 static const int kServerStreamingFieldNumber = 6;
1793 bool server_streaming() const;
1794 void set_server_streaming(bool value);
1795
1796 // @@protoc_insertion_point(class_scope:google.protobuf.MethodDescriptorProto)
1797 private:
1798 inline void set_has_name();
1799 inline void clear_has_name();
1800 inline void set_has_input_type();
1801 inline void clear_has_input_type();
1802 inline void set_has_output_type();
1803 inline void clear_has_output_type();
1804 inline void set_has_options();
1805 inline void clear_has_options();
1806 inline void set_has_client_streaming();
1807 inline void clear_has_client_streaming();
1808 inline void set_has_server_streaming();
1809 inline void clear_has_server_streaming();
1810
1811 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1812 ::google::protobuf::uint32 _has_bits_[1];
1813 mutable int _cached_size_;
1814 ::google::protobuf::internal::ArenaStringPtr name_;
1815 ::google::protobuf::internal::ArenaStringPtr input_type_;
1816 ::google::protobuf::internal::ArenaStringPtr output_type_;
1817 ::google::protobuf::MethodOptions* options_;
1818 bool client_streaming_;
1819 bool server_streaming_;
1820 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
1821 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
1822 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
1823
1824 void InitAsDefaultInstance();
1825 static MethodDescriptorProto* default_instance_;
1826 };
1827 // -------------------------------------------------------------------
1828
1829 class LIBPROTOBUF_EXPORT FileOptions : public ::google::protobuf::Message {
1830 public:
1831 FileOptions();
1832 virtual ~FileOptions();
1833
1834 FileOptions(const FileOptions& from);
1835
1836 inline FileOptions& operator=(const FileOptions& from) {
1837 CopyFrom(from);
1838 return *this;
1839 }
1840
1841 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1842 return _internal_metadata_.unknown_fields();
1843 }
1844
1845 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1846 return _internal_metadata_.mutable_unknown_fields();
1847 }
1848
1849 static const ::google::protobuf::Descriptor* descriptor();
1850 static const FileOptions& default_instance();
1851
1852 void Swap(FileOptions* other);
1853
1854 // implements Message ----------------------------------------------
1855
1856 inline FileOptions* New() const { return New(NULL); }
1857
1858 FileOptions* New(::google::protobuf::Arena* arena) const;
1859 void CopyFrom(const ::google::protobuf::Message& from);
1860 void MergeFrom(const ::google::protobuf::Message& from);
1861 void CopyFrom(const FileOptions& from);
1862 void MergeFrom(const FileOptions& from);
1863 void Clear();
1864 bool IsInitialized() const;
1865
1866 int ByteSize() const;
1867 bool MergePartialFromCodedStream(
1868 ::google::protobuf::io::CodedInputStream* input);
1869 void SerializeWithCachedSizes(
1870 ::google::protobuf::io::CodedOutputStream* output) const;
1871 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1872 int GetCachedSize() const { return _cached_size_; }
1873 private:
1874 void SharedCtor();
1875 void SharedDtor();
1876 void SetCachedSize(int size) const;
1877 void InternalSwap(FileOptions* other);
1878 private:
1879 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
1880 return _internal_metadata_.arena();
1881 }
1882 inline void* MaybeArenaPtr() const {
1883 return _internal_metadata_.raw_arena_ptr();
1884 }
1885 public:
1886
1887 ::google::protobuf::Metadata GetMetadata() const;
1888
1889 // nested types ----------------------------------------------------
1890
1891 typedef FileOptions_OptimizeMode OptimizeMode;
1892 static const OptimizeMode SPEED =
1893 FileOptions_OptimizeMode_SPEED;
1894 static const OptimizeMode CODE_SIZE =
1895 FileOptions_OptimizeMode_CODE_SIZE;
1896 static const OptimizeMode LITE_RUNTIME =
1897 FileOptions_OptimizeMode_LITE_RUNTIME;
1898 static inline bool OptimizeMode_IsValid(int value) {
1899 return FileOptions_OptimizeMode_IsValid(value);
1900 }
1901 static const OptimizeMode OptimizeMode_MIN =
1902 FileOptions_OptimizeMode_OptimizeMode_MIN;
1903 static const OptimizeMode OptimizeMode_MAX =
1904 FileOptions_OptimizeMode_OptimizeMode_MAX;
1905 static const int OptimizeMode_ARRAYSIZE =
1906 FileOptions_OptimizeMode_OptimizeMode_ARRAYSIZE;
1907 static inline const ::google::protobuf::EnumDescriptor*
1908 OptimizeMode_descriptor() {
1909 return FileOptions_OptimizeMode_descriptor();
1910 }
1911 static inline const ::std::string& OptimizeMode_Name(OptimizeMode value) {
1912 return FileOptions_OptimizeMode_Name(value);
1913 }
1914 static inline bool OptimizeMode_Parse(const ::std::string& name,
1915 OptimizeMode* value) {
1916 return FileOptions_OptimizeMode_Parse(name, value);
1917 }
1918
1919 // accessors -------------------------------------------------------
1920
1921 // optional string java_package = 1;
1922 bool has_java_package() const;
1923 void clear_java_package();
1924 static const int kJavaPackageFieldNumber = 1;
1925 const ::std::string& java_package() const;
1926 void set_java_package(const ::std::string& value);
1927 void set_java_package(const char* value);
1928 void set_java_package(const char* value, size_t size);
1929 ::std::string* mutable_java_package();
1930 ::std::string* release_java_package();
1931 void set_allocated_java_package(::std::string* java_package);
1932
1933 // optional string java_outer_classname = 8;
1934 bool has_java_outer_classname() const;
1935 void clear_java_outer_classname();
1936 static const int kJavaOuterClassnameFieldNumber = 8;
1937 const ::std::string& java_outer_classname() const;
1938 void set_java_outer_classname(const ::std::string& value);
1939 void set_java_outer_classname(const char* value);
1940 void set_java_outer_classname(const char* value, size_t size);
1941 ::std::string* mutable_java_outer_classname();
1942 ::std::string* release_java_outer_classname();
1943 void set_allocated_java_outer_classname(::std::string* java_outer_classname);
1944
1945 // optional bool java_multiple_files = 10 [default = false];
1946 bool has_java_multiple_files() const;
1947 void clear_java_multiple_files();
1948 static const int kJavaMultipleFilesFieldNumber = 10;
1949 bool java_multiple_files() const;
1950 void set_java_multiple_files(bool value);
1951
1952 // optional bool java_generate_equals_and_hash = 20 [default = false];
1953 bool has_java_generate_equals_and_hash() const;
1954 void clear_java_generate_equals_and_hash();
1955 static const int kJavaGenerateEqualsAndHashFieldNumber = 20;
1956 bool java_generate_equals_and_hash() const;
1957 void set_java_generate_equals_and_hash(bool value);
1958
1959 // optional bool java_string_check_utf8 = 27 [default = false];
1960 bool has_java_string_check_utf8() const;
1961 void clear_java_string_check_utf8();
1962 static const int kJavaStringCheckUtf8FieldNumber = 27;
1963 bool java_string_check_utf8() const;
1964 void set_java_string_check_utf8(bool value);
1965
1966 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
1967 bool has_optimize_for() const;
1968 void clear_optimize_for();
1969 static const int kOptimizeForFieldNumber = 9;
1970 ::google::protobuf::FileOptions_OptimizeMode optimize_for() const;
1971 void set_optimize_for(::google::protobuf::FileOptions_OptimizeMode value);
1972
1973 // optional string go_package = 11;
1974 bool has_go_package() const;
1975 void clear_go_package();
1976 static const int kGoPackageFieldNumber = 11;
1977 const ::std::string& go_package() const;
1978 void set_go_package(const ::std::string& value);
1979 void set_go_package(const char* value);
1980 void set_go_package(const char* value, size_t size);
1981 ::std::string* mutable_go_package();
1982 ::std::string* release_go_package();
1983 void set_allocated_go_package(::std::string* go_package);
1984
1985 // optional bool cc_generic_services = 16 [default = false];
1986 bool has_cc_generic_services() const;
1987 void clear_cc_generic_services();
1988 static const int kCcGenericServicesFieldNumber = 16;
1989 bool cc_generic_services() const;
1990 void set_cc_generic_services(bool value);
1991
1992 // optional bool java_generic_services = 17 [default = false];
1993 bool has_java_generic_services() const;
1994 void clear_java_generic_services();
1995 static const int kJavaGenericServicesFieldNumber = 17;
1996 bool java_generic_services() const;
1997 void set_java_generic_services(bool value);
1998
1999 // optional bool py_generic_services = 18 [default = false];
2000 bool has_py_generic_services() const;
2001 void clear_py_generic_services();
2002 static const int kPyGenericServicesFieldNumber = 18;
2003 bool py_generic_services() const;
2004 void set_py_generic_services(bool value);
2005
2006 // optional bool deprecated = 23 [default = false];
2007 bool has_deprecated() const;
2008 void clear_deprecated();
2009 static const int kDeprecatedFieldNumber = 23;
2010 bool deprecated() const;
2011 void set_deprecated(bool value);
2012
2013 // optional bool cc_enable_arenas = 31 [default = false];
2014 bool has_cc_enable_arenas() const;
2015 void clear_cc_enable_arenas();
2016 static const int kCcEnableArenasFieldNumber = 31;
2017 bool cc_enable_arenas() const;
2018 void set_cc_enable_arenas(bool value);
2019
2020 // optional string objc_class_prefix = 36;
2021 bool has_objc_class_prefix() const;
2022 void clear_objc_class_prefix();
2023 static const int kObjcClassPrefixFieldNumber = 36;
2024 const ::std::string& objc_class_prefix() const;
2025 void set_objc_class_prefix(const ::std::string& value);
2026 void set_objc_class_prefix(const char* value);
2027 void set_objc_class_prefix(const char* value, size_t size);
2028 ::std::string* mutable_objc_class_prefix();
2029 ::std::string* release_objc_class_prefix();
2030 void set_allocated_objc_class_prefix(::std::string* objc_class_prefix);
2031
2032 // optional string csharp_namespace = 37;
2033 bool has_csharp_namespace() const;
2034 void clear_csharp_namespace();
2035 static const int kCsharpNamespaceFieldNumber = 37;
2036 const ::std::string& csharp_namespace() const;
2037 void set_csharp_namespace(const ::std::string& value);
2038 void set_csharp_namespace(const char* value);
2039 void set_csharp_namespace(const char* value, size_t size);
2040 ::std::string* mutable_csharp_namespace();
2041 ::std::string* release_csharp_namespace();
2042 void set_allocated_csharp_namespace(::std::string* csharp_namespace);
2043
2044 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
2045 int uninterpreted_option_size() const;
2046 void clear_uninterpreted_option();
2047 static const int kUninterpretedOptionFieldNumber = 999;
2048 const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
2049 ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
2050 ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
2051 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
2052 mutable_uninterpreted_option();
2053 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
2054 uninterpreted_option() const;
2055
2056 GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(FileOptions)
2057 // @@protoc_insertion_point(class_scope:google.protobuf.FileOptions)
2058 private:
2059 inline void set_has_java_package();
2060 inline void clear_has_java_package();
2061 inline void set_has_java_outer_classname();
2062 inline void clear_has_java_outer_classname();
2063 inline void set_has_java_multiple_files();
2064 inline void clear_has_java_multiple_files();
2065 inline void set_has_java_generate_equals_and_hash();
2066 inline void clear_has_java_generate_equals_and_hash();
2067 inline void set_has_java_string_check_utf8();
2068 inline void clear_has_java_string_check_utf8();
2069 inline void set_has_optimize_for();
2070 inline void clear_has_optimize_for();
2071 inline void set_has_go_package();
2072 inline void clear_has_go_package();
2073 inline void set_has_cc_generic_services();
2074 inline void clear_has_cc_generic_services();
2075 inline void set_has_java_generic_services();
2076 inline void clear_has_java_generic_services();
2077 inline void set_has_py_generic_services();
2078 inline void clear_has_py_generic_services();
2079 inline void set_has_deprecated();
2080 inline void clear_has_deprecated();
2081 inline void set_has_cc_enable_arenas();
2082 inline void clear_has_cc_enable_arenas();
2083 inline void set_has_objc_class_prefix();
2084 inline void clear_has_objc_class_prefix();
2085 inline void set_has_csharp_namespace();
2086 inline void clear_has_csharp_namespace();
2087
2088 ::google::protobuf::internal::ExtensionSet _extensions_;
2089
2090 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
2091 ::google::protobuf::uint32 _has_bits_[1];
2092 mutable int _cached_size_;
2093 ::google::protobuf::internal::ArenaStringPtr java_package_;
2094 ::google::protobuf::internal::ArenaStringPtr java_outer_classname_;
2095 bool java_multiple_files_;
2096 bool java_generate_equals_and_hash_;
2097 bool java_string_check_utf8_;
2098 bool cc_generic_services_;
2099 int optimize_for_;
2100 ::google::protobuf::internal::ArenaStringPtr go_package_;
2101 ::google::protobuf::internal::ArenaStringPtr objc_class_prefix_;
2102 ::google::protobuf::internal::ArenaStringPtr csharp_namespace_;
2103 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
2104 bool java_generic_services_;
2105 bool py_generic_services_;
2106 bool deprecated_;
2107 bool cc_enable_arenas_;
2108 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
2109 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
2110 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
2111
2112 void InitAsDefaultInstance();
2113 static FileOptions* default_instance_;
2114 };
2115 // -------------------------------------------------------------------
2116
2117 class LIBPROTOBUF_EXPORT MessageOptions : public ::google::protobuf::Message {
2118 public:
2119 MessageOptions();
2120 virtual ~MessageOptions();
2121
2122 MessageOptions(const MessageOptions& from);
2123
2124 inline MessageOptions& operator=(const MessageOptions& from) {
2125 CopyFrom(from);
2126 return *this;
2127 }
2128
2129 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
2130 return _internal_metadata_.unknown_fields();
2131 }
2132
2133 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
2134 return _internal_metadata_.mutable_unknown_fields();
2135 }
2136
2137 static const ::google::protobuf::Descriptor* descriptor();
2138 static const MessageOptions& default_instance();
2139
2140 void Swap(MessageOptions* other);
2141
2142 // implements Message ----------------------------------------------
2143
2144 inline MessageOptions* New() const { return New(NULL); }
2145
2146 MessageOptions* New(::google::protobuf::Arena* arena) const;
2147 void CopyFrom(const ::google::protobuf::Message& from);
2148 void MergeFrom(const ::google::protobuf::Message& from);
2149 void CopyFrom(const MessageOptions& from);
2150 void MergeFrom(const MessageOptions& from);
2151 void Clear();
2152 bool IsInitialized() const;
2153
2154 int ByteSize() const;
2155 bool MergePartialFromCodedStream(
2156 ::google::protobuf::io::CodedInputStream* input);
2157 void SerializeWithCachedSizes(
2158 ::google::protobuf::io::CodedOutputStream* output) const;
2159 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
2160 int GetCachedSize() const { return _cached_size_; }
2161 private:
2162 void SharedCtor();
2163 void SharedDtor();
2164 void SetCachedSize(int size) const;
2165 void InternalSwap(MessageOptions* other);
2166 private:
2167 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
2168 return _internal_metadata_.arena();
2169 }
2170 inline void* MaybeArenaPtr() const {
2171 return _internal_metadata_.raw_arena_ptr();
2172 }
2173 public:
2174
2175 ::google::protobuf::Metadata GetMetadata() const;
2176
2177 // nested types ----------------------------------------------------
2178
2179 // accessors -------------------------------------------------------
2180
2181 // optional bool message_set_wire_format = 1 [default = false];
2182 bool has_message_set_wire_format() const;
2183 void clear_message_set_wire_format();
2184 static const int kMessageSetWireFormatFieldNumber = 1;
2185 bool message_set_wire_format() const;
2186 void set_message_set_wire_format(bool value);
2187
2188 // optional bool no_standard_descriptor_accessor = 2 [default = false];
2189 bool has_no_standard_descriptor_accessor() const;
2190 void clear_no_standard_descriptor_accessor();
2191 static const int kNoStandardDescriptorAccessorFieldNumber = 2;
2192 bool no_standard_descriptor_accessor() const;
2193 void set_no_standard_descriptor_accessor(bool value);
2194
2195 // optional bool deprecated = 3 [default = false];
2196 bool has_deprecated() const;
2197 void clear_deprecated();
2198 static const int kDeprecatedFieldNumber = 3;
2199 bool deprecated() const;
2200 void set_deprecated(bool value);
2201
2202 // optional bool map_entry = 7;
2203 bool has_map_entry() const;
2204 void clear_map_entry();
2205 static const int kMapEntryFieldNumber = 7;
2206 bool map_entry() const;
2207 void set_map_entry(bool value);
2208
2209 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
2210 int uninterpreted_option_size() const;
2211 void clear_uninterpreted_option();
2212 static const int kUninterpretedOptionFieldNumber = 999;
2213 const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
2214 ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
2215 ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
2216 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
2217 mutable_uninterpreted_option();
2218 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
2219 uninterpreted_option() const;
2220
2221 GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(MessageOptions)
2222 // @@protoc_insertion_point(class_scope:google.protobuf.MessageOptions)
2223 private:
2224 inline void set_has_message_set_wire_format();
2225 inline void clear_has_message_set_wire_format();
2226 inline void set_has_no_standard_descriptor_accessor();
2227 inline void clear_has_no_standard_descriptor_accessor();
2228 inline void set_has_deprecated();
2229 inline void clear_has_deprecated();
2230 inline void set_has_map_entry();
2231 inline void clear_has_map_entry();
2232
2233 ::google::protobuf::internal::ExtensionSet _extensions_;
2234
2235 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
2236 ::google::protobuf::uint32 _has_bits_[1];
2237 mutable int _cached_size_;
2238 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
2239 bool message_set_wire_format_;
2240 bool no_standard_descriptor_accessor_;
2241 bool deprecated_;
2242 bool map_entry_;
2243 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
2244 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
2245 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
2246
2247 void InitAsDefaultInstance();
2248 static MessageOptions* default_instance_;
2249 };
2250 // -------------------------------------------------------------------
2251
2252 class LIBPROTOBUF_EXPORT FieldOptions : public ::google::protobuf::Message {
2253 public:
2254 FieldOptions();
2255 virtual ~FieldOptions();
2256
2257 FieldOptions(const FieldOptions& from);
2258
2259 inline FieldOptions& operator=(const FieldOptions& from) {
2260 CopyFrom(from);
2261 return *this;
2262 }
2263
2264 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
2265 return _internal_metadata_.unknown_fields();
2266 }
2267
2268 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
2269 return _internal_metadata_.mutable_unknown_fields();
2270 }
2271
2272 static const ::google::protobuf::Descriptor* descriptor();
2273 static const FieldOptions& default_instance();
2274
2275 void Swap(FieldOptions* other);
2276
2277 // implements Message ----------------------------------------------
2278
2279 inline FieldOptions* New() const { return New(NULL); }
2280
2281 FieldOptions* New(::google::protobuf::Arena* arena) const;
2282 void CopyFrom(const ::google::protobuf::Message& from);
2283 void MergeFrom(const ::google::protobuf::Message& from);
2284 void CopyFrom(const FieldOptions& from);
2285 void MergeFrom(const FieldOptions& from);
2286 void Clear();
2287 bool IsInitialized() const;
2288
2289 int ByteSize() const;
2290 bool MergePartialFromCodedStream(
2291 ::google::protobuf::io::CodedInputStream* input);
2292 void SerializeWithCachedSizes(
2293 ::google::protobuf::io::CodedOutputStream* output) const;
2294 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
2295 int GetCachedSize() const { return _cached_size_; }
2296 private:
2297 void SharedCtor();
2298 void SharedDtor();
2299 void SetCachedSize(int size) const;
2300 void InternalSwap(FieldOptions* other);
2301 private:
2302 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
2303 return _internal_metadata_.arena();
2304 }
2305 inline void* MaybeArenaPtr() const {
2306 return _internal_metadata_.raw_arena_ptr();
2307 }
2308 public:
2309
2310 ::google::protobuf::Metadata GetMetadata() const;
2311
2312 // nested types ----------------------------------------------------
2313
2314 typedef FieldOptions_CType CType;
2315 static const CType STRING =
2316 FieldOptions_CType_STRING;
2317 static const CType CORD =
2318 FieldOptions_CType_CORD;
2319 static const CType STRING_PIECE =
2320 FieldOptions_CType_STRING_PIECE;
2321 static inline bool CType_IsValid(int value) {
2322 return FieldOptions_CType_IsValid(value);
2323 }
2324 static const CType CType_MIN =
2325 FieldOptions_CType_CType_MIN;
2326 static const CType CType_MAX =
2327 FieldOptions_CType_CType_MAX;
2328 static const int CType_ARRAYSIZE =
2329 FieldOptions_CType_CType_ARRAYSIZE;
2330 static inline const ::google::protobuf::EnumDescriptor*
2331 CType_descriptor() {
2332 return FieldOptions_CType_descriptor();
2333 }
2334 static inline const ::std::string& CType_Name(CType value) {
2335 return FieldOptions_CType_Name(value);
2336 }
2337 static inline bool CType_Parse(const ::std::string& name,
2338 CType* value) {
2339 return FieldOptions_CType_Parse(name, value);
2340 }
2341
2342 typedef FieldOptions_JSType JSType;
2343 static const JSType JS_NORMAL =
2344 FieldOptions_JSType_JS_NORMAL;
2345 static const JSType JS_STRING =
2346 FieldOptions_JSType_JS_STRING;
2347 static const JSType JS_NUMBER =
2348 FieldOptions_JSType_JS_NUMBER;
2349 static inline bool JSType_IsValid(int value) {
2350 return FieldOptions_JSType_IsValid(value);
2351 }
2352 static const JSType JSType_MIN =
2353 FieldOptions_JSType_JSType_MIN;
2354 static const JSType JSType_MAX =
2355 FieldOptions_JSType_JSType_MAX;
2356 static const int JSType_ARRAYSIZE =
2357 FieldOptions_JSType_JSType_ARRAYSIZE;
2358 static inline const ::google::protobuf::EnumDescriptor*
2359 JSType_descriptor() {
2360 return FieldOptions_JSType_descriptor();
2361 }
2362 static inline const ::std::string& JSType_Name(JSType value) {
2363 return FieldOptions_JSType_Name(value);
2364 }
2365 static inline bool JSType_Parse(const ::std::string& name,
2366 JSType* value) {
2367 return FieldOptions_JSType_Parse(name, value);
2368 }
2369
2370 // accessors -------------------------------------------------------
2371
2372 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
2373 bool has_ctype() const;
2374 void clear_ctype();
2375 static const int kCtypeFieldNumber = 1;
2376 ::google::protobuf::FieldOptions_CType ctype() const;
2377 void set_ctype(::google::protobuf::FieldOptions_CType value);
2378
2379 // optional bool packed = 2;
2380 bool has_packed() const;
2381 void clear_packed();
2382 static const int kPackedFieldNumber = 2;
2383 bool packed() const;
2384 void set_packed(bool value);
2385
2386 // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
2387 bool has_jstype() const;
2388 void clear_jstype();
2389 static const int kJstypeFieldNumber = 6;
2390 ::google::protobuf::FieldOptions_JSType jstype() const;
2391 void set_jstype(::google::protobuf::FieldOptions_JSType value);
2392
2393 // optional bool lazy = 5 [default = false];
2394 bool has_lazy() const;
2395 void clear_lazy();
2396 static const int kLazyFieldNumber = 5;
2397 bool lazy() const;
2398 void set_lazy(bool value);
2399
2400 // optional bool deprecated = 3 [default = false];
2401 bool has_deprecated() const;
2402 void clear_deprecated();
2403 static const int kDeprecatedFieldNumber = 3;
2404 bool deprecated() const;
2405 void set_deprecated(bool value);
2406
2407 // optional bool weak = 10 [default = false];
2408 bool has_weak() const;
2409 void clear_weak();
2410 static const int kWeakFieldNumber = 10;
2411 bool weak() const;
2412 void set_weak(bool value);
2413
2414 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
2415 int uninterpreted_option_size() const;
2416 void clear_uninterpreted_option();
2417 static const int kUninterpretedOptionFieldNumber = 999;
2418 const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
2419 ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
2420 ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
2421 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
2422 mutable_uninterpreted_option();
2423 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
2424 uninterpreted_option() const;
2425
2426 GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(FieldOptions)
2427 // @@protoc_insertion_point(class_scope:google.protobuf.FieldOptions)
2428 private:
2429 inline void set_has_ctype();
2430 inline void clear_has_ctype();
2431 inline void set_has_packed();
2432 inline void clear_has_packed();
2433 inline void set_has_jstype();
2434 inline void clear_has_jstype();
2435 inline void set_has_lazy();
2436 inline void clear_has_lazy();
2437 inline void set_has_deprecated();
2438 inline void clear_has_deprecated();
2439 inline void set_has_weak();
2440 inline void clear_has_weak();
2441
2442 ::google::protobuf::internal::ExtensionSet _extensions_;
2443
2444 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
2445 ::google::protobuf::uint32 _has_bits_[1];
2446 mutable int _cached_size_;
2447 int ctype_;
2448 int jstype_;
2449 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
2450 bool packed_;
2451 bool lazy_;
2452 bool deprecated_;
2453 bool weak_;
2454 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
2455 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
2456 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
2457
2458 void InitAsDefaultInstance();
2459 static FieldOptions* default_instance_;
2460 };
2461 // -------------------------------------------------------------------
2462
2463 class LIBPROTOBUF_EXPORT EnumOptions : public ::google::protobuf::Message {
2464 public:
2465 EnumOptions();
2466 virtual ~EnumOptions();
2467
2468 EnumOptions(const EnumOptions& from);
2469
2470 inline EnumOptions& operator=(const EnumOptions& from) {
2471 CopyFrom(from);
2472 return *this;
2473 }
2474
2475 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
2476 return _internal_metadata_.unknown_fields();
2477 }
2478
2479 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
2480 return _internal_metadata_.mutable_unknown_fields();
2481 }
2482
2483 static const ::google::protobuf::Descriptor* descriptor();
2484 static const EnumOptions& default_instance();
2485
2486 void Swap(EnumOptions* other);
2487
2488 // implements Message ----------------------------------------------
2489
2490 inline EnumOptions* New() const { return New(NULL); }
2491
2492 EnumOptions* New(::google::protobuf::Arena* arena) const;
2493 void CopyFrom(const ::google::protobuf::Message& from);
2494 void MergeFrom(const ::google::protobuf::Message& from);
2495 void CopyFrom(const EnumOptions& from);
2496 void MergeFrom(const EnumOptions& from);
2497 void Clear();
2498 bool IsInitialized() const;
2499
2500 int ByteSize() const;
2501 bool MergePartialFromCodedStream(
2502 ::google::protobuf::io::CodedInputStream* input);
2503 void SerializeWithCachedSizes(
2504 ::google::protobuf::io::CodedOutputStream* output) const;
2505 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
2506 int GetCachedSize() const { return _cached_size_; }
2507 private:
2508 void SharedCtor();
2509 void SharedDtor();
2510 void SetCachedSize(int size) const;
2511 void InternalSwap(EnumOptions* other);
2512 private:
2513 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
2514 return _internal_metadata_.arena();
2515 }
2516 inline void* MaybeArenaPtr() const {
2517 return _internal_metadata_.raw_arena_ptr();
2518 }
2519 public:
2520
2521 ::google::protobuf::Metadata GetMetadata() const;
2522
2523 // nested types ----------------------------------------------------
2524
2525 // accessors -------------------------------------------------------
2526
2527 // optional bool allow_alias = 2;
2528 bool has_allow_alias() const;
2529 void clear_allow_alias();
2530 static const int kAllowAliasFieldNumber = 2;
2531 bool allow_alias() const;
2532 void set_allow_alias(bool value);
2533
2534 // optional bool deprecated = 3 [default = false];
2535 bool has_deprecated() const;
2536 void clear_deprecated();
2537 static const int kDeprecatedFieldNumber = 3;
2538 bool deprecated() const;
2539 void set_deprecated(bool value);
2540
2541 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
2542 int uninterpreted_option_size() const;
2543 void clear_uninterpreted_option();
2544 static const int kUninterpretedOptionFieldNumber = 999;
2545 const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
2546 ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
2547 ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
2548 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
2549 mutable_uninterpreted_option();
2550 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
2551 uninterpreted_option() const;
2552
2553 GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(EnumOptions)
2554 // @@protoc_insertion_point(class_scope:google.protobuf.EnumOptions)
2555 private:
2556 inline void set_has_allow_alias();
2557 inline void clear_has_allow_alias();
2558 inline void set_has_deprecated();
2559 inline void clear_has_deprecated();
2560
2561 ::google::protobuf::internal::ExtensionSet _extensions_;
2562
2563 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
2564 ::google::protobuf::uint32 _has_bits_[1];
2565 mutable int _cached_size_;
2566 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
2567 bool allow_alias_;
2568 bool deprecated_;
2569 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
2570 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
2571 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
2572
2573 void InitAsDefaultInstance();
2574 static EnumOptions* default_instance_;
2575 };
2576 // -------------------------------------------------------------------
2577
2578 class LIBPROTOBUF_EXPORT EnumValueOptions : public ::google::protobuf::Message {
2579 public:
2580 EnumValueOptions();
2581 virtual ~EnumValueOptions();
2582
2583 EnumValueOptions(const EnumValueOptions& from);
2584
2585 inline EnumValueOptions& operator=(const EnumValueOptions& from) {
2586 CopyFrom(from);
2587 return *this;
2588 }
2589
2590 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
2591 return _internal_metadata_.unknown_fields();
2592 }
2593
2594 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
2595 return _internal_metadata_.mutable_unknown_fields();
2596 }
2597
2598 static const ::google::protobuf::Descriptor* descriptor();
2599 static const EnumValueOptions& default_instance();
2600
2601 void Swap(EnumValueOptions* other);
2602
2603 // implements Message ----------------------------------------------
2604
2605 inline EnumValueOptions* New() const { return New(NULL); }
2606
2607 EnumValueOptions* New(::google::protobuf::Arena* arena) const;
2608 void CopyFrom(const ::google::protobuf::Message& from);
2609 void MergeFrom(const ::google::protobuf::Message& from);
2610 void CopyFrom(const EnumValueOptions& from);
2611 void MergeFrom(const EnumValueOptions& from);
2612 void Clear();
2613 bool IsInitialized() const;
2614
2615 int ByteSize() const;
2616 bool MergePartialFromCodedStream(
2617 ::google::protobuf::io::CodedInputStream* input);
2618 void SerializeWithCachedSizes(
2619 ::google::protobuf::io::CodedOutputStream* output) const;
2620 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
2621 int GetCachedSize() const { return _cached_size_; }
2622 private:
2623 void SharedCtor();
2624 void SharedDtor();
2625 void SetCachedSize(int size) const;
2626 void InternalSwap(EnumValueOptions* other);
2627 private:
2628 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
2629 return _internal_metadata_.arena();
2630 }
2631 inline void* MaybeArenaPtr() const {
2632 return _internal_metadata_.raw_arena_ptr();
2633 }
2634 public:
2635
2636 ::google::protobuf::Metadata GetMetadata() const;
2637
2638 // nested types ----------------------------------------------------
2639
2640 // accessors -------------------------------------------------------
2641
2642 // optional bool deprecated = 1 [default = false];
2643 bool has_deprecated() const;
2644 void clear_deprecated();
2645 static const int kDeprecatedFieldNumber = 1;
2646 bool deprecated() const;
2647 void set_deprecated(bool value);
2648
2649 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
2650 int uninterpreted_option_size() const;
2651 void clear_uninterpreted_option();
2652 static const int kUninterpretedOptionFieldNumber = 999;
2653 const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
2654 ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
2655 ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
2656 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
2657 mutable_uninterpreted_option();
2658 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
2659 uninterpreted_option() const;
2660
2661 GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(EnumValueOptions)
2662 // @@protoc_insertion_point(class_scope:google.protobuf.EnumValueOptions)
2663 private:
2664 inline void set_has_deprecated();
2665 inline void clear_has_deprecated();
2666
2667 ::google::protobuf::internal::ExtensionSet _extensions_;
2668
2669 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
2670 ::google::protobuf::uint32 _has_bits_[1];
2671 mutable int _cached_size_;
2672 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
2673 bool deprecated_;
2674 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
2675 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
2676 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
2677
2678 void InitAsDefaultInstance();
2679 static EnumValueOptions* default_instance_;
2680 };
2681 // -------------------------------------------------------------------
2682
2683 class LIBPROTOBUF_EXPORT ServiceOptions : public ::google::protobuf::Message {
2684 public:
2685 ServiceOptions();
2686 virtual ~ServiceOptions();
2687
2688 ServiceOptions(const ServiceOptions& from);
2689
2690 inline ServiceOptions& operator=(const ServiceOptions& from) {
2691 CopyFrom(from);
2692 return *this;
2693 }
2694
2695 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
2696 return _internal_metadata_.unknown_fields();
2697 }
2698
2699 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
2700 return _internal_metadata_.mutable_unknown_fields();
2701 }
2702
2703 static const ::google::protobuf::Descriptor* descriptor();
2704 static const ServiceOptions& default_instance();
2705
2706 void Swap(ServiceOptions* other);
2707
2708 // implements Message ----------------------------------------------
2709
2710 inline ServiceOptions* New() const { return New(NULL); }
2711
2712 ServiceOptions* New(::google::protobuf::Arena* arena) const;
2713 void CopyFrom(const ::google::protobuf::Message& from);
2714 void MergeFrom(const ::google::protobuf::Message& from);
2715 void CopyFrom(const ServiceOptions& from);
2716 void MergeFrom(const ServiceOptions& from);
2717 void Clear();
2718 bool IsInitialized() const;
2719
2720 int ByteSize() const;
2721 bool MergePartialFromCodedStream(
2722 ::google::protobuf::io::CodedInputStream* input);
2723 void SerializeWithCachedSizes(
2724 ::google::protobuf::io::CodedOutputStream* output) const;
2725 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
2726 int GetCachedSize() const { return _cached_size_; }
2727 private:
2728 void SharedCtor();
2729 void SharedDtor();
2730 void SetCachedSize(int size) const;
2731 void InternalSwap(ServiceOptions* other);
2732 private:
2733 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
2734 return _internal_metadata_.arena();
2735 }
2736 inline void* MaybeArenaPtr() const {
2737 return _internal_metadata_.raw_arena_ptr();
2738 }
2739 public:
2740
2741 ::google::protobuf::Metadata GetMetadata() const;
2742
2743 // nested types ----------------------------------------------------
2744
2745 // accessors -------------------------------------------------------
2746
2747 // optional bool deprecated = 33 [default = false];
2748 bool has_deprecated() const;
2749 void clear_deprecated();
2750 static const int kDeprecatedFieldNumber = 33;
2751 bool deprecated() const;
2752 void set_deprecated(bool value);
2753
2754 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
2755 int uninterpreted_option_size() const;
2756 void clear_uninterpreted_option();
2757 static const int kUninterpretedOptionFieldNumber = 999;
2758 const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
2759 ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
2760 ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
2761 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
2762 mutable_uninterpreted_option();
2763 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
2764 uninterpreted_option() const;
2765
2766 GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(ServiceOptions)
2767 // @@protoc_insertion_point(class_scope:google.protobuf.ServiceOptions)
2768 private:
2769 inline void set_has_deprecated();
2770 inline void clear_has_deprecated();
2771
2772 ::google::protobuf::internal::ExtensionSet _extensions_;
2773
2774 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
2775 ::google::protobuf::uint32 _has_bits_[1];
2776 mutable int _cached_size_;
2777 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
2778 bool deprecated_;
2779 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
2780 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
2781 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
2782
2783 void InitAsDefaultInstance();
2784 static ServiceOptions* default_instance_;
2785 };
2786 // -------------------------------------------------------------------
2787
2788 class LIBPROTOBUF_EXPORT MethodOptions : public ::google::protobuf::Message {
2789 public:
2790 MethodOptions();
2791 virtual ~MethodOptions();
2792
2793 MethodOptions(const MethodOptions& from);
2794
2795 inline MethodOptions& operator=(const MethodOptions& from) {
2796 CopyFrom(from);
2797 return *this;
2798 }
2799
2800 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
2801 return _internal_metadata_.unknown_fields();
2802 }
2803
2804 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
2805 return _internal_metadata_.mutable_unknown_fields();
2806 }
2807
2808 static const ::google::protobuf::Descriptor* descriptor();
2809 static const MethodOptions& default_instance();
2810
2811 void Swap(MethodOptions* other);
2812
2813 // implements Message ----------------------------------------------
2814
2815 inline MethodOptions* New() const { return New(NULL); }
2816
2817 MethodOptions* New(::google::protobuf::Arena* arena) const;
2818 void CopyFrom(const ::google::protobuf::Message& from);
2819 void MergeFrom(const ::google::protobuf::Message& from);
2820 void CopyFrom(const MethodOptions& from);
2821 void MergeFrom(const MethodOptions& from);
2822 void Clear();
2823 bool IsInitialized() const;
2824
2825 int ByteSize() const;
2826 bool MergePartialFromCodedStream(
2827 ::google::protobuf::io::CodedInputStream* input);
2828 void SerializeWithCachedSizes(
2829 ::google::protobuf::io::CodedOutputStream* output) const;
2830 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
2831 int GetCachedSize() const { return _cached_size_; }
2832 private:
2833 void SharedCtor();
2834 void SharedDtor();
2835 void SetCachedSize(int size) const;
2836 void InternalSwap(MethodOptions* other);
2837 private:
2838 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
2839 return _internal_metadata_.arena();
2840 }
2841 inline void* MaybeArenaPtr() const {
2842 return _internal_metadata_.raw_arena_ptr();
2843 }
2844 public:
2845
2846 ::google::protobuf::Metadata GetMetadata() const;
2847
2848 // nested types ----------------------------------------------------
2849
2850 // accessors -------------------------------------------------------
2851
2852 // optional bool deprecated = 33 [default = false];
2853 bool has_deprecated() const;
2854 void clear_deprecated();
2855 static const int kDeprecatedFieldNumber = 33;
2856 bool deprecated() const;
2857 void set_deprecated(bool value);
2858
2859 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
2860 int uninterpreted_option_size() const;
2861 void clear_uninterpreted_option();
2862 static const int kUninterpretedOptionFieldNumber = 999;
2863 const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
2864 ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
2865 ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
2866 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
2867 mutable_uninterpreted_option();
2868 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
2869 uninterpreted_option() const;
2870
2871 GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(MethodOptions)
2872 // @@protoc_insertion_point(class_scope:google.protobuf.MethodOptions)
2873 private:
2874 inline void set_has_deprecated();
2875 inline void clear_has_deprecated();
2876
2877 ::google::protobuf::internal::ExtensionSet _extensions_;
2878
2879 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
2880 ::google::protobuf::uint32 _has_bits_[1];
2881 mutable int _cached_size_;
2882 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
2883 bool deprecated_;
2884 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
2885 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
2886 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
2887
2888 void InitAsDefaultInstance();
2889 static MethodOptions* default_instance_;
2890 };
2891 // -------------------------------------------------------------------
2892
2893 class LIBPROTOBUF_EXPORT UninterpretedOption_NamePart : public ::google::protobuf::Message {
2894 public:
2895 UninterpretedOption_NamePart();
2896 virtual ~UninterpretedOption_NamePart();
2897
2898 UninterpretedOption_NamePart(const UninterpretedOption_NamePart& from);
2899
2900 inline UninterpretedOption_NamePart& operator=(const UninterpretedOption_NamePart& from) {
2901 CopyFrom(from);
2902 return *this;
2903 }
2904
2905 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
2906 return _internal_metadata_.unknown_fields();
2907 }
2908
2909 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
2910 return _internal_metadata_.mutable_unknown_fields();
2911 }
2912
2913 static const ::google::protobuf::Descriptor* descriptor();
2914 static const UninterpretedOption_NamePart& default_instance();
2915
2916 void Swap(UninterpretedOption_NamePart* other);
2917
2918 // implements Message ----------------------------------------------
2919
2920 inline UninterpretedOption_NamePart* New() const { return New(NULL); }
2921
2922 UninterpretedOption_NamePart* New(::google::protobuf::Arena* arena) const;
2923 void CopyFrom(const ::google::protobuf::Message& from);
2924 void MergeFrom(const ::google::protobuf::Message& from);
2925 void CopyFrom(const UninterpretedOption_NamePart& from);
2926 void MergeFrom(const UninterpretedOption_NamePart& from);
2927 void Clear();
2928 bool IsInitialized() const;
2929
2930 int ByteSize() const;
2931 bool MergePartialFromCodedStream(
2932 ::google::protobuf::io::CodedInputStream* input);
2933 void SerializeWithCachedSizes(
2934 ::google::protobuf::io::CodedOutputStream* output) const;
2935 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
2936 int GetCachedSize() const { return _cached_size_; }
2937 private:
2938 void SharedCtor();
2939 void SharedDtor();
2940 void SetCachedSize(int size) const;
2941 void InternalSwap(UninterpretedOption_NamePart* other);
2942 private:
2943 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
2944 return _internal_metadata_.arena();
2945 }
2946 inline void* MaybeArenaPtr() const {
2947 return _internal_metadata_.raw_arena_ptr();
2948 }
2949 public:
2950
2951 ::google::protobuf::Metadata GetMetadata() const;
2952
2953 // nested types ----------------------------------------------------
2954
2955 // accessors -------------------------------------------------------
2956
2957 // required string name_part = 1;
2958 bool has_name_part() const;
2959 void clear_name_part();
2960 static const int kNamePartFieldNumber = 1;
2961 const ::std::string& name_part() const;
2962 void set_name_part(const ::std::string& value);
2963 void set_name_part(const char* value);
2964 void set_name_part(const char* value, size_t size);
2965 ::std::string* mutable_name_part();
2966 ::std::string* release_name_part();
2967 void set_allocated_name_part(::std::string* name_part);
2968
2969 // required bool is_extension = 2;
2970 bool has_is_extension() const;
2971 void clear_is_extension();
2972 static const int kIsExtensionFieldNumber = 2;
2973 bool is_extension() const;
2974 void set_is_extension(bool value);
2975
2976 // @@protoc_insertion_point(class_scope:google.protobuf.UninterpretedOption.NamePart)
2977 private:
2978 inline void set_has_name_part();
2979 inline void clear_has_name_part();
2980 inline void set_has_is_extension();
2981 inline void clear_has_is_extension();
2982
2983 // helper for ByteSize()
2984 int RequiredFieldsByteSizeFallback() const;
2985
2986 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
2987 ::google::protobuf::uint32 _has_bits_[1];
2988 mutable int _cached_size_;
2989 ::google::protobuf::internal::ArenaStringPtr name_part_;
2990 bool is_extension_;
2991 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
2992 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
2993 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
2994
2995 void InitAsDefaultInstance();
2996 static UninterpretedOption_NamePart* default_instance_;
2997 };
2998 // -------------------------------------------------------------------
2999
3000 class LIBPROTOBUF_EXPORT UninterpretedOption : public ::google::protobuf::Message {
3001 public:
3002 UninterpretedOption();
3003 virtual ~UninterpretedOption();
3004
3005 UninterpretedOption(const UninterpretedOption& from);
3006
3007 inline UninterpretedOption& operator=(const UninterpretedOption& from) {
3008 CopyFrom(from);
3009 return *this;
3010 }
3011
3012 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
3013 return _internal_metadata_.unknown_fields();
3014 }
3015
3016 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
3017 return _internal_metadata_.mutable_unknown_fields();
3018 }
3019
3020 static const ::google::protobuf::Descriptor* descriptor();
3021 static const UninterpretedOption& default_instance();
3022
3023 void Swap(UninterpretedOption* other);
3024
3025 // implements Message ----------------------------------------------
3026
3027 inline UninterpretedOption* New() const { return New(NULL); }
3028
3029 UninterpretedOption* New(::google::protobuf::Arena* arena) const;
3030 void CopyFrom(const ::google::protobuf::Message& from);
3031 void MergeFrom(const ::google::protobuf::Message& from);
3032 void CopyFrom(const UninterpretedOption& from);
3033 void MergeFrom(const UninterpretedOption& from);
3034 void Clear();
3035 bool IsInitialized() const;
3036
3037 int ByteSize() const;
3038 bool MergePartialFromCodedStream(
3039 ::google::protobuf::io::CodedInputStream* input);
3040 void SerializeWithCachedSizes(
3041 ::google::protobuf::io::CodedOutputStream* output) const;
3042 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
3043 int GetCachedSize() const { return _cached_size_; }
3044 private:
3045 void SharedCtor();
3046 void SharedDtor();
3047 void SetCachedSize(int size) const;
3048 void InternalSwap(UninterpretedOption* other);
3049 private:
3050 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
3051 return _internal_metadata_.arena();
3052 }
3053 inline void* MaybeArenaPtr() const {
3054 return _internal_metadata_.raw_arena_ptr();
3055 }
3056 public:
3057
3058 ::google::protobuf::Metadata GetMetadata() const;
3059
3060 // nested types ----------------------------------------------------
3061
3062 typedef UninterpretedOption_NamePart NamePart;
3063
3064 // accessors -------------------------------------------------------
3065
3066 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
3067 int name_size() const;
3068 void clear_name();
3069 static const int kNameFieldNumber = 2;
3070 const ::google::protobuf::UninterpretedOption_NamePart& name(int index) const;
3071 ::google::protobuf::UninterpretedOption_NamePart* mutable_name(int index);
3072 ::google::protobuf::UninterpretedOption_NamePart* add_name();
3073 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >*
3074 mutable_name();
3075 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >&
3076 name() const;
3077
3078 // optional string identifier_value = 3;
3079 bool has_identifier_value() const;
3080 void clear_identifier_value();
3081 static const int kIdentifierValueFieldNumber = 3;
3082 const ::std::string& identifier_value() const;
3083 void set_identifier_value(const ::std::string& value);
3084 void set_identifier_value(const char* value);
3085 void set_identifier_value(const char* value, size_t size);
3086 ::std::string* mutable_identifier_value();
3087 ::std::string* release_identifier_value();
3088 void set_allocated_identifier_value(::std::string* identifier_value);
3089
3090 // optional uint64 positive_int_value = 4;
3091 bool has_positive_int_value() const;
3092 void clear_positive_int_value();
3093 static const int kPositiveIntValueFieldNumber = 4;
3094 ::google::protobuf::uint64 positive_int_value() const;
3095 void set_positive_int_value(::google::protobuf::uint64 value);
3096
3097 // optional int64 negative_int_value = 5;
3098 bool has_negative_int_value() const;
3099 void clear_negative_int_value();
3100 static const int kNegativeIntValueFieldNumber = 5;
3101 ::google::protobuf::int64 negative_int_value() const;
3102 void set_negative_int_value(::google::protobuf::int64 value);
3103
3104 // optional double double_value = 6;
3105 bool has_double_value() const;
3106 void clear_double_value();
3107 static const int kDoubleValueFieldNumber = 6;
3108 double double_value() const;
3109 void set_double_value(double value);
3110
3111 // optional bytes string_value = 7;
3112 bool has_string_value() const;
3113 void clear_string_value();
3114 static const int kStringValueFieldNumber = 7;
3115 const ::std::string& string_value() const;
3116 void set_string_value(const ::std::string& value);
3117 void set_string_value(const char* value);
3118 void set_string_value(const void* value, size_t size);
3119 ::std::string* mutable_string_value();
3120 ::std::string* release_string_value();
3121 void set_allocated_string_value(::std::string* string_value);
3122
3123 // optional string aggregate_value = 8;
3124 bool has_aggregate_value() const;
3125 void clear_aggregate_value();
3126 static const int kAggregateValueFieldNumber = 8;
3127 const ::std::string& aggregate_value() const;
3128 void set_aggregate_value(const ::std::string& value);
3129 void set_aggregate_value(const char* value);
3130 void set_aggregate_value(const char* value, size_t size);
3131 ::std::string* mutable_aggregate_value();
3132 ::std::string* release_aggregate_value();
3133 void set_allocated_aggregate_value(::std::string* aggregate_value);
3134
3135 // @@protoc_insertion_point(class_scope:google.protobuf.UninterpretedOption)
3136 private:
3137 inline void set_has_identifier_value();
3138 inline void clear_has_identifier_value();
3139 inline void set_has_positive_int_value();
3140 inline void clear_has_positive_int_value();
3141 inline void set_has_negative_int_value();
3142 inline void clear_has_negative_int_value();
3143 inline void set_has_double_value();
3144 inline void clear_has_double_value();
3145 inline void set_has_string_value();
3146 inline void clear_has_string_value();
3147 inline void set_has_aggregate_value();
3148 inline void clear_has_aggregate_value();
3149
3150 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
3151 ::google::protobuf::uint32 _has_bits_[1];
3152 mutable int _cached_size_;
3153 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart > name_;
3154 ::google::protobuf::internal::ArenaStringPtr identifier_value_;
3155 ::google::protobuf::uint64 positive_int_value_;
3156 ::google::protobuf::int64 negative_int_value_;
3157 double double_value_;
3158 ::google::protobuf::internal::ArenaStringPtr string_value_;
3159 ::google::protobuf::internal::ArenaStringPtr aggregate_value_;
3160 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
3161 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
3162 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
3163
3164 void InitAsDefaultInstance();
3165 static UninterpretedOption* default_instance_;
3166 };
3167 // -------------------------------------------------------------------
3168
3169 class LIBPROTOBUF_EXPORT SourceCodeInfo_Location : public ::google::protobuf::Message {
3170 public:
3171 SourceCodeInfo_Location();
3172 virtual ~SourceCodeInfo_Location();
3173
3174 SourceCodeInfo_Location(const SourceCodeInfo_Location& from);
3175
3176 inline SourceCodeInfo_Location& operator=(const SourceCodeInfo_Location& from) {
3177 CopyFrom(from);
3178 return *this;
3179 }
3180
3181 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
3182 return _internal_metadata_.unknown_fields();
3183 }
3184
3185 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
3186 return _internal_metadata_.mutable_unknown_fields();
3187 }
3188
3189 static const ::google::protobuf::Descriptor* descriptor();
3190 static const SourceCodeInfo_Location& default_instance();
3191
3192 void Swap(SourceCodeInfo_Location* other);
3193
3194 // implements Message ----------------------------------------------
3195
3196 inline SourceCodeInfo_Location* New() const { return New(NULL); }
3197
3198 SourceCodeInfo_Location* New(::google::protobuf::Arena* arena) const;
3199 void CopyFrom(const ::google::protobuf::Message& from);
3200 void MergeFrom(const ::google::protobuf::Message& from);
3201 void CopyFrom(const SourceCodeInfo_Location& from);
3202 void MergeFrom(const SourceCodeInfo_Location& from);
3203 void Clear();
3204 bool IsInitialized() const;
3205
3206 int ByteSize() const;
3207 bool MergePartialFromCodedStream(
3208 ::google::protobuf::io::CodedInputStream* input);
3209 void SerializeWithCachedSizes(
3210 ::google::protobuf::io::CodedOutputStream* output) const;
3211 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
3212 int GetCachedSize() const { return _cached_size_; }
3213 private:
3214 void SharedCtor();
3215 void SharedDtor();
3216 void SetCachedSize(int size) const;
3217 void InternalSwap(SourceCodeInfo_Location* other);
3218 private:
3219 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
3220 return _internal_metadata_.arena();
3221 }
3222 inline void* MaybeArenaPtr() const {
3223 return _internal_metadata_.raw_arena_ptr();
3224 }
3225 public:
3226
3227 ::google::protobuf::Metadata GetMetadata() const;
3228
3229 // nested types ----------------------------------------------------
3230
3231 // accessors -------------------------------------------------------
3232
3233 // repeated int32 path = 1 [packed = true];
3234 int path_size() const;
3235 void clear_path();
3236 static const int kPathFieldNumber = 1;
3237 ::google::protobuf::int32 path(int index) const;
3238 void set_path(int index, ::google::protobuf::int32 value);
3239 void add_path(::google::protobuf::int32 value);
3240 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
3241 path() const;
3242 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
3243 mutable_path();
3244
3245 // repeated int32 span = 2 [packed = true];
3246 int span_size() const;
3247 void clear_span();
3248 static const int kSpanFieldNumber = 2;
3249 ::google::protobuf::int32 span(int index) const;
3250 void set_span(int index, ::google::protobuf::int32 value);
3251 void add_span(::google::protobuf::int32 value);
3252 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
3253 span() const;
3254 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
3255 mutable_span();
3256
3257 // optional string leading_comments = 3;
3258 bool has_leading_comments() const;
3259 void clear_leading_comments();
3260 static const int kLeadingCommentsFieldNumber = 3;
3261 const ::std::string& leading_comments() const;
3262 void set_leading_comments(const ::std::string& value);
3263 void set_leading_comments(const char* value);
3264 void set_leading_comments(const char* value, size_t size);
3265 ::std::string* mutable_leading_comments();
3266 ::std::string* release_leading_comments();
3267 void set_allocated_leading_comments(::std::string* leading_comments);
3268
3269 // optional string trailing_comments = 4;
3270 bool has_trailing_comments() const;
3271 void clear_trailing_comments();
3272 static const int kTrailingCommentsFieldNumber = 4;
3273 const ::std::string& trailing_comments() const;
3274 void set_trailing_comments(const ::std::string& value);
3275 void set_trailing_comments(const char* value);
3276 void set_trailing_comments(const char* value, size_t size);
3277 ::std::string* mutable_trailing_comments();
3278 ::std::string* release_trailing_comments();
3279 void set_allocated_trailing_comments(::std::string* trailing_comments);
3280
3281 // repeated string leading_detached_comments = 6;
3282 int leading_detached_comments_size() const;
3283 void clear_leading_detached_comments();
3284 static const int kLeadingDetachedCommentsFieldNumber = 6;
3285 const ::std::string& leading_detached_comments(int index) const;
3286 ::std::string* mutable_leading_detached_comments(int index);
3287 void set_leading_detached_comments(int index, const ::std::string& value);
3288 void set_leading_detached_comments(int index, const char* value);
3289 void set_leading_detached_comments(int index, const char* value, size_t size);
3290 ::std::string* add_leading_detached_comments();
3291 void add_leading_detached_comments(const ::std::string& value);
3292 void add_leading_detached_comments(const char* value);
3293 void add_leading_detached_comments(const char* value, size_t size);
3294 const ::google::protobuf::RepeatedPtrField< ::std::string>& leading_detached_comments() const;
3295 ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_leading_detached_comments();
3296
3297 // @@protoc_insertion_point(class_scope:google.protobuf.SourceCodeInfo.Location)
3298 private:
3299 inline void set_has_leading_comments();
3300 inline void clear_has_leading_comments();
3301 inline void set_has_trailing_comments();
3302 inline void clear_has_trailing_comments();
3303
3304 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
3305 ::google::protobuf::uint32 _has_bits_[1];
3306 mutable int _cached_size_;
3307 ::google::protobuf::RepeatedField< ::google::protobuf::int32 > path_;
3308 mutable int _path_cached_byte_size_;
3309 ::google::protobuf::RepeatedField< ::google::protobuf::int32 > span_;
3310 mutable int _span_cached_byte_size_;
3311 ::google::protobuf::internal::ArenaStringPtr leading_comments_;
3312 ::google::protobuf::internal::ArenaStringPtr trailing_comments_;
3313 ::google::protobuf::RepeatedPtrField< ::std::string> leading_detached_comments_;
3314 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
3315 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
3316 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
3317
3318 void InitAsDefaultInstance();
3319 static SourceCodeInfo_Location* default_instance_;
3320 };
3321 // -------------------------------------------------------------------
3322
3323 class LIBPROTOBUF_EXPORT SourceCodeInfo : public ::google::protobuf::Message {
3324 public:
3325 SourceCodeInfo();
3326 virtual ~SourceCodeInfo();
3327
3328 SourceCodeInfo(const SourceCodeInfo& from);
3329
3330 inline SourceCodeInfo& operator=(const SourceCodeInfo& from) {
3331 CopyFrom(from);
3332 return *this;
3333 }
3334
3335 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
3336 return _internal_metadata_.unknown_fields();
3337 }
3338
3339 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
3340 return _internal_metadata_.mutable_unknown_fields();
3341 }
3342
3343 static const ::google::protobuf::Descriptor* descriptor();
3344 static const SourceCodeInfo& default_instance();
3345
3346 void Swap(SourceCodeInfo* other);
3347
3348 // implements Message ----------------------------------------------
3349
3350 inline SourceCodeInfo* New() const { return New(NULL); }
3351
3352 SourceCodeInfo* New(::google::protobuf::Arena* arena) const;
3353 void CopyFrom(const ::google::protobuf::Message& from);
3354 void MergeFrom(const ::google::protobuf::Message& from);
3355 void CopyFrom(const SourceCodeInfo& from);
3356 void MergeFrom(const SourceCodeInfo& from);
3357 void Clear();
3358 bool IsInitialized() const;
3359
3360 int ByteSize() const;
3361 bool MergePartialFromCodedStream(
3362 ::google::protobuf::io::CodedInputStream* input);
3363 void SerializeWithCachedSizes(
3364 ::google::protobuf::io::CodedOutputStream* output) const;
3365 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
3366 int GetCachedSize() const { return _cached_size_; }
3367 private:
3368 void SharedCtor();
3369 void SharedDtor();
3370 void SetCachedSize(int size) const;
3371 void InternalSwap(SourceCodeInfo* other);
3372 private:
3373 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
3374 return _internal_metadata_.arena();
3375 }
3376 inline void* MaybeArenaPtr() const {
3377 return _internal_metadata_.raw_arena_ptr();
3378 }
3379 public:
3380
3381 ::google::protobuf::Metadata GetMetadata() const;
3382
3383 // nested types ----------------------------------------------------
3384
3385 typedef SourceCodeInfo_Location Location;
3386
3387 // accessors -------------------------------------------------------
3388
3389 // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
3390 int location_size() const;
3391 void clear_location();
3392 static const int kLocationFieldNumber = 1;
3393 const ::google::protobuf::SourceCodeInfo_Location& location(int index) const;
3394 ::google::protobuf::SourceCodeInfo_Location* mutable_location(int index);
3395 ::google::protobuf::SourceCodeInfo_Location* add_location();
3396 ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location >*
3397 mutable_location();
3398 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location >&
3399 location() const;
3400
3401 // @@protoc_insertion_point(class_scope:google.protobuf.SourceCodeInfo)
3402 private:
3403
3404 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
3405 ::google::protobuf::uint32 _has_bits_[1];
3406 mutable int _cached_size_;
3407 ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location > location_;
3408 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
3409 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
3410 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
3411
3412 void InitAsDefaultInstance();
3413 static SourceCodeInfo* default_instance_;
3414 };
3415 // -------------------------------------------------------------------
3416
3417 class LIBPROTOBUF_EXPORT GeneratedCodeInfo_Annotation : public ::google::protobuf::Message {
3418 public:
3419 GeneratedCodeInfo_Annotation();
3420 virtual ~GeneratedCodeInfo_Annotation();
3421
3422 GeneratedCodeInfo_Annotation(const GeneratedCodeInfo_Annotation& from);
3423
3424 inline GeneratedCodeInfo_Annotation& operator=(const GeneratedCodeInfo_Annotation& from) {
3425 CopyFrom(from);
3426 return *this;
3427 }
3428
3429 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
3430 return _internal_metadata_.unknown_fields();
3431 }
3432
3433 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
3434 return _internal_metadata_.mutable_unknown_fields();
3435 }
3436
3437 static const ::google::protobuf::Descriptor* descriptor();
3438 static const GeneratedCodeInfo_Annotation& default_instance();
3439
3440 void Swap(GeneratedCodeInfo_Annotation* other);
3441
3442 // implements Message ----------------------------------------------
3443
3444 inline GeneratedCodeInfo_Annotation* New() const { return New(NULL); }
3445
3446 GeneratedCodeInfo_Annotation* New(::google::protobuf::Arena* arena) const;
3447 void CopyFrom(const ::google::protobuf::Message& from);
3448 void MergeFrom(const ::google::protobuf::Message& from);
3449 void CopyFrom(const GeneratedCodeInfo_Annotation& from);
3450 void MergeFrom(const GeneratedCodeInfo_Annotation& from);
3451 void Clear();
3452 bool IsInitialized() const;
3453
3454 int ByteSize() const;
3455 bool MergePartialFromCodedStream(
3456 ::google::protobuf::io::CodedInputStream* input);
3457 void SerializeWithCachedSizes(
3458 ::google::protobuf::io::CodedOutputStream* output) const;
3459 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
3460 int GetCachedSize() const { return _cached_size_; }
3461 private:
3462 void SharedCtor();
3463 void SharedDtor();
3464 void SetCachedSize(int size) const;
3465 void InternalSwap(GeneratedCodeInfo_Annotation* other);
3466 private:
3467 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
3468 return _internal_metadata_.arena();
3469 }
3470 inline void* MaybeArenaPtr() const {
3471 return _internal_metadata_.raw_arena_ptr();
3472 }
3473 public:
3474
3475 ::google::protobuf::Metadata GetMetadata() const;
3476
3477 // nested types ----------------------------------------------------
3478
3479 // accessors -------------------------------------------------------
3480
3481 // repeated int32 path = 1 [packed = true];
3482 int path_size() const;
3483 void clear_path();
3484 static const int kPathFieldNumber = 1;
3485 ::google::protobuf::int32 path(int index) const;
3486 void set_path(int index, ::google::protobuf::int32 value);
3487 void add_path(::google::protobuf::int32 value);
3488 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
3489 path() const;
3490 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
3491 mutable_path();
3492
3493 // optional string source_file = 2;
3494 bool has_source_file() const;
3495 void clear_source_file();
3496 static const int kSourceFileFieldNumber = 2;
3497 const ::std::string& source_file() const;
3498 void set_source_file(const ::std::string& value);
3499 void set_source_file(const char* value);
3500 void set_source_file(const char* value, size_t size);
3501 ::std::string* mutable_source_file();
3502 ::std::string* release_source_file();
3503 void set_allocated_source_file(::std::string* source_file);
3504
3505 // optional int32 begin = 3;
3506 bool has_begin() const;
3507 void clear_begin();
3508 static const int kBeginFieldNumber = 3;
3509 ::google::protobuf::int32 begin() const;
3510 void set_begin(::google::protobuf::int32 value);
3511
3512 // optional int32 end = 4;
3513 bool has_end() const;
3514 void clear_end();
3515 static const int kEndFieldNumber = 4;
3516 ::google::protobuf::int32 end() const;
3517 void set_end(::google::protobuf::int32 value);
3518
3519 // @@protoc_insertion_point(class_scope:google.protobuf.GeneratedCodeInfo.Annotation)
3520 private:
3521 inline void set_has_source_file();
3522 inline void clear_has_source_file();
3523 inline void set_has_begin();
3524 inline void clear_has_begin();
3525 inline void set_has_end();
3526 inline void clear_has_end();
3527
3528 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
3529 ::google::protobuf::uint32 _has_bits_[1];
3530 mutable int _cached_size_;
3531 ::google::protobuf::RepeatedField< ::google::protobuf::int32 > path_;
3532 mutable int _path_cached_byte_size_;
3533 ::google::protobuf::internal::ArenaStringPtr source_file_;
3534 ::google::protobuf::int32 begin_;
3535 ::google::protobuf::int32 end_;
3536 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
3537 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
3538 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
3539
3540 void InitAsDefaultInstance();
3541 static GeneratedCodeInfo_Annotation* default_instance_;
3542 };
3543 // -------------------------------------------------------------------
3544
3545 class LIBPROTOBUF_EXPORT GeneratedCodeInfo : public ::google::protobuf::Message {
3546 public:
3547 GeneratedCodeInfo();
3548 virtual ~GeneratedCodeInfo();
3549
3550 GeneratedCodeInfo(const GeneratedCodeInfo& from);
3551
3552 inline GeneratedCodeInfo& operator=(const GeneratedCodeInfo& from) {
3553 CopyFrom(from);
3554 return *this;
3555 }
3556
3557 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
3558 return _internal_metadata_.unknown_fields();
3559 }
3560
3561 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
3562 return _internal_metadata_.mutable_unknown_fields();
3563 }
3564
3565 static const ::google::protobuf::Descriptor* descriptor();
3566 static const GeneratedCodeInfo& default_instance();
3567
3568 void Swap(GeneratedCodeInfo* other);
3569
3570 // implements Message ----------------------------------------------
3571
3572 inline GeneratedCodeInfo* New() const { return New(NULL); }
3573
3574 GeneratedCodeInfo* New(::google::protobuf::Arena* arena) const;
3575 void CopyFrom(const ::google::protobuf::Message& from);
3576 void MergeFrom(const ::google::protobuf::Message& from);
3577 void CopyFrom(const GeneratedCodeInfo& from);
3578 void MergeFrom(const GeneratedCodeInfo& from);
3579 void Clear();
3580 bool IsInitialized() const;
3581
3582 int ByteSize() const;
3583 bool MergePartialFromCodedStream(
3584 ::google::protobuf::io::CodedInputStream* input);
3585 void SerializeWithCachedSizes(
3586 ::google::protobuf::io::CodedOutputStream* output) const;
3587 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
3588 int GetCachedSize() const { return _cached_size_; }
3589 private:
3590 void SharedCtor();
3591 void SharedDtor();
3592 void SetCachedSize(int size) const;
3593 void InternalSwap(GeneratedCodeInfo* other);
3594 private:
3595 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
3596 return _internal_metadata_.arena();
3597 }
3598 inline void* MaybeArenaPtr() const {
3599 return _internal_metadata_.raw_arena_ptr();
3600 }
3601 public:
3602
3603 ::google::protobuf::Metadata GetMetadata() const;
3604
3605 // nested types ----------------------------------------------------
3606
3607 typedef GeneratedCodeInfo_Annotation Annotation;
3608
3609 // accessors -------------------------------------------------------
3610
3611 // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
3612 int annotation_size() const;
3613 void clear_annotation();
3614 static const int kAnnotationFieldNumber = 1;
3615 const ::google::protobuf::GeneratedCodeInfo_Annotation& annotation(int index) const;
3616 ::google::protobuf::GeneratedCodeInfo_Annotation* mutable_annotation(int index);
3617 ::google::protobuf::GeneratedCodeInfo_Annotation* add_annotation();
3618 ::google::protobuf::RepeatedPtrField< ::google::protobuf::GeneratedCodeInfo_Annotation >*
3619 mutable_annotation();
3620 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::GeneratedCodeInfo_Annotation >&
3621 annotation() const;
3622
3623 // @@protoc_insertion_point(class_scope:google.protobuf.GeneratedCodeInfo)
3624 private:
3625
3626 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
3627 ::google::protobuf::uint32 _has_bits_[1];
3628 mutable int _cached_size_;
3629 ::google::protobuf::RepeatedPtrField< ::google::protobuf::GeneratedCodeInfo_Annotation > annotation_;
3630 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
3631 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
3632 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
3633
3634 void InitAsDefaultInstance();
3635 static GeneratedCodeInfo* default_instance_;
3636 };
3637 // ===================================================================
3638
3639
3640 // ===================================================================
3641
3642 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
3643 // FileDescriptorSet
3644
3645 // repeated .google.protobuf.FileDescriptorProto file = 1;
3646 inline int FileDescriptorSet::file_size() const {
3647 return file_.size();
3648 }
3649 inline void FileDescriptorSet::clear_file() {
3650 file_.Clear();
3651 }
3652 inline const ::google::protobuf::FileDescriptorProto& FileDescriptorSet::file(int index) const {
3653 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorSet.file)
3654 return file_.Get(index);
3655 }
3656 inline ::google::protobuf::FileDescriptorProto* FileDescriptorSet::mutable_file(int index) {
3657 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorSet.file)
3658 return file_.Mutable(index);
3659 }
3660 inline ::google::protobuf::FileDescriptorProto* FileDescriptorSet::add_file() {
3661 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorSet.file)
3662 return file_.Add();
3663 }
3664 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >*
3665 FileDescriptorSet::mutable_file() {
3666 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorSet.file)
3667 return &file_;
3668 }
3669 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >&
3670 FileDescriptorSet::file() const {
3671 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorSet.file)
3672 return file_;
3673 }
3674
3675 // -------------------------------------------------------------------
3676
3677 // FileDescriptorProto
3678
3679 // optional string name = 1;
3680 inline bool FileDescriptorProto::has_name() const {
3681 return (_has_bits_[0] & 0x00000001u) != 0;
3682 }
3683 inline void FileDescriptorProto::set_has_name() {
3684 _has_bits_[0] |= 0x00000001u;
3685 }
3686 inline void FileDescriptorProto::clear_has_name() {
3687 _has_bits_[0] &= ~0x00000001u;
3688 }
3689 inline void FileDescriptorProto::clear_name() {
3690 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3691 clear_has_name();
3692 }
3693 inline const ::std::string& FileDescriptorProto::name() const {
3694 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.name)
3695 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3696 }
3697 inline void FileDescriptorProto::set_name(const ::std::string& value) {
3698 set_has_name();
3699 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
3700 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.name)
3701 }
3702 inline void FileDescriptorProto::set_name(const char* value) {
3703 set_has_name();
3704 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
3705 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.name)
3706 }
3707 inline void FileDescriptorProto::set_name(const char* value, size_t size) {
3708 set_has_name();
3709 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3710 ::std::string(reinterpret_cast<const char*>(value), size));
3711 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.name)
3712 }
3713 inline ::std::string* FileDescriptorProto::mutable_name() {
3714 set_has_name();
3715 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.name)
3716 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3717 }
3718 inline ::std::string* FileDescriptorProto::release_name() {
3719 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.name)
3720 clear_has_name();
3721 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3722 }
3723 inline void FileDescriptorProto::set_allocated_name(::std::string* name) {
3724 if (name != NULL) {
3725 set_has_name();
3726 } else {
3727 clear_has_name();
3728 }
3729 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
3730 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.name)
3731 }
3732
3733 // optional string package = 2;
3734 inline bool FileDescriptorProto::has_package() const {
3735 return (_has_bits_[0] & 0x00000002u) != 0;
3736 }
3737 inline void FileDescriptorProto::set_has_package() {
3738 _has_bits_[0] |= 0x00000002u;
3739 }
3740 inline void FileDescriptorProto::clear_has_package() {
3741 _has_bits_[0] &= ~0x00000002u;
3742 }
3743 inline void FileDescriptorProto::clear_package() {
3744 package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3745 clear_has_package();
3746 }
3747 inline const ::std::string& FileDescriptorProto::package() const {
3748 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.package)
3749 return package_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3750 }
3751 inline void FileDescriptorProto::set_package(const ::std::string& value) {
3752 set_has_package();
3753 package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
3754 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.package)
3755 }
3756 inline void FileDescriptorProto::set_package(const char* value) {
3757 set_has_package();
3758 package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
3759 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.package)
3760 }
3761 inline void FileDescriptorProto::set_package(const char* value, size_t size) {
3762 set_has_package();
3763 package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3764 ::std::string(reinterpret_cast<const char*>(value), size));
3765 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.package)
3766 }
3767 inline ::std::string* FileDescriptorProto::mutable_package() {
3768 set_has_package();
3769 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.package)
3770 return package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3771 }
3772 inline ::std::string* FileDescriptorProto::release_package() {
3773 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.package)
3774 clear_has_package();
3775 return package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3776 }
3777 inline void FileDescriptorProto::set_allocated_package(::std::string* package) {
3778 if (package != NULL) {
3779 set_has_package();
3780 } else {
3781 clear_has_package();
3782 }
3783 package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), package);
3784 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.package)
3785 }
3786
3787 // repeated string dependency = 3;
3788 inline int FileDescriptorProto::dependency_size() const {
3789 return dependency_.size();
3790 }
3791 inline void FileDescriptorProto::clear_dependency() {
3792 dependency_.Clear();
3793 }
3794 inline const ::std::string& FileDescriptorProto::dependency(int index) const {
3795 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.dependency)
3796 return dependency_.Get(index);
3797 }
3798 inline ::std::string* FileDescriptorProto::mutable_dependency(int index) {
3799 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.dependency)
3800 return dependency_.Mutable(index);
3801 }
3802 inline void FileDescriptorProto::set_dependency(int index, const ::std::string& value) {
3803 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.dependency)
3804 dependency_.Mutable(index)->assign(value);
3805 }
3806 inline void FileDescriptorProto::set_dependency(int index, const char* value) {
3807 dependency_.Mutable(index)->assign(value);
3808 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.dependency)
3809 }
3810 inline void FileDescriptorProto::set_dependency(int index, const char* value, size_t size) {
3811 dependency_.Mutable(index)->assign(
3812 reinterpret_cast<const char*>(value), size);
3813 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.dependency)
3814 }
3815 inline ::std::string* FileDescriptorProto::add_dependency() {
3816 // @@protoc_insertion_point(field_add_mutable:google.protobuf.FileDescriptorProto.dependency)
3817 return dependency_.Add();
3818 }
3819 inline void FileDescriptorProto::add_dependency(const ::std::string& value) {
3820 dependency_.Add()->assign(value);
3821 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.dependency)
3822 }
3823 inline void FileDescriptorProto::add_dependency(const char* value) {
3824 dependency_.Add()->assign(value);
3825 // @@protoc_insertion_point(field_add_char:google.protobuf.FileDescriptorProto.dependency)
3826 }
3827 inline void FileDescriptorProto::add_dependency(const char* value, size_t size) {
3828 dependency_.Add()->assign(reinterpret_cast<const char*>(value), size);
3829 // @@protoc_insertion_point(field_add_pointer:google.protobuf.FileDescriptorProto.dependency)
3830 }
3831 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
3832 FileDescriptorProto::dependency() const {
3833 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.dependency)
3834 return dependency_;
3835 }
3836 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
3837 FileDescriptorProto::mutable_dependency() {
3838 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.dependency)
3839 return &dependency_;
3840 }
3841
3842 // repeated int32 public_dependency = 10;
3843 inline int FileDescriptorProto::public_dependency_size() const {
3844 return public_dependency_.size();
3845 }
3846 inline void FileDescriptorProto::clear_public_dependency() {
3847 public_dependency_.Clear();
3848 }
3849 inline ::google::protobuf::int32 FileDescriptorProto::public_dependency(int index) const {
3850 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.public_dependency)
3851 return public_dependency_.Get(index);
3852 }
3853 inline void FileDescriptorProto::set_public_dependency(int index, ::google::protobuf::int32 value) {
3854 public_dependency_.Set(index, value);
3855 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.public_dependency)
3856 }
3857 inline void FileDescriptorProto::add_public_dependency(::google::protobuf::int32 value) {
3858 public_dependency_.Add(value);
3859 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.public_dependency)
3860 }
3861 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
3862 FileDescriptorProto::public_dependency() const {
3863 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.public_dependency)
3864 return public_dependency_;
3865 }
3866 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
3867 FileDescriptorProto::mutable_public_dependency() {
3868 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.public_dependency)
3869 return &public_dependency_;
3870 }
3871
3872 // repeated int32 weak_dependency = 11;
3873 inline int FileDescriptorProto::weak_dependency_size() const {
3874 return weak_dependency_.size();
3875 }
3876 inline void FileDescriptorProto::clear_weak_dependency() {
3877 weak_dependency_.Clear();
3878 }
3879 inline ::google::protobuf::int32 FileDescriptorProto::weak_dependency(int index) const {
3880 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.weak_dependency)
3881 return weak_dependency_.Get(index);
3882 }
3883 inline void FileDescriptorProto::set_weak_dependency(int index, ::google::protobuf::int32 value) {
3884 weak_dependency_.Set(index, value);
3885 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.weak_dependency)
3886 }
3887 inline void FileDescriptorProto::add_weak_dependency(::google::protobuf::int32 value) {
3888 weak_dependency_.Add(value);
3889 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.weak_dependency)
3890 }
3891 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
3892 FileDescriptorProto::weak_dependency() const {
3893 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.weak_dependency)
3894 return weak_dependency_;
3895 }
3896 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
3897 FileDescriptorProto::mutable_weak_dependency() {
3898 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.weak_dependency)
3899 return &weak_dependency_;
3900 }
3901
3902 // repeated .google.protobuf.DescriptorProto message_type = 4;
3903 inline int FileDescriptorProto::message_type_size() const {
3904 return message_type_.size();
3905 }
3906 inline void FileDescriptorProto::clear_message_type() {
3907 message_type_.Clear();
3908 }
3909 inline const ::google::protobuf::DescriptorProto& FileDescriptorProto::message_type(int index) const {
3910 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.message_type)
3911 return message_type_.Get(index);
3912 }
3913 inline ::google::protobuf::DescriptorProto* FileDescriptorProto::mutable_message_type(int index) {
3914 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.message_type)
3915 return message_type_.Mutable(index);
3916 }
3917 inline ::google::protobuf::DescriptorProto* FileDescriptorProto::add_message_type() {
3918 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.message_type)
3919 return message_type_.Add();
3920 }
3921 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >*
3922 FileDescriptorProto::mutable_message_type() {
3923 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.message_type)
3924 return &message_type_;
3925 }
3926 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >&
3927 FileDescriptorProto::message_type() const {
3928 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.message_type)
3929 return message_type_;
3930 }
3931
3932 // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
3933 inline int FileDescriptorProto::enum_type_size() const {
3934 return enum_type_.size();
3935 }
3936 inline void FileDescriptorProto::clear_enum_type() {
3937 enum_type_.Clear();
3938 }
3939 inline const ::google::protobuf::EnumDescriptorProto& FileDescriptorProto::enum_type(int index) const {
3940 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.enum_type)
3941 return enum_type_.Get(index);
3942 }
3943 inline ::google::protobuf::EnumDescriptorProto* FileDescriptorProto::mutable_enum_type(int index) {
3944 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.enum_type)
3945 return enum_type_.Mutable(index);
3946 }
3947 inline ::google::protobuf::EnumDescriptorProto* FileDescriptorProto::add_enum_type() {
3948 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.enum_type)
3949 return enum_type_.Add();
3950 }
3951 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >*
3952 FileDescriptorProto::mutable_enum_type() {
3953 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.enum_type)
3954 return &enum_type_;
3955 }
3956 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >&
3957 FileDescriptorProto::enum_type() const {
3958 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.enum_type)
3959 return enum_type_;
3960 }
3961
3962 // repeated .google.protobuf.ServiceDescriptorProto service = 6;
3963 inline int FileDescriptorProto::service_size() const {
3964 return service_.size();
3965 }
3966 inline void FileDescriptorProto::clear_service() {
3967 service_.Clear();
3968 }
3969 inline const ::google::protobuf::ServiceDescriptorProto& FileDescriptorProto::service(int index) const {
3970 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.service)
3971 return service_.Get(index);
3972 }
3973 inline ::google::protobuf::ServiceDescriptorProto* FileDescriptorProto::mutable_service(int index) {
3974 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.service)
3975 return service_.Mutable(index);
3976 }
3977 inline ::google::protobuf::ServiceDescriptorProto* FileDescriptorProto::add_service() {
3978 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.service)
3979 return service_.Add();
3980 }
3981 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >*
3982 FileDescriptorProto::mutable_service() {
3983 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.service)
3984 return &service_;
3985 }
3986 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >&
3987 FileDescriptorProto::service() const {
3988 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.service)
3989 return service_;
3990 }
3991
3992 // repeated .google.protobuf.FieldDescriptorProto extension = 7;
3993 inline int FileDescriptorProto::extension_size() const {
3994 return extension_.size();
3995 }
3996 inline void FileDescriptorProto::clear_extension() {
3997 extension_.Clear();
3998 }
3999 inline const ::google::protobuf::FieldDescriptorProto& FileDescriptorProto::extension(int index) const {
4000 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.extension)
4001 return extension_.Get(index);
4002 }
4003 inline ::google::protobuf::FieldDescriptorProto* FileDescriptorProto::mutable_extension(int index) {
4004 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.extension)
4005 return extension_.Mutable(index);
4006 }
4007 inline ::google::protobuf::FieldDescriptorProto* FileDescriptorProto::add_extension() {
4008 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.extension)
4009 return extension_.Add();
4010 }
4011 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
4012 FileDescriptorProto::mutable_extension() {
4013 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.extension)
4014 return &extension_;
4015 }
4016 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
4017 FileDescriptorProto::extension() const {
4018 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.extension)
4019 return extension_;
4020 }
4021
4022 // optional .google.protobuf.FileOptions options = 8;
4023 inline bool FileDescriptorProto::has_options() const {
4024 return (_has_bits_[0] & 0x00000200u) != 0;
4025 }
4026 inline void FileDescriptorProto::set_has_options() {
4027 _has_bits_[0] |= 0x00000200u;
4028 }
4029 inline void FileDescriptorProto::clear_has_options() {
4030 _has_bits_[0] &= ~0x00000200u;
4031 }
4032 inline void FileDescriptorProto::clear_options() {
4033 if (options_ != NULL) options_->::google::protobuf::FileOptions::Clear();
4034 clear_has_options();
4035 }
4036 inline const ::google::protobuf::FileOptions& FileDescriptorProto::options() const {
4037 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.options)
4038 return options_ != NULL ? *options_ : *default_instance_->options_;
4039 }
4040 inline ::google::protobuf::FileOptions* FileDescriptorProto::mutable_options() {
4041 set_has_options();
4042 if (options_ == NULL) {
4043 options_ = new ::google::protobuf::FileOptions;
4044 }
4045 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.options)
4046 return options_;
4047 }
4048 inline ::google::protobuf::FileOptions* FileDescriptorProto::release_options() {
4049 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.options)
4050 clear_has_options();
4051 ::google::protobuf::FileOptions* temp = options_;
4052 options_ = NULL;
4053 return temp;
4054 }
4055 inline void FileDescriptorProto::set_allocated_options(::google::protobuf::FileOptions* options) {
4056 delete options_;
4057 options_ = options;
4058 if (options) {
4059 set_has_options();
4060 } else {
4061 clear_has_options();
4062 }
4063 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.options)
4064 }
4065
4066 // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
4067 inline bool FileDescriptorProto::has_source_code_info() const {
4068 return (_has_bits_[0] & 0x00000400u) != 0;
4069 }
4070 inline void FileDescriptorProto::set_has_source_code_info() {
4071 _has_bits_[0] |= 0x00000400u;
4072 }
4073 inline void FileDescriptorProto::clear_has_source_code_info() {
4074 _has_bits_[0] &= ~0x00000400u;
4075 }
4076 inline void FileDescriptorProto::clear_source_code_info() {
4077 if (source_code_info_ != NULL) source_code_info_->::google::protobuf::SourceCodeInfo::Clear();
4078 clear_has_source_code_info();
4079 }
4080 inline const ::google::protobuf::SourceCodeInfo& FileDescriptorProto::source_code_info() const {
4081 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.source_code_info)
4082 return source_code_info_ != NULL ? *source_code_info_ : *default_instance_->source_code_info_;
4083 }
4084 inline ::google::protobuf::SourceCodeInfo* FileDescriptorProto::mutable_source_code_info() {
4085 set_has_source_code_info();
4086 if (source_code_info_ == NULL) {
4087 source_code_info_ = new ::google::protobuf::SourceCodeInfo;
4088 }
4089 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.source_code_info)
4090 return source_code_info_;
4091 }
4092 inline ::google::protobuf::SourceCodeInfo* FileDescriptorProto::release_source_code_info() {
4093 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.source_code_info)
4094 clear_has_source_code_info();
4095 ::google::protobuf::SourceCodeInfo* temp = source_code_info_;
4096 source_code_info_ = NULL;
4097 return temp;
4098 }
4099 inline void FileDescriptorProto::set_allocated_source_code_info(::google::protobuf::SourceCodeInfo* source_code_info) {
4100 delete source_code_info_;
4101 source_code_info_ = source_code_info;
4102 if (source_code_info) {
4103 set_has_source_code_info();
4104 } else {
4105 clear_has_source_code_info();
4106 }
4107 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.source_code_info)
4108 }
4109
4110 // optional string syntax = 12;
4111 inline bool FileDescriptorProto::has_syntax() const {
4112 return (_has_bits_[0] & 0x00000800u) != 0;
4113 }
4114 inline void FileDescriptorProto::set_has_syntax() {
4115 _has_bits_[0] |= 0x00000800u;
4116 }
4117 inline void FileDescriptorProto::clear_has_syntax() {
4118 _has_bits_[0] &= ~0x00000800u;
4119 }
4120 inline void FileDescriptorProto::clear_syntax() {
4121 syntax_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4122 clear_has_syntax();
4123 }
4124 inline const ::std::string& FileDescriptorProto::syntax() const {
4125 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.syntax)
4126 return syntax_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4127 }
4128 inline void FileDescriptorProto::set_syntax(const ::std::string& value) {
4129 set_has_syntax();
4130 syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4131 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.syntax)
4132 }
4133 inline void FileDescriptorProto::set_syntax(const char* value) {
4134 set_has_syntax();
4135 syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4136 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.syntax)
4137 }
4138 inline void FileDescriptorProto::set_syntax(const char* value, size_t size) {
4139 set_has_syntax();
4140 syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4141 ::std::string(reinterpret_cast<const char*>(value), size));
4142 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.syntax)
4143 }
4144 inline ::std::string* FileDescriptorProto::mutable_syntax() {
4145 set_has_syntax();
4146 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.syntax)
4147 return syntax_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4148 }
4149 inline ::std::string* FileDescriptorProto::release_syntax() {
4150 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.syntax)
4151 clear_has_syntax();
4152 return syntax_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4153 }
4154 inline void FileDescriptorProto::set_allocated_syntax(::std::string* syntax) {
4155 if (syntax != NULL) {
4156 set_has_syntax();
4157 } else {
4158 clear_has_syntax();
4159 }
4160 syntax_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), syntax);
4161 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.syntax)
4162 }
4163
4164 // -------------------------------------------------------------------
4165
4166 // DescriptorProto_ExtensionRange
4167
4168 // optional int32 start = 1;
4169 inline bool DescriptorProto_ExtensionRange::has_start() const {
4170 return (_has_bits_[0] & 0x00000001u) != 0;
4171 }
4172 inline void DescriptorProto_ExtensionRange::set_has_start() {
4173 _has_bits_[0] |= 0x00000001u;
4174 }
4175 inline void DescriptorProto_ExtensionRange::clear_has_start() {
4176 _has_bits_[0] &= ~0x00000001u;
4177 }
4178 inline void DescriptorProto_ExtensionRange::clear_start() {
4179 start_ = 0;
4180 clear_has_start();
4181 }
4182 inline ::google::protobuf::int32 DescriptorProto_ExtensionRange::start() const {
4183 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.start)
4184 return start_;
4185 }
4186 inline void DescriptorProto_ExtensionRange::set_start(::google::protobuf::int32 value) {
4187 set_has_start();
4188 start_ = value;
4189 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ExtensionRange.start)
4190 }
4191
4192 // optional int32 end = 2;
4193 inline bool DescriptorProto_ExtensionRange::has_end() const {
4194 return (_has_bits_[0] & 0x00000002u) != 0;
4195 }
4196 inline void DescriptorProto_ExtensionRange::set_has_end() {
4197 _has_bits_[0] |= 0x00000002u;
4198 }
4199 inline void DescriptorProto_ExtensionRange::clear_has_end() {
4200 _has_bits_[0] &= ~0x00000002u;
4201 }
4202 inline void DescriptorProto_ExtensionRange::clear_end() {
4203 end_ = 0;
4204 clear_has_end();
4205 }
4206 inline ::google::protobuf::int32 DescriptorProto_ExtensionRange::end() const {
4207 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.end)
4208 return end_;
4209 }
4210 inline void DescriptorProto_ExtensionRange::set_end(::google::protobuf::int32 value) {
4211 set_has_end();
4212 end_ = value;
4213 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ExtensionRange.end)
4214 }
4215
4216 // -------------------------------------------------------------------
4217
4218 // DescriptorProto_ReservedRange
4219
4220 // optional int32 start = 1;
4221 inline bool DescriptorProto_ReservedRange::has_start() const {
4222 return (_has_bits_[0] & 0x00000001u) != 0;
4223 }
4224 inline void DescriptorProto_ReservedRange::set_has_start() {
4225 _has_bits_[0] |= 0x00000001u;
4226 }
4227 inline void DescriptorProto_ReservedRange::clear_has_start() {
4228 _has_bits_[0] &= ~0x00000001u;
4229 }
4230 inline void DescriptorProto_ReservedRange::clear_start() {
4231 start_ = 0;
4232 clear_has_start();
4233 }
4234 inline ::google::protobuf::int32 DescriptorProto_ReservedRange::start() const {
4235 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ReservedRange.start)
4236 return start_;
4237 }
4238 inline void DescriptorProto_ReservedRange::set_start(::google::protobuf::int32 value) {
4239 set_has_start();
4240 start_ = value;
4241 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ReservedRange.start)
4242 }
4243
4244 // optional int32 end = 2;
4245 inline bool DescriptorProto_ReservedRange::has_end() const {
4246 return (_has_bits_[0] & 0x00000002u) != 0;
4247 }
4248 inline void DescriptorProto_ReservedRange::set_has_end() {
4249 _has_bits_[0] |= 0x00000002u;
4250 }
4251 inline void DescriptorProto_ReservedRange::clear_has_end() {
4252 _has_bits_[0] &= ~0x00000002u;
4253 }
4254 inline void DescriptorProto_ReservedRange::clear_end() {
4255 end_ = 0;
4256 clear_has_end();
4257 }
4258 inline ::google::protobuf::int32 DescriptorProto_ReservedRange::end() const {
4259 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ReservedRange.end)
4260 return end_;
4261 }
4262 inline void DescriptorProto_ReservedRange::set_end(::google::protobuf::int32 value) {
4263 set_has_end();
4264 end_ = value;
4265 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ReservedRange.end)
4266 }
4267
4268 // -------------------------------------------------------------------
4269
4270 // DescriptorProto
4271
4272 // optional string name = 1;
4273 inline bool DescriptorProto::has_name() const {
4274 return (_has_bits_[0] & 0x00000001u) != 0;
4275 }
4276 inline void DescriptorProto::set_has_name() {
4277 _has_bits_[0] |= 0x00000001u;
4278 }
4279 inline void DescriptorProto::clear_has_name() {
4280 _has_bits_[0] &= ~0x00000001u;
4281 }
4282 inline void DescriptorProto::clear_name() {
4283 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4284 clear_has_name();
4285 }
4286 inline const ::std::string& DescriptorProto::name() const {
4287 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.name)
4288 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4289 }
4290 inline void DescriptorProto::set_name(const ::std::string& value) {
4291 set_has_name();
4292 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4293 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.name)
4294 }
4295 inline void DescriptorProto::set_name(const char* value) {
4296 set_has_name();
4297 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4298 // @@protoc_insertion_point(field_set_char:google.protobuf.DescriptorProto.name)
4299 }
4300 inline void DescriptorProto::set_name(const char* value, size_t size) {
4301 set_has_name();
4302 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4303 ::std::string(reinterpret_cast<const char*>(value), size));
4304 // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto.name)
4305 }
4306 inline ::std::string* DescriptorProto::mutable_name() {
4307 set_has_name();
4308 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.name)
4309 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4310 }
4311 inline ::std::string* DescriptorProto::release_name() {
4312 // @@protoc_insertion_point(field_release:google.protobuf.DescriptorProto.name)
4313 clear_has_name();
4314 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4315 }
4316 inline void DescriptorProto::set_allocated_name(::std::string* name) {
4317 if (name != NULL) {
4318 set_has_name();
4319 } else {
4320 clear_has_name();
4321 }
4322 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
4323 // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProto.name)
4324 }
4325
4326 // repeated .google.protobuf.FieldDescriptorProto field = 2;
4327 inline int DescriptorProto::field_size() const {
4328 return field_.size();
4329 }
4330 inline void DescriptorProto::clear_field() {
4331 field_.Clear();
4332 }
4333 inline const ::google::protobuf::FieldDescriptorProto& DescriptorProto::field(int index) const {
4334 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.field)
4335 return field_.Get(index);
4336 }
4337 inline ::google::protobuf::FieldDescriptorProto* DescriptorProto::mutable_field(int index) {
4338 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.field)
4339 return field_.Mutable(index);
4340 }
4341 inline ::google::protobuf::FieldDescriptorProto* DescriptorProto::add_field() {
4342 // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.field)
4343 return field_.Add();
4344 }
4345 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
4346 DescriptorProto::mutable_field() {
4347 // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.field)
4348 return &field_;
4349 }
4350 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
4351 DescriptorProto::field() const {
4352 // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.field)
4353 return field_;
4354 }
4355
4356 // repeated .google.protobuf.FieldDescriptorProto extension = 6;
4357 inline int DescriptorProto::extension_size() const {
4358 return extension_.size();
4359 }
4360 inline void DescriptorProto::clear_extension() {
4361 extension_.Clear();
4362 }
4363 inline const ::google::protobuf::FieldDescriptorProto& DescriptorProto::extension(int index) const {
4364 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.extension)
4365 return extension_.Get(index);
4366 }
4367 inline ::google::protobuf::FieldDescriptorProto* DescriptorProto::mutable_extension(int index) {
4368 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.extension)
4369 return extension_.Mutable(index);
4370 }
4371 inline ::google::protobuf::FieldDescriptorProto* DescriptorProto::add_extension() {
4372 // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.extension)
4373 return extension_.Add();
4374 }
4375 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
4376 DescriptorProto::mutable_extension() {
4377 // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.extension)
4378 return &extension_;
4379 }
4380 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
4381 DescriptorProto::extension() const {
4382 // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.extension)
4383 return extension_;
4384 }
4385
4386 // repeated .google.protobuf.DescriptorProto nested_type = 3;
4387 inline int DescriptorProto::nested_type_size() const {
4388 return nested_type_.size();
4389 }
4390 inline void DescriptorProto::clear_nested_type() {
4391 nested_type_.Clear();
4392 }
4393 inline const ::google::protobuf::DescriptorProto& DescriptorProto::nested_type(int index) const {
4394 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.nested_type)
4395 return nested_type_.Get(index);
4396 }
4397 inline ::google::protobuf::DescriptorProto* DescriptorProto::mutable_nested_type(int index) {
4398 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.nested_type)
4399 return nested_type_.Mutable(index);
4400 }
4401 inline ::google::protobuf::DescriptorProto* DescriptorProto::add_nested_type() {
4402 // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.nested_type)
4403 return nested_type_.Add();
4404 }
4405 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >*
4406 DescriptorProto::mutable_nested_type() {
4407 // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.nested_type)
4408 return &nested_type_;
4409 }
4410 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >&
4411 DescriptorProto::nested_type() const {
4412 // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.nested_type)
4413 return nested_type_;
4414 }
4415
4416 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
4417 inline int DescriptorProto::enum_type_size() const {
4418 return enum_type_.size();
4419 }
4420 inline void DescriptorProto::clear_enum_type() {
4421 enum_type_.Clear();
4422 }
4423 inline const ::google::protobuf::EnumDescriptorProto& DescriptorProto::enum_type(int index) const {
4424 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.enum_type)
4425 return enum_type_.Get(index);
4426 }
4427 inline ::google::protobuf::EnumDescriptorProto* DescriptorProto::mutable_enum_type(int index) {
4428 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.enum_type)
4429 return enum_type_.Mutable(index);
4430 }
4431 inline ::google::protobuf::EnumDescriptorProto* DescriptorProto::add_enum_type() {
4432 // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.enum_type)
4433 return enum_type_.Add();
4434 }
4435 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >*
4436 DescriptorProto::mutable_enum_type() {
4437 // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.enum_type)
4438 return &enum_type_;
4439 }
4440 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >&
4441 DescriptorProto::enum_type() const {
4442 // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.enum_type)
4443 return enum_type_;
4444 }
4445
4446 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
4447 inline int DescriptorProto::extension_range_size() const {
4448 return extension_range_.size();
4449 }
4450 inline void DescriptorProto::clear_extension_range() {
4451 extension_range_.Clear();
4452 }
4453 inline const ::google::protobuf::DescriptorProto_ExtensionRange& DescriptorProto::extension_range(int index) const {
4454 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.extension_range)
4455 return extension_range_.Get(index);
4456 }
4457 inline ::google::protobuf::DescriptorProto_ExtensionRange* DescriptorProto::mutable_extension_range(int index) {
4458 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.extension_range)
4459 return extension_range_.Mutable(index);
4460 }
4461 inline ::google::protobuf::DescriptorProto_ExtensionRange* DescriptorProto::add_extension_range() {
4462 // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.extension_range)
4463 return extension_range_.Add();
4464 }
4465 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >*
4466 DescriptorProto::mutable_extension_range() {
4467 // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.extension_range)
4468 return &extension_range_;
4469 }
4470 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >&
4471 DescriptorProto::extension_range() const {
4472 // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.extension_range)
4473 return extension_range_;
4474 }
4475
4476 // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
4477 inline int DescriptorProto::oneof_decl_size() const {
4478 return oneof_decl_.size();
4479 }
4480 inline void DescriptorProto::clear_oneof_decl() {
4481 oneof_decl_.Clear();
4482 }
4483 inline const ::google::protobuf::OneofDescriptorProto& DescriptorProto::oneof_decl(int index) const {
4484 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.oneof_decl)
4485 return oneof_decl_.Get(index);
4486 }
4487 inline ::google::protobuf::OneofDescriptorProto* DescriptorProto::mutable_oneof_decl(int index) {
4488 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.oneof_decl)
4489 return oneof_decl_.Mutable(index);
4490 }
4491 inline ::google::protobuf::OneofDescriptorProto* DescriptorProto::add_oneof_decl() {
4492 // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.oneof_decl)
4493 return oneof_decl_.Add();
4494 }
4495 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorProto >*
4496 DescriptorProto::mutable_oneof_decl() {
4497 // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.oneof_decl)
4498 return &oneof_decl_;
4499 }
4500 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorProto >&
4501 DescriptorProto::oneof_decl() const {
4502 // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.oneof_decl)
4503 return oneof_decl_;
4504 }
4505
4506 // optional .google.protobuf.MessageOptions options = 7;
4507 inline bool DescriptorProto::has_options() const {
4508 return (_has_bits_[0] & 0x00000080u) != 0;
4509 }
4510 inline void DescriptorProto::set_has_options() {
4511 _has_bits_[0] |= 0x00000080u;
4512 }
4513 inline void DescriptorProto::clear_has_options() {
4514 _has_bits_[0] &= ~0x00000080u;
4515 }
4516 inline void DescriptorProto::clear_options() {
4517 if (options_ != NULL) options_->::google::protobuf::MessageOptions::Clear();
4518 clear_has_options();
4519 }
4520 inline const ::google::protobuf::MessageOptions& DescriptorProto::options() const {
4521 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.options)
4522 return options_ != NULL ? *options_ : *default_instance_->options_;
4523 }
4524 inline ::google::protobuf::MessageOptions* DescriptorProto::mutable_options() {
4525 set_has_options();
4526 if (options_ == NULL) {
4527 options_ = new ::google::protobuf::MessageOptions;
4528 }
4529 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.options)
4530 return options_;
4531 }
4532 inline ::google::protobuf::MessageOptions* DescriptorProto::release_options() {
4533 // @@protoc_insertion_point(field_release:google.protobuf.DescriptorProto.options)
4534 clear_has_options();
4535 ::google::protobuf::MessageOptions* temp = options_;
4536 options_ = NULL;
4537 return temp;
4538 }
4539 inline void DescriptorProto::set_allocated_options(::google::protobuf::MessageOptions* options) {
4540 delete options_;
4541 options_ = options;
4542 if (options) {
4543 set_has_options();
4544 } else {
4545 clear_has_options();
4546 }
4547 // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProto.options)
4548 }
4549
4550 // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
4551 inline int DescriptorProto::reserved_range_size() const {
4552 return reserved_range_.size();
4553 }
4554 inline void DescriptorProto::clear_reserved_range() {
4555 reserved_range_.Clear();
4556 }
4557 inline const ::google::protobuf::DescriptorProto_ReservedRange& DescriptorProto::reserved_range(int index) const {
4558 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.reserved_range)
4559 return reserved_range_.Get(index);
4560 }
4561 inline ::google::protobuf::DescriptorProto_ReservedRange* DescriptorProto::mutable_reserved_range(int index) {
4562 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.reserved_range)
4563 return reserved_range_.Mutable(index);
4564 }
4565 inline ::google::protobuf::DescriptorProto_ReservedRange* DescriptorProto::add_reserved_range() {
4566 // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved_range)
4567 return reserved_range_.Add();
4568 }
4569 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ReservedRange >*
4570 DescriptorProto::mutable_reserved_range() {
4571 // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.reserved_range)
4572 return &reserved_range_;
4573 }
4574 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ReservedRange >&
4575 DescriptorProto::reserved_range() const {
4576 // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.reserved_range)
4577 return reserved_range_;
4578 }
4579
4580 // repeated string reserved_name = 10;
4581 inline int DescriptorProto::reserved_name_size() const {
4582 return reserved_name_.size();
4583 }
4584 inline void DescriptorProto::clear_reserved_name() {
4585 reserved_name_.Clear();
4586 }
4587 inline const ::std::string& DescriptorProto::reserved_name(int index) const {
4588 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.reserved_name)
4589 return reserved_name_.Get(index);
4590 }
4591 inline ::std::string* DescriptorProto::mutable_reserved_name(int index) {
4592 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.reserved_name)
4593 return reserved_name_.Mutable(index);
4594 }
4595 inline void DescriptorProto::set_reserved_name(int index, const ::std::string& value) {
4596 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.reserved_name)
4597 reserved_name_.Mutable(index)->assign(value);
4598 }
4599 inline void DescriptorProto::set_reserved_name(int index, const char* value) {
4600 reserved_name_.Mutable(index)->assign(value);
4601 // @@protoc_insertion_point(field_set_char:google.protobuf.DescriptorProto.reserved_name)
4602 }
4603 inline void DescriptorProto::set_reserved_name(int index, const char* value, size_t size) {
4604 reserved_name_.Mutable(index)->assign(
4605 reinterpret_cast<const char*>(value), size);
4606 // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto.reserved_name)
4607 }
4608 inline ::std::string* DescriptorProto::add_reserved_name() {
4609 // @@protoc_insertion_point(field_add_mutable:google.protobuf.DescriptorProto.reserved_name)
4610 return reserved_name_.Add();
4611 }
4612 inline void DescriptorProto::add_reserved_name(const ::std::string& value) {
4613 reserved_name_.Add()->assign(value);
4614 // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved_name)
4615 }
4616 inline void DescriptorProto::add_reserved_name(const char* value) {
4617 reserved_name_.Add()->assign(value);
4618 // @@protoc_insertion_point(field_add_char:google.protobuf.DescriptorProto.reserved_name)
4619 }
4620 inline void DescriptorProto::add_reserved_name(const char* value, size_t size) {
4621 reserved_name_.Add()->assign(reinterpret_cast<const char*>(value), size);
4622 // @@protoc_insertion_point(field_add_pointer:google.protobuf.DescriptorProto.reserved_name)
4623 }
4624 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
4625 DescriptorProto::reserved_name() const {
4626 // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.reserved_name)
4627 return reserved_name_;
4628 }
4629 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
4630 DescriptorProto::mutable_reserved_name() {
4631 // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.reserved_name)
4632 return &reserved_name_;
4633 }
4634
4635 // -------------------------------------------------------------------
4636
4637 // FieldDescriptorProto
4638
4639 // optional string name = 1;
4640 inline bool FieldDescriptorProto::has_name() const {
4641 return (_has_bits_[0] & 0x00000001u) != 0;
4642 }
4643 inline void FieldDescriptorProto::set_has_name() {
4644 _has_bits_[0] |= 0x00000001u;
4645 }
4646 inline void FieldDescriptorProto::clear_has_name() {
4647 _has_bits_[0] &= ~0x00000001u;
4648 }
4649 inline void FieldDescriptorProto::clear_name() {
4650 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4651 clear_has_name();
4652 }
4653 inline const ::std::string& FieldDescriptorProto::name() const {
4654 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.name)
4655 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4656 }
4657 inline void FieldDescriptorProto::set_name(const ::std::string& value) {
4658 set_has_name();
4659 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4660 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.name)
4661 }
4662 inline void FieldDescriptorProto::set_name(const char* value) {
4663 set_has_name();
4664 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4665 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.name)
4666 }
4667 inline void FieldDescriptorProto::set_name(const char* value, size_t size) {
4668 set_has_name();
4669 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4670 ::std::string(reinterpret_cast<const char*>(value), size));
4671 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.name)
4672 }
4673 inline ::std::string* FieldDescriptorProto::mutable_name() {
4674 set_has_name();
4675 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.name)
4676 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4677 }
4678 inline ::std::string* FieldDescriptorProto::release_name() {
4679 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.name)
4680 clear_has_name();
4681 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4682 }
4683 inline void FieldDescriptorProto::set_allocated_name(::std::string* name) {
4684 if (name != NULL) {
4685 set_has_name();
4686 } else {
4687 clear_has_name();
4688 }
4689 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
4690 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.name)
4691 }
4692
4693 // optional int32 number = 3;
4694 inline bool FieldDescriptorProto::has_number() const {
4695 return (_has_bits_[0] & 0x00000002u) != 0;
4696 }
4697 inline void FieldDescriptorProto::set_has_number() {
4698 _has_bits_[0] |= 0x00000002u;
4699 }
4700 inline void FieldDescriptorProto::clear_has_number() {
4701 _has_bits_[0] &= ~0x00000002u;
4702 }
4703 inline void FieldDescriptorProto::clear_number() {
4704 number_ = 0;
4705 clear_has_number();
4706 }
4707 inline ::google::protobuf::int32 FieldDescriptorProto::number() const {
4708 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.number)
4709 return number_;
4710 }
4711 inline void FieldDescriptorProto::set_number(::google::protobuf::int32 value) {
4712 set_has_number();
4713 number_ = value;
4714 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.number)
4715 }
4716
4717 // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
4718 inline bool FieldDescriptorProto::has_label() const {
4719 return (_has_bits_[0] & 0x00000004u) != 0;
4720 }
4721 inline void FieldDescriptorProto::set_has_label() {
4722 _has_bits_[0] |= 0x00000004u;
4723 }
4724 inline void FieldDescriptorProto::clear_has_label() {
4725 _has_bits_[0] &= ~0x00000004u;
4726 }
4727 inline void FieldDescriptorProto::clear_label() {
4728 label_ = 1;
4729 clear_has_label();
4730 }
4731 inline ::google::protobuf::FieldDescriptorProto_Label FieldDescriptorProto::label() const {
4732 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.label)
4733 return static_cast< ::google::protobuf::FieldDescriptorProto_Label >(label_);
4734 }
4735 inline void FieldDescriptorProto::set_label(::google::protobuf::FieldDescriptorProto_Label value) {
4736 assert(::google::protobuf::FieldDescriptorProto_Label_IsValid(value));
4737 set_has_label();
4738 label_ = value;
4739 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.label)
4740 }
4741
4742 // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
4743 inline bool FieldDescriptorProto::has_type() const {
4744 return (_has_bits_[0] & 0x00000008u) != 0;
4745 }
4746 inline void FieldDescriptorProto::set_has_type() {
4747 _has_bits_[0] |= 0x00000008u;
4748 }
4749 inline void FieldDescriptorProto::clear_has_type() {
4750 _has_bits_[0] &= ~0x00000008u;
4751 }
4752 inline void FieldDescriptorProto::clear_type() {
4753 type_ = 1;
4754 clear_has_type();
4755 }
4756 inline ::google::protobuf::FieldDescriptorProto_Type FieldDescriptorProto::type() const {
4757 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.type)
4758 return static_cast< ::google::protobuf::FieldDescriptorProto_Type >(type_);
4759 }
4760 inline void FieldDescriptorProto::set_type(::google::protobuf::FieldDescriptorProto_Type value) {
4761 assert(::google::protobuf::FieldDescriptorProto_Type_IsValid(value));
4762 set_has_type();
4763 type_ = value;
4764 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.type)
4765 }
4766
4767 // optional string type_name = 6;
4768 inline bool FieldDescriptorProto::has_type_name() const {
4769 return (_has_bits_[0] & 0x00000010u) != 0;
4770 }
4771 inline void FieldDescriptorProto::set_has_type_name() {
4772 _has_bits_[0] |= 0x00000010u;
4773 }
4774 inline void FieldDescriptorProto::clear_has_type_name() {
4775 _has_bits_[0] &= ~0x00000010u;
4776 }
4777 inline void FieldDescriptorProto::clear_type_name() {
4778 type_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4779 clear_has_type_name();
4780 }
4781 inline const ::std::string& FieldDescriptorProto::type_name() const {
4782 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.type_name)
4783 return type_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4784 }
4785 inline void FieldDescriptorProto::set_type_name(const ::std::string& value) {
4786 set_has_type_name();
4787 type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4788 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.type_name)
4789 }
4790 inline void FieldDescriptorProto::set_type_name(const char* value) {
4791 set_has_type_name();
4792 type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4793 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.type_name)
4794 }
4795 inline void FieldDescriptorProto::set_type_name(const char* value, size_t size) {
4796 set_has_type_name();
4797 type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4798 ::std::string(reinterpret_cast<const char*>(value), size));
4799 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.type_name)
4800 }
4801 inline ::std::string* FieldDescriptorProto::mutable_type_name() {
4802 set_has_type_name();
4803 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.type_name)
4804 return type_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4805 }
4806 inline ::std::string* FieldDescriptorProto::release_type_name() {
4807 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.type_name)
4808 clear_has_type_name();
4809 return type_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4810 }
4811 inline void FieldDescriptorProto::set_allocated_type_name(::std::string* type_name) {
4812 if (type_name != NULL) {
4813 set_has_type_name();
4814 } else {
4815 clear_has_type_name();
4816 }
4817 type_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type_name);
4818 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.type_name)
4819 }
4820
4821 // optional string extendee = 2;
4822 inline bool FieldDescriptorProto::has_extendee() const {
4823 return (_has_bits_[0] & 0x00000020u) != 0;
4824 }
4825 inline void FieldDescriptorProto::set_has_extendee() {
4826 _has_bits_[0] |= 0x00000020u;
4827 }
4828 inline void FieldDescriptorProto::clear_has_extendee() {
4829 _has_bits_[0] &= ~0x00000020u;
4830 }
4831 inline void FieldDescriptorProto::clear_extendee() {
4832 extendee_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4833 clear_has_extendee();
4834 }
4835 inline const ::std::string& FieldDescriptorProto::extendee() const {
4836 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.extendee)
4837 return extendee_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4838 }
4839 inline void FieldDescriptorProto::set_extendee(const ::std::string& value) {
4840 set_has_extendee();
4841 extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4842 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.extendee)
4843 }
4844 inline void FieldDescriptorProto::set_extendee(const char* value) {
4845 set_has_extendee();
4846 extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4847 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.extendee)
4848 }
4849 inline void FieldDescriptorProto::set_extendee(const char* value, size_t size) {
4850 set_has_extendee();
4851 extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4852 ::std::string(reinterpret_cast<const char*>(value), size));
4853 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.extendee)
4854 }
4855 inline ::std::string* FieldDescriptorProto::mutable_extendee() {
4856 set_has_extendee();
4857 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.extendee)
4858 return extendee_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4859 }
4860 inline ::std::string* FieldDescriptorProto::release_extendee() {
4861 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.extendee)
4862 clear_has_extendee();
4863 return extendee_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4864 }
4865 inline void FieldDescriptorProto::set_allocated_extendee(::std::string* extendee) {
4866 if (extendee != NULL) {
4867 set_has_extendee();
4868 } else {
4869 clear_has_extendee();
4870 }
4871 extendee_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), extendee);
4872 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.extendee)
4873 }
4874
4875 // optional string default_value = 7;
4876 inline bool FieldDescriptorProto::has_default_value() const {
4877 return (_has_bits_[0] & 0x00000040u) != 0;
4878 }
4879 inline void FieldDescriptorProto::set_has_default_value() {
4880 _has_bits_[0] |= 0x00000040u;
4881 }
4882 inline void FieldDescriptorProto::clear_has_default_value() {
4883 _has_bits_[0] &= ~0x00000040u;
4884 }
4885 inline void FieldDescriptorProto::clear_default_value() {
4886 default_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4887 clear_has_default_value();
4888 }
4889 inline const ::std::string& FieldDescriptorProto::default_value() const {
4890 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.default_value)
4891 return default_value_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4892 }
4893 inline void FieldDescriptorProto::set_default_value(const ::std::string& value) {
4894 set_has_default_value();
4895 default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4896 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.default_value)
4897 }
4898 inline void FieldDescriptorProto::set_default_value(const char* value) {
4899 set_has_default_value();
4900 default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4901 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.default_value)
4902 }
4903 inline void FieldDescriptorProto::set_default_value(const char* value, size_t size) {
4904 set_has_default_value();
4905 default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4906 ::std::string(reinterpret_cast<const char*>(value), size));
4907 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.default_value)
4908 }
4909 inline ::std::string* FieldDescriptorProto::mutable_default_value() {
4910 set_has_default_value();
4911 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.default_value)
4912 return default_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4913 }
4914 inline ::std::string* FieldDescriptorProto::release_default_value() {
4915 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.default_value)
4916 clear_has_default_value();
4917 return default_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4918 }
4919 inline void FieldDescriptorProto::set_allocated_default_value(::std::string* default_value) {
4920 if (default_value != NULL) {
4921 set_has_default_value();
4922 } else {
4923 clear_has_default_value();
4924 }
4925 default_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), default_value);
4926 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.default_value)
4927 }
4928
4929 // optional int32 oneof_index = 9;
4930 inline bool FieldDescriptorProto::has_oneof_index() const {
4931 return (_has_bits_[0] & 0x00000080u) != 0;
4932 }
4933 inline void FieldDescriptorProto::set_has_oneof_index() {
4934 _has_bits_[0] |= 0x00000080u;
4935 }
4936 inline void FieldDescriptorProto::clear_has_oneof_index() {
4937 _has_bits_[0] &= ~0x00000080u;
4938 }
4939 inline void FieldDescriptorProto::clear_oneof_index() {
4940 oneof_index_ = 0;
4941 clear_has_oneof_index();
4942 }
4943 inline ::google::protobuf::int32 FieldDescriptorProto::oneof_index() const {
4944 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.oneof_index)
4945 return oneof_index_;
4946 }
4947 inline void FieldDescriptorProto::set_oneof_index(::google::protobuf::int32 value) {
4948 set_has_oneof_index();
4949 oneof_index_ = value;
4950 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.oneof_index)
4951 }
4952
4953 // optional string json_name = 10;
4954 inline bool FieldDescriptorProto::has_json_name() const {
4955 return (_has_bits_[0] & 0x00000100u) != 0;
4956 }
4957 inline void FieldDescriptorProto::set_has_json_name() {
4958 _has_bits_[0] |= 0x00000100u;
4959 }
4960 inline void FieldDescriptorProto::clear_has_json_name() {
4961 _has_bits_[0] &= ~0x00000100u;
4962 }
4963 inline void FieldDescriptorProto::clear_json_name() {
4964 json_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4965 clear_has_json_name();
4966 }
4967 inline const ::std::string& FieldDescriptorProto::json_name() const {
4968 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.json_name)
4969 return json_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4970 }
4971 inline void FieldDescriptorProto::set_json_name(const ::std::string& value) {
4972 set_has_json_name();
4973 json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4974 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.json_name)
4975 }
4976 inline void FieldDescriptorProto::set_json_name(const char* value) {
4977 set_has_json_name();
4978 json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4979 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.json_name)
4980 }
4981 inline void FieldDescriptorProto::set_json_name(const char* value, size_t size) {
4982 set_has_json_name();
4983 json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4984 ::std::string(reinterpret_cast<const char*>(value), size));
4985 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.json_name)
4986 }
4987 inline ::std::string* FieldDescriptorProto::mutable_json_name() {
4988 set_has_json_name();
4989 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.json_name)
4990 return json_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4991 }
4992 inline ::std::string* FieldDescriptorProto::release_json_name() {
4993 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.json_name)
4994 clear_has_json_name();
4995 return json_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4996 }
4997 inline void FieldDescriptorProto::set_allocated_json_name(::std::string* json_name) {
4998 if (json_name != NULL) {
4999 set_has_json_name();
5000 } else {
5001 clear_has_json_name();
5002 }
5003 json_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), json_name);
5004 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.json_name)
5005 }
5006
5007 // optional .google.protobuf.FieldOptions options = 8;
5008 inline bool FieldDescriptorProto::has_options() const {
5009 return (_has_bits_[0] & 0x00000200u) != 0;
5010 }
5011 inline void FieldDescriptorProto::set_has_options() {
5012 _has_bits_[0] |= 0x00000200u;
5013 }
5014 inline void FieldDescriptorProto::clear_has_options() {
5015 _has_bits_[0] &= ~0x00000200u;
5016 }
5017 inline void FieldDescriptorProto::clear_options() {
5018 if (options_ != NULL) options_->::google::protobuf::FieldOptions::Clear();
5019 clear_has_options();
5020 }
5021 inline const ::google::protobuf::FieldOptions& FieldDescriptorProto::options() const {
5022 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.options)
5023 return options_ != NULL ? *options_ : *default_instance_->options_;
5024 }
5025 inline ::google::protobuf::FieldOptions* FieldDescriptorProto::mutable_options() {
5026 set_has_options();
5027 if (options_ == NULL) {
5028 options_ = new ::google::protobuf::FieldOptions;
5029 }
5030 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.options)
5031 return options_;
5032 }
5033 inline ::google::protobuf::FieldOptions* FieldDescriptorProto::release_options() {
5034 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.options)
5035 clear_has_options();
5036 ::google::protobuf::FieldOptions* temp = options_;
5037 options_ = NULL;
5038 return temp;
5039 }
5040 inline void FieldDescriptorProto::set_allocated_options(::google::protobuf::FieldOptions* options) {
5041 delete options_;
5042 options_ = options;
5043 if (options) {
5044 set_has_options();
5045 } else {
5046 clear_has_options();
5047 }
5048 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.options)
5049 }
5050
5051 // -------------------------------------------------------------------
5052
5053 // OneofDescriptorProto
5054
5055 // optional string name = 1;
5056 inline bool OneofDescriptorProto::has_name() const {
5057 return (_has_bits_[0] & 0x00000001u) != 0;
5058 }
5059 inline void OneofDescriptorProto::set_has_name() {
5060 _has_bits_[0] |= 0x00000001u;
5061 }
5062 inline void OneofDescriptorProto::clear_has_name() {
5063 _has_bits_[0] &= ~0x00000001u;
5064 }
5065 inline void OneofDescriptorProto::clear_name() {
5066 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5067 clear_has_name();
5068 }
5069 inline const ::std::string& OneofDescriptorProto::name() const {
5070 // @@protoc_insertion_point(field_get:google.protobuf.OneofDescriptorProto.name)
5071 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5072 }
5073 inline void OneofDescriptorProto::set_name(const ::std::string& value) {
5074 set_has_name();
5075 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
5076 // @@protoc_insertion_point(field_set:google.protobuf.OneofDescriptorProto.name)
5077 }
5078 inline void OneofDescriptorProto::set_name(const char* value) {
5079 set_has_name();
5080 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
5081 // @@protoc_insertion_point(field_set_char:google.protobuf.OneofDescriptorProto.name)
5082 }
5083 inline void OneofDescriptorProto::set_name(const char* value, size_t size) {
5084 set_has_name();
5085 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5086 ::std::string(reinterpret_cast<const char*>(value), size));
5087 // @@protoc_insertion_point(field_set_pointer:google.protobuf.OneofDescriptorProto.name)
5088 }
5089 inline ::std::string* OneofDescriptorProto::mutable_name() {
5090 set_has_name();
5091 // @@protoc_insertion_point(field_mutable:google.protobuf.OneofDescriptorProto.name)
5092 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5093 }
5094 inline ::std::string* OneofDescriptorProto::release_name() {
5095 // @@protoc_insertion_point(field_release:google.protobuf.OneofDescriptorProto.name)
5096 clear_has_name();
5097 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5098 }
5099 inline void OneofDescriptorProto::set_allocated_name(::std::string* name) {
5100 if (name != NULL) {
5101 set_has_name();
5102 } else {
5103 clear_has_name();
5104 }
5105 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
5106 // @@protoc_insertion_point(field_set_allocated:google.protobuf.OneofDescriptorProto.name)
5107 }
5108
5109 // -------------------------------------------------------------------
5110
5111 // EnumDescriptorProto
5112
5113 // optional string name = 1;
5114 inline bool EnumDescriptorProto::has_name() const {
5115 return (_has_bits_[0] & 0x00000001u) != 0;
5116 }
5117 inline void EnumDescriptorProto::set_has_name() {
5118 _has_bits_[0] |= 0x00000001u;
5119 }
5120 inline void EnumDescriptorProto::clear_has_name() {
5121 _has_bits_[0] &= ~0x00000001u;
5122 }
5123 inline void EnumDescriptorProto::clear_name() {
5124 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5125 clear_has_name();
5126 }
5127 inline const ::std::string& EnumDescriptorProto::name() const {
5128 // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.name)
5129 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5130 }
5131 inline void EnumDescriptorProto::set_name(const ::std::string& value) {
5132 set_has_name();
5133 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
5134 // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.name)
5135 }
5136 inline void EnumDescriptorProto::set_name(const char* value) {
5137 set_has_name();
5138 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
5139 // @@protoc_insertion_point(field_set_char:google.protobuf.EnumDescriptorProto.name)
5140 }
5141 inline void EnumDescriptorProto::set_name(const char* value, size_t size) {
5142 set_has_name();
5143 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5144 ::std::string(reinterpret_cast<const char*>(value), size));
5145 // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumDescriptorProto.name)
5146 }
5147 inline ::std::string* EnumDescriptorProto::mutable_name() {
5148 set_has_name();
5149 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.name)
5150 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5151 }
5152 inline ::std::string* EnumDescriptorProto::release_name() {
5153 // @@protoc_insertion_point(field_release:google.protobuf.EnumDescriptorProto.name)
5154 clear_has_name();
5155 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5156 }
5157 inline void EnumDescriptorProto::set_allocated_name(::std::string* name) {
5158 if (name != NULL) {
5159 set_has_name();
5160 } else {
5161 clear_has_name();
5162 }
5163 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
5164 // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumDescriptorProto.name)
5165 }
5166
5167 // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
5168 inline int EnumDescriptorProto::value_size() const {
5169 return value_.size();
5170 }
5171 inline void EnumDescriptorProto::clear_value() {
5172 value_.Clear();
5173 }
5174 inline const ::google::protobuf::EnumValueDescriptorProto& EnumDescriptorProto::value(int index) const {
5175 // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.value)
5176 return value_.Get(index);
5177 }
5178 inline ::google::protobuf::EnumValueDescriptorProto* EnumDescriptorProto::mutable_value(int index) {
5179 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.value)
5180 return value_.Mutable(index);
5181 }
5182 inline ::google::protobuf::EnumValueDescriptorProto* EnumDescriptorProto::add_value() {
5183 // @@protoc_insertion_point(field_add:google.protobuf.EnumDescriptorProto.value)
5184 return value_.Add();
5185 }
5186 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >*
5187 EnumDescriptorProto::mutable_value() {
5188 // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumDescriptorProto.value)
5189 return &value_;
5190 }
5191 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >&
5192 EnumDescriptorProto::value() const {
5193 // @@protoc_insertion_point(field_list:google.protobuf.EnumDescriptorProto.value)
5194 return value_;
5195 }
5196
5197 // optional .google.protobuf.EnumOptions options = 3;
5198 inline bool EnumDescriptorProto::has_options() const {
5199 return (_has_bits_[0] & 0x00000004u) != 0;
5200 }
5201 inline void EnumDescriptorProto::set_has_options() {
5202 _has_bits_[0] |= 0x00000004u;
5203 }
5204 inline void EnumDescriptorProto::clear_has_options() {
5205 _has_bits_[0] &= ~0x00000004u;
5206 }
5207 inline void EnumDescriptorProto::clear_options() {
5208 if (options_ != NULL) options_->::google::protobuf::EnumOptions::Clear();
5209 clear_has_options();
5210 }
5211 inline const ::google::protobuf::EnumOptions& EnumDescriptorProto::options() const {
5212 // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.options)
5213 return options_ != NULL ? *options_ : *default_instance_->options_;
5214 }
5215 inline ::google::protobuf::EnumOptions* EnumDescriptorProto::mutable_options() {
5216 set_has_options();
5217 if (options_ == NULL) {
5218 options_ = new ::google::protobuf::EnumOptions;
5219 }
5220 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.options)
5221 return options_;
5222 }
5223 inline ::google::protobuf::EnumOptions* EnumDescriptorProto::release_options() {
5224 // @@protoc_insertion_point(field_release:google.protobuf.EnumDescriptorProto.options)
5225 clear_has_options();
5226 ::google::protobuf::EnumOptions* temp = options_;
5227 options_ = NULL;
5228 return temp;
5229 }
5230 inline void EnumDescriptorProto::set_allocated_options(::google::protobuf::EnumOptions* options) {
5231 delete options_;
5232 options_ = options;
5233 if (options) {
5234 set_has_options();
5235 } else {
5236 clear_has_options();
5237 }
5238 // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumDescriptorProto.options)
5239 }
5240
5241 // -------------------------------------------------------------------
5242
5243 // EnumValueDescriptorProto
5244
5245 // optional string name = 1;
5246 inline bool EnumValueDescriptorProto::has_name() const {
5247 return (_has_bits_[0] & 0x00000001u) != 0;
5248 }
5249 inline void EnumValueDescriptorProto::set_has_name() {
5250 _has_bits_[0] |= 0x00000001u;
5251 }
5252 inline void EnumValueDescriptorProto::clear_has_name() {
5253 _has_bits_[0] &= ~0x00000001u;
5254 }
5255 inline void EnumValueDescriptorProto::clear_name() {
5256 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5257 clear_has_name();
5258 }
5259 inline const ::std::string& EnumValueDescriptorProto::name() const {
5260 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.name)
5261 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5262 }
5263 inline void EnumValueDescriptorProto::set_name(const ::std::string& value) {
5264 set_has_name();
5265 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
5266 // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto.name)
5267 }
5268 inline void EnumValueDescriptorProto::set_name(const char* value) {
5269 set_has_name();
5270 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
5271 // @@protoc_insertion_point(field_set_char:google.protobuf.EnumValueDescriptorProto.name)
5272 }
5273 inline void EnumValueDescriptorProto::set_name(const char* value, size_t size) {
5274 set_has_name();
5275 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5276 ::std::string(reinterpret_cast<const char*>(value), size));
5277 // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumValueDescriptorProto.name)
5278 }
5279 inline ::std::string* EnumValueDescriptorProto::mutable_name() {
5280 set_has_name();
5281 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorProto.name)
5282 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5283 }
5284 inline ::std::string* EnumValueDescriptorProto::release_name() {
5285 // @@protoc_insertion_point(field_release:google.protobuf.EnumValueDescriptorProto.name)
5286 clear_has_name();
5287 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5288 }
5289 inline void EnumValueDescriptorProto::set_allocated_name(::std::string* name) {
5290 if (name != NULL) {
5291 set_has_name();
5292 } else {
5293 clear_has_name();
5294 }
5295 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
5296 // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValueDescriptorProto.name)
5297 }
5298
5299 // optional int32 number = 2;
5300 inline bool EnumValueDescriptorProto::has_number() const {
5301 return (_has_bits_[0] & 0x00000002u) != 0;
5302 }
5303 inline void EnumValueDescriptorProto::set_has_number() {
5304 _has_bits_[0] |= 0x00000002u;
5305 }
5306 inline void EnumValueDescriptorProto::clear_has_number() {
5307 _has_bits_[0] &= ~0x00000002u;
5308 }
5309 inline void EnumValueDescriptorProto::clear_number() {
5310 number_ = 0;
5311 clear_has_number();
5312 }
5313 inline ::google::protobuf::int32 EnumValueDescriptorProto::number() const {
5314 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.number)
5315 return number_;
5316 }
5317 inline void EnumValueDescriptorProto::set_number(::google::protobuf::int32 value) {
5318 set_has_number();
5319 number_ = value;
5320 // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto.number)
5321 }
5322
5323 // optional .google.protobuf.EnumValueOptions options = 3;
5324 inline bool EnumValueDescriptorProto::has_options() const {
5325 return (_has_bits_[0] & 0x00000004u) != 0;
5326 }
5327 inline void EnumValueDescriptorProto::set_has_options() {
5328 _has_bits_[0] |= 0x00000004u;
5329 }
5330 inline void EnumValueDescriptorProto::clear_has_options() {
5331 _has_bits_[0] &= ~0x00000004u;
5332 }
5333 inline void EnumValueDescriptorProto::clear_options() {
5334 if (options_ != NULL) options_->::google::protobuf::EnumValueOptions::Clear();
5335 clear_has_options();
5336 }
5337 inline const ::google::protobuf::EnumValueOptions& EnumValueDescriptorProto::options() const {
5338 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.options)
5339 return options_ != NULL ? *options_ : *default_instance_->options_;
5340 }
5341 inline ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::mutable_options() {
5342 set_has_options();
5343 if (options_ == NULL) {
5344 options_ = new ::google::protobuf::EnumValueOptions;
5345 }
5346 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorProto.options)
5347 return options_;
5348 }
5349 inline ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::release_options() {
5350 // @@protoc_insertion_point(field_release:google.protobuf.EnumValueDescriptorProto.options)
5351 clear_has_options();
5352 ::google::protobuf::EnumValueOptions* temp = options_;
5353 options_ = NULL;
5354 return temp;
5355 }
5356 inline void EnumValueDescriptorProto::set_allocated_options(::google::protobuf::EnumValueOptions* options) {
5357 delete options_;
5358 options_ = options;
5359 if (options) {
5360 set_has_options();
5361 } else {
5362 clear_has_options();
5363 }
5364 // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValueDescriptorProto.options)
5365 }
5366
5367 // -------------------------------------------------------------------
5368
5369 // ServiceDescriptorProto
5370
5371 // optional string name = 1;
5372 inline bool ServiceDescriptorProto::has_name() const {
5373 return (_has_bits_[0] & 0x00000001u) != 0;
5374 }
5375 inline void ServiceDescriptorProto::set_has_name() {
5376 _has_bits_[0] |= 0x00000001u;
5377 }
5378 inline void ServiceDescriptorProto::clear_has_name() {
5379 _has_bits_[0] &= ~0x00000001u;
5380 }
5381 inline void ServiceDescriptorProto::clear_name() {
5382 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5383 clear_has_name();
5384 }
5385 inline const ::std::string& ServiceDescriptorProto::name() const {
5386 // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.name)
5387 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5388 }
5389 inline void ServiceDescriptorProto::set_name(const ::std::string& value) {
5390 set_has_name();
5391 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
5392 // @@protoc_insertion_point(field_set:google.protobuf.ServiceDescriptorProto.name)
5393 }
5394 inline void ServiceDescriptorProto::set_name(const char* value) {
5395 set_has_name();
5396 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
5397 // @@protoc_insertion_point(field_set_char:google.protobuf.ServiceDescriptorProto.name)
5398 }
5399 inline void ServiceDescriptorProto::set_name(const char* value, size_t size) {
5400 set_has_name();
5401 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5402 ::std::string(reinterpret_cast<const char*>(value), size));
5403 // @@protoc_insertion_point(field_set_pointer:google.protobuf.ServiceDescriptorProto.name)
5404 }
5405 inline ::std::string* ServiceDescriptorProto::mutable_name() {
5406 set_has_name();
5407 // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.name)
5408 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5409 }
5410 inline ::std::string* ServiceDescriptorProto::release_name() {
5411 // @@protoc_insertion_point(field_release:google.protobuf.ServiceDescriptorProto.name)
5412 clear_has_name();
5413 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5414 }
5415 inline void ServiceDescriptorProto::set_allocated_name(::std::string* name) {
5416 if (name != NULL) {
5417 set_has_name();
5418 } else {
5419 clear_has_name();
5420 }
5421 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
5422 // @@protoc_insertion_point(field_set_allocated:google.protobuf.ServiceDescriptorProto.name)
5423 }
5424
5425 // repeated .google.protobuf.MethodDescriptorProto method = 2;
5426 inline int ServiceDescriptorProto::method_size() const {
5427 return method_.size();
5428 }
5429 inline void ServiceDescriptorProto::clear_method() {
5430 method_.Clear();
5431 }
5432 inline const ::google::protobuf::MethodDescriptorProto& ServiceDescriptorProto::method(int index) const {
5433 // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.method)
5434 return method_.Get(index);
5435 }
5436 inline ::google::protobuf::MethodDescriptorProto* ServiceDescriptorProto::mutable_method(int index) {
5437 // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.method)
5438 return method_.Mutable(index);
5439 }
5440 inline ::google::protobuf::MethodDescriptorProto* ServiceDescriptorProto::add_method() {
5441 // @@protoc_insertion_point(field_add:google.protobuf.ServiceDescriptorProto.method)
5442 return method_.Add();
5443 }
5444 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >*
5445 ServiceDescriptorProto::mutable_method() {
5446 // @@protoc_insertion_point(field_mutable_list:google.protobuf.ServiceDescriptorProto.method)
5447 return &method_;
5448 }
5449 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >&
5450 ServiceDescriptorProto::method() const {
5451 // @@protoc_insertion_point(field_list:google.protobuf.ServiceDescriptorProto.method)
5452 return method_;
5453 }
5454
5455 // optional .google.protobuf.ServiceOptions options = 3;
5456 inline bool ServiceDescriptorProto::has_options() const {
5457 return (_has_bits_[0] & 0x00000004u) != 0;
5458 }
5459 inline void ServiceDescriptorProto::set_has_options() {
5460 _has_bits_[0] |= 0x00000004u;
5461 }
5462 inline void ServiceDescriptorProto::clear_has_options() {
5463 _has_bits_[0] &= ~0x00000004u;
5464 }
5465 inline void ServiceDescriptorProto::clear_options() {
5466 if (options_ != NULL) options_->::google::protobuf::ServiceOptions::Clear();
5467 clear_has_options();
5468 }
5469 inline const ::google::protobuf::ServiceOptions& ServiceDescriptorProto::options() const {
5470 // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.options)
5471 return options_ != NULL ? *options_ : *default_instance_->options_;
5472 }
5473 inline ::google::protobuf::ServiceOptions* ServiceDescriptorProto::mutable_options() {
5474 set_has_options();
5475 if (options_ == NULL) {
5476 options_ = new ::google::protobuf::ServiceOptions;
5477 }
5478 // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.options)
5479 return options_;
5480 }
5481 inline ::google::protobuf::ServiceOptions* ServiceDescriptorProto::release_options() {
5482 // @@protoc_insertion_point(field_release:google.protobuf.ServiceDescriptorProto.options)
5483 clear_has_options();
5484 ::google::protobuf::ServiceOptions* temp = options_;
5485 options_ = NULL;
5486 return temp;
5487 }
5488 inline void ServiceDescriptorProto::set_allocated_options(::google::protobuf::ServiceOptions* options) {
5489 delete options_;
5490 options_ = options;
5491 if (options) {
5492 set_has_options();
5493 } else {
5494 clear_has_options();
5495 }
5496 // @@protoc_insertion_point(field_set_allocated:google.protobuf.ServiceDescriptorProto.options)
5497 }
5498
5499 // -------------------------------------------------------------------
5500
5501 // MethodDescriptorProto
5502
5503 // optional string name = 1;
5504 inline bool MethodDescriptorProto::has_name() const {
5505 return (_has_bits_[0] & 0x00000001u) != 0;
5506 }
5507 inline void MethodDescriptorProto::set_has_name() {
5508 _has_bits_[0] |= 0x00000001u;
5509 }
5510 inline void MethodDescriptorProto::clear_has_name() {
5511 _has_bits_[0] &= ~0x00000001u;
5512 }
5513 inline void MethodDescriptorProto::clear_name() {
5514 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5515 clear_has_name();
5516 }
5517 inline const ::std::string& MethodDescriptorProto::name() const {
5518 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.name)
5519 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5520 }
5521 inline void MethodDescriptorProto::set_name(const ::std::string& value) {
5522 set_has_name();
5523 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
5524 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.name)
5525 }
5526 inline void MethodDescriptorProto::set_name(const char* value) {
5527 set_has_name();
5528 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
5529 // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorProto.name)
5530 }
5531 inline void MethodDescriptorProto::set_name(const char* value, size_t size) {
5532 set_has_name();
5533 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5534 ::std::string(reinterpret_cast<const char*>(value), size));
5535 // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptorProto.name)
5536 }
5537 inline ::std::string* MethodDescriptorProto::mutable_name() {
5538 set_has_name();
5539 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.name)
5540 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5541 }
5542 inline ::std::string* MethodDescriptorProto::release_name() {
5543 // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.name)
5544 clear_has_name();
5545 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5546 }
5547 inline void MethodDescriptorProto::set_allocated_name(::std::string* name) {
5548 if (name != NULL) {
5549 set_has_name();
5550 } else {
5551 clear_has_name();
5552 }
5553 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
5554 // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.name)
5555 }
5556
5557 // optional string input_type = 2;
5558 inline bool MethodDescriptorProto::has_input_type() const {
5559 return (_has_bits_[0] & 0x00000002u) != 0;
5560 }
5561 inline void MethodDescriptorProto::set_has_input_type() {
5562 _has_bits_[0] |= 0x00000002u;
5563 }
5564 inline void MethodDescriptorProto::clear_has_input_type() {
5565 _has_bits_[0] &= ~0x00000002u;
5566 }
5567 inline void MethodDescriptorProto::clear_input_type() {
5568 input_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5569 clear_has_input_type();
5570 }
5571 inline const ::std::string& MethodDescriptorProto::input_type() const {
5572 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.input_type)
5573 return input_type_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5574 }
5575 inline void MethodDescriptorProto::set_input_type(const ::std::string& value) {
5576 set_has_input_type();
5577 input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
5578 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.input_type)
5579 }
5580 inline void MethodDescriptorProto::set_input_type(const char* value) {
5581 set_has_input_type();
5582 input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
5583 // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorProto.input_type)
5584 }
5585 inline void MethodDescriptorProto::set_input_type(const char* value, size_t size) {
5586 set_has_input_type();
5587 input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5588 ::std::string(reinterpret_cast<const char*>(value), size));
5589 // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptorProto.input_type)
5590 }
5591 inline ::std::string* MethodDescriptorProto::mutable_input_type() {
5592 set_has_input_type();
5593 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.input_type)
5594 return input_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5595 }
5596 inline ::std::string* MethodDescriptorProto::release_input_type() {
5597 // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.input_type)
5598 clear_has_input_type();
5599 return input_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5600 }
5601 inline void MethodDescriptorProto::set_allocated_input_type(::std::string* input_type) {
5602 if (input_type != NULL) {
5603 set_has_input_type();
5604 } else {
5605 clear_has_input_type();
5606 }
5607 input_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), input_type);
5608 // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.input_type)
5609 }
5610
5611 // optional string output_type = 3;
5612 inline bool MethodDescriptorProto::has_output_type() const {
5613 return (_has_bits_[0] & 0x00000004u) != 0;
5614 }
5615 inline void MethodDescriptorProto::set_has_output_type() {
5616 _has_bits_[0] |= 0x00000004u;
5617 }
5618 inline void MethodDescriptorProto::clear_has_output_type() {
5619 _has_bits_[0] &= ~0x00000004u;
5620 }
5621 inline void MethodDescriptorProto::clear_output_type() {
5622 output_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5623 clear_has_output_type();
5624 }
5625 inline const ::std::string& MethodDescriptorProto::output_type() const {
5626 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.output_type)
5627 return output_type_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5628 }
5629 inline void MethodDescriptorProto::set_output_type(const ::std::string& value) {
5630 set_has_output_type();
5631 output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
5632 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.output_type)
5633 }
5634 inline void MethodDescriptorProto::set_output_type(const char* value) {
5635 set_has_output_type();
5636 output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
5637 // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorProto.output_type)
5638 }
5639 inline void MethodDescriptorProto::set_output_type(const char* value, size_t size) {
5640 set_has_output_type();
5641 output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5642 ::std::string(reinterpret_cast<const char*>(value), size));
5643 // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptorProto.output_type)
5644 }
5645 inline ::std::string* MethodDescriptorProto::mutable_output_type() {
5646 set_has_output_type();
5647 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.output_type)
5648 return output_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5649 }
5650 inline ::std::string* MethodDescriptorProto::release_output_type() {
5651 // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.output_type)
5652 clear_has_output_type();
5653 return output_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5654 }
5655 inline void MethodDescriptorProto::set_allocated_output_type(::std::string* output_type) {
5656 if (output_type != NULL) {
5657 set_has_output_type();
5658 } else {
5659 clear_has_output_type();
5660 }
5661 output_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), output_type);
5662 // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.output_type)
5663 }
5664
5665 // optional .google.protobuf.MethodOptions options = 4;
5666 inline bool MethodDescriptorProto::has_options() const {
5667 return (_has_bits_[0] & 0x00000008u) != 0;
5668 }
5669 inline void MethodDescriptorProto::set_has_options() {
5670 _has_bits_[0] |= 0x00000008u;
5671 }
5672 inline void MethodDescriptorProto::clear_has_options() {
5673 _has_bits_[0] &= ~0x00000008u;
5674 }
5675 inline void MethodDescriptorProto::clear_options() {
5676 if (options_ != NULL) options_->::google::protobuf::MethodOptions::Clear();
5677 clear_has_options();
5678 }
5679 inline const ::google::protobuf::MethodOptions& MethodDescriptorProto::options() const {
5680 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.options)
5681 return options_ != NULL ? *options_ : *default_instance_->options_;
5682 }
5683 inline ::google::protobuf::MethodOptions* MethodDescriptorProto::mutable_options() {
5684 set_has_options();
5685 if (options_ == NULL) {
5686 options_ = new ::google::protobuf::MethodOptions;
5687 }
5688 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.options)
5689 return options_;
5690 }
5691 inline ::google::protobuf::MethodOptions* MethodDescriptorProto::release_options() {
5692 // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.options)
5693 clear_has_options();
5694 ::google::protobuf::MethodOptions* temp = options_;
5695 options_ = NULL;
5696 return temp;
5697 }
5698 inline void MethodDescriptorProto::set_allocated_options(::google::protobuf::MethodOptions* options) {
5699 delete options_;
5700 options_ = options;
5701 if (options) {
5702 set_has_options();
5703 } else {
5704 clear_has_options();
5705 }
5706 // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.options)
5707 }
5708
5709 // optional bool client_streaming = 5 [default = false];
5710 inline bool MethodDescriptorProto::has_client_streaming() const {
5711 return (_has_bits_[0] & 0x00000010u) != 0;
5712 }
5713 inline void MethodDescriptorProto::set_has_client_streaming() {
5714 _has_bits_[0] |= 0x00000010u;
5715 }
5716 inline void MethodDescriptorProto::clear_has_client_streaming() {
5717 _has_bits_[0] &= ~0x00000010u;
5718 }
5719 inline void MethodDescriptorProto::clear_client_streaming() {
5720 client_streaming_ = false;
5721 clear_has_client_streaming();
5722 }
5723 inline bool MethodDescriptorProto::client_streaming() const {
5724 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.client_streaming)
5725 return client_streaming_;
5726 }
5727 inline void MethodDescriptorProto::set_client_streaming(bool value) {
5728 set_has_client_streaming();
5729 client_streaming_ = value;
5730 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.client_streaming)
5731 }
5732
5733 // optional bool server_streaming = 6 [default = false];
5734 inline bool MethodDescriptorProto::has_server_streaming() const {
5735 return (_has_bits_[0] & 0x00000020u) != 0;
5736 }
5737 inline void MethodDescriptorProto::set_has_server_streaming() {
5738 _has_bits_[0] |= 0x00000020u;
5739 }
5740 inline void MethodDescriptorProto::clear_has_server_streaming() {
5741 _has_bits_[0] &= ~0x00000020u;
5742 }
5743 inline void MethodDescriptorProto::clear_server_streaming() {
5744 server_streaming_ = false;
5745 clear_has_server_streaming();
5746 }
5747 inline bool MethodDescriptorProto::server_streaming() const {
5748 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.server_streaming)
5749 return server_streaming_;
5750 }
5751 inline void MethodDescriptorProto::set_server_streaming(bool value) {
5752 set_has_server_streaming();
5753 server_streaming_ = value;
5754 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.server_streaming)
5755 }
5756
5757 // -------------------------------------------------------------------
5758
5759 // FileOptions
5760
5761 // optional string java_package = 1;
5762 inline bool FileOptions::has_java_package() const {
5763 return (_has_bits_[0] & 0x00000001u) != 0;
5764 }
5765 inline void FileOptions::set_has_java_package() {
5766 _has_bits_[0] |= 0x00000001u;
5767 }
5768 inline void FileOptions::clear_has_java_package() {
5769 _has_bits_[0] &= ~0x00000001u;
5770 }
5771 inline void FileOptions::clear_java_package() {
5772 java_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5773 clear_has_java_package();
5774 }
5775 inline const ::std::string& FileOptions::java_package() const {
5776 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_package)
5777 return java_package_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5778 }
5779 inline void FileOptions::set_java_package(const ::std::string& value) {
5780 set_has_java_package();
5781 java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
5782 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_package)
5783 }
5784 inline void FileOptions::set_java_package(const char* value) {
5785 set_has_java_package();
5786 java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
5787 // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.java_package)
5788 }
5789 inline void FileOptions::set_java_package(const char* value, size_t size) {
5790 set_has_java_package();
5791 java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5792 ::std::string(reinterpret_cast<const char*>(value), size));
5793 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.java_package)
5794 }
5795 inline ::std::string* FileOptions::mutable_java_package() {
5796 set_has_java_package();
5797 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_package)
5798 return java_package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5799 }
5800 inline ::std::string* FileOptions::release_java_package() {
5801 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.java_package)
5802 clear_has_java_package();
5803 return java_package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5804 }
5805 inline void FileOptions::set_allocated_java_package(::std::string* java_package) {
5806 if (java_package != NULL) {
5807 set_has_java_package();
5808 } else {
5809 clear_has_java_package();
5810 }
5811 java_package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), java_package);
5812 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.java_package)
5813 }
5814
5815 // optional string java_outer_classname = 8;
5816 inline bool FileOptions::has_java_outer_classname() const {
5817 return (_has_bits_[0] & 0x00000002u) != 0;
5818 }
5819 inline void FileOptions::set_has_java_outer_classname() {
5820 _has_bits_[0] |= 0x00000002u;
5821 }
5822 inline void FileOptions::clear_has_java_outer_classname() {
5823 _has_bits_[0] &= ~0x00000002u;
5824 }
5825 inline void FileOptions::clear_java_outer_classname() {
5826 java_outer_classname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5827 clear_has_java_outer_classname();
5828 }
5829 inline const ::std::string& FileOptions::java_outer_classname() const {
5830 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_outer_classname)
5831 return java_outer_classname_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5832 }
5833 inline void FileOptions::set_java_outer_classname(const ::std::string& value) {
5834 set_has_java_outer_classname();
5835 java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
5836 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_outer_classname)
5837 }
5838 inline void FileOptions::set_java_outer_classname(const char* value) {
5839 set_has_java_outer_classname();
5840 java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
5841 // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.java_outer_classname)
5842 }
5843 inline void FileOptions::set_java_outer_classname(const char* value, size_t size) {
5844 set_has_java_outer_classname();
5845 java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5846 ::std::string(reinterpret_cast<const char*>(value), size));
5847 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.java_outer_classname)
5848 }
5849 inline ::std::string* FileOptions::mutable_java_outer_classname() {
5850 set_has_java_outer_classname();
5851 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_outer_classname)
5852 return java_outer_classname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5853 }
5854 inline ::std::string* FileOptions::release_java_outer_classname() {
5855 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.java_outer_classname)
5856 clear_has_java_outer_classname();
5857 return java_outer_classname_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5858 }
5859 inline void FileOptions::set_allocated_java_outer_classname(::std::string* java_outer_classname) {
5860 if (java_outer_classname != NULL) {
5861 set_has_java_outer_classname();
5862 } else {
5863 clear_has_java_outer_classname();
5864 }
5865 java_outer_classname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), java_outer_classname);
5866 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.java_outer_classname)
5867 }
5868
5869 // optional bool java_multiple_files = 10 [default = false];
5870 inline bool FileOptions::has_java_multiple_files() const {
5871 return (_has_bits_[0] & 0x00000004u) != 0;
5872 }
5873 inline void FileOptions::set_has_java_multiple_files() {
5874 _has_bits_[0] |= 0x00000004u;
5875 }
5876 inline void FileOptions::clear_has_java_multiple_files() {
5877 _has_bits_[0] &= ~0x00000004u;
5878 }
5879 inline void FileOptions::clear_java_multiple_files() {
5880 java_multiple_files_ = false;
5881 clear_has_java_multiple_files();
5882 }
5883 inline bool FileOptions::java_multiple_files() const {
5884 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_multiple_files)
5885 return java_multiple_files_;
5886 }
5887 inline void FileOptions::set_java_multiple_files(bool value) {
5888 set_has_java_multiple_files();
5889 java_multiple_files_ = value;
5890 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_multiple_files)
5891 }
5892
5893 // optional bool java_generate_equals_and_hash = 20 [default = false];
5894 inline bool FileOptions::has_java_generate_equals_and_hash() const {
5895 return (_has_bits_[0] & 0x00000008u) != 0;
5896 }
5897 inline void FileOptions::set_has_java_generate_equals_and_hash() {
5898 _has_bits_[0] |= 0x00000008u;
5899 }
5900 inline void FileOptions::clear_has_java_generate_equals_and_hash() {
5901 _has_bits_[0] &= ~0x00000008u;
5902 }
5903 inline void FileOptions::clear_java_generate_equals_and_hash() {
5904 java_generate_equals_and_hash_ = false;
5905 clear_has_java_generate_equals_and_hash();
5906 }
5907 inline bool FileOptions::java_generate_equals_and_hash() const {
5908 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generate_equals_and_hash)
5909 return java_generate_equals_and_hash_;
5910 }
5911 inline void FileOptions::set_java_generate_equals_and_hash(bool value) {
5912 set_has_java_generate_equals_and_hash();
5913 java_generate_equals_and_hash_ = value;
5914 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generate_equals_and_hash)
5915 }
5916
5917 // optional bool java_string_check_utf8 = 27 [default = false];
5918 inline bool FileOptions::has_java_string_check_utf8() const {
5919 return (_has_bits_[0] & 0x00000010u) != 0;
5920 }
5921 inline void FileOptions::set_has_java_string_check_utf8() {
5922 _has_bits_[0] |= 0x00000010u;
5923 }
5924 inline void FileOptions::clear_has_java_string_check_utf8() {
5925 _has_bits_[0] &= ~0x00000010u;
5926 }
5927 inline void FileOptions::clear_java_string_check_utf8() {
5928 java_string_check_utf8_ = false;
5929 clear_has_java_string_check_utf8();
5930 }
5931 inline bool FileOptions::java_string_check_utf8() const {
5932 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_string_check_utf8)
5933 return java_string_check_utf8_;
5934 }
5935 inline void FileOptions::set_java_string_check_utf8(bool value) {
5936 set_has_java_string_check_utf8();
5937 java_string_check_utf8_ = value;
5938 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_string_check_utf8)
5939 }
5940
5941 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
5942 inline bool FileOptions::has_optimize_for() const {
5943 return (_has_bits_[0] & 0x00000020u) != 0;
5944 }
5945 inline void FileOptions::set_has_optimize_for() {
5946 _has_bits_[0] |= 0x00000020u;
5947 }
5948 inline void FileOptions::clear_has_optimize_for() {
5949 _has_bits_[0] &= ~0x00000020u;
5950 }
5951 inline void FileOptions::clear_optimize_for() {
5952 optimize_for_ = 1;
5953 clear_has_optimize_for();
5954 }
5955 inline ::google::protobuf::FileOptions_OptimizeMode FileOptions::optimize_for() const {
5956 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.optimize_for)
5957 return static_cast< ::google::protobuf::FileOptions_OptimizeMode >(optimize_for_);
5958 }
5959 inline void FileOptions::set_optimize_for(::google::protobuf::FileOptions_OptimizeMode value) {
5960 assert(::google::protobuf::FileOptions_OptimizeMode_IsValid(value));
5961 set_has_optimize_for();
5962 optimize_for_ = value;
5963 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.optimize_for)
5964 }
5965
5966 // optional string go_package = 11;
5967 inline bool FileOptions::has_go_package() const {
5968 return (_has_bits_[0] & 0x00000040u) != 0;
5969 }
5970 inline void FileOptions::set_has_go_package() {
5971 _has_bits_[0] |= 0x00000040u;
5972 }
5973 inline void FileOptions::clear_has_go_package() {
5974 _has_bits_[0] &= ~0x00000040u;
5975 }
5976 inline void FileOptions::clear_go_package() {
5977 go_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5978 clear_has_go_package();
5979 }
5980 inline const ::std::string& FileOptions::go_package() const {
5981 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.go_package)
5982 return go_package_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5983 }
5984 inline void FileOptions::set_go_package(const ::std::string& value) {
5985 set_has_go_package();
5986 go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
5987 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.go_package)
5988 }
5989 inline void FileOptions::set_go_package(const char* value) {
5990 set_has_go_package();
5991 go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
5992 // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.go_package)
5993 }
5994 inline void FileOptions::set_go_package(const char* value, size_t size) {
5995 set_has_go_package();
5996 go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5997 ::std::string(reinterpret_cast<const char*>(value), size));
5998 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.go_package)
5999 }
6000 inline ::std::string* FileOptions::mutable_go_package() {
6001 set_has_go_package();
6002 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.go_package)
6003 return go_package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6004 }
6005 inline ::std::string* FileOptions::release_go_package() {
6006 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.go_package)
6007 clear_has_go_package();
6008 return go_package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6009 }
6010 inline void FileOptions::set_allocated_go_package(::std::string* go_package) {
6011 if (go_package != NULL) {
6012 set_has_go_package();
6013 } else {
6014 clear_has_go_package();
6015 }
6016 go_package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), go_package);
6017 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.go_package)
6018 }
6019
6020 // optional bool cc_generic_services = 16 [default = false];
6021 inline bool FileOptions::has_cc_generic_services() const {
6022 return (_has_bits_[0] & 0x00000080u) != 0;
6023 }
6024 inline void FileOptions::set_has_cc_generic_services() {
6025 _has_bits_[0] |= 0x00000080u;
6026 }
6027 inline void FileOptions::clear_has_cc_generic_services() {
6028 _has_bits_[0] &= ~0x00000080u;
6029 }
6030 inline void FileOptions::clear_cc_generic_services() {
6031 cc_generic_services_ = false;
6032 clear_has_cc_generic_services();
6033 }
6034 inline bool FileOptions::cc_generic_services() const {
6035 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_generic_services)
6036 return cc_generic_services_;
6037 }
6038 inline void FileOptions::set_cc_generic_services(bool value) {
6039 set_has_cc_generic_services();
6040 cc_generic_services_ = value;
6041 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.cc_generic_services)
6042 }
6043
6044 // optional bool java_generic_services = 17 [default = false];
6045 inline bool FileOptions::has_java_generic_services() const {
6046 return (_has_bits_[0] & 0x00000100u) != 0;
6047 }
6048 inline void FileOptions::set_has_java_generic_services() {
6049 _has_bits_[0] |= 0x00000100u;
6050 }
6051 inline void FileOptions::clear_has_java_generic_services() {
6052 _has_bits_[0] &= ~0x00000100u;
6053 }
6054 inline void FileOptions::clear_java_generic_services() {
6055 java_generic_services_ = false;
6056 clear_has_java_generic_services();
6057 }
6058 inline bool FileOptions::java_generic_services() const {
6059 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generic_services)
6060 return java_generic_services_;
6061 }
6062 inline void FileOptions::set_java_generic_services(bool value) {
6063 set_has_java_generic_services();
6064 java_generic_services_ = value;
6065 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generic_services)
6066 }
6067
6068 // optional bool py_generic_services = 18 [default = false];
6069 inline bool FileOptions::has_py_generic_services() const {
6070 return (_has_bits_[0] & 0x00000200u) != 0;
6071 }
6072 inline void FileOptions::set_has_py_generic_services() {
6073 _has_bits_[0] |= 0x00000200u;
6074 }
6075 inline void FileOptions::clear_has_py_generic_services() {
6076 _has_bits_[0] &= ~0x00000200u;
6077 }
6078 inline void FileOptions::clear_py_generic_services() {
6079 py_generic_services_ = false;
6080 clear_has_py_generic_services();
6081 }
6082 inline bool FileOptions::py_generic_services() const {
6083 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.py_generic_services)
6084 return py_generic_services_;
6085 }
6086 inline void FileOptions::set_py_generic_services(bool value) {
6087 set_has_py_generic_services();
6088 py_generic_services_ = value;
6089 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.py_generic_services)
6090 }
6091
6092 // optional bool deprecated = 23 [default = false];
6093 inline bool FileOptions::has_deprecated() const {
6094 return (_has_bits_[0] & 0x00000400u) != 0;
6095 }
6096 inline void FileOptions::set_has_deprecated() {
6097 _has_bits_[0] |= 0x00000400u;
6098 }
6099 inline void FileOptions::clear_has_deprecated() {
6100 _has_bits_[0] &= ~0x00000400u;
6101 }
6102 inline void FileOptions::clear_deprecated() {
6103 deprecated_ = false;
6104 clear_has_deprecated();
6105 }
6106 inline bool FileOptions::deprecated() const {
6107 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.deprecated)
6108 return deprecated_;
6109 }
6110 inline void FileOptions::set_deprecated(bool value) {
6111 set_has_deprecated();
6112 deprecated_ = value;
6113 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.deprecated)
6114 }
6115
6116 // optional bool cc_enable_arenas = 31 [default = false];
6117 inline bool FileOptions::has_cc_enable_arenas() const {
6118 return (_has_bits_[0] & 0x00000800u) != 0;
6119 }
6120 inline void FileOptions::set_has_cc_enable_arenas() {
6121 _has_bits_[0] |= 0x00000800u;
6122 }
6123 inline void FileOptions::clear_has_cc_enable_arenas() {
6124 _has_bits_[0] &= ~0x00000800u;
6125 }
6126 inline void FileOptions::clear_cc_enable_arenas() {
6127 cc_enable_arenas_ = false;
6128 clear_has_cc_enable_arenas();
6129 }
6130 inline bool FileOptions::cc_enable_arenas() const {
6131 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_enable_arenas)
6132 return cc_enable_arenas_;
6133 }
6134 inline void FileOptions::set_cc_enable_arenas(bool value) {
6135 set_has_cc_enable_arenas();
6136 cc_enable_arenas_ = value;
6137 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.cc_enable_arenas)
6138 }
6139
6140 // optional string objc_class_prefix = 36;
6141 inline bool FileOptions::has_objc_class_prefix() const {
6142 return (_has_bits_[0] & 0x00001000u) != 0;
6143 }
6144 inline void FileOptions::set_has_objc_class_prefix() {
6145 _has_bits_[0] |= 0x00001000u;
6146 }
6147 inline void FileOptions::clear_has_objc_class_prefix() {
6148 _has_bits_[0] &= ~0x00001000u;
6149 }
6150 inline void FileOptions::clear_objc_class_prefix() {
6151 objc_class_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6152 clear_has_objc_class_prefix();
6153 }
6154 inline const ::std::string& FileOptions::objc_class_prefix() const {
6155 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.objc_class_prefix)
6156 return objc_class_prefix_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6157 }
6158 inline void FileOptions::set_objc_class_prefix(const ::std::string& value) {
6159 set_has_objc_class_prefix();
6160 objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
6161 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.objc_class_prefix)
6162 }
6163 inline void FileOptions::set_objc_class_prefix(const char* value) {
6164 set_has_objc_class_prefix();
6165 objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
6166 // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.objc_class_prefix)
6167 }
6168 inline void FileOptions::set_objc_class_prefix(const char* value, size_t size) {
6169 set_has_objc_class_prefix();
6170 objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6171 ::std::string(reinterpret_cast<const char*>(value), size));
6172 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.objc_class_prefix)
6173 }
6174 inline ::std::string* FileOptions::mutable_objc_class_prefix() {
6175 set_has_objc_class_prefix();
6176 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.objc_class_prefix)
6177 return objc_class_prefix_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6178 }
6179 inline ::std::string* FileOptions::release_objc_class_prefix() {
6180 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.objc_class_prefix)
6181 clear_has_objc_class_prefix();
6182 return objc_class_prefix_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6183 }
6184 inline void FileOptions::set_allocated_objc_class_prefix(::std::string* objc_class_prefix) {
6185 if (objc_class_prefix != NULL) {
6186 set_has_objc_class_prefix();
6187 } else {
6188 clear_has_objc_class_prefix();
6189 }
6190 objc_class_prefix_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), objc_class_prefix);
6191 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.objc_class_prefix)
6192 }
6193
6194 // optional string csharp_namespace = 37;
6195 inline bool FileOptions::has_csharp_namespace() const {
6196 return (_has_bits_[0] & 0x00002000u) != 0;
6197 }
6198 inline void FileOptions::set_has_csharp_namespace() {
6199 _has_bits_[0] |= 0x00002000u;
6200 }
6201 inline void FileOptions::clear_has_csharp_namespace() {
6202 _has_bits_[0] &= ~0x00002000u;
6203 }
6204 inline void FileOptions::clear_csharp_namespace() {
6205 csharp_namespace_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6206 clear_has_csharp_namespace();
6207 }
6208 inline const ::std::string& FileOptions::csharp_namespace() const {
6209 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.csharp_namespace)
6210 return csharp_namespace_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6211 }
6212 inline void FileOptions::set_csharp_namespace(const ::std::string& value) {
6213 set_has_csharp_namespace();
6214 csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
6215 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.csharp_namespace)
6216 }
6217 inline void FileOptions::set_csharp_namespace(const char* value) {
6218 set_has_csharp_namespace();
6219 csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
6220 // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.csharp_namespace)
6221 }
6222 inline void FileOptions::set_csharp_namespace(const char* value, size_t size) {
6223 set_has_csharp_namespace();
6224 csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6225 ::std::string(reinterpret_cast<const char*>(value), size));
6226 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.csharp_namespace)
6227 }
6228 inline ::std::string* FileOptions::mutable_csharp_namespace() {
6229 set_has_csharp_namespace();
6230 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.csharp_namespace)
6231 return csharp_namespace_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6232 }
6233 inline ::std::string* FileOptions::release_csharp_namespace() {
6234 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.csharp_namespace)
6235 clear_has_csharp_namespace();
6236 return csharp_namespace_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6237 }
6238 inline void FileOptions::set_allocated_csharp_namespace(::std::string* csharp_namespace) {
6239 if (csharp_namespace != NULL) {
6240 set_has_csharp_namespace();
6241 } else {
6242 clear_has_csharp_namespace();
6243 }
6244 csharp_namespace_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), csharp_namespace);
6245 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.csharp_namespace)
6246 }
6247
6248 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
6249 inline int FileOptions::uninterpreted_option_size() const {
6250 return uninterpreted_option_.size();
6251 }
6252 inline void FileOptions::clear_uninterpreted_option() {
6253 uninterpreted_option_.Clear();
6254 }
6255 inline const ::google::protobuf::UninterpretedOption& FileOptions::uninterpreted_option(int index) const {
6256 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.uninterpreted_option)
6257 return uninterpreted_option_.Get(index);
6258 }
6259 inline ::google::protobuf::UninterpretedOption* FileOptions::mutable_uninterpreted_option(int index) {
6260 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.uninterpreted_option)
6261 return uninterpreted_option_.Mutable(index);
6262 }
6263 inline ::google::protobuf::UninterpretedOption* FileOptions::add_uninterpreted_option() {
6264 // @@protoc_insertion_point(field_add:google.protobuf.FileOptions.uninterpreted_option)
6265 return uninterpreted_option_.Add();
6266 }
6267 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
6268 FileOptions::mutable_uninterpreted_option() {
6269 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileOptions.uninterpreted_option)
6270 return &uninterpreted_option_;
6271 }
6272 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
6273 FileOptions::uninterpreted_option() const {
6274 // @@protoc_insertion_point(field_list:google.protobuf.FileOptions.uninterpreted_option)
6275 return uninterpreted_option_;
6276 }
6277
6278 // -------------------------------------------------------------------
6279
6280 // MessageOptions
6281
6282 // optional bool message_set_wire_format = 1 [default = false];
6283 inline bool MessageOptions::has_message_set_wire_format() const {
6284 return (_has_bits_[0] & 0x00000001u) != 0;
6285 }
6286 inline void MessageOptions::set_has_message_set_wire_format() {
6287 _has_bits_[0] |= 0x00000001u;
6288 }
6289 inline void MessageOptions::clear_has_message_set_wire_format() {
6290 _has_bits_[0] &= ~0x00000001u;
6291 }
6292 inline void MessageOptions::clear_message_set_wire_format() {
6293 message_set_wire_format_ = false;
6294 clear_has_message_set_wire_format();
6295 }
6296 inline bool MessageOptions::message_set_wire_format() const {
6297 // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.message_set_wire_format)
6298 return message_set_wire_format_;
6299 }
6300 inline void MessageOptions::set_message_set_wire_format(bool value) {
6301 set_has_message_set_wire_format();
6302 message_set_wire_format_ = value;
6303 // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.message_set_wire_format)
6304 }
6305
6306 // optional bool no_standard_descriptor_accessor = 2 [default = false];
6307 inline bool MessageOptions::has_no_standard_descriptor_accessor() const {
6308 return (_has_bits_[0] & 0x00000002u) != 0;
6309 }
6310 inline void MessageOptions::set_has_no_standard_descriptor_accessor() {
6311 _has_bits_[0] |= 0x00000002u;
6312 }
6313 inline void MessageOptions::clear_has_no_standard_descriptor_accessor() {
6314 _has_bits_[0] &= ~0x00000002u;
6315 }
6316 inline void MessageOptions::clear_no_standard_descriptor_accessor() {
6317 no_standard_descriptor_accessor_ = false;
6318 clear_has_no_standard_descriptor_accessor();
6319 }
6320 inline bool MessageOptions::no_standard_descriptor_accessor() const {
6321 // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.no_standard_descriptor_accessor)
6322 return no_standard_descriptor_accessor_;
6323 }
6324 inline void MessageOptions::set_no_standard_descriptor_accessor(bool value) {
6325 set_has_no_standard_descriptor_accessor();
6326 no_standard_descriptor_accessor_ = value;
6327 // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.no_standard_descriptor_accessor)
6328 }
6329
6330 // optional bool deprecated = 3 [default = false];
6331 inline bool MessageOptions::has_deprecated() const {
6332 return (_has_bits_[0] & 0x00000004u) != 0;
6333 }
6334 inline void MessageOptions::set_has_deprecated() {
6335 _has_bits_[0] |= 0x00000004u;
6336 }
6337 inline void MessageOptions::clear_has_deprecated() {
6338 _has_bits_[0] &= ~0x00000004u;
6339 }
6340 inline void MessageOptions::clear_deprecated() {
6341 deprecated_ = false;
6342 clear_has_deprecated();
6343 }
6344 inline bool MessageOptions::deprecated() const {
6345 // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.deprecated)
6346 return deprecated_;
6347 }
6348 inline void MessageOptions::set_deprecated(bool value) {
6349 set_has_deprecated();
6350 deprecated_ = value;
6351 // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.deprecated)
6352 }
6353
6354 // optional bool map_entry = 7;
6355 inline bool MessageOptions::has_map_entry() const {
6356 return (_has_bits_[0] & 0x00000008u) != 0;
6357 }
6358 inline void MessageOptions::set_has_map_entry() {
6359 _has_bits_[0] |= 0x00000008u;
6360 }
6361 inline void MessageOptions::clear_has_map_entry() {
6362 _has_bits_[0] &= ~0x00000008u;
6363 }
6364 inline void MessageOptions::clear_map_entry() {
6365 map_entry_ = false;
6366 clear_has_map_entry();
6367 }
6368 inline bool MessageOptions::map_entry() const {
6369 // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.map_entry)
6370 return map_entry_;
6371 }
6372 inline void MessageOptions::set_map_entry(bool value) {
6373 set_has_map_entry();
6374 map_entry_ = value;
6375 // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.map_entry)
6376 }
6377
6378 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
6379 inline int MessageOptions::uninterpreted_option_size() const {
6380 return uninterpreted_option_.size();
6381 }
6382 inline void MessageOptions::clear_uninterpreted_option() {
6383 uninterpreted_option_.Clear();
6384 }
6385 inline const ::google::protobuf::UninterpretedOption& MessageOptions::uninterpreted_option(int index) const {
6386 // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.uninterpreted_option)
6387 return uninterpreted_option_.Get(index);
6388 }
6389 inline ::google::protobuf::UninterpretedOption* MessageOptions::mutable_uninterpreted_option(int index) {
6390 // @@protoc_insertion_point(field_mutable:google.protobuf.MessageOptions.uninterpreted_option)
6391 return uninterpreted_option_.Mutable(index);
6392 }
6393 inline ::google::protobuf::UninterpretedOption* MessageOptions::add_uninterpreted_option() {
6394 // @@protoc_insertion_point(field_add:google.protobuf.MessageOptions.uninterpreted_option)
6395 return uninterpreted_option_.Add();
6396 }
6397 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
6398 MessageOptions::mutable_uninterpreted_option() {
6399 // @@protoc_insertion_point(field_mutable_list:google.protobuf.MessageOptions.uninterpreted_option)
6400 return &uninterpreted_option_;
6401 }
6402 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
6403 MessageOptions::uninterpreted_option() const {
6404 // @@protoc_insertion_point(field_list:google.protobuf.MessageOptions.uninterpreted_option)
6405 return uninterpreted_option_;
6406 }
6407
6408 // -------------------------------------------------------------------
6409
6410 // FieldOptions
6411
6412 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
6413 inline bool FieldOptions::has_ctype() const {
6414 return (_has_bits_[0] & 0x00000001u) != 0;
6415 }
6416 inline void FieldOptions::set_has_ctype() {
6417 _has_bits_[0] |= 0x00000001u;
6418 }
6419 inline void FieldOptions::clear_has_ctype() {
6420 _has_bits_[0] &= ~0x00000001u;
6421 }
6422 inline void FieldOptions::clear_ctype() {
6423 ctype_ = 0;
6424 clear_has_ctype();
6425 }
6426 inline ::google::protobuf::FieldOptions_CType FieldOptions::ctype() const {
6427 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.ctype)
6428 return static_cast< ::google::protobuf::FieldOptions_CType >(ctype_);
6429 }
6430 inline void FieldOptions::set_ctype(::google::protobuf::FieldOptions_CType value) {
6431 assert(::google::protobuf::FieldOptions_CType_IsValid(value));
6432 set_has_ctype();
6433 ctype_ = value;
6434 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.ctype)
6435 }
6436
6437 // optional bool packed = 2;
6438 inline bool FieldOptions::has_packed() const {
6439 return (_has_bits_[0] & 0x00000002u) != 0;
6440 }
6441 inline void FieldOptions::set_has_packed() {
6442 _has_bits_[0] |= 0x00000002u;
6443 }
6444 inline void FieldOptions::clear_has_packed() {
6445 _has_bits_[0] &= ~0x00000002u;
6446 }
6447 inline void FieldOptions::clear_packed() {
6448 packed_ = false;
6449 clear_has_packed();
6450 }
6451 inline bool FieldOptions::packed() const {
6452 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.packed)
6453 return packed_;
6454 }
6455 inline void FieldOptions::set_packed(bool value) {
6456 set_has_packed();
6457 packed_ = value;
6458 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.packed)
6459 }
6460
6461 // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
6462 inline bool FieldOptions::has_jstype() const {
6463 return (_has_bits_[0] & 0x00000004u) != 0;
6464 }
6465 inline void FieldOptions::set_has_jstype() {
6466 _has_bits_[0] |= 0x00000004u;
6467 }
6468 inline void FieldOptions::clear_has_jstype() {
6469 _has_bits_[0] &= ~0x00000004u;
6470 }
6471 inline void FieldOptions::clear_jstype() {
6472 jstype_ = 0;
6473 clear_has_jstype();
6474 }
6475 inline ::google::protobuf::FieldOptions_JSType FieldOptions::jstype() const {
6476 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.jstype)
6477 return static_cast< ::google::protobuf::FieldOptions_JSType >(jstype_);
6478 }
6479 inline void FieldOptions::set_jstype(::google::protobuf::FieldOptions_JSType value) {
6480 assert(::google::protobuf::FieldOptions_JSType_IsValid(value));
6481 set_has_jstype();
6482 jstype_ = value;
6483 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.jstype)
6484 }
6485
6486 // optional bool lazy = 5 [default = false];
6487 inline bool FieldOptions::has_lazy() const {
6488 return (_has_bits_[0] & 0x00000008u) != 0;
6489 }
6490 inline void FieldOptions::set_has_lazy() {
6491 _has_bits_[0] |= 0x00000008u;
6492 }
6493 inline void FieldOptions::clear_has_lazy() {
6494 _has_bits_[0] &= ~0x00000008u;
6495 }
6496 inline void FieldOptions::clear_lazy() {
6497 lazy_ = false;
6498 clear_has_lazy();
6499 }
6500 inline bool FieldOptions::lazy() const {
6501 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.lazy)
6502 return lazy_;
6503 }
6504 inline void FieldOptions::set_lazy(bool value) {
6505 set_has_lazy();
6506 lazy_ = value;
6507 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.lazy)
6508 }
6509
6510 // optional bool deprecated = 3 [default = false];
6511 inline bool FieldOptions::has_deprecated() const {
6512 return (_has_bits_[0] & 0x00000010u) != 0;
6513 }
6514 inline void FieldOptions::set_has_deprecated() {
6515 _has_bits_[0] |= 0x00000010u;
6516 }
6517 inline void FieldOptions::clear_has_deprecated() {
6518 _has_bits_[0] &= ~0x00000010u;
6519 }
6520 inline void FieldOptions::clear_deprecated() {
6521 deprecated_ = false;
6522 clear_has_deprecated();
6523 }
6524 inline bool FieldOptions::deprecated() const {
6525 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.deprecated)
6526 return deprecated_;
6527 }
6528 inline void FieldOptions::set_deprecated(bool value) {
6529 set_has_deprecated();
6530 deprecated_ = value;
6531 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.deprecated)
6532 }
6533
6534 // optional bool weak = 10 [default = false];
6535 inline bool FieldOptions::has_weak() const {
6536 return (_has_bits_[0] & 0x00000020u) != 0;
6537 }
6538 inline void FieldOptions::set_has_weak() {
6539 _has_bits_[0] |= 0x00000020u;
6540 }
6541 inline void FieldOptions::clear_has_weak() {
6542 _has_bits_[0] &= ~0x00000020u;
6543 }
6544 inline void FieldOptions::clear_weak() {
6545 weak_ = false;
6546 clear_has_weak();
6547 }
6548 inline bool FieldOptions::weak() const {
6549 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.weak)
6550 return weak_;
6551 }
6552 inline void FieldOptions::set_weak(bool value) {
6553 set_has_weak();
6554 weak_ = value;
6555 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.weak)
6556 }
6557
6558 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
6559 inline int FieldOptions::uninterpreted_option_size() const {
6560 return uninterpreted_option_.size();
6561 }
6562 inline void FieldOptions::clear_uninterpreted_option() {
6563 uninterpreted_option_.Clear();
6564 }
6565 inline const ::google::protobuf::UninterpretedOption& FieldOptions::uninterpreted_option(int index) const {
6566 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.uninterpreted_option)
6567 return uninterpreted_option_.Get(index);
6568 }
6569 inline ::google::protobuf::UninterpretedOption* FieldOptions::mutable_uninterpreted_option(int index) {
6570 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldOptions.uninterpreted_option)
6571 return uninterpreted_option_.Mutable(index);
6572 }
6573 inline ::google::protobuf::UninterpretedOption* FieldOptions::add_uninterpreted_option() {
6574 // @@protoc_insertion_point(field_add:google.protobuf.FieldOptions.uninterpreted_option)
6575 return uninterpreted_option_.Add();
6576 }
6577 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
6578 FieldOptions::mutable_uninterpreted_option() {
6579 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FieldOptions.uninterpreted_option)
6580 return &uninterpreted_option_;
6581 }
6582 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
6583 FieldOptions::uninterpreted_option() const {
6584 // @@protoc_insertion_point(field_list:google.protobuf.FieldOptions.uninterpreted_option)
6585 return uninterpreted_option_;
6586 }
6587
6588 // -------------------------------------------------------------------
6589
6590 // EnumOptions
6591
6592 // optional bool allow_alias = 2;
6593 inline bool EnumOptions::has_allow_alias() const {
6594 return (_has_bits_[0] & 0x00000001u) != 0;
6595 }
6596 inline void EnumOptions::set_has_allow_alias() {
6597 _has_bits_[0] |= 0x00000001u;
6598 }
6599 inline void EnumOptions::clear_has_allow_alias() {
6600 _has_bits_[0] &= ~0x00000001u;
6601 }
6602 inline void EnumOptions::clear_allow_alias() {
6603 allow_alias_ = false;
6604 clear_has_allow_alias();
6605 }
6606 inline bool EnumOptions::allow_alias() const {
6607 // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.allow_alias)
6608 return allow_alias_;
6609 }
6610 inline void EnumOptions::set_allow_alias(bool value) {
6611 set_has_allow_alias();
6612 allow_alias_ = value;
6613 // @@protoc_insertion_point(field_set:google.protobuf.EnumOptions.allow_alias)
6614 }
6615
6616 // optional bool deprecated = 3 [default = false];
6617 inline bool EnumOptions::has_deprecated() const {
6618 return (_has_bits_[0] & 0x00000002u) != 0;
6619 }
6620 inline void EnumOptions::set_has_deprecated() {
6621 _has_bits_[0] |= 0x00000002u;
6622 }
6623 inline void EnumOptions::clear_has_deprecated() {
6624 _has_bits_[0] &= ~0x00000002u;
6625 }
6626 inline void EnumOptions::clear_deprecated() {
6627 deprecated_ = false;
6628 clear_has_deprecated();
6629 }
6630 inline bool EnumOptions::deprecated() const {
6631 // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.deprecated)
6632 return deprecated_;
6633 }
6634 inline void EnumOptions::set_deprecated(bool value) {
6635 set_has_deprecated();
6636 deprecated_ = value;
6637 // @@protoc_insertion_point(field_set:google.protobuf.EnumOptions.deprecated)
6638 }
6639
6640 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
6641 inline int EnumOptions::uninterpreted_option_size() const {
6642 return uninterpreted_option_.size();
6643 }
6644 inline void EnumOptions::clear_uninterpreted_option() {
6645 uninterpreted_option_.Clear();
6646 }
6647 inline const ::google::protobuf::UninterpretedOption& EnumOptions::uninterpreted_option(int index) const {
6648 // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.uninterpreted_option)
6649 return uninterpreted_option_.Get(index);
6650 }
6651 inline ::google::protobuf::UninterpretedOption* EnumOptions::mutable_uninterpreted_option(int index) {
6652 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumOptions.uninterpreted_option)
6653 return uninterpreted_option_.Mutable(index);
6654 }
6655 inline ::google::protobuf::UninterpretedOption* EnumOptions::add_uninterpreted_option() {
6656 // @@protoc_insertion_point(field_add:google.protobuf.EnumOptions.uninterpreted_option)
6657 return uninterpreted_option_.Add();
6658 }
6659 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
6660 EnumOptions::mutable_uninterpreted_option() {
6661 // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumOptions.uninterpreted_option)
6662 return &uninterpreted_option_;
6663 }
6664 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
6665 EnumOptions::uninterpreted_option() const {
6666 // @@protoc_insertion_point(field_list:google.protobuf.EnumOptions.uninterpreted_option)
6667 return uninterpreted_option_;
6668 }
6669
6670 // -------------------------------------------------------------------
6671
6672 // EnumValueOptions
6673
6674 // optional bool deprecated = 1 [default = false];
6675 inline bool EnumValueOptions::has_deprecated() const {
6676 return (_has_bits_[0] & 0x00000001u) != 0;
6677 }
6678 inline void EnumValueOptions::set_has_deprecated() {
6679 _has_bits_[0] |= 0x00000001u;
6680 }
6681 inline void EnumValueOptions::clear_has_deprecated() {
6682 _has_bits_[0] &= ~0x00000001u;
6683 }
6684 inline void EnumValueOptions::clear_deprecated() {
6685 deprecated_ = false;
6686 clear_has_deprecated();
6687 }
6688 inline bool EnumValueOptions::deprecated() const {
6689 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.deprecated)
6690 return deprecated_;
6691 }
6692 inline void EnumValueOptions::set_deprecated(bool value) {
6693 set_has_deprecated();
6694 deprecated_ = value;
6695 // @@protoc_insertion_point(field_set:google.protobuf.EnumValueOptions.deprecated)
6696 }
6697
6698 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
6699 inline int EnumValueOptions::uninterpreted_option_size() const {
6700 return uninterpreted_option_.size();
6701 }
6702 inline void EnumValueOptions::clear_uninterpreted_option() {
6703 uninterpreted_option_.Clear();
6704 }
6705 inline const ::google::protobuf::UninterpretedOption& EnumValueOptions::uninterpreted_option(int index) const {
6706 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.uninterpreted_option)
6707 return uninterpreted_option_.Get(index);
6708 }
6709 inline ::google::protobuf::UninterpretedOption* EnumValueOptions::mutable_uninterpreted_option(int index) {
6710 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueOptions.uninterpreted_option)
6711 return uninterpreted_option_.Mutable(index);
6712 }
6713 inline ::google::protobuf::UninterpretedOption* EnumValueOptions::add_uninterpreted_option() {
6714 // @@protoc_insertion_point(field_add:google.protobuf.EnumValueOptions.uninterpreted_option)
6715 return uninterpreted_option_.Add();
6716 }
6717 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
6718 EnumValueOptions::mutable_uninterpreted_option() {
6719 // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumValueOptions.uninterpreted_option)
6720 return &uninterpreted_option_;
6721 }
6722 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
6723 EnumValueOptions::uninterpreted_option() const {
6724 // @@protoc_insertion_point(field_list:google.protobuf.EnumValueOptions.uninterpreted_option)
6725 return uninterpreted_option_;
6726 }
6727
6728 // -------------------------------------------------------------------
6729
6730 // ServiceOptions
6731
6732 // optional bool deprecated = 33 [default = false];
6733 inline bool ServiceOptions::has_deprecated() const {
6734 return (_has_bits_[0] & 0x00000001u) != 0;
6735 }
6736 inline void ServiceOptions::set_has_deprecated() {
6737 _has_bits_[0] |= 0x00000001u;
6738 }
6739 inline void ServiceOptions::clear_has_deprecated() {
6740 _has_bits_[0] &= ~0x00000001u;
6741 }
6742 inline void ServiceOptions::clear_deprecated() {
6743 deprecated_ = false;
6744 clear_has_deprecated();
6745 }
6746 inline bool ServiceOptions::deprecated() const {
6747 // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.deprecated)
6748 return deprecated_;
6749 }
6750 inline void ServiceOptions::set_deprecated(bool value) {
6751 set_has_deprecated();
6752 deprecated_ = value;
6753 // @@protoc_insertion_point(field_set:google.protobuf.ServiceOptions.deprecated)
6754 }
6755
6756 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
6757 inline int ServiceOptions::uninterpreted_option_size() const {
6758 return uninterpreted_option_.size();
6759 }
6760 inline void ServiceOptions::clear_uninterpreted_option() {
6761 uninterpreted_option_.Clear();
6762 }
6763 inline const ::google::protobuf::UninterpretedOption& ServiceOptions::uninterpreted_option(int index) const {
6764 // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.uninterpreted_option)
6765 return uninterpreted_option_.Get(index);
6766 }
6767 inline ::google::protobuf::UninterpretedOption* ServiceOptions::mutable_uninterpreted_option(int index) {
6768 // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceOptions.uninterpreted_option)
6769 return uninterpreted_option_.Mutable(index);
6770 }
6771 inline ::google::protobuf::UninterpretedOption* ServiceOptions::add_uninterpreted_option() {
6772 // @@protoc_insertion_point(field_add:google.protobuf.ServiceOptions.uninterpreted_option)
6773 return uninterpreted_option_.Add();
6774 }
6775 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
6776 ServiceOptions::mutable_uninterpreted_option() {
6777 // @@protoc_insertion_point(field_mutable_list:google.protobuf.ServiceOptions.uninterpreted_option)
6778 return &uninterpreted_option_;
6779 }
6780 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
6781 ServiceOptions::uninterpreted_option() const {
6782 // @@protoc_insertion_point(field_list:google.protobuf.ServiceOptions.uninterpreted_option)
6783 return uninterpreted_option_;
6784 }
6785
6786 // -------------------------------------------------------------------
6787
6788 // MethodOptions
6789
6790 // optional bool deprecated = 33 [default = false];
6791 inline bool MethodOptions::has_deprecated() const {
6792 return (_has_bits_[0] & 0x00000001u) != 0;
6793 }
6794 inline void MethodOptions::set_has_deprecated() {
6795 _has_bits_[0] |= 0x00000001u;
6796 }
6797 inline void MethodOptions::clear_has_deprecated() {
6798 _has_bits_[0] &= ~0x00000001u;
6799 }
6800 inline void MethodOptions::clear_deprecated() {
6801 deprecated_ = false;
6802 clear_has_deprecated();
6803 }
6804 inline bool MethodOptions::deprecated() const {
6805 // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.deprecated)
6806 return deprecated_;
6807 }
6808 inline void MethodOptions::set_deprecated(bool value) {
6809 set_has_deprecated();
6810 deprecated_ = value;
6811 // @@protoc_insertion_point(field_set:google.protobuf.MethodOptions.deprecated)
6812 }
6813
6814 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
6815 inline int MethodOptions::uninterpreted_option_size() const {
6816 return uninterpreted_option_.size();
6817 }
6818 inline void MethodOptions::clear_uninterpreted_option() {
6819 uninterpreted_option_.Clear();
6820 }
6821 inline const ::google::protobuf::UninterpretedOption& MethodOptions::uninterpreted_option(int index) const {
6822 // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.uninterpreted_option)
6823 return uninterpreted_option_.Get(index);
6824 }
6825 inline ::google::protobuf::UninterpretedOption* MethodOptions::mutable_uninterpreted_option(int index) {
6826 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodOptions.uninterpreted_option)
6827 return uninterpreted_option_.Mutable(index);
6828 }
6829 inline ::google::protobuf::UninterpretedOption* MethodOptions::add_uninterpreted_option() {
6830 // @@protoc_insertion_point(field_add:google.protobuf.MethodOptions.uninterpreted_option)
6831 return uninterpreted_option_.Add();
6832 }
6833 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
6834 MethodOptions::mutable_uninterpreted_option() {
6835 // @@protoc_insertion_point(field_mutable_list:google.protobuf.MethodOptions.uninterpreted_option)
6836 return &uninterpreted_option_;
6837 }
6838 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
6839 MethodOptions::uninterpreted_option() const {
6840 // @@protoc_insertion_point(field_list:google.protobuf.MethodOptions.uninterpreted_option)
6841 return uninterpreted_option_;
6842 }
6843
6844 // -------------------------------------------------------------------
6845
6846 // UninterpretedOption_NamePart
6847
6848 // required string name_part = 1;
6849 inline bool UninterpretedOption_NamePart::has_name_part() const {
6850 return (_has_bits_[0] & 0x00000001u) != 0;
6851 }
6852 inline void UninterpretedOption_NamePart::set_has_name_part() {
6853 _has_bits_[0] |= 0x00000001u;
6854 }
6855 inline void UninterpretedOption_NamePart::clear_has_name_part() {
6856 _has_bits_[0] &= ~0x00000001u;
6857 }
6858 inline void UninterpretedOption_NamePart::clear_name_part() {
6859 name_part_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6860 clear_has_name_part();
6861 }
6862 inline const ::std::string& UninterpretedOption_NamePart::name_part() const {
6863 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.NamePart.name_part)
6864 return name_part_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6865 }
6866 inline void UninterpretedOption_NamePart::set_name_part(const ::std::string& value) {
6867 set_has_name_part();
6868 name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
6869 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.NamePart.name_part)
6870 }
6871 inline void UninterpretedOption_NamePart::set_name_part(const char* value) {
6872 set_has_name_part();
6873 name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
6874 // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.NamePart.name_part)
6875 }
6876 inline void UninterpretedOption_NamePart::set_name_part(const char* value, size_t size) {
6877 set_has_name_part();
6878 name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6879 ::std::string(reinterpret_cast<const char*>(value), size));
6880 // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.NamePart.name_part)
6881 }
6882 inline ::std::string* UninterpretedOption_NamePart::mutable_name_part() {
6883 set_has_name_part();
6884 // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.NamePart.name_part)
6885 return name_part_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6886 }
6887 inline ::std::string* UninterpretedOption_NamePart::release_name_part() {
6888 // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.NamePart.name_part)
6889 clear_has_name_part();
6890 return name_part_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6891 }
6892 inline void UninterpretedOption_NamePart::set_allocated_name_part(::std::string* name_part) {
6893 if (name_part != NULL) {
6894 set_has_name_part();
6895 } else {
6896 clear_has_name_part();
6897 }
6898 name_part_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name_part);
6899 // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.NamePart.name_part)
6900 }
6901
6902 // required bool is_extension = 2;
6903 inline bool UninterpretedOption_NamePart::has_is_extension() const {
6904 return (_has_bits_[0] & 0x00000002u) != 0;
6905 }
6906 inline void UninterpretedOption_NamePart::set_has_is_extension() {
6907 _has_bits_[0] |= 0x00000002u;
6908 }
6909 inline void UninterpretedOption_NamePart::clear_has_is_extension() {
6910 _has_bits_[0] &= ~0x00000002u;
6911 }
6912 inline void UninterpretedOption_NamePart::clear_is_extension() {
6913 is_extension_ = false;
6914 clear_has_is_extension();
6915 }
6916 inline bool UninterpretedOption_NamePart::is_extension() const {
6917 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.NamePart.is_extension)
6918 return is_extension_;
6919 }
6920 inline void UninterpretedOption_NamePart::set_is_extension(bool value) {
6921 set_has_is_extension();
6922 is_extension_ = value;
6923 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.NamePart.is_extension)
6924 }
6925
6926 // -------------------------------------------------------------------
6927
6928 // UninterpretedOption
6929
6930 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
6931 inline int UninterpretedOption::name_size() const {
6932 return name_.size();
6933 }
6934 inline void UninterpretedOption::clear_name() {
6935 name_.Clear();
6936 }
6937 inline const ::google::protobuf::UninterpretedOption_NamePart& UninterpretedOption::name(int index) const {
6938 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.name)
6939 return name_.Get(index);
6940 }
6941 inline ::google::protobuf::UninterpretedOption_NamePart* UninterpretedOption::mutable_name(int index) {
6942 // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.name)
6943 return name_.Mutable(index);
6944 }
6945 inline ::google::protobuf::UninterpretedOption_NamePart* UninterpretedOption::add_name() {
6946 // @@protoc_insertion_point(field_add:google.protobuf.UninterpretedOption.name)
6947 return name_.Add();
6948 }
6949 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >*
6950 UninterpretedOption::mutable_name() {
6951 // @@protoc_insertion_point(field_mutable_list:google.protobuf.UninterpretedOption.name)
6952 return &name_;
6953 }
6954 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >&
6955 UninterpretedOption::name() const {
6956 // @@protoc_insertion_point(field_list:google.protobuf.UninterpretedOption.name)
6957 return name_;
6958 }
6959
6960 // optional string identifier_value = 3;
6961 inline bool UninterpretedOption::has_identifier_value() const {
6962 return (_has_bits_[0] & 0x00000002u) != 0;
6963 }
6964 inline void UninterpretedOption::set_has_identifier_value() {
6965 _has_bits_[0] |= 0x00000002u;
6966 }
6967 inline void UninterpretedOption::clear_has_identifier_value() {
6968 _has_bits_[0] &= ~0x00000002u;
6969 }
6970 inline void UninterpretedOption::clear_identifier_value() {
6971 identifier_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6972 clear_has_identifier_value();
6973 }
6974 inline const ::std::string& UninterpretedOption::identifier_value() const {
6975 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.identifier_value)
6976 return identifier_value_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6977 }
6978 inline void UninterpretedOption::set_identifier_value(const ::std::string& value) {
6979 set_has_identifier_value();
6980 identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
6981 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.identifier_value)
6982 }
6983 inline void UninterpretedOption::set_identifier_value(const char* value) {
6984 set_has_identifier_value();
6985 identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
6986 // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.identifier_value)
6987 }
6988 inline void UninterpretedOption::set_identifier_value(const char* value, size_t size) {
6989 set_has_identifier_value();
6990 identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6991 ::std::string(reinterpret_cast<const char*>(value), size));
6992 // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.identifier_value)
6993 }
6994 inline ::std::string* UninterpretedOption::mutable_identifier_value() {
6995 set_has_identifier_value();
6996 // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.identifier_value)
6997 return identifier_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6998 }
6999 inline ::std::string* UninterpretedOption::release_identifier_value() {
7000 // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.identifier_value)
7001 clear_has_identifier_value();
7002 return identifier_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7003 }
7004 inline void UninterpretedOption::set_allocated_identifier_value(::std::string* identifier_value) {
7005 if (identifier_value != NULL) {
7006 set_has_identifier_value();
7007 } else {
7008 clear_has_identifier_value();
7009 }
7010 identifier_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), identifier_value);
7011 // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.identifier_value)
7012 }
7013
7014 // optional uint64 positive_int_value = 4;
7015 inline bool UninterpretedOption::has_positive_int_value() const {
7016 return (_has_bits_[0] & 0x00000004u) != 0;
7017 }
7018 inline void UninterpretedOption::set_has_positive_int_value() {
7019 _has_bits_[0] |= 0x00000004u;
7020 }
7021 inline void UninterpretedOption::clear_has_positive_int_value() {
7022 _has_bits_[0] &= ~0x00000004u;
7023 }
7024 inline void UninterpretedOption::clear_positive_int_value() {
7025 positive_int_value_ = GOOGLE_ULONGLONG(0);
7026 clear_has_positive_int_value();
7027 }
7028 inline ::google::protobuf::uint64 UninterpretedOption::positive_int_value() const {
7029 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.positive_int_value)
7030 return positive_int_value_;
7031 }
7032 inline void UninterpretedOption::set_positive_int_value(::google::protobuf::uint64 value) {
7033 set_has_positive_int_value();
7034 positive_int_value_ = value;
7035 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.positive_int_value)
7036 }
7037
7038 // optional int64 negative_int_value = 5;
7039 inline bool UninterpretedOption::has_negative_int_value() const {
7040 return (_has_bits_[0] & 0x00000008u) != 0;
7041 }
7042 inline void UninterpretedOption::set_has_negative_int_value() {
7043 _has_bits_[0] |= 0x00000008u;
7044 }
7045 inline void UninterpretedOption::clear_has_negative_int_value() {
7046 _has_bits_[0] &= ~0x00000008u;
7047 }
7048 inline void UninterpretedOption::clear_negative_int_value() {
7049 negative_int_value_ = GOOGLE_LONGLONG(0);
7050 clear_has_negative_int_value();
7051 }
7052 inline ::google::protobuf::int64 UninterpretedOption::negative_int_value() const {
7053 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.negative_int_value)
7054 return negative_int_value_;
7055 }
7056 inline void UninterpretedOption::set_negative_int_value(::google::protobuf::int64 value) {
7057 set_has_negative_int_value();
7058 negative_int_value_ = value;
7059 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.negative_int_value)
7060 }
7061
7062 // optional double double_value = 6;
7063 inline bool UninterpretedOption::has_double_value() const {
7064 return (_has_bits_[0] & 0x00000010u) != 0;
7065 }
7066 inline void UninterpretedOption::set_has_double_value() {
7067 _has_bits_[0] |= 0x00000010u;
7068 }
7069 inline void UninterpretedOption::clear_has_double_value() {
7070 _has_bits_[0] &= ~0x00000010u;
7071 }
7072 inline void UninterpretedOption::clear_double_value() {
7073 double_value_ = 0;
7074 clear_has_double_value();
7075 }
7076 inline double UninterpretedOption::double_value() const {
7077 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.double_value)
7078 return double_value_;
7079 }
7080 inline void UninterpretedOption::set_double_value(double value) {
7081 set_has_double_value();
7082 double_value_ = value;
7083 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.double_value)
7084 }
7085
7086 // optional bytes string_value = 7;
7087 inline bool UninterpretedOption::has_string_value() const {
7088 return (_has_bits_[0] & 0x00000020u) != 0;
7089 }
7090 inline void UninterpretedOption::set_has_string_value() {
7091 _has_bits_[0] |= 0x00000020u;
7092 }
7093 inline void UninterpretedOption::clear_has_string_value() {
7094 _has_bits_[0] &= ~0x00000020u;
7095 }
7096 inline void UninterpretedOption::clear_string_value() {
7097 string_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7098 clear_has_string_value();
7099 }
7100 inline const ::std::string& UninterpretedOption::string_value() const {
7101 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.string_value)
7102 return string_value_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7103 }
7104 inline void UninterpretedOption::set_string_value(const ::std::string& value) {
7105 set_has_string_value();
7106 string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
7107 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.string_value)
7108 }
7109 inline void UninterpretedOption::set_string_value(const char* value) {
7110 set_has_string_value();
7111 string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
7112 // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.string_value)
7113 }
7114 inline void UninterpretedOption::set_string_value(const void* value, size_t size) {
7115 set_has_string_value();
7116 string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7117 ::std::string(reinterpret_cast<const char*>(value), size));
7118 // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.string_value)
7119 }
7120 inline ::std::string* UninterpretedOption::mutable_string_value() {
7121 set_has_string_value();
7122 // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.string_value)
7123 return string_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7124 }
7125 inline ::std::string* UninterpretedOption::release_string_value() {
7126 // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.string_value)
7127 clear_has_string_value();
7128 return string_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7129 }
7130 inline void UninterpretedOption::set_allocated_string_value(::std::string* string_value) {
7131 if (string_value != NULL) {
7132 set_has_string_value();
7133 } else {
7134 clear_has_string_value();
7135 }
7136 string_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), string_value);
7137 // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.string_value)
7138 }
7139
7140 // optional string aggregate_value = 8;
7141 inline bool UninterpretedOption::has_aggregate_value() const {
7142 return (_has_bits_[0] & 0x00000040u) != 0;
7143 }
7144 inline void UninterpretedOption::set_has_aggregate_value() {
7145 _has_bits_[0] |= 0x00000040u;
7146 }
7147 inline void UninterpretedOption::clear_has_aggregate_value() {
7148 _has_bits_[0] &= ~0x00000040u;
7149 }
7150 inline void UninterpretedOption::clear_aggregate_value() {
7151 aggregate_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7152 clear_has_aggregate_value();
7153 }
7154 inline const ::std::string& UninterpretedOption::aggregate_value() const {
7155 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.aggregate_value)
7156 return aggregate_value_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7157 }
7158 inline void UninterpretedOption::set_aggregate_value(const ::std::string& value) {
7159 set_has_aggregate_value();
7160 aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
7161 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.aggregate_value)
7162 }
7163 inline void UninterpretedOption::set_aggregate_value(const char* value) {
7164 set_has_aggregate_value();
7165 aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
7166 // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.aggregate_value)
7167 }
7168 inline void UninterpretedOption::set_aggregate_value(const char* value, size_t size) {
7169 set_has_aggregate_value();
7170 aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7171 ::std::string(reinterpret_cast<const char*>(value), size));
7172 // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.aggregate_value)
7173 }
7174 inline ::std::string* UninterpretedOption::mutable_aggregate_value() {
7175 set_has_aggregate_value();
7176 // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.aggregate_value)
7177 return aggregate_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7178 }
7179 inline ::std::string* UninterpretedOption::release_aggregate_value() {
7180 // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.aggregate_value)
7181 clear_has_aggregate_value();
7182 return aggregate_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7183 }
7184 inline void UninterpretedOption::set_allocated_aggregate_value(::std::string* aggregate_value) {
7185 if (aggregate_value != NULL) {
7186 set_has_aggregate_value();
7187 } else {
7188 clear_has_aggregate_value();
7189 }
7190 aggregate_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), aggregate_value);
7191 // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.aggregate_value)
7192 }
7193
7194 // -------------------------------------------------------------------
7195
7196 // SourceCodeInfo_Location
7197
7198 // repeated int32 path = 1 [packed = true];
7199 inline int SourceCodeInfo_Location::path_size() const {
7200 return path_.size();
7201 }
7202 inline void SourceCodeInfo_Location::clear_path() {
7203 path_.Clear();
7204 }
7205 inline ::google::protobuf::int32 SourceCodeInfo_Location::path(int index) const {
7206 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.path)
7207 return path_.Get(index);
7208 }
7209 inline void SourceCodeInfo_Location::set_path(int index, ::google::protobuf::int32 value) {
7210 path_.Set(index, value);
7211 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.path)
7212 }
7213 inline void SourceCodeInfo_Location::add_path(::google::protobuf::int32 value) {
7214 path_.Add(value);
7215 // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.path)
7216 }
7217 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
7218 SourceCodeInfo_Location::path() const {
7219 // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.path)
7220 return path_;
7221 }
7222 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
7223 SourceCodeInfo_Location::mutable_path() {
7224 // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.path)
7225 return &path_;
7226 }
7227
7228 // repeated int32 span = 2 [packed = true];
7229 inline int SourceCodeInfo_Location::span_size() const {
7230 return span_.size();
7231 }
7232 inline void SourceCodeInfo_Location::clear_span() {
7233 span_.Clear();
7234 }
7235 inline ::google::protobuf::int32 SourceCodeInfo_Location::span(int index) const {
7236 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.span)
7237 return span_.Get(index);
7238 }
7239 inline void SourceCodeInfo_Location::set_span(int index, ::google::protobuf::int32 value) {
7240 span_.Set(index, value);
7241 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.span)
7242 }
7243 inline void SourceCodeInfo_Location::add_span(::google::protobuf::int32 value) {
7244 span_.Add(value);
7245 // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.span)
7246 }
7247 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
7248 SourceCodeInfo_Location::span() const {
7249 // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.span)
7250 return span_;
7251 }
7252 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
7253 SourceCodeInfo_Location::mutable_span() {
7254 // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.span)
7255 return &span_;
7256 }
7257
7258 // optional string leading_comments = 3;
7259 inline bool SourceCodeInfo_Location::has_leading_comments() const {
7260 return (_has_bits_[0] & 0x00000004u) != 0;
7261 }
7262 inline void SourceCodeInfo_Location::set_has_leading_comments() {
7263 _has_bits_[0] |= 0x00000004u;
7264 }
7265 inline void SourceCodeInfo_Location::clear_has_leading_comments() {
7266 _has_bits_[0] &= ~0x00000004u;
7267 }
7268 inline void SourceCodeInfo_Location::clear_leading_comments() {
7269 leading_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7270 clear_has_leading_comments();
7271 }
7272 inline const ::std::string& SourceCodeInfo_Location::leading_comments() const {
7273 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.leading_comments)
7274 return leading_comments_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7275 }
7276 inline void SourceCodeInfo_Location::set_leading_comments(const ::std::string& value) {
7277 set_has_leading_comments();
7278 leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
7279 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.leading_comments)
7280 }
7281 inline void SourceCodeInfo_Location::set_leading_comments(const char* value) {
7282 set_has_leading_comments();
7283 leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
7284 // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Location.leading_comments)
7285 }
7286 inline void SourceCodeInfo_Location::set_leading_comments(const char* value, size_t size) {
7287 set_has_leading_comments();
7288 leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7289 ::std::string(reinterpret_cast<const char*>(value), size));
7290 // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.Location.leading_comments)
7291 }
7292 inline ::std::string* SourceCodeInfo_Location::mutable_leading_comments() {
7293 set_has_leading_comments();
7294 // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.leading_comments)
7295 return leading_comments_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7296 }
7297 inline ::std::string* SourceCodeInfo_Location::release_leading_comments() {
7298 // @@protoc_insertion_point(field_release:google.protobuf.SourceCodeInfo.Location.leading_comments)
7299 clear_has_leading_comments();
7300 return leading_comments_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7301 }
7302 inline void SourceCodeInfo_Location::set_allocated_leading_comments(::std::string* leading_comments) {
7303 if (leading_comments != NULL) {
7304 set_has_leading_comments();
7305 } else {
7306 clear_has_leading_comments();
7307 }
7308 leading_comments_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), leading_comments);
7309 // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceCodeInfo.Location.leading_comments)
7310 }
7311
7312 // optional string trailing_comments = 4;
7313 inline bool SourceCodeInfo_Location::has_trailing_comments() const {
7314 return (_has_bits_[0] & 0x00000008u) != 0;
7315 }
7316 inline void SourceCodeInfo_Location::set_has_trailing_comments() {
7317 _has_bits_[0] |= 0x00000008u;
7318 }
7319 inline void SourceCodeInfo_Location::clear_has_trailing_comments() {
7320 _has_bits_[0] &= ~0x00000008u;
7321 }
7322 inline void SourceCodeInfo_Location::clear_trailing_comments() {
7323 trailing_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7324 clear_has_trailing_comments();
7325 }
7326 inline const ::std::string& SourceCodeInfo_Location::trailing_comments() const {
7327 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.trailing_comments)
7328 return trailing_comments_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7329 }
7330 inline void SourceCodeInfo_Location::set_trailing_comments(const ::std::string& value) {
7331 set_has_trailing_comments();
7332 trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
7333 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.trailing_comments)
7334 }
7335 inline void SourceCodeInfo_Location::set_trailing_comments(const char* value) {
7336 set_has_trailing_comments();
7337 trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
7338 // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Location.trailing_comments)
7339 }
7340 inline void SourceCodeInfo_Location::set_trailing_comments(const char* value, size_t size) {
7341 set_has_trailing_comments();
7342 trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7343 ::std::string(reinterpret_cast<const char*>(value), size));
7344 // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.Location.trailing_comments)
7345 }
7346 inline ::std::string* SourceCodeInfo_Location::mutable_trailing_comments() {
7347 set_has_trailing_comments();
7348 // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.trailing_comments)
7349 return trailing_comments_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7350 }
7351 inline ::std::string* SourceCodeInfo_Location::release_trailing_comments() {
7352 // @@protoc_insertion_point(field_release:google.protobuf.SourceCodeInfo.Location.trailing_comments)
7353 clear_has_trailing_comments();
7354 return trailing_comments_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7355 }
7356 inline void SourceCodeInfo_Location::set_allocated_trailing_comments(::std::string* trailing_comments) {
7357 if (trailing_comments != NULL) {
7358 set_has_trailing_comments();
7359 } else {
7360 clear_has_trailing_comments();
7361 }
7362 trailing_comments_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), trailing_comments);
7363 // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceCodeInfo.Location.trailing_comments)
7364 }
7365
7366 // repeated string leading_detached_comments = 6;
7367 inline int SourceCodeInfo_Location::leading_detached_comments_size() const {
7368 return leading_detached_comments_.size();
7369 }
7370 inline void SourceCodeInfo_Location::clear_leading_detached_comments() {
7371 leading_detached_comments_.Clear();
7372 }
7373 inline const ::std::string& SourceCodeInfo_Location::leading_detached_comments(int index) const {
7374 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
7375 return leading_detached_comments_.Get(index);
7376 }
7377 inline ::std::string* SourceCodeInfo_Location::mutable_leading_detached_comments(int index) {
7378 // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
7379 return leading_detached_comments_.Mutable(index);
7380 }
7381 inline void SourceCodeInfo_Location::set_leading_detached_comments(int index, const ::std::string& value) {
7382 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
7383 leading_detached_comments_.Mutable(index)->assign(value);
7384 }
7385 inline void SourceCodeInfo_Location::set_leading_detached_comments(int index, const char* value) {
7386 leading_detached_comments_.Mutable(index)->assign(value);
7387 // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
7388 }
7389 inline void SourceCodeInfo_Location::set_leading_detached_comments(int index, const char* value, size_t size) {
7390 leading_detached_comments_.Mutable(index)->assign(
7391 reinterpret_cast<const char*>(value), size);
7392 // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
7393 }
7394 inline ::std::string* SourceCodeInfo_Location::add_leading_detached_comments() {
7395 // @@protoc_insertion_point(field_add_mutable:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
7396 return leading_detached_comments_.Add();
7397 }
7398 inline void SourceCodeInfo_Location::add_leading_detached_comments(const ::std::string& value) {
7399 leading_detached_comments_.Add()->assign(value);
7400 // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
7401 }
7402 inline void SourceCodeInfo_Location::add_leading_detached_comments(const char* value) {
7403 leading_detached_comments_.Add()->assign(value);
7404 // @@protoc_insertion_point(field_add_char:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
7405 }
7406 inline void SourceCodeInfo_Location::add_leading_detached_comments(const char* value, size_t size) {
7407 leading_detached_comments_.Add()->assign(reinterpret_cast<const char*>(value), size);
7408 // @@protoc_insertion_point(field_add_pointer:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
7409 }
7410 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
7411 SourceCodeInfo_Location::leading_detached_comments() const {
7412 // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
7413 return leading_detached_comments_;
7414 }
7415 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
7416 SourceCodeInfo_Location::mutable_leading_detached_comments() {
7417 // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
7418 return &leading_detached_comments_;
7419 }
7420
7421 // -------------------------------------------------------------------
7422
7423 // SourceCodeInfo
7424
7425 // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
7426 inline int SourceCodeInfo::location_size() const {
7427 return location_.size();
7428 }
7429 inline void SourceCodeInfo::clear_location() {
7430 location_.Clear();
7431 }
7432 inline const ::google::protobuf::SourceCodeInfo_Location& SourceCodeInfo::location(int index) const {
7433 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.location)
7434 return location_.Get(index);
7435 }
7436 inline ::google::protobuf::SourceCodeInfo_Location* SourceCodeInfo::mutable_location(int index) {
7437 // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.location)
7438 return location_.Mutable(index);
7439 }
7440 inline ::google::protobuf::SourceCodeInfo_Location* SourceCodeInfo::add_location() {
7441 // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.location)
7442 return location_.Add();
7443 }
7444 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location >*
7445 SourceCodeInfo::mutable_location() {
7446 // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.location)
7447 return &location_;
7448 }
7449 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location >&
7450 SourceCodeInfo::location() const {
7451 // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.location)
7452 return location_;
7453 }
7454
7455 // -------------------------------------------------------------------
7456
7457 // GeneratedCodeInfo_Annotation
7458
7459 // repeated int32 path = 1 [packed = true];
7460 inline int GeneratedCodeInfo_Annotation::path_size() const {
7461 return path_.size();
7462 }
7463 inline void GeneratedCodeInfo_Annotation::clear_path() {
7464 path_.Clear();
7465 }
7466 inline ::google::protobuf::int32 GeneratedCodeInfo_Annotation::path(int index) const {
7467 // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.path)
7468 return path_.Get(index);
7469 }
7470 inline void GeneratedCodeInfo_Annotation::set_path(int index, ::google::protobuf::int32 value) {
7471 path_.Set(index, value);
7472 // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.path)
7473 }
7474 inline void GeneratedCodeInfo_Annotation::add_path(::google::protobuf::int32 value) {
7475 path_.Add(value);
7476 // @@protoc_insertion_point(field_add:google.protobuf.GeneratedCodeInfo.Annotation.path)
7477 }
7478 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
7479 GeneratedCodeInfo_Annotation::path() const {
7480 // @@protoc_insertion_point(field_list:google.protobuf.GeneratedCodeInfo.Annotation.path)
7481 return path_;
7482 }
7483 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
7484 GeneratedCodeInfo_Annotation::mutable_path() {
7485 // @@protoc_insertion_point(field_mutable_list:google.protobuf.GeneratedCodeInfo.Annotation.path)
7486 return &path_;
7487 }
7488
7489 // optional string source_file = 2;
7490 inline bool GeneratedCodeInfo_Annotation::has_source_file() const {
7491 return (_has_bits_[0] & 0x00000002u) != 0;
7492 }
7493 inline void GeneratedCodeInfo_Annotation::set_has_source_file() {
7494 _has_bits_[0] |= 0x00000002u;
7495 }
7496 inline void GeneratedCodeInfo_Annotation::clear_has_source_file() {
7497 _has_bits_[0] &= ~0x00000002u;
7498 }
7499 inline void GeneratedCodeInfo_Annotation::clear_source_file() {
7500 source_file_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7501 clear_has_source_file();
7502 }
7503 inline const ::std::string& GeneratedCodeInfo_Annotation::source_file() const {
7504 // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
7505 return source_file_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7506 }
7507 inline void GeneratedCodeInfo_Annotation::set_source_file(const ::std::string& value) {
7508 set_has_source_file();
7509 source_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
7510 // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
7511 }
7512 inline void GeneratedCodeInfo_Annotation::set_source_file(const char* value) {
7513 set_has_source_file();
7514 source_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
7515 // @@protoc_insertion_point(field_set_char:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
7516 }
7517 inline void GeneratedCodeInfo_Annotation::set_source_file(const char* value, size_t size) {
7518 set_has_source_file();
7519 source_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7520 ::std::string(reinterpret_cast<const char*>(value), size));
7521 // @@protoc_insertion_point(field_set_pointer:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
7522 }
7523 inline ::std::string* GeneratedCodeInfo_Annotation::mutable_source_file() {
7524 set_has_source_file();
7525 // @@protoc_insertion_point(field_mutable:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
7526 return source_file_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7527 }
7528 inline ::std::string* GeneratedCodeInfo_Annotation::release_source_file() {
7529 // @@protoc_insertion_point(field_release:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
7530 clear_has_source_file();
7531 return source_file_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7532 }
7533 inline void GeneratedCodeInfo_Annotation::set_allocated_source_file(::std::string* source_file) {
7534 if (source_file != NULL) {
7535 set_has_source_file();
7536 } else {
7537 clear_has_source_file();
7538 }
7539 source_file_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), source_file);
7540 // @@protoc_insertion_point(field_set_allocated:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
7541 }
7542
7543 // optional int32 begin = 3;
7544 inline bool GeneratedCodeInfo_Annotation::has_begin() const {
7545 return (_has_bits_[0] & 0x00000004u) != 0;
7546 }
7547 inline void GeneratedCodeInfo_Annotation::set_has_begin() {
7548 _has_bits_[0] |= 0x00000004u;
7549 }
7550 inline void GeneratedCodeInfo_Annotation::clear_has_begin() {
7551 _has_bits_[0] &= ~0x00000004u;
7552 }
7553 inline void GeneratedCodeInfo_Annotation::clear_begin() {
7554 begin_ = 0;
7555 clear_has_begin();
7556 }
7557 inline ::google::protobuf::int32 GeneratedCodeInfo_Annotation::begin() const {
7558 // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.begin)
7559 return begin_;
7560 }
7561 inline void GeneratedCodeInfo_Annotation::set_begin(::google::protobuf::int32 value) {
7562 set_has_begin();
7563 begin_ = value;
7564 // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.begin)
7565 }
7566
7567 // optional int32 end = 4;
7568 inline bool GeneratedCodeInfo_Annotation::has_end() const {
7569 return (_has_bits_[0] & 0x00000008u) != 0;
7570 }
7571 inline void GeneratedCodeInfo_Annotation::set_has_end() {
7572 _has_bits_[0] |= 0x00000008u;
7573 }
7574 inline void GeneratedCodeInfo_Annotation::clear_has_end() {
7575 _has_bits_[0] &= ~0x00000008u;
7576 }
7577 inline void GeneratedCodeInfo_Annotation::clear_end() {
7578 end_ = 0;
7579 clear_has_end();
7580 }
7581 inline ::google::protobuf::int32 GeneratedCodeInfo_Annotation::end() const {
7582 // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.end)
7583 return end_;
7584 }
7585 inline void GeneratedCodeInfo_Annotation::set_end(::google::protobuf::int32 value) {
7586 set_has_end();
7587 end_ = value;
7588 // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.end)
7589 }
7590
7591 // -------------------------------------------------------------------
7592
7593 // GeneratedCodeInfo
7594
7595 // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
7596 inline int GeneratedCodeInfo::annotation_size() const {
7597 return annotation_.size();
7598 }
7599 inline void GeneratedCodeInfo::clear_annotation() {
7600 annotation_.Clear();
7601 }
7602 inline const ::google::protobuf::GeneratedCodeInfo_Annotation& GeneratedCodeInfo::annotation(int index) const {
7603 // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.annotation)
7604 return annotation_.Get(index);
7605 }
7606 inline ::google::protobuf::GeneratedCodeInfo_Annotation* GeneratedCodeInfo::mutable_annotation(int index) {
7607 // @@protoc_insertion_point(field_mutable:google.protobuf.GeneratedCodeInfo.annotation)
7608 return annotation_.Mutable(index);
7609 }
7610 inline ::google::protobuf::GeneratedCodeInfo_Annotation* GeneratedCodeInfo::add_annotation() {
7611 // @@protoc_insertion_point(field_add:google.protobuf.GeneratedCodeInfo.annotation)
7612 return annotation_.Add();
7613 }
7614 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::GeneratedCodeInfo_Annotation >*
7615 GeneratedCodeInfo::mutable_annotation() {
7616 // @@protoc_insertion_point(field_mutable_list:google.protobuf.GeneratedCodeInfo.annotation)
7617 return &annotation_;
7618 }
7619 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::GeneratedCodeInfo_Annotation >&
7620 GeneratedCodeInfo::annotation() const {
7621 // @@protoc_insertion_point(field_list:google.protobuf.GeneratedCodeInfo.annotation)
7622 return annotation_;
7623 }
7624
7625 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
7626 // -------------------------------------------------------------------
7627
7628 // -------------------------------------------------------------------
7629
7630 // -------------------------------------------------------------------
7631
7632 // -------------------------------------------------------------------
7633
7634 // -------------------------------------------------------------------
7635
7636 // -------------------------------------------------------------------
7637
7638 // -------------------------------------------------------------------
7639
7640 // -------------------------------------------------------------------
7641
7642 // -------------------------------------------------------------------
7643
7644 // -------------------------------------------------------------------
7645
7646 // -------------------------------------------------------------------
7647
7648 // -------------------------------------------------------------------
7649
7650 // -------------------------------------------------------------------
7651
7652 // -------------------------------------------------------------------
7653
7654 // -------------------------------------------------------------------
7655
7656 // -------------------------------------------------------------------
7657
7658 // -------------------------------------------------------------------
7659
7660 // -------------------------------------------------------------------
7661
7662 // -------------------------------------------------------------------
7663
7664 // -------------------------------------------------------------------
7665
7666 // -------------------------------------------------------------------
7667
7668 // -------------------------------------------------------------------
7669
7670 // -------------------------------------------------------------------
7671
7672
7673 // @@protoc_insertion_point(namespace_scope)
7674
7675 } // namespace protobuf
7676 } // namespace google
7677
7678 #ifndef SWIG
7679 namespace google {
7680 namespace protobuf {
7681
7682 template <> struct is_proto_enum< ::google::protobuf::FieldDescriptorProto_Type> : ::google::protobuf::internal::true_type {};
7683 template <>
7684 inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::FieldDescriptorProto_Type>() {
7685 return ::google::protobuf::FieldDescriptorProto_Type_descriptor();
7686 }
7687 template <> struct is_proto_enum< ::google::protobuf::FieldDescriptorProto_Label> : ::google::protobuf::internal::true_type {};
7688 template <>
7689 inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::FieldDescriptorProto_Label>() {
7690 return ::google::protobuf::FieldDescriptorProto_Label_descriptor();
7691 }
7692 template <> struct is_proto_enum< ::google::protobuf::FileOptions_OptimizeMode> : ::google::protobuf::internal::true_type {};
7693 template <>
7694 inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::FileOptions_OptimizeMode>() {
7695 return ::google::protobuf::FileOptions_OptimizeMode_descriptor();
7696 }
7697 template <> struct is_proto_enum< ::google::protobuf::FieldOptions_CType> : ::google::protobuf::internal::true_type {};
7698 template <>
7699 inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::FieldOptions_CType>() {
7700 return ::google::protobuf::FieldOptions_CType_descriptor();
7701 }
7702 template <> struct is_proto_enum< ::google::protobuf::FieldOptions_JSType> : ::google::protobuf::internal::true_type {};
7703 template <>
7704 inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::FieldOptions_JSType>() {
7705 return ::google::protobuf::FieldOptions_JSType_descriptor();
7706 }
7707
7708 } // namespace protobuf
7709 } // namespace google
7710 #endif // SWIG
7711
7712 // @@protoc_insertion_point(global_scope)
7713
7714 #endif // PROTOBUF_google_2fprotobuf_2fdescriptor_2eproto__INCLUDED