OLD | NEW |
1 // Generated by the protocol buffer compiler. DO NOT EDIT! | 1 // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 // source: google/protobuf/api.proto | 2 // source: google/protobuf/api.proto |
3 | 3 |
4 #ifndef PROTOBUF_google_2fprotobuf_2fapi_2eproto__INCLUDED | 4 #ifndef PROTOBUF_google_2fprotobuf_2fapi_2eproto__INCLUDED |
5 #define PROTOBUF_google_2fprotobuf_2fapi_2eproto__INCLUDED | 5 #define PROTOBUF_google_2fprotobuf_2fapi_2eproto__INCLUDED |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include <google/protobuf/stubs/common.h> | 9 #include <google/protobuf/stubs/common.h> |
10 | 10 |
11 #if GOOGLE_PROTOBUF_VERSION < 3001000 | 11 #if GOOGLE_PROTOBUF_VERSION < 3000000 |
12 #error This file was generated by a newer version of protoc which is | 12 #error This file was generated by a newer version of protoc which is |
13 #error incompatible with your Protocol Buffer headers. Please update | 13 #error incompatible with your Protocol Buffer headers. Please update |
14 #error your headers. | 14 #error your headers. |
15 #endif | 15 #endif |
16 #if 3001000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION | 16 #if 3000000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION |
17 #error This file was generated by an older version of protoc which is | 17 #error This file was generated by an older version of protoc which is |
18 #error incompatible with your Protocol Buffer headers. Please | 18 #error incompatible with your Protocol Buffer headers. Please |
19 #error regenerate this file with a newer version of protoc. | 19 #error regenerate this file with a newer version of protoc. |
20 #endif | 20 #endif |
21 | 21 |
22 #include <google/protobuf/arena.h> | 22 #include <google/protobuf/arena.h> |
23 #include <google/protobuf/arenastring.h> | 23 #include <google/protobuf/arenastring.h> |
24 #include <google/protobuf/generated_message_util.h> | 24 #include <google/protobuf/generated_message_util.h> |
25 #include <google/protobuf/metadata.h> | 25 #include <google/protobuf/metadata.h> |
26 #include <google/protobuf/message.h> | 26 #include <google/protobuf/message.h> |
27 #include <google/protobuf/repeated_field.h> // IWYU pragma: export | 27 #include <google/protobuf/repeated_field.h> |
28 #include <google/protobuf/extension_set.h> // IWYU pragma: export | 28 #include <google/protobuf/extension_set.h> |
29 #include <google/protobuf/unknown_field_set.h> | 29 #include <google/protobuf/unknown_field_set.h> |
30 #include <google/protobuf/source_context.pb.h> | 30 #include <google/protobuf/source_context.pb.h> |
31 #include <google/protobuf/type.pb.h> | 31 #include <google/protobuf/type.pb.h> |
32 // @@protoc_insertion_point(includes) | 32 // @@protoc_insertion_point(includes) |
33 namespace google { | |
34 namespace protobuf { | |
35 class Api; | |
36 class ApiDefaultTypeInternal; | |
37 LIBPROTOBUF_EXPORT extern ApiDefaultTypeInternal _Api_default_instance_; | |
38 class Enum; | |
39 class EnumDefaultTypeInternal; | |
40 LIBPROTOBUF_EXPORT extern EnumDefaultTypeInternal _Enum_default_instance_; | |
41 class EnumValue; | |
42 class EnumValueDefaultTypeInternal; | |
43 LIBPROTOBUF_EXPORT extern EnumValueDefaultTypeInternal _EnumValue_default_instan
ce_; | |
44 class Field; | |
45 class FieldDefaultTypeInternal; | |
46 LIBPROTOBUF_EXPORT extern FieldDefaultTypeInternal _Field_default_instance_; | |
47 class Method; | |
48 class MethodDefaultTypeInternal; | |
49 LIBPROTOBUF_EXPORT extern MethodDefaultTypeInternal _Method_default_instance_; | |
50 class Mixin; | |
51 class MixinDefaultTypeInternal; | |
52 LIBPROTOBUF_EXPORT extern MixinDefaultTypeInternal _Mixin_default_instance_; | |
53 class Option; | |
54 class OptionDefaultTypeInternal; | |
55 LIBPROTOBUF_EXPORT extern OptionDefaultTypeInternal _Option_default_instance_; | |
56 class SourceContext; | |
57 class SourceContextDefaultTypeInternal; | |
58 LIBPROTOBUF_EXPORT extern SourceContextDefaultTypeInternal _SourceContext_defaul
t_instance_; | |
59 class Type; | |
60 class TypeDefaultTypeInternal; | |
61 LIBPROTOBUF_EXPORT extern TypeDefaultTypeInternal _Type_default_instance_; | |
62 } // namespace protobuf | |
63 } // namespace google | |
64 | 33 |
65 namespace google { | 34 namespace google { |
66 namespace protobuf { | 35 namespace protobuf { |
67 | 36 |
68 // Internal implementation detail -- do not call these. | 37 // Internal implementation detail -- do not call these. |
69 void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fapi_2eproto(); | 38 void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fapi_2eproto(); |
70 void LIBPROTOBUF_EXPORT protobuf_InitDefaults_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; |
71 | 45 |
72 // =================================================================== | 46 // =================================================================== |
73 | 47 |
74 class LIBPROTOBUF_EXPORT Api : public ::google::protobuf::Message /* @@protoc_in
sertion_point(class_definition:google.protobuf.Api) */ { | 48 class LIBPROTOBUF_EXPORT Api : public ::google::protobuf::Message { |
75 public: | 49 public: |
76 Api(); | 50 Api(); |
77 virtual ~Api(); | 51 virtual ~Api(); |
78 | 52 |
79 Api(const Api& from); | 53 Api(const Api& from); |
80 | 54 |
81 inline Api& operator=(const Api& from) { | 55 inline Api& operator=(const Api& from) { |
82 CopyFrom(from); | 56 CopyFrom(from); |
83 return *this; | 57 return *this; |
84 } | 58 } |
85 | 59 |
86 static const ::google::protobuf::Descriptor* descriptor(); | 60 static const ::google::protobuf::Descriptor* descriptor(); |
87 static const Api& default_instance(); | 61 static const Api& default_instance(); |
88 | 62 |
89 static inline const Api* internal_default_instance() { | |
90 return reinterpret_cast<const Api*>( | |
91 &_Api_default_instance_); | |
92 } | |
93 | |
94 void Swap(Api* other); | 63 void Swap(Api* other); |
95 | 64 |
96 // implements Message ---------------------------------------------- | 65 // implements Message ---------------------------------------------- |
97 | 66 |
98 inline Api* New() const PROTOBUF_FINAL { return New(NULL); } | 67 inline Api* New() const { return New(NULL); } |
99 | 68 |
100 Api* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; | 69 Api* New(::google::protobuf::Arena* arena) const; |
101 void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; | 70 void CopyFrom(const ::google::protobuf::Message& from); |
102 void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; | 71 void MergeFrom(const ::google::protobuf::Message& from); |
103 void CopyFrom(const Api& from); | 72 void CopyFrom(const Api& from); |
104 void MergeFrom(const Api& from); | 73 void MergeFrom(const Api& from); |
105 void Clear() PROTOBUF_FINAL; | 74 void Clear(); |
106 bool IsInitialized() const PROTOBUF_FINAL; | 75 bool IsInitialized() const; |
107 | 76 |
108 size_t ByteSizeLong() const PROTOBUF_FINAL; | 77 int ByteSize() const; |
109 bool MergePartialFromCodedStream( | 78 bool MergePartialFromCodedStream( |
110 ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; | 79 ::google::protobuf::io::CodedInputStream* input); |
111 void SerializeWithCachedSizes( | 80 void SerializeWithCachedSizes( |
112 ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; | 81 ::google::protobuf::io::CodedOutputStream* output) const; |
113 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( | 82 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf:
:uint8* output) const; |
114 bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINA
L; | 83 int GetCachedSize() const { return _cached_size_; } |
115 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf:
:uint8* output) | |
116 const PROTOBUF_FINAL { | |
117 return InternalSerializeWithCachedSizesToArray(false, output); | |
118 } | |
119 int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } | |
120 private: | 84 private: |
121 void SharedCtor(); | 85 void SharedCtor(); |
122 void SharedDtor(); | 86 void SharedDtor(); |
123 void SetCachedSize(int size) const PROTOBUF_FINAL; | 87 void SetCachedSize(int size) const; |
124 void InternalSwap(Api* other); | 88 void InternalSwap(Api* other); |
125 private: | 89 private: |
126 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { | 90 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
127 return NULL; | 91 return _internal_metadata_.arena(); |
128 } | 92 } |
129 inline void* MaybeArenaPtr() const { | 93 inline void* MaybeArenaPtr() const { |
130 return NULL; | 94 return _internal_metadata_.raw_arena_ptr(); |
131 } | 95 } |
132 public: | 96 public: |
133 | 97 |
134 ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; | 98 ::google::protobuf::Metadata GetMetadata() const; |
135 | 99 |
136 // nested types ---------------------------------------------------- | 100 // nested types ---------------------------------------------------- |
137 | 101 |
138 // accessors ------------------------------------------------------- | 102 // accessors ------------------------------------------------------- |
139 | 103 |
140 // string name = 1; | 104 // optional string name = 1; |
141 void clear_name(); | 105 void clear_name(); |
142 static const int kNameFieldNumber = 1; | 106 static const int kNameFieldNumber = 1; |
143 const ::std::string& name() const; | 107 const ::std::string& name() const; |
144 void set_name(const ::std::string& value); | 108 void set_name(const ::std::string& value); |
145 void set_name(const char* value); | 109 void set_name(const char* value); |
146 void set_name(const char* value, size_t size); | 110 void set_name(const char* value, size_t size); |
147 ::std::string* mutable_name(); | 111 ::std::string* mutable_name(); |
148 ::std::string* release_name(); | 112 ::std::string* release_name(); |
149 void set_allocated_name(::std::string* name); | 113 void set_allocated_name(::std::string* name); |
150 | 114 |
(...skipping 14 matching lines...) Expand all Loading... |
165 void clear_options(); | 129 void clear_options(); |
166 static const int kOptionsFieldNumber = 3; | 130 static const int kOptionsFieldNumber = 3; |
167 const ::google::protobuf::Option& options(int index) const; | 131 const ::google::protobuf::Option& options(int index) const; |
168 ::google::protobuf::Option* mutable_options(int index); | 132 ::google::protobuf::Option* mutable_options(int index); |
169 ::google::protobuf::Option* add_options(); | 133 ::google::protobuf::Option* add_options(); |
170 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >* | 134 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >* |
171 mutable_options(); | 135 mutable_options(); |
172 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >& | 136 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >& |
173 options() const; | 137 options() const; |
174 | 138 |
175 // string version = 4; | 139 // optional string version = 4; |
176 void clear_version(); | 140 void clear_version(); |
177 static const int kVersionFieldNumber = 4; | 141 static const int kVersionFieldNumber = 4; |
178 const ::std::string& version() const; | 142 const ::std::string& version() const; |
179 void set_version(const ::std::string& value); | 143 void set_version(const ::std::string& value); |
180 void set_version(const char* value); | 144 void set_version(const char* value); |
181 void set_version(const char* value, size_t size); | 145 void set_version(const char* value, size_t size); |
182 ::std::string* mutable_version(); | 146 ::std::string* mutable_version(); |
183 ::std::string* release_version(); | 147 ::std::string* release_version(); |
184 void set_allocated_version(::std::string* version); | 148 void set_allocated_version(::std::string* version); |
185 | 149 |
186 // .google.protobuf.SourceContext source_context = 5; | 150 // optional .google.protobuf.SourceContext source_context = 5; |
187 bool has_source_context() const; | 151 bool has_source_context() const; |
188 void clear_source_context(); | 152 void clear_source_context(); |
189 static const int kSourceContextFieldNumber = 5; | 153 static const int kSourceContextFieldNumber = 5; |
190 const ::google::protobuf::SourceContext& source_context() const; | 154 const ::google::protobuf::SourceContext& source_context() const; |
191 ::google::protobuf::SourceContext* mutable_source_context(); | 155 ::google::protobuf::SourceContext* mutable_source_context(); |
192 ::google::protobuf::SourceContext* release_source_context(); | 156 ::google::protobuf::SourceContext* release_source_context(); |
193 void set_allocated_source_context(::google::protobuf::SourceContext* source_co
ntext); | 157 void set_allocated_source_context(::google::protobuf::SourceContext* source_co
ntext); |
194 | 158 |
195 // repeated .google.protobuf.Mixin mixins = 6; | 159 // repeated .google.protobuf.Mixin mixins = 6; |
196 int mixins_size() const; | 160 int mixins_size() const; |
197 void clear_mixins(); | 161 void clear_mixins(); |
198 static const int kMixinsFieldNumber = 6; | 162 static const int kMixinsFieldNumber = 6; |
199 const ::google::protobuf::Mixin& mixins(int index) const; | 163 const ::google::protobuf::Mixin& mixins(int index) const; |
200 ::google::protobuf::Mixin* mutable_mixins(int index); | 164 ::google::protobuf::Mixin* mutable_mixins(int index); |
201 ::google::protobuf::Mixin* add_mixins(); | 165 ::google::protobuf::Mixin* add_mixins(); |
202 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Mixin >* | 166 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Mixin >* |
203 mutable_mixins(); | 167 mutable_mixins(); |
204 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Mixin >& | 168 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Mixin >& |
205 mixins() const; | 169 mixins() const; |
206 | 170 |
207 // .google.protobuf.Syntax syntax = 7; | 171 // optional .google.protobuf.Syntax syntax = 7; |
208 void clear_syntax(); | 172 void clear_syntax(); |
209 static const int kSyntaxFieldNumber = 7; | 173 static const int kSyntaxFieldNumber = 7; |
210 ::google::protobuf::Syntax syntax() const; | 174 ::google::protobuf::Syntax syntax() const; |
211 void set_syntax(::google::protobuf::Syntax value); | 175 void set_syntax(::google::protobuf::Syntax value); |
212 | 176 |
213 // @@protoc_insertion_point(class_scope:google.protobuf.Api) | 177 // @@protoc_insertion_point(class_scope:google.protobuf.Api) |
214 private: | 178 private: |
215 | 179 |
216 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; | 180 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 181 bool _is_default_instance_; |
| 182 ::google::protobuf::internal::ArenaStringPtr name_; |
217 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Method > methods_; | 183 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Method > methods_; |
218 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > options_; | 184 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > options_; |
219 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Mixin > mixins_; | |
220 ::google::protobuf::internal::ArenaStringPtr name_; | |
221 ::google::protobuf::internal::ArenaStringPtr version_; | 185 ::google::protobuf::internal::ArenaStringPtr version_; |
222 ::google::protobuf::SourceContext* source_context_; | 186 ::google::protobuf::SourceContext* source_context_; |
| 187 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Mixin > mixins_; |
223 int syntax_; | 188 int syntax_; |
224 mutable int _cached_size_; | 189 mutable int _cached_size_; |
225 friend void LIBPROTOBUF_EXPORT protobuf_InitDefaults_google_2fprotobuf_2fapi_2
eproto_impl(); | 190 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fapi_2eprot
o(); |
226 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fapi_2eprot
o_impl(); | 191 friend void protobuf_AssignDesc_google_2fprotobuf_2fapi_2eproto(); |
227 friend const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2f
api_2eproto(); | |
228 friend void protobuf_ShutdownFile_google_2fprotobuf_2fapi_2eproto(); | 192 friend void protobuf_ShutdownFile_google_2fprotobuf_2fapi_2eproto(); |
229 | 193 |
| 194 void InitAsDefaultInstance(); |
| 195 static Api* default_instance_; |
230 }; | 196 }; |
231 // ------------------------------------------------------------------- | 197 // ------------------------------------------------------------------- |
232 | 198 |
233 class LIBPROTOBUF_EXPORT Method : public ::google::protobuf::Message /* @@protoc
_insertion_point(class_definition:google.protobuf.Method) */ { | 199 class LIBPROTOBUF_EXPORT Method : public ::google::protobuf::Message { |
234 public: | 200 public: |
235 Method(); | 201 Method(); |
236 virtual ~Method(); | 202 virtual ~Method(); |
237 | 203 |
238 Method(const Method& from); | 204 Method(const Method& from); |
239 | 205 |
240 inline Method& operator=(const Method& from) { | 206 inline Method& operator=(const Method& from) { |
241 CopyFrom(from); | 207 CopyFrom(from); |
242 return *this; | 208 return *this; |
243 } | 209 } |
244 | 210 |
245 static const ::google::protobuf::Descriptor* descriptor(); | 211 static const ::google::protobuf::Descriptor* descriptor(); |
246 static const Method& default_instance(); | 212 static const Method& default_instance(); |
247 | 213 |
248 static inline const Method* internal_default_instance() { | |
249 return reinterpret_cast<const Method*>( | |
250 &_Method_default_instance_); | |
251 } | |
252 | |
253 void Swap(Method* other); | 214 void Swap(Method* other); |
254 | 215 |
255 // implements Message ---------------------------------------------- | 216 // implements Message ---------------------------------------------- |
256 | 217 |
257 inline Method* New() const PROTOBUF_FINAL { return New(NULL); } | 218 inline Method* New() const { return New(NULL); } |
258 | 219 |
259 Method* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; | 220 Method* New(::google::protobuf::Arena* arena) const; |
260 void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; | 221 void CopyFrom(const ::google::protobuf::Message& from); |
261 void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; | 222 void MergeFrom(const ::google::protobuf::Message& from); |
262 void CopyFrom(const Method& from); | 223 void CopyFrom(const Method& from); |
263 void MergeFrom(const Method& from); | 224 void MergeFrom(const Method& from); |
264 void Clear() PROTOBUF_FINAL; | 225 void Clear(); |
265 bool IsInitialized() const PROTOBUF_FINAL; | 226 bool IsInitialized() const; |
266 | 227 |
267 size_t ByteSizeLong() const PROTOBUF_FINAL; | 228 int ByteSize() const; |
268 bool MergePartialFromCodedStream( | 229 bool MergePartialFromCodedStream( |
269 ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; | 230 ::google::protobuf::io::CodedInputStream* input); |
270 void SerializeWithCachedSizes( | 231 void SerializeWithCachedSizes( |
271 ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; | 232 ::google::protobuf::io::CodedOutputStream* output) const; |
272 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( | 233 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf:
:uint8* output) const; |
273 bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINA
L; | 234 int GetCachedSize() const { return _cached_size_; } |
274 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf:
:uint8* output) | |
275 const PROTOBUF_FINAL { | |
276 return InternalSerializeWithCachedSizesToArray(false, output); | |
277 } | |
278 int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } | |
279 private: | 235 private: |
280 void SharedCtor(); | 236 void SharedCtor(); |
281 void SharedDtor(); | 237 void SharedDtor(); |
282 void SetCachedSize(int size) const PROTOBUF_FINAL; | 238 void SetCachedSize(int size) const; |
283 void InternalSwap(Method* other); | 239 void InternalSwap(Method* other); |
284 private: | 240 private: |
285 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { | 241 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
286 return NULL; | 242 return _internal_metadata_.arena(); |
287 } | 243 } |
288 inline void* MaybeArenaPtr() const { | 244 inline void* MaybeArenaPtr() const { |
289 return NULL; | 245 return _internal_metadata_.raw_arena_ptr(); |
290 } | 246 } |
291 public: | 247 public: |
292 | 248 |
293 ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; | 249 ::google::protobuf::Metadata GetMetadata() const; |
294 | 250 |
295 // nested types ---------------------------------------------------- | 251 // nested types ---------------------------------------------------- |
296 | 252 |
297 // accessors ------------------------------------------------------- | 253 // accessors ------------------------------------------------------- |
298 | 254 |
299 // string name = 1; | 255 // optional string name = 1; |
300 void clear_name(); | 256 void clear_name(); |
301 static const int kNameFieldNumber = 1; | 257 static const int kNameFieldNumber = 1; |
302 const ::std::string& name() const; | 258 const ::std::string& name() const; |
303 void set_name(const ::std::string& value); | 259 void set_name(const ::std::string& value); |
304 void set_name(const char* value); | 260 void set_name(const char* value); |
305 void set_name(const char* value, size_t size); | 261 void set_name(const char* value, size_t size); |
306 ::std::string* mutable_name(); | 262 ::std::string* mutable_name(); |
307 ::std::string* release_name(); | 263 ::std::string* release_name(); |
308 void set_allocated_name(::std::string* name); | 264 void set_allocated_name(::std::string* name); |
309 | 265 |
310 // string request_type_url = 2; | 266 // optional string request_type_url = 2; |
311 void clear_request_type_url(); | 267 void clear_request_type_url(); |
312 static const int kRequestTypeUrlFieldNumber = 2; | 268 static const int kRequestTypeUrlFieldNumber = 2; |
313 const ::std::string& request_type_url() const; | 269 const ::std::string& request_type_url() const; |
314 void set_request_type_url(const ::std::string& value); | 270 void set_request_type_url(const ::std::string& value); |
315 void set_request_type_url(const char* value); | 271 void set_request_type_url(const char* value); |
316 void set_request_type_url(const char* value, size_t size); | 272 void set_request_type_url(const char* value, size_t size); |
317 ::std::string* mutable_request_type_url(); | 273 ::std::string* mutable_request_type_url(); |
318 ::std::string* release_request_type_url(); | 274 ::std::string* release_request_type_url(); |
319 void set_allocated_request_type_url(::std::string* request_type_url); | 275 void set_allocated_request_type_url(::std::string* request_type_url); |
320 | 276 |
321 // bool request_streaming = 3; | 277 // optional bool request_streaming = 3; |
322 void clear_request_streaming(); | 278 void clear_request_streaming(); |
323 static const int kRequestStreamingFieldNumber = 3; | 279 static const int kRequestStreamingFieldNumber = 3; |
324 bool request_streaming() const; | 280 bool request_streaming() const; |
325 void set_request_streaming(bool value); | 281 void set_request_streaming(bool value); |
326 | 282 |
327 // string response_type_url = 4; | 283 // optional string response_type_url = 4; |
328 void clear_response_type_url(); | 284 void clear_response_type_url(); |
329 static const int kResponseTypeUrlFieldNumber = 4; | 285 static const int kResponseTypeUrlFieldNumber = 4; |
330 const ::std::string& response_type_url() const; | 286 const ::std::string& response_type_url() const; |
331 void set_response_type_url(const ::std::string& value); | 287 void set_response_type_url(const ::std::string& value); |
332 void set_response_type_url(const char* value); | 288 void set_response_type_url(const char* value); |
333 void set_response_type_url(const char* value, size_t size); | 289 void set_response_type_url(const char* value, size_t size); |
334 ::std::string* mutable_response_type_url(); | 290 ::std::string* mutable_response_type_url(); |
335 ::std::string* release_response_type_url(); | 291 ::std::string* release_response_type_url(); |
336 void set_allocated_response_type_url(::std::string* response_type_url); | 292 void set_allocated_response_type_url(::std::string* response_type_url); |
337 | 293 |
338 // bool response_streaming = 5; | 294 // optional bool response_streaming = 5; |
339 void clear_response_streaming(); | 295 void clear_response_streaming(); |
340 static const int kResponseStreamingFieldNumber = 5; | 296 static const int kResponseStreamingFieldNumber = 5; |
341 bool response_streaming() const; | 297 bool response_streaming() const; |
342 void set_response_streaming(bool value); | 298 void set_response_streaming(bool value); |
343 | 299 |
344 // repeated .google.protobuf.Option options = 6; | 300 // repeated .google.protobuf.Option options = 6; |
345 int options_size() const; | 301 int options_size() const; |
346 void clear_options(); | 302 void clear_options(); |
347 static const int kOptionsFieldNumber = 6; | 303 static const int kOptionsFieldNumber = 6; |
348 const ::google::protobuf::Option& options(int index) const; | 304 const ::google::protobuf::Option& options(int index) const; |
349 ::google::protobuf::Option* mutable_options(int index); | 305 ::google::protobuf::Option* mutable_options(int index); |
350 ::google::protobuf::Option* add_options(); | 306 ::google::protobuf::Option* add_options(); |
351 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >* | 307 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >* |
352 mutable_options(); | 308 mutable_options(); |
353 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >& | 309 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >& |
354 options() const; | 310 options() const; |
355 | 311 |
356 // .google.protobuf.Syntax syntax = 7; | 312 // optional .google.protobuf.Syntax syntax = 7; |
357 void clear_syntax(); | 313 void clear_syntax(); |
358 static const int kSyntaxFieldNumber = 7; | 314 static const int kSyntaxFieldNumber = 7; |
359 ::google::protobuf::Syntax syntax() const; | 315 ::google::protobuf::Syntax syntax() const; |
360 void set_syntax(::google::protobuf::Syntax value); | 316 void set_syntax(::google::protobuf::Syntax value); |
361 | 317 |
362 // @@protoc_insertion_point(class_scope:google.protobuf.Method) | 318 // @@protoc_insertion_point(class_scope:google.protobuf.Method) |
363 private: | 319 private: |
364 | 320 |
365 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; | 321 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
366 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > options_; | 322 bool _is_default_instance_; |
367 ::google::protobuf::internal::ArenaStringPtr name_; | 323 ::google::protobuf::internal::ArenaStringPtr name_; |
368 ::google::protobuf::internal::ArenaStringPtr request_type_url_; | 324 ::google::protobuf::internal::ArenaStringPtr request_type_url_; |
369 ::google::protobuf::internal::ArenaStringPtr response_type_url_; | 325 ::google::protobuf::internal::ArenaStringPtr response_type_url_; |
370 bool request_streaming_; | 326 bool request_streaming_; |
371 bool response_streaming_; | 327 bool response_streaming_; |
372 int syntax_; | 328 int syntax_; |
| 329 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > options_; |
373 mutable int _cached_size_; | 330 mutable int _cached_size_; |
374 friend void LIBPROTOBUF_EXPORT protobuf_InitDefaults_google_2fprotobuf_2fapi_2
eproto_impl(); | 331 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fapi_2eprot
o(); |
375 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fapi_2eprot
o_impl(); | 332 friend void protobuf_AssignDesc_google_2fprotobuf_2fapi_2eproto(); |
376 friend const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2f
api_2eproto(); | |
377 friend void protobuf_ShutdownFile_google_2fprotobuf_2fapi_2eproto(); | 333 friend void protobuf_ShutdownFile_google_2fprotobuf_2fapi_2eproto(); |
378 | 334 |
| 335 void InitAsDefaultInstance(); |
| 336 static Method* default_instance_; |
379 }; | 337 }; |
380 // ------------------------------------------------------------------- | 338 // ------------------------------------------------------------------- |
381 | 339 |
382 class LIBPROTOBUF_EXPORT Mixin : public ::google::protobuf::Message /* @@protoc_
insertion_point(class_definition:google.protobuf.Mixin) */ { | 340 class LIBPROTOBUF_EXPORT Mixin : public ::google::protobuf::Message { |
383 public: | 341 public: |
384 Mixin(); | 342 Mixin(); |
385 virtual ~Mixin(); | 343 virtual ~Mixin(); |
386 | 344 |
387 Mixin(const Mixin& from); | 345 Mixin(const Mixin& from); |
388 | 346 |
389 inline Mixin& operator=(const Mixin& from) { | 347 inline Mixin& operator=(const Mixin& from) { |
390 CopyFrom(from); | 348 CopyFrom(from); |
391 return *this; | 349 return *this; |
392 } | 350 } |
393 | 351 |
394 static const ::google::protobuf::Descriptor* descriptor(); | 352 static const ::google::protobuf::Descriptor* descriptor(); |
395 static const Mixin& default_instance(); | 353 static const Mixin& default_instance(); |
396 | 354 |
397 static inline const Mixin* internal_default_instance() { | |
398 return reinterpret_cast<const Mixin*>( | |
399 &_Mixin_default_instance_); | |
400 } | |
401 | |
402 void Swap(Mixin* other); | 355 void Swap(Mixin* other); |
403 | 356 |
404 // implements Message ---------------------------------------------- | 357 // implements Message ---------------------------------------------- |
405 | 358 |
406 inline Mixin* New() const PROTOBUF_FINAL { return New(NULL); } | 359 inline Mixin* New() const { return New(NULL); } |
407 | 360 |
408 Mixin* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; | 361 Mixin* New(::google::protobuf::Arena* arena) const; |
409 void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; | 362 void CopyFrom(const ::google::protobuf::Message& from); |
410 void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; | 363 void MergeFrom(const ::google::protobuf::Message& from); |
411 void CopyFrom(const Mixin& from); | 364 void CopyFrom(const Mixin& from); |
412 void MergeFrom(const Mixin& from); | 365 void MergeFrom(const Mixin& from); |
413 void Clear() PROTOBUF_FINAL; | 366 void Clear(); |
414 bool IsInitialized() const PROTOBUF_FINAL; | 367 bool IsInitialized() const; |
415 | 368 |
416 size_t ByteSizeLong() const PROTOBUF_FINAL; | 369 int ByteSize() const; |
417 bool MergePartialFromCodedStream( | 370 bool MergePartialFromCodedStream( |
418 ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; | 371 ::google::protobuf::io::CodedInputStream* input); |
419 void SerializeWithCachedSizes( | 372 void SerializeWithCachedSizes( |
420 ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; | 373 ::google::protobuf::io::CodedOutputStream* output) const; |
421 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( | 374 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf:
:uint8* output) const; |
422 bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINA
L; | 375 int GetCachedSize() const { return _cached_size_; } |
423 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf:
:uint8* output) | |
424 const PROTOBUF_FINAL { | |
425 return InternalSerializeWithCachedSizesToArray(false, output); | |
426 } | |
427 int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } | |
428 private: | 376 private: |
429 void SharedCtor(); | 377 void SharedCtor(); |
430 void SharedDtor(); | 378 void SharedDtor(); |
431 void SetCachedSize(int size) const PROTOBUF_FINAL; | 379 void SetCachedSize(int size) const; |
432 void InternalSwap(Mixin* other); | 380 void InternalSwap(Mixin* other); |
433 private: | 381 private: |
434 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { | 382 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
435 return NULL; | 383 return _internal_metadata_.arena(); |
436 } | 384 } |
437 inline void* MaybeArenaPtr() const { | 385 inline void* MaybeArenaPtr() const { |
438 return NULL; | 386 return _internal_metadata_.raw_arena_ptr(); |
439 } | 387 } |
440 public: | 388 public: |
441 | 389 |
442 ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; | 390 ::google::protobuf::Metadata GetMetadata() const; |
443 | 391 |
444 // nested types ---------------------------------------------------- | 392 // nested types ---------------------------------------------------- |
445 | 393 |
446 // accessors ------------------------------------------------------- | 394 // accessors ------------------------------------------------------- |
447 | 395 |
448 // string name = 1; | 396 // optional string name = 1; |
449 void clear_name(); | 397 void clear_name(); |
450 static const int kNameFieldNumber = 1; | 398 static const int kNameFieldNumber = 1; |
451 const ::std::string& name() const; | 399 const ::std::string& name() const; |
452 void set_name(const ::std::string& value); | 400 void set_name(const ::std::string& value); |
453 void set_name(const char* value); | 401 void set_name(const char* value); |
454 void set_name(const char* value, size_t size); | 402 void set_name(const char* value, size_t size); |
455 ::std::string* mutable_name(); | 403 ::std::string* mutable_name(); |
456 ::std::string* release_name(); | 404 ::std::string* release_name(); |
457 void set_allocated_name(::std::string* name); | 405 void set_allocated_name(::std::string* name); |
458 | 406 |
459 // string root = 2; | 407 // optional string root = 2; |
460 void clear_root(); | 408 void clear_root(); |
461 static const int kRootFieldNumber = 2; | 409 static const int kRootFieldNumber = 2; |
462 const ::std::string& root() const; | 410 const ::std::string& root() const; |
463 void set_root(const ::std::string& value); | 411 void set_root(const ::std::string& value); |
464 void set_root(const char* value); | 412 void set_root(const char* value); |
465 void set_root(const char* value, size_t size); | 413 void set_root(const char* value, size_t size); |
466 ::std::string* mutable_root(); | 414 ::std::string* mutable_root(); |
467 ::std::string* release_root(); | 415 ::std::string* release_root(); |
468 void set_allocated_root(::std::string* root); | 416 void set_allocated_root(::std::string* root); |
469 | 417 |
470 // @@protoc_insertion_point(class_scope:google.protobuf.Mixin) | 418 // @@protoc_insertion_point(class_scope:google.protobuf.Mixin) |
471 private: | 419 private: |
472 | 420 |
473 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; | 421 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 422 bool _is_default_instance_; |
474 ::google::protobuf::internal::ArenaStringPtr name_; | 423 ::google::protobuf::internal::ArenaStringPtr name_; |
475 ::google::protobuf::internal::ArenaStringPtr root_; | 424 ::google::protobuf::internal::ArenaStringPtr root_; |
476 mutable int _cached_size_; | 425 mutable int _cached_size_; |
477 friend void LIBPROTOBUF_EXPORT protobuf_InitDefaults_google_2fprotobuf_2fapi_2
eproto_impl(); | 426 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fapi_2eprot
o(); |
478 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fapi_2eprot
o_impl(); | 427 friend void protobuf_AssignDesc_google_2fprotobuf_2fapi_2eproto(); |
479 friend const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2f
api_2eproto(); | |
480 friend void protobuf_ShutdownFile_google_2fprotobuf_2fapi_2eproto(); | 428 friend void protobuf_ShutdownFile_google_2fprotobuf_2fapi_2eproto(); |
481 | 429 |
| 430 void InitAsDefaultInstance(); |
| 431 static Mixin* default_instance_; |
482 }; | 432 }; |
483 // =================================================================== | 433 // =================================================================== |
484 | 434 |
485 | 435 |
486 // =================================================================== | 436 // =================================================================== |
487 | 437 |
488 #if !PROTOBUF_INLINE_NOT_IN_HEADERS | 438 #if !PROTOBUF_INLINE_NOT_IN_HEADERS |
489 // Api | 439 // Api |
490 | 440 |
491 // string name = 1; | 441 // optional string name = 1; |
492 inline void Api::clear_name() { | 442 inline void Api::clear_name() { |
493 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); | 443 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); |
494 } | 444 } |
495 inline const ::std::string& Api::name() const { | 445 inline const ::std::string& Api::name() const { |
496 // @@protoc_insertion_point(field_get:google.protobuf.Api.name) | 446 // @@protoc_insertion_point(field_get:google.protobuf.Api.name) |
497 return name_.GetNoArena(); | 447 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited()); |
498 } | 448 } |
499 inline void Api::set_name(const ::std::string& value) { | 449 inline void Api::set_name(const ::std::string& value) { |
500 | 450 |
501 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); | 451 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); |
502 // @@protoc_insertion_point(field_set:google.protobuf.Api.name) | 452 // @@protoc_insertion_point(field_set:google.protobuf.Api.name) |
503 } | 453 } |
504 inline void Api::set_name(const char* value) { | 454 inline void Api::set_name(const char* value) { |
505 | 455 |
506 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); | 456 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); |
507 // @@protoc_insertion_point(field_set_char:google.protobuf.Api.name) | 457 // @@protoc_insertion_point(field_set_char:google.protobuf.Api.name) |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
585 Api::mutable_options() { | 535 Api::mutable_options() { |
586 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Api.options) | 536 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Api.options) |
587 return &options_; | 537 return &options_; |
588 } | 538 } |
589 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >& | 539 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >& |
590 Api::options() const { | 540 Api::options() const { |
591 // @@protoc_insertion_point(field_list:google.protobuf.Api.options) | 541 // @@protoc_insertion_point(field_list:google.protobuf.Api.options) |
592 return options_; | 542 return options_; |
593 } | 543 } |
594 | 544 |
595 // string version = 4; | 545 // optional string version = 4; |
596 inline void Api::clear_version() { | 546 inline void Api::clear_version() { |
597 version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); | 547 version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); |
598 } | 548 } |
599 inline const ::std::string& Api::version() const { | 549 inline const ::std::string& Api::version() const { |
600 // @@protoc_insertion_point(field_get:google.protobuf.Api.version) | 550 // @@protoc_insertion_point(field_get:google.protobuf.Api.version) |
601 return version_.GetNoArena(); | 551 return version_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlread
yInited()); |
602 } | 552 } |
603 inline void Api::set_version(const ::std::string& value) { | 553 inline void Api::set_version(const ::std::string& value) { |
604 | 554 |
605 version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), value); | 555 version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), value); |
606 // @@protoc_insertion_point(field_set:google.protobuf.Api.version) | 556 // @@protoc_insertion_point(field_set:google.protobuf.Api.version) |
607 } | 557 } |
608 inline void Api::set_version(const char* value) { | 558 inline void Api::set_version(const char* value) { |
609 | 559 |
610 version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), ::std::string(value)); | 560 version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), ::std::string(value)); |
611 // @@protoc_insertion_point(field_set_char:google.protobuf.Api.version) | 561 // @@protoc_insertion_point(field_set_char:google.protobuf.Api.version) |
(...skipping 17 matching lines...) Expand all Loading... |
629 inline void Api::set_allocated_version(::std::string* version) { | 579 inline void Api::set_allocated_version(::std::string* version) { |
630 if (version != NULL) { | 580 if (version != NULL) { |
631 | 581 |
632 } else { | 582 } else { |
633 | 583 |
634 } | 584 } |
635 version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), version); | 585 version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), version); |
636 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Api.version) | 586 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Api.version) |
637 } | 587 } |
638 | 588 |
639 // .google.protobuf.SourceContext source_context = 5; | 589 // optional .google.protobuf.SourceContext source_context = 5; |
640 inline bool Api::has_source_context() const { | 590 inline bool Api::has_source_context() const { |
641 return this != internal_default_instance() && source_context_ != NULL; | 591 return !_is_default_instance_ && source_context_ != NULL; |
642 } | 592 } |
643 inline void Api::clear_source_context() { | 593 inline void Api::clear_source_context() { |
644 if (GetArenaNoVirtual() == NULL && source_context_ != NULL) delete source_cont
ext_; | 594 if (GetArenaNoVirtual() == NULL && source_context_ != NULL) delete source_cont
ext_; |
645 source_context_ = NULL; | 595 source_context_ = NULL; |
646 } | 596 } |
647 inline const ::google::protobuf::SourceContext& Api::source_context() const { | 597 inline const ::google::protobuf::SourceContext& Api::source_context() const { |
648 // @@protoc_insertion_point(field_get:google.protobuf.Api.source_context) | 598 // @@protoc_insertion_point(field_get:google.protobuf.Api.source_context) |
649 return source_context_ != NULL ? *source_context_ | 599 return source_context_ != NULL ? *source_context_ : *default_instance_->source
_context_; |
650 : *::google::protobuf::SourceContext::internal_default_
instance(); | |
651 } | 600 } |
652 inline ::google::protobuf::SourceContext* Api::mutable_source_context() { | 601 inline ::google::protobuf::SourceContext* Api::mutable_source_context() { |
653 | 602 |
654 if (source_context_ == NULL) { | 603 if (source_context_ == NULL) { |
655 source_context_ = new ::google::protobuf::SourceContext; | 604 source_context_ = new ::google::protobuf::SourceContext; |
656 } | 605 } |
657 // @@protoc_insertion_point(field_mutable:google.protobuf.Api.source_context) | 606 // @@protoc_insertion_point(field_mutable:google.protobuf.Api.source_context) |
658 return source_context_; | 607 return source_context_; |
659 } | 608 } |
660 inline ::google::protobuf::SourceContext* Api::release_source_context() { | 609 inline ::google::protobuf::SourceContext* Api::release_source_context() { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
698 Api::mutable_mixins() { | 647 Api::mutable_mixins() { |
699 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Api.mixins) | 648 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Api.mixins) |
700 return &mixins_; | 649 return &mixins_; |
701 } | 650 } |
702 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Mixin >& | 651 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Mixin >& |
703 Api::mixins() const { | 652 Api::mixins() const { |
704 // @@protoc_insertion_point(field_list:google.protobuf.Api.mixins) | 653 // @@protoc_insertion_point(field_list:google.protobuf.Api.mixins) |
705 return mixins_; | 654 return mixins_; |
706 } | 655 } |
707 | 656 |
708 // .google.protobuf.Syntax syntax = 7; | 657 // optional .google.protobuf.Syntax syntax = 7; |
709 inline void Api::clear_syntax() { | 658 inline void Api::clear_syntax() { |
710 syntax_ = 0; | 659 syntax_ = 0; |
711 } | 660 } |
712 inline ::google::protobuf::Syntax Api::syntax() const { | 661 inline ::google::protobuf::Syntax Api::syntax() const { |
713 // @@protoc_insertion_point(field_get:google.protobuf.Api.syntax) | 662 // @@protoc_insertion_point(field_get:google.protobuf.Api.syntax) |
714 return static_cast< ::google::protobuf::Syntax >(syntax_); | 663 return static_cast< ::google::protobuf::Syntax >(syntax_); |
715 } | 664 } |
716 inline void Api::set_syntax(::google::protobuf::Syntax value) { | 665 inline void Api::set_syntax(::google::protobuf::Syntax value) { |
717 | 666 |
718 syntax_ = value; | 667 syntax_ = value; |
719 // @@protoc_insertion_point(field_set:google.protobuf.Api.syntax) | 668 // @@protoc_insertion_point(field_set:google.protobuf.Api.syntax) |
720 } | 669 } |
721 | 670 |
722 // ------------------------------------------------------------------- | 671 // ------------------------------------------------------------------- |
723 | 672 |
724 // Method | 673 // Method |
725 | 674 |
726 // string name = 1; | 675 // optional string name = 1; |
727 inline void Method::clear_name() { | 676 inline void Method::clear_name() { |
728 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); | 677 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); |
729 } | 678 } |
730 inline const ::std::string& Method::name() const { | 679 inline const ::std::string& Method::name() const { |
731 // @@protoc_insertion_point(field_get:google.protobuf.Method.name) | 680 // @@protoc_insertion_point(field_get:google.protobuf.Method.name) |
732 return name_.GetNoArena(); | 681 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited()); |
733 } | 682 } |
734 inline void Method::set_name(const ::std::string& value) { | 683 inline void Method::set_name(const ::std::string& value) { |
735 | 684 |
736 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); | 685 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); |
737 // @@protoc_insertion_point(field_set:google.protobuf.Method.name) | 686 // @@protoc_insertion_point(field_set:google.protobuf.Method.name) |
738 } | 687 } |
739 inline void Method::set_name(const char* value) { | 688 inline void Method::set_name(const char* value) { |
740 | 689 |
741 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); | 690 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); |
742 // @@protoc_insertion_point(field_set_char:google.protobuf.Method.name) | 691 // @@protoc_insertion_point(field_set_char:google.protobuf.Method.name) |
(...skipping 17 matching lines...) Expand all Loading... |
760 inline void Method::set_allocated_name(::std::string* name) { | 709 inline void Method::set_allocated_name(::std::string* name) { |
761 if (name != NULL) { | 710 if (name != NULL) { |
762 | 711 |
763 } else { | 712 } else { |
764 | 713 |
765 } | 714 } |
766 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), name); | 715 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), name); |
767 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.name) | 716 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.name) |
768 } | 717 } |
769 | 718 |
770 // string request_type_url = 2; | 719 // optional string request_type_url = 2; |
771 inline void Method::clear_request_type_url() { | 720 inline void Method::clear_request_type_url() { |
772 request_type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited()); | 721 request_type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited()); |
773 } | 722 } |
774 inline const ::std::string& Method::request_type_url() const { | 723 inline const ::std::string& Method::request_type_url() const { |
775 // @@protoc_insertion_point(field_get:google.protobuf.Method.request_type_url) | 724 // @@protoc_insertion_point(field_get:google.protobuf.Method.request_type_url) |
776 return request_type_url_.GetNoArena(); | 725 return request_type_url_.GetNoArena(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited()); |
777 } | 726 } |
778 inline void Method::set_request_type_url(const ::std::string& value) { | 727 inline void Method::set_request_type_url(const ::std::string& value) { |
779 | 728 |
780 request_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), value); | 729 request_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), value); |
781 // @@protoc_insertion_point(field_set:google.protobuf.Method.request_type_url) | 730 // @@protoc_insertion_point(field_set:google.protobuf.Method.request_type_url) |
782 } | 731 } |
783 inline void Method::set_request_type_url(const char* value) { | 732 inline void Method::set_request_type_url(const char* value) { |
784 | 733 |
785 request_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), ::std::string(value)); | 734 request_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), ::std::string(value)); |
786 // @@protoc_insertion_point(field_set_char:google.protobuf.Method.request_type
_url) | 735 // @@protoc_insertion_point(field_set_char:google.protobuf.Method.request_type
_url) |
(...skipping 17 matching lines...) Expand all Loading... |
804 inline void Method::set_allocated_request_type_url(::std::string* request_type_u
rl) { | 753 inline void Method::set_allocated_request_type_url(::std::string* request_type_u
rl) { |
805 if (request_type_url != NULL) { | 754 if (request_type_url != NULL) { |
806 | 755 |
807 } else { | 756 } else { |
808 | 757 |
809 } | 758 } |
810 request_type_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited(), request_type_url); | 759 request_type_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited(), request_type_url); |
811 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.request
_type_url) | 760 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.request
_type_url) |
812 } | 761 } |
813 | 762 |
814 // bool request_streaming = 3; | 763 // optional bool request_streaming = 3; |
815 inline void Method::clear_request_streaming() { | 764 inline void Method::clear_request_streaming() { |
816 request_streaming_ = false; | 765 request_streaming_ = false; |
817 } | 766 } |
818 inline bool Method::request_streaming() const { | 767 inline bool Method::request_streaming() const { |
819 // @@protoc_insertion_point(field_get:google.protobuf.Method.request_streaming
) | 768 // @@protoc_insertion_point(field_get:google.protobuf.Method.request_streaming
) |
820 return request_streaming_; | 769 return request_streaming_; |
821 } | 770 } |
822 inline void Method::set_request_streaming(bool value) { | 771 inline void Method::set_request_streaming(bool value) { |
823 | 772 |
824 request_streaming_ = value; | 773 request_streaming_ = value; |
825 // @@protoc_insertion_point(field_set:google.protobuf.Method.request_streaming
) | 774 // @@protoc_insertion_point(field_set:google.protobuf.Method.request_streaming
) |
826 } | 775 } |
827 | 776 |
828 // string response_type_url = 4; | 777 // optional string response_type_url = 4; |
829 inline void Method::clear_response_type_url() { | 778 inline void Method::clear_response_type_url() { |
830 response_type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmpty
StringAlreadyInited()); | 779 response_type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmpty
StringAlreadyInited()); |
831 } | 780 } |
832 inline const ::std::string& Method::response_type_url() const { | 781 inline const ::std::string& Method::response_type_url() const { |
833 // @@protoc_insertion_point(field_get:google.protobuf.Method.response_type_url
) | 782 // @@protoc_insertion_point(field_get:google.protobuf.Method.response_type_url
) |
834 return response_type_url_.GetNoArena(); | 783 return response_type_url_.GetNoArena(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited()); |
835 } | 784 } |
836 inline void Method::set_response_type_url(const ::std::string& value) { | 785 inline void Method::set_response_type_url(const ::std::string& value) { |
837 | 786 |
838 response_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited(), value); | 787 response_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited(), value); |
839 // @@protoc_insertion_point(field_set:google.protobuf.Method.response_type_url
) | 788 // @@protoc_insertion_point(field_set:google.protobuf.Method.response_type_url
) |
840 } | 789 } |
841 inline void Method::set_response_type_url(const char* value) { | 790 inline void Method::set_response_type_url(const char* value) { |
842 | 791 |
843 response_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited(), ::std::string(value)); | 792 response_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited(), ::std::string(value)); |
844 // @@protoc_insertion_point(field_set_char:google.protobuf.Method.response_typ
e_url) | 793 // @@protoc_insertion_point(field_set_char:google.protobuf.Method.response_typ
e_url) |
(...skipping 17 matching lines...) Expand all Loading... |
862 inline void Method::set_allocated_response_type_url(::std::string* response_type
_url) { | 811 inline void Method::set_allocated_response_type_url(::std::string* response_type
_url) { |
863 if (response_type_url != NULL) { | 812 if (response_type_url != NULL) { |
864 | 813 |
865 } else { | 814 } else { |
866 | 815 |
867 } | 816 } |
868 response_type_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmpty
StringAlreadyInited(), response_type_url); | 817 response_type_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmpty
StringAlreadyInited(), response_type_url); |
869 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.respons
e_type_url) | 818 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.respons
e_type_url) |
870 } | 819 } |
871 | 820 |
872 // bool response_streaming = 5; | 821 // optional bool response_streaming = 5; |
873 inline void Method::clear_response_streaming() { | 822 inline void Method::clear_response_streaming() { |
874 response_streaming_ = false; | 823 response_streaming_ = false; |
875 } | 824 } |
876 inline bool Method::response_streaming() const { | 825 inline bool Method::response_streaming() const { |
877 // @@protoc_insertion_point(field_get:google.protobuf.Method.response_streamin
g) | 826 // @@protoc_insertion_point(field_get:google.protobuf.Method.response_streamin
g) |
878 return response_streaming_; | 827 return response_streaming_; |
879 } | 828 } |
880 inline void Method::set_response_streaming(bool value) { | 829 inline void Method::set_response_streaming(bool value) { |
881 | 830 |
882 response_streaming_ = value; | 831 response_streaming_ = value; |
(...skipping 23 matching lines...) Expand all Loading... |
906 Method::mutable_options() { | 855 Method::mutable_options() { |
907 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Method.options) | 856 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Method.options) |
908 return &options_; | 857 return &options_; |
909 } | 858 } |
910 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >& | 859 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >& |
911 Method::options() const { | 860 Method::options() const { |
912 // @@protoc_insertion_point(field_list:google.protobuf.Method.options) | 861 // @@protoc_insertion_point(field_list:google.protobuf.Method.options) |
913 return options_; | 862 return options_; |
914 } | 863 } |
915 | 864 |
916 // .google.protobuf.Syntax syntax = 7; | 865 // optional .google.protobuf.Syntax syntax = 7; |
917 inline void Method::clear_syntax() { | 866 inline void Method::clear_syntax() { |
918 syntax_ = 0; | 867 syntax_ = 0; |
919 } | 868 } |
920 inline ::google::protobuf::Syntax Method::syntax() const { | 869 inline ::google::protobuf::Syntax Method::syntax() const { |
921 // @@protoc_insertion_point(field_get:google.protobuf.Method.syntax) | 870 // @@protoc_insertion_point(field_get:google.protobuf.Method.syntax) |
922 return static_cast< ::google::protobuf::Syntax >(syntax_); | 871 return static_cast< ::google::protobuf::Syntax >(syntax_); |
923 } | 872 } |
924 inline void Method::set_syntax(::google::protobuf::Syntax value) { | 873 inline void Method::set_syntax(::google::protobuf::Syntax value) { |
925 | 874 |
926 syntax_ = value; | 875 syntax_ = value; |
927 // @@protoc_insertion_point(field_set:google.protobuf.Method.syntax) | 876 // @@protoc_insertion_point(field_set:google.protobuf.Method.syntax) |
928 } | 877 } |
929 | 878 |
930 // ------------------------------------------------------------------- | 879 // ------------------------------------------------------------------- |
931 | 880 |
932 // Mixin | 881 // Mixin |
933 | 882 |
934 // string name = 1; | 883 // optional string name = 1; |
935 inline void Mixin::clear_name() { | 884 inline void Mixin::clear_name() { |
936 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); | 885 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); |
937 } | 886 } |
938 inline const ::std::string& Mixin::name() const { | 887 inline const ::std::string& Mixin::name() const { |
939 // @@protoc_insertion_point(field_get:google.protobuf.Mixin.name) | 888 // @@protoc_insertion_point(field_get:google.protobuf.Mixin.name) |
940 return name_.GetNoArena(); | 889 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited()); |
941 } | 890 } |
942 inline void Mixin::set_name(const ::std::string& value) { | 891 inline void Mixin::set_name(const ::std::string& value) { |
943 | 892 |
944 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); | 893 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); |
945 // @@protoc_insertion_point(field_set:google.protobuf.Mixin.name) | 894 // @@protoc_insertion_point(field_set:google.protobuf.Mixin.name) |
946 } | 895 } |
947 inline void Mixin::set_name(const char* value) { | 896 inline void Mixin::set_name(const char* value) { |
948 | 897 |
949 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); | 898 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); |
950 // @@protoc_insertion_point(field_set_char:google.protobuf.Mixin.name) | 899 // @@protoc_insertion_point(field_set_char:google.protobuf.Mixin.name) |
(...skipping 17 matching lines...) Expand all Loading... |
968 inline void Mixin::set_allocated_name(::std::string* name) { | 917 inline void Mixin::set_allocated_name(::std::string* name) { |
969 if (name != NULL) { | 918 if (name != NULL) { |
970 | 919 |
971 } else { | 920 } else { |
972 | 921 |
973 } | 922 } |
974 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), name); | 923 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), name); |
975 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Mixin.name) | 924 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Mixin.name) |
976 } | 925 } |
977 | 926 |
978 // string root = 2; | 927 // optional string root = 2; |
979 inline void Mixin::clear_root() { | 928 inline void Mixin::clear_root() { |
980 root_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); | 929 root_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); |
981 } | 930 } |
982 inline const ::std::string& Mixin::root() const { | 931 inline const ::std::string& Mixin::root() const { |
983 // @@protoc_insertion_point(field_get:google.protobuf.Mixin.root) | 932 // @@protoc_insertion_point(field_get:google.protobuf.Mixin.root) |
984 return root_.GetNoArena(); | 933 return root_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited()); |
985 } | 934 } |
986 inline void Mixin::set_root(const ::std::string& value) { | 935 inline void Mixin::set_root(const ::std::string& value) { |
987 | 936 |
988 root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); | 937 root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); |
989 // @@protoc_insertion_point(field_set:google.protobuf.Mixin.root) | 938 // @@protoc_insertion_point(field_set:google.protobuf.Mixin.root) |
990 } | 939 } |
991 inline void Mixin::set_root(const char* value) { | 940 inline void Mixin::set_root(const char* value) { |
992 | 941 |
993 root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); | 942 root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); |
994 // @@protoc_insertion_point(field_set_char:google.protobuf.Mixin.root) | 943 // @@protoc_insertion_point(field_set_char:google.protobuf.Mixin.root) |
(...skipping 25 matching lines...) Expand all Loading... |
1020 } | 969 } |
1021 | 970 |
1022 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS | 971 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS |
1023 // ------------------------------------------------------------------- | 972 // ------------------------------------------------------------------- |
1024 | 973 |
1025 // ------------------------------------------------------------------- | 974 // ------------------------------------------------------------------- |
1026 | 975 |
1027 | 976 |
1028 // @@protoc_insertion_point(namespace_scope) | 977 // @@protoc_insertion_point(namespace_scope) |
1029 | 978 |
1030 | |
1031 } // namespace protobuf | 979 } // namespace protobuf |
1032 } // namespace google | 980 } // namespace google |
1033 | 981 |
1034 // @@protoc_insertion_point(global_scope) | 982 // @@protoc_insertion_point(global_scope) |
1035 | 983 |
1036 #endif // PROTOBUF_google_2fprotobuf_2fapi_2eproto__INCLUDED | 984 #endif // PROTOBUF_google_2fprotobuf_2fapi_2eproto__INCLUDED |
OLD | NEW |