Index: third_party/protobuf/src/google/protobuf/compiler/plugin.pb.cc |
diff --git a/third_party/protobuf/src/google/protobuf/compiler/plugin.pb.cc b/third_party/protobuf/src/google/protobuf/compiler/plugin.pb.cc |
index d8dbfd9b458ee0ae6ba053f3510043cdd2339823..a2da8eee3837a1d6bae5eb9864c75342bc2afdb3 100644 |
--- a/third_party/protobuf/src/google/protobuf/compiler/plugin.pb.cc |
+++ b/third_party/protobuf/src/google/protobuf/compiler/plugin.pb.cc |
@@ -7,6 +7,7 @@ |
#include <algorithm> |
#include <google/protobuf/stubs/common.h> |
+#include <google/protobuf/stubs/port.h> |
#include <google/protobuf/stubs/once.h> |
#include <google/protobuf/io/coded_stream.h> |
#include <google/protobuf/wire_format_lite_inl.h> |
@@ -48,32 +49,32 @@ void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto() { |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, proto_file_), |
}; |
CodeGeneratorRequest_reflection_ = |
- new ::google::protobuf::internal::GeneratedMessageReflection( |
+ ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
CodeGeneratorRequest_descriptor_, |
CodeGeneratorRequest::default_instance_, |
CodeGeneratorRequest_offsets_, |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, _has_bits_[0]), |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, _unknown_fields_), |
-1, |
- ::google::protobuf::DescriptorPool::generated_pool(), |
- ::google::protobuf::MessageFactory::generated_factory(), |
- sizeof(CodeGeneratorRequest)); |
+ -1, |
+ sizeof(CodeGeneratorRequest), |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorRequest, _internal_metadata_), |
+ -1); |
CodeGeneratorResponse_descriptor_ = file->message_type(1); |
static const int CodeGeneratorResponse_offsets_[2] = { |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse, error_), |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse, file_), |
}; |
CodeGeneratorResponse_reflection_ = |
- new ::google::protobuf::internal::GeneratedMessageReflection( |
+ ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
CodeGeneratorResponse_descriptor_, |
CodeGeneratorResponse::default_instance_, |
CodeGeneratorResponse_offsets_, |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse, _has_bits_[0]), |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse, _unknown_fields_), |
-1, |
- ::google::protobuf::DescriptorPool::generated_pool(), |
- ::google::protobuf::MessageFactory::generated_factory(), |
- sizeof(CodeGeneratorResponse)); |
+ -1, |
+ sizeof(CodeGeneratorResponse), |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse, _internal_metadata_), |
+ -1); |
CodeGeneratorResponse_File_descriptor_ = CodeGeneratorResponse_descriptor_->nested_type(0); |
static const int CodeGeneratorResponse_File_offsets_[3] = { |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, name_), |
@@ -81,16 +82,16 @@ void protobuf_AssignDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto() { |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, content_), |
}; |
CodeGeneratorResponse_File_reflection_ = |
- new ::google::protobuf::internal::GeneratedMessageReflection( |
+ ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
CodeGeneratorResponse_File_descriptor_, |
CodeGeneratorResponse_File::default_instance_, |
CodeGeneratorResponse_File_offsets_, |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, _has_bits_[0]), |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, _unknown_fields_), |
-1, |
- ::google::protobuf::DescriptorPool::generated_pool(), |
- ::google::protobuf::MessageFactory::generated_factory(), |
- sizeof(CodeGeneratorResponse_File)); |
+ -1, |
+ sizeof(CodeGeneratorResponse_File), |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CodeGeneratorResponse_File, _internal_metadata_), |
+ -1); |
} |
namespace { |
@@ -104,11 +105,11 @@ inline void protobuf_AssignDescriptorsOnce() { |
void protobuf_RegisterTypes(const ::std::string&) { |
protobuf_AssignDescriptorsOnce(); |
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
- CodeGeneratorRequest_descriptor_, &CodeGeneratorRequest::default_instance()); |
+ CodeGeneratorRequest_descriptor_, &CodeGeneratorRequest::default_instance()); |
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
- CodeGeneratorResponse_descriptor_, &CodeGeneratorResponse::default_instance()); |
+ CodeGeneratorResponse_descriptor_, &CodeGeneratorResponse::default_instance()); |
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
- CodeGeneratorResponse_File_descriptor_, &CodeGeneratorResponse_File::default_instance()); |
+ CodeGeneratorResponse_File_descriptor_, &CodeGeneratorResponse_File::default_instance()); |
} |
} // namespace |
@@ -140,8 +141,8 @@ void protobuf_AddDesc_google_2fprotobuf_2fcompiler_2fplugin_2eproto() { |
"\01324.google.protobuf.compiler.CodeGenerat" |
"orResponse.File\032>\n\004File\022\014\n\004name\030\001 \001(\t\022\027\n" |
"\017insertion_point\030\002 \001(\t\022\017\n\007content\030\017 \001(\tB" |
- ",\n\034com.google.protobuf.compilerB\014PluginP" |
- "rotos", 445); |
+ "7\n\034com.google.protobuf.compilerB\014PluginP" |
+ "rotosZ\tplugin_go", 456); |
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( |
"google/protobuf/compiler/plugin.proto", &protobuf_RegisterTypes); |
CodeGeneratorRequest::default_instance_ = new CodeGeneratorRequest(); |
@@ -160,6 +161,16 @@ struct StaticDescriptorInitializer_google_2fprotobuf_2fcompiler_2fplugin_2eproto |
} |
} static_descriptor_initializer_google_2fprotobuf_2fcompiler_2fplugin_2eproto_; |
+namespace { |
+ |
+static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD; |
+static void MergeFromFail(int line) { |
+ GOOGLE_CHECK(false) << __FILE__ << ":" << line; |
+} |
+ |
+} // namespace |
+ |
+ |
// =================================================================== |
#if !defined(_MSC_VER) || _MSC_VER >= 1900 |
@@ -169,33 +180,36 @@ const int CodeGeneratorRequest::kProtoFileFieldNumber; |
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
CodeGeneratorRequest::CodeGeneratorRequest() |
- : ::google::protobuf::Message() { |
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
SharedCtor(); |
+ // @@protoc_insertion_point(constructor:google.protobuf.compiler.CodeGeneratorRequest) |
} |
void CodeGeneratorRequest::InitAsDefaultInstance() { |
} |
CodeGeneratorRequest::CodeGeneratorRequest(const CodeGeneratorRequest& from) |
- : ::google::protobuf::Message() { |
+ : ::google::protobuf::Message(), |
+ _internal_metadata_(NULL) { |
SharedCtor(); |
MergeFrom(from); |
+ // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGeneratorRequest) |
} |
void CodeGeneratorRequest::SharedCtor() { |
+ ::google::protobuf::internal::GetEmptyString(); |
_cached_size_ = 0; |
- parameter_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString()); |
+ parameter_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
::memset(_has_bits_, 0, sizeof(_has_bits_)); |
} |
CodeGeneratorRequest::~CodeGeneratorRequest() { |
+ // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorRequest) |
SharedDtor(); |
} |
void CodeGeneratorRequest::SharedDtor() { |
- if (parameter_ != &::google::protobuf::internal::GetEmptyString()) { |
- delete parameter_; |
- } |
+ parameter_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
if (this != default_instance_) { |
} |
} |
@@ -217,43 +231,49 @@ const CodeGeneratorRequest& CodeGeneratorRequest::default_instance() { |
CodeGeneratorRequest* CodeGeneratorRequest::default_instance_ = NULL; |
-CodeGeneratorRequest* CodeGeneratorRequest::New() const { |
- return new CodeGeneratorRequest; |
+CodeGeneratorRequest* CodeGeneratorRequest::New(::google::protobuf::Arena* arena) const { |
+ CodeGeneratorRequest* n = new CodeGeneratorRequest; |
+ if (arena != NULL) { |
+ arena->Own(n); |
+ } |
+ return n; |
} |
void CodeGeneratorRequest::Clear() { |
- if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { |
- if (has_parameter()) { |
- if (parameter_ != &::google::protobuf::internal::GetEmptyString()) { |
- parameter_->clear(); |
- } |
- } |
+ if (has_parameter()) { |
+ parameter_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
file_to_generate_.Clear(); |
proto_file_.Clear(); |
::memset(_has_bits_, 0, sizeof(_has_bits_)); |
- mutable_unknown_fields()->Clear(); |
+ if (_internal_metadata_.have_unknown_fields()) { |
+ mutable_unknown_fields()->Clear(); |
+ } |
} |
bool CodeGeneratorRequest::MergePartialFromCodedStream( |
::google::protobuf::io::CodedInputStream* input) { |
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false |
+#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure |
::google::protobuf::uint32 tag; |
- while ((tag = input->ReadTag()) != 0) { |
+ // @@protoc_insertion_point(parse_start:google.protobuf.compiler.CodeGeneratorRequest) |
+ for (;;) { |
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); |
+ tag = p.first; |
+ if (!p.second) goto handle_unusual; |
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
// repeated string file_to_generate = 1; |
case 1: { |
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ if (tag == 10) { |
parse_file_to_generate: |
DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
input, this->add_file_to_generate())); |
- ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
this->file_to_generate(this->file_to_generate_size() - 1).data(), |
this->file_to_generate(this->file_to_generate_size() - 1).length(), |
- ::google::protobuf::internal::WireFormat::PARSE); |
+ ::google::protobuf::internal::WireFormat::PARSE, |
+ "google.protobuf.compiler.CodeGeneratorRequest.file_to_generate"); |
} else { |
- goto handle_uninterpreted; |
+ goto handle_unusual; |
} |
if (input->ExpectTag(10)) goto parse_file_to_generate; |
if (input->ExpectTag(18)) goto parse_parameter; |
@@ -262,16 +282,16 @@ bool CodeGeneratorRequest::MergePartialFromCodedStream( |
// optional string parameter = 2; |
case 2: { |
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ if (tag == 18) { |
parse_parameter: |
DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
input, this->mutable_parameter())); |
- ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
this->parameter().data(), this->parameter().length(), |
- ::google::protobuf::internal::WireFormat::PARSE); |
+ ::google::protobuf::internal::WireFormat::PARSE, |
+ "google.protobuf.compiler.CodeGeneratorRequest.parameter"); |
} else { |
- goto handle_uninterpreted; |
+ goto handle_unusual; |
} |
if (input->ExpectTag(122)) goto parse_proto_file; |
break; |
@@ -279,114 +299,128 @@ bool CodeGeneratorRequest::MergePartialFromCodedStream( |
// repeated .google.protobuf.FileDescriptorProto proto_file = 15; |
case 15: { |
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ if (tag == 122) { |
parse_proto_file: |
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
+ DO_(input->IncrementRecursionDepth()); |
+ parse_loop_proto_file: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
input, add_proto_file())); |
} else { |
- goto handle_uninterpreted; |
+ goto handle_unusual; |
} |
- if (input->ExpectTag(122)) goto parse_proto_file; |
- if (input->ExpectAtEnd()) return true; |
+ if (input->ExpectTag(122)) goto parse_loop_proto_file; |
+ input->UnsafeDecrementRecursionDepth(); |
+ if (input->ExpectAtEnd()) goto success; |
break; |
} |
default: { |
- handle_uninterpreted: |
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ handle_unusual: |
+ if (tag == 0 || |
+ ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
- return true; |
+ goto success; |
} |
- DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
+ DO_(::google::protobuf::internal::WireFormat::SkipField( |
input, tag, mutable_unknown_fields())); |
break; |
} |
} |
} |
+success: |
+ // @@protoc_insertion_point(parse_success:google.protobuf.compiler.CodeGeneratorRequest) |
return true; |
+failure: |
+ // @@protoc_insertion_point(parse_failure:google.protobuf.compiler.CodeGeneratorRequest) |
+ return false; |
#undef DO_ |
} |
void CodeGeneratorRequest::SerializeWithCachedSizes( |
::google::protobuf::io::CodedOutputStream* output) const { |
+ // @@protoc_insertion_point(serialize_start:google.protobuf.compiler.CodeGeneratorRequest) |
// repeated string file_to_generate = 1; |
for (int i = 0; i < this->file_to_generate_size(); i++) { |
- ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
- this->file_to_generate(i).data(), this->file_to_generate(i).length(), |
- ::google::protobuf::internal::WireFormat::SERIALIZE); |
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
+ this->file_to_generate(i).data(), this->file_to_generate(i).length(), |
+ ::google::protobuf::internal::WireFormat::SERIALIZE, |
+ "google.protobuf.compiler.CodeGeneratorRequest.file_to_generate"); |
::google::protobuf::internal::WireFormatLite::WriteString( |
1, this->file_to_generate(i), output); |
} |
// optional string parameter = 2; |
if (has_parameter()) { |
- ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
this->parameter().data(), this->parameter().length(), |
- ::google::protobuf::internal::WireFormat::SERIALIZE); |
- ::google::protobuf::internal::WireFormatLite::WriteString( |
+ ::google::protobuf::internal::WireFormat::SERIALIZE, |
+ "google.protobuf.compiler.CodeGeneratorRequest.parameter"); |
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
2, this->parameter(), output); |
} |
// repeated .google.protobuf.FileDescriptorProto proto_file = 15; |
- for (int i = 0; i < this->proto_file_size(); i++) { |
+ for (unsigned int i = 0, n = this->proto_file_size(); i < n; i++) { |
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
15, this->proto_file(i), output); |
} |
- if (!unknown_fields().empty()) { |
- ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
+ if (_internal_metadata_.have_unknown_fields()) { |
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
unknown_fields(), output); |
} |
+ // @@protoc_insertion_point(serialize_end:google.protobuf.compiler.CodeGeneratorRequest) |
} |
::google::protobuf::uint8* CodeGeneratorRequest::SerializeWithCachedSizesToArray( |
::google::protobuf::uint8* target) const { |
+ // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.CodeGeneratorRequest) |
// repeated string file_to_generate = 1; |
for (int i = 0; i < this->file_to_generate_size(); i++) { |
- ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
this->file_to_generate(i).data(), this->file_to_generate(i).length(), |
- ::google::protobuf::internal::WireFormat::SERIALIZE); |
+ ::google::protobuf::internal::WireFormat::SERIALIZE, |
+ "google.protobuf.compiler.CodeGeneratorRequest.file_to_generate"); |
target = ::google::protobuf::internal::WireFormatLite:: |
WriteStringToArray(1, this->file_to_generate(i), target); |
} |
// optional string parameter = 2; |
if (has_parameter()) { |
- ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
this->parameter().data(), this->parameter().length(), |
- ::google::protobuf::internal::WireFormat::SERIALIZE); |
+ ::google::protobuf::internal::WireFormat::SERIALIZE, |
+ "google.protobuf.compiler.CodeGeneratorRequest.parameter"); |
target = |
::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
2, this->parameter(), target); |
} |
// repeated .google.protobuf.FileDescriptorProto proto_file = 15; |
- for (int i = 0; i < this->proto_file_size(); i++) { |
+ for (unsigned int i = 0, n = this->proto_file_size(); i < n; i++) { |
target = ::google::protobuf::internal::WireFormatLite:: |
WriteMessageNoVirtualToArray( |
15, this->proto_file(i), target); |
} |
- if (!unknown_fields().empty()) { |
- target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownFieldsToArray( |
+ if (_internal_metadata_.have_unknown_fields()) { |
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
unknown_fields(), target); |
} |
+ // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.compiler.CodeGeneratorRequest) |
return target; |
} |
int CodeGeneratorRequest::ByteSize() const { |
int total_size = 0; |
- if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { |
- // optional string parameter = 2; |
- if (has_parameter()) { |
- total_size += 1 + |
- ::google::protobuf::internal::WireFormatLite::StringSize( |
- this->parameter()); |
- } |
- |
+ // optional string parameter = 2; |
+ if (has_parameter()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::StringSize( |
+ this->parameter()); |
} |
+ |
// repeated string file_to_generate = 1; |
total_size += 1 * this->file_to_generate_size(); |
for (int i = 0; i < this->file_to_generate_size(); i++) { |
@@ -402,9 +436,9 @@ int CodeGeneratorRequest::ByteSize() const { |
this->proto_file(i)); |
} |
- if (!unknown_fields().empty()) { |
+ if (_internal_metadata_.have_unknown_fields()) { |
total_size += |
- ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
unknown_fields()); |
} |
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
@@ -414,10 +448,10 @@ int CodeGeneratorRequest::ByteSize() const { |
} |
void CodeGeneratorRequest::MergeFrom(const ::google::protobuf::Message& from) { |
- GOOGLE_CHECK_NE(&from, this); |
- const CodeGeneratorRequest* source = |
- ::google::protobuf::internal::dynamic_cast_if_available<const CodeGeneratorRequest*>( |
- &from); |
+ if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
+ const CodeGeneratorRequest* source = |
+ ::google::protobuf::internal::DynamicCastToGenerated<const CodeGeneratorRequest>( |
+ &from); |
if (source == NULL) { |
::google::protobuf::internal::ReflectionOps::Merge(from, this); |
} else { |
@@ -426,15 +460,18 @@ void CodeGeneratorRequest::MergeFrom(const ::google::protobuf::Message& from) { |
} |
void CodeGeneratorRequest::MergeFrom(const CodeGeneratorRequest& from) { |
- GOOGLE_CHECK_NE(&from, this); |
+ if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
file_to_generate_.MergeFrom(from.file_to_generate_); |
proto_file_.MergeFrom(from.proto_file_); |
if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { |
if (from.has_parameter()) { |
- set_parameter(from.parameter()); |
+ set_has_parameter(); |
+ parameter_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.parameter_); |
} |
} |
- mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+ if (from._internal_metadata_.have_unknown_fields()) { |
+ mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+ } |
} |
void CodeGeneratorRequest::CopyFrom(const ::google::protobuf::Message& from) { |
@@ -451,21 +488,21 @@ void CodeGeneratorRequest::CopyFrom(const CodeGeneratorRequest& from) { |
bool CodeGeneratorRequest::IsInitialized() const { |
- for (int i = 0; i < proto_file_size(); i++) { |
- if (!this->proto_file(i).IsInitialized()) return false; |
- } |
+ if (!::google::protobuf::internal::AllAreInitialized(this->proto_file())) return false; |
return true; |
} |
void CodeGeneratorRequest::Swap(CodeGeneratorRequest* other) { |
- if (other != this) { |
- file_to_generate_.Swap(&other->file_to_generate_); |
- std::swap(parameter_, other->parameter_); |
- proto_file_.Swap(&other->proto_file_); |
- std::swap(_has_bits_[0], other->_has_bits_[0]); |
- _unknown_fields_.Swap(&other->_unknown_fields_); |
- std::swap(_cached_size_, other->_cached_size_); |
- } |
+ if (other == this) return; |
+ InternalSwap(other); |
+} |
+void CodeGeneratorRequest::InternalSwap(CodeGeneratorRequest* other) { |
+ file_to_generate_.UnsafeArenaSwap(&other->file_to_generate_); |
+ parameter_.Swap(&other->parameter_); |
+ proto_file_.UnsafeArenaSwap(&other->proto_file_); |
+ std::swap(_has_bits_[0], other->_has_bits_[0]); |
+ _internal_metadata_.Swap(&other->_internal_metadata_); |
+ std::swap(_cached_size_, other->_cached_size_); |
} |
::google::protobuf::Metadata CodeGeneratorRequest::GetMetadata() const { |
@@ -476,6 +513,147 @@ void CodeGeneratorRequest::Swap(CodeGeneratorRequest* other) { |
return metadata; |
} |
+#if PROTOBUF_INLINE_NOT_IN_HEADERS |
+// CodeGeneratorRequest |
+ |
+// repeated string file_to_generate = 1; |
+int CodeGeneratorRequest::file_to_generate_size() const { |
+ return file_to_generate_.size(); |
+} |
+void CodeGeneratorRequest::clear_file_to_generate() { |
+ file_to_generate_.Clear(); |
+} |
+ const ::std::string& CodeGeneratorRequest::file_to_generate(int index) const { |
+ // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate) |
+ return file_to_generate_.Get(index); |
+} |
+ ::std::string* CodeGeneratorRequest::mutable_file_to_generate(int index) { |
+ // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate) |
+ return file_to_generate_.Mutable(index); |
+} |
+ void CodeGeneratorRequest::set_file_to_generate(int index, const ::std::string& value) { |
+ // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate) |
+ file_to_generate_.Mutable(index)->assign(value); |
+} |
+ void CodeGeneratorRequest::set_file_to_generate(int index, const char* value) { |
+ file_to_generate_.Mutable(index)->assign(value); |
+ // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate) |
+} |
+ void CodeGeneratorRequest::set_file_to_generate(int index, const char* value, size_t size) { |
+ file_to_generate_.Mutable(index)->assign( |
+ reinterpret_cast<const char*>(value), size); |
+ // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate) |
+} |
+ ::std::string* CodeGeneratorRequest::add_file_to_generate() { |
+ return file_to_generate_.Add(); |
+} |
+ void CodeGeneratorRequest::add_file_to_generate(const ::std::string& value) { |
+ file_to_generate_.Add()->assign(value); |
+ // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate) |
+} |
+ void CodeGeneratorRequest::add_file_to_generate(const char* value) { |
+ file_to_generate_.Add()->assign(value); |
+ // @@protoc_insertion_point(field_add_char:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate) |
+} |
+ void CodeGeneratorRequest::add_file_to_generate(const char* value, size_t size) { |
+ file_to_generate_.Add()->assign(reinterpret_cast<const char*>(value), size); |
+ // @@protoc_insertion_point(field_add_pointer:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate) |
+} |
+ const ::google::protobuf::RepeatedPtrField< ::std::string>& |
+CodeGeneratorRequest::file_to_generate() const { |
+ // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate) |
+ return file_to_generate_; |
+} |
+ ::google::protobuf::RepeatedPtrField< ::std::string>* |
+CodeGeneratorRequest::mutable_file_to_generate() { |
+ // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate) |
+ return &file_to_generate_; |
+} |
+ |
+// optional string parameter = 2; |
+bool CodeGeneratorRequest::has_parameter() const { |
+ return (_has_bits_[0] & 0x00000002u) != 0; |
+} |
+void CodeGeneratorRequest::set_has_parameter() { |
+ _has_bits_[0] |= 0x00000002u; |
+} |
+void CodeGeneratorRequest::clear_has_parameter() { |
+ _has_bits_[0] &= ~0x00000002u; |
+} |
+void CodeGeneratorRequest::clear_parameter() { |
+ parameter_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
+ clear_has_parameter(); |
+} |
+ const ::std::string& CodeGeneratorRequest::parameter() const { |
+ // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.parameter) |
+ return parameter_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
+} |
+ void CodeGeneratorRequest::set_parameter(const ::std::string& value) { |
+ set_has_parameter(); |
+ parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
+ // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRequest.parameter) |
+} |
+ void CodeGeneratorRequest::set_parameter(const char* value) { |
+ set_has_parameter(); |
+ parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
+ // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorRequest.parameter) |
+} |
+ void CodeGeneratorRequest::set_parameter(const char* value, size_t size) { |
+ set_has_parameter(); |
+ parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
+ ::std::string(reinterpret_cast<const char*>(value), size)); |
+ // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorRequest.parameter) |
+} |
+ ::std::string* CodeGeneratorRequest::mutable_parameter() { |
+ set_has_parameter(); |
+ // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorRequest.parameter) |
+ return parameter_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
+} |
+ ::std::string* CodeGeneratorRequest::release_parameter() { |
+ clear_has_parameter(); |
+ return parameter_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
+} |
+ void CodeGeneratorRequest::set_allocated_parameter(::std::string* parameter) { |
+ if (parameter != NULL) { |
+ set_has_parameter(); |
+ } else { |
+ clear_has_parameter(); |
+ } |
+ parameter_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), parameter); |
+ // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorRequest.parameter) |
+} |
+ |
+// repeated .google.protobuf.FileDescriptorProto proto_file = 15; |
+int CodeGeneratorRequest::proto_file_size() const { |
+ return proto_file_.size(); |
+} |
+void CodeGeneratorRequest::clear_proto_file() { |
+ proto_file_.Clear(); |
+} |
+const ::google::protobuf::FileDescriptorProto& CodeGeneratorRequest::proto_file(int index) const { |
+ // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.proto_file) |
+ return proto_file_.Get(index); |
+} |
+::google::protobuf::FileDescriptorProto* CodeGeneratorRequest::mutable_proto_file(int index) { |
+ // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorRequest.proto_file) |
+ return proto_file_.Mutable(index); |
+} |
+::google::protobuf::FileDescriptorProto* CodeGeneratorRequest::add_proto_file() { |
+ // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorRequest.proto_file) |
+ return proto_file_.Add(); |
+} |
+::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >* |
+CodeGeneratorRequest::mutable_proto_file() { |
+ // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGeneratorRequest.proto_file) |
+ return &proto_file_; |
+} |
+const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >& |
+CodeGeneratorRequest::proto_file() const { |
+ // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorRequest.proto_file) |
+ return proto_file_; |
+} |
+ |
+#endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
// =================================================================== |
@@ -486,41 +664,40 @@ const int CodeGeneratorResponse_File::kContentFieldNumber; |
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
CodeGeneratorResponse_File::CodeGeneratorResponse_File() |
- : ::google::protobuf::Message() { |
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
SharedCtor(); |
+ // @@protoc_insertion_point(constructor:google.protobuf.compiler.CodeGeneratorResponse.File) |
} |
void CodeGeneratorResponse_File::InitAsDefaultInstance() { |
} |
CodeGeneratorResponse_File::CodeGeneratorResponse_File(const CodeGeneratorResponse_File& from) |
- : ::google::protobuf::Message() { |
+ : ::google::protobuf::Message(), |
+ _internal_metadata_(NULL) { |
SharedCtor(); |
MergeFrom(from); |
+ // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGeneratorResponse.File) |
} |
void CodeGeneratorResponse_File::SharedCtor() { |
+ ::google::protobuf::internal::GetEmptyString(); |
_cached_size_ = 0; |
- name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString()); |
- insertion_point_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString()); |
- content_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString()); |
+ name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
+ insertion_point_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
+ content_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
::memset(_has_bits_, 0, sizeof(_has_bits_)); |
} |
CodeGeneratorResponse_File::~CodeGeneratorResponse_File() { |
+ // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorResponse.File) |
SharedDtor(); |
} |
void CodeGeneratorResponse_File::SharedDtor() { |
- if (name_ != &::google::protobuf::internal::GetEmptyString()) { |
- delete name_; |
- } |
- if (insertion_point_ != &::google::protobuf::internal::GetEmptyString()) { |
- delete insertion_point_; |
- } |
- if (content_ != &::google::protobuf::internal::GetEmptyString()) { |
- delete content_; |
- } |
+ name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
+ insertion_point_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
+ content_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
if (this != default_instance_) { |
} |
} |
@@ -542,49 +719,53 @@ const CodeGeneratorResponse_File& CodeGeneratorResponse_File::default_instance() |
CodeGeneratorResponse_File* CodeGeneratorResponse_File::default_instance_ = NULL; |
-CodeGeneratorResponse_File* CodeGeneratorResponse_File::New() const { |
- return new CodeGeneratorResponse_File; |
+CodeGeneratorResponse_File* CodeGeneratorResponse_File::New(::google::protobuf::Arena* arena) const { |
+ CodeGeneratorResponse_File* n = new CodeGeneratorResponse_File; |
+ if (arena != NULL) { |
+ arena->Own(n); |
+ } |
+ return n; |
} |
void CodeGeneratorResponse_File::Clear() { |
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ if (_has_bits_[0 / 32] & 7u) { |
if (has_name()) { |
- if (name_ != &::google::protobuf::internal::GetEmptyString()) { |
- name_->clear(); |
- } |
+ name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
if (has_insertion_point()) { |
- if (insertion_point_ != &::google::protobuf::internal::GetEmptyString()) { |
- insertion_point_->clear(); |
- } |
+ insertion_point_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
if (has_content()) { |
- if (content_ != &::google::protobuf::internal::GetEmptyString()) { |
- content_->clear(); |
- } |
+ content_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
} |
::memset(_has_bits_, 0, sizeof(_has_bits_)); |
- mutable_unknown_fields()->Clear(); |
+ if (_internal_metadata_.have_unknown_fields()) { |
+ mutable_unknown_fields()->Clear(); |
+ } |
} |
bool CodeGeneratorResponse_File::MergePartialFromCodedStream( |
::google::protobuf::io::CodedInputStream* input) { |
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false |
+#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure |
::google::protobuf::uint32 tag; |
- while ((tag = input->ReadTag()) != 0) { |
+ // @@protoc_insertion_point(parse_start:google.protobuf.compiler.CodeGeneratorResponse.File) |
+ for (;;) { |
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); |
+ tag = p.first; |
+ if (!p.second) goto handle_unusual; |
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
// optional string name = 1; |
case 1: { |
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ if (tag == 10) { |
DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
input, this->mutable_name())); |
- ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
this->name().data(), this->name().length(), |
- ::google::protobuf::internal::WireFormat::PARSE); |
+ ::google::protobuf::internal::WireFormat::PARSE, |
+ "google.protobuf.compiler.CodeGeneratorResponse.File.name"); |
} else { |
- goto handle_uninterpreted; |
+ goto handle_unusual; |
} |
if (input->ExpectTag(18)) goto parse_insertion_point; |
break; |
@@ -592,16 +773,16 @@ bool CodeGeneratorResponse_File::MergePartialFromCodedStream( |
// optional string insertion_point = 2; |
case 2: { |
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ if (tag == 18) { |
parse_insertion_point: |
DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
input, this->mutable_insertion_point())); |
- ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
this->insertion_point().data(), this->insertion_point().length(), |
- ::google::protobuf::internal::WireFormat::PARSE); |
+ ::google::protobuf::internal::WireFormat::PARSE, |
+ "google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point"); |
} else { |
- goto handle_uninterpreted; |
+ goto handle_unusual; |
} |
if (input->ExpectTag(122)) goto parse_content; |
break; |
@@ -609,79 +790,92 @@ bool CodeGeneratorResponse_File::MergePartialFromCodedStream( |
// optional string content = 15; |
case 15: { |
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ if (tag == 122) { |
parse_content: |
DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
input, this->mutable_content())); |
- ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
this->content().data(), this->content().length(), |
- ::google::protobuf::internal::WireFormat::PARSE); |
+ ::google::protobuf::internal::WireFormat::PARSE, |
+ "google.protobuf.compiler.CodeGeneratorResponse.File.content"); |
} else { |
- goto handle_uninterpreted; |
+ goto handle_unusual; |
} |
- if (input->ExpectAtEnd()) return true; |
+ if (input->ExpectAtEnd()) goto success; |
break; |
} |
default: { |
- handle_uninterpreted: |
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ handle_unusual: |
+ if (tag == 0 || |
+ ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
- return true; |
+ goto success; |
} |
- DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
+ DO_(::google::protobuf::internal::WireFormat::SkipField( |
input, tag, mutable_unknown_fields())); |
break; |
} |
} |
} |
+success: |
+ // @@protoc_insertion_point(parse_success:google.protobuf.compiler.CodeGeneratorResponse.File) |
return true; |
+failure: |
+ // @@protoc_insertion_point(parse_failure:google.protobuf.compiler.CodeGeneratorResponse.File) |
+ return false; |
#undef DO_ |
} |
void CodeGeneratorResponse_File::SerializeWithCachedSizes( |
::google::protobuf::io::CodedOutputStream* output) const { |
+ // @@protoc_insertion_point(serialize_start:google.protobuf.compiler.CodeGeneratorResponse.File) |
// optional string name = 1; |
if (has_name()) { |
- ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
this->name().data(), this->name().length(), |
- ::google::protobuf::internal::WireFormat::SERIALIZE); |
- ::google::protobuf::internal::WireFormatLite::WriteString( |
+ ::google::protobuf::internal::WireFormat::SERIALIZE, |
+ "google.protobuf.compiler.CodeGeneratorResponse.File.name"); |
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
1, this->name(), output); |
} |
// optional string insertion_point = 2; |
if (has_insertion_point()) { |
- ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
this->insertion_point().data(), this->insertion_point().length(), |
- ::google::protobuf::internal::WireFormat::SERIALIZE); |
- ::google::protobuf::internal::WireFormatLite::WriteString( |
+ ::google::protobuf::internal::WireFormat::SERIALIZE, |
+ "google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point"); |
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
2, this->insertion_point(), output); |
} |
// optional string content = 15; |
if (has_content()) { |
- ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
this->content().data(), this->content().length(), |
- ::google::protobuf::internal::WireFormat::SERIALIZE); |
- ::google::protobuf::internal::WireFormatLite::WriteString( |
+ ::google::protobuf::internal::WireFormat::SERIALIZE, |
+ "google.protobuf.compiler.CodeGeneratorResponse.File.content"); |
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
15, this->content(), output); |
} |
- if (!unknown_fields().empty()) { |
- ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
+ if (_internal_metadata_.have_unknown_fields()) { |
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
unknown_fields(), output); |
} |
+ // @@protoc_insertion_point(serialize_end:google.protobuf.compiler.CodeGeneratorResponse.File) |
} |
::google::protobuf::uint8* CodeGeneratorResponse_File::SerializeWithCachedSizesToArray( |
::google::protobuf::uint8* target) const { |
+ // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.CodeGeneratorResponse.File) |
// optional string name = 1; |
if (has_name()) { |
- ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
this->name().data(), this->name().length(), |
- ::google::protobuf::internal::WireFormat::SERIALIZE); |
+ ::google::protobuf::internal::WireFormat::SERIALIZE, |
+ "google.protobuf.compiler.CodeGeneratorResponse.File.name"); |
target = |
::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
1, this->name(), target); |
@@ -689,9 +883,10 @@ void CodeGeneratorResponse_File::SerializeWithCachedSizes( |
// optional string insertion_point = 2; |
if (has_insertion_point()) { |
- ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
this->insertion_point().data(), this->insertion_point().length(), |
- ::google::protobuf::internal::WireFormat::SERIALIZE); |
+ ::google::protobuf::internal::WireFormat::SERIALIZE, |
+ "google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point"); |
target = |
::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
2, this->insertion_point(), target); |
@@ -699,25 +894,27 @@ void CodeGeneratorResponse_File::SerializeWithCachedSizes( |
// optional string content = 15; |
if (has_content()) { |
- ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
this->content().data(), this->content().length(), |
- ::google::protobuf::internal::WireFormat::SERIALIZE); |
+ ::google::protobuf::internal::WireFormat::SERIALIZE, |
+ "google.protobuf.compiler.CodeGeneratorResponse.File.content"); |
target = |
::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
15, this->content(), target); |
} |
- if (!unknown_fields().empty()) { |
- target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownFieldsToArray( |
+ if (_internal_metadata_.have_unknown_fields()) { |
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
unknown_fields(), target); |
} |
+ // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.compiler.CodeGeneratorResponse.File) |
return target; |
} |
int CodeGeneratorResponse_File::ByteSize() const { |
int total_size = 0; |
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ if (_has_bits_[0 / 32] & 7u) { |
// optional string name = 1; |
if (has_name()) { |
total_size += 1 + |
@@ -740,9 +937,9 @@ int CodeGeneratorResponse_File::ByteSize() const { |
} |
} |
- if (!unknown_fields().empty()) { |
+ if (_internal_metadata_.have_unknown_fields()) { |
total_size += |
- ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
unknown_fields()); |
} |
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
@@ -752,10 +949,10 @@ int CodeGeneratorResponse_File::ByteSize() const { |
} |
void CodeGeneratorResponse_File::MergeFrom(const ::google::protobuf::Message& from) { |
- GOOGLE_CHECK_NE(&from, this); |
- const CodeGeneratorResponse_File* source = |
- ::google::protobuf::internal::dynamic_cast_if_available<const CodeGeneratorResponse_File*>( |
- &from); |
+ if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
+ const CodeGeneratorResponse_File* source = |
+ ::google::protobuf::internal::DynamicCastToGenerated<const CodeGeneratorResponse_File>( |
+ &from); |
if (source == NULL) { |
::google::protobuf::internal::ReflectionOps::Merge(from, this); |
} else { |
@@ -764,19 +961,24 @@ void CodeGeneratorResponse_File::MergeFrom(const ::google::protobuf::Message& fr |
} |
void CodeGeneratorResponse_File::MergeFrom(const CodeGeneratorResponse_File& from) { |
- GOOGLE_CHECK_NE(&from, this); |
+ if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
if (from.has_name()) { |
- set_name(from.name()); |
+ set_has_name(); |
+ name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
} |
if (from.has_insertion_point()) { |
- set_insertion_point(from.insertion_point()); |
+ set_has_insertion_point(); |
+ insertion_point_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.insertion_point_); |
} |
if (from.has_content()) { |
- set_content(from.content()); |
+ set_has_content(); |
+ content_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.content_); |
} |
} |
- mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+ if (from._internal_metadata_.have_unknown_fields()) { |
+ mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+ } |
} |
void CodeGeneratorResponse_File::CopyFrom(const ::google::protobuf::Message& from) { |
@@ -797,14 +999,16 @@ bool CodeGeneratorResponse_File::IsInitialized() const { |
} |
void CodeGeneratorResponse_File::Swap(CodeGeneratorResponse_File* other) { |
- if (other != this) { |
- std::swap(name_, other->name_); |
- std::swap(insertion_point_, other->insertion_point_); |
- std::swap(content_, other->content_); |
- std::swap(_has_bits_[0], other->_has_bits_[0]); |
- _unknown_fields_.Swap(&other->_unknown_fields_); |
- std::swap(_cached_size_, other->_cached_size_); |
- } |
+ if (other == this) return; |
+ InternalSwap(other); |
+} |
+void CodeGeneratorResponse_File::InternalSwap(CodeGeneratorResponse_File* other) { |
+ name_.Swap(&other->name_); |
+ insertion_point_.Swap(&other->insertion_point_); |
+ content_.Swap(&other->content_); |
+ std::swap(_has_bits_[0], other->_has_bits_[0]); |
+ _internal_metadata_.Swap(&other->_internal_metadata_); |
+ std::swap(_cached_size_, other->_cached_size_); |
} |
::google::protobuf::Metadata CodeGeneratorResponse_File::GetMetadata() const { |
@@ -824,33 +1028,36 @@ const int CodeGeneratorResponse::kFileFieldNumber; |
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
CodeGeneratorResponse::CodeGeneratorResponse() |
- : ::google::protobuf::Message() { |
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
SharedCtor(); |
+ // @@protoc_insertion_point(constructor:google.protobuf.compiler.CodeGeneratorResponse) |
} |
void CodeGeneratorResponse::InitAsDefaultInstance() { |
} |
CodeGeneratorResponse::CodeGeneratorResponse(const CodeGeneratorResponse& from) |
- : ::google::protobuf::Message() { |
+ : ::google::protobuf::Message(), |
+ _internal_metadata_(NULL) { |
SharedCtor(); |
MergeFrom(from); |
+ // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGeneratorResponse) |
} |
void CodeGeneratorResponse::SharedCtor() { |
+ ::google::protobuf::internal::GetEmptyString(); |
_cached_size_ = 0; |
- error_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString()); |
+ error_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
::memset(_has_bits_, 0, sizeof(_has_bits_)); |
} |
CodeGeneratorResponse::~CodeGeneratorResponse() { |
+ // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorResponse) |
SharedDtor(); |
} |
void CodeGeneratorResponse::SharedDtor() { |
- if (error_ != &::google::protobuf::internal::GetEmptyString()) { |
- delete error_; |
- } |
+ error_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
if (this != default_instance_) { |
} |
} |
@@ -872,40 +1079,46 @@ const CodeGeneratorResponse& CodeGeneratorResponse::default_instance() { |
CodeGeneratorResponse* CodeGeneratorResponse::default_instance_ = NULL; |
-CodeGeneratorResponse* CodeGeneratorResponse::New() const { |
- return new CodeGeneratorResponse; |
+CodeGeneratorResponse* CodeGeneratorResponse::New(::google::protobuf::Arena* arena) const { |
+ CodeGeneratorResponse* n = new CodeGeneratorResponse; |
+ if (arena != NULL) { |
+ arena->Own(n); |
+ } |
+ return n; |
} |
void CodeGeneratorResponse::Clear() { |
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
- if (has_error()) { |
- if (error_ != &::google::protobuf::internal::GetEmptyString()) { |
- error_->clear(); |
- } |
- } |
+ if (has_error()) { |
+ error_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
file_.Clear(); |
::memset(_has_bits_, 0, sizeof(_has_bits_)); |
- mutable_unknown_fields()->Clear(); |
+ if (_internal_metadata_.have_unknown_fields()) { |
+ mutable_unknown_fields()->Clear(); |
+ } |
} |
bool CodeGeneratorResponse::MergePartialFromCodedStream( |
::google::protobuf::io::CodedInputStream* input) { |
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false |
+#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure |
::google::protobuf::uint32 tag; |
- while ((tag = input->ReadTag()) != 0) { |
+ // @@protoc_insertion_point(parse_start:google.protobuf.compiler.CodeGeneratorResponse) |
+ for (;;) { |
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); |
+ tag = p.first; |
+ if (!p.second) goto handle_unusual; |
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
// optional string error = 1; |
case 1: { |
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ if (tag == 10) { |
DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
input, this->mutable_error())); |
- ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
this->error().data(), this->error().length(), |
- ::google::protobuf::internal::WireFormat::PARSE); |
+ ::google::protobuf::internal::WireFormat::PARSE, |
+ "google.protobuf.compiler.CodeGeneratorResponse.error"); |
} else { |
- goto handle_uninterpreted; |
+ goto handle_unusual; |
} |
if (input->ExpectTag(122)) goto parse_file; |
break; |
@@ -913,96 +1126,108 @@ bool CodeGeneratorResponse::MergePartialFromCodedStream( |
// repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
case 15: { |
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ if (tag == 122) { |
parse_file: |
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
+ DO_(input->IncrementRecursionDepth()); |
+ parse_loop_file: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
input, add_file())); |
} else { |
- goto handle_uninterpreted; |
+ goto handle_unusual; |
} |
- if (input->ExpectTag(122)) goto parse_file; |
- if (input->ExpectAtEnd()) return true; |
+ if (input->ExpectTag(122)) goto parse_loop_file; |
+ input->UnsafeDecrementRecursionDepth(); |
+ if (input->ExpectAtEnd()) goto success; |
break; |
} |
default: { |
- handle_uninterpreted: |
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ handle_unusual: |
+ if (tag == 0 || |
+ ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
- return true; |
+ goto success; |
} |
- DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
+ DO_(::google::protobuf::internal::WireFormat::SkipField( |
input, tag, mutable_unknown_fields())); |
break; |
} |
} |
} |
+success: |
+ // @@protoc_insertion_point(parse_success:google.protobuf.compiler.CodeGeneratorResponse) |
return true; |
+failure: |
+ // @@protoc_insertion_point(parse_failure:google.protobuf.compiler.CodeGeneratorResponse) |
+ return false; |
#undef DO_ |
} |
void CodeGeneratorResponse::SerializeWithCachedSizes( |
::google::protobuf::io::CodedOutputStream* output) const { |
+ // @@protoc_insertion_point(serialize_start:google.protobuf.compiler.CodeGeneratorResponse) |
// optional string error = 1; |
if (has_error()) { |
- ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
this->error().data(), this->error().length(), |
- ::google::protobuf::internal::WireFormat::SERIALIZE); |
- ::google::protobuf::internal::WireFormatLite::WriteString( |
+ ::google::protobuf::internal::WireFormat::SERIALIZE, |
+ "google.protobuf.compiler.CodeGeneratorResponse.error"); |
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
1, this->error(), output); |
} |
// repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
- for (int i = 0; i < this->file_size(); i++) { |
+ for (unsigned int i = 0, n = this->file_size(); i < n; i++) { |
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
15, this->file(i), output); |
} |
- if (!unknown_fields().empty()) { |
- ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
+ if (_internal_metadata_.have_unknown_fields()) { |
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
unknown_fields(), output); |
} |
+ // @@protoc_insertion_point(serialize_end:google.protobuf.compiler.CodeGeneratorResponse) |
} |
::google::protobuf::uint8* CodeGeneratorResponse::SerializeWithCachedSizesToArray( |
::google::protobuf::uint8* target) const { |
+ // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.CodeGeneratorResponse) |
// optional string error = 1; |
if (has_error()) { |
- ::google::protobuf::internal::WireFormat::VerifyUTF8String( |
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
this->error().data(), this->error().length(), |
- ::google::protobuf::internal::WireFormat::SERIALIZE); |
+ ::google::protobuf::internal::WireFormat::SERIALIZE, |
+ "google.protobuf.compiler.CodeGeneratorResponse.error"); |
target = |
::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
1, this->error(), target); |
} |
// repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
- for (int i = 0; i < this->file_size(); i++) { |
+ for (unsigned int i = 0, n = this->file_size(); i < n; i++) { |
target = ::google::protobuf::internal::WireFormatLite:: |
WriteMessageNoVirtualToArray( |
15, this->file(i), target); |
} |
- if (!unknown_fields().empty()) { |
- target = ::google::protobuf::internal::WireFormatLite::SerializeUnknownFieldsToArray( |
+ if (_internal_metadata_.have_unknown_fields()) { |
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
unknown_fields(), target); |
} |
+ // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.compiler.CodeGeneratorResponse) |
return target; |
} |
int CodeGeneratorResponse::ByteSize() const { |
int total_size = 0; |
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
- // optional string error = 1; |
- if (has_error()) { |
- total_size += 1 + |
- ::google::protobuf::internal::WireFormatLite::StringSize( |
- this->error()); |
- } |
- |
+ // optional string error = 1; |
+ if (has_error()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::StringSize( |
+ this->error()); |
} |
+ |
// repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
total_size += 1 * this->file_size(); |
for (int i = 0; i < this->file_size(); i++) { |
@@ -1011,9 +1236,9 @@ int CodeGeneratorResponse::ByteSize() const { |
this->file(i)); |
} |
- if (!unknown_fields().empty()) { |
+ if (_internal_metadata_.have_unknown_fields()) { |
total_size += |
- ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
unknown_fields()); |
} |
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
@@ -1023,10 +1248,10 @@ int CodeGeneratorResponse::ByteSize() const { |
} |
void CodeGeneratorResponse::MergeFrom(const ::google::protobuf::Message& from) { |
- GOOGLE_CHECK_NE(&from, this); |
- const CodeGeneratorResponse* source = |
- ::google::protobuf::internal::dynamic_cast_if_available<const CodeGeneratorResponse*>( |
- &from); |
+ if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
+ const CodeGeneratorResponse* source = |
+ ::google::protobuf::internal::DynamicCastToGenerated<const CodeGeneratorResponse>( |
+ &from); |
if (source == NULL) { |
::google::protobuf::internal::ReflectionOps::Merge(from, this); |
} else { |
@@ -1035,14 +1260,17 @@ void CodeGeneratorResponse::MergeFrom(const ::google::protobuf::Message& from) { |
} |
void CodeGeneratorResponse::MergeFrom(const CodeGeneratorResponse& from) { |
- GOOGLE_CHECK_NE(&from, this); |
+ if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
file_.MergeFrom(from.file_); |
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
if (from.has_error()) { |
- set_error(from.error()); |
+ set_has_error(); |
+ error_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_); |
} |
} |
- mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+ if (from._internal_metadata_.have_unknown_fields()) { |
+ mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+ } |
} |
void CodeGeneratorResponse::CopyFrom(const ::google::protobuf::Message& from) { |
@@ -1063,13 +1291,15 @@ bool CodeGeneratorResponse::IsInitialized() const { |
} |
void CodeGeneratorResponse::Swap(CodeGeneratorResponse* other) { |
- if (other != this) { |
- std::swap(error_, other->error_); |
- file_.Swap(&other->file_); |
- std::swap(_has_bits_[0], other->_has_bits_[0]); |
- _unknown_fields_.Swap(&other->_unknown_fields_); |
- std::swap(_cached_size_, other->_cached_size_); |
- } |
+ if (other == this) return; |
+ InternalSwap(other); |
+} |
+void CodeGeneratorResponse::InternalSwap(CodeGeneratorResponse* other) { |
+ error_.Swap(&other->error_); |
+ file_.UnsafeArenaSwap(&other->file_); |
+ std::swap(_has_bits_[0], other->_has_bits_[0]); |
+ _internal_metadata_.Swap(&other->_internal_metadata_); |
+ std::swap(_cached_size_, other->_cached_size_); |
} |
::google::protobuf::Metadata CodeGeneratorResponse::GetMetadata() const { |
@@ -1080,6 +1310,256 @@ void CodeGeneratorResponse::Swap(CodeGeneratorResponse* other) { |
return metadata; |
} |
+#if PROTOBUF_INLINE_NOT_IN_HEADERS |
+// CodeGeneratorResponse_File |
+ |
+// optional string name = 1; |
+bool CodeGeneratorResponse_File::has_name() const { |
+ return (_has_bits_[0] & 0x00000001u) != 0; |
+} |
+void CodeGeneratorResponse_File::set_has_name() { |
+ _has_bits_[0] |= 0x00000001u; |
+} |
+void CodeGeneratorResponse_File::clear_has_name() { |
+ _has_bits_[0] &= ~0x00000001u; |
+} |
+void CodeGeneratorResponse_File::clear_name() { |
+ name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
+ clear_has_name(); |
+} |
+ const ::std::string& CodeGeneratorResponse_File::name() const { |
+ // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.File.name) |
+ return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
+} |
+ void CodeGeneratorResponse_File::set_name(const ::std::string& value) { |
+ set_has_name(); |
+ name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
+ // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.File.name) |
+} |
+ void CodeGeneratorResponse_File::set_name(const char* value) { |
+ set_has_name(); |
+ name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
+ // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorResponse.File.name) |
+} |
+ void CodeGeneratorResponse_File::set_name(const char* value, size_t size) { |
+ set_has_name(); |
+ name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
+ ::std::string(reinterpret_cast<const char*>(value), size)); |
+ // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorResponse.File.name) |
+} |
+ ::std::string* CodeGeneratorResponse_File::mutable_name() { |
+ set_has_name(); |
+ // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.File.name) |
+ return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
+} |
+ ::std::string* CodeGeneratorResponse_File::release_name() { |
+ clear_has_name(); |
+ return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
+} |
+ void CodeGeneratorResponse_File::set_allocated_name(::std::string* name) { |
+ if (name != NULL) { |
+ set_has_name(); |
+ } else { |
+ clear_has_name(); |
+ } |
+ name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); |
+ // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.File.name) |
+} |
+ |
+// optional string insertion_point = 2; |
+bool CodeGeneratorResponse_File::has_insertion_point() const { |
+ return (_has_bits_[0] & 0x00000002u) != 0; |
+} |
+void CodeGeneratorResponse_File::set_has_insertion_point() { |
+ _has_bits_[0] |= 0x00000002u; |
+} |
+void CodeGeneratorResponse_File::clear_has_insertion_point() { |
+ _has_bits_[0] &= ~0x00000002u; |
+} |
+void CodeGeneratorResponse_File::clear_insertion_point() { |
+ insertion_point_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
+ clear_has_insertion_point(); |
+} |
+ const ::std::string& CodeGeneratorResponse_File::insertion_point() const { |
+ // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point) |
+ return insertion_point_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
+} |
+ void CodeGeneratorResponse_File::set_insertion_point(const ::std::string& value) { |
+ set_has_insertion_point(); |
+ insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
+ // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point) |
+} |
+ void CodeGeneratorResponse_File::set_insertion_point(const char* value) { |
+ set_has_insertion_point(); |
+ insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
+ // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point) |
+} |
+ void CodeGeneratorResponse_File::set_insertion_point(const char* value, size_t size) { |
+ set_has_insertion_point(); |
+ insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
+ ::std::string(reinterpret_cast<const char*>(value), size)); |
+ // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point) |
+} |
+ ::std::string* CodeGeneratorResponse_File::mutable_insertion_point() { |
+ set_has_insertion_point(); |
+ // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point) |
+ return insertion_point_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
+} |
+ ::std::string* CodeGeneratorResponse_File::release_insertion_point() { |
+ clear_has_insertion_point(); |
+ return insertion_point_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
+} |
+ void CodeGeneratorResponse_File::set_allocated_insertion_point(::std::string* insertion_point) { |
+ if (insertion_point != NULL) { |
+ set_has_insertion_point(); |
+ } else { |
+ clear_has_insertion_point(); |
+ } |
+ insertion_point_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), insertion_point); |
+ // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point) |
+} |
+ |
+// optional string content = 15; |
+bool CodeGeneratorResponse_File::has_content() const { |
+ return (_has_bits_[0] & 0x00000004u) != 0; |
+} |
+void CodeGeneratorResponse_File::set_has_content() { |
+ _has_bits_[0] |= 0x00000004u; |
+} |
+void CodeGeneratorResponse_File::clear_has_content() { |
+ _has_bits_[0] &= ~0x00000004u; |
+} |
+void CodeGeneratorResponse_File::clear_content() { |
+ content_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
+ clear_has_content(); |
+} |
+ const ::std::string& CodeGeneratorResponse_File::content() const { |
+ // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.File.content) |
+ return content_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
+} |
+ void CodeGeneratorResponse_File::set_content(const ::std::string& value) { |
+ set_has_content(); |
+ content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
+ // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.File.content) |
+} |
+ void CodeGeneratorResponse_File::set_content(const char* value) { |
+ set_has_content(); |
+ content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
+ // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorResponse.File.content) |
+} |
+ void CodeGeneratorResponse_File::set_content(const char* value, size_t size) { |
+ set_has_content(); |
+ content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
+ ::std::string(reinterpret_cast<const char*>(value), size)); |
+ // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorResponse.File.content) |
+} |
+ ::std::string* CodeGeneratorResponse_File::mutable_content() { |
+ set_has_content(); |
+ // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.File.content) |
+ return content_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
+} |
+ ::std::string* CodeGeneratorResponse_File::release_content() { |
+ clear_has_content(); |
+ return content_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
+} |
+ void CodeGeneratorResponse_File::set_allocated_content(::std::string* content) { |
+ if (content != NULL) { |
+ set_has_content(); |
+ } else { |
+ clear_has_content(); |
+ } |
+ content_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), content); |
+ // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.File.content) |
+} |
+ |
+// ------------------------------------------------------------------- |
+ |
+// CodeGeneratorResponse |
+ |
+// optional string error = 1; |
+bool CodeGeneratorResponse::has_error() const { |
+ return (_has_bits_[0] & 0x00000001u) != 0; |
+} |
+void CodeGeneratorResponse::set_has_error() { |
+ _has_bits_[0] |= 0x00000001u; |
+} |
+void CodeGeneratorResponse::clear_has_error() { |
+ _has_bits_[0] &= ~0x00000001u; |
+} |
+void CodeGeneratorResponse::clear_error() { |
+ error_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
+ clear_has_error(); |
+} |
+ const ::std::string& CodeGeneratorResponse::error() const { |
+ // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.error) |
+ return error_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
+} |
+ void CodeGeneratorResponse::set_error(const ::std::string& value) { |
+ set_has_error(); |
+ error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
+ // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.error) |
+} |
+ void CodeGeneratorResponse::set_error(const char* value) { |
+ set_has_error(); |
+ error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
+ // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorResponse.error) |
+} |
+ void CodeGeneratorResponse::set_error(const char* value, size_t size) { |
+ set_has_error(); |
+ error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
+ ::std::string(reinterpret_cast<const char*>(value), size)); |
+ // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorResponse.error) |
+} |
+ ::std::string* CodeGeneratorResponse::mutable_error() { |
+ set_has_error(); |
+ // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.error) |
+ return error_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
+} |
+ ::std::string* CodeGeneratorResponse::release_error() { |
+ clear_has_error(); |
+ return error_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
+} |
+ void CodeGeneratorResponse::set_allocated_error(::std::string* error) { |
+ if (error != NULL) { |
+ set_has_error(); |
+ } else { |
+ clear_has_error(); |
+ } |
+ error_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), error); |
+ // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.error) |
+} |
+ |
+// repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
+int CodeGeneratorResponse::file_size() const { |
+ return file_.size(); |
+} |
+void CodeGeneratorResponse::clear_file() { |
+ file_.Clear(); |
+} |
+const ::google::protobuf::compiler::CodeGeneratorResponse_File& CodeGeneratorResponse::file(int index) const { |
+ // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.file) |
+ return file_.Get(index); |
+} |
+::google::protobuf::compiler::CodeGeneratorResponse_File* CodeGeneratorResponse::mutable_file(int index) { |
+ // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.file) |
+ return file_.Mutable(index); |
+} |
+::google::protobuf::compiler::CodeGeneratorResponse_File* CodeGeneratorResponse::add_file() { |
+ // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorResponse.file) |
+ return file_.Add(); |
+} |
+::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File >* |
+CodeGeneratorResponse::mutable_file() { |
+ // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGeneratorResponse.file) |
+ return &file_; |
+} |
+const ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File >& |
+CodeGeneratorResponse::file() const { |
+ // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorResponse.file) |
+ return file_; |
+} |
+ |
+#endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
// @@protoc_insertion_point(namespace_scope) |