Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(182)

Side by Side Diff: third_party/protobuf/src/google/protobuf/api.pb.h

Issue 2599263002: third_party/protobuf: Update to HEAD (f52e188fe4) (Closed)
Patch Set: Address comments Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 < 3000000 11 #if GOOGLE_PROTOBUF_VERSION < 3001000
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 3000000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION 16 #if 3001000 < 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> 27 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
28 #include <google/protobuf/extension_set.h> 28 #include <google/protobuf/extension_set.h> // IWYU pragma: export
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
33 64
34 namespace google { 65 namespace google {
35 namespace protobuf { 66 namespace protobuf {
36 67
37 // Internal implementation detail -- do not call these. 68 // Internal implementation detail -- do not call these.
38 void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fapi_2eproto(); 69 void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fapi_2eproto();
39 void protobuf_AssignDesc_google_2fprotobuf_2fapi_2eproto(); 70 void LIBPROTOBUF_EXPORT protobuf_InitDefaults_google_2fprotobuf_2fapi_2eproto();
40 void protobuf_ShutdownFile_google_2fprotobuf_2fapi_2eproto();
41
42 class Api;
43 class Method;
44 class Mixin;
45 71
46 // =================================================================== 72 // ===================================================================
47 73
48 class LIBPROTOBUF_EXPORT Api : public ::google::protobuf::Message { 74 class LIBPROTOBUF_EXPORT Api : public ::google::protobuf::Message /* @@protoc_in sertion_point(class_definition:google.protobuf.Api) */ {
49 public: 75 public:
50 Api(); 76 Api();
51 virtual ~Api(); 77 virtual ~Api();
52 78
53 Api(const Api& from); 79 Api(const Api& from);
54 80
55 inline Api& operator=(const Api& from) { 81 inline Api& operator=(const Api& from) {
56 CopyFrom(from); 82 CopyFrom(from);
57 return *this; 83 return *this;
58 } 84 }
59 85
60 static const ::google::protobuf::Descriptor* descriptor(); 86 static const ::google::protobuf::Descriptor* descriptor();
61 static const Api& default_instance(); 87 static const Api& default_instance();
62 88
89 static inline const Api* internal_default_instance() {
90 return reinterpret_cast<const Api*>(
91 &_Api_default_instance_);
92 }
93
63 void Swap(Api* other); 94 void Swap(Api* other);
64 95
65 // implements Message ---------------------------------------------- 96 // implements Message ----------------------------------------------
66 97
67 inline Api* New() const { return New(NULL); } 98 inline Api* New() const PROTOBUF_FINAL { return New(NULL); }
68 99
69 Api* New(::google::protobuf::Arena* arena) const; 100 Api* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
70 void CopyFrom(const ::google::protobuf::Message& from); 101 void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
71 void MergeFrom(const ::google::protobuf::Message& from); 102 void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
72 void CopyFrom(const Api& from); 103 void CopyFrom(const Api& from);
73 void MergeFrom(const Api& from); 104 void MergeFrom(const Api& from);
74 void Clear(); 105 void Clear() PROTOBUF_FINAL;
75 bool IsInitialized() const; 106 bool IsInitialized() const PROTOBUF_FINAL;
76 107
77 int ByteSize() const; 108 size_t ByteSizeLong() const PROTOBUF_FINAL;
78 bool MergePartialFromCodedStream( 109 bool MergePartialFromCodedStream(
79 ::google::protobuf::io::CodedInputStream* input); 110 ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
80 void SerializeWithCachedSizes( 111 void SerializeWithCachedSizes(
81 ::google::protobuf::io::CodedOutputStream* output) const; 112 ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
82 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf: :uint8* output) const; 113 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
83 int GetCachedSize() const { return _cached_size_; } 114 bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINA L;
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_; }
84 private: 120 private:
85 void SharedCtor(); 121 void SharedCtor();
86 void SharedDtor(); 122 void SharedDtor();
87 void SetCachedSize(int size) const; 123 void SetCachedSize(int size) const PROTOBUF_FINAL;
88 void InternalSwap(Api* other); 124 void InternalSwap(Api* other);
89 private: 125 private:
90 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 126 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
91 return _internal_metadata_.arena(); 127 return NULL;
92 } 128 }
93 inline void* MaybeArenaPtr() const { 129 inline void* MaybeArenaPtr() const {
94 return _internal_metadata_.raw_arena_ptr(); 130 return NULL;
95 } 131 }
96 public: 132 public:
97 133
98 ::google::protobuf::Metadata GetMetadata() const; 134 ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
99 135
100 // nested types ---------------------------------------------------- 136 // nested types ----------------------------------------------------
101 137
102 // accessors ------------------------------------------------------- 138 // accessors -------------------------------------------------------
103 139
104 // optional string name = 1; 140 // string name = 1;
105 void clear_name(); 141 void clear_name();
106 static const int kNameFieldNumber = 1; 142 static const int kNameFieldNumber = 1;
107 const ::std::string& name() const; 143 const ::std::string& name() const;
108 void set_name(const ::std::string& value); 144 void set_name(const ::std::string& value);
145 #if LANG_CXX11
146 void set_name(::std::string&& value);
147 #endif
109 void set_name(const char* value); 148 void set_name(const char* value);
110 void set_name(const char* value, size_t size); 149 void set_name(const char* value, size_t size);
111 ::std::string* mutable_name(); 150 ::std::string* mutable_name();
112 ::std::string* release_name(); 151 ::std::string* release_name();
113 void set_allocated_name(::std::string* name); 152 void set_allocated_name(::std::string* name);
114 153
115 // repeated .google.protobuf.Method methods = 2; 154 // repeated .google.protobuf.Method methods = 2;
116 int methods_size() const; 155 int methods_size() const;
117 void clear_methods(); 156 void clear_methods();
118 static const int kMethodsFieldNumber = 2; 157 static const int kMethodsFieldNumber = 2;
(...skipping 10 matching lines...) Expand all
129 void clear_options(); 168 void clear_options();
130 static const int kOptionsFieldNumber = 3; 169 static const int kOptionsFieldNumber = 3;
131 const ::google::protobuf::Option& options(int index) const; 170 const ::google::protobuf::Option& options(int index) const;
132 ::google::protobuf::Option* mutable_options(int index); 171 ::google::protobuf::Option* mutable_options(int index);
133 ::google::protobuf::Option* add_options(); 172 ::google::protobuf::Option* add_options();
134 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >* 173 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
135 mutable_options(); 174 mutable_options();
136 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >& 175 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
137 options() const; 176 options() const;
138 177
139 // optional string version = 4; 178 // string version = 4;
140 void clear_version(); 179 void clear_version();
141 static const int kVersionFieldNumber = 4; 180 static const int kVersionFieldNumber = 4;
142 const ::std::string& version() const; 181 const ::std::string& version() const;
143 void set_version(const ::std::string& value); 182 void set_version(const ::std::string& value);
183 #if LANG_CXX11
184 void set_version(::std::string&& value);
185 #endif
144 void set_version(const char* value); 186 void set_version(const char* value);
145 void set_version(const char* value, size_t size); 187 void set_version(const char* value, size_t size);
146 ::std::string* mutable_version(); 188 ::std::string* mutable_version();
147 ::std::string* release_version(); 189 ::std::string* release_version();
148 void set_allocated_version(::std::string* version); 190 void set_allocated_version(::std::string* version);
149 191
150 // optional .google.protobuf.SourceContext source_context = 5; 192 // .google.protobuf.SourceContext source_context = 5;
151 bool has_source_context() const; 193 bool has_source_context() const;
152 void clear_source_context(); 194 void clear_source_context();
153 static const int kSourceContextFieldNumber = 5; 195 static const int kSourceContextFieldNumber = 5;
154 const ::google::protobuf::SourceContext& source_context() const; 196 const ::google::protobuf::SourceContext& source_context() const;
155 ::google::protobuf::SourceContext* mutable_source_context(); 197 ::google::protobuf::SourceContext* mutable_source_context();
156 ::google::protobuf::SourceContext* release_source_context(); 198 ::google::protobuf::SourceContext* release_source_context();
157 void set_allocated_source_context(::google::protobuf::SourceContext* source_co ntext); 199 void set_allocated_source_context(::google::protobuf::SourceContext* source_co ntext);
158 200
159 // repeated .google.protobuf.Mixin mixins = 6; 201 // repeated .google.protobuf.Mixin mixins = 6;
160 int mixins_size() const; 202 int mixins_size() const;
161 void clear_mixins(); 203 void clear_mixins();
162 static const int kMixinsFieldNumber = 6; 204 static const int kMixinsFieldNumber = 6;
163 const ::google::protobuf::Mixin& mixins(int index) const; 205 const ::google::protobuf::Mixin& mixins(int index) const;
164 ::google::protobuf::Mixin* mutable_mixins(int index); 206 ::google::protobuf::Mixin* mutable_mixins(int index);
165 ::google::protobuf::Mixin* add_mixins(); 207 ::google::protobuf::Mixin* add_mixins();
166 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Mixin >* 208 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Mixin >*
167 mutable_mixins(); 209 mutable_mixins();
168 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Mixin >& 210 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Mixin >&
169 mixins() const; 211 mixins() const;
170 212
171 // optional .google.protobuf.Syntax syntax = 7; 213 // .google.protobuf.Syntax syntax = 7;
172 void clear_syntax(); 214 void clear_syntax();
173 static const int kSyntaxFieldNumber = 7; 215 static const int kSyntaxFieldNumber = 7;
174 ::google::protobuf::Syntax syntax() const; 216 ::google::protobuf::Syntax syntax() const;
175 void set_syntax(::google::protobuf::Syntax value); 217 void set_syntax(::google::protobuf::Syntax value);
176 218
177 // @@protoc_insertion_point(class_scope:google.protobuf.Api) 219 // @@protoc_insertion_point(class_scope:google.protobuf.Api)
178 private: 220 private:
179 221
180 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; 222 ::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_; 223 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Method > methods_;
184 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > options_; 224 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > options_;
225 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Mixin > mixins_;
226 ::google::protobuf::internal::ArenaStringPtr name_;
185 ::google::protobuf::internal::ArenaStringPtr version_; 227 ::google::protobuf::internal::ArenaStringPtr version_;
186 ::google::protobuf::SourceContext* source_context_; 228 ::google::protobuf::SourceContext* source_context_;
187 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Mixin > mixins_;
188 int syntax_; 229 int syntax_;
189 mutable int _cached_size_; 230 mutable int _cached_size_;
190 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fapi_2eprot o(); 231 friend void LIBPROTOBUF_EXPORT protobuf_InitDefaults_google_2fprotobuf_2fapi_2 eproto_impl();
191 friend void protobuf_AssignDesc_google_2fprotobuf_2fapi_2eproto(); 232 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fapi_2eprot o_impl();
233 friend const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2f api_2eproto();
192 friend void protobuf_ShutdownFile_google_2fprotobuf_2fapi_2eproto(); 234 friend void protobuf_ShutdownFile_google_2fprotobuf_2fapi_2eproto();
193 235
194 void InitAsDefaultInstance();
195 static Api* default_instance_;
196 }; 236 };
197 // ------------------------------------------------------------------- 237 // -------------------------------------------------------------------
198 238
199 class LIBPROTOBUF_EXPORT Method : public ::google::protobuf::Message { 239 class LIBPROTOBUF_EXPORT Method : public ::google::protobuf::Message /* @@protoc _insertion_point(class_definition:google.protobuf.Method) */ {
200 public: 240 public:
201 Method(); 241 Method();
202 virtual ~Method(); 242 virtual ~Method();
203 243
204 Method(const Method& from); 244 Method(const Method& from);
205 245
206 inline Method& operator=(const Method& from) { 246 inline Method& operator=(const Method& from) {
207 CopyFrom(from); 247 CopyFrom(from);
208 return *this; 248 return *this;
209 } 249 }
210 250
211 static const ::google::protobuf::Descriptor* descriptor(); 251 static const ::google::protobuf::Descriptor* descriptor();
212 static const Method& default_instance(); 252 static const Method& default_instance();
213 253
254 static inline const Method* internal_default_instance() {
255 return reinterpret_cast<const Method*>(
256 &_Method_default_instance_);
257 }
258
214 void Swap(Method* other); 259 void Swap(Method* other);
215 260
216 // implements Message ---------------------------------------------- 261 // implements Message ----------------------------------------------
217 262
218 inline Method* New() const { return New(NULL); } 263 inline Method* New() const PROTOBUF_FINAL { return New(NULL); }
219 264
220 Method* New(::google::protobuf::Arena* arena) const; 265 Method* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
221 void CopyFrom(const ::google::protobuf::Message& from); 266 void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
222 void MergeFrom(const ::google::protobuf::Message& from); 267 void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
223 void CopyFrom(const Method& from); 268 void CopyFrom(const Method& from);
224 void MergeFrom(const Method& from); 269 void MergeFrom(const Method& from);
225 void Clear(); 270 void Clear() PROTOBUF_FINAL;
226 bool IsInitialized() const; 271 bool IsInitialized() const PROTOBUF_FINAL;
227 272
228 int ByteSize() const; 273 size_t ByteSizeLong() const PROTOBUF_FINAL;
229 bool MergePartialFromCodedStream( 274 bool MergePartialFromCodedStream(
230 ::google::protobuf::io::CodedInputStream* input); 275 ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
231 void SerializeWithCachedSizes( 276 void SerializeWithCachedSizes(
232 ::google::protobuf::io::CodedOutputStream* output) const; 277 ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
233 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf: :uint8* output) const; 278 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
234 int GetCachedSize() const { return _cached_size_; } 279 bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINA L;
280 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf: :uint8* output)
281 const PROTOBUF_FINAL {
282 return InternalSerializeWithCachedSizesToArray(false, output);
283 }
284 int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
235 private: 285 private:
236 void SharedCtor(); 286 void SharedCtor();
237 void SharedDtor(); 287 void SharedDtor();
238 void SetCachedSize(int size) const; 288 void SetCachedSize(int size) const PROTOBUF_FINAL;
239 void InternalSwap(Method* other); 289 void InternalSwap(Method* other);
240 private: 290 private:
241 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 291 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
242 return _internal_metadata_.arena(); 292 return NULL;
243 } 293 }
244 inline void* MaybeArenaPtr() const { 294 inline void* MaybeArenaPtr() const {
245 return _internal_metadata_.raw_arena_ptr(); 295 return NULL;
246 } 296 }
247 public: 297 public:
248 298
249 ::google::protobuf::Metadata GetMetadata() const; 299 ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
250 300
251 // nested types ---------------------------------------------------- 301 // nested types ----------------------------------------------------
252 302
253 // accessors ------------------------------------------------------- 303 // accessors -------------------------------------------------------
254 304
255 // optional string name = 1; 305 // string name = 1;
256 void clear_name(); 306 void clear_name();
257 static const int kNameFieldNumber = 1; 307 static const int kNameFieldNumber = 1;
258 const ::std::string& name() const; 308 const ::std::string& name() const;
259 void set_name(const ::std::string& value); 309 void set_name(const ::std::string& value);
310 #if LANG_CXX11
311 void set_name(::std::string&& value);
312 #endif
260 void set_name(const char* value); 313 void set_name(const char* value);
261 void set_name(const char* value, size_t size); 314 void set_name(const char* value, size_t size);
262 ::std::string* mutable_name(); 315 ::std::string* mutable_name();
263 ::std::string* release_name(); 316 ::std::string* release_name();
264 void set_allocated_name(::std::string* name); 317 void set_allocated_name(::std::string* name);
265 318
266 // optional string request_type_url = 2; 319 // string request_type_url = 2;
267 void clear_request_type_url(); 320 void clear_request_type_url();
268 static const int kRequestTypeUrlFieldNumber = 2; 321 static const int kRequestTypeUrlFieldNumber = 2;
269 const ::std::string& request_type_url() const; 322 const ::std::string& request_type_url() const;
270 void set_request_type_url(const ::std::string& value); 323 void set_request_type_url(const ::std::string& value);
324 #if LANG_CXX11
325 void set_request_type_url(::std::string&& value);
326 #endif
271 void set_request_type_url(const char* value); 327 void set_request_type_url(const char* value);
272 void set_request_type_url(const char* value, size_t size); 328 void set_request_type_url(const char* value, size_t size);
273 ::std::string* mutable_request_type_url(); 329 ::std::string* mutable_request_type_url();
274 ::std::string* release_request_type_url(); 330 ::std::string* release_request_type_url();
275 void set_allocated_request_type_url(::std::string* request_type_url); 331 void set_allocated_request_type_url(::std::string* request_type_url);
276 332
277 // optional bool request_streaming = 3; 333 // bool request_streaming = 3;
278 void clear_request_streaming(); 334 void clear_request_streaming();
279 static const int kRequestStreamingFieldNumber = 3; 335 static const int kRequestStreamingFieldNumber = 3;
280 bool request_streaming() const; 336 bool request_streaming() const;
281 void set_request_streaming(bool value); 337 void set_request_streaming(bool value);
282 338
283 // optional string response_type_url = 4; 339 // string response_type_url = 4;
284 void clear_response_type_url(); 340 void clear_response_type_url();
285 static const int kResponseTypeUrlFieldNumber = 4; 341 static const int kResponseTypeUrlFieldNumber = 4;
286 const ::std::string& response_type_url() const; 342 const ::std::string& response_type_url() const;
287 void set_response_type_url(const ::std::string& value); 343 void set_response_type_url(const ::std::string& value);
344 #if LANG_CXX11
345 void set_response_type_url(::std::string&& value);
346 #endif
288 void set_response_type_url(const char* value); 347 void set_response_type_url(const char* value);
289 void set_response_type_url(const char* value, size_t size); 348 void set_response_type_url(const char* value, size_t size);
290 ::std::string* mutable_response_type_url(); 349 ::std::string* mutable_response_type_url();
291 ::std::string* release_response_type_url(); 350 ::std::string* release_response_type_url();
292 void set_allocated_response_type_url(::std::string* response_type_url); 351 void set_allocated_response_type_url(::std::string* response_type_url);
293 352
294 // optional bool response_streaming = 5; 353 // bool response_streaming = 5;
295 void clear_response_streaming(); 354 void clear_response_streaming();
296 static const int kResponseStreamingFieldNumber = 5; 355 static const int kResponseStreamingFieldNumber = 5;
297 bool response_streaming() const; 356 bool response_streaming() const;
298 void set_response_streaming(bool value); 357 void set_response_streaming(bool value);
299 358
300 // repeated .google.protobuf.Option options = 6; 359 // repeated .google.protobuf.Option options = 6;
301 int options_size() const; 360 int options_size() const;
302 void clear_options(); 361 void clear_options();
303 static const int kOptionsFieldNumber = 6; 362 static const int kOptionsFieldNumber = 6;
304 const ::google::protobuf::Option& options(int index) const; 363 const ::google::protobuf::Option& options(int index) const;
305 ::google::protobuf::Option* mutable_options(int index); 364 ::google::protobuf::Option* mutable_options(int index);
306 ::google::protobuf::Option* add_options(); 365 ::google::protobuf::Option* add_options();
307 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >* 366 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
308 mutable_options(); 367 mutable_options();
309 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >& 368 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
310 options() const; 369 options() const;
311 370
312 // optional .google.protobuf.Syntax syntax = 7; 371 // .google.protobuf.Syntax syntax = 7;
313 void clear_syntax(); 372 void clear_syntax();
314 static const int kSyntaxFieldNumber = 7; 373 static const int kSyntaxFieldNumber = 7;
315 ::google::protobuf::Syntax syntax() const; 374 ::google::protobuf::Syntax syntax() const;
316 void set_syntax(::google::protobuf::Syntax value); 375 void set_syntax(::google::protobuf::Syntax value);
317 376
318 // @@protoc_insertion_point(class_scope:google.protobuf.Method) 377 // @@protoc_insertion_point(class_scope:google.protobuf.Method)
319 private: 378 private:
320 379
321 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; 380 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
322 bool _is_default_instance_; 381 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > options_;
323 ::google::protobuf::internal::ArenaStringPtr name_; 382 ::google::protobuf::internal::ArenaStringPtr name_;
324 ::google::protobuf::internal::ArenaStringPtr request_type_url_; 383 ::google::protobuf::internal::ArenaStringPtr request_type_url_;
325 ::google::protobuf::internal::ArenaStringPtr response_type_url_; 384 ::google::protobuf::internal::ArenaStringPtr response_type_url_;
326 bool request_streaming_; 385 bool request_streaming_;
327 bool response_streaming_; 386 bool response_streaming_;
328 int syntax_; 387 int syntax_;
329 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > options_;
330 mutable int _cached_size_; 388 mutable int _cached_size_;
331 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fapi_2eprot o(); 389 friend void LIBPROTOBUF_EXPORT protobuf_InitDefaults_google_2fprotobuf_2fapi_2 eproto_impl();
332 friend void protobuf_AssignDesc_google_2fprotobuf_2fapi_2eproto(); 390 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fapi_2eprot o_impl();
391 friend const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2f api_2eproto();
333 friend void protobuf_ShutdownFile_google_2fprotobuf_2fapi_2eproto(); 392 friend void protobuf_ShutdownFile_google_2fprotobuf_2fapi_2eproto();
334 393
335 void InitAsDefaultInstance();
336 static Method* default_instance_;
337 }; 394 };
338 // ------------------------------------------------------------------- 395 // -------------------------------------------------------------------
339 396
340 class LIBPROTOBUF_EXPORT Mixin : public ::google::protobuf::Message { 397 class LIBPROTOBUF_EXPORT Mixin : public ::google::protobuf::Message /* @@protoc_ insertion_point(class_definition:google.protobuf.Mixin) */ {
341 public: 398 public:
342 Mixin(); 399 Mixin();
343 virtual ~Mixin(); 400 virtual ~Mixin();
344 401
345 Mixin(const Mixin& from); 402 Mixin(const Mixin& from);
346 403
347 inline Mixin& operator=(const Mixin& from) { 404 inline Mixin& operator=(const Mixin& from) {
348 CopyFrom(from); 405 CopyFrom(from);
349 return *this; 406 return *this;
350 } 407 }
351 408
352 static const ::google::protobuf::Descriptor* descriptor(); 409 static const ::google::protobuf::Descriptor* descriptor();
353 static const Mixin& default_instance(); 410 static const Mixin& default_instance();
354 411
412 static inline const Mixin* internal_default_instance() {
413 return reinterpret_cast<const Mixin*>(
414 &_Mixin_default_instance_);
415 }
416
355 void Swap(Mixin* other); 417 void Swap(Mixin* other);
356 418
357 // implements Message ---------------------------------------------- 419 // implements Message ----------------------------------------------
358 420
359 inline Mixin* New() const { return New(NULL); } 421 inline Mixin* New() const PROTOBUF_FINAL { return New(NULL); }
360 422
361 Mixin* New(::google::protobuf::Arena* arena) const; 423 Mixin* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
362 void CopyFrom(const ::google::protobuf::Message& from); 424 void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
363 void MergeFrom(const ::google::protobuf::Message& from); 425 void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
364 void CopyFrom(const Mixin& from); 426 void CopyFrom(const Mixin& from);
365 void MergeFrom(const Mixin& from); 427 void MergeFrom(const Mixin& from);
366 void Clear(); 428 void Clear() PROTOBUF_FINAL;
367 bool IsInitialized() const; 429 bool IsInitialized() const PROTOBUF_FINAL;
368 430
369 int ByteSize() const; 431 size_t ByteSizeLong() const PROTOBUF_FINAL;
370 bool MergePartialFromCodedStream( 432 bool MergePartialFromCodedStream(
371 ::google::protobuf::io::CodedInputStream* input); 433 ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
372 void SerializeWithCachedSizes( 434 void SerializeWithCachedSizes(
373 ::google::protobuf::io::CodedOutputStream* output) const; 435 ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
374 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf: :uint8* output) const; 436 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
375 int GetCachedSize() const { return _cached_size_; } 437 bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINA L;
438 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf: :uint8* output)
439 const PROTOBUF_FINAL {
440 return InternalSerializeWithCachedSizesToArray(false, output);
441 }
442 int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
376 private: 443 private:
377 void SharedCtor(); 444 void SharedCtor();
378 void SharedDtor(); 445 void SharedDtor();
379 void SetCachedSize(int size) const; 446 void SetCachedSize(int size) const PROTOBUF_FINAL;
380 void InternalSwap(Mixin* other); 447 void InternalSwap(Mixin* other);
381 private: 448 private:
382 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 449 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
383 return _internal_metadata_.arena(); 450 return NULL;
384 } 451 }
385 inline void* MaybeArenaPtr() const { 452 inline void* MaybeArenaPtr() const {
386 return _internal_metadata_.raw_arena_ptr(); 453 return NULL;
387 } 454 }
388 public: 455 public:
389 456
390 ::google::protobuf::Metadata GetMetadata() const; 457 ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
391 458
392 // nested types ---------------------------------------------------- 459 // nested types ----------------------------------------------------
393 460
394 // accessors ------------------------------------------------------- 461 // accessors -------------------------------------------------------
395 462
396 // optional string name = 1; 463 // string name = 1;
397 void clear_name(); 464 void clear_name();
398 static const int kNameFieldNumber = 1; 465 static const int kNameFieldNumber = 1;
399 const ::std::string& name() const; 466 const ::std::string& name() const;
400 void set_name(const ::std::string& value); 467 void set_name(const ::std::string& value);
468 #if LANG_CXX11
469 void set_name(::std::string&& value);
470 #endif
401 void set_name(const char* value); 471 void set_name(const char* value);
402 void set_name(const char* value, size_t size); 472 void set_name(const char* value, size_t size);
403 ::std::string* mutable_name(); 473 ::std::string* mutable_name();
404 ::std::string* release_name(); 474 ::std::string* release_name();
405 void set_allocated_name(::std::string* name); 475 void set_allocated_name(::std::string* name);
406 476
407 // optional string root = 2; 477 // string root = 2;
408 void clear_root(); 478 void clear_root();
409 static const int kRootFieldNumber = 2; 479 static const int kRootFieldNumber = 2;
410 const ::std::string& root() const; 480 const ::std::string& root() const;
411 void set_root(const ::std::string& value); 481 void set_root(const ::std::string& value);
482 #if LANG_CXX11
483 void set_root(::std::string&& value);
484 #endif
412 void set_root(const char* value); 485 void set_root(const char* value);
413 void set_root(const char* value, size_t size); 486 void set_root(const char* value, size_t size);
414 ::std::string* mutable_root(); 487 ::std::string* mutable_root();
415 ::std::string* release_root(); 488 ::std::string* release_root();
416 void set_allocated_root(::std::string* root); 489 void set_allocated_root(::std::string* root);
417 490
418 // @@protoc_insertion_point(class_scope:google.protobuf.Mixin) 491 // @@protoc_insertion_point(class_scope:google.protobuf.Mixin)
419 private: 492 private:
420 493
421 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; 494 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
422 bool _is_default_instance_;
423 ::google::protobuf::internal::ArenaStringPtr name_; 495 ::google::protobuf::internal::ArenaStringPtr name_;
424 ::google::protobuf::internal::ArenaStringPtr root_; 496 ::google::protobuf::internal::ArenaStringPtr root_;
425 mutable int _cached_size_; 497 mutable int _cached_size_;
426 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fapi_2eprot o(); 498 friend void LIBPROTOBUF_EXPORT protobuf_InitDefaults_google_2fprotobuf_2fapi_2 eproto_impl();
427 friend void protobuf_AssignDesc_google_2fprotobuf_2fapi_2eproto(); 499 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fapi_2eprot o_impl();
500 friend const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2f api_2eproto();
428 friend void protobuf_ShutdownFile_google_2fprotobuf_2fapi_2eproto(); 501 friend void protobuf_ShutdownFile_google_2fprotobuf_2fapi_2eproto();
429 502
430 void InitAsDefaultInstance();
431 static Mixin* default_instance_;
432 }; 503 };
433 // =================================================================== 504 // ===================================================================
434 505
435 506
436 // =================================================================== 507 // ===================================================================
437 508
438 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 509 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
439 // Api 510 // Api
440 511
441 // optional string name = 1; 512 // string name = 1;
442 inline void Api::clear_name() { 513 inline void Api::clear_name() {
443 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 514 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
444 } 515 }
445 inline const ::std::string& Api::name() const { 516 inline const ::std::string& Api::name() const {
446 // @@protoc_insertion_point(field_get:google.protobuf.Api.name) 517 // @@protoc_insertion_point(field_get:google.protobuf.Api.name)
447 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited()); 518 return name_.GetNoArena();
448 } 519 }
449 inline void Api::set_name(const ::std::string& value) { 520 inline void Api::set_name(const ::std::string& value) {
450 521
451 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 522 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
452 // @@protoc_insertion_point(field_set:google.protobuf.Api.name) 523 // @@protoc_insertion_point(field_set:google.protobuf.Api.name)
453 } 524 }
525 #if LANG_CXX11
526 inline void Api::set_name(::std::string&& value) {
527
528 name_.SetNoArena(
529 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va lue));
530 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Api.name)
531 }
532 #endif
454 inline void Api::set_name(const char* value) { 533 inline void Api::set_name(const char* value) {
455 534
456 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 535 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
457 // @@protoc_insertion_point(field_set_char:google.protobuf.Api.name) 536 // @@protoc_insertion_point(field_set_char:google.protobuf.Api.name)
458 } 537 }
459 inline void Api::set_name(const char* value, size_t size) { 538 inline void Api::set_name(const char* value, size_t size) {
460 539
461 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 540 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
462 ::std::string(reinterpret_cast<const char*>(value), size)); 541 ::std::string(reinterpret_cast<const char*>(value), size));
463 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Api.name) 542 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Api.name)
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 Api::mutable_options() { 614 Api::mutable_options() {
536 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Api.options) 615 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Api.options)
537 return &options_; 616 return &options_;
538 } 617 }
539 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >& 618 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
540 Api::options() const { 619 Api::options() const {
541 // @@protoc_insertion_point(field_list:google.protobuf.Api.options) 620 // @@protoc_insertion_point(field_list:google.protobuf.Api.options)
542 return options_; 621 return options_;
543 } 622 }
544 623
545 // optional string version = 4; 624 // string version = 4;
546 inline void Api::clear_version() { 625 inline void Api::clear_version() {
547 version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited()); 626 version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited());
548 } 627 }
549 inline const ::std::string& Api::version() const { 628 inline const ::std::string& Api::version() const {
550 // @@protoc_insertion_point(field_get:google.protobuf.Api.version) 629 // @@protoc_insertion_point(field_get:google.protobuf.Api.version)
551 return version_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlread yInited()); 630 return version_.GetNoArena();
552 } 631 }
553 inline void Api::set_version(const ::std::string& value) { 632 inline void Api::set_version(const ::std::string& value) {
554 633
555 version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited (), value); 634 version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited (), value);
556 // @@protoc_insertion_point(field_set:google.protobuf.Api.version) 635 // @@protoc_insertion_point(field_set:google.protobuf.Api.version)
557 } 636 }
637 #if LANG_CXX11
638 inline void Api::set_version(::std::string&& value) {
639
640 version_.SetNoArena(
641 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va lue));
642 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Api.version)
643 }
644 #endif
558 inline void Api::set_version(const char* value) { 645 inline void Api::set_version(const char* value) {
559 646
560 version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited (), ::std::string(value)); 647 version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited (), ::std::string(value));
561 // @@protoc_insertion_point(field_set_char:google.protobuf.Api.version) 648 // @@protoc_insertion_point(field_set_char:google.protobuf.Api.version)
562 } 649 }
563 inline void Api::set_version(const char* value, size_t size) { 650 inline void Api::set_version(const char* value, size_t size) {
564 651
565 version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited (), 652 version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited (),
566 ::std::string(reinterpret_cast<const char*>(value), size)); 653 ::std::string(reinterpret_cast<const char*>(value), size));
567 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Api.version) 654 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Api.version)
(...skipping 11 matching lines...) Expand all
579 inline void Api::set_allocated_version(::std::string* version) { 666 inline void Api::set_allocated_version(::std::string* version) {
580 if (version != NULL) { 667 if (version != NULL) {
581 668
582 } else { 669 } else {
583 670
584 } 671 }
585 version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), version); 672 version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), version);
586 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Api.version) 673 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Api.version)
587 } 674 }
588 675
589 // optional .google.protobuf.SourceContext source_context = 5; 676 // .google.protobuf.SourceContext source_context = 5;
590 inline bool Api::has_source_context() const { 677 inline bool Api::has_source_context() const {
591 return !_is_default_instance_ && source_context_ != NULL; 678 return this != internal_default_instance() && source_context_ != NULL;
592 } 679 }
593 inline void Api::clear_source_context() { 680 inline void Api::clear_source_context() {
594 if (GetArenaNoVirtual() == NULL && source_context_ != NULL) delete source_cont ext_; 681 if (GetArenaNoVirtual() == NULL && source_context_ != NULL) delete source_cont ext_;
595 source_context_ = NULL; 682 source_context_ = NULL;
596 } 683 }
597 inline const ::google::protobuf::SourceContext& Api::source_context() const { 684 inline const ::google::protobuf::SourceContext& Api::source_context() const {
598 // @@protoc_insertion_point(field_get:google.protobuf.Api.source_context) 685 // @@protoc_insertion_point(field_get:google.protobuf.Api.source_context)
599 return source_context_ != NULL ? *source_context_ : *default_instance_->source _context_; 686 return source_context_ != NULL ? *source_context_
687 : *::google::protobuf::SourceContext::internal_default_ instance();
600 } 688 }
601 inline ::google::protobuf::SourceContext* Api::mutable_source_context() { 689 inline ::google::protobuf::SourceContext* Api::mutable_source_context() {
602 690
603 if (source_context_ == NULL) { 691 if (source_context_ == NULL) {
604 source_context_ = new ::google::protobuf::SourceContext; 692 source_context_ = new ::google::protobuf::SourceContext;
605 } 693 }
606 // @@protoc_insertion_point(field_mutable:google.protobuf.Api.source_context) 694 // @@protoc_insertion_point(field_mutable:google.protobuf.Api.source_context)
607 return source_context_; 695 return source_context_;
608 } 696 }
609 inline ::google::protobuf::SourceContext* Api::release_source_context() { 697 inline ::google::protobuf::SourceContext* Api::release_source_context() {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 Api::mutable_mixins() { 735 Api::mutable_mixins() {
648 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Api.mixins) 736 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Api.mixins)
649 return &mixins_; 737 return &mixins_;
650 } 738 }
651 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Mixin >& 739 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Mixin >&
652 Api::mixins() const { 740 Api::mixins() const {
653 // @@protoc_insertion_point(field_list:google.protobuf.Api.mixins) 741 // @@protoc_insertion_point(field_list:google.protobuf.Api.mixins)
654 return mixins_; 742 return mixins_;
655 } 743 }
656 744
657 // optional .google.protobuf.Syntax syntax = 7; 745 // .google.protobuf.Syntax syntax = 7;
658 inline void Api::clear_syntax() { 746 inline void Api::clear_syntax() {
659 syntax_ = 0; 747 syntax_ = 0;
660 } 748 }
661 inline ::google::protobuf::Syntax Api::syntax() const { 749 inline ::google::protobuf::Syntax Api::syntax() const {
662 // @@protoc_insertion_point(field_get:google.protobuf.Api.syntax) 750 // @@protoc_insertion_point(field_get:google.protobuf.Api.syntax)
663 return static_cast< ::google::protobuf::Syntax >(syntax_); 751 return static_cast< ::google::protobuf::Syntax >(syntax_);
664 } 752 }
665 inline void Api::set_syntax(::google::protobuf::Syntax value) { 753 inline void Api::set_syntax(::google::protobuf::Syntax value) {
666 754
667 syntax_ = value; 755 syntax_ = value;
668 // @@protoc_insertion_point(field_set:google.protobuf.Api.syntax) 756 // @@protoc_insertion_point(field_set:google.protobuf.Api.syntax)
669 } 757 }
670 758
671 // ------------------------------------------------------------------- 759 // -------------------------------------------------------------------
672 760
673 // Method 761 // Method
674 762
675 // optional string name = 1; 763 // string name = 1;
676 inline void Method::clear_name() { 764 inline void Method::clear_name() {
677 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 765 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
678 } 766 }
679 inline const ::std::string& Method::name() const { 767 inline const ::std::string& Method::name() const {
680 // @@protoc_insertion_point(field_get:google.protobuf.Method.name) 768 // @@protoc_insertion_point(field_get:google.protobuf.Method.name)
681 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited()); 769 return name_.GetNoArena();
682 } 770 }
683 inline void Method::set_name(const ::std::string& value) { 771 inline void Method::set_name(const ::std::string& value) {
684 772
685 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 773 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
686 // @@protoc_insertion_point(field_set:google.protobuf.Method.name) 774 // @@protoc_insertion_point(field_set:google.protobuf.Method.name)
687 } 775 }
776 #if LANG_CXX11
777 inline void Method::set_name(::std::string&& value) {
778
779 name_.SetNoArena(
780 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va lue));
781 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Method.name)
782 }
783 #endif
688 inline void Method::set_name(const char* value) { 784 inline void Method::set_name(const char* value) {
689 785
690 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 786 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
691 // @@protoc_insertion_point(field_set_char:google.protobuf.Method.name) 787 // @@protoc_insertion_point(field_set_char:google.protobuf.Method.name)
692 } 788 }
693 inline void Method::set_name(const char* value, size_t size) { 789 inline void Method::set_name(const char* value, size_t size) {
694 790
695 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 791 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
696 ::std::string(reinterpret_cast<const char*>(value), size)); 792 ::std::string(reinterpret_cast<const char*>(value), size));
697 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Method.name) 793 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Method.name)
(...skipping 11 matching lines...) Expand all
709 inline void Method::set_allocated_name(::std::string* name) { 805 inline void Method::set_allocated_name(::std::string* name) {
710 if (name != NULL) { 806 if (name != NULL) {
711 807
712 } else { 808 } else {
713 809
714 } 810 }
715 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name); 811 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name);
716 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.name) 812 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.name)
717 } 813 }
718 814
719 // optional string request_type_url = 2; 815 // string request_type_url = 2;
720 inline void Method::clear_request_type_url() { 816 inline void Method::clear_request_type_url() {
721 request_type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyS tringAlreadyInited()); 817 request_type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyS tringAlreadyInited());
722 } 818 }
723 inline const ::std::string& Method::request_type_url() const { 819 inline const ::std::string& Method::request_type_url() const {
724 // @@protoc_insertion_point(field_get:google.protobuf.Method.request_type_url) 820 // @@protoc_insertion_point(field_get:google.protobuf.Method.request_type_url)
725 return request_type_url_.GetNoArena(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited()); 821 return request_type_url_.GetNoArena();
726 } 822 }
727 inline void Method::set_request_type_url(const ::std::string& value) { 823 inline void Method::set_request_type_url(const ::std::string& value) {
728 824
729 request_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), value); 825 request_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), value);
730 // @@protoc_insertion_point(field_set:google.protobuf.Method.request_type_url) 826 // @@protoc_insertion_point(field_set:google.protobuf.Method.request_type_url)
731 } 827 }
828 #if LANG_CXX11
829 inline void Method::set_request_type_url(::std::string&& value) {
830
831 request_type_url_.SetNoArena(
832 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va lue));
833 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Method.request_ty pe_url)
834 }
835 #endif
732 inline void Method::set_request_type_url(const char* value) { 836 inline void Method::set_request_type_url(const char* value) {
733 837
734 request_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), ::std::string(value)); 838 request_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), ::std::string(value));
735 // @@protoc_insertion_point(field_set_char:google.protobuf.Method.request_type _url) 839 // @@protoc_insertion_point(field_set_char:google.protobuf.Method.request_type _url)
736 } 840 }
737 inline void Method::set_request_type_url(const char* value, size_t size) { 841 inline void Method::set_request_type_url(const char* value, size_t size) {
738 842
739 request_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), 843 request_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(),
740 ::std::string(reinterpret_cast<const char*>(value), size)); 844 ::std::string(reinterpret_cast<const char*>(value), size));
741 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Method.request_t ype_url) 845 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Method.request_t ype_url)
(...skipping 11 matching lines...) Expand all
753 inline void Method::set_allocated_request_type_url(::std::string* request_type_u rl) { 857 inline void Method::set_allocated_request_type_url(::std::string* request_type_u rl) {
754 if (request_type_url != NULL) { 858 if (request_type_url != NULL) {
755 859
756 } else { 860 } else {
757 861
758 } 862 }
759 request_type_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyS tringAlreadyInited(), request_type_url); 863 request_type_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyS tringAlreadyInited(), request_type_url);
760 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.request _type_url) 864 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.request _type_url)
761 } 865 }
762 866
763 // optional bool request_streaming = 3; 867 // bool request_streaming = 3;
764 inline void Method::clear_request_streaming() { 868 inline void Method::clear_request_streaming() {
765 request_streaming_ = false; 869 request_streaming_ = false;
766 } 870 }
767 inline bool Method::request_streaming() const { 871 inline bool Method::request_streaming() const {
768 // @@protoc_insertion_point(field_get:google.protobuf.Method.request_streaming ) 872 // @@protoc_insertion_point(field_get:google.protobuf.Method.request_streaming )
769 return request_streaming_; 873 return request_streaming_;
770 } 874 }
771 inline void Method::set_request_streaming(bool value) { 875 inline void Method::set_request_streaming(bool value) {
772 876
773 request_streaming_ = value; 877 request_streaming_ = value;
774 // @@protoc_insertion_point(field_set:google.protobuf.Method.request_streaming ) 878 // @@protoc_insertion_point(field_set:google.protobuf.Method.request_streaming )
775 } 879 }
776 880
777 // optional string response_type_url = 4; 881 // string response_type_url = 4;
778 inline void Method::clear_response_type_url() { 882 inline void Method::clear_response_type_url() {
779 response_type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited()); 883 response_type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited());
780 } 884 }
781 inline const ::std::string& Method::response_type_url() const { 885 inline const ::std::string& Method::response_type_url() const {
782 // @@protoc_insertion_point(field_get:google.protobuf.Method.response_type_url ) 886 // @@protoc_insertion_point(field_get:google.protobuf.Method.response_type_url )
783 return response_type_url_.GetNoArena(&::google::protobuf::internal::GetEmptySt ringAlreadyInited()); 887 return response_type_url_.GetNoArena();
784 } 888 }
785 inline void Method::set_response_type_url(const ::std::string& value) { 889 inline void Method::set_response_type_url(const ::std::string& value) {
786 890
787 response_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), value); 891 response_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), value);
788 // @@protoc_insertion_point(field_set:google.protobuf.Method.response_type_url ) 892 // @@protoc_insertion_point(field_set:google.protobuf.Method.response_type_url )
789 } 893 }
894 #if LANG_CXX11
895 inline void Method::set_response_type_url(::std::string&& value) {
896
897 response_type_url_.SetNoArena(
898 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va lue));
899 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Method.response_t ype_url)
900 }
901 #endif
790 inline void Method::set_response_type_url(const char* value) { 902 inline void Method::set_response_type_url(const char* value) {
791 903
792 response_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), ::std::string(value)); 904 response_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), ::std::string(value));
793 // @@protoc_insertion_point(field_set_char:google.protobuf.Method.response_typ e_url) 905 // @@protoc_insertion_point(field_set_char:google.protobuf.Method.response_typ e_url)
794 } 906 }
795 inline void Method::set_response_type_url(const char* value, size_t size) { 907 inline void Method::set_response_type_url(const char* value, size_t size) {
796 908
797 response_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), 909 response_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(),
798 ::std::string(reinterpret_cast<const char*>(value), size)); 910 ::std::string(reinterpret_cast<const char*>(value), size));
799 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Method.response_ type_url) 911 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Method.response_ type_url)
(...skipping 11 matching lines...) Expand all
811 inline void Method::set_allocated_response_type_url(::std::string* response_type _url) { 923 inline void Method::set_allocated_response_type_url(::std::string* response_type _url) {
812 if (response_type_url != NULL) { 924 if (response_type_url != NULL) {
813 925
814 } else { 926 } else {
815 927
816 } 928 }
817 response_type_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited(), response_type_url); 929 response_type_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited(), response_type_url);
818 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.respons e_type_url) 930 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.respons e_type_url)
819 } 931 }
820 932
821 // optional bool response_streaming = 5; 933 // bool response_streaming = 5;
822 inline void Method::clear_response_streaming() { 934 inline void Method::clear_response_streaming() {
823 response_streaming_ = false; 935 response_streaming_ = false;
824 } 936 }
825 inline bool Method::response_streaming() const { 937 inline bool Method::response_streaming() const {
826 // @@protoc_insertion_point(field_get:google.protobuf.Method.response_streamin g) 938 // @@protoc_insertion_point(field_get:google.protobuf.Method.response_streamin g)
827 return response_streaming_; 939 return response_streaming_;
828 } 940 }
829 inline void Method::set_response_streaming(bool value) { 941 inline void Method::set_response_streaming(bool value) {
830 942
831 response_streaming_ = value; 943 response_streaming_ = value;
(...skipping 23 matching lines...) Expand all
855 Method::mutable_options() { 967 Method::mutable_options() {
856 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Method.options) 968 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Method.options)
857 return &options_; 969 return &options_;
858 } 970 }
859 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >& 971 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
860 Method::options() const { 972 Method::options() const {
861 // @@protoc_insertion_point(field_list:google.protobuf.Method.options) 973 // @@protoc_insertion_point(field_list:google.protobuf.Method.options)
862 return options_; 974 return options_;
863 } 975 }
864 976
865 // optional .google.protobuf.Syntax syntax = 7; 977 // .google.protobuf.Syntax syntax = 7;
866 inline void Method::clear_syntax() { 978 inline void Method::clear_syntax() {
867 syntax_ = 0; 979 syntax_ = 0;
868 } 980 }
869 inline ::google::protobuf::Syntax Method::syntax() const { 981 inline ::google::protobuf::Syntax Method::syntax() const {
870 // @@protoc_insertion_point(field_get:google.protobuf.Method.syntax) 982 // @@protoc_insertion_point(field_get:google.protobuf.Method.syntax)
871 return static_cast< ::google::protobuf::Syntax >(syntax_); 983 return static_cast< ::google::protobuf::Syntax >(syntax_);
872 } 984 }
873 inline void Method::set_syntax(::google::protobuf::Syntax value) { 985 inline void Method::set_syntax(::google::protobuf::Syntax value) {
874 986
875 syntax_ = value; 987 syntax_ = value;
876 // @@protoc_insertion_point(field_set:google.protobuf.Method.syntax) 988 // @@protoc_insertion_point(field_set:google.protobuf.Method.syntax)
877 } 989 }
878 990
879 // ------------------------------------------------------------------- 991 // -------------------------------------------------------------------
880 992
881 // Mixin 993 // Mixin
882 994
883 // optional string name = 1; 995 // string name = 1;
884 inline void Mixin::clear_name() { 996 inline void Mixin::clear_name() {
885 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 997 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
886 } 998 }
887 inline const ::std::string& Mixin::name() const { 999 inline const ::std::string& Mixin::name() const {
888 // @@protoc_insertion_point(field_get:google.protobuf.Mixin.name) 1000 // @@protoc_insertion_point(field_get:google.protobuf.Mixin.name)
889 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited()); 1001 return name_.GetNoArena();
890 } 1002 }
891 inline void Mixin::set_name(const ::std::string& value) { 1003 inline void Mixin::set_name(const ::std::string& value) {
892 1004
893 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 1005 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
894 // @@protoc_insertion_point(field_set:google.protobuf.Mixin.name) 1006 // @@protoc_insertion_point(field_set:google.protobuf.Mixin.name)
895 } 1007 }
1008 #if LANG_CXX11
1009 inline void Mixin::set_name(::std::string&& value) {
1010
1011 name_.SetNoArena(
1012 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va lue));
1013 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Mixin.name)
1014 }
1015 #endif
896 inline void Mixin::set_name(const char* value) { 1016 inline void Mixin::set_name(const char* value) {
897 1017
898 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 1018 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
899 // @@protoc_insertion_point(field_set_char:google.protobuf.Mixin.name) 1019 // @@protoc_insertion_point(field_set_char:google.protobuf.Mixin.name)
900 } 1020 }
901 inline void Mixin::set_name(const char* value, size_t size) { 1021 inline void Mixin::set_name(const char* value, size_t size) {
902 1022
903 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 1023 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
904 ::std::string(reinterpret_cast<const char*>(value), size)); 1024 ::std::string(reinterpret_cast<const char*>(value), size));
905 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Mixin.name) 1025 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Mixin.name)
(...skipping 11 matching lines...) Expand all
917 inline void Mixin::set_allocated_name(::std::string* name) { 1037 inline void Mixin::set_allocated_name(::std::string* name) {
918 if (name != NULL) { 1038 if (name != NULL) {
919 1039
920 } else { 1040 } else {
921 1041
922 } 1042 }
923 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name); 1043 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name);
924 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Mixin.name) 1044 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Mixin.name)
925 } 1045 }
926 1046
927 // optional string root = 2; 1047 // string root = 2;
928 inline void Mixin::clear_root() { 1048 inline void Mixin::clear_root() {
929 root_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 1049 root_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
930 } 1050 }
931 inline const ::std::string& Mixin::root() const { 1051 inline const ::std::string& Mixin::root() const {
932 // @@protoc_insertion_point(field_get:google.protobuf.Mixin.root) 1052 // @@protoc_insertion_point(field_get:google.protobuf.Mixin.root)
933 return root_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited()); 1053 return root_.GetNoArena();
934 } 1054 }
935 inline void Mixin::set_root(const ::std::string& value) { 1055 inline void Mixin::set_root(const ::std::string& value) {
936 1056
937 root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 1057 root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
938 // @@protoc_insertion_point(field_set:google.protobuf.Mixin.root) 1058 // @@protoc_insertion_point(field_set:google.protobuf.Mixin.root)
939 } 1059 }
1060 #if LANG_CXX11
1061 inline void Mixin::set_root(::std::string&& value) {
1062
1063 root_.SetNoArena(
1064 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va lue));
1065 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Mixin.root)
1066 }
1067 #endif
940 inline void Mixin::set_root(const char* value) { 1068 inline void Mixin::set_root(const char* value) {
941 1069
942 root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 1070 root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
943 // @@protoc_insertion_point(field_set_char:google.protobuf.Mixin.root) 1071 // @@protoc_insertion_point(field_set_char:google.protobuf.Mixin.root)
944 } 1072 }
945 inline void Mixin::set_root(const char* value, size_t size) { 1073 inline void Mixin::set_root(const char* value, size_t size) {
946 1074
947 root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 1075 root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
948 ::std::string(reinterpret_cast<const char*>(value), size)); 1076 ::std::string(reinterpret_cast<const char*>(value), size));
949 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Mixin.root) 1077 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Mixin.root)
(...skipping 19 matching lines...) Expand all
969 } 1097 }
970 1098
971 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 1099 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
972 // ------------------------------------------------------------------- 1100 // -------------------------------------------------------------------
973 1101
974 // ------------------------------------------------------------------- 1102 // -------------------------------------------------------------------
975 1103
976 1104
977 // @@protoc_insertion_point(namespace_scope) 1105 // @@protoc_insertion_point(namespace_scope)
978 1106
1107
979 } // namespace protobuf 1108 } // namespace protobuf
980 } // namespace google 1109 } // namespace google
981 1110
982 // @@protoc_insertion_point(global_scope) 1111 // @@protoc_insertion_point(global_scope)
983 1112
984 #endif // PROTOBUF_google_2fprotobuf_2fapi_2eproto__INCLUDED 1113 #endif // PROTOBUF_google_2fprotobuf_2fapi_2eproto__INCLUDED
OLDNEW
« no previous file with comments | « third_party/protobuf/src/google/protobuf/api.proto ('k') | third_party/protobuf/src/google/protobuf/api.pb.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698