| 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/compiler/plugin.proto | 2 // source: google/protobuf/compiler/plugin.proto |
| 3 | 3 |
| 4 #ifndef PROTOBUF_google_2fprotobuf_2fcompiler_2fplugin_2eproto__INCLUDED | 4 #ifndef PROTOBUF_google_2fprotobuf_2fcompiler_2fplugin_2eproto__INCLUDED |
| 5 #define PROTOBUF_google_2fprotobuf_2fcompiler_2fplugin_2eproto__INCLUDED | 5 #define PROTOBUF_google_2fprotobuf_2fcompiler_2fplugin_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/descriptor.pb.h> | 30 #include <google/protobuf/descriptor.pb.h> |
| 31 // @@protoc_insertion_point(includes) | 31 // @@protoc_insertion_point(includes) |
| 32 namespace google { | |
| 33 namespace protobuf { | |
| 34 class DescriptorProto; | |
| 35 class DescriptorProtoDefaultTypeInternal; | |
| 36 LIBPROTOC_EXPORT extern DescriptorProtoDefaultTypeInternal _DescriptorProto_defa
ult_instance_; | |
| 37 class DescriptorProto_ExtensionRange; | |
| 38 class DescriptorProto_ExtensionRangeDefaultTypeInternal; | |
| 39 LIBPROTOC_EXPORT extern DescriptorProto_ExtensionRangeDefaultTypeInternal _Descr
iptorProto_ExtensionRange_default_instance_; | |
| 40 class DescriptorProto_ReservedRange; | |
| 41 class DescriptorProto_ReservedRangeDefaultTypeInternal; | |
| 42 LIBPROTOC_EXPORT extern DescriptorProto_ReservedRangeDefaultTypeInternal _Descri
ptorProto_ReservedRange_default_instance_; | |
| 43 class EnumDescriptorProto; | |
| 44 class EnumDescriptorProtoDefaultTypeInternal; | |
| 45 LIBPROTOC_EXPORT extern EnumDescriptorProtoDefaultTypeInternal _EnumDescriptorPr
oto_default_instance_; | |
| 46 class EnumOptions; | |
| 47 class EnumOptionsDefaultTypeInternal; | |
| 48 LIBPROTOC_EXPORT extern EnumOptionsDefaultTypeInternal _EnumOptions_default_inst
ance_; | |
| 49 class EnumValueDescriptorProto; | |
| 50 class EnumValueDescriptorProtoDefaultTypeInternal; | |
| 51 LIBPROTOC_EXPORT extern EnumValueDescriptorProtoDefaultTypeInternal _EnumValueDe
scriptorProto_default_instance_; | |
| 52 class EnumValueOptions; | |
| 53 class EnumValueOptionsDefaultTypeInternal; | |
| 54 LIBPROTOC_EXPORT extern EnumValueOptionsDefaultTypeInternal _EnumValueOptions_de
fault_instance_; | |
| 55 class FieldDescriptorProto; | |
| 56 class FieldDescriptorProtoDefaultTypeInternal; | |
| 57 LIBPROTOC_EXPORT extern FieldDescriptorProtoDefaultTypeInternal _FieldDescriptor
Proto_default_instance_; | |
| 58 class FieldOptions; | |
| 59 class FieldOptionsDefaultTypeInternal; | |
| 60 LIBPROTOC_EXPORT extern FieldOptionsDefaultTypeInternal _FieldOptions_default_in
stance_; | |
| 61 class FileDescriptorProto; | |
| 62 class FileDescriptorProtoDefaultTypeInternal; | |
| 63 LIBPROTOC_EXPORT extern FileDescriptorProtoDefaultTypeInternal _FileDescriptorPr
oto_default_instance_; | |
| 64 class FileDescriptorSet; | |
| 65 class FileDescriptorSetDefaultTypeInternal; | |
| 66 LIBPROTOC_EXPORT extern FileDescriptorSetDefaultTypeInternal _FileDescriptorSet_
default_instance_; | |
| 67 class FileOptions; | |
| 68 class FileOptionsDefaultTypeInternal; | |
| 69 LIBPROTOC_EXPORT extern FileOptionsDefaultTypeInternal _FileOptions_default_inst
ance_; | |
| 70 class GeneratedCodeInfo; | |
| 71 class GeneratedCodeInfoDefaultTypeInternal; | |
| 72 LIBPROTOC_EXPORT extern GeneratedCodeInfoDefaultTypeInternal _GeneratedCodeInfo_
default_instance_; | |
| 73 class GeneratedCodeInfo_Annotation; | |
| 74 class GeneratedCodeInfo_AnnotationDefaultTypeInternal; | |
| 75 LIBPROTOC_EXPORT extern GeneratedCodeInfo_AnnotationDefaultTypeInternal _Generat
edCodeInfo_Annotation_default_instance_; | |
| 76 class MessageOptions; | |
| 77 class MessageOptionsDefaultTypeInternal; | |
| 78 LIBPROTOC_EXPORT extern MessageOptionsDefaultTypeInternal _MessageOptions_defaul
t_instance_; | |
| 79 class MethodDescriptorProto; | |
| 80 class MethodDescriptorProtoDefaultTypeInternal; | |
| 81 LIBPROTOC_EXPORT extern MethodDescriptorProtoDefaultTypeInternal _MethodDescript
orProto_default_instance_; | |
| 82 class MethodOptions; | |
| 83 class MethodOptionsDefaultTypeInternal; | |
| 84 LIBPROTOC_EXPORT extern MethodOptionsDefaultTypeInternal _MethodOptions_default_
instance_; | |
| 85 class OneofDescriptorProto; | |
| 86 class OneofDescriptorProtoDefaultTypeInternal; | |
| 87 LIBPROTOC_EXPORT extern OneofDescriptorProtoDefaultTypeInternal _OneofDescriptor
Proto_default_instance_; | |
| 88 class OneofOptions; | |
| 89 class OneofOptionsDefaultTypeInternal; | |
| 90 LIBPROTOC_EXPORT extern OneofOptionsDefaultTypeInternal _OneofOptions_default_in
stance_; | |
| 91 class ServiceDescriptorProto; | |
| 92 class ServiceDescriptorProtoDefaultTypeInternal; | |
| 93 LIBPROTOC_EXPORT extern ServiceDescriptorProtoDefaultTypeInternal _ServiceDescri
ptorProto_default_instance_; | |
| 94 class ServiceOptions; | |
| 95 class ServiceOptionsDefaultTypeInternal; | |
| 96 LIBPROTOC_EXPORT extern ServiceOptionsDefaultTypeInternal _ServiceOptions_defaul
t_instance_; | |
| 97 class SourceCodeInfo; | |
| 98 class SourceCodeInfoDefaultTypeInternal; | |
| 99 LIBPROTOC_EXPORT extern SourceCodeInfoDefaultTypeInternal _SourceCodeInfo_defaul
t_instance_; | |
| 100 class SourceCodeInfo_Location; | |
| 101 class SourceCodeInfo_LocationDefaultTypeInternal; | |
| 102 LIBPROTOC_EXPORT extern SourceCodeInfo_LocationDefaultTypeInternal _SourceCodeIn
fo_Location_default_instance_; | |
| 103 class UninterpretedOption; | |
| 104 class UninterpretedOptionDefaultTypeInternal; | |
| 105 LIBPROTOC_EXPORT extern UninterpretedOptionDefaultTypeInternal _UninterpretedOpt
ion_default_instance_; | |
| 106 class UninterpretedOption_NamePart; | |
| 107 class UninterpretedOption_NamePartDefaultTypeInternal; | |
| 108 LIBPROTOC_EXPORT extern UninterpretedOption_NamePartDefaultTypeInternal _Uninter
pretedOption_NamePart_default_instance_; | |
| 109 namespace compiler { | |
| 110 class CodeGeneratorRequest; | |
| 111 class CodeGeneratorRequestDefaultTypeInternal; | |
| 112 LIBPROTOC_EXPORT extern CodeGeneratorRequestDefaultTypeInternal _CodeGeneratorRe
quest_default_instance_; | |
| 113 class CodeGeneratorResponse; | |
| 114 class CodeGeneratorResponseDefaultTypeInternal; | |
| 115 LIBPROTOC_EXPORT extern CodeGeneratorResponseDefaultTypeInternal _CodeGeneratorR
esponse_default_instance_; | |
| 116 class CodeGeneratorResponse_File; | |
| 117 class CodeGeneratorResponse_FileDefaultTypeInternal; | |
| 118 LIBPROTOC_EXPORT extern CodeGeneratorResponse_FileDefaultTypeInternal _CodeGener
atorResponse_File_default_instance_; | |
| 119 class Version; | |
| 120 class VersionDefaultTypeInternal; | |
| 121 LIBPROTOC_EXPORT extern VersionDefaultTypeInternal _Version_default_instance_; | |
| 122 } // namespace compiler | |
| 123 } // namespace protobuf | |
| 124 } // namespace google | |
| 125 | 32 |
| 126 namespace google { | 33 namespace google { |
| 127 namespace protobuf { | 34 namespace protobuf { |
| 128 namespace compiler { | 35 namespace compiler { |
| 129 | 36 |
| 130 // Internal implementation detail -- do not call these. | 37 // Internal implementation detail -- do not call these. |
| 131 void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2ep
roto(); | 38 void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2ep
roto(); |
| 132 void LIBPROTOC_EXPORT protobuf_InitDefaults_google_2fprotobuf_2fcompiler_2fplugi
n_2eproto(); | 39 void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto(); |
| 40 void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eproto(); |
| 41 |
| 42 class CodeGeneratorRequest; |
| 43 class CodeGeneratorResponse; |
| 44 class CodeGeneratorResponse_File; |
| 133 | 45 |
| 134 // =================================================================== | 46 // =================================================================== |
| 135 | 47 |
| 136 class LIBPROTOC_EXPORT Version : public ::google::protobuf::Message /* @@protoc_
insertion_point(class_definition:google.protobuf.compiler.Version) */ { | 48 class LIBPROTOC_EXPORT CodeGeneratorRequest : public ::google::protobuf::Message
{ |
| 137 public: | |
| 138 Version(); | |
| 139 virtual ~Version(); | |
| 140 | |
| 141 Version(const Version& from); | |
| 142 | |
| 143 inline Version& operator=(const Version& from) { | |
| 144 CopyFrom(from); | |
| 145 return *this; | |
| 146 } | |
| 147 | |
| 148 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { | |
| 149 return _internal_metadata_.unknown_fields(); | |
| 150 } | |
| 151 | |
| 152 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { | |
| 153 return _internal_metadata_.mutable_unknown_fields(); | |
| 154 } | |
| 155 | |
| 156 static const ::google::protobuf::Descriptor* descriptor(); | |
| 157 static const Version& default_instance(); | |
| 158 | |
| 159 static inline const Version* internal_default_instance() { | |
| 160 return reinterpret_cast<const Version*>( | |
| 161 &_Version_default_instance_); | |
| 162 } | |
| 163 | |
| 164 void Swap(Version* other); | |
| 165 | |
| 166 // implements Message ---------------------------------------------- | |
| 167 | |
| 168 inline Version* New() const PROTOBUF_FINAL { return New(NULL); } | |
| 169 | |
| 170 Version* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; | |
| 171 void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; | |
| 172 void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; | |
| 173 void CopyFrom(const Version& from); | |
| 174 void MergeFrom(const Version& from); | |
| 175 void Clear() PROTOBUF_FINAL; | |
| 176 bool IsInitialized() const PROTOBUF_FINAL; | |
| 177 | |
| 178 size_t ByteSizeLong() const PROTOBUF_FINAL; | |
| 179 bool MergePartialFromCodedStream( | |
| 180 ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; | |
| 181 void SerializeWithCachedSizes( | |
| 182 ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; | |
| 183 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( | |
| 184 bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINA
L; | |
| 185 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf:
:uint8* output) | |
| 186 const PROTOBUF_FINAL { | |
| 187 return InternalSerializeWithCachedSizesToArray(false, output); | |
| 188 } | |
| 189 int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } | |
| 190 private: | |
| 191 void SharedCtor(); | |
| 192 void SharedDtor(); | |
| 193 void SetCachedSize(int size) const PROTOBUF_FINAL; | |
| 194 void InternalSwap(Version* other); | |
| 195 private: | |
| 196 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { | |
| 197 return NULL; | |
| 198 } | |
| 199 inline void* MaybeArenaPtr() const { | |
| 200 return NULL; | |
| 201 } | |
| 202 public: | |
| 203 | |
| 204 ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; | |
| 205 | |
| 206 // nested types ---------------------------------------------------- | |
| 207 | |
| 208 // accessors ------------------------------------------------------- | |
| 209 | |
| 210 // optional int32 major = 1; | |
| 211 bool has_major() const; | |
| 212 void clear_major(); | |
| 213 static const int kMajorFieldNumber = 1; | |
| 214 ::google::protobuf::int32 major() const; | |
| 215 void set_major(::google::protobuf::int32 value); | |
| 216 | |
| 217 // optional int32 minor = 2; | |
| 218 bool has_minor() const; | |
| 219 void clear_minor(); | |
| 220 static const int kMinorFieldNumber = 2; | |
| 221 ::google::protobuf::int32 minor() const; | |
| 222 void set_minor(::google::protobuf::int32 value); | |
| 223 | |
| 224 // optional int32 patch = 3; | |
| 225 bool has_patch() const; | |
| 226 void clear_patch(); | |
| 227 static const int kPatchFieldNumber = 3; | |
| 228 ::google::protobuf::int32 patch() const; | |
| 229 void set_patch(::google::protobuf::int32 value); | |
| 230 | |
| 231 // optional string suffix = 4; | |
| 232 bool has_suffix() const; | |
| 233 void clear_suffix(); | |
| 234 static const int kSuffixFieldNumber = 4; | |
| 235 const ::std::string& suffix() const; | |
| 236 void set_suffix(const ::std::string& value); | |
| 237 #if LANG_CXX11 | |
| 238 void set_suffix(::std::string&& value); | |
| 239 #endif | |
| 240 void set_suffix(const char* value); | |
| 241 void set_suffix(const char* value, size_t size); | |
| 242 ::std::string* mutable_suffix(); | |
| 243 ::std::string* release_suffix(); | |
| 244 void set_allocated_suffix(::std::string* suffix); | |
| 245 | |
| 246 // @@protoc_insertion_point(class_scope:google.protobuf.compiler.Version) | |
| 247 private: | |
| 248 void set_has_major(); | |
| 249 void clear_has_major(); | |
| 250 void set_has_minor(); | |
| 251 void clear_has_minor(); | |
| 252 void set_has_patch(); | |
| 253 void clear_has_patch(); | |
| 254 void set_has_suffix(); | |
| 255 void clear_has_suffix(); | |
| 256 | |
| 257 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; | |
| 258 ::google::protobuf::internal::HasBits<1> _has_bits_; | |
| 259 mutable int _cached_size_; | |
| 260 ::google::protobuf::internal::ArenaStringPtr suffix_; | |
| 261 ::google::protobuf::int32 major_; | |
| 262 ::google::protobuf::int32 minor_; | |
| 263 ::google::protobuf::int32 patch_; | |
| 264 friend void LIBPROTOC_EXPORT protobuf_InitDefaults_google_2fprotobuf_2fcompile
r_2fplugin_2eproto_impl(); | |
| 265 friend void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fp
lugin_2eproto_impl(); | |
| 266 friend const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2f
compiler_2fplugin_2eproto(); | |
| 267 friend void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eprot
o(); | |
| 268 | |
| 269 }; | |
| 270 // ------------------------------------------------------------------- | |
| 271 | |
| 272 class LIBPROTOC_EXPORT CodeGeneratorRequest : public ::google::protobuf::Message
/* @@protoc_insertion_point(class_definition:google.protobuf.compiler.CodeGener
atorRequest) */ { | |
| 273 public: | 49 public: |
| 274 CodeGeneratorRequest(); | 50 CodeGeneratorRequest(); |
| 275 virtual ~CodeGeneratorRequest(); | 51 virtual ~CodeGeneratorRequest(); |
| 276 | 52 |
| 277 CodeGeneratorRequest(const CodeGeneratorRequest& from); | 53 CodeGeneratorRequest(const CodeGeneratorRequest& from); |
| 278 | 54 |
| 279 inline CodeGeneratorRequest& operator=(const CodeGeneratorRequest& from) { | 55 inline CodeGeneratorRequest& operator=(const CodeGeneratorRequest& from) { |
| 280 CopyFrom(from); | 56 CopyFrom(from); |
| 281 return *this; | 57 return *this; |
| 282 } | 58 } |
| 283 | 59 |
| 284 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { | 60 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
| 285 return _internal_metadata_.unknown_fields(); | 61 return _internal_metadata_.unknown_fields(); |
| 286 } | 62 } |
| 287 | 63 |
| 288 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { | 64 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
| 289 return _internal_metadata_.mutable_unknown_fields(); | 65 return _internal_metadata_.mutable_unknown_fields(); |
| 290 } | 66 } |
| 291 | 67 |
| 292 static const ::google::protobuf::Descriptor* descriptor(); | 68 static const ::google::protobuf::Descriptor* descriptor(); |
| 293 static const CodeGeneratorRequest& default_instance(); | 69 static const CodeGeneratorRequest& default_instance(); |
| 294 | 70 |
| 295 static inline const CodeGeneratorRequest* internal_default_instance() { | |
| 296 return reinterpret_cast<const CodeGeneratorRequest*>( | |
| 297 &_CodeGeneratorRequest_default_instance_); | |
| 298 } | |
| 299 | |
| 300 void Swap(CodeGeneratorRequest* other); | 71 void Swap(CodeGeneratorRequest* other); |
| 301 | 72 |
| 302 // implements Message ---------------------------------------------- | 73 // implements Message ---------------------------------------------- |
| 303 | 74 |
| 304 inline CodeGeneratorRequest* New() const PROTOBUF_FINAL { return New(NULL); } | 75 inline CodeGeneratorRequest* New() const { return New(NULL); } |
| 305 | 76 |
| 306 CodeGeneratorRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FIN
AL; | 77 CodeGeneratorRequest* New(::google::protobuf::Arena* arena) const; |
| 307 void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; | 78 void CopyFrom(const ::google::protobuf::Message& from); |
| 308 void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; | 79 void MergeFrom(const ::google::protobuf::Message& from); |
| 309 void CopyFrom(const CodeGeneratorRequest& from); | 80 void CopyFrom(const CodeGeneratorRequest& from); |
| 310 void MergeFrom(const CodeGeneratorRequest& from); | 81 void MergeFrom(const CodeGeneratorRequest& from); |
| 311 void Clear() PROTOBUF_FINAL; | 82 void Clear(); |
| 312 bool IsInitialized() const PROTOBUF_FINAL; | 83 bool IsInitialized() const; |
| 313 | 84 |
| 314 size_t ByteSizeLong() const PROTOBUF_FINAL; | 85 int ByteSize() const; |
| 315 bool MergePartialFromCodedStream( | 86 bool MergePartialFromCodedStream( |
| 316 ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; | 87 ::google::protobuf::io::CodedInputStream* input); |
| 317 void SerializeWithCachedSizes( | 88 void SerializeWithCachedSizes( |
| 318 ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; | 89 ::google::protobuf::io::CodedOutputStream* output) const; |
| 319 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( | 90 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf:
:uint8* output) const; |
| 320 bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINA
L; | 91 int GetCachedSize() const { return _cached_size_; } |
| 321 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf:
:uint8* output) | |
| 322 const PROTOBUF_FINAL { | |
| 323 return InternalSerializeWithCachedSizesToArray(false, output); | |
| 324 } | |
| 325 int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } | |
| 326 private: | 92 private: |
| 327 void SharedCtor(); | 93 void SharedCtor(); |
| 328 void SharedDtor(); | 94 void SharedDtor(); |
| 329 void SetCachedSize(int size) const PROTOBUF_FINAL; | 95 void SetCachedSize(int size) const; |
| 330 void InternalSwap(CodeGeneratorRequest* other); | 96 void InternalSwap(CodeGeneratorRequest* other); |
| 331 private: | 97 private: |
| 332 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { | 98 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 333 return NULL; | 99 return _internal_metadata_.arena(); |
| 334 } | 100 } |
| 335 inline void* MaybeArenaPtr() const { | 101 inline void* MaybeArenaPtr() const { |
| 336 return NULL; | 102 return _internal_metadata_.raw_arena_ptr(); |
| 337 } | 103 } |
| 338 public: | 104 public: |
| 339 | 105 |
| 340 ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; | 106 ::google::protobuf::Metadata GetMetadata() const; |
| 341 | 107 |
| 342 // nested types ---------------------------------------------------- | 108 // nested types ---------------------------------------------------- |
| 343 | 109 |
| 344 // accessors ------------------------------------------------------- | 110 // accessors ------------------------------------------------------- |
| 345 | 111 |
| 346 // repeated string file_to_generate = 1; | 112 // repeated string file_to_generate = 1; |
| 347 int file_to_generate_size() const; | 113 int file_to_generate_size() const; |
| 348 void clear_file_to_generate(); | 114 void clear_file_to_generate(); |
| 349 static const int kFileToGenerateFieldNumber = 1; | 115 static const int kFileToGenerateFieldNumber = 1; |
| 350 const ::std::string& file_to_generate(int index) const; | 116 const ::std::string& file_to_generate(int index) const; |
| 351 ::std::string* mutable_file_to_generate(int index); | 117 ::std::string* mutable_file_to_generate(int index); |
| 352 void set_file_to_generate(int index, const ::std::string& value); | 118 void set_file_to_generate(int index, const ::std::string& value); |
| 353 void set_file_to_generate(int index, const char* value); | 119 void set_file_to_generate(int index, const char* value); |
| 354 void set_file_to_generate(int index, const char* value, size_t size); | 120 void set_file_to_generate(int index, const char* value, size_t size); |
| 355 ::std::string* add_file_to_generate(); | 121 ::std::string* add_file_to_generate(); |
| 356 void add_file_to_generate(const ::std::string& value); | 122 void add_file_to_generate(const ::std::string& value); |
| 357 void add_file_to_generate(const char* value); | 123 void add_file_to_generate(const char* value); |
| 358 void add_file_to_generate(const char* value, size_t size); | 124 void add_file_to_generate(const char* value, size_t size); |
| 359 const ::google::protobuf::RepeatedPtrField< ::std::string>& file_to_generate()
const; | 125 const ::google::protobuf::RepeatedPtrField< ::std::string>& file_to_generate()
const; |
| 360 ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_file_to_generate
(); | 126 ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_file_to_generate
(); |
| 361 | 127 |
| 362 // optional string parameter = 2; | 128 // optional string parameter = 2; |
| 363 bool has_parameter() const; | 129 bool has_parameter() const; |
| 364 void clear_parameter(); | 130 void clear_parameter(); |
| 365 static const int kParameterFieldNumber = 2; | 131 static const int kParameterFieldNumber = 2; |
| 366 const ::std::string& parameter() const; | 132 const ::std::string& parameter() const; |
| 367 void set_parameter(const ::std::string& value); | 133 void set_parameter(const ::std::string& value); |
| 368 #if LANG_CXX11 | |
| 369 void set_parameter(::std::string&& value); | |
| 370 #endif | |
| 371 void set_parameter(const char* value); | 134 void set_parameter(const char* value); |
| 372 void set_parameter(const char* value, size_t size); | 135 void set_parameter(const char* value, size_t size); |
| 373 ::std::string* mutable_parameter(); | 136 ::std::string* mutable_parameter(); |
| 374 ::std::string* release_parameter(); | 137 ::std::string* release_parameter(); |
| 375 void set_allocated_parameter(::std::string* parameter); | 138 void set_allocated_parameter(::std::string* parameter); |
| 376 | 139 |
| 377 // repeated .google.protobuf.FileDescriptorProto proto_file = 15; | 140 // repeated .google.protobuf.FileDescriptorProto proto_file = 15; |
| 378 int proto_file_size() const; | 141 int proto_file_size() const; |
| 379 void clear_proto_file(); | 142 void clear_proto_file(); |
| 380 static const int kProtoFileFieldNumber = 15; | 143 static const int kProtoFileFieldNumber = 15; |
| 381 const ::google::protobuf::FileDescriptorProto& proto_file(int index) const; | 144 const ::google::protobuf::FileDescriptorProto& proto_file(int index) const; |
| 382 ::google::protobuf::FileDescriptorProto* mutable_proto_file(int index); | 145 ::google::protobuf::FileDescriptorProto* mutable_proto_file(int index); |
| 383 ::google::protobuf::FileDescriptorProto* add_proto_file(); | 146 ::google::protobuf::FileDescriptorProto* add_proto_file(); |
| 384 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto
>* | 147 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto
>* |
| 385 mutable_proto_file(); | 148 mutable_proto_file(); |
| 386 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptor
Proto >& | 149 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptor
Proto >& |
| 387 proto_file() const; | 150 proto_file() const; |
| 388 | 151 |
| 389 // optional .google.protobuf.compiler.Version compiler_version = 3; | |
| 390 bool has_compiler_version() const; | |
| 391 void clear_compiler_version(); | |
| 392 static const int kCompilerVersionFieldNumber = 3; | |
| 393 const ::google::protobuf::compiler::Version& compiler_version() const; | |
| 394 ::google::protobuf::compiler::Version* mutable_compiler_version(); | |
| 395 ::google::protobuf::compiler::Version* release_compiler_version(); | |
| 396 void set_allocated_compiler_version(::google::protobuf::compiler::Version* com
piler_version); | |
| 397 | |
| 398 // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGenerator
Request) | 152 // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGenerator
Request) |
| 399 private: | 153 private: |
| 400 void set_has_parameter(); | 154 inline void set_has_parameter(); |
| 401 void clear_has_parameter(); | 155 inline void clear_has_parameter(); |
| 402 void set_has_compiler_version(); | |
| 403 void clear_has_compiler_version(); | |
| 404 | 156 |
| 405 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; | 157 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 406 ::google::protobuf::internal::HasBits<1> _has_bits_; | 158 ::google::protobuf::uint32 _has_bits_[1]; |
| 407 mutable int _cached_size_; | 159 mutable int _cached_size_; |
| 408 ::google::protobuf::RepeatedPtrField< ::std::string> file_to_generate_; | 160 ::google::protobuf::RepeatedPtrField< ::std::string> file_to_generate_; |
| 161 ::google::protobuf::internal::ArenaStringPtr parameter_; |
| 409 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto
> proto_file_; | 162 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto
> proto_file_; |
| 410 ::google::protobuf::internal::ArenaStringPtr parameter_; | 163 friend void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fp
lugin_2eproto(); |
| 411 ::google::protobuf::compiler::Version* compiler_version_; | 164 friend void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto(
); |
| 412 friend void LIBPROTOC_EXPORT protobuf_InitDefaults_google_2fprotobuf_2fcompile
r_2fplugin_2eproto_impl(); | |
| 413 friend void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fp
lugin_2eproto_impl(); | |
| 414 friend const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2f
compiler_2fplugin_2eproto(); | |
| 415 friend void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eprot
o(); | 165 friend void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eprot
o(); |
| 416 | 166 |
| 167 void InitAsDefaultInstance(); |
| 168 static CodeGeneratorRequest* default_instance_; |
| 417 }; | 169 }; |
| 418 // ------------------------------------------------------------------- | 170 // ------------------------------------------------------------------- |
| 419 | 171 |
| 420 class LIBPROTOC_EXPORT CodeGeneratorResponse_File : public ::google::protobuf::M
essage /* @@protoc_insertion_point(class_definition:google.protobuf.compiler.Cod
eGeneratorResponse.File) */ { | 172 class LIBPROTOC_EXPORT CodeGeneratorResponse_File : public ::google::protobuf::M
essage { |
| 421 public: | 173 public: |
| 422 CodeGeneratorResponse_File(); | 174 CodeGeneratorResponse_File(); |
| 423 virtual ~CodeGeneratorResponse_File(); | 175 virtual ~CodeGeneratorResponse_File(); |
| 424 | 176 |
| 425 CodeGeneratorResponse_File(const CodeGeneratorResponse_File& from); | 177 CodeGeneratorResponse_File(const CodeGeneratorResponse_File& from); |
| 426 | 178 |
| 427 inline CodeGeneratorResponse_File& operator=(const CodeGeneratorResponse_File&
from) { | 179 inline CodeGeneratorResponse_File& operator=(const CodeGeneratorResponse_File&
from) { |
| 428 CopyFrom(from); | 180 CopyFrom(from); |
| 429 return *this; | 181 return *this; |
| 430 } | 182 } |
| 431 | 183 |
| 432 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { | 184 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
| 433 return _internal_metadata_.unknown_fields(); | 185 return _internal_metadata_.unknown_fields(); |
| 434 } | 186 } |
| 435 | 187 |
| 436 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { | 188 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
| 437 return _internal_metadata_.mutable_unknown_fields(); | 189 return _internal_metadata_.mutable_unknown_fields(); |
| 438 } | 190 } |
| 439 | 191 |
| 440 static const ::google::protobuf::Descriptor* descriptor(); | 192 static const ::google::protobuf::Descriptor* descriptor(); |
| 441 static const CodeGeneratorResponse_File& default_instance(); | 193 static const CodeGeneratorResponse_File& default_instance(); |
| 442 | 194 |
| 443 static inline const CodeGeneratorResponse_File* internal_default_instance() { | |
| 444 return reinterpret_cast<const CodeGeneratorResponse_File*>( | |
| 445 &_CodeGeneratorResponse_File_default_instance_); | |
| 446 } | |
| 447 | |
| 448 void Swap(CodeGeneratorResponse_File* other); | 195 void Swap(CodeGeneratorResponse_File* other); |
| 449 | 196 |
| 450 // implements Message ---------------------------------------------- | 197 // implements Message ---------------------------------------------- |
| 451 | 198 |
| 452 inline CodeGeneratorResponse_File* New() const PROTOBUF_FINAL { return New(NUL
L); } | 199 inline CodeGeneratorResponse_File* New() const { return New(NULL); } |
| 453 | 200 |
| 454 CodeGeneratorResponse_File* New(::google::protobuf::Arena* arena) const PROTOB
UF_FINAL; | 201 CodeGeneratorResponse_File* New(::google::protobuf::Arena* arena) const; |
| 455 void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; | 202 void CopyFrom(const ::google::protobuf::Message& from); |
| 456 void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; | 203 void MergeFrom(const ::google::protobuf::Message& from); |
| 457 void CopyFrom(const CodeGeneratorResponse_File& from); | 204 void CopyFrom(const CodeGeneratorResponse_File& from); |
| 458 void MergeFrom(const CodeGeneratorResponse_File& from); | 205 void MergeFrom(const CodeGeneratorResponse_File& from); |
| 459 void Clear() PROTOBUF_FINAL; | 206 void Clear(); |
| 460 bool IsInitialized() const PROTOBUF_FINAL; | 207 bool IsInitialized() const; |
| 461 | 208 |
| 462 size_t ByteSizeLong() const PROTOBUF_FINAL; | 209 int ByteSize() const; |
| 463 bool MergePartialFromCodedStream( | 210 bool MergePartialFromCodedStream( |
| 464 ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; | 211 ::google::protobuf::io::CodedInputStream* input); |
| 465 void SerializeWithCachedSizes( | 212 void SerializeWithCachedSizes( |
| 466 ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; | 213 ::google::protobuf::io::CodedOutputStream* output) const; |
| 467 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( | 214 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf:
:uint8* output) const; |
| 468 bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINA
L; | 215 int GetCachedSize() const { return _cached_size_; } |
| 469 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf:
:uint8* output) | |
| 470 const PROTOBUF_FINAL { | |
| 471 return InternalSerializeWithCachedSizesToArray(false, output); | |
| 472 } | |
| 473 int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } | |
| 474 private: | 216 private: |
| 475 void SharedCtor(); | 217 void SharedCtor(); |
| 476 void SharedDtor(); | 218 void SharedDtor(); |
| 477 void SetCachedSize(int size) const PROTOBUF_FINAL; | 219 void SetCachedSize(int size) const; |
| 478 void InternalSwap(CodeGeneratorResponse_File* other); | 220 void InternalSwap(CodeGeneratorResponse_File* other); |
| 479 private: | 221 private: |
| 480 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { | 222 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 481 return NULL; | 223 return _internal_metadata_.arena(); |
| 482 } | 224 } |
| 483 inline void* MaybeArenaPtr() const { | 225 inline void* MaybeArenaPtr() const { |
| 484 return NULL; | 226 return _internal_metadata_.raw_arena_ptr(); |
| 485 } | 227 } |
| 486 public: | 228 public: |
| 487 | 229 |
| 488 ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; | 230 ::google::protobuf::Metadata GetMetadata() const; |
| 489 | 231 |
| 490 // nested types ---------------------------------------------------- | 232 // nested types ---------------------------------------------------- |
| 491 | 233 |
| 492 // accessors ------------------------------------------------------- | 234 // accessors ------------------------------------------------------- |
| 493 | 235 |
| 494 // optional string name = 1; | 236 // optional string name = 1; |
| 495 bool has_name() const; | 237 bool has_name() const; |
| 496 void clear_name(); | 238 void clear_name(); |
| 497 static const int kNameFieldNumber = 1; | 239 static const int kNameFieldNumber = 1; |
| 498 const ::std::string& name() const; | 240 const ::std::string& name() const; |
| 499 void set_name(const ::std::string& value); | 241 void set_name(const ::std::string& value); |
| 500 #if LANG_CXX11 | |
| 501 void set_name(::std::string&& value); | |
| 502 #endif | |
| 503 void set_name(const char* value); | 242 void set_name(const char* value); |
| 504 void set_name(const char* value, size_t size); | 243 void set_name(const char* value, size_t size); |
| 505 ::std::string* mutable_name(); | 244 ::std::string* mutable_name(); |
| 506 ::std::string* release_name(); | 245 ::std::string* release_name(); |
| 507 void set_allocated_name(::std::string* name); | 246 void set_allocated_name(::std::string* name); |
| 508 | 247 |
| 509 // optional string insertion_point = 2; | 248 // optional string insertion_point = 2; |
| 510 bool has_insertion_point() const; | 249 bool has_insertion_point() const; |
| 511 void clear_insertion_point(); | 250 void clear_insertion_point(); |
| 512 static const int kInsertionPointFieldNumber = 2; | 251 static const int kInsertionPointFieldNumber = 2; |
| 513 const ::std::string& insertion_point() const; | 252 const ::std::string& insertion_point() const; |
| 514 void set_insertion_point(const ::std::string& value); | 253 void set_insertion_point(const ::std::string& value); |
| 515 #if LANG_CXX11 | |
| 516 void set_insertion_point(::std::string&& value); | |
| 517 #endif | |
| 518 void set_insertion_point(const char* value); | 254 void set_insertion_point(const char* value); |
| 519 void set_insertion_point(const char* value, size_t size); | 255 void set_insertion_point(const char* value, size_t size); |
| 520 ::std::string* mutable_insertion_point(); | 256 ::std::string* mutable_insertion_point(); |
| 521 ::std::string* release_insertion_point(); | 257 ::std::string* release_insertion_point(); |
| 522 void set_allocated_insertion_point(::std::string* insertion_point); | 258 void set_allocated_insertion_point(::std::string* insertion_point); |
| 523 | 259 |
| 524 // optional string content = 15; | 260 // optional string content = 15; |
| 525 bool has_content() const; | 261 bool has_content() const; |
| 526 void clear_content(); | 262 void clear_content(); |
| 527 static const int kContentFieldNumber = 15; | 263 static const int kContentFieldNumber = 15; |
| 528 const ::std::string& content() const; | 264 const ::std::string& content() const; |
| 529 void set_content(const ::std::string& value); | 265 void set_content(const ::std::string& value); |
| 530 #if LANG_CXX11 | |
| 531 void set_content(::std::string&& value); | |
| 532 #endif | |
| 533 void set_content(const char* value); | 266 void set_content(const char* value); |
| 534 void set_content(const char* value, size_t size); | 267 void set_content(const char* value, size_t size); |
| 535 ::std::string* mutable_content(); | 268 ::std::string* mutable_content(); |
| 536 ::std::string* release_content(); | 269 ::std::string* release_content(); |
| 537 void set_allocated_content(::std::string* content); | 270 void set_allocated_content(::std::string* content); |
| 538 | 271 |
| 539 // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGenerator
Response.File) | 272 // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGenerator
Response.File) |
| 540 private: | 273 private: |
| 541 void set_has_name(); | 274 inline void set_has_name(); |
| 542 void clear_has_name(); | 275 inline void clear_has_name(); |
| 543 void set_has_insertion_point(); | 276 inline void set_has_insertion_point(); |
| 544 void clear_has_insertion_point(); | 277 inline void clear_has_insertion_point(); |
| 545 void set_has_content(); | 278 inline void set_has_content(); |
| 546 void clear_has_content(); | 279 inline void clear_has_content(); |
| 547 | 280 |
| 548 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; | 281 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 549 ::google::protobuf::internal::HasBits<1> _has_bits_; | 282 ::google::protobuf::uint32 _has_bits_[1]; |
| 550 mutable int _cached_size_; | 283 mutable int _cached_size_; |
| 551 ::google::protobuf::internal::ArenaStringPtr name_; | 284 ::google::protobuf::internal::ArenaStringPtr name_; |
| 552 ::google::protobuf::internal::ArenaStringPtr insertion_point_; | 285 ::google::protobuf::internal::ArenaStringPtr insertion_point_; |
| 553 ::google::protobuf::internal::ArenaStringPtr content_; | 286 ::google::protobuf::internal::ArenaStringPtr content_; |
| 554 friend void LIBPROTOC_EXPORT protobuf_InitDefaults_google_2fprotobuf_2fcompile
r_2fplugin_2eproto_impl(); | 287 friend void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fp
lugin_2eproto(); |
| 555 friend void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fp
lugin_2eproto_impl(); | 288 friend void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto(
); |
| 556 friend const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2f
compiler_2fplugin_2eproto(); | |
| 557 friend void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eprot
o(); | 289 friend void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eprot
o(); |
| 558 | 290 |
| 291 void InitAsDefaultInstance(); |
| 292 static CodeGeneratorResponse_File* default_instance_; |
| 559 }; | 293 }; |
| 560 // ------------------------------------------------------------------- | 294 // ------------------------------------------------------------------- |
| 561 | 295 |
| 562 class LIBPROTOC_EXPORT CodeGeneratorResponse : public ::google::protobuf::Messag
e /* @@protoc_insertion_point(class_definition:google.protobuf.compiler.CodeGene
ratorResponse) */ { | 296 class LIBPROTOC_EXPORT CodeGeneratorResponse : public ::google::protobuf::Messag
e { |
| 563 public: | 297 public: |
| 564 CodeGeneratorResponse(); | 298 CodeGeneratorResponse(); |
| 565 virtual ~CodeGeneratorResponse(); | 299 virtual ~CodeGeneratorResponse(); |
| 566 | 300 |
| 567 CodeGeneratorResponse(const CodeGeneratorResponse& from); | 301 CodeGeneratorResponse(const CodeGeneratorResponse& from); |
| 568 | 302 |
| 569 inline CodeGeneratorResponse& operator=(const CodeGeneratorResponse& from) { | 303 inline CodeGeneratorResponse& operator=(const CodeGeneratorResponse& from) { |
| 570 CopyFrom(from); | 304 CopyFrom(from); |
| 571 return *this; | 305 return *this; |
| 572 } | 306 } |
| 573 | 307 |
| 574 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { | 308 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
| 575 return _internal_metadata_.unknown_fields(); | 309 return _internal_metadata_.unknown_fields(); |
| 576 } | 310 } |
| 577 | 311 |
| 578 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { | 312 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
| 579 return _internal_metadata_.mutable_unknown_fields(); | 313 return _internal_metadata_.mutable_unknown_fields(); |
| 580 } | 314 } |
| 581 | 315 |
| 582 static const ::google::protobuf::Descriptor* descriptor(); | 316 static const ::google::protobuf::Descriptor* descriptor(); |
| 583 static const CodeGeneratorResponse& default_instance(); | 317 static const CodeGeneratorResponse& default_instance(); |
| 584 | 318 |
| 585 static inline const CodeGeneratorResponse* internal_default_instance() { | |
| 586 return reinterpret_cast<const CodeGeneratorResponse*>( | |
| 587 &_CodeGeneratorResponse_default_instance_); | |
| 588 } | |
| 589 | |
| 590 void Swap(CodeGeneratorResponse* other); | 319 void Swap(CodeGeneratorResponse* other); |
| 591 | 320 |
| 592 // implements Message ---------------------------------------------- | 321 // implements Message ---------------------------------------------- |
| 593 | 322 |
| 594 inline CodeGeneratorResponse* New() const PROTOBUF_FINAL { return New(NULL); } | 323 inline CodeGeneratorResponse* New() const { return New(NULL); } |
| 595 | 324 |
| 596 CodeGeneratorResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FI
NAL; | 325 CodeGeneratorResponse* New(::google::protobuf::Arena* arena) const; |
| 597 void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; | 326 void CopyFrom(const ::google::protobuf::Message& from); |
| 598 void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; | 327 void MergeFrom(const ::google::protobuf::Message& from); |
| 599 void CopyFrom(const CodeGeneratorResponse& from); | 328 void CopyFrom(const CodeGeneratorResponse& from); |
| 600 void MergeFrom(const CodeGeneratorResponse& from); | 329 void MergeFrom(const CodeGeneratorResponse& from); |
| 601 void Clear() PROTOBUF_FINAL; | 330 void Clear(); |
| 602 bool IsInitialized() const PROTOBUF_FINAL; | 331 bool IsInitialized() const; |
| 603 | 332 |
| 604 size_t ByteSizeLong() const PROTOBUF_FINAL; | 333 int ByteSize() const; |
| 605 bool MergePartialFromCodedStream( | 334 bool MergePartialFromCodedStream( |
| 606 ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; | 335 ::google::protobuf::io::CodedInputStream* input); |
| 607 void SerializeWithCachedSizes( | 336 void SerializeWithCachedSizes( |
| 608 ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; | 337 ::google::protobuf::io::CodedOutputStream* output) const; |
| 609 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( | 338 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf:
:uint8* output) const; |
| 610 bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINA
L; | 339 int GetCachedSize() const { return _cached_size_; } |
| 611 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf:
:uint8* output) | |
| 612 const PROTOBUF_FINAL { | |
| 613 return InternalSerializeWithCachedSizesToArray(false, output); | |
| 614 } | |
| 615 int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } | |
| 616 private: | 340 private: |
| 617 void SharedCtor(); | 341 void SharedCtor(); |
| 618 void SharedDtor(); | 342 void SharedDtor(); |
| 619 void SetCachedSize(int size) const PROTOBUF_FINAL; | 343 void SetCachedSize(int size) const; |
| 620 void InternalSwap(CodeGeneratorResponse* other); | 344 void InternalSwap(CodeGeneratorResponse* other); |
| 621 private: | 345 private: |
| 622 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { | 346 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 623 return NULL; | 347 return _internal_metadata_.arena(); |
| 624 } | 348 } |
| 625 inline void* MaybeArenaPtr() const { | 349 inline void* MaybeArenaPtr() const { |
| 626 return NULL; | 350 return _internal_metadata_.raw_arena_ptr(); |
| 627 } | 351 } |
| 628 public: | 352 public: |
| 629 | 353 |
| 630 ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; | 354 ::google::protobuf::Metadata GetMetadata() const; |
| 631 | 355 |
| 632 // nested types ---------------------------------------------------- | 356 // nested types ---------------------------------------------------- |
| 633 | 357 |
| 634 typedef CodeGeneratorResponse_File File; | 358 typedef CodeGeneratorResponse_File File; |
| 635 | 359 |
| 636 // accessors ------------------------------------------------------- | 360 // accessors ------------------------------------------------------- |
| 637 | 361 |
| 638 // optional string error = 1; | 362 // optional string error = 1; |
| 639 bool has_error() const; | 363 bool has_error() const; |
| 640 void clear_error(); | 364 void clear_error(); |
| 641 static const int kErrorFieldNumber = 1; | 365 static const int kErrorFieldNumber = 1; |
| 642 const ::std::string& error() const; | 366 const ::std::string& error() const; |
| 643 void set_error(const ::std::string& value); | 367 void set_error(const ::std::string& value); |
| 644 #if LANG_CXX11 | |
| 645 void set_error(::std::string&& value); | |
| 646 #endif | |
| 647 void set_error(const char* value); | 368 void set_error(const char* value); |
| 648 void set_error(const char* value, size_t size); | 369 void set_error(const char* value, size_t size); |
| 649 ::std::string* mutable_error(); | 370 ::std::string* mutable_error(); |
| 650 ::std::string* release_error(); | 371 ::std::string* release_error(); |
| 651 void set_allocated_error(::std::string* error); | 372 void set_allocated_error(::std::string* error); |
| 652 | 373 |
| 653 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; | 374 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
| 654 int file_size() const; | 375 int file_size() const; |
| 655 void clear_file(); | 376 void clear_file(); |
| 656 static const int kFileFieldNumber = 15; | 377 static const int kFileFieldNumber = 15; |
| 657 const ::google::protobuf::compiler::CodeGeneratorResponse_File& file(int index
) const; | 378 const ::google::protobuf::compiler::CodeGeneratorResponse_File& file(int index
) const; |
| 658 ::google::protobuf::compiler::CodeGeneratorResponse_File* mutable_file(int ind
ex); | 379 ::google::protobuf::compiler::CodeGeneratorResponse_File* mutable_file(int ind
ex); |
| 659 ::google::protobuf::compiler::CodeGeneratorResponse_File* add_file(); | 380 ::google::protobuf::compiler::CodeGeneratorResponse_File* add_file(); |
| 660 ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGenera
torResponse_File >* | 381 ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGenera
torResponse_File >* |
| 661 mutable_file(); | 382 mutable_file(); |
| 662 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::Code
GeneratorResponse_File >& | 383 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::Code
GeneratorResponse_File >& |
| 663 file() const; | 384 file() const; |
| 664 | 385 |
| 665 // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGenerator
Response) | 386 // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGenerator
Response) |
| 666 private: | 387 private: |
| 667 void set_has_error(); | 388 inline void set_has_error(); |
| 668 void clear_has_error(); | 389 inline void clear_has_error(); |
| 669 | 390 |
| 670 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; | 391 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 671 ::google::protobuf::internal::HasBits<1> _has_bits_; | 392 ::google::protobuf::uint32 _has_bits_[1]; |
| 672 mutable int _cached_size_; | 393 mutable int _cached_size_; |
| 394 ::google::protobuf::internal::ArenaStringPtr error_; |
| 673 ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGenera
torResponse_File > file_; | 395 ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGenera
torResponse_File > file_; |
| 674 ::google::protobuf::internal::ArenaStringPtr error_; | 396 friend void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fp
lugin_2eproto(); |
| 675 friend void LIBPROTOC_EXPORT protobuf_InitDefaults_google_2fprotobuf_2fcompile
r_2fplugin_2eproto_impl(); | 397 friend void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto(
); |
| 676 friend void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fp
lugin_2eproto_impl(); | |
| 677 friend const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2f
compiler_2fplugin_2eproto(); | |
| 678 friend void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eprot
o(); | 398 friend void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eprot
o(); |
| 679 | 399 |
| 400 void InitAsDefaultInstance(); |
| 401 static CodeGeneratorResponse* default_instance_; |
| 680 }; | 402 }; |
| 681 // =================================================================== | 403 // =================================================================== |
| 682 | 404 |
| 683 | 405 |
| 684 // =================================================================== | 406 // =================================================================== |
| 685 | 407 |
| 686 #if !PROTOBUF_INLINE_NOT_IN_HEADERS | 408 #if !PROTOBUF_INLINE_NOT_IN_HEADERS |
| 687 // Version | |
| 688 | |
| 689 // optional int32 major = 1; | |
| 690 inline bool Version::has_major() const { | |
| 691 return (_has_bits_[0] & 0x00000002u) != 0; | |
| 692 } | |
| 693 inline void Version::set_has_major() { | |
| 694 _has_bits_[0] |= 0x00000002u; | |
| 695 } | |
| 696 inline void Version::clear_has_major() { | |
| 697 _has_bits_[0] &= ~0x00000002u; | |
| 698 } | |
| 699 inline void Version::clear_major() { | |
| 700 major_ = 0; | |
| 701 clear_has_major(); | |
| 702 } | |
| 703 inline ::google::protobuf::int32 Version::major() const { | |
| 704 // @@protoc_insertion_point(field_get:google.protobuf.compiler.Version.major) | |
| 705 return major_; | |
| 706 } | |
| 707 inline void Version::set_major(::google::protobuf::int32 value) { | |
| 708 set_has_major(); | |
| 709 major_ = value; | |
| 710 // @@protoc_insertion_point(field_set:google.protobuf.compiler.Version.major) | |
| 711 } | |
| 712 | |
| 713 // optional int32 minor = 2; | |
| 714 inline bool Version::has_minor() const { | |
| 715 return (_has_bits_[0] & 0x00000004u) != 0; | |
| 716 } | |
| 717 inline void Version::set_has_minor() { | |
| 718 _has_bits_[0] |= 0x00000004u; | |
| 719 } | |
| 720 inline void Version::clear_has_minor() { | |
| 721 _has_bits_[0] &= ~0x00000004u; | |
| 722 } | |
| 723 inline void Version::clear_minor() { | |
| 724 minor_ = 0; | |
| 725 clear_has_minor(); | |
| 726 } | |
| 727 inline ::google::protobuf::int32 Version::minor() const { | |
| 728 // @@protoc_insertion_point(field_get:google.protobuf.compiler.Version.minor) | |
| 729 return minor_; | |
| 730 } | |
| 731 inline void Version::set_minor(::google::protobuf::int32 value) { | |
| 732 set_has_minor(); | |
| 733 minor_ = value; | |
| 734 // @@protoc_insertion_point(field_set:google.protobuf.compiler.Version.minor) | |
| 735 } | |
| 736 | |
| 737 // optional int32 patch = 3; | |
| 738 inline bool Version::has_patch() const { | |
| 739 return (_has_bits_[0] & 0x00000008u) != 0; | |
| 740 } | |
| 741 inline void Version::set_has_patch() { | |
| 742 _has_bits_[0] |= 0x00000008u; | |
| 743 } | |
| 744 inline void Version::clear_has_patch() { | |
| 745 _has_bits_[0] &= ~0x00000008u; | |
| 746 } | |
| 747 inline void Version::clear_patch() { | |
| 748 patch_ = 0; | |
| 749 clear_has_patch(); | |
| 750 } | |
| 751 inline ::google::protobuf::int32 Version::patch() const { | |
| 752 // @@protoc_insertion_point(field_get:google.protobuf.compiler.Version.patch) | |
| 753 return patch_; | |
| 754 } | |
| 755 inline void Version::set_patch(::google::protobuf::int32 value) { | |
| 756 set_has_patch(); | |
| 757 patch_ = value; | |
| 758 // @@protoc_insertion_point(field_set:google.protobuf.compiler.Version.patch) | |
| 759 } | |
| 760 | |
| 761 // optional string suffix = 4; | |
| 762 inline bool Version::has_suffix() const { | |
| 763 return (_has_bits_[0] & 0x00000001u) != 0; | |
| 764 } | |
| 765 inline void Version::set_has_suffix() { | |
| 766 _has_bits_[0] |= 0x00000001u; | |
| 767 } | |
| 768 inline void Version::clear_has_suffix() { | |
| 769 _has_bits_[0] &= ~0x00000001u; | |
| 770 } | |
| 771 inline void Version::clear_suffix() { | |
| 772 suffix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | |
| 773 clear_has_suffix(); | |
| 774 } | |
| 775 inline const ::std::string& Version::suffix() const { | |
| 776 // @@protoc_insertion_point(field_get:google.protobuf.compiler.Version.suffix) | |
| 777 return suffix_.GetNoArena(); | |
| 778 } | |
| 779 inline void Version::set_suffix(const ::std::string& value) { | |
| 780 set_has_suffix(); | |
| 781 suffix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(
), value); | |
| 782 // @@protoc_insertion_point(field_set:google.protobuf.compiler.Version.suffix) | |
| 783 } | |
| 784 #if LANG_CXX11 | |
| 785 inline void Version::set_suffix(::std::string&& value) { | |
| 786 set_has_suffix(); | |
| 787 suffix_.SetNoArena( | |
| 788 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va
lue)); | |
| 789 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.compiler.Version.
suffix) | |
| 790 } | |
| 791 #endif | |
| 792 inline void Version::set_suffix(const char* value) { | |
| 793 set_has_suffix(); | |
| 794 suffix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(
), ::std::string(value)); | |
| 795 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.Version.su
ffix) | |
| 796 } | |
| 797 inline void Version::set_suffix(const char* value, size_t size) { | |
| 798 set_has_suffix(); | |
| 799 suffix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(
), | |
| 800 ::std::string(reinterpret_cast<const char*>(value), size)); | |
| 801 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.Version
.suffix) | |
| 802 } | |
| 803 inline ::std::string* Version::mutable_suffix() { | |
| 804 set_has_suffix(); | |
| 805 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.Version.suf
fix) | |
| 806 return suffix_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); | |
| 807 } | |
| 808 inline ::std::string* Version::release_suffix() { | |
| 809 // @@protoc_insertion_point(field_release:google.protobuf.compiler.Version.suf
fix) | |
| 810 clear_has_suffix(); | |
| 811 return suffix_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); | |
| 812 } | |
| 813 inline void Version::set_allocated_suffix(::std::string* suffix) { | |
| 814 if (suffix != NULL) { | |
| 815 set_has_suffix(); | |
| 816 } else { | |
| 817 clear_has_suffix(); | |
| 818 } | |
| 819 suffix_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), suffix); | |
| 820 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.Versi
on.suffix) | |
| 821 } | |
| 822 | |
| 823 // ------------------------------------------------------------------- | |
| 824 | |
| 825 // CodeGeneratorRequest | 409 // CodeGeneratorRequest |
| 826 | 410 |
| 827 // repeated string file_to_generate = 1; | 411 // repeated string file_to_generate = 1; |
| 828 inline int CodeGeneratorRequest::file_to_generate_size() const { | 412 inline int CodeGeneratorRequest::file_to_generate_size() const { |
| 829 return file_to_generate_.size(); | 413 return file_to_generate_.size(); |
| 830 } | 414 } |
| 831 inline void CodeGeneratorRequest::clear_file_to_generate() { | 415 inline void CodeGeneratorRequest::clear_file_to_generate() { |
| 832 file_to_generate_.Clear(); | 416 file_to_generate_.Clear(); |
| 833 } | 417 } |
| 834 inline const ::std::string& CodeGeneratorRequest::file_to_generate(int index) co
nst { | 418 inline const ::std::string& CodeGeneratorRequest::file_to_generate(int index) co
nst { |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 874 return file_to_generate_; | 458 return file_to_generate_; |
| 875 } | 459 } |
| 876 inline ::google::protobuf::RepeatedPtrField< ::std::string>* | 460 inline ::google::protobuf::RepeatedPtrField< ::std::string>* |
| 877 CodeGeneratorRequest::mutable_file_to_generate() { | 461 CodeGeneratorRequest::mutable_file_to_generate() { |
| 878 // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGe
neratorRequest.file_to_generate) | 462 // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGe
neratorRequest.file_to_generate) |
| 879 return &file_to_generate_; | 463 return &file_to_generate_; |
| 880 } | 464 } |
| 881 | 465 |
| 882 // optional string parameter = 2; | 466 // optional string parameter = 2; |
| 883 inline bool CodeGeneratorRequest::has_parameter() const { | 467 inline bool CodeGeneratorRequest::has_parameter() const { |
| 884 return (_has_bits_[0] & 0x00000001u) != 0; | 468 return (_has_bits_[0] & 0x00000002u) != 0; |
| 885 } | 469 } |
| 886 inline void CodeGeneratorRequest::set_has_parameter() { | 470 inline void CodeGeneratorRequest::set_has_parameter() { |
| 887 _has_bits_[0] |= 0x00000001u; | 471 _has_bits_[0] |= 0x00000002u; |
| 888 } | 472 } |
| 889 inline void CodeGeneratorRequest::clear_has_parameter() { | 473 inline void CodeGeneratorRequest::clear_has_parameter() { |
| 890 _has_bits_[0] &= ~0x00000001u; | 474 _has_bits_[0] &= ~0x00000002u; |
| 891 } | 475 } |
| 892 inline void CodeGeneratorRequest::clear_parameter() { | 476 inline void CodeGeneratorRequest::clear_parameter() { |
| 893 parameter_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); | 477 parameter_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); |
| 894 clear_has_parameter(); | 478 clear_has_parameter(); |
| 895 } | 479 } |
| 896 inline const ::std::string& CodeGeneratorRequest::parameter() const { | 480 inline const ::std::string& CodeGeneratorRequest::parameter() const { |
| 897 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe
quest.parameter) | 481 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe
quest.parameter) |
| 898 return parameter_.GetNoArena(); | 482 return parameter_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); |
| 899 } | 483 } |
| 900 inline void CodeGeneratorRequest::set_parameter(const ::std::string& value) { | 484 inline void CodeGeneratorRequest::set_parameter(const ::std::string& value) { |
| 901 set_has_parameter(); | 485 set_has_parameter(); |
| 902 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), value); | 486 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), value); |
| 903 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe
quest.parameter) | 487 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe
quest.parameter) |
| 904 } | 488 } |
| 905 #if LANG_CXX11 | |
| 906 inline void CodeGeneratorRequest::set_parameter(::std::string&& value) { | |
| 907 set_has_parameter(); | |
| 908 parameter_.SetNoArena( | |
| 909 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va
lue)); | |
| 910 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.compiler.CodeGene
ratorRequest.parameter) | |
| 911 } | |
| 912 #endif | |
| 913 inline void CodeGeneratorRequest::set_parameter(const char* value) { | 489 inline void CodeGeneratorRequest::set_parameter(const char* value) { |
| 914 set_has_parameter(); | 490 set_has_parameter(); |
| 915 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), ::std::string(value)); | 491 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), ::std::string(value)); |
| 916 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera
torRequest.parameter) | 492 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera
torRequest.parameter) |
| 917 } | 493 } |
| 918 inline void CodeGeneratorRequest::set_parameter(const char* value, size_t size)
{ | 494 inline void CodeGeneratorRequest::set_parameter(const char* value, size_t size)
{ |
| 919 set_has_parameter(); | 495 set_has_parameter(); |
| 920 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), | 496 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), |
| 921 ::std::string(reinterpret_cast<const char*>(value), size)); | 497 ::std::string(reinterpret_cast<const char*>(value), size)); |
| 922 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen
eratorRequest.parameter) | 498 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen
eratorRequest.parameter) |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 964 CodeGeneratorRequest::mutable_proto_file() { | 540 CodeGeneratorRequest::mutable_proto_file() { |
| 965 // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGe
neratorRequest.proto_file) | 541 // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGe
neratorRequest.proto_file) |
| 966 return &proto_file_; | 542 return &proto_file_; |
| 967 } | 543 } |
| 968 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescr
iptorProto >& | 544 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescr
iptorProto >& |
| 969 CodeGeneratorRequest::proto_file() const { | 545 CodeGeneratorRequest::proto_file() const { |
| 970 // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorR
equest.proto_file) | 546 // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorR
equest.proto_file) |
| 971 return proto_file_; | 547 return proto_file_; |
| 972 } | 548 } |
| 973 | 549 |
| 974 // optional .google.protobuf.compiler.Version compiler_version = 3; | |
| 975 inline bool CodeGeneratorRequest::has_compiler_version() const { | |
| 976 return (_has_bits_[0] & 0x00000002u) != 0; | |
| 977 } | |
| 978 inline void CodeGeneratorRequest::set_has_compiler_version() { | |
| 979 _has_bits_[0] |= 0x00000002u; | |
| 980 } | |
| 981 inline void CodeGeneratorRequest::clear_has_compiler_version() { | |
| 982 _has_bits_[0] &= ~0x00000002u; | |
| 983 } | |
| 984 inline void CodeGeneratorRequest::clear_compiler_version() { | |
| 985 if (compiler_version_ != NULL) compiler_version_->::google::protobuf::compiler
::Version::Clear(); | |
| 986 clear_has_compiler_version(); | |
| 987 } | |
| 988 inline const ::google::protobuf::compiler::Version& CodeGeneratorRequest::compil
er_version() const { | |
| 989 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe
quest.compiler_version) | |
| 990 return compiler_version_ != NULL ? *compiler_version_ | |
| 991 : *::google::protobuf::compiler::Version::internal_defa
ult_instance(); | |
| 992 } | |
| 993 inline ::google::protobuf::compiler::Version* CodeGeneratorRequest::mutable_comp
iler_version() { | |
| 994 set_has_compiler_version(); | |
| 995 if (compiler_version_ == NULL) { | |
| 996 compiler_version_ = new ::google::protobuf::compiler::Version; | |
| 997 } | |
| 998 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat
orRequest.compiler_version) | |
| 999 return compiler_version_; | |
| 1000 } | |
| 1001 inline ::google::protobuf::compiler::Version* CodeGeneratorRequest::release_comp
iler_version() { | |
| 1002 // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGenerat
orRequest.compiler_version) | |
| 1003 clear_has_compiler_version(); | |
| 1004 ::google::protobuf::compiler::Version* temp = compiler_version_; | |
| 1005 compiler_version_ = NULL; | |
| 1006 return temp; | |
| 1007 } | |
| 1008 inline void CodeGeneratorRequest::set_allocated_compiler_version(::google::proto
buf::compiler::Version* compiler_version) { | |
| 1009 delete compiler_version_; | |
| 1010 compiler_version_ = compiler_version; | |
| 1011 if (compiler_version) { | |
| 1012 set_has_compiler_version(); | |
| 1013 } else { | |
| 1014 clear_has_compiler_version(); | |
| 1015 } | |
| 1016 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeG
eneratorRequest.compiler_version) | |
| 1017 } | |
| 1018 | |
| 1019 // ------------------------------------------------------------------- | 550 // ------------------------------------------------------------------- |
| 1020 | 551 |
| 1021 // CodeGeneratorResponse_File | 552 // CodeGeneratorResponse_File |
| 1022 | 553 |
| 1023 // optional string name = 1; | 554 // optional string name = 1; |
| 1024 inline bool CodeGeneratorResponse_File::has_name() const { | 555 inline bool CodeGeneratorResponse_File::has_name() const { |
| 1025 return (_has_bits_[0] & 0x00000001u) != 0; | 556 return (_has_bits_[0] & 0x00000001u) != 0; |
| 1026 } | 557 } |
| 1027 inline void CodeGeneratorResponse_File::set_has_name() { | 558 inline void CodeGeneratorResponse_File::set_has_name() { |
| 1028 _has_bits_[0] |= 0x00000001u; | 559 _has_bits_[0] |= 0x00000001u; |
| 1029 } | 560 } |
| 1030 inline void CodeGeneratorResponse_File::clear_has_name() { | 561 inline void CodeGeneratorResponse_File::clear_has_name() { |
| 1031 _has_bits_[0] &= ~0x00000001u; | 562 _has_bits_[0] &= ~0x00000001u; |
| 1032 } | 563 } |
| 1033 inline void CodeGeneratorResponse_File::clear_name() { | 564 inline void CodeGeneratorResponse_File::clear_name() { |
| 1034 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); | 565 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); |
| 1035 clear_has_name(); | 566 clear_has_name(); |
| 1036 } | 567 } |
| 1037 inline const ::std::string& CodeGeneratorResponse_File::name() const { | 568 inline const ::std::string& CodeGeneratorResponse_File::name() const { |
| 1038 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe
sponse.File.name) | 569 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe
sponse.File.name) |
| 1039 return name_.GetNoArena(); | 570 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited()); |
| 1040 } | 571 } |
| 1041 inline void CodeGeneratorResponse_File::set_name(const ::std::string& value) { | 572 inline void CodeGeneratorResponse_File::set_name(const ::std::string& value) { |
| 1042 set_has_name(); | 573 set_has_name(); |
| 1043 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); | 574 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); |
| 1044 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe
sponse.File.name) | 575 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe
sponse.File.name) |
| 1045 } | 576 } |
| 1046 #if LANG_CXX11 | |
| 1047 inline void CodeGeneratorResponse_File::set_name(::std::string&& value) { | |
| 1048 set_has_name(); | |
| 1049 name_.SetNoArena( | |
| 1050 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va
lue)); | |
| 1051 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.compiler.CodeGene
ratorResponse.File.name) | |
| 1052 } | |
| 1053 #endif | |
| 1054 inline void CodeGeneratorResponse_File::set_name(const char* value) { | 577 inline void CodeGeneratorResponse_File::set_name(const char* value) { |
| 1055 set_has_name(); | 578 set_has_name(); |
| 1056 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); | 579 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); |
| 1057 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera
torResponse.File.name) | 580 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera
torResponse.File.name) |
| 1058 } | 581 } |
| 1059 inline void CodeGeneratorResponse_File::set_name(const char* value, size_t size)
{ | 582 inline void CodeGeneratorResponse_File::set_name(const char* value, size_t size)
{ |
| 1060 set_has_name(); | 583 set_has_name(); |
| 1061 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), | 584 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 1062 ::std::string(reinterpret_cast<const char*>(value), size)); | 585 ::std::string(reinterpret_cast<const char*>(value), size)); |
| 1063 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen
eratorResponse.File.name) | 586 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen
eratorResponse.File.name) |
| (...skipping 27 matching lines...) Expand all Loading... |
| 1091 } | 614 } |
| 1092 inline void CodeGeneratorResponse_File::clear_has_insertion_point() { | 615 inline void CodeGeneratorResponse_File::clear_has_insertion_point() { |
| 1093 _has_bits_[0] &= ~0x00000002u; | 616 _has_bits_[0] &= ~0x00000002u; |
| 1094 } | 617 } |
| 1095 inline void CodeGeneratorResponse_File::clear_insertion_point() { | 618 inline void CodeGeneratorResponse_File::clear_insertion_point() { |
| 1096 insertion_point_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited()); | 619 insertion_point_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited()); |
| 1097 clear_has_insertion_point(); | 620 clear_has_insertion_point(); |
| 1098 } | 621 } |
| 1099 inline const ::std::string& CodeGeneratorResponse_File::insertion_point() const
{ | 622 inline const ::std::string& CodeGeneratorResponse_File::insertion_point() const
{ |
| 1100 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe
sponse.File.insertion_point) | 623 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe
sponse.File.insertion_point) |
| 1101 return insertion_point_.GetNoArena(); | 624 return insertion_point_.GetNoArena(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); |
| 1102 } | 625 } |
| 1103 inline void CodeGeneratorResponse_File::set_insertion_point(const ::std::string&
value) { | 626 inline void CodeGeneratorResponse_File::set_insertion_point(const ::std::string&
value) { |
| 1104 set_has_insertion_point(); | 627 set_has_insertion_point(); |
| 1105 insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), value); | 628 insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), value); |
| 1106 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe
sponse.File.insertion_point) | 629 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe
sponse.File.insertion_point) |
| 1107 } | 630 } |
| 1108 #if LANG_CXX11 | |
| 1109 inline void CodeGeneratorResponse_File::set_insertion_point(::std::string&& valu
e) { | |
| 1110 set_has_insertion_point(); | |
| 1111 insertion_point_.SetNoArena( | |
| 1112 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va
lue)); | |
| 1113 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.compiler.CodeGene
ratorResponse.File.insertion_point) | |
| 1114 } | |
| 1115 #endif | |
| 1116 inline void CodeGeneratorResponse_File::set_insertion_point(const char* value) { | 631 inline void CodeGeneratorResponse_File::set_insertion_point(const char* value) { |
| 1117 set_has_insertion_point(); | 632 set_has_insertion_point(); |
| 1118 insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), ::std::string(value)); | 633 insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), ::std::string(value)); |
| 1119 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera
torResponse.File.insertion_point) | 634 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera
torResponse.File.insertion_point) |
| 1120 } | 635 } |
| 1121 inline void CodeGeneratorResponse_File::set_insertion_point(const char* value, s
ize_t size) { | 636 inline void CodeGeneratorResponse_File::set_insertion_point(const char* value, s
ize_t size) { |
| 1122 set_has_insertion_point(); | 637 set_has_insertion_point(); |
| 1123 insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), | 638 insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), |
| 1124 ::std::string(reinterpret_cast<const char*>(value), size)); | 639 ::std::string(reinterpret_cast<const char*>(value), size)); |
| 1125 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen
eratorResponse.File.insertion_point) | 640 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen
eratorResponse.File.insertion_point) |
| (...skipping 27 matching lines...) Expand all Loading... |
| 1153 } | 668 } |
| 1154 inline void CodeGeneratorResponse_File::clear_has_content() { | 669 inline void CodeGeneratorResponse_File::clear_has_content() { |
| 1155 _has_bits_[0] &= ~0x00000004u; | 670 _has_bits_[0] &= ~0x00000004u; |
| 1156 } | 671 } |
| 1157 inline void CodeGeneratorResponse_File::clear_content() { | 672 inline void CodeGeneratorResponse_File::clear_content() { |
| 1158 content_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); | 673 content_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); |
| 1159 clear_has_content(); | 674 clear_has_content(); |
| 1160 } | 675 } |
| 1161 inline const ::std::string& CodeGeneratorResponse_File::content() const { | 676 inline const ::std::string& CodeGeneratorResponse_File::content() const { |
| 1162 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe
sponse.File.content) | 677 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe
sponse.File.content) |
| 1163 return content_.GetNoArena(); | 678 return content_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlread
yInited()); |
| 1164 } | 679 } |
| 1165 inline void CodeGeneratorResponse_File::set_content(const ::std::string& value)
{ | 680 inline void CodeGeneratorResponse_File::set_content(const ::std::string& value)
{ |
| 1166 set_has_content(); | 681 set_has_content(); |
| 1167 content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), value); | 682 content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), value); |
| 1168 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe
sponse.File.content) | 683 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe
sponse.File.content) |
| 1169 } | 684 } |
| 1170 #if LANG_CXX11 | |
| 1171 inline void CodeGeneratorResponse_File::set_content(::std::string&& value) { | |
| 1172 set_has_content(); | |
| 1173 content_.SetNoArena( | |
| 1174 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va
lue)); | |
| 1175 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.compiler.CodeGene
ratorResponse.File.content) | |
| 1176 } | |
| 1177 #endif | |
| 1178 inline void CodeGeneratorResponse_File::set_content(const char* value) { | 685 inline void CodeGeneratorResponse_File::set_content(const char* value) { |
| 1179 set_has_content(); | 686 set_has_content(); |
| 1180 content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), ::std::string(value)); | 687 content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), ::std::string(value)); |
| 1181 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera
torResponse.File.content) | 688 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera
torResponse.File.content) |
| 1182 } | 689 } |
| 1183 inline void CodeGeneratorResponse_File::set_content(const char* value, size_t si
ze) { | 690 inline void CodeGeneratorResponse_File::set_content(const char* value, size_t si
ze) { |
| 1184 set_has_content(); | 691 set_has_content(); |
| 1185 content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), | 692 content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), |
| 1186 ::std::string(reinterpret_cast<const char*>(value), size)); | 693 ::std::string(reinterpret_cast<const char*>(value), size)); |
| 1187 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen
eratorResponse.File.content) | 694 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen
eratorResponse.File.content) |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1219 } | 726 } |
| 1220 inline void CodeGeneratorResponse::clear_has_error() { | 727 inline void CodeGeneratorResponse::clear_has_error() { |
| 1221 _has_bits_[0] &= ~0x00000001u; | 728 _has_bits_[0] &= ~0x00000001u; |
| 1222 } | 729 } |
| 1223 inline void CodeGeneratorResponse::clear_error() { | 730 inline void CodeGeneratorResponse::clear_error() { |
| 1224 error_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlread
yInited()); | 731 error_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlread
yInited()); |
| 1225 clear_has_error(); | 732 clear_has_error(); |
| 1226 } | 733 } |
| 1227 inline const ::std::string& CodeGeneratorResponse::error() const { | 734 inline const ::std::string& CodeGeneratorResponse::error() const { |
| 1228 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe
sponse.error) | 735 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe
sponse.error) |
| 1229 return error_.GetNoArena(); | 736 return error_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI
nited()); |
| 1230 } | 737 } |
| 1231 inline void CodeGeneratorResponse::set_error(const ::std::string& value) { | 738 inline void CodeGeneratorResponse::set_error(const ::std::string& value) { |
| 1232 set_has_error(); | 739 set_has_error(); |
| 1233 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()
, value); | 740 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()
, value); |
| 1234 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe
sponse.error) | 741 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe
sponse.error) |
| 1235 } | 742 } |
| 1236 #if LANG_CXX11 | |
| 1237 inline void CodeGeneratorResponse::set_error(::std::string&& value) { | |
| 1238 set_has_error(); | |
| 1239 error_.SetNoArena( | |
| 1240 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va
lue)); | |
| 1241 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.compiler.CodeGene
ratorResponse.error) | |
| 1242 } | |
| 1243 #endif | |
| 1244 inline void CodeGeneratorResponse::set_error(const char* value) { | 743 inline void CodeGeneratorResponse::set_error(const char* value) { |
| 1245 set_has_error(); | 744 set_has_error(); |
| 1246 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()
, ::std::string(value)); | 745 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()
, ::std::string(value)); |
| 1247 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera
torResponse.error) | 746 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera
torResponse.error) |
| 1248 } | 747 } |
| 1249 inline void CodeGeneratorResponse::set_error(const char* value, size_t size) { | 748 inline void CodeGeneratorResponse::set_error(const char* value, size_t size) { |
| 1250 set_has_error(); | 749 set_has_error(); |
| 1251 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()
, | 750 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()
, |
| 1252 ::std::string(reinterpret_cast<const char*>(value), size)); | 751 ::std::string(reinterpret_cast<const char*>(value), size)); |
| 1253 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen
eratorResponse.error) | 752 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen
eratorResponse.error) |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1300 CodeGeneratorResponse::file() const { | 799 CodeGeneratorResponse::file() const { |
| 1301 // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorR
esponse.file) | 800 // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorR
esponse.file) |
| 1302 return file_; | 801 return file_; |
| 1303 } | 802 } |
| 1304 | 803 |
| 1305 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS | 804 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS |
| 1306 // ------------------------------------------------------------------- | 805 // ------------------------------------------------------------------- |
| 1307 | 806 |
| 1308 // ------------------------------------------------------------------- | 807 // ------------------------------------------------------------------- |
| 1309 | 808 |
| 1310 // ------------------------------------------------------------------- | |
| 1311 | |
| 1312 | 809 |
| 1313 // @@protoc_insertion_point(namespace_scope) | 810 // @@protoc_insertion_point(namespace_scope) |
| 1314 | 811 |
| 1315 | |
| 1316 } // namespace compiler | 812 } // namespace compiler |
| 1317 } // namespace protobuf | 813 } // namespace protobuf |
| 1318 } // namespace google | 814 } // namespace google |
| 1319 | 815 |
| 1320 // @@protoc_insertion_point(global_scope) | 816 // @@protoc_insertion_point(global_scope) |
| 1321 | 817 |
| 1322 #endif // PROTOBUF_google_2fprotobuf_2fcompiler_2fplugin_2eproto__INCLUDED | 818 #endif // PROTOBUF_google_2fprotobuf_2fcompiler_2fplugin_2eproto__INCLUDED |
| OLD | NEW |