| 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 < 2005000 | 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 2005000 < 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> |
| 23 #include <google/protobuf/arenastring.h> |
| 22 #include <google/protobuf/generated_message_util.h> | 24 #include <google/protobuf/generated_message_util.h> |
| 25 #include <google/protobuf/metadata.h> |
| 23 #include <google/protobuf/message.h> | 26 #include <google/protobuf/message.h> |
| 24 #include <google/protobuf/repeated_field.h> | 27 #include <google/protobuf/repeated_field.h> |
| 25 #include <google/protobuf/extension_set.h> | 28 #include <google/protobuf/extension_set.h> |
| 26 #include <google/protobuf/unknown_field_set.h> | 29 #include <google/protobuf/unknown_field_set.h> |
| 27 #include <google/protobuf/descriptor.pb.h> | 30 #include <google/protobuf/descriptor.pb.h> |
| 28 // @@protoc_insertion_point(includes) | 31 // @@protoc_insertion_point(includes) |
| 29 | 32 |
| 30 namespace google { | 33 namespace google { |
| 31 namespace protobuf { | 34 namespace protobuf { |
| 32 namespace compiler { | 35 namespace compiler { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 48 virtual ~CodeGeneratorRequest(); | 51 virtual ~CodeGeneratorRequest(); |
| 49 | 52 |
| 50 CodeGeneratorRequest(const CodeGeneratorRequest& from); | 53 CodeGeneratorRequest(const CodeGeneratorRequest& from); |
| 51 | 54 |
| 52 inline CodeGeneratorRequest& operator=(const CodeGeneratorRequest& from) { | 55 inline CodeGeneratorRequest& operator=(const CodeGeneratorRequest& from) { |
| 53 CopyFrom(from); | 56 CopyFrom(from); |
| 54 return *this; | 57 return *this; |
| 55 } | 58 } |
| 56 | 59 |
| 57 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { | 60 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
| 58 return _unknown_fields_; | 61 return _internal_metadata_.unknown_fields(); |
| 59 } | 62 } |
| 60 | 63 |
| 61 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { | 64 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
| 62 return &_unknown_fields_; | 65 return _internal_metadata_.mutable_unknown_fields(); |
| 63 } | 66 } |
| 64 | 67 |
| 65 static const ::google::protobuf::Descriptor* descriptor(); | 68 static const ::google::protobuf::Descriptor* descriptor(); |
| 66 static const CodeGeneratorRequest& default_instance(); | 69 static const CodeGeneratorRequest& default_instance(); |
| 67 | 70 |
| 68 void Swap(CodeGeneratorRequest* other); | 71 void Swap(CodeGeneratorRequest* other); |
| 69 | 72 |
| 70 // implements Message ---------------------------------------------- | 73 // implements Message ---------------------------------------------- |
| 71 | 74 |
| 72 CodeGeneratorRequest* New() const; | 75 inline CodeGeneratorRequest* New() const { return New(NULL); } |
| 76 |
| 77 CodeGeneratorRequest* New(::google::protobuf::Arena* arena) const; |
| 73 void CopyFrom(const ::google::protobuf::Message& from); | 78 void CopyFrom(const ::google::protobuf::Message& from); |
| 74 void MergeFrom(const ::google::protobuf::Message& from); | 79 void MergeFrom(const ::google::protobuf::Message& from); |
| 75 void CopyFrom(const CodeGeneratorRequest& from); | 80 void CopyFrom(const CodeGeneratorRequest& from); |
| 76 void MergeFrom(const CodeGeneratorRequest& from); | 81 void MergeFrom(const CodeGeneratorRequest& from); |
| 77 void Clear(); | 82 void Clear(); |
| 78 bool IsInitialized() const; | 83 bool IsInitialized() const; |
| 79 | 84 |
| 80 int ByteSize() const; | 85 int ByteSize() const; |
| 81 bool MergePartialFromCodedStream( | 86 bool MergePartialFromCodedStream( |
| 82 ::google::protobuf::io::CodedInputStream* input); | 87 ::google::protobuf::io::CodedInputStream* input); |
| 83 void SerializeWithCachedSizes( | 88 void SerializeWithCachedSizes( |
| 84 ::google::protobuf::io::CodedOutputStream* output) const; | 89 ::google::protobuf::io::CodedOutputStream* output) const; |
| 85 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf:
:uint8* output) const; | 90 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf:
:uint8* output) const; |
| 86 int GetCachedSize() const { return _cached_size_; } | 91 int GetCachedSize() const { return _cached_size_; } |
| 87 private: | 92 private: |
| 88 void SharedCtor(); | 93 void SharedCtor(); |
| 89 void SharedDtor(); | 94 void SharedDtor(); |
| 90 void SetCachedSize(int size) const; | 95 void SetCachedSize(int size) const; |
| 96 void InternalSwap(CodeGeneratorRequest* other); |
| 97 private: |
| 98 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 99 return _internal_metadata_.arena(); |
| 100 } |
| 101 inline void* MaybeArenaPtr() const { |
| 102 return _internal_metadata_.raw_arena_ptr(); |
| 103 } |
| 91 public: | 104 public: |
| 92 | 105 |
| 93 ::google::protobuf::Metadata GetMetadata() const; | 106 ::google::protobuf::Metadata GetMetadata() const; |
| 94 | 107 |
| 95 // nested types ---------------------------------------------------- | 108 // nested types ---------------------------------------------------- |
| 96 | 109 |
| 97 // accessors ------------------------------------------------------- | 110 // accessors ------------------------------------------------------- |
| 98 | 111 |
| 99 // repeated string file_to_generate = 1; | 112 // repeated string file_to_generate = 1; |
| 100 inline int file_to_generate_size() const; | 113 int file_to_generate_size() const; |
| 101 inline void clear_file_to_generate(); | 114 void clear_file_to_generate(); |
| 102 static const int kFileToGenerateFieldNumber = 1; | 115 static const int kFileToGenerateFieldNumber = 1; |
| 103 inline const ::std::string& file_to_generate(int index) const; | 116 const ::std::string& file_to_generate(int index) const; |
| 104 inline ::std::string* mutable_file_to_generate(int index); | 117 ::std::string* mutable_file_to_generate(int index); |
| 105 inline void set_file_to_generate(int index, const ::std::string& value); | 118 void set_file_to_generate(int index, const ::std::string& value); |
| 106 inline void set_file_to_generate(int index, const char* value); | 119 void set_file_to_generate(int index, const char* value); |
| 107 inline 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); |
| 108 inline ::std::string* add_file_to_generate(); | 121 ::std::string* add_file_to_generate(); |
| 109 inline void add_file_to_generate(const ::std::string& value); | 122 void add_file_to_generate(const ::std::string& value); |
| 110 inline void add_file_to_generate(const char* value); | 123 void add_file_to_generate(const char* value); |
| 111 inline void add_file_to_generate(const char* value, size_t size); | 124 void add_file_to_generate(const char* value, size_t size); |
| 112 inline const ::google::protobuf::RepeatedPtrField< ::std::string>& file_to_gen
erate() const; | 125 const ::google::protobuf::RepeatedPtrField< ::std::string>& file_to_generate()
const; |
| 113 inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_file_to_g
enerate(); | 126 ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_file_to_generate
(); |
| 114 | 127 |
| 115 // optional string parameter = 2; | 128 // optional string parameter = 2; |
| 116 inline bool has_parameter() const; | 129 bool has_parameter() const; |
| 117 inline void clear_parameter(); | 130 void clear_parameter(); |
| 118 static const int kParameterFieldNumber = 2; | 131 static const int kParameterFieldNumber = 2; |
| 119 inline const ::std::string& parameter() const; | 132 const ::std::string& parameter() const; |
| 120 inline void set_parameter(const ::std::string& value); | 133 void set_parameter(const ::std::string& value); |
| 121 inline void set_parameter(const char* value); | 134 void set_parameter(const char* value); |
| 122 inline void set_parameter(const char* value, size_t size); | 135 void set_parameter(const char* value, size_t size); |
| 123 inline ::std::string* mutable_parameter(); | 136 ::std::string* mutable_parameter(); |
| 124 inline ::std::string* release_parameter(); | 137 ::std::string* release_parameter(); |
| 125 inline void set_allocated_parameter(::std::string* parameter); | 138 void set_allocated_parameter(::std::string* parameter); |
| 126 | 139 |
| 127 // repeated .google.protobuf.FileDescriptorProto proto_file = 15; | 140 // repeated .google.protobuf.FileDescriptorProto proto_file = 15; |
| 128 inline int proto_file_size() const; | 141 int proto_file_size() const; |
| 129 inline void clear_proto_file(); | 142 void clear_proto_file(); |
| 130 static const int kProtoFileFieldNumber = 15; | 143 static const int kProtoFileFieldNumber = 15; |
| 131 inline const ::google::protobuf::FileDescriptorProto& proto_file(int index) co
nst; | 144 const ::google::protobuf::FileDescriptorProto& proto_file(int index) const; |
| 132 inline ::google::protobuf::FileDescriptorProto* mutable_proto_file(int index); | 145 ::google::protobuf::FileDescriptorProto* mutable_proto_file(int index); |
| 133 inline ::google::protobuf::FileDescriptorProto* add_proto_file(); | 146 ::google::protobuf::FileDescriptorProto* add_proto_file(); |
| 134 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDes
criptorProto >& | 147 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto
>* |
| 148 mutable_proto_file(); |
| 149 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptor
Proto >& |
| 135 proto_file() const; | 150 proto_file() const; |
| 136 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescripto
rProto >* | |
| 137 mutable_proto_file(); | |
| 138 | 151 |
| 139 // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGenerator
Request) | 152 // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGenerator
Request) |
| 140 private: | 153 private: |
| 141 inline void set_has_parameter(); | 154 inline void set_has_parameter(); |
| 142 inline void clear_has_parameter(); | 155 inline void clear_has_parameter(); |
| 143 | 156 |
| 144 ::google::protobuf::UnknownFieldSet _unknown_fields_; | 157 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 145 | 158 ::google::protobuf::uint32 _has_bits_[1]; |
| 159 mutable int _cached_size_; |
| 146 ::google::protobuf::RepeatedPtrField< ::std::string> file_to_generate_; | 160 ::google::protobuf::RepeatedPtrField< ::std::string> file_to_generate_; |
| 147 ::std::string* parameter_; | 161 ::google::protobuf::internal::ArenaStringPtr parameter_; |
| 148 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto
> proto_file_; | 162 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto
> proto_file_; |
| 149 | |
| 150 mutable int _cached_size_; | |
| 151 ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; | |
| 152 | |
| 153 friend void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fp
lugin_2eproto(); | 163 friend void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fp
lugin_2eproto(); |
| 154 friend void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto(
); | 164 friend void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto(
); |
| 155 friend void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eprot
o(); | 165 friend void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eprot
o(); |
| 156 | 166 |
| 157 void InitAsDefaultInstance(); | 167 void InitAsDefaultInstance(); |
| 158 static CodeGeneratorRequest* default_instance_; | 168 static CodeGeneratorRequest* default_instance_; |
| 159 }; | 169 }; |
| 160 // ------------------------------------------------------------------- | 170 // ------------------------------------------------------------------- |
| 161 | 171 |
| 162 class LIBPROTOC_EXPORT CodeGeneratorResponse_File : public ::google::protobuf::M
essage { | 172 class LIBPROTOC_EXPORT CodeGeneratorResponse_File : public ::google::protobuf::M
essage { |
| 163 public: | 173 public: |
| 164 CodeGeneratorResponse_File(); | 174 CodeGeneratorResponse_File(); |
| 165 virtual ~CodeGeneratorResponse_File(); | 175 virtual ~CodeGeneratorResponse_File(); |
| 166 | 176 |
| 167 CodeGeneratorResponse_File(const CodeGeneratorResponse_File& from); | 177 CodeGeneratorResponse_File(const CodeGeneratorResponse_File& from); |
| 168 | 178 |
| 169 inline CodeGeneratorResponse_File& operator=(const CodeGeneratorResponse_File&
from) { | 179 inline CodeGeneratorResponse_File& operator=(const CodeGeneratorResponse_File&
from) { |
| 170 CopyFrom(from); | 180 CopyFrom(from); |
| 171 return *this; | 181 return *this; |
| 172 } | 182 } |
| 173 | 183 |
| 174 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { | 184 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
| 175 return _unknown_fields_; | 185 return _internal_metadata_.unknown_fields(); |
| 176 } | 186 } |
| 177 | 187 |
| 178 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { | 188 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
| 179 return &_unknown_fields_; | 189 return _internal_metadata_.mutable_unknown_fields(); |
| 180 } | 190 } |
| 181 | 191 |
| 182 static const ::google::protobuf::Descriptor* descriptor(); | 192 static const ::google::protobuf::Descriptor* descriptor(); |
| 183 static const CodeGeneratorResponse_File& default_instance(); | 193 static const CodeGeneratorResponse_File& default_instance(); |
| 184 | 194 |
| 185 void Swap(CodeGeneratorResponse_File* other); | 195 void Swap(CodeGeneratorResponse_File* other); |
| 186 | 196 |
| 187 // implements Message ---------------------------------------------- | 197 // implements Message ---------------------------------------------- |
| 188 | 198 |
| 189 CodeGeneratorResponse_File* New() const; | 199 inline CodeGeneratorResponse_File* New() const { return New(NULL); } |
| 200 |
| 201 CodeGeneratorResponse_File* New(::google::protobuf::Arena* arena) const; |
| 190 void CopyFrom(const ::google::protobuf::Message& from); | 202 void CopyFrom(const ::google::protobuf::Message& from); |
| 191 void MergeFrom(const ::google::protobuf::Message& from); | 203 void MergeFrom(const ::google::protobuf::Message& from); |
| 192 void CopyFrom(const CodeGeneratorResponse_File& from); | 204 void CopyFrom(const CodeGeneratorResponse_File& from); |
| 193 void MergeFrom(const CodeGeneratorResponse_File& from); | 205 void MergeFrom(const CodeGeneratorResponse_File& from); |
| 194 void Clear(); | 206 void Clear(); |
| 195 bool IsInitialized() const; | 207 bool IsInitialized() const; |
| 196 | 208 |
| 197 int ByteSize() const; | 209 int ByteSize() const; |
| 198 bool MergePartialFromCodedStream( | 210 bool MergePartialFromCodedStream( |
| 199 ::google::protobuf::io::CodedInputStream* input); | 211 ::google::protobuf::io::CodedInputStream* input); |
| 200 void SerializeWithCachedSizes( | 212 void SerializeWithCachedSizes( |
| 201 ::google::protobuf::io::CodedOutputStream* output) const; | 213 ::google::protobuf::io::CodedOutputStream* output) const; |
| 202 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf:
:uint8* output) const; | 214 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf:
:uint8* output) const; |
| 203 int GetCachedSize() const { return _cached_size_; } | 215 int GetCachedSize() const { return _cached_size_; } |
| 204 private: | 216 private: |
| 205 void SharedCtor(); | 217 void SharedCtor(); |
| 206 void SharedDtor(); | 218 void SharedDtor(); |
| 207 void SetCachedSize(int size) const; | 219 void SetCachedSize(int size) const; |
| 220 void InternalSwap(CodeGeneratorResponse_File* other); |
| 221 private: |
| 222 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 223 return _internal_metadata_.arena(); |
| 224 } |
| 225 inline void* MaybeArenaPtr() const { |
| 226 return _internal_metadata_.raw_arena_ptr(); |
| 227 } |
| 208 public: | 228 public: |
| 209 | 229 |
| 210 ::google::protobuf::Metadata GetMetadata() const; | 230 ::google::protobuf::Metadata GetMetadata() const; |
| 211 | 231 |
| 212 // nested types ---------------------------------------------------- | 232 // nested types ---------------------------------------------------- |
| 213 | 233 |
| 214 // accessors ------------------------------------------------------- | 234 // accessors ------------------------------------------------------- |
| 215 | 235 |
| 216 // optional string name = 1; | 236 // optional string name = 1; |
| 217 inline bool has_name() const; | 237 bool has_name() const; |
| 218 inline void clear_name(); | 238 void clear_name(); |
| 219 static const int kNameFieldNumber = 1; | 239 static const int kNameFieldNumber = 1; |
| 220 inline const ::std::string& name() const; | 240 const ::std::string& name() const; |
| 221 inline void set_name(const ::std::string& value); | 241 void set_name(const ::std::string& value); |
| 222 inline void set_name(const char* value); | 242 void set_name(const char* value); |
| 223 inline void set_name(const char* value, size_t size); | 243 void set_name(const char* value, size_t size); |
| 224 inline ::std::string* mutable_name(); | 244 ::std::string* mutable_name(); |
| 225 inline ::std::string* release_name(); | 245 ::std::string* release_name(); |
| 226 inline void set_allocated_name(::std::string* name); | 246 void set_allocated_name(::std::string* name); |
| 227 | 247 |
| 228 // optional string insertion_point = 2; | 248 // optional string insertion_point = 2; |
| 229 inline bool has_insertion_point() const; | 249 bool has_insertion_point() const; |
| 230 inline void clear_insertion_point(); | 250 void clear_insertion_point(); |
| 231 static const int kInsertionPointFieldNumber = 2; | 251 static const int kInsertionPointFieldNumber = 2; |
| 232 inline const ::std::string& insertion_point() const; | 252 const ::std::string& insertion_point() const; |
| 233 inline void set_insertion_point(const ::std::string& value); | 253 void set_insertion_point(const ::std::string& value); |
| 234 inline void set_insertion_point(const char* value); | 254 void set_insertion_point(const char* value); |
| 235 inline void set_insertion_point(const char* value, size_t size); | 255 void set_insertion_point(const char* value, size_t size); |
| 236 inline ::std::string* mutable_insertion_point(); | 256 ::std::string* mutable_insertion_point(); |
| 237 inline ::std::string* release_insertion_point(); | 257 ::std::string* release_insertion_point(); |
| 238 inline void set_allocated_insertion_point(::std::string* insertion_point); | 258 void set_allocated_insertion_point(::std::string* insertion_point); |
| 239 | 259 |
| 240 // optional string content = 15; | 260 // optional string content = 15; |
| 241 inline bool has_content() const; | 261 bool has_content() const; |
| 242 inline void clear_content(); | 262 void clear_content(); |
| 243 static const int kContentFieldNumber = 15; | 263 static const int kContentFieldNumber = 15; |
| 244 inline const ::std::string& content() const; | 264 const ::std::string& content() const; |
| 245 inline void set_content(const ::std::string& value); | 265 void set_content(const ::std::string& value); |
| 246 inline void set_content(const char* value); | 266 void set_content(const char* value); |
| 247 inline void set_content(const char* value, size_t size); | 267 void set_content(const char* value, size_t size); |
| 248 inline ::std::string* mutable_content(); | 268 ::std::string* mutable_content(); |
| 249 inline ::std::string* release_content(); | 269 ::std::string* release_content(); |
| 250 inline void set_allocated_content(::std::string* content); | 270 void set_allocated_content(::std::string* content); |
| 251 | 271 |
| 252 // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGenerator
Response.File) | 272 // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGenerator
Response.File) |
| 253 private: | 273 private: |
| 254 inline void set_has_name(); | 274 inline void set_has_name(); |
| 255 inline void clear_has_name(); | 275 inline void clear_has_name(); |
| 256 inline void set_has_insertion_point(); | 276 inline void set_has_insertion_point(); |
| 257 inline void clear_has_insertion_point(); | 277 inline void clear_has_insertion_point(); |
| 258 inline void set_has_content(); | 278 inline void set_has_content(); |
| 259 inline void clear_has_content(); | 279 inline void clear_has_content(); |
| 260 | 280 |
| 261 ::google::protobuf::UnknownFieldSet _unknown_fields_; | 281 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 262 | 282 ::google::protobuf::uint32 _has_bits_[1]; |
| 263 ::std::string* name_; | |
| 264 ::std::string* insertion_point_; | |
| 265 ::std::string* content_; | |
| 266 | |
| 267 mutable int _cached_size_; | 283 mutable int _cached_size_; |
| 268 ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; | 284 ::google::protobuf::internal::ArenaStringPtr name_; |
| 269 | 285 ::google::protobuf::internal::ArenaStringPtr insertion_point_; |
| 286 ::google::protobuf::internal::ArenaStringPtr content_; |
| 270 friend void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fp
lugin_2eproto(); | 287 friend void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fp
lugin_2eproto(); |
| 271 friend void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto(
); | 288 friend void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto(
); |
| 272 friend void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eprot
o(); | 289 friend void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eprot
o(); |
| 273 | 290 |
| 274 void InitAsDefaultInstance(); | 291 void InitAsDefaultInstance(); |
| 275 static CodeGeneratorResponse_File* default_instance_; | 292 static CodeGeneratorResponse_File* default_instance_; |
| 276 }; | 293 }; |
| 277 // ------------------------------------------------------------------- | 294 // ------------------------------------------------------------------- |
| 278 | 295 |
| 279 class LIBPROTOC_EXPORT CodeGeneratorResponse : public ::google::protobuf::Messag
e { | 296 class LIBPROTOC_EXPORT CodeGeneratorResponse : public ::google::protobuf::Messag
e { |
| 280 public: | 297 public: |
| 281 CodeGeneratorResponse(); | 298 CodeGeneratorResponse(); |
| 282 virtual ~CodeGeneratorResponse(); | 299 virtual ~CodeGeneratorResponse(); |
| 283 | 300 |
| 284 CodeGeneratorResponse(const CodeGeneratorResponse& from); | 301 CodeGeneratorResponse(const CodeGeneratorResponse& from); |
| 285 | 302 |
| 286 inline CodeGeneratorResponse& operator=(const CodeGeneratorResponse& from) { | 303 inline CodeGeneratorResponse& operator=(const CodeGeneratorResponse& from) { |
| 287 CopyFrom(from); | 304 CopyFrom(from); |
| 288 return *this; | 305 return *this; |
| 289 } | 306 } |
| 290 | 307 |
| 291 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { | 308 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
| 292 return _unknown_fields_; | 309 return _internal_metadata_.unknown_fields(); |
| 293 } | 310 } |
| 294 | 311 |
| 295 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { | 312 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
| 296 return &_unknown_fields_; | 313 return _internal_metadata_.mutable_unknown_fields(); |
| 297 } | 314 } |
| 298 | 315 |
| 299 static const ::google::protobuf::Descriptor* descriptor(); | 316 static const ::google::protobuf::Descriptor* descriptor(); |
| 300 static const CodeGeneratorResponse& default_instance(); | 317 static const CodeGeneratorResponse& default_instance(); |
| 301 | 318 |
| 302 void Swap(CodeGeneratorResponse* other); | 319 void Swap(CodeGeneratorResponse* other); |
| 303 | 320 |
| 304 // implements Message ---------------------------------------------- | 321 // implements Message ---------------------------------------------- |
| 305 | 322 |
| 306 CodeGeneratorResponse* New() const; | 323 inline CodeGeneratorResponse* New() const { return New(NULL); } |
| 324 |
| 325 CodeGeneratorResponse* New(::google::protobuf::Arena* arena) const; |
| 307 void CopyFrom(const ::google::protobuf::Message& from); | 326 void CopyFrom(const ::google::protobuf::Message& from); |
| 308 void MergeFrom(const ::google::protobuf::Message& from); | 327 void MergeFrom(const ::google::protobuf::Message& from); |
| 309 void CopyFrom(const CodeGeneratorResponse& from); | 328 void CopyFrom(const CodeGeneratorResponse& from); |
| 310 void MergeFrom(const CodeGeneratorResponse& from); | 329 void MergeFrom(const CodeGeneratorResponse& from); |
| 311 void Clear(); | 330 void Clear(); |
| 312 bool IsInitialized() const; | 331 bool IsInitialized() const; |
| 313 | 332 |
| 314 int ByteSize() const; | 333 int ByteSize() const; |
| 315 bool MergePartialFromCodedStream( | 334 bool MergePartialFromCodedStream( |
| 316 ::google::protobuf::io::CodedInputStream* input); | 335 ::google::protobuf::io::CodedInputStream* input); |
| 317 void SerializeWithCachedSizes( | 336 void SerializeWithCachedSizes( |
| 318 ::google::protobuf::io::CodedOutputStream* output) const; | 337 ::google::protobuf::io::CodedOutputStream* output) const; |
| 319 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf:
:uint8* output) const; | 338 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf:
:uint8* output) const; |
| 320 int GetCachedSize() const { return _cached_size_; } | 339 int GetCachedSize() const { return _cached_size_; } |
| 321 private: | 340 private: |
| 322 void SharedCtor(); | 341 void SharedCtor(); |
| 323 void SharedDtor(); | 342 void SharedDtor(); |
| 324 void SetCachedSize(int size) const; | 343 void SetCachedSize(int size) const; |
| 344 void InternalSwap(CodeGeneratorResponse* other); |
| 345 private: |
| 346 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 347 return _internal_metadata_.arena(); |
| 348 } |
| 349 inline void* MaybeArenaPtr() const { |
| 350 return _internal_metadata_.raw_arena_ptr(); |
| 351 } |
| 325 public: | 352 public: |
| 326 | 353 |
| 327 ::google::protobuf::Metadata GetMetadata() const; | 354 ::google::protobuf::Metadata GetMetadata() const; |
| 328 | 355 |
| 329 // nested types ---------------------------------------------------- | 356 // nested types ---------------------------------------------------- |
| 330 | 357 |
| 331 typedef CodeGeneratorResponse_File File; | 358 typedef CodeGeneratorResponse_File File; |
| 332 | 359 |
| 333 // accessors ------------------------------------------------------- | 360 // accessors ------------------------------------------------------- |
| 334 | 361 |
| 335 // optional string error = 1; | 362 // optional string error = 1; |
| 336 inline bool has_error() const; | 363 bool has_error() const; |
| 337 inline void clear_error(); | 364 void clear_error(); |
| 338 static const int kErrorFieldNumber = 1; | 365 static const int kErrorFieldNumber = 1; |
| 339 inline const ::std::string& error() const; | 366 const ::std::string& error() const; |
| 340 inline void set_error(const ::std::string& value); | 367 void set_error(const ::std::string& value); |
| 341 inline void set_error(const char* value); | 368 void set_error(const char* value); |
| 342 inline void set_error(const char* value, size_t size); | 369 void set_error(const char* value, size_t size); |
| 343 inline ::std::string* mutable_error(); | 370 ::std::string* mutable_error(); |
| 344 inline ::std::string* release_error(); | 371 ::std::string* release_error(); |
| 345 inline void set_allocated_error(::std::string* error); | 372 void set_allocated_error(::std::string* error); |
| 346 | 373 |
| 347 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; | 374 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
| 348 inline int file_size() const; | 375 int file_size() const; |
| 349 inline void clear_file(); | 376 void clear_file(); |
| 350 static const int kFileFieldNumber = 15; | 377 static const int kFileFieldNumber = 15; |
| 351 inline const ::google::protobuf::compiler::CodeGeneratorResponse_File& file(in
t index) const; | 378 const ::google::protobuf::compiler::CodeGeneratorResponse_File& file(int index
) const; |
| 352 inline ::google::protobuf::compiler::CodeGeneratorResponse_File* mutable_file(
int index); | 379 ::google::protobuf::compiler::CodeGeneratorResponse_File* mutable_file(int ind
ex); |
| 353 inline ::google::protobuf::compiler::CodeGeneratorResponse_File* add_file(); | 380 ::google::protobuf::compiler::CodeGeneratorResponse_File* add_file(); |
| 354 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::compile
r::CodeGeneratorResponse_File >& | 381 ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGenera
torResponse_File >* |
| 382 mutable_file(); |
| 383 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::Code
GeneratorResponse_File >& |
| 355 file() const; | 384 file() const; |
| 356 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::Cod
eGeneratorResponse_File >* | |
| 357 mutable_file(); | |
| 358 | 385 |
| 359 // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGenerator
Response) | 386 // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGenerator
Response) |
| 360 private: | 387 private: |
| 361 inline void set_has_error(); | 388 inline void set_has_error(); |
| 362 inline void clear_has_error(); | 389 inline void clear_has_error(); |
| 363 | 390 |
| 364 ::google::protobuf::UnknownFieldSet _unknown_fields_; | 391 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 365 | 392 ::google::protobuf::uint32 _has_bits_[1]; |
| 366 ::std::string* error_; | 393 mutable int _cached_size_; |
| 394 ::google::protobuf::internal::ArenaStringPtr error_; |
| 367 ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGenera
torResponse_File > file_; | 395 ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGenera
torResponse_File > file_; |
| 368 | |
| 369 mutable int _cached_size_; | |
| 370 ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; | |
| 371 | |
| 372 friend void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fp
lugin_2eproto(); | 396 friend void LIBPROTOC_EXPORT protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fp
lugin_2eproto(); |
| 373 friend void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto(
); | 397 friend void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto(
); |
| 374 friend void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eprot
o(); | 398 friend void protobuf_ShutdownFile_google_2fprotobuf_2fcompiler_2fplugin_2eprot
o(); |
| 375 | 399 |
| 376 void InitAsDefaultInstance(); | 400 void InitAsDefaultInstance(); |
| 377 static CodeGeneratorResponse* default_instance_; | 401 static CodeGeneratorResponse* default_instance_; |
| 378 }; | 402 }; |
| 379 // =================================================================== | 403 // =================================================================== |
| 380 | 404 |
| 381 | 405 |
| 382 // =================================================================== | 406 // =================================================================== |
| 383 | 407 |
| 408 #if !PROTOBUF_INLINE_NOT_IN_HEADERS |
| 384 // CodeGeneratorRequest | 409 // CodeGeneratorRequest |
| 385 | 410 |
| 386 // repeated string file_to_generate = 1; | 411 // repeated string file_to_generate = 1; |
| 387 inline int CodeGeneratorRequest::file_to_generate_size() const { | 412 inline int CodeGeneratorRequest::file_to_generate_size() const { |
| 388 return file_to_generate_.size(); | 413 return file_to_generate_.size(); |
| 389 } | 414 } |
| 390 inline void CodeGeneratorRequest::clear_file_to_generate() { | 415 inline void CodeGeneratorRequest::clear_file_to_generate() { |
| 391 file_to_generate_.Clear(); | 416 file_to_generate_.Clear(); |
| 392 } | 417 } |
| 393 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 { |
| 419 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe
quest.file_to_generate) |
| 394 return file_to_generate_.Get(index); | 420 return file_to_generate_.Get(index); |
| 395 } | 421 } |
| 396 inline ::std::string* CodeGeneratorRequest::mutable_file_to_generate(int index)
{ | 422 inline ::std::string* CodeGeneratorRequest::mutable_file_to_generate(int index)
{ |
| 423 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat
orRequest.file_to_generate) |
| 397 return file_to_generate_.Mutable(index); | 424 return file_to_generate_.Mutable(index); |
| 398 } | 425 } |
| 399 inline void CodeGeneratorRequest::set_file_to_generate(int index, const ::std::s
tring& value) { | 426 inline void CodeGeneratorRequest::set_file_to_generate(int index, const ::std::s
tring& value) { |
| 427 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe
quest.file_to_generate) |
| 400 file_to_generate_.Mutable(index)->assign(value); | 428 file_to_generate_.Mutable(index)->assign(value); |
| 401 } | 429 } |
| 402 inline void CodeGeneratorRequest::set_file_to_generate(int index, const char* va
lue) { | 430 inline void CodeGeneratorRequest::set_file_to_generate(int index, const char* va
lue) { |
| 403 file_to_generate_.Mutable(index)->assign(value); | 431 file_to_generate_.Mutable(index)->assign(value); |
| 432 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera
torRequest.file_to_generate) |
| 404 } | 433 } |
| 405 inline void CodeGeneratorRequest::set_file_to_generate(int index, const char* va
lue, size_t size) { | 434 inline void CodeGeneratorRequest::set_file_to_generate(int index, const char* va
lue, size_t size) { |
| 406 file_to_generate_.Mutable(index)->assign( | 435 file_to_generate_.Mutable(index)->assign( |
| 407 reinterpret_cast<const char*>(value), size); | 436 reinterpret_cast<const char*>(value), size); |
| 437 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen
eratorRequest.file_to_generate) |
| 408 } | 438 } |
| 409 inline ::std::string* CodeGeneratorRequest::add_file_to_generate() { | 439 inline ::std::string* CodeGeneratorRequest::add_file_to_generate() { |
| 410 return file_to_generate_.Add(); | 440 return file_to_generate_.Add(); |
| 411 } | 441 } |
| 412 inline void CodeGeneratorRequest::add_file_to_generate(const ::std::string& valu
e) { | 442 inline void CodeGeneratorRequest::add_file_to_generate(const ::std::string& valu
e) { |
| 413 file_to_generate_.Add()->assign(value); | 443 file_to_generate_.Add()->assign(value); |
| 444 // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorRe
quest.file_to_generate) |
| 414 } | 445 } |
| 415 inline void CodeGeneratorRequest::add_file_to_generate(const char* value) { | 446 inline void CodeGeneratorRequest::add_file_to_generate(const char* value) { |
| 416 file_to_generate_.Add()->assign(value); | 447 file_to_generate_.Add()->assign(value); |
| 448 // @@protoc_insertion_point(field_add_char:google.protobuf.compiler.CodeGenera
torRequest.file_to_generate) |
| 417 } | 449 } |
| 418 inline void CodeGeneratorRequest::add_file_to_generate(const char* value, size_t
size) { | 450 inline void CodeGeneratorRequest::add_file_to_generate(const char* value, size_t
size) { |
| 419 file_to_generate_.Add()->assign(reinterpret_cast<const char*>(value), size); | 451 file_to_generate_.Add()->assign(reinterpret_cast<const char*>(value), size); |
| 452 // @@protoc_insertion_point(field_add_pointer:google.protobuf.compiler.CodeGen
eratorRequest.file_to_generate) |
| 420 } | 453 } |
| 421 inline const ::google::protobuf::RepeatedPtrField< ::std::string>& | 454 inline const ::google::protobuf::RepeatedPtrField< ::std::string>& |
| 422 CodeGeneratorRequest::file_to_generate() const { | 455 CodeGeneratorRequest::file_to_generate() const { |
| 456 // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorR
equest.file_to_generate) |
| 423 return file_to_generate_; | 457 return file_to_generate_; |
| 424 } | 458 } |
| 425 inline ::google::protobuf::RepeatedPtrField< ::std::string>* | 459 inline ::google::protobuf::RepeatedPtrField< ::std::string>* |
| 426 CodeGeneratorRequest::mutable_file_to_generate() { | 460 CodeGeneratorRequest::mutable_file_to_generate() { |
| 461 // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGe
neratorRequest.file_to_generate) |
| 427 return &file_to_generate_; | 462 return &file_to_generate_; |
| 428 } | 463 } |
| 429 | 464 |
| 430 // optional string parameter = 2; | 465 // optional string parameter = 2; |
| 431 inline bool CodeGeneratorRequest::has_parameter() const { | 466 inline bool CodeGeneratorRequest::has_parameter() const { |
| 432 return (_has_bits_[0] & 0x00000002u) != 0; | 467 return (_has_bits_[0] & 0x00000002u) != 0; |
| 433 } | 468 } |
| 434 inline void CodeGeneratorRequest::set_has_parameter() { | 469 inline void CodeGeneratorRequest::set_has_parameter() { |
| 435 _has_bits_[0] |= 0x00000002u; | 470 _has_bits_[0] |= 0x00000002u; |
| 436 } | 471 } |
| 437 inline void CodeGeneratorRequest::clear_has_parameter() { | 472 inline void CodeGeneratorRequest::clear_has_parameter() { |
| 438 _has_bits_[0] &= ~0x00000002u; | 473 _has_bits_[0] &= ~0x00000002u; |
| 439 } | 474 } |
| 440 inline void CodeGeneratorRequest::clear_parameter() { | 475 inline void CodeGeneratorRequest::clear_parameter() { |
| 441 if (parameter_ != &::google::protobuf::internal::GetEmptyString()) { | 476 parameter_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); |
| 442 parameter_->clear(); | |
| 443 } | |
| 444 clear_has_parameter(); | 477 clear_has_parameter(); |
| 445 } | 478 } |
| 446 inline const ::std::string& CodeGeneratorRequest::parameter() const { | 479 inline const ::std::string& CodeGeneratorRequest::parameter() const { |
| 447 return *parameter_; | 480 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe
quest.parameter) |
| 481 return parameter_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); |
| 448 } | 482 } |
| 449 inline void CodeGeneratorRequest::set_parameter(const ::std::string& value) { | 483 inline void CodeGeneratorRequest::set_parameter(const ::std::string& value) { |
| 450 set_has_parameter(); | 484 set_has_parameter(); |
| 451 if (parameter_ == &::google::protobuf::internal::GetEmptyString()) { | 485 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), value); |
| 452 parameter_ = new ::std::string; | 486 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe
quest.parameter) |
| 453 } | |
| 454 parameter_->assign(value); | |
| 455 } | 487 } |
| 456 inline void CodeGeneratorRequest::set_parameter(const char* value) { | 488 inline void CodeGeneratorRequest::set_parameter(const char* value) { |
| 457 set_has_parameter(); | 489 set_has_parameter(); |
| 458 if (parameter_ == &::google::protobuf::internal::GetEmptyString()) { | 490 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), ::std::string(value)); |
| 459 parameter_ = new ::std::string; | 491 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera
torRequest.parameter) |
| 460 } | |
| 461 parameter_->assign(value); | |
| 462 } | 492 } |
| 463 inline void CodeGeneratorRequest::set_parameter(const char* value, size_t size)
{ | 493 inline void CodeGeneratorRequest::set_parameter(const char* value, size_t size)
{ |
| 464 set_has_parameter(); | 494 set_has_parameter(); |
| 465 if (parameter_ == &::google::protobuf::internal::GetEmptyString()) { | 495 parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), |
| 466 parameter_ = new ::std::string; | 496 ::std::string(reinterpret_cast<const char*>(value), size)); |
| 467 } | 497 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen
eratorRequest.parameter) |
| 468 parameter_->assign(reinterpret_cast<const char*>(value), size); | |
| 469 } | 498 } |
| 470 inline ::std::string* CodeGeneratorRequest::mutable_parameter() { | 499 inline ::std::string* CodeGeneratorRequest::mutable_parameter() { |
| 471 set_has_parameter(); | 500 set_has_parameter(); |
| 472 if (parameter_ == &::google::protobuf::internal::GetEmptyString()) { | 501 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat
orRequest.parameter) |
| 473 parameter_ = new ::std::string; | 502 return parameter_.MutableNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); |
| 474 } | |
| 475 return parameter_; | |
| 476 } | 503 } |
| 477 inline ::std::string* CodeGeneratorRequest::release_parameter() { | 504 inline ::std::string* CodeGeneratorRequest::release_parameter() { |
| 478 clear_has_parameter(); | 505 clear_has_parameter(); |
| 479 if (parameter_ == &::google::protobuf::internal::GetEmptyString()) { | 506 return parameter_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); |
| 480 return NULL; | |
| 481 } else { | |
| 482 ::std::string* temp = parameter_; | |
| 483 parameter_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetE
mptyString()); | |
| 484 return temp; | |
| 485 } | |
| 486 } | 507 } |
| 487 inline void CodeGeneratorRequest::set_allocated_parameter(::std::string* paramet
er) { | 508 inline void CodeGeneratorRequest::set_allocated_parameter(::std::string* paramet
er) { |
| 488 if (parameter_ != &::google::protobuf::internal::GetEmptyString()) { | 509 if (parameter != NULL) { |
| 489 delete parameter_; | |
| 490 } | |
| 491 if (parameter) { | |
| 492 set_has_parameter(); | 510 set_has_parameter(); |
| 493 parameter_ = parameter; | |
| 494 } else { | 511 } else { |
| 495 clear_has_parameter(); | 512 clear_has_parameter(); |
| 496 parameter_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetE
mptyString()); | |
| 497 } | 513 } |
| 514 parameter_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited(), parameter); |
| 515 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeG
eneratorRequest.parameter) |
| 498 } | 516 } |
| 499 | 517 |
| 500 // repeated .google.protobuf.FileDescriptorProto proto_file = 15; | 518 // repeated .google.protobuf.FileDescriptorProto proto_file = 15; |
| 501 inline int CodeGeneratorRequest::proto_file_size() const { | 519 inline int CodeGeneratorRequest::proto_file_size() const { |
| 502 return proto_file_.size(); | 520 return proto_file_.size(); |
| 503 } | 521 } |
| 504 inline void CodeGeneratorRequest::clear_proto_file() { | 522 inline void CodeGeneratorRequest::clear_proto_file() { |
| 505 proto_file_.Clear(); | 523 proto_file_.Clear(); |
| 506 } | 524 } |
| 507 inline const ::google::protobuf::FileDescriptorProto& CodeGeneratorRequest::prot
o_file(int index) const { | 525 inline const ::google::protobuf::FileDescriptorProto& CodeGeneratorRequest::prot
o_file(int index) const { |
| 526 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe
quest.proto_file) |
| 508 return proto_file_.Get(index); | 527 return proto_file_.Get(index); |
| 509 } | 528 } |
| 510 inline ::google::protobuf::FileDescriptorProto* CodeGeneratorRequest::mutable_pr
oto_file(int index) { | 529 inline ::google::protobuf::FileDescriptorProto* CodeGeneratorRequest::mutable_pr
oto_file(int index) { |
| 530 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat
orRequest.proto_file) |
| 511 return proto_file_.Mutable(index); | 531 return proto_file_.Mutable(index); |
| 512 } | 532 } |
| 513 inline ::google::protobuf::FileDescriptorProto* CodeGeneratorRequest::add_proto_
file() { | 533 inline ::google::protobuf::FileDescriptorProto* CodeGeneratorRequest::add_proto_
file() { |
| 534 // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorRe
quest.proto_file) |
| 514 return proto_file_.Add(); | 535 return proto_file_.Add(); |
| 515 } | 536 } |
| 537 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorP
roto >* |
| 538 CodeGeneratorRequest::mutable_proto_file() { |
| 539 // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGe
neratorRequest.proto_file) |
| 540 return &proto_file_; |
| 541 } |
| 516 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescr
iptorProto >& | 542 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescr
iptorProto >& |
| 517 CodeGeneratorRequest::proto_file() const { | 543 CodeGeneratorRequest::proto_file() const { |
| 544 // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorR
equest.proto_file) |
| 518 return proto_file_; | 545 return proto_file_; |
| 519 } | 546 } |
| 520 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorP
roto >* | |
| 521 CodeGeneratorRequest::mutable_proto_file() { | |
| 522 return &proto_file_; | |
| 523 } | |
| 524 | 547 |
| 525 // ------------------------------------------------------------------- | 548 // ------------------------------------------------------------------- |
| 526 | 549 |
| 527 // CodeGeneratorResponse_File | 550 // CodeGeneratorResponse_File |
| 528 | 551 |
| 529 // optional string name = 1; | 552 // optional string name = 1; |
| 530 inline bool CodeGeneratorResponse_File::has_name() const { | 553 inline bool CodeGeneratorResponse_File::has_name() const { |
| 531 return (_has_bits_[0] & 0x00000001u) != 0; | 554 return (_has_bits_[0] & 0x00000001u) != 0; |
| 532 } | 555 } |
| 533 inline void CodeGeneratorResponse_File::set_has_name() { | 556 inline void CodeGeneratorResponse_File::set_has_name() { |
| 534 _has_bits_[0] |= 0x00000001u; | 557 _has_bits_[0] |= 0x00000001u; |
| 535 } | 558 } |
| 536 inline void CodeGeneratorResponse_File::clear_has_name() { | 559 inline void CodeGeneratorResponse_File::clear_has_name() { |
| 537 _has_bits_[0] &= ~0x00000001u; | 560 _has_bits_[0] &= ~0x00000001u; |
| 538 } | 561 } |
| 539 inline void CodeGeneratorResponse_File::clear_name() { | 562 inline void CodeGeneratorResponse_File::clear_name() { |
| 540 if (name_ != &::google::protobuf::internal::GetEmptyString()) { | 563 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); |
| 541 name_->clear(); | |
| 542 } | |
| 543 clear_has_name(); | 564 clear_has_name(); |
| 544 } | 565 } |
| 545 inline const ::std::string& CodeGeneratorResponse_File::name() const { | 566 inline const ::std::string& CodeGeneratorResponse_File::name() const { |
| 546 return *name_; | 567 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe
sponse.File.name) |
| 568 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited()); |
| 547 } | 569 } |
| 548 inline void CodeGeneratorResponse_File::set_name(const ::std::string& value) { | 570 inline void CodeGeneratorResponse_File::set_name(const ::std::string& value) { |
| 549 set_has_name(); | 571 set_has_name(); |
| 550 if (name_ == &::google::protobuf::internal::GetEmptyString()) { | 572 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); |
| 551 name_ = new ::std::string; | 573 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe
sponse.File.name) |
| 552 } | |
| 553 name_->assign(value); | |
| 554 } | 574 } |
| 555 inline void CodeGeneratorResponse_File::set_name(const char* value) { | 575 inline void CodeGeneratorResponse_File::set_name(const char* value) { |
| 556 set_has_name(); | 576 set_has_name(); |
| 557 if (name_ == &::google::protobuf::internal::GetEmptyString()) { | 577 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); |
| 558 name_ = new ::std::string; | 578 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera
torResponse.File.name) |
| 559 } | |
| 560 name_->assign(value); | |
| 561 } | 579 } |
| 562 inline void CodeGeneratorResponse_File::set_name(const char* value, size_t size)
{ | 580 inline void CodeGeneratorResponse_File::set_name(const char* value, size_t size)
{ |
| 563 set_has_name(); | 581 set_has_name(); |
| 564 if (name_ == &::google::protobuf::internal::GetEmptyString()) { | 582 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 565 name_ = new ::std::string; | 583 ::std::string(reinterpret_cast<const char*>(value), size)); |
| 566 } | 584 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen
eratorResponse.File.name) |
| 567 name_->assign(reinterpret_cast<const char*>(value), size); | |
| 568 } | 585 } |
| 569 inline ::std::string* CodeGeneratorResponse_File::mutable_name() { | 586 inline ::std::string* CodeGeneratorResponse_File::mutable_name() { |
| 570 set_has_name(); | 587 set_has_name(); |
| 571 if (name_ == &::google::protobuf::internal::GetEmptyString()) { | 588 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat
orResponse.File.name) |
| 572 name_ = new ::std::string; | 589 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
| 573 } | |
| 574 return name_; | |
| 575 } | 590 } |
| 576 inline ::std::string* CodeGeneratorResponse_File::release_name() { | 591 inline ::std::string* CodeGeneratorResponse_File::release_name() { |
| 577 clear_has_name(); | 592 clear_has_name(); |
| 578 if (name_ == &::google::protobuf::internal::GetEmptyString()) { | 593 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
| 579 return NULL; | |
| 580 } else { | |
| 581 ::std::string* temp = name_; | |
| 582 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyS
tring()); | |
| 583 return temp; | |
| 584 } | |
| 585 } | 594 } |
| 586 inline void CodeGeneratorResponse_File::set_allocated_name(::std::string* name)
{ | 595 inline void CodeGeneratorResponse_File::set_allocated_name(::std::string* name)
{ |
| 587 if (name_ != &::google::protobuf::internal::GetEmptyString()) { | 596 if (name != NULL) { |
| 588 delete name_; | |
| 589 } | |
| 590 if (name) { | |
| 591 set_has_name(); | 597 set_has_name(); |
| 592 name_ = name; | |
| 593 } else { | 598 } else { |
| 594 clear_has_name(); | 599 clear_has_name(); |
| 595 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyS
tring()); | |
| 596 } | 600 } |
| 601 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), name); |
| 602 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeG
eneratorResponse.File.name) |
| 597 } | 603 } |
| 598 | 604 |
| 599 // optional string insertion_point = 2; | 605 // optional string insertion_point = 2; |
| 600 inline bool CodeGeneratorResponse_File::has_insertion_point() const { | 606 inline bool CodeGeneratorResponse_File::has_insertion_point() const { |
| 601 return (_has_bits_[0] & 0x00000002u) != 0; | 607 return (_has_bits_[0] & 0x00000002u) != 0; |
| 602 } | 608 } |
| 603 inline void CodeGeneratorResponse_File::set_has_insertion_point() { | 609 inline void CodeGeneratorResponse_File::set_has_insertion_point() { |
| 604 _has_bits_[0] |= 0x00000002u; | 610 _has_bits_[0] |= 0x00000002u; |
| 605 } | 611 } |
| 606 inline void CodeGeneratorResponse_File::clear_has_insertion_point() { | 612 inline void CodeGeneratorResponse_File::clear_has_insertion_point() { |
| 607 _has_bits_[0] &= ~0x00000002u; | 613 _has_bits_[0] &= ~0x00000002u; |
| 608 } | 614 } |
| 609 inline void CodeGeneratorResponse_File::clear_insertion_point() { | 615 inline void CodeGeneratorResponse_File::clear_insertion_point() { |
| 610 if (insertion_point_ != &::google::protobuf::internal::GetEmptyString()) { | 616 insertion_point_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited()); |
| 611 insertion_point_->clear(); | |
| 612 } | |
| 613 clear_has_insertion_point(); | 617 clear_has_insertion_point(); |
| 614 } | 618 } |
| 615 inline const ::std::string& CodeGeneratorResponse_File::insertion_point() const
{ | 619 inline const ::std::string& CodeGeneratorResponse_File::insertion_point() const
{ |
| 616 return *insertion_point_; | 620 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe
sponse.File.insertion_point) |
| 621 return insertion_point_.GetNoArena(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); |
| 617 } | 622 } |
| 618 inline void CodeGeneratorResponse_File::set_insertion_point(const ::std::string&
value) { | 623 inline void CodeGeneratorResponse_File::set_insertion_point(const ::std::string&
value) { |
| 619 set_has_insertion_point(); | 624 set_has_insertion_point(); |
| 620 if (insertion_point_ == &::google::protobuf::internal::GetEmptyString()) { | 625 insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), value); |
| 621 insertion_point_ = new ::std::string; | 626 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe
sponse.File.insertion_point) |
| 622 } | |
| 623 insertion_point_->assign(value); | |
| 624 } | 627 } |
| 625 inline void CodeGeneratorResponse_File::set_insertion_point(const char* value) { | 628 inline void CodeGeneratorResponse_File::set_insertion_point(const char* value) { |
| 626 set_has_insertion_point(); | 629 set_has_insertion_point(); |
| 627 if (insertion_point_ == &::google::protobuf::internal::GetEmptyString()) { | 630 insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), ::std::string(value)); |
| 628 insertion_point_ = new ::std::string; | 631 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera
torResponse.File.insertion_point) |
| 629 } | |
| 630 insertion_point_->assign(value); | |
| 631 } | 632 } |
| 632 inline void CodeGeneratorResponse_File::set_insertion_point(const char* value, s
ize_t size) { | 633 inline void CodeGeneratorResponse_File::set_insertion_point(const char* value, s
ize_t size) { |
| 633 set_has_insertion_point(); | 634 set_has_insertion_point(); |
| 634 if (insertion_point_ == &::google::protobuf::internal::GetEmptyString()) { | 635 insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), |
| 635 insertion_point_ = new ::std::string; | 636 ::std::string(reinterpret_cast<const char*>(value), size)); |
| 636 } | 637 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen
eratorResponse.File.insertion_point) |
| 637 insertion_point_->assign(reinterpret_cast<const char*>(value), size); | |
| 638 } | 638 } |
| 639 inline ::std::string* CodeGeneratorResponse_File::mutable_insertion_point() { | 639 inline ::std::string* CodeGeneratorResponse_File::mutable_insertion_point() { |
| 640 set_has_insertion_point(); | 640 set_has_insertion_point(); |
| 641 if (insertion_point_ == &::google::protobuf::internal::GetEmptyString()) { | 641 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat
orResponse.File.insertion_point) |
| 642 insertion_point_ = new ::std::string; | 642 return insertion_point_.MutableNoArena(&::google::protobuf::internal::GetEmpty
StringAlreadyInited()); |
| 643 } | |
| 644 return insertion_point_; | |
| 645 } | 643 } |
| 646 inline ::std::string* CodeGeneratorResponse_File::release_insertion_point() { | 644 inline ::std::string* CodeGeneratorResponse_File::release_insertion_point() { |
| 647 clear_has_insertion_point(); | 645 clear_has_insertion_point(); |
| 648 if (insertion_point_ == &::google::protobuf::internal::GetEmptyString()) { | 646 return insertion_point_.ReleaseNoArena(&::google::protobuf::internal::GetEmpty
StringAlreadyInited()); |
| 649 return NULL; | |
| 650 } else { | |
| 651 ::std::string* temp = insertion_point_; | |
| 652 insertion_point_ = const_cast< ::std::string*>(&::google::protobuf::internal
::GetEmptyString()); | |
| 653 return temp; | |
| 654 } | |
| 655 } | 647 } |
| 656 inline void CodeGeneratorResponse_File::set_allocated_insertion_point(::std::str
ing* insertion_point) { | 648 inline void CodeGeneratorResponse_File::set_allocated_insertion_point(::std::str
ing* insertion_point) { |
| 657 if (insertion_point_ != &::google::protobuf::internal::GetEmptyString()) { | 649 if (insertion_point != NULL) { |
| 658 delete insertion_point_; | |
| 659 } | |
| 660 if (insertion_point) { | |
| 661 set_has_insertion_point(); | 650 set_has_insertion_point(); |
| 662 insertion_point_ = insertion_point; | |
| 663 } else { | 651 } else { |
| 664 clear_has_insertion_point(); | 652 clear_has_insertion_point(); |
| 665 insertion_point_ = const_cast< ::std::string*>(&::google::protobuf::internal
::GetEmptyString()); | |
| 666 } | 653 } |
| 654 insertion_point_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited(), insertion_point); |
| 655 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeG
eneratorResponse.File.insertion_point) |
| 667 } | 656 } |
| 668 | 657 |
| 669 // optional string content = 15; | 658 // optional string content = 15; |
| 670 inline bool CodeGeneratorResponse_File::has_content() const { | 659 inline bool CodeGeneratorResponse_File::has_content() const { |
| 671 return (_has_bits_[0] & 0x00000004u) != 0; | 660 return (_has_bits_[0] & 0x00000004u) != 0; |
| 672 } | 661 } |
| 673 inline void CodeGeneratorResponse_File::set_has_content() { | 662 inline void CodeGeneratorResponse_File::set_has_content() { |
| 674 _has_bits_[0] |= 0x00000004u; | 663 _has_bits_[0] |= 0x00000004u; |
| 675 } | 664 } |
| 676 inline void CodeGeneratorResponse_File::clear_has_content() { | 665 inline void CodeGeneratorResponse_File::clear_has_content() { |
| 677 _has_bits_[0] &= ~0x00000004u; | 666 _has_bits_[0] &= ~0x00000004u; |
| 678 } | 667 } |
| 679 inline void CodeGeneratorResponse_File::clear_content() { | 668 inline void CodeGeneratorResponse_File::clear_content() { |
| 680 if (content_ != &::google::protobuf::internal::GetEmptyString()) { | 669 content_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); |
| 681 content_->clear(); | |
| 682 } | |
| 683 clear_has_content(); | 670 clear_has_content(); |
| 684 } | 671 } |
| 685 inline const ::std::string& CodeGeneratorResponse_File::content() const { | 672 inline const ::std::string& CodeGeneratorResponse_File::content() const { |
| 686 return *content_; | 673 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe
sponse.File.content) |
| 674 return content_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlread
yInited()); |
| 687 } | 675 } |
| 688 inline void CodeGeneratorResponse_File::set_content(const ::std::string& value)
{ | 676 inline void CodeGeneratorResponse_File::set_content(const ::std::string& value)
{ |
| 689 set_has_content(); | 677 set_has_content(); |
| 690 if (content_ == &::google::protobuf::internal::GetEmptyString()) { | 678 content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), value); |
| 691 content_ = new ::std::string; | 679 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe
sponse.File.content) |
| 692 } | |
| 693 content_->assign(value); | |
| 694 } | 680 } |
| 695 inline void CodeGeneratorResponse_File::set_content(const char* value) { | 681 inline void CodeGeneratorResponse_File::set_content(const char* value) { |
| 696 set_has_content(); | 682 set_has_content(); |
| 697 if (content_ == &::google::protobuf::internal::GetEmptyString()) { | 683 content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), ::std::string(value)); |
| 698 content_ = new ::std::string; | 684 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera
torResponse.File.content) |
| 699 } | |
| 700 content_->assign(value); | |
| 701 } | 685 } |
| 702 inline void CodeGeneratorResponse_File::set_content(const char* value, size_t si
ze) { | 686 inline void CodeGeneratorResponse_File::set_content(const char* value, size_t si
ze) { |
| 703 set_has_content(); | 687 set_has_content(); |
| 704 if (content_ == &::google::protobuf::internal::GetEmptyString()) { | 688 content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), |
| 705 content_ = new ::std::string; | 689 ::std::string(reinterpret_cast<const char*>(value), size)); |
| 706 } | 690 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen
eratorResponse.File.content) |
| 707 content_->assign(reinterpret_cast<const char*>(value), size); | |
| 708 } | 691 } |
| 709 inline ::std::string* CodeGeneratorResponse_File::mutable_content() { | 692 inline ::std::string* CodeGeneratorResponse_File::mutable_content() { |
| 710 set_has_content(); | 693 set_has_content(); |
| 711 if (content_ == &::google::protobuf::internal::GetEmptyString()) { | 694 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat
orResponse.File.content) |
| 712 content_ = new ::std::string; | 695 return content_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); |
| 713 } | |
| 714 return content_; | |
| 715 } | 696 } |
| 716 inline ::std::string* CodeGeneratorResponse_File::release_content() { | 697 inline ::std::string* CodeGeneratorResponse_File::release_content() { |
| 717 clear_has_content(); | 698 clear_has_content(); |
| 718 if (content_ == &::google::protobuf::internal::GetEmptyString()) { | 699 return content_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); |
| 719 return NULL; | |
| 720 } else { | |
| 721 ::std::string* temp = content_; | |
| 722 content_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmp
tyString()); | |
| 723 return temp; | |
| 724 } | |
| 725 } | 700 } |
| 726 inline void CodeGeneratorResponse_File::set_allocated_content(::std::string* con
tent) { | 701 inline void CodeGeneratorResponse_File::set_allocated_content(::std::string* con
tent) { |
| 727 if (content_ != &::google::protobuf::internal::GetEmptyString()) { | 702 if (content != NULL) { |
| 728 delete content_; | |
| 729 } | |
| 730 if (content) { | |
| 731 set_has_content(); | 703 set_has_content(); |
| 732 content_ = content; | |
| 733 } else { | 704 } else { |
| 734 clear_has_content(); | 705 clear_has_content(); |
| 735 content_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmp
tyString()); | |
| 736 } | 706 } |
| 707 content_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), content); |
| 708 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeG
eneratorResponse.File.content) |
| 737 } | 709 } |
| 738 | 710 |
| 739 // ------------------------------------------------------------------- | 711 // ------------------------------------------------------------------- |
| 740 | 712 |
| 741 // CodeGeneratorResponse | 713 // CodeGeneratorResponse |
| 742 | 714 |
| 743 // optional string error = 1; | 715 // optional string error = 1; |
| 744 inline bool CodeGeneratorResponse::has_error() const { | 716 inline bool CodeGeneratorResponse::has_error() const { |
| 745 return (_has_bits_[0] & 0x00000001u) != 0; | 717 return (_has_bits_[0] & 0x00000001u) != 0; |
| 746 } | 718 } |
| 747 inline void CodeGeneratorResponse::set_has_error() { | 719 inline void CodeGeneratorResponse::set_has_error() { |
| 748 _has_bits_[0] |= 0x00000001u; | 720 _has_bits_[0] |= 0x00000001u; |
| 749 } | 721 } |
| 750 inline void CodeGeneratorResponse::clear_has_error() { | 722 inline void CodeGeneratorResponse::clear_has_error() { |
| 751 _has_bits_[0] &= ~0x00000001u; | 723 _has_bits_[0] &= ~0x00000001u; |
| 752 } | 724 } |
| 753 inline void CodeGeneratorResponse::clear_error() { | 725 inline void CodeGeneratorResponse::clear_error() { |
| 754 if (error_ != &::google::protobuf::internal::GetEmptyString()) { | 726 error_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlread
yInited()); |
| 755 error_->clear(); | |
| 756 } | |
| 757 clear_has_error(); | 727 clear_has_error(); |
| 758 } | 728 } |
| 759 inline const ::std::string& CodeGeneratorResponse::error() const { | 729 inline const ::std::string& CodeGeneratorResponse::error() const { |
| 760 return *error_; | 730 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe
sponse.error) |
| 731 return error_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI
nited()); |
| 761 } | 732 } |
| 762 inline void CodeGeneratorResponse::set_error(const ::std::string& value) { | 733 inline void CodeGeneratorResponse::set_error(const ::std::string& value) { |
| 763 set_has_error(); | 734 set_has_error(); |
| 764 if (error_ == &::google::protobuf::internal::GetEmptyString()) { | 735 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()
, value); |
| 765 error_ = new ::std::string; | 736 // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRe
sponse.error) |
| 766 } | |
| 767 error_->assign(value); | |
| 768 } | 737 } |
| 769 inline void CodeGeneratorResponse::set_error(const char* value) { | 738 inline void CodeGeneratorResponse::set_error(const char* value) { |
| 770 set_has_error(); | 739 set_has_error(); |
| 771 if (error_ == &::google::protobuf::internal::GetEmptyString()) { | 740 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()
, ::std::string(value)); |
| 772 error_ = new ::std::string; | 741 // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGenera
torResponse.error) |
| 773 } | |
| 774 error_->assign(value); | |
| 775 } | 742 } |
| 776 inline void CodeGeneratorResponse::set_error(const char* value, size_t size) { | 743 inline void CodeGeneratorResponse::set_error(const char* value, size_t size) { |
| 777 set_has_error(); | 744 set_has_error(); |
| 778 if (error_ == &::google::protobuf::internal::GetEmptyString()) { | 745 error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()
, |
| 779 error_ = new ::std::string; | 746 ::std::string(reinterpret_cast<const char*>(value), size)); |
| 780 } | 747 // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGen
eratorResponse.error) |
| 781 error_->assign(reinterpret_cast<const char*>(value), size); | |
| 782 } | 748 } |
| 783 inline ::std::string* CodeGeneratorResponse::mutable_error() { | 749 inline ::std::string* CodeGeneratorResponse::mutable_error() { |
| 784 set_has_error(); | 750 set_has_error(); |
| 785 if (error_ == &::google::protobuf::internal::GetEmptyString()) { | 751 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat
orResponse.error) |
| 786 error_ = new ::std::string; | 752 return error_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); |
| 787 } | |
| 788 return error_; | |
| 789 } | 753 } |
| 790 inline ::std::string* CodeGeneratorResponse::release_error() { | 754 inline ::std::string* CodeGeneratorResponse::release_error() { |
| 791 clear_has_error(); | 755 clear_has_error(); |
| 792 if (error_ == &::google::protobuf::internal::GetEmptyString()) { | 756 return error_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); |
| 793 return NULL; | |
| 794 } else { | |
| 795 ::std::string* temp = error_; | |
| 796 error_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmpty
String()); | |
| 797 return temp; | |
| 798 } | |
| 799 } | 757 } |
| 800 inline void CodeGeneratorResponse::set_allocated_error(::std::string* error) { | 758 inline void CodeGeneratorResponse::set_allocated_error(::std::string* error) { |
| 801 if (error_ != &::google::protobuf::internal::GetEmptyString()) { | 759 if (error != NULL) { |
| 802 delete error_; | |
| 803 } | |
| 804 if (error) { | |
| 805 set_has_error(); | 760 set_has_error(); |
| 806 error_ = error; | |
| 807 } else { | 761 } else { |
| 808 clear_has_error(); | 762 clear_has_error(); |
| 809 error_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmpty
String()); | |
| 810 } | 763 } |
| 764 error_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlread
yInited(), error); |
| 765 // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeG
eneratorResponse.error) |
| 811 } | 766 } |
| 812 | 767 |
| 813 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; | 768 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
| 814 inline int CodeGeneratorResponse::file_size() const { | 769 inline int CodeGeneratorResponse::file_size() const { |
| 815 return file_.size(); | 770 return file_.size(); |
| 816 } | 771 } |
| 817 inline void CodeGeneratorResponse::clear_file() { | 772 inline void CodeGeneratorResponse::clear_file() { |
| 818 file_.Clear(); | 773 file_.Clear(); |
| 819 } | 774 } |
| 820 inline const ::google::protobuf::compiler::CodeGeneratorResponse_File& CodeGener
atorResponse::file(int index) const { | 775 inline const ::google::protobuf::compiler::CodeGeneratorResponse_File& CodeGener
atorResponse::file(int index) const { |
| 776 // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRe
sponse.file) |
| 821 return file_.Get(index); | 777 return file_.Get(index); |
| 822 } | 778 } |
| 823 inline ::google::protobuf::compiler::CodeGeneratorResponse_File* CodeGeneratorRe
sponse::mutable_file(int index) { | 779 inline ::google::protobuf::compiler::CodeGeneratorResponse_File* CodeGeneratorRe
sponse::mutable_file(int index) { |
| 780 // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGenerat
orResponse.file) |
| 824 return file_.Mutable(index); | 781 return file_.Mutable(index); |
| 825 } | 782 } |
| 826 inline ::google::protobuf::compiler::CodeGeneratorResponse_File* CodeGeneratorRe
sponse::add_file() { | 783 inline ::google::protobuf::compiler::CodeGeneratorResponse_File* CodeGeneratorRe
sponse::add_file() { |
| 784 // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorRe
sponse.file) |
| 827 return file_.Add(); | 785 return file_.Add(); |
| 828 } | 786 } |
| 787 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeG
eneratorResponse_File >* |
| 788 CodeGeneratorResponse::mutable_file() { |
| 789 // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGe
neratorResponse.file) |
| 790 return &file_; |
| 791 } |
| 829 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler:
:CodeGeneratorResponse_File >& | 792 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler:
:CodeGeneratorResponse_File >& |
| 830 CodeGeneratorResponse::file() const { | 793 CodeGeneratorResponse::file() const { |
| 794 // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorR
esponse.file) |
| 831 return file_; | 795 return file_; |
| 832 } | 796 } |
| 833 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeG
eneratorResponse_File >* | 797 |
| 834 CodeGeneratorResponse::mutable_file() { | 798 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS |
| 835 return &file_; | 799 // ------------------------------------------------------------------- |
| 836 } | 800 |
| 801 // ------------------------------------------------------------------- |
| 837 | 802 |
| 838 | 803 |
| 839 // @@protoc_insertion_point(namespace_scope) | 804 // @@protoc_insertion_point(namespace_scope) |
| 840 | 805 |
| 841 } // namespace compiler | 806 } // namespace compiler |
| 842 } // namespace protobuf | 807 } // namespace protobuf |
| 843 } // namespace google | 808 } // namespace google |
| 844 | 809 |
| 845 #ifndef SWIG | |
| 846 namespace google { | |
| 847 namespace protobuf { | |
| 848 | |
| 849 | |
| 850 } // namespace google | |
| 851 } // namespace protobuf | |
| 852 #endif // SWIG | |
| 853 | |
| 854 // @@protoc_insertion_point(global_scope) | 810 // @@protoc_insertion_point(global_scope) |
| 855 | 811 |
| 856 #endif // PROTOBUF_google_2fprotobuf_2fcompiler_2fplugin_2eproto__INCLUDED | 812 #endif // PROTOBUF_google_2fprotobuf_2fcompiler_2fplugin_2eproto__INCLUDED |
| OLD | NEW |