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 < 3000000 | 11 #if GOOGLE_PROTOBUF_VERSION < 3001000 |
12 #error This file was generated by a newer version of protoc which is | 12 #error This file was generated by a newer version of protoc which is |
13 #error incompatible with your Protocol Buffer headers. Please update | 13 #error incompatible with your Protocol Buffer headers. Please update |
14 #error your headers. | 14 #error your headers. |
15 #endif | 15 #endif |
16 #if 3000000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION | 16 #if 3001000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION |
17 #error This file was generated by an older version of protoc which is | 17 #error This file was generated by an older version of protoc which is |
18 #error incompatible with your Protocol Buffer headers. Please | 18 #error incompatible with your Protocol Buffer headers. Please |
19 #error regenerate this file with a newer version of protoc. | 19 #error regenerate this file with a newer version of protoc. |
20 #endif | 20 #endif |
21 | 21 |
22 #include <google/protobuf/arena.h> | 22 #include <google/protobuf/arena.h> |
23 #include <google/protobuf/arenastring.h> | 23 #include <google/protobuf/arenastring.h> |
24 #include <google/protobuf/generated_message_util.h> | 24 #include <google/protobuf/generated_message_util.h> |
25 #include <google/protobuf/metadata.h> | 25 #include <google/protobuf/metadata.h> |
26 #include <google/protobuf/message.h> | 26 #include <google/protobuf/message.h> |
27 #include <google/protobuf/repeated_field.h> | 27 #include <google/protobuf/repeated_field.h> // IWYU pragma: export |
28 #include <google/protobuf/extension_set.h> | 28 #include <google/protobuf/extension_set.h> // IWYU pragma: export |
29 #include <google/protobuf/unknown_field_set.h> | 29 #include <google/protobuf/unknown_field_set.h> |
30 #include <google/protobuf/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 |
32 | 125 |
33 namespace google { | 126 namespace google { |
34 namespace protobuf { | 127 namespace protobuf { |
35 namespace compiler { | 128 namespace compiler { |
36 | 129 |
37 // Internal implementation detail -- do not call these. | 130 // Internal implementation detail -- do not call these. |
38 void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2ep
roto(); | 131 void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2ep
roto(); |
39 void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto(); | 132 void LIBPROTOC_EXPORT protobuf_InitDefaults_google_2fprotobuf_2fcompiler_2fplugi
n_2eproto(); |
40 void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eproto(); | |
41 | |
42 class CodeGeneratorRequest; | |
43 class CodeGeneratorResponse; | |
44 class CodeGeneratorResponse_File; | |
45 | 133 |
46 // =================================================================== | 134 // =================================================================== |
47 | 135 |
48 class LIBPROTOC_EXPORT CodeGeneratorRequest : public ::google::protobuf::Message
{ | 136 class LIBPROTOC_EXPORT Version : public ::google::protobuf::Message /* @@protoc_
insertion_point(class_definition:google.protobuf.compiler.Version) */ { |
| 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) */ { |
49 public: | 273 public: |
50 CodeGeneratorRequest(); | 274 CodeGeneratorRequest(); |
51 virtual ~CodeGeneratorRequest(); | 275 virtual ~CodeGeneratorRequest(); |
52 | 276 |
53 CodeGeneratorRequest(const CodeGeneratorRequest& from); | 277 CodeGeneratorRequest(const CodeGeneratorRequest& from); |
54 | 278 |
55 inline CodeGeneratorRequest& operator=(const CodeGeneratorRequest& from) { | 279 inline CodeGeneratorRequest& operator=(const CodeGeneratorRequest& from) { |
56 CopyFrom(from); | 280 CopyFrom(from); |
57 return *this; | 281 return *this; |
58 } | 282 } |
59 | 283 |
60 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { | 284 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
61 return _internal_metadata_.unknown_fields(); | 285 return _internal_metadata_.unknown_fields(); |
62 } | 286 } |
63 | 287 |
64 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { | 288 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
65 return _internal_metadata_.mutable_unknown_fields(); | 289 return _internal_metadata_.mutable_unknown_fields(); |
66 } | 290 } |
67 | 291 |
68 static const ::google::protobuf::Descriptor* descriptor(); | 292 static const ::google::protobuf::Descriptor* descriptor(); |
69 static const CodeGeneratorRequest& default_instance(); | 293 static const CodeGeneratorRequest& default_instance(); |
70 | 294 |
| 295 static inline const CodeGeneratorRequest* internal_default_instance() { |
| 296 return reinterpret_cast<const CodeGeneratorRequest*>( |
| 297 &_CodeGeneratorRequest_default_instance_); |
| 298 } |
| 299 |
71 void Swap(CodeGeneratorRequest* other); | 300 void Swap(CodeGeneratorRequest* other); |
72 | 301 |
73 // implements Message ---------------------------------------------- | 302 // implements Message ---------------------------------------------- |
74 | 303 |
75 inline CodeGeneratorRequest* New() const { return New(NULL); } | 304 inline CodeGeneratorRequest* New() const PROTOBUF_FINAL { return New(NULL); } |
76 | 305 |
77 CodeGeneratorRequest* New(::google::protobuf::Arena* arena) const; | 306 CodeGeneratorRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FIN
AL; |
78 void CopyFrom(const ::google::protobuf::Message& from); | 307 void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
79 void MergeFrom(const ::google::protobuf::Message& from); | 308 void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
80 void CopyFrom(const CodeGeneratorRequest& from); | 309 void CopyFrom(const CodeGeneratorRequest& from); |
81 void MergeFrom(const CodeGeneratorRequest& from); | 310 void MergeFrom(const CodeGeneratorRequest& from); |
82 void Clear(); | 311 void Clear() PROTOBUF_FINAL; |
83 bool IsInitialized() const; | 312 bool IsInitialized() const PROTOBUF_FINAL; |
84 | 313 |
85 int ByteSize() const; | 314 size_t ByteSizeLong() const PROTOBUF_FINAL; |
86 bool MergePartialFromCodedStream( | 315 bool MergePartialFromCodedStream( |
87 ::google::protobuf::io::CodedInputStream* input); | 316 ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
88 void SerializeWithCachedSizes( | 317 void SerializeWithCachedSizes( |
89 ::google::protobuf::io::CodedOutputStream* output) const; | 318 ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
90 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf:
:uint8* output) const; | 319 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
91 int GetCachedSize() const { return _cached_size_; } | 320 bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINA
L; |
| 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_; } |
92 private: | 326 private: |
93 void SharedCtor(); | 327 void SharedCtor(); |
94 void SharedDtor(); | 328 void SharedDtor(); |
95 void SetCachedSize(int size) const; | 329 void SetCachedSize(int size) const PROTOBUF_FINAL; |
96 void InternalSwap(CodeGeneratorRequest* other); | 330 void InternalSwap(CodeGeneratorRequest* other); |
97 private: | 331 private: |
98 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { | 332 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
99 return _internal_metadata_.arena(); | 333 return NULL; |
100 } | 334 } |
101 inline void* MaybeArenaPtr() const { | 335 inline void* MaybeArenaPtr() const { |
102 return _internal_metadata_.raw_arena_ptr(); | 336 return NULL; |
103 } | 337 } |
104 public: | 338 public: |
105 | 339 |
106 ::google::protobuf::Metadata GetMetadata() const; | 340 ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
107 | 341 |
108 // nested types ---------------------------------------------------- | 342 // nested types ---------------------------------------------------- |
109 | 343 |
110 // accessors ------------------------------------------------------- | 344 // accessors ------------------------------------------------------- |
111 | 345 |
112 // repeated string file_to_generate = 1; | 346 // repeated string file_to_generate = 1; |
113 int file_to_generate_size() const; | 347 int file_to_generate_size() const; |
114 void clear_file_to_generate(); | 348 void clear_file_to_generate(); |
115 static const int kFileToGenerateFieldNumber = 1; | 349 static const int kFileToGenerateFieldNumber = 1; |
116 const ::std::string& file_to_generate(int index) const; | 350 const ::std::string& file_to_generate(int index) const; |
117 ::std::string* mutable_file_to_generate(int index); | 351 ::std::string* mutable_file_to_generate(int index); |
118 void set_file_to_generate(int index, const ::std::string& value); | 352 void set_file_to_generate(int index, const ::std::string& value); |
119 void set_file_to_generate(int index, const char* value); | 353 void set_file_to_generate(int index, const char* value); |
120 void set_file_to_generate(int index, const char* value, size_t size); | 354 void set_file_to_generate(int index, const char* value, size_t size); |
121 ::std::string* add_file_to_generate(); | 355 ::std::string* add_file_to_generate(); |
122 void add_file_to_generate(const ::std::string& value); | 356 void add_file_to_generate(const ::std::string& value); |
123 void add_file_to_generate(const char* value); | 357 void add_file_to_generate(const char* value); |
124 void add_file_to_generate(const char* value, size_t size); | 358 void add_file_to_generate(const char* value, size_t size); |
125 const ::google::protobuf::RepeatedPtrField< ::std::string>& file_to_generate()
const; | 359 const ::google::protobuf::RepeatedPtrField< ::std::string>& file_to_generate()
const; |
126 ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_file_to_generate
(); | 360 ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_file_to_generate
(); |
127 | 361 |
128 // optional string parameter = 2; | 362 // optional string parameter = 2; |
129 bool has_parameter() const; | 363 bool has_parameter() const; |
130 void clear_parameter(); | 364 void clear_parameter(); |
131 static const int kParameterFieldNumber = 2; | 365 static const int kParameterFieldNumber = 2; |
132 const ::std::string& parameter() const; | 366 const ::std::string& parameter() const; |
133 void set_parameter(const ::std::string& value); | 367 void set_parameter(const ::std::string& value); |
| 368 #if LANG_CXX11 |
| 369 void set_parameter(::std::string&& value); |
| 370 #endif |
134 void set_parameter(const char* value); | 371 void set_parameter(const char* value); |
135 void set_parameter(const char* value, size_t size); | 372 void set_parameter(const char* value, size_t size); |
136 ::std::string* mutable_parameter(); | 373 ::std::string* mutable_parameter(); |
137 ::std::string* release_parameter(); | 374 ::std::string* release_parameter(); |
138 void set_allocated_parameter(::std::string* parameter); | 375 void set_allocated_parameter(::std::string* parameter); |
139 | 376 |
140 // repeated .google.protobuf.FileDescriptorProto proto_file = 15; | 377 // repeated .google.protobuf.FileDescriptorProto proto_file = 15; |
141 int proto_file_size() const; | 378 int proto_file_size() const; |
142 void clear_proto_file(); | 379 void clear_proto_file(); |
143 static const int kProtoFileFieldNumber = 15; | 380 static const int kProtoFileFieldNumber = 15; |
144 const ::google::protobuf::FileDescriptorProto& proto_file(int index) const; | 381 const ::google::protobuf::FileDescriptorProto& proto_file(int index) const; |
145 ::google::protobuf::FileDescriptorProto* mutable_proto_file(int index); | 382 ::google::protobuf::FileDescriptorProto* mutable_proto_file(int index); |
146 ::google::protobuf::FileDescriptorProto* add_proto_file(); | 383 ::google::protobuf::FileDescriptorProto* add_proto_file(); |
147 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto
>* | 384 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto
>* |
148 mutable_proto_file(); | 385 mutable_proto_file(); |
149 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptor
Proto >& | 386 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptor
Proto >& |
150 proto_file() const; | 387 proto_file() const; |
151 | 388 |
| 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 |
152 // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGenerator
Request) | 398 // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGenerator
Request) |
153 private: | 399 private: |
154 inline void set_has_parameter(); | 400 void set_has_parameter(); |
155 inline void clear_has_parameter(); | 401 void clear_has_parameter(); |
| 402 void set_has_compiler_version(); |
| 403 void clear_has_compiler_version(); |
156 | 404 |
157 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; | 405 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
158 ::google::protobuf::uint32 _has_bits_[1]; | 406 ::google::protobuf::internal::HasBits<1> _has_bits_; |
159 mutable int _cached_size_; | 407 mutable int _cached_size_; |
160 ::google::protobuf::RepeatedPtrField< ::std::string> file_to_generate_; | 408 ::google::protobuf::RepeatedPtrField< ::std::string> file_to_generate_; |
| 409 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto
> proto_file_; |
161 ::google::protobuf::internal::ArenaStringPtr parameter_; | 410 ::google::protobuf::internal::ArenaStringPtr parameter_; |
162 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto
> proto_file_; | 411 ::google::protobuf::compiler::Version* compiler_version_; |
163 friend void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fp
lugin_2eproto(); | 412 friend void LIBPROTOC_EXPORT protobuf_InitDefaults_google_2fprotobuf_2fcompile
r_2fplugin_2eproto_impl(); |
164 friend void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto(
); | 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(); |
165 friend void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eprot
o(); | 415 friend void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eprot
o(); |
166 | 416 |
167 void InitAsDefaultInstance(); | |
168 static CodeGeneratorRequest* default_instance_; | |
169 }; | 417 }; |
170 // ------------------------------------------------------------------- | 418 // ------------------------------------------------------------------- |
171 | 419 |
172 class LIBPROTOC_EXPORT CodeGeneratorResponse_File : public ::google::protobuf::M
essage { | 420 class LIBPROTOC_EXPORT CodeGeneratorResponse_File : public ::google::protobuf::M
essage /* @@protoc_insertion_point(class_definition:google.protobuf.compiler.Cod
eGeneratorResponse.File) */ { |
173 public: | 421 public: |
174 CodeGeneratorResponse_File(); | 422 CodeGeneratorResponse_File(); |
175 virtual ~CodeGeneratorResponse_File(); | 423 virtual ~CodeGeneratorResponse_File(); |
176 | 424 |
177 CodeGeneratorResponse_File(const CodeGeneratorResponse_File& from); | 425 CodeGeneratorResponse_File(const CodeGeneratorResponse_File& from); |
178 | 426 |
179 inline CodeGeneratorResponse_File& operator=(const CodeGeneratorResponse_File&
from) { | 427 inline CodeGeneratorResponse_File& operator=(const CodeGeneratorResponse_File&
from) { |
180 CopyFrom(from); | 428 CopyFrom(from); |
181 return *this; | 429 return *this; |
182 } | 430 } |
183 | 431 |
184 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { | 432 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
185 return _internal_metadata_.unknown_fields(); | 433 return _internal_metadata_.unknown_fields(); |
186 } | 434 } |
187 | 435 |
188 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { | 436 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
189 return _internal_metadata_.mutable_unknown_fields(); | 437 return _internal_metadata_.mutable_unknown_fields(); |
190 } | 438 } |
191 | 439 |
192 static const ::google::protobuf::Descriptor* descriptor(); | 440 static const ::google::protobuf::Descriptor* descriptor(); |
193 static const CodeGeneratorResponse_File& default_instance(); | 441 static const CodeGeneratorResponse_File& default_instance(); |
194 | 442 |
| 443 static inline const CodeGeneratorResponse_File* internal_default_instance() { |
| 444 return reinterpret_cast<const CodeGeneratorResponse_File*>( |
| 445 &_CodeGeneratorResponse_File_default_instance_); |
| 446 } |
| 447 |
195 void Swap(CodeGeneratorResponse_File* other); | 448 void Swap(CodeGeneratorResponse_File* other); |
196 | 449 |
197 // implements Message ---------------------------------------------- | 450 // implements Message ---------------------------------------------- |
198 | 451 |
199 inline CodeGeneratorResponse_File* New() const { return New(NULL); } | 452 inline CodeGeneratorResponse_File* New() const PROTOBUF_FINAL { return New(NUL
L); } |
200 | 453 |
201 CodeGeneratorResponse_File* New(::google::protobuf::Arena* arena) const; | 454 CodeGeneratorResponse_File* New(::google::protobuf::Arena* arena) const PROTOB
UF_FINAL; |
202 void CopyFrom(const ::google::protobuf::Message& from); | 455 void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
203 void MergeFrom(const ::google::protobuf::Message& from); | 456 void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
204 void CopyFrom(const CodeGeneratorResponse_File& from); | 457 void CopyFrom(const CodeGeneratorResponse_File& from); |
205 void MergeFrom(const CodeGeneratorResponse_File& from); | 458 void MergeFrom(const CodeGeneratorResponse_File& from); |
206 void Clear(); | 459 void Clear() PROTOBUF_FINAL; |
207 bool IsInitialized() const; | 460 bool IsInitialized() const PROTOBUF_FINAL; |
208 | 461 |
209 int ByteSize() const; | 462 size_t ByteSizeLong() const PROTOBUF_FINAL; |
210 bool MergePartialFromCodedStream( | 463 bool MergePartialFromCodedStream( |
211 ::google::protobuf::io::CodedInputStream* input); | 464 ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
212 void SerializeWithCachedSizes( | 465 void SerializeWithCachedSizes( |
213 ::google::protobuf::io::CodedOutputStream* output) const; | 466 ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
214 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf:
:uint8* output) const; | 467 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
215 int GetCachedSize() const { return _cached_size_; } | 468 bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINA
L; |
| 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_; } |
216 private: | 474 private: |
217 void SharedCtor(); | 475 void SharedCtor(); |
218 void SharedDtor(); | 476 void SharedDtor(); |
219 void SetCachedSize(int size) const; | 477 void SetCachedSize(int size) const PROTOBUF_FINAL; |
220 void InternalSwap(CodeGeneratorResponse_File* other); | 478 void InternalSwap(CodeGeneratorResponse_File* other); |
221 private: | 479 private: |
222 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { | 480 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
223 return _internal_metadata_.arena(); | 481 return NULL; |
224 } | 482 } |
225 inline void* MaybeArenaPtr() const { | 483 inline void* MaybeArenaPtr() const { |
226 return _internal_metadata_.raw_arena_ptr(); | 484 return NULL; |
227 } | 485 } |
228 public: | 486 public: |
229 | 487 |
230 ::google::protobuf::Metadata GetMetadata() const; | 488 ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
231 | 489 |
232 // nested types ---------------------------------------------------- | 490 // nested types ---------------------------------------------------- |
233 | 491 |
234 // accessors ------------------------------------------------------- | 492 // accessors ------------------------------------------------------- |
235 | 493 |
236 // optional string name = 1; | 494 // optional string name = 1; |
237 bool has_name() const; | 495 bool has_name() const; |
238 void clear_name(); | 496 void clear_name(); |
239 static const int kNameFieldNumber = 1; | 497 static const int kNameFieldNumber = 1; |
240 const ::std::string& name() const; | 498 const ::std::string& name() const; |
241 void set_name(const ::std::string& value); | 499 void set_name(const ::std::string& value); |
| 500 #if LANG_CXX11 |
| 501 void set_name(::std::string&& value); |
| 502 #endif |
242 void set_name(const char* value); | 503 void set_name(const char* value); |
243 void set_name(const char* value, size_t size); | 504 void set_name(const char* value, size_t size); |
244 ::std::string* mutable_name(); | 505 ::std::string* mutable_name(); |
245 ::std::string* release_name(); | 506 ::std::string* release_name(); |
246 void set_allocated_name(::std::string* name); | 507 void set_allocated_name(::std::string* name); |
247 | 508 |
248 // optional string insertion_point = 2; | 509 // optional string insertion_point = 2; |
249 bool has_insertion_point() const; | 510 bool has_insertion_point() const; |
250 void clear_insertion_point(); | 511 void clear_insertion_point(); |
251 static const int kInsertionPointFieldNumber = 2; | 512 static const int kInsertionPointFieldNumber = 2; |
252 const ::std::string& insertion_point() const; | 513 const ::std::string& insertion_point() const; |
253 void set_insertion_point(const ::std::string& value); | 514 void set_insertion_point(const ::std::string& value); |
| 515 #if LANG_CXX11 |
| 516 void set_insertion_point(::std::string&& value); |
| 517 #endif |
254 void set_insertion_point(const char* value); | 518 void set_insertion_point(const char* value); |
255 void set_insertion_point(const char* value, size_t size); | 519 void set_insertion_point(const char* value, size_t size); |
256 ::std::string* mutable_insertion_point(); | 520 ::std::string* mutable_insertion_point(); |
257 ::std::string* release_insertion_point(); | 521 ::std::string* release_insertion_point(); |
258 void set_allocated_insertion_point(::std::string* insertion_point); | 522 void set_allocated_insertion_point(::std::string* insertion_point); |
259 | 523 |
260 // optional string content = 15; | 524 // optional string content = 15; |
261 bool has_content() const; | 525 bool has_content() const; |
262 void clear_content(); | 526 void clear_content(); |
263 static const int kContentFieldNumber = 15; | 527 static const int kContentFieldNumber = 15; |
264 const ::std::string& content() const; | 528 const ::std::string& content() const; |
265 void set_content(const ::std::string& value); | 529 void set_content(const ::std::string& value); |
| 530 #if LANG_CXX11 |
| 531 void set_content(::std::string&& value); |
| 532 #endif |
266 void set_content(const char* value); | 533 void set_content(const char* value); |
267 void set_content(const char* value, size_t size); | 534 void set_content(const char* value, size_t size); |
268 ::std::string* mutable_content(); | 535 ::std::string* mutable_content(); |
269 ::std::string* release_content(); | 536 ::std::string* release_content(); |
270 void set_allocated_content(::std::string* content); | 537 void set_allocated_content(::std::string* content); |
271 | 538 |
272 // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGenerator
Response.File) | 539 // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGenerator
Response.File) |
273 private: | 540 private: |
274 inline void set_has_name(); | 541 void set_has_name(); |
275 inline void clear_has_name(); | 542 void clear_has_name(); |
276 inline void set_has_insertion_point(); | 543 void set_has_insertion_point(); |
277 inline void clear_has_insertion_point(); | 544 void clear_has_insertion_point(); |
278 inline void set_has_content(); | 545 void set_has_content(); |
279 inline void clear_has_content(); | 546 void clear_has_content(); |
280 | 547 |
281 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; | 548 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
282 ::google::protobuf::uint32 _has_bits_[1]; | 549 ::google::protobuf::internal::HasBits<1> _has_bits_; |
283 mutable int _cached_size_; | 550 mutable int _cached_size_; |
284 ::google::protobuf::internal::ArenaStringPtr name_; | 551 ::google::protobuf::internal::ArenaStringPtr name_; |
285 ::google::protobuf::internal::ArenaStringPtr insertion_point_; | 552 ::google::protobuf::internal::ArenaStringPtr insertion_point_; |
286 ::google::protobuf::internal::ArenaStringPtr content_; | 553 ::google::protobuf::internal::ArenaStringPtr content_; |
287 friend void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fp
lugin_2eproto(); | 554 friend void LIBPROTOC_EXPORT protobuf_InitDefaults_google_2fprotobuf_2fcompile
r_2fplugin_2eproto_impl(); |
288 friend void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto(
); | 555 friend void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fp
lugin_2eproto_impl(); |
| 556 friend const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2f
compiler_2fplugin_2eproto(); |
289 friend void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eprot
o(); | 557 friend void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eprot
o(); |
290 | 558 |
291 void InitAsDefaultInstance(); | |
292 static CodeGeneratorResponse_File* default_instance_; | |
293 }; | 559 }; |
294 // ------------------------------------------------------------------- | 560 // ------------------------------------------------------------------- |
295 | 561 |
296 class LIBPROTOC_EXPORT CodeGeneratorResponse : public ::google::protobuf::Messag
e { | 562 class LIBPROTOC_EXPORT CodeGeneratorResponse : public ::google::protobuf::Messag
e /* @@protoc_insertion_point(class_definition:google.protobuf.compiler.CodeGene
ratorResponse) */ { |
297 public: | 563 public: |
298 CodeGeneratorResponse(); | 564 CodeGeneratorResponse(); |
299 virtual ~CodeGeneratorResponse(); | 565 virtual ~CodeGeneratorResponse(); |
300 | 566 |
301 CodeGeneratorResponse(const CodeGeneratorResponse& from); | 567 CodeGeneratorResponse(const CodeGeneratorResponse& from); |
302 | 568 |
303 inline CodeGeneratorResponse& operator=(const CodeGeneratorResponse& from) { | 569 inline CodeGeneratorResponse& operator=(const CodeGeneratorResponse& from) { |
304 CopyFrom(from); | 570 CopyFrom(from); |
305 return *this; | 571 return *this; |
306 } | 572 } |
307 | 573 |
308 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { | 574 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
309 return _internal_metadata_.unknown_fields(); | 575 return _internal_metadata_.unknown_fields(); |
310 } | 576 } |
311 | 577 |
312 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { | 578 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
313 return _internal_metadata_.mutable_unknown_fields(); | 579 return _internal_metadata_.mutable_unknown_fields(); |
314 } | 580 } |
315 | 581 |
316 static const ::google::protobuf::Descriptor* descriptor(); | 582 static const ::google::protobuf::Descriptor* descriptor(); |
317 static const CodeGeneratorResponse& default_instance(); | 583 static const CodeGeneratorResponse& default_instance(); |
318 | 584 |
| 585 static inline const CodeGeneratorResponse* internal_default_instance() { |
| 586 return reinterpret_cast<const CodeGeneratorResponse*>( |
| 587 &_CodeGeneratorResponse_default_instance_); |
| 588 } |
| 589 |
319 void Swap(CodeGeneratorResponse* other); | 590 void Swap(CodeGeneratorResponse* other); |
320 | 591 |
321 // implements Message ---------------------------------------------- | 592 // implements Message ---------------------------------------------- |
322 | 593 |
323 inline CodeGeneratorResponse* New() const { return New(NULL); } | 594 inline CodeGeneratorResponse* New() const PROTOBUF_FINAL { return New(NULL); } |
324 | 595 |
325 CodeGeneratorResponse* New(::google::protobuf::Arena* arena) const; | 596 CodeGeneratorResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FI
NAL; |
326 void CopyFrom(const ::google::protobuf::Message& from); | 597 void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
327 void MergeFrom(const ::google::protobuf::Message& from); | 598 void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
328 void CopyFrom(const CodeGeneratorResponse& from); | 599 void CopyFrom(const CodeGeneratorResponse& from); |
329 void MergeFrom(const CodeGeneratorResponse& from); | 600 void MergeFrom(const CodeGeneratorResponse& from); |
330 void Clear(); | 601 void Clear() PROTOBUF_FINAL; |
331 bool IsInitialized() const; | 602 bool IsInitialized() const PROTOBUF_FINAL; |
332 | 603 |
333 int ByteSize() const; | 604 size_t ByteSizeLong() const PROTOBUF_FINAL; |
334 bool MergePartialFromCodedStream( | 605 bool MergePartialFromCodedStream( |
335 ::google::protobuf::io::CodedInputStream* input); | 606 ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
336 void SerializeWithCachedSizes( | 607 void SerializeWithCachedSizes( |
337 ::google::protobuf::io::CodedOutputStream* output) const; | 608 ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
338 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf:
:uint8* output) const; | 609 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
339 int GetCachedSize() const { return _cached_size_; } | 610 bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINA
L; |
| 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_; } |
340 private: | 616 private: |
341 void SharedCtor(); | 617 void SharedCtor(); |
342 void SharedDtor(); | 618 void SharedDtor(); |
343 void SetCachedSize(int size) const; | 619 void SetCachedSize(int size) const PROTOBUF_FINAL; |
344 void InternalSwap(CodeGeneratorResponse* other); | 620 void InternalSwap(CodeGeneratorResponse* other); |
345 private: | 621 private: |
346 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { | 622 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
347 return _internal_metadata_.arena(); | 623 return NULL; |
348 } | 624 } |
349 inline void* MaybeArenaPtr() const { | 625 inline void* MaybeArenaPtr() const { |
350 return _internal_metadata_.raw_arena_ptr(); | 626 return NULL; |
351 } | 627 } |
352 public: | 628 public: |
353 | 629 |
354 ::google::protobuf::Metadata GetMetadata() const; | 630 ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
355 | 631 |
356 // nested types ---------------------------------------------------- | 632 // nested types ---------------------------------------------------- |
357 | 633 |
358 typedef CodeGeneratorResponse_File File; | 634 typedef CodeGeneratorResponse_File File; |
359 | 635 |
360 // accessors ------------------------------------------------------- | 636 // accessors ------------------------------------------------------- |
361 | 637 |
362 // optional string error = 1; | 638 // optional string error = 1; |
363 bool has_error() const; | 639 bool has_error() const; |
364 void clear_error(); | 640 void clear_error(); |
365 static const int kErrorFieldNumber = 1; | 641 static const int kErrorFieldNumber = 1; |
366 const ::std::string& error() const; | 642 const ::std::string& error() const; |
367 void set_error(const ::std::string& value); | 643 void set_error(const ::std::string& value); |
| 644 #if LANG_CXX11 |
| 645 void set_error(::std::string&& value); |
| 646 #endif |
368 void set_error(const char* value); | 647 void set_error(const char* value); |
369 void set_error(const char* value, size_t size); | 648 void set_error(const char* value, size_t size); |
370 ::std::string* mutable_error(); | 649 ::std::string* mutable_error(); |
371 ::std::string* release_error(); | 650 ::std::string* release_error(); |
372 void set_allocated_error(::std::string* error); | 651 void set_allocated_error(::std::string* error); |
373 | 652 |
374 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; | 653 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
375 int file_size() const; | 654 int file_size() const; |
376 void clear_file(); | 655 void clear_file(); |
377 static const int kFileFieldNumber = 15; | 656 static const int kFileFieldNumber = 15; |
378 const ::google::protobuf::compiler::CodeGeneratorResponse_File& file(int index
) const; | 657 const ::google::protobuf::compiler::CodeGeneratorResponse_File& file(int index
) const; |
379 ::google::protobuf::compiler::CodeGeneratorResponse_File* mutable_file(int ind
ex); | 658 ::google::protobuf::compiler::CodeGeneratorResponse_File* mutable_file(int ind
ex); |
380 ::google::protobuf::compiler::CodeGeneratorResponse_File* add_file(); | 659 ::google::protobuf::compiler::CodeGeneratorResponse_File* add_file(); |
381 ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGenera
torResponse_File >* | 660 ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGenera
torResponse_File >* |
382 mutable_file(); | 661 mutable_file(); |
383 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::Code
GeneratorResponse_File >& | 662 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::Code
GeneratorResponse_File >& |
384 file() const; | 663 file() const; |
385 | 664 |
386 // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGenerator
Response) | 665 // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGenerator
Response) |
387 private: | 666 private: |
388 inline void set_has_error(); | 667 void set_has_error(); |
389 inline void clear_has_error(); | 668 void clear_has_error(); |
390 | 669 |
391 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; | 670 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
392 ::google::protobuf::uint32 _has_bits_[1]; | 671 ::google::protobuf::internal::HasBits<1> _has_bits_; |
393 mutable int _cached_size_; | 672 mutable int _cached_size_; |
| 673 ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGenera
torResponse_File > file_; |
394 ::google::protobuf::internal::ArenaStringPtr error_; | 674 ::google::protobuf::internal::ArenaStringPtr error_; |
395 ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGenera
torResponse_File > file_; | 675 friend void LIBPROTOC_EXPORT protobuf_InitDefaults_google_2fprotobuf_2fcompile
r_2fplugin_2eproto_impl(); |
396 friend void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fp
lugin_2eproto(); | 676 friend void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fp
lugin_2eproto_impl(); |
397 friend void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto(
); | 677 friend const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2f
compiler_2fplugin_2eproto(); |
398 friend void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eprot
o(); | 678 friend void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eprot
o(); |
399 | 679 |
400 void InitAsDefaultInstance(); | |
401 static CodeGeneratorResponse* default_instance_; | |
402 }; | 680 }; |
403 // =================================================================== | 681 // =================================================================== |
404 | 682 |
405 | 683 |
406 // =================================================================== | 684 // =================================================================== |
407 | 685 |
408 #if !PROTOBUF_INLINE_NOT_IN_HEADERS | 686 #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 |
409 // CodeGeneratorRequest | 825 // CodeGeneratorRequest |
410 | 826 |
411 // repeated string file_to_generate = 1; | 827 // repeated string file_to_generate = 1; |
412 inline int CodeGeneratorRequest::file_to_generate_size() const { | 828 inline int CodeGeneratorRequest::file_to_generate_size() const { |
413 return file_to_generate_.size(); | 829 return file_to_generate_.size(); |
414 } | 830 } |
415 inline void CodeGeneratorRequest::clear_file_to_generate() { | 831 inline void CodeGeneratorRequest::clear_file_to_generate() { |
416 file_to_generate_.Clear(); | 832 file_to_generate_.Clear(); |
417 } | 833 } |
418 inline const ::std::string& CodeGeneratorRequest::file_to_generate(int index) co
nst { | 834 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... |
458 return file_to_generate_; | 874 return file_to_generate_; |
459 } | 875 } |
460 inline ::google::protobuf::RepeatedPtrField< ::std::string>* | 876 inline ::google::protobuf::RepeatedPtrField< ::std::string>* |
461 CodeGeneratorRequest::mutable_file_to_generate() { | 877 CodeGeneratorRequest::mutable_file_to_generate() { |
462 // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGe
neratorRequest.file_to_generate) | 878 // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGe
neratorRequest.file_to_generate) |
463 return &file_to_generate_; | 879 return &file_to_generate_; |
464 } | 880 } |
465 | 881 |
466 // optional string parameter = 2; | 882 // optional string parameter = 2; |
467 inline bool CodeGeneratorRequest::has_parameter() const { | 883 inline bool CodeGeneratorRequest::has_parameter() const { |
468 return (_has_bits_[0] & 0x00000002u) != 0; | 884 return (_has_bits_[0] & 0x00000001u) != 0; |
469 } | 885 } |
470 inline void CodeGeneratorRequest::set_has_parameter() { | 886 inline void CodeGeneratorRequest::set_has_parameter() { |
471 _has_bits_[0] |= 0x00000002u; | 887 _has_bits_[0] |= 0x00000001u; |
472 } | 888 } |
473 inline void CodeGeneratorRequest::clear_has_parameter() { | 889 inline void CodeGeneratorRequest::clear_has_parameter() { |
474 _has_bits_[0] &= ~0x00000002u; | 890 _has_bits_[0] &= ~0x00000001u; |
475 } | 891 } |
476 inline void CodeGeneratorRequest::clear_parameter() { | 892 inline void CodeGeneratorRequest::clear_parameter() { |
477 parameter_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); | 893 parameter_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); |
478 clear_has_parameter(); | 894 clear_has_parameter(); |
479 } | 895 } |
480 inline const ::std::string& CodeGeneratorRequest::parameter() const { | 896 inline const ::std::string& CodeGeneratorRequest::parameter() const { |
481 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe
quest.parameter) | 897 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe
quest.parameter) |
482 return parameter_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); | 898 return parameter_.GetNoArena(); |
483 } | 899 } |
484 inline void CodeGeneratorRequest::set_parameter(const ::std::string& value) { | 900 inline void CodeGeneratorRequest::set_parameter(const ::std::string& value) { |
485 set_has_parameter(); | 901 set_has_parameter(); |
486 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), value); | 902 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), value); |
487 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe
quest.parameter) | 903 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe
quest.parameter) |
488 } | 904 } |
| 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 |
489 inline void CodeGeneratorRequest::set_parameter(const char* value) { | 913 inline void CodeGeneratorRequest::set_parameter(const char* value) { |
490 set_has_parameter(); | 914 set_has_parameter(); |
491 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), ::std::string(value)); | 915 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), ::std::string(value)); |
492 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera
torRequest.parameter) | 916 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera
torRequest.parameter) |
493 } | 917 } |
494 inline void CodeGeneratorRequest::set_parameter(const char* value, size_t size)
{ | 918 inline void CodeGeneratorRequest::set_parameter(const char* value, size_t size)
{ |
495 set_has_parameter(); | 919 set_has_parameter(); |
496 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), | 920 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), |
497 ::std::string(reinterpret_cast<const char*>(value), size)); | 921 ::std::string(reinterpret_cast<const char*>(value), size)); |
498 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen
eratorRequest.parameter) | 922 // @@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... |
540 CodeGeneratorRequest::mutable_proto_file() { | 964 CodeGeneratorRequest::mutable_proto_file() { |
541 // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGe
neratorRequest.proto_file) | 965 // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGe
neratorRequest.proto_file) |
542 return &proto_file_; | 966 return &proto_file_; |
543 } | 967 } |
544 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescr
iptorProto >& | 968 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescr
iptorProto >& |
545 CodeGeneratorRequest::proto_file() const { | 969 CodeGeneratorRequest::proto_file() const { |
546 // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorR
equest.proto_file) | 970 // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorR
equest.proto_file) |
547 return proto_file_; | 971 return proto_file_; |
548 } | 972 } |
549 | 973 |
| 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 |
550 // ------------------------------------------------------------------- | 1019 // ------------------------------------------------------------------- |
551 | 1020 |
552 // CodeGeneratorResponse_File | 1021 // CodeGeneratorResponse_File |
553 | 1022 |
554 // optional string name = 1; | 1023 // optional string name = 1; |
555 inline bool CodeGeneratorResponse_File::has_name() const { | 1024 inline bool CodeGeneratorResponse_File::has_name() const { |
556 return (_has_bits_[0] & 0x00000001u) != 0; | 1025 return (_has_bits_[0] & 0x00000001u) != 0; |
557 } | 1026 } |
558 inline void CodeGeneratorResponse_File::set_has_name() { | 1027 inline void CodeGeneratorResponse_File::set_has_name() { |
559 _has_bits_[0] |= 0x00000001u; | 1028 _has_bits_[0] |= 0x00000001u; |
560 } | 1029 } |
561 inline void CodeGeneratorResponse_File::clear_has_name() { | 1030 inline void CodeGeneratorResponse_File::clear_has_name() { |
562 _has_bits_[0] &= ~0x00000001u; | 1031 _has_bits_[0] &= ~0x00000001u; |
563 } | 1032 } |
564 inline void CodeGeneratorResponse_File::clear_name() { | 1033 inline void CodeGeneratorResponse_File::clear_name() { |
565 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); | 1034 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); |
566 clear_has_name(); | 1035 clear_has_name(); |
567 } | 1036 } |
568 inline const ::std::string& CodeGeneratorResponse_File::name() const { | 1037 inline const ::std::string& CodeGeneratorResponse_File::name() const { |
569 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe
sponse.File.name) | 1038 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe
sponse.File.name) |
570 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited()); | 1039 return name_.GetNoArena(); |
571 } | 1040 } |
572 inline void CodeGeneratorResponse_File::set_name(const ::std::string& value) { | 1041 inline void CodeGeneratorResponse_File::set_name(const ::std::string& value) { |
573 set_has_name(); | 1042 set_has_name(); |
574 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); | 1043 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); |
575 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe
sponse.File.name) | 1044 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe
sponse.File.name) |
576 } | 1045 } |
| 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 |
577 inline void CodeGeneratorResponse_File::set_name(const char* value) { | 1054 inline void CodeGeneratorResponse_File::set_name(const char* value) { |
578 set_has_name(); | 1055 set_has_name(); |
579 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); | 1056 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); |
580 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera
torResponse.File.name) | 1057 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera
torResponse.File.name) |
581 } | 1058 } |
582 inline void CodeGeneratorResponse_File::set_name(const char* value, size_t size)
{ | 1059 inline void CodeGeneratorResponse_File::set_name(const char* value, size_t size)
{ |
583 set_has_name(); | 1060 set_has_name(); |
584 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), | 1061 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
585 ::std::string(reinterpret_cast<const char*>(value), size)); | 1062 ::std::string(reinterpret_cast<const char*>(value), size)); |
586 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen
eratorResponse.File.name) | 1063 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen
eratorResponse.File.name) |
(...skipping 27 matching lines...) Expand all Loading... |
614 } | 1091 } |
615 inline void CodeGeneratorResponse_File::clear_has_insertion_point() { | 1092 inline void CodeGeneratorResponse_File::clear_has_insertion_point() { |
616 _has_bits_[0] &= ~0x00000002u; | 1093 _has_bits_[0] &= ~0x00000002u; |
617 } | 1094 } |
618 inline void CodeGeneratorResponse_File::clear_insertion_point() { | 1095 inline void CodeGeneratorResponse_File::clear_insertion_point() { |
619 insertion_point_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited()); | 1096 insertion_point_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited()); |
620 clear_has_insertion_point(); | 1097 clear_has_insertion_point(); |
621 } | 1098 } |
622 inline const ::std::string& CodeGeneratorResponse_File::insertion_point() const
{ | 1099 inline const ::std::string& CodeGeneratorResponse_File::insertion_point() const
{ |
623 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe
sponse.File.insertion_point) | 1100 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe
sponse.File.insertion_point) |
624 return insertion_point_.GetNoArena(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); | 1101 return insertion_point_.GetNoArena(); |
625 } | 1102 } |
626 inline void CodeGeneratorResponse_File::set_insertion_point(const ::std::string&
value) { | 1103 inline void CodeGeneratorResponse_File::set_insertion_point(const ::std::string&
value) { |
627 set_has_insertion_point(); | 1104 set_has_insertion_point(); |
628 insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), value); | 1105 insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), value); |
629 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe
sponse.File.insertion_point) | 1106 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe
sponse.File.insertion_point) |
630 } | 1107 } |
| 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 |
631 inline void CodeGeneratorResponse_File::set_insertion_point(const char* value) { | 1116 inline void CodeGeneratorResponse_File::set_insertion_point(const char* value) { |
632 set_has_insertion_point(); | 1117 set_has_insertion_point(); |
633 insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), ::std::string(value)); | 1118 insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), ::std::string(value)); |
634 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera
torResponse.File.insertion_point) | 1119 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera
torResponse.File.insertion_point) |
635 } | 1120 } |
636 inline void CodeGeneratorResponse_File::set_insertion_point(const char* value, s
ize_t size) { | 1121 inline void CodeGeneratorResponse_File::set_insertion_point(const char* value, s
ize_t size) { |
637 set_has_insertion_point(); | 1122 set_has_insertion_point(); |
638 insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), | 1123 insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), |
639 ::std::string(reinterpret_cast<const char*>(value), size)); | 1124 ::std::string(reinterpret_cast<const char*>(value), size)); |
640 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen
eratorResponse.File.insertion_point) | 1125 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen
eratorResponse.File.insertion_point) |
(...skipping 27 matching lines...) Expand all Loading... |
668 } | 1153 } |
669 inline void CodeGeneratorResponse_File::clear_has_content() { | 1154 inline void CodeGeneratorResponse_File::clear_has_content() { |
670 _has_bits_[0] &= ~0x00000004u; | 1155 _has_bits_[0] &= ~0x00000004u; |
671 } | 1156 } |
672 inline void CodeGeneratorResponse_File::clear_content() { | 1157 inline void CodeGeneratorResponse_File::clear_content() { |
673 content_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); | 1158 content_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); |
674 clear_has_content(); | 1159 clear_has_content(); |
675 } | 1160 } |
676 inline const ::std::string& CodeGeneratorResponse_File::content() const { | 1161 inline const ::std::string& CodeGeneratorResponse_File::content() const { |
677 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe
sponse.File.content) | 1162 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe
sponse.File.content) |
678 return content_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlread
yInited()); | 1163 return content_.GetNoArena(); |
679 } | 1164 } |
680 inline void CodeGeneratorResponse_File::set_content(const ::std::string& value)
{ | 1165 inline void CodeGeneratorResponse_File::set_content(const ::std::string& value)
{ |
681 set_has_content(); | 1166 set_has_content(); |
682 content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), value); | 1167 content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), value); |
683 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe
sponse.File.content) | 1168 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe
sponse.File.content) |
684 } | 1169 } |
| 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 |
685 inline void CodeGeneratorResponse_File::set_content(const char* value) { | 1178 inline void CodeGeneratorResponse_File::set_content(const char* value) { |
686 set_has_content(); | 1179 set_has_content(); |
687 content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), ::std::string(value)); | 1180 content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), ::std::string(value)); |
688 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera
torResponse.File.content) | 1181 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera
torResponse.File.content) |
689 } | 1182 } |
690 inline void CodeGeneratorResponse_File::set_content(const char* value, size_t si
ze) { | 1183 inline void CodeGeneratorResponse_File::set_content(const char* value, size_t si
ze) { |
691 set_has_content(); | 1184 set_has_content(); |
692 content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), | 1185 content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), |
693 ::std::string(reinterpret_cast<const char*>(value), size)); | 1186 ::std::string(reinterpret_cast<const char*>(value), size)); |
694 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen
eratorResponse.File.content) | 1187 // @@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... |
726 } | 1219 } |
727 inline void CodeGeneratorResponse::clear_has_error() { | 1220 inline void CodeGeneratorResponse::clear_has_error() { |
728 _has_bits_[0] &= ~0x00000001u; | 1221 _has_bits_[0] &= ~0x00000001u; |
729 } | 1222 } |
730 inline void CodeGeneratorResponse::clear_error() { | 1223 inline void CodeGeneratorResponse::clear_error() { |
731 error_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlread
yInited()); | 1224 error_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlread
yInited()); |
732 clear_has_error(); | 1225 clear_has_error(); |
733 } | 1226 } |
734 inline const ::std::string& CodeGeneratorResponse::error() const { | 1227 inline const ::std::string& CodeGeneratorResponse::error() const { |
735 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe
sponse.error) | 1228 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe
sponse.error) |
736 return error_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI
nited()); | 1229 return error_.GetNoArena(); |
737 } | 1230 } |
738 inline void CodeGeneratorResponse::set_error(const ::std::string& value) { | 1231 inline void CodeGeneratorResponse::set_error(const ::std::string& value) { |
739 set_has_error(); | 1232 set_has_error(); |
740 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()
, value); | 1233 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()
, value); |
741 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe
sponse.error) | 1234 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe
sponse.error) |
742 } | 1235 } |
| 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 |
743 inline void CodeGeneratorResponse::set_error(const char* value) { | 1244 inline void CodeGeneratorResponse::set_error(const char* value) { |
744 set_has_error(); | 1245 set_has_error(); |
745 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()
, ::std::string(value)); | 1246 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()
, ::std::string(value)); |
746 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera
torResponse.error) | 1247 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera
torResponse.error) |
747 } | 1248 } |
748 inline void CodeGeneratorResponse::set_error(const char* value, size_t size) { | 1249 inline void CodeGeneratorResponse::set_error(const char* value, size_t size) { |
749 set_has_error(); | 1250 set_has_error(); |
750 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()
, | 1251 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()
, |
751 ::std::string(reinterpret_cast<const char*>(value), size)); | 1252 ::std::string(reinterpret_cast<const char*>(value), size)); |
752 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen
eratorResponse.error) | 1253 // @@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... |
799 CodeGeneratorResponse::file() const { | 1300 CodeGeneratorResponse::file() const { |
800 // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorR
esponse.file) | 1301 // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorR
esponse.file) |
801 return file_; | 1302 return file_; |
802 } | 1303 } |
803 | 1304 |
804 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS | 1305 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS |
805 // ------------------------------------------------------------------- | 1306 // ------------------------------------------------------------------- |
806 | 1307 |
807 // ------------------------------------------------------------------- | 1308 // ------------------------------------------------------------------- |
808 | 1309 |
| 1310 // ------------------------------------------------------------------- |
| 1311 |
809 | 1312 |
810 // @@protoc_insertion_point(namespace_scope) | 1313 // @@protoc_insertion_point(namespace_scope) |
811 | 1314 |
| 1315 |
812 } // namespace compiler | 1316 } // namespace compiler |
813 } // namespace protobuf | 1317 } // namespace protobuf |
814 } // namespace google | 1318 } // namespace google |
815 | 1319 |
816 // @@protoc_insertion_point(global_scope) | 1320 // @@protoc_insertion_point(global_scope) |
817 | 1321 |
818 #endif // PROTOBUF_google_2fprotobuf_2fcompiler_2fplugin_2eproto__INCLUDED | 1322 #endif // PROTOBUF_google_2fprotobuf_2fcompiler_2fplugin_2eproto__INCLUDED |
OLD | NEW |