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