blob: e1dca4e4923478ac58f6f4a10738fc216f3462a4 [file] [log] [blame]
Feng Xiao33c92802015-05-11 13:47:41 -07001// 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>
Bo Yang1f0286a2015-12-04 13:18:44 -080030#include <google/protobuf/source_context.pb.h>
31#include <google/protobuf/type.pb.h>
Feng Xiao33c92802015-05-11 13:47:41 -070032// @@protoc_insertion_point(includes)
33
34namespace google {
35namespace protobuf {
36
37// Internal implementation detail -- do not call these.
38void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fapi_2eproto();
39void protobuf_AssignDesc_google_2fprotobuf_2fapi_2eproto();
40void protobuf_ShutdownFile_google_2fprotobuf_2fapi_2eproto();
41
42class Api;
43class Method;
Jisi Liub0f66112015-08-21 11:18:45 -070044class Mixin;
Feng Xiao33c92802015-05-11 13:47:41 -070045
46// ===================================================================
47
48class 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
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;
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:
90 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
91 return _internal_metadata_.arena();
92 }
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();
Feng Xiao33c92802015-05-11 13:47:41 -0700122 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Method >*
123 mutable_methods();
Jisi Liu4c663d82015-08-25 17:03:05 -0700124 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Method >&
125 methods() const;
Feng Xiao33c92802015-05-11 13:47:41 -0700126
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();
Feng Xiao33c92802015-05-11 13:47:41 -0700134 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
135 mutable_options();
Jisi Liu4c663d82015-08-25 17:03:05 -0700136 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
137 options() const;
Feng Xiao33c92802015-05-11 13:47:41 -0700138
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
Jisi Liub0f66112015-08-21 11:18:45 -0700159 // 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();
Jisi Liub0f66112015-08-21 11:18:45 -0700166 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Mixin >*
167 mutable_mixins();
Jisi Liu4c663d82015-08-25 17:03:05 -0700168 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Mixin >&
169 mixins() const;
Jisi Liub0f66112015-08-21 11:18:45 -0700170
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
Feng Xiao33c92802015-05-11 13:47:41 -0700177 // @@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_;
Jisi Liub0f66112015-08-21 11:18:45 -0700187 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Mixin > mixins_;
188 int syntax_;
Feng Xiao33c92802015-05-11 13:47:41 -0700189 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
199class 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
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;
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:
241 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
242 return _internal_metadata_.arena();
243 }
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();
Feng Xiao33c92802015-05-11 13:47:41 -0700307 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
308 mutable_options();
Jisi Liu4c663d82015-08-25 17:03:05 -0700309 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
310 options() const;
Feng Xiao33c92802015-05-11 13:47:41 -0700311
Jisi Liub0f66112015-08-21 11:18:45 -0700312 // 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
Feng Xiao33c92802015-05-11 13:47:41 -0700318 // @@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_;
Feng Xiao33c92802015-05-11 13:47:41 -0700326 bool request_streaming_;
327 bool response_streaming_;
Jisi Liub0f66112015-08-21 11:18:45 -0700328 int syntax_;
329 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > options_;
Feng Xiao33c92802015-05-11 13:47:41 -0700330 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};
Jisi Liub0f66112015-08-21 11:18:45 -0700338// -------------------------------------------------------------------
339
340class 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
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;
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:
382 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
383 return _internal_metadata_.arena();
384 }
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};
Feng Xiao33c92802015-05-11 13:47:41 -0700433// ===================================================================
434
435
436// ===================================================================
437
438#if !PROTOBUF_INLINE_NOT_IN_HEADERS
439// Api
440
441// optional string name = 1;
442inline void Api::clear_name() {
443 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
444}
445inline 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}
449inline 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}
454inline 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}
459inline 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}
465inline ::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}
470inline ::std::string* Api::release_name() {
471
472 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
473}
474inline void Api::set_allocated_name(::std::string* name) {
475 if (name != NULL) {
476
477 } else {
478
479 }
480 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
481 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Api.name)
482}
483
484// repeated .google.protobuf.Method methods = 2;
485inline int Api::methods_size() const {
486 return methods_.size();
487}
488inline void Api::clear_methods() {
489 methods_.Clear();
490}
491inline const ::google::protobuf::Method& Api::methods(int index) const {
492 // @@protoc_insertion_point(field_get:google.protobuf.Api.methods)
493 return methods_.Get(index);
494}
495inline ::google::protobuf::Method* Api::mutable_methods(int index) {
496 // @@protoc_insertion_point(field_mutable:google.protobuf.Api.methods)
497 return methods_.Mutable(index);
498}
499inline ::google::protobuf::Method* Api::add_methods() {
500 // @@protoc_insertion_point(field_add:google.protobuf.Api.methods)
501 return methods_.Add();
502}
Feng Xiao33c92802015-05-11 13:47:41 -0700503inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Method >*
504Api::mutable_methods() {
505 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Api.methods)
506 return &methods_;
507}
Jisi Liu4c663d82015-08-25 17:03:05 -0700508inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Method >&
509Api::methods() const {
510 // @@protoc_insertion_point(field_list:google.protobuf.Api.methods)
511 return methods_;
512}
Feng Xiao33c92802015-05-11 13:47:41 -0700513
514// repeated .google.protobuf.Option options = 3;
515inline int Api::options_size() const {
516 return options_.size();
517}
518inline void Api::clear_options() {
519 options_.Clear();
520}
521inline const ::google::protobuf::Option& Api::options(int index) const {
522 // @@protoc_insertion_point(field_get:google.protobuf.Api.options)
523 return options_.Get(index);
524}
525inline ::google::protobuf::Option* Api::mutable_options(int index) {
526 // @@protoc_insertion_point(field_mutable:google.protobuf.Api.options)
527 return options_.Mutable(index);
528}
529inline ::google::protobuf::Option* Api::add_options() {
530 // @@protoc_insertion_point(field_add:google.protobuf.Api.options)
531 return options_.Add();
532}
Feng Xiao33c92802015-05-11 13:47:41 -0700533inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
534Api::mutable_options() {
535 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Api.options)
536 return &options_;
537}
Jisi Liu4c663d82015-08-25 17:03:05 -0700538inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
539Api::options() const {
540 // @@protoc_insertion_point(field_list:google.protobuf.Api.options)
541 return options_;
542}
Feng Xiao33c92802015-05-11 13:47:41 -0700543
544// optional string version = 4;
545inline void Api::clear_version() {
546 version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
547}
548inline const ::std::string& Api::version() const {
549 // @@protoc_insertion_point(field_get:google.protobuf.Api.version)
550 return version_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
551}
552inline void Api::set_version(const ::std::string& value) {
553
554 version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
555 // @@protoc_insertion_point(field_set:google.protobuf.Api.version)
556}
557inline void Api::set_version(const char* value) {
558
559 version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
560 // @@protoc_insertion_point(field_set_char:google.protobuf.Api.version)
561}
562inline void Api::set_version(const char* value, size_t size) {
563
564 version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
565 ::std::string(reinterpret_cast<const char*>(value), size));
566 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Api.version)
567}
568inline ::std::string* Api::mutable_version() {
569
570 // @@protoc_insertion_point(field_mutable:google.protobuf.Api.version)
571 return version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
572}
573inline ::std::string* Api::release_version() {
574
575 return version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
576}
577inline void Api::set_allocated_version(::std::string* version) {
578 if (version != NULL) {
579
580 } else {
581
582 }
583 version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), version);
584 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Api.version)
585}
586
587// optional .google.protobuf.SourceContext source_context = 5;
588inline bool Api::has_source_context() const {
589 return !_is_default_instance_ && source_context_ != NULL;
590}
591inline void Api::clear_source_context() {
Bo Yang5db21732015-05-21 14:28:59 -0700592 if (GetArenaNoVirtual() == NULL && source_context_ != NULL) delete source_context_;
Feng Xiao33c92802015-05-11 13:47:41 -0700593 source_context_ = NULL;
594}
595inline const ::google::protobuf::SourceContext& Api::source_context() const {
596 // @@protoc_insertion_point(field_get:google.protobuf.Api.source_context)
597 return source_context_ != NULL ? *source_context_ : *default_instance_->source_context_;
598}
599inline ::google::protobuf::SourceContext* Api::mutable_source_context() {
600
601 if (source_context_ == NULL) {
602 source_context_ = new ::google::protobuf::SourceContext;
603 }
604 // @@protoc_insertion_point(field_mutable:google.protobuf.Api.source_context)
605 return source_context_;
606}
607inline ::google::protobuf::SourceContext* Api::release_source_context() {
608
609 ::google::protobuf::SourceContext* temp = source_context_;
610 source_context_ = NULL;
611 return temp;
612}
613inline void Api::set_allocated_source_context(::google::protobuf::SourceContext* source_context) {
614 delete source_context_;
615 source_context_ = source_context;
616 if (source_context) {
617
618 } else {
619
620 }
621 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Api.source_context)
622}
623
Jisi Liub0f66112015-08-21 11:18:45 -0700624// repeated .google.protobuf.Mixin mixins = 6;
625inline int Api::mixins_size() const {
626 return mixins_.size();
627}
628inline void Api::clear_mixins() {
629 mixins_.Clear();
630}
631inline const ::google::protobuf::Mixin& Api::mixins(int index) const {
632 // @@protoc_insertion_point(field_get:google.protobuf.Api.mixins)
633 return mixins_.Get(index);
634}
635inline ::google::protobuf::Mixin* Api::mutable_mixins(int index) {
636 // @@protoc_insertion_point(field_mutable:google.protobuf.Api.mixins)
637 return mixins_.Mutable(index);
638}
639inline ::google::protobuf::Mixin* Api::add_mixins() {
640 // @@protoc_insertion_point(field_add:google.protobuf.Api.mixins)
641 return mixins_.Add();
642}
Jisi Liub0f66112015-08-21 11:18:45 -0700643inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Mixin >*
644Api::mutable_mixins() {
645 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Api.mixins)
646 return &mixins_;
647}
Jisi Liu4c663d82015-08-25 17:03:05 -0700648inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Mixin >&
649Api::mixins() const {
650 // @@protoc_insertion_point(field_list:google.protobuf.Api.mixins)
651 return mixins_;
652}
Jisi Liub0f66112015-08-21 11:18:45 -0700653
654// optional .google.protobuf.Syntax syntax = 7;
655inline void Api::clear_syntax() {
656 syntax_ = 0;
657}
658inline ::google::protobuf::Syntax Api::syntax() const {
659 // @@protoc_insertion_point(field_get:google.protobuf.Api.syntax)
660 return static_cast< ::google::protobuf::Syntax >(syntax_);
661}
662inline void Api::set_syntax(::google::protobuf::Syntax value) {
663
664 syntax_ = value;
665 // @@protoc_insertion_point(field_set:google.protobuf.Api.syntax)
666}
667
Feng Xiao33c92802015-05-11 13:47:41 -0700668// -------------------------------------------------------------------
669
670// Method
671
672// optional string name = 1;
673inline void Method::clear_name() {
674 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
675}
676inline const ::std::string& Method::name() const {
677 // @@protoc_insertion_point(field_get:google.protobuf.Method.name)
678 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
679}
680inline void Method::set_name(const ::std::string& value) {
681
682 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
683 // @@protoc_insertion_point(field_set:google.protobuf.Method.name)
684}
685inline void Method::set_name(const char* value) {
686
687 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
688 // @@protoc_insertion_point(field_set_char:google.protobuf.Method.name)
689}
690inline void Method::set_name(const char* value, size_t size) {
691
692 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
693 ::std::string(reinterpret_cast<const char*>(value), size));
694 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Method.name)
695}
696inline ::std::string* Method::mutable_name() {
697
698 // @@protoc_insertion_point(field_mutable:google.protobuf.Method.name)
699 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
700}
701inline ::std::string* Method::release_name() {
702
703 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
704}
705inline void Method::set_allocated_name(::std::string* name) {
706 if (name != NULL) {
707
708 } else {
709
710 }
711 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
712 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.name)
713}
714
715// optional string request_type_url = 2;
716inline void Method::clear_request_type_url() {
717 request_type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
718}
719inline const ::std::string& Method::request_type_url() const {
720 // @@protoc_insertion_point(field_get:google.protobuf.Method.request_type_url)
721 return request_type_url_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
722}
723inline void Method::set_request_type_url(const ::std::string& value) {
724
725 request_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
726 // @@protoc_insertion_point(field_set:google.protobuf.Method.request_type_url)
727}
728inline void Method::set_request_type_url(const char* value) {
729
730 request_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
731 // @@protoc_insertion_point(field_set_char:google.protobuf.Method.request_type_url)
732}
733inline void Method::set_request_type_url(const char* value, size_t size) {
734
735 request_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
736 ::std::string(reinterpret_cast<const char*>(value), size));
737 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Method.request_type_url)
738}
739inline ::std::string* Method::mutable_request_type_url() {
740
741 // @@protoc_insertion_point(field_mutable:google.protobuf.Method.request_type_url)
742 return request_type_url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
743}
744inline ::std::string* Method::release_request_type_url() {
745
746 return request_type_url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
747}
748inline void Method::set_allocated_request_type_url(::std::string* request_type_url) {
749 if (request_type_url != NULL) {
750
751 } else {
752
753 }
754 request_type_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), request_type_url);
755 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.request_type_url)
756}
757
758// optional bool request_streaming = 3;
759inline void Method::clear_request_streaming() {
760 request_streaming_ = false;
761}
762inline bool Method::request_streaming() const {
763 // @@protoc_insertion_point(field_get:google.protobuf.Method.request_streaming)
764 return request_streaming_;
765}
766inline void Method::set_request_streaming(bool value) {
767
768 request_streaming_ = value;
769 // @@protoc_insertion_point(field_set:google.protobuf.Method.request_streaming)
770}
771
772// optional string response_type_url = 4;
773inline void Method::clear_response_type_url() {
774 response_type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
775}
776inline const ::std::string& Method::response_type_url() const {
777 // @@protoc_insertion_point(field_get:google.protobuf.Method.response_type_url)
778 return response_type_url_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
779}
780inline void Method::set_response_type_url(const ::std::string& value) {
781
782 response_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
783 // @@protoc_insertion_point(field_set:google.protobuf.Method.response_type_url)
784}
785inline void Method::set_response_type_url(const char* value) {
786
787 response_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
788 // @@protoc_insertion_point(field_set_char:google.protobuf.Method.response_type_url)
789}
790inline void Method::set_response_type_url(const char* value, size_t size) {
791
792 response_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
793 ::std::string(reinterpret_cast<const char*>(value), size));
794 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Method.response_type_url)
795}
796inline ::std::string* Method::mutable_response_type_url() {
797
798 // @@protoc_insertion_point(field_mutable:google.protobuf.Method.response_type_url)
799 return response_type_url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
800}
801inline ::std::string* Method::release_response_type_url() {
802
803 return response_type_url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
804}
805inline void Method::set_allocated_response_type_url(::std::string* response_type_url) {
806 if (response_type_url != NULL) {
807
808 } else {
809
810 }
811 response_type_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), response_type_url);
812 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.response_type_url)
813}
814
815// optional bool response_streaming = 5;
816inline void Method::clear_response_streaming() {
817 response_streaming_ = false;
818}
819inline bool Method::response_streaming() const {
820 // @@protoc_insertion_point(field_get:google.protobuf.Method.response_streaming)
821 return response_streaming_;
822}
823inline void Method::set_response_streaming(bool value) {
824
825 response_streaming_ = value;
826 // @@protoc_insertion_point(field_set:google.protobuf.Method.response_streaming)
827}
828
829// repeated .google.protobuf.Option options = 6;
830inline int Method::options_size() const {
831 return options_.size();
832}
833inline void Method::clear_options() {
834 options_.Clear();
835}
836inline const ::google::protobuf::Option& Method::options(int index) const {
837 // @@protoc_insertion_point(field_get:google.protobuf.Method.options)
838 return options_.Get(index);
839}
840inline ::google::protobuf::Option* Method::mutable_options(int index) {
841 // @@protoc_insertion_point(field_mutable:google.protobuf.Method.options)
842 return options_.Mutable(index);
843}
844inline ::google::protobuf::Option* Method::add_options() {
845 // @@protoc_insertion_point(field_add:google.protobuf.Method.options)
846 return options_.Add();
847}
Feng Xiao33c92802015-05-11 13:47:41 -0700848inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
849Method::mutable_options() {
850 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Method.options)
851 return &options_;
852}
Jisi Liu4c663d82015-08-25 17:03:05 -0700853inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
854Method::options() const {
855 // @@protoc_insertion_point(field_list:google.protobuf.Method.options)
856 return options_;
857}
Feng Xiao33c92802015-05-11 13:47:41 -0700858
Jisi Liub0f66112015-08-21 11:18:45 -0700859// optional .google.protobuf.Syntax syntax = 7;
860inline void Method::clear_syntax() {
861 syntax_ = 0;
862}
863inline ::google::protobuf::Syntax Method::syntax() const {
864 // @@protoc_insertion_point(field_get:google.protobuf.Method.syntax)
865 return static_cast< ::google::protobuf::Syntax >(syntax_);
866}
867inline void Method::set_syntax(::google::protobuf::Syntax value) {
868
869 syntax_ = value;
870 // @@protoc_insertion_point(field_set:google.protobuf.Method.syntax)
871}
872
873// -------------------------------------------------------------------
874
875// Mixin
876
877// optional string name = 1;
878inline void Mixin::clear_name() {
879 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
880}
881inline const ::std::string& Mixin::name() const {
882 // @@protoc_insertion_point(field_get:google.protobuf.Mixin.name)
883 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
884}
885inline void Mixin::set_name(const ::std::string& value) {
886
887 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
888 // @@protoc_insertion_point(field_set:google.protobuf.Mixin.name)
889}
890inline void Mixin::set_name(const char* value) {
891
892 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
893 // @@protoc_insertion_point(field_set_char:google.protobuf.Mixin.name)
894}
895inline void Mixin::set_name(const char* value, size_t size) {
896
897 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
898 ::std::string(reinterpret_cast<const char*>(value), size));
899 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Mixin.name)
900}
901inline ::std::string* Mixin::mutable_name() {
902
903 // @@protoc_insertion_point(field_mutable:google.protobuf.Mixin.name)
904 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
905}
906inline ::std::string* Mixin::release_name() {
907
908 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
909}
910inline void Mixin::set_allocated_name(::std::string* name) {
911 if (name != NULL) {
912
913 } else {
914
915 }
916 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
917 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Mixin.name)
918}
919
920// optional string root = 2;
921inline void Mixin::clear_root() {
922 root_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
923}
924inline const ::std::string& Mixin::root() const {
925 // @@protoc_insertion_point(field_get:google.protobuf.Mixin.root)
926 return root_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
927}
928inline void Mixin::set_root(const ::std::string& value) {
929
930 root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
931 // @@protoc_insertion_point(field_set:google.protobuf.Mixin.root)
932}
933inline void Mixin::set_root(const char* value) {
934
935 root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
936 // @@protoc_insertion_point(field_set_char:google.protobuf.Mixin.root)
937}
938inline void Mixin::set_root(const char* value, size_t size) {
939
940 root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
941 ::std::string(reinterpret_cast<const char*>(value), size));
942 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Mixin.root)
943}
944inline ::std::string* Mixin::mutable_root() {
945
946 // @@protoc_insertion_point(field_mutable:google.protobuf.Mixin.root)
947 return root_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
948}
949inline ::std::string* Mixin::release_root() {
950
951 return root_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
952}
953inline void Mixin::set_allocated_root(::std::string* root) {
954 if (root != NULL) {
955
956 } else {
957
958 }
959 root_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), root);
960 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Mixin.root)
961}
962
Feng Xiao33c92802015-05-11 13:47:41 -0700963#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
Bo Yang5db21732015-05-21 14:28:59 -0700964// -------------------------------------------------------------------
965
Jisi Liub0f66112015-08-21 11:18:45 -0700966// -------------------------------------------------------------------
967
Feng Xiao33c92802015-05-11 13:47:41 -0700968
969// @@protoc_insertion_point(namespace_scope)
970
971} // namespace protobuf
972} // namespace google
973
974// @@protoc_insertion_point(global_scope)
975
976#endif // PROTOBUF_google_2fprotobuf_2fapi_2eproto__INCLUDED