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