1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: google/protobuf/api.proto
3
4 #ifndef PROTOBUF_google_2fprotobuf_2fapi_2eproto__INCLUDED
5 #define PROTOBUF_google_2fprotobuf_2fapi_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/unknown_field_set.h>
30 #include <google/protobuf/source_context.pb.h>
31 #include <google/protobuf/type.pb.h>
32 // @@protoc_insertion_point(includes)
33
34 namespace google {
35 namespace protobuf {
36
37 // Internal implementation detail -- do not call these.
38 void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fapi_2eproto();
39 void protobuf_AssignDesc_google_2fprotobuf_2fapi_2eproto();
40 void protobuf_ShutdownFile_google_2fprotobuf_2fapi_2eproto();
41
42 class Api;
43 class Method;
44 class Mixin;
45
46 // ===================================================================
47
48 class LIBPROTOBUF_EXPORT Api : public ::google::protobuf::Message {
49 public:
50 Api();
51 virtual ~Api();
52
53 Api(const Api& from);
54
55 inline Api& operator=(const Api& from) {
56 CopyFrom(from);
57 return *this;
58 }
59
60 static const ::google::protobuf::Descriptor* descriptor();
61 static const Api& default_instance();
62
63 void Swap(Api* other);
64
65 // implements Message ----------------------------------------------
66
New()67 inline Api* New() const { return New(NULL); }
68
69 Api* New(::google::protobuf::Arena* arena) const;
70 void CopyFrom(const ::google::protobuf::Message& from);
71 void MergeFrom(const ::google::protobuf::Message& from);
72 void CopyFrom(const Api& from);
73 void MergeFrom(const Api& from);
74 void Clear();
75 bool IsInitialized() const;
76
77 int ByteSize() const;
78 bool MergePartialFromCodedStream(
79 ::google::protobuf::io::CodedInputStream* input);
80 void SerializeWithCachedSizes(
81 ::google::protobuf::io::CodedOutputStream* output) const;
82 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
GetCachedSize()83 int GetCachedSize() const { return _cached_size_; }
84 private:
85 void SharedCtor();
86 void SharedDtor();
87 void SetCachedSize(int size) const;
88 void InternalSwap(Api* other);
89 private:
GetArenaNoVirtual()90 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
91 return _internal_metadata_.arena();
92 }
MaybeArenaPtr()93 inline void* MaybeArenaPtr() const {
94 return _internal_metadata_.raw_arena_ptr();
95 }
96 public:
97
98 ::google::protobuf::Metadata GetMetadata() const;
99
100 // nested types ----------------------------------------------------
101
102 // accessors -------------------------------------------------------
103
104 // optional string name = 1;
105 void clear_name();
106 static const int kNameFieldNumber = 1;
107 const ::std::string& name() const;
108 void set_name(const ::std::string& value);
109 void set_name(const char* value);
110 void set_name(const char* value, size_t size);
111 ::std::string* mutable_name();
112 ::std::string* release_name();
113 void set_allocated_name(::std::string* name);
114
115 // repeated .google.protobuf.Method methods = 2;
116 int methods_size() const;
117 void clear_methods();
118 static const int kMethodsFieldNumber = 2;
119 const ::google::protobuf::Method& methods(int index) const;
120 ::google::protobuf::Method* mutable_methods(int index);
121 ::google::protobuf::Method* add_methods();
122 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Method >*
123 mutable_methods();
124 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Method >&
125 methods() const;
126
127 // repeated .google.protobuf.Option options = 3;
128 int options_size() const;
129 void clear_options();
130 static const int kOptionsFieldNumber = 3;
131 const ::google::protobuf::Option& options(int index) const;
132 ::google::protobuf::Option* mutable_options(int index);
133 ::google::protobuf::Option* add_options();
134 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
135 mutable_options();
136 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
137 options() const;
138
139 // optional string version = 4;
140 void clear_version();
141 static const int kVersionFieldNumber = 4;
142 const ::std::string& version() const;
143 void set_version(const ::std::string& value);
144 void set_version(const char* value);
145 void set_version(const char* value, size_t size);
146 ::std::string* mutable_version();
147 ::std::string* release_version();
148 void set_allocated_version(::std::string* version);
149
150 // optional .google.protobuf.SourceContext source_context = 5;
151 bool has_source_context() const;
152 void clear_source_context();
153 static const int kSourceContextFieldNumber = 5;
154 const ::google::protobuf::SourceContext& source_context() const;
155 ::google::protobuf::SourceContext* mutable_source_context();
156 ::google::protobuf::SourceContext* release_source_context();
157 void set_allocated_source_context(::google::protobuf::SourceContext* source_context);
158
159 // repeated .google.protobuf.Mixin mixins = 6;
160 int mixins_size() const;
161 void clear_mixins();
162 static const int kMixinsFieldNumber = 6;
163 const ::google::protobuf::Mixin& mixins(int index) const;
164 ::google::protobuf::Mixin* mutable_mixins(int index);
165 ::google::protobuf::Mixin* add_mixins();
166 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Mixin >*
167 mutable_mixins();
168 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Mixin >&
169 mixins() const;
170
171 // optional .google.protobuf.Syntax syntax = 7;
172 void clear_syntax();
173 static const int kSyntaxFieldNumber = 7;
174 ::google::protobuf::Syntax syntax() const;
175 void set_syntax(::google::protobuf::Syntax value);
176
177 // @@protoc_insertion_point(class_scope:google.protobuf.Api)
178 private:
179
180 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
181 bool _is_default_instance_;
182 ::google::protobuf::internal::ArenaStringPtr name_;
183 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Method > methods_;
184 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > options_;
185 ::google::protobuf::internal::ArenaStringPtr version_;
186 ::google::protobuf::SourceContext* source_context_;
187 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Mixin > mixins_;
188 int syntax_;
189 mutable int _cached_size_;
190 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fapi_2eproto();
191 friend void protobuf_AssignDesc_google_2fprotobuf_2fapi_2eproto();
192 friend void protobuf_ShutdownFile_google_2fprotobuf_2fapi_2eproto();
193
194 void InitAsDefaultInstance();
195 static Api* default_instance_;
196 };
197 // -------------------------------------------------------------------
198
199 class LIBPROTOBUF_EXPORT Method : public ::google::protobuf::Message {
200 public:
201 Method();
202 virtual ~Method();
203
204 Method(const Method& from);
205
206 inline Method& operator=(const Method& from) {
207 CopyFrom(from);
208 return *this;
209 }
210
211 static const ::google::protobuf::Descriptor* descriptor();
212 static const Method& default_instance();
213
214 void Swap(Method* other);
215
216 // implements Message ----------------------------------------------
217
New()218 inline Method* New() const { return New(NULL); }
219
220 Method* New(::google::protobuf::Arena* arena) const;
221 void CopyFrom(const ::google::protobuf::Message& from);
222 void MergeFrom(const ::google::protobuf::Message& from);
223 void CopyFrom(const Method& from);
224 void MergeFrom(const Method& from);
225 void Clear();
226 bool IsInitialized() const;
227
228 int ByteSize() const;
229 bool MergePartialFromCodedStream(
230 ::google::protobuf::io::CodedInputStream* input);
231 void SerializeWithCachedSizes(
232 ::google::protobuf::io::CodedOutputStream* output) const;
233 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
GetCachedSize()234 int GetCachedSize() const { return _cached_size_; }
235 private:
236 void SharedCtor();
237 void SharedDtor();
238 void SetCachedSize(int size) const;
239 void InternalSwap(Method* other);
240 private:
GetArenaNoVirtual()241 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
242 return _internal_metadata_.arena();
243 }
MaybeArenaPtr()244 inline void* MaybeArenaPtr() const {
245 return _internal_metadata_.raw_arena_ptr();
246 }
247 public:
248
249 ::google::protobuf::Metadata GetMetadata() const;
250
251 // nested types ----------------------------------------------------
252
253 // accessors -------------------------------------------------------
254
255 // optional string name = 1;
256 void clear_name();
257 static const int kNameFieldNumber = 1;
258 const ::std::string& name() const;
259 void set_name(const ::std::string& value);
260 void set_name(const char* value);
261 void set_name(const char* value, size_t size);
262 ::std::string* mutable_name();
263 ::std::string* release_name();
264 void set_allocated_name(::std::string* name);
265
266 // optional string request_type_url = 2;
267 void clear_request_type_url();
268 static const int kRequestTypeUrlFieldNumber = 2;
269 const ::std::string& request_type_url() const;
270 void set_request_type_url(const ::std::string& value);
271 void set_request_type_url(const char* value);
272 void set_request_type_url(const char* value, size_t size);
273 ::std::string* mutable_request_type_url();
274 ::std::string* release_request_type_url();
275 void set_allocated_request_type_url(::std::string* request_type_url);
276
277 // optional bool request_streaming = 3;
278 void clear_request_streaming();
279 static const int kRequestStreamingFieldNumber = 3;
280 bool request_streaming() const;
281 void set_request_streaming(bool value);
282
283 // optional string response_type_url = 4;
284 void clear_response_type_url();
285 static const int kResponseTypeUrlFieldNumber = 4;
286 const ::std::string& response_type_url() const;
287 void set_response_type_url(const ::std::string& value);
288 void set_response_type_url(const char* value);
289 void set_response_type_url(const char* value, size_t size);
290 ::std::string* mutable_response_type_url();
291 ::std::string* release_response_type_url();
292 void set_allocated_response_type_url(::std::string* response_type_url);
293
294 // optional bool response_streaming = 5;
295 void clear_response_streaming();
296 static const int kResponseStreamingFieldNumber = 5;
297 bool response_streaming() const;
298 void set_response_streaming(bool value);
299
300 // repeated .google.protobuf.Option options = 6;
301 int options_size() const;
302 void clear_options();
303 static const int kOptionsFieldNumber = 6;
304 const ::google::protobuf::Option& options(int index) const;
305 ::google::protobuf::Option* mutable_options(int index);
306 ::google::protobuf::Option* add_options();
307 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
308 mutable_options();
309 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
310 options() const;
311
312 // optional .google.protobuf.Syntax syntax = 7;
313 void clear_syntax();
314 static const int kSyntaxFieldNumber = 7;
315 ::google::protobuf::Syntax syntax() const;
316 void set_syntax(::google::protobuf::Syntax value);
317
318 // @@protoc_insertion_point(class_scope:google.protobuf.Method)
319 private:
320
321 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
322 bool _is_default_instance_;
323 ::google::protobuf::internal::ArenaStringPtr name_;
324 ::google::protobuf::internal::ArenaStringPtr request_type_url_;
325 ::google::protobuf::internal::ArenaStringPtr response_type_url_;
326 bool request_streaming_;
327 bool response_streaming_;
328 int syntax_;
329 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > options_;
330 mutable int _cached_size_;
331 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fapi_2eproto();
332 friend void protobuf_AssignDesc_google_2fprotobuf_2fapi_2eproto();
333 friend void protobuf_ShutdownFile_google_2fprotobuf_2fapi_2eproto();
334
335 void InitAsDefaultInstance();
336 static Method* default_instance_;
337 };
338 // -------------------------------------------------------------------
339
340 class LIBPROTOBUF_EXPORT Mixin : public ::google::protobuf::Message {
341 public:
342 Mixin();
343 virtual ~Mixin();
344
345 Mixin(const Mixin& from);
346
347 inline Mixin& operator=(const Mixin& from) {
348 CopyFrom(from);
349 return *this;
350 }
351
352 static const ::google::protobuf::Descriptor* descriptor();
353 static const Mixin& default_instance();
354
355 void Swap(Mixin* other);
356
357 // implements Message ----------------------------------------------
358
New()359 inline Mixin* New() const { return New(NULL); }
360
361 Mixin* New(::google::protobuf::Arena* arena) const;
362 void CopyFrom(const ::google::protobuf::Message& from);
363 void MergeFrom(const ::google::protobuf::Message& from);
364 void CopyFrom(const Mixin& from);
365 void MergeFrom(const Mixin& from);
366 void Clear();
367 bool IsInitialized() const;
368
369 int ByteSize() const;
370 bool MergePartialFromCodedStream(
371 ::google::protobuf::io::CodedInputStream* input);
372 void SerializeWithCachedSizes(
373 ::google::protobuf::io::CodedOutputStream* output) const;
374 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
GetCachedSize()375 int GetCachedSize() const { return _cached_size_; }
376 private:
377 void SharedCtor();
378 void SharedDtor();
379 void SetCachedSize(int size) const;
380 void InternalSwap(Mixin* other);
381 private:
GetArenaNoVirtual()382 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
383 return _internal_metadata_.arena();
384 }
MaybeArenaPtr()385 inline void* MaybeArenaPtr() const {
386 return _internal_metadata_.raw_arena_ptr();
387 }
388 public:
389
390 ::google::protobuf::Metadata GetMetadata() const;
391
392 // nested types ----------------------------------------------------
393
394 // accessors -------------------------------------------------------
395
396 // optional string name = 1;
397 void clear_name();
398 static const int kNameFieldNumber = 1;
399 const ::std::string& name() const;
400 void set_name(const ::std::string& value);
401 void set_name(const char* value);
402 void set_name(const char* value, size_t size);
403 ::std::string* mutable_name();
404 ::std::string* release_name();
405 void set_allocated_name(::std::string* name);
406
407 // optional string root = 2;
408 void clear_root();
409 static const int kRootFieldNumber = 2;
410 const ::std::string& root() const;
411 void set_root(const ::std::string& value);
412 void set_root(const char* value);
413 void set_root(const char* value, size_t size);
414 ::std::string* mutable_root();
415 ::std::string* release_root();
416 void set_allocated_root(::std::string* root);
417
418 // @@protoc_insertion_point(class_scope:google.protobuf.Mixin)
419 private:
420
421 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
422 bool _is_default_instance_;
423 ::google::protobuf::internal::ArenaStringPtr name_;
424 ::google::protobuf::internal::ArenaStringPtr root_;
425 mutable int _cached_size_;
426 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fapi_2eproto();
427 friend void protobuf_AssignDesc_google_2fprotobuf_2fapi_2eproto();
428 friend void protobuf_ShutdownFile_google_2fprotobuf_2fapi_2eproto();
429
430 void InitAsDefaultInstance();
431 static Mixin* default_instance_;
432 };
433 // ===================================================================
434
435
436 // ===================================================================
437
438 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
439 // Api
440
441 // optional string name = 1;
clear_name()442 inline void Api::clear_name() {
443 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
444 }
name()445 inline const ::std::string& Api::name() const {
446 // @@protoc_insertion_point(field_get:google.protobuf.Api.name)
447 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
448 }
set_name(const::std::string & value)449 inline void Api::set_name(const ::std::string& value) {
450
451 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
452 // @@protoc_insertion_point(field_set:google.protobuf.Api.name)
453 }
set_name(const char * value)454 inline void Api::set_name(const char* value) {
455
456 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
457 // @@protoc_insertion_point(field_set_char:google.protobuf.Api.name)
458 }
set_name(const char * value,size_t size)459 inline void Api::set_name(const char* value, size_t size) {
460
461 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
462 ::std::string(reinterpret_cast<const char*>(value), size));
463 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Api.name)
464 }
mutable_name()465 inline ::std::string* Api::mutable_name() {
466
467 // @@protoc_insertion_point(field_mutable:google.protobuf.Api.name)
468 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
469 }
release_name()470 inline ::std::string* Api::release_name() {
471 // @@protoc_insertion_point(field_release:google.protobuf.Api.name)
472
473 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
474 }
set_allocated_name(::std::string * name)475 inline void Api::set_allocated_name(::std::string* name) {
476 if (name != NULL) {
477
478 } else {
479
480 }
481 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
482 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Api.name)
483 }
484
485 // repeated .google.protobuf.Method methods = 2;
methods_size()486 inline int Api::methods_size() const {
487 return methods_.size();
488 }
clear_methods()489 inline void Api::clear_methods() {
490 methods_.Clear();
491 }
methods(int index)492 inline const ::google::protobuf::Method& Api::methods(int index) const {
493 // @@protoc_insertion_point(field_get:google.protobuf.Api.methods)
494 return methods_.Get(index);
495 }
mutable_methods(int index)496 inline ::google::protobuf::Method* Api::mutable_methods(int index) {
497 // @@protoc_insertion_point(field_mutable:google.protobuf.Api.methods)
498 return methods_.Mutable(index);
499 }
add_methods()500 inline ::google::protobuf::Method* Api::add_methods() {
501 // @@protoc_insertion_point(field_add:google.protobuf.Api.methods)
502 return methods_.Add();
503 }
504 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Method >*
mutable_methods()505 Api::mutable_methods() {
506 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Api.methods)
507 return &methods_;
508 }
509 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Method >&
methods()510 Api::methods() const {
511 // @@protoc_insertion_point(field_list:google.protobuf.Api.methods)
512 return methods_;
513 }
514
515 // repeated .google.protobuf.Option options = 3;
options_size()516 inline int Api::options_size() const {
517 return options_.size();
518 }
clear_options()519 inline void Api::clear_options() {
520 options_.Clear();
521 }
options(int index)522 inline const ::google::protobuf::Option& Api::options(int index) const {
523 // @@protoc_insertion_point(field_get:google.protobuf.Api.options)
524 return options_.Get(index);
525 }
mutable_options(int index)526 inline ::google::protobuf::Option* Api::mutable_options(int index) {
527 // @@protoc_insertion_point(field_mutable:google.protobuf.Api.options)
528 return options_.Mutable(index);
529 }
add_options()530 inline ::google::protobuf::Option* Api::add_options() {
531 // @@protoc_insertion_point(field_add:google.protobuf.Api.options)
532 return options_.Add();
533 }
534 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
mutable_options()535 Api::mutable_options() {
536 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Api.options)
537 return &options_;
538 }
539 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
options()540 Api::options() const {
541 // @@protoc_insertion_point(field_list:google.protobuf.Api.options)
542 return options_;
543 }
544
545 // optional string version = 4;
clear_version()546 inline void Api::clear_version() {
547 version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
548 }
version()549 inline const ::std::string& Api::version() const {
550 // @@protoc_insertion_point(field_get:google.protobuf.Api.version)
551 return version_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
552 }
set_version(const::std::string & value)553 inline void Api::set_version(const ::std::string& value) {
554
555 version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
556 // @@protoc_insertion_point(field_set:google.protobuf.Api.version)
557 }
set_version(const char * value)558 inline void Api::set_version(const char* value) {
559
560 version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
561 // @@protoc_insertion_point(field_set_char:google.protobuf.Api.version)
562 }
set_version(const char * value,size_t size)563 inline void Api::set_version(const char* value, size_t size) {
564
565 version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
566 ::std::string(reinterpret_cast<const char*>(value), size));
567 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Api.version)
568 }
mutable_version()569 inline ::std::string* Api::mutable_version() {
570
571 // @@protoc_insertion_point(field_mutable:google.protobuf.Api.version)
572 return version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
573 }
release_version()574 inline ::std::string* Api::release_version() {
575 // @@protoc_insertion_point(field_release:google.protobuf.Api.version)
576
577 return version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
578 }
set_allocated_version(::std::string * version)579 inline void Api::set_allocated_version(::std::string* version) {
580 if (version != NULL) {
581
582 } else {
583
584 }
585 version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), version);
586 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Api.version)
587 }
588
589 // optional .google.protobuf.SourceContext source_context = 5;
has_source_context()590 inline bool Api::has_source_context() const {
591 return !_is_default_instance_ && source_context_ != NULL;
592 }
clear_source_context()593 inline void Api::clear_source_context() {
594 if (GetArenaNoVirtual() == NULL && source_context_ != NULL) delete source_context_;
595 source_context_ = NULL;
596 }
source_context()597 inline const ::google::protobuf::SourceContext& Api::source_context() const {
598 // @@protoc_insertion_point(field_get:google.protobuf.Api.source_context)
599 return source_context_ != NULL ? *source_context_ : *default_instance_->source_context_;
600 }
mutable_source_context()601 inline ::google::protobuf::SourceContext* Api::mutable_source_context() {
602
603 if (source_context_ == NULL) {
604 source_context_ = new ::google::protobuf::SourceContext;
605 }
606 // @@protoc_insertion_point(field_mutable:google.protobuf.Api.source_context)
607 return source_context_;
608 }
release_source_context()609 inline ::google::protobuf::SourceContext* Api::release_source_context() {
610 // @@protoc_insertion_point(field_release:google.protobuf.Api.source_context)
611
612 ::google::protobuf::SourceContext* temp = source_context_;
613 source_context_ = NULL;
614 return temp;
615 }
set_allocated_source_context(::google::protobuf::SourceContext * source_context)616 inline void Api::set_allocated_source_context(::google::protobuf::SourceContext* source_context) {
617 delete source_context_;
618 source_context_ = source_context;
619 if (source_context) {
620
621 } else {
622
623 }
624 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Api.source_context)
625 }
626
627 // repeated .google.protobuf.Mixin mixins = 6;
mixins_size()628 inline int Api::mixins_size() const {
629 return mixins_.size();
630 }
clear_mixins()631 inline void Api::clear_mixins() {
632 mixins_.Clear();
633 }
mixins(int index)634 inline const ::google::protobuf::Mixin& Api::mixins(int index) const {
635 // @@protoc_insertion_point(field_get:google.protobuf.Api.mixins)
636 return mixins_.Get(index);
637 }
mutable_mixins(int index)638 inline ::google::protobuf::Mixin* Api::mutable_mixins(int index) {
639 // @@protoc_insertion_point(field_mutable:google.protobuf.Api.mixins)
640 return mixins_.Mutable(index);
641 }
add_mixins()642 inline ::google::protobuf::Mixin* Api::add_mixins() {
643 // @@protoc_insertion_point(field_add:google.protobuf.Api.mixins)
644 return mixins_.Add();
645 }
646 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Mixin >*
mutable_mixins()647 Api::mutable_mixins() {
648 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Api.mixins)
649 return &mixins_;
650 }
651 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Mixin >&
mixins()652 Api::mixins() const {
653 // @@protoc_insertion_point(field_list:google.protobuf.Api.mixins)
654 return mixins_;
655 }
656
657 // optional .google.protobuf.Syntax syntax = 7;
clear_syntax()658 inline void Api::clear_syntax() {
659 syntax_ = 0;
660 }
syntax()661 inline ::google::protobuf::Syntax Api::syntax() const {
662 // @@protoc_insertion_point(field_get:google.protobuf.Api.syntax)
663 return static_cast< ::google::protobuf::Syntax >(syntax_);
664 }
set_syntax(::google::protobuf::Syntax value)665 inline void Api::set_syntax(::google::protobuf::Syntax value) {
666
667 syntax_ = value;
668 // @@protoc_insertion_point(field_set:google.protobuf.Api.syntax)
669 }
670
671 // -------------------------------------------------------------------
672
673 // Method
674
675 // optional string name = 1;
clear_name()676 inline void Method::clear_name() {
677 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
678 }
name()679 inline const ::std::string& Method::name() const {
680 // @@protoc_insertion_point(field_get:google.protobuf.Method.name)
681 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
682 }
set_name(const::std::string & value)683 inline void Method::set_name(const ::std::string& value) {
684
685 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
686 // @@protoc_insertion_point(field_set:google.protobuf.Method.name)
687 }
set_name(const char * value)688 inline void Method::set_name(const char* value) {
689
690 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
691 // @@protoc_insertion_point(field_set_char:google.protobuf.Method.name)
692 }
set_name(const char * value,size_t size)693 inline void Method::set_name(const char* value, size_t size) {
694
695 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
696 ::std::string(reinterpret_cast<const char*>(value), size));
697 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Method.name)
698 }
mutable_name()699 inline ::std::string* Method::mutable_name() {
700
701 // @@protoc_insertion_point(field_mutable:google.protobuf.Method.name)
702 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
703 }
release_name()704 inline ::std::string* Method::release_name() {
705 // @@protoc_insertion_point(field_release:google.protobuf.Method.name)
706
707 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
708 }
set_allocated_name(::std::string * name)709 inline void Method::set_allocated_name(::std::string* name) {
710 if (name != NULL) {
711
712 } else {
713
714 }
715 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
716 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.name)
717 }
718
719 // optional string request_type_url = 2;
clear_request_type_url()720 inline void Method::clear_request_type_url() {
721 request_type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
722 }
request_type_url()723 inline const ::std::string& Method::request_type_url() const {
724 // @@protoc_insertion_point(field_get:google.protobuf.Method.request_type_url)
725 return request_type_url_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
726 }
set_request_type_url(const::std::string & value)727 inline void Method::set_request_type_url(const ::std::string& value) {
728
729 request_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
730 // @@protoc_insertion_point(field_set:google.protobuf.Method.request_type_url)
731 }
set_request_type_url(const char * value)732 inline void Method::set_request_type_url(const char* value) {
733
734 request_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
735 // @@protoc_insertion_point(field_set_char:google.protobuf.Method.request_type_url)
736 }
set_request_type_url(const char * value,size_t size)737 inline void Method::set_request_type_url(const char* value, size_t size) {
738
739 request_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
740 ::std::string(reinterpret_cast<const char*>(value), size));
741 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Method.request_type_url)
742 }
mutable_request_type_url()743 inline ::std::string* Method::mutable_request_type_url() {
744
745 // @@protoc_insertion_point(field_mutable:google.protobuf.Method.request_type_url)
746 return request_type_url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
747 }
release_request_type_url()748 inline ::std::string* Method::release_request_type_url() {
749 // @@protoc_insertion_point(field_release:google.protobuf.Method.request_type_url)
750
751 return request_type_url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
752 }
set_allocated_request_type_url(::std::string * request_type_url)753 inline void Method::set_allocated_request_type_url(::std::string* request_type_url) {
754 if (request_type_url != NULL) {
755
756 } else {
757
758 }
759 request_type_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), request_type_url);
760 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.request_type_url)
761 }
762
763 // optional bool request_streaming = 3;
clear_request_streaming()764 inline void Method::clear_request_streaming() {
765 request_streaming_ = false;
766 }
request_streaming()767 inline bool Method::request_streaming() const {
768 // @@protoc_insertion_point(field_get:google.protobuf.Method.request_streaming)
769 return request_streaming_;
770 }
set_request_streaming(bool value)771 inline void Method::set_request_streaming(bool value) {
772
773 request_streaming_ = value;
774 // @@protoc_insertion_point(field_set:google.protobuf.Method.request_streaming)
775 }
776
777 // optional string response_type_url = 4;
clear_response_type_url()778 inline void Method::clear_response_type_url() {
779 response_type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
780 }
response_type_url()781 inline const ::std::string& Method::response_type_url() const {
782 // @@protoc_insertion_point(field_get:google.protobuf.Method.response_type_url)
783 return response_type_url_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
784 }
set_response_type_url(const::std::string & value)785 inline void Method::set_response_type_url(const ::std::string& value) {
786
787 response_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
788 // @@protoc_insertion_point(field_set:google.protobuf.Method.response_type_url)
789 }
set_response_type_url(const char * value)790 inline void Method::set_response_type_url(const char* value) {
791
792 response_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
793 // @@protoc_insertion_point(field_set_char:google.protobuf.Method.response_type_url)
794 }
set_response_type_url(const char * value,size_t size)795 inline void Method::set_response_type_url(const char* value, size_t size) {
796
797 response_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
798 ::std::string(reinterpret_cast<const char*>(value), size));
799 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Method.response_type_url)
800 }
mutable_response_type_url()801 inline ::std::string* Method::mutable_response_type_url() {
802
803 // @@protoc_insertion_point(field_mutable:google.protobuf.Method.response_type_url)
804 return response_type_url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
805 }
release_response_type_url()806 inline ::std::string* Method::release_response_type_url() {
807 // @@protoc_insertion_point(field_release:google.protobuf.Method.response_type_url)
808
809 return response_type_url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
810 }
set_allocated_response_type_url(::std::string * response_type_url)811 inline void Method::set_allocated_response_type_url(::std::string* response_type_url) {
812 if (response_type_url != NULL) {
813
814 } else {
815
816 }
817 response_type_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), response_type_url);
818 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.response_type_url)
819 }
820
821 // optional bool response_streaming = 5;
clear_response_streaming()822 inline void Method::clear_response_streaming() {
823 response_streaming_ = false;
824 }
response_streaming()825 inline bool Method::response_streaming() const {
826 // @@protoc_insertion_point(field_get:google.protobuf.Method.response_streaming)
827 return response_streaming_;
828 }
set_response_streaming(bool value)829 inline void Method::set_response_streaming(bool value) {
830
831 response_streaming_ = value;
832 // @@protoc_insertion_point(field_set:google.protobuf.Method.response_streaming)
833 }
834
835 // repeated .google.protobuf.Option options = 6;
options_size()836 inline int Method::options_size() const {
837 return options_.size();
838 }
clear_options()839 inline void Method::clear_options() {
840 options_.Clear();
841 }
options(int index)842 inline const ::google::protobuf::Option& Method::options(int index) const {
843 // @@protoc_insertion_point(field_get:google.protobuf.Method.options)
844 return options_.Get(index);
845 }
mutable_options(int index)846 inline ::google::protobuf::Option* Method::mutable_options(int index) {
847 // @@protoc_insertion_point(field_mutable:google.protobuf.Method.options)
848 return options_.Mutable(index);
849 }
add_options()850 inline ::google::protobuf::Option* Method::add_options() {
851 // @@protoc_insertion_point(field_add:google.protobuf.Method.options)
852 return options_.Add();
853 }
854 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
mutable_options()855 Method::mutable_options() {
856 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Method.options)
857 return &options_;
858 }
859 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
options()860 Method::options() const {
861 // @@protoc_insertion_point(field_list:google.protobuf.Method.options)
862 return options_;
863 }
864
865 // optional .google.protobuf.Syntax syntax = 7;
clear_syntax()866 inline void Method::clear_syntax() {
867 syntax_ = 0;
868 }
syntax()869 inline ::google::protobuf::Syntax Method::syntax() const {
870 // @@protoc_insertion_point(field_get:google.protobuf.Method.syntax)
871 return static_cast< ::google::protobuf::Syntax >(syntax_);
872 }
set_syntax(::google::protobuf::Syntax value)873 inline void Method::set_syntax(::google::protobuf::Syntax value) {
874
875 syntax_ = value;
876 // @@protoc_insertion_point(field_set:google.protobuf.Method.syntax)
877 }
878
879 // -------------------------------------------------------------------
880
881 // Mixin
882
883 // optional string name = 1;
clear_name()884 inline void Mixin::clear_name() {
885 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
886 }
name()887 inline const ::std::string& Mixin::name() const {
888 // @@protoc_insertion_point(field_get:google.protobuf.Mixin.name)
889 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
890 }
set_name(const::std::string & value)891 inline void Mixin::set_name(const ::std::string& value) {
892
893 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
894 // @@protoc_insertion_point(field_set:google.protobuf.Mixin.name)
895 }
set_name(const char * value)896 inline void Mixin::set_name(const char* value) {
897
898 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
899 // @@protoc_insertion_point(field_set_char:google.protobuf.Mixin.name)
900 }
set_name(const char * value,size_t size)901 inline void Mixin::set_name(const char* value, size_t size) {
902
903 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
904 ::std::string(reinterpret_cast<const char*>(value), size));
905 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Mixin.name)
906 }
mutable_name()907 inline ::std::string* Mixin::mutable_name() {
908
909 // @@protoc_insertion_point(field_mutable:google.protobuf.Mixin.name)
910 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
911 }
release_name()912 inline ::std::string* Mixin::release_name() {
913 // @@protoc_insertion_point(field_release:google.protobuf.Mixin.name)
914
915 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
916 }
set_allocated_name(::std::string * name)917 inline void Mixin::set_allocated_name(::std::string* name) {
918 if (name != NULL) {
919
920 } else {
921
922 }
923 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
924 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Mixin.name)
925 }
926
927 // optional string root = 2;
clear_root()928 inline void Mixin::clear_root() {
929 root_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
930 }
root()931 inline const ::std::string& Mixin::root() const {
932 // @@protoc_insertion_point(field_get:google.protobuf.Mixin.root)
933 return root_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
934 }
set_root(const::std::string & value)935 inline void Mixin::set_root(const ::std::string& value) {
936
937 root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
938 // @@protoc_insertion_point(field_set:google.protobuf.Mixin.root)
939 }
set_root(const char * value)940 inline void Mixin::set_root(const char* value) {
941
942 root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
943 // @@protoc_insertion_point(field_set_char:google.protobuf.Mixin.root)
944 }
set_root(const char * value,size_t size)945 inline void Mixin::set_root(const char* value, size_t size) {
946
947 root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
948 ::std::string(reinterpret_cast<const char*>(value), size));
949 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Mixin.root)
950 }
mutable_root()951 inline ::std::string* Mixin::mutable_root() {
952
953 // @@protoc_insertion_point(field_mutable:google.protobuf.Mixin.root)
954 return root_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
955 }
release_root()956 inline ::std::string* Mixin::release_root() {
957 // @@protoc_insertion_point(field_release:google.protobuf.Mixin.root)
958
959 return root_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
960 }
set_allocated_root(::std::string * root)961 inline void Mixin::set_allocated_root(::std::string* root) {
962 if (root != NULL) {
963
964 } else {
965
966 }
967 root_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), root);
968 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Mixin.root)
969 }
970
971 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
972 // -------------------------------------------------------------------
973
974 // -------------------------------------------------------------------
975
976
977 // @@protoc_insertion_point(namespace_scope)
978
979 } // namespace protobuf
980 } // namespace google
981
982 // @@protoc_insertion_point(global_scope)
983
984 #endif // PROTOBUF_google_2fprotobuf_2fapi_2eproto__INCLUDED
985