Remove the use of C++11 features.

pull/2770/head
Feng Xiao 8 years ago
parent b4b0e304be
commit ffde972ac7
  1. 8
      src/google/protobuf/any.pb.cc
  2. 64
      src/google/protobuf/api.pb.cc
  3. 4
      src/google/protobuf/compiler/command_line_interface.cc
  4. 12
      src/google/protobuf/compiler/cpp/cpp_message.cc
  5. 52
      src/google/protobuf/compiler/plugin.pb.cc
  6. 472
      src/google/protobuf/descriptor.pb.cc
  7. 8
      src/google/protobuf/duration.pb.cc
  8. 4
      src/google/protobuf/field_mask.pb.cc
  9. 4
      src/google/protobuf/source_context.pb.cc
  10. 32
      src/google/protobuf/struct.pb.cc
  11. 8
      src/google/protobuf/timestamp.pb.cc
  12. 104
      src/google/protobuf/type.pb.cc
  13. 12
      src/google/protobuf/util/json_util_test.cc
  14. 36
      src/google/protobuf/wrappers.pb.cc

@ -220,8 +220,8 @@ bool Any::MergePartialFromCodedStream(
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// string type_url = 1; // string type_url = 1;
case 1: { case 1: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(10u)) { static_cast< ::google::protobuf::uint8>(10u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString( DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_type_url())); input, this->mutable_type_url()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
@ -236,8 +236,8 @@ bool Any::MergePartialFromCodedStream(
// bytes value = 2; // bytes value = 2;
case 2: { case 2: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(18u)) { static_cast< ::google::protobuf::uint8>(18u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
input, this->mutable_value())); input, this->mutable_value()));
} else { } else {

@ -288,8 +288,8 @@ bool Api::MergePartialFromCodedStream(
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// string name = 1; // string name = 1;
case 1: { case 1: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(10u)) { static_cast< ::google::protobuf::uint8>(10u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString( DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_name())); input, this->mutable_name()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
@ -304,8 +304,8 @@ bool Api::MergePartialFromCodedStream(
// repeated .google.protobuf.Method methods = 2; // repeated .google.protobuf.Method methods = 2;
case 2: { case 2: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(18u)) { static_cast< ::google::protobuf::uint8>(18u)) {
DO_(input->IncrementRecursionDepth()); DO_(input->IncrementRecursionDepth());
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
input, add_methods())); input, add_methods()));
@ -318,8 +318,8 @@ bool Api::MergePartialFromCodedStream(
// repeated .google.protobuf.Option options = 3; // repeated .google.protobuf.Option options = 3;
case 3: { case 3: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(26u)) { static_cast< ::google::protobuf::uint8>(26u)) {
DO_(input->IncrementRecursionDepth()); DO_(input->IncrementRecursionDepth());
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
input, add_options())); input, add_options()));
@ -332,8 +332,8 @@ bool Api::MergePartialFromCodedStream(
// string version = 4; // string version = 4;
case 4: { case 4: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(34u)) { static_cast< ::google::protobuf::uint8>(34u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString( DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_version())); input, this->mutable_version()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
@ -348,8 +348,8 @@ bool Api::MergePartialFromCodedStream(
// .google.protobuf.SourceContext source_context = 5; // .google.protobuf.SourceContext source_context = 5;
case 5: { case 5: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(42u)) { static_cast< ::google::protobuf::uint8>(42u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_source_context())); input, mutable_source_context()));
} else { } else {
@ -360,8 +360,8 @@ bool Api::MergePartialFromCodedStream(
// repeated .google.protobuf.Mixin mixins = 6; // repeated .google.protobuf.Mixin mixins = 6;
case 6: { case 6: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(50u)) { static_cast< ::google::protobuf::uint8>(50u)) {
DO_(input->IncrementRecursionDepth()); DO_(input->IncrementRecursionDepth());
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
input, add_mixins())); input, add_mixins()));
@ -374,8 +374,8 @@ bool Api::MergePartialFromCodedStream(
// .google.protobuf.Syntax syntax = 7; // .google.protobuf.Syntax syntax = 7;
case 7: { case 7: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(56u)) { static_cast< ::google::protobuf::uint8>(56u)) {
int value; int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@ -1036,8 +1036,8 @@ bool Method::MergePartialFromCodedStream(
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// string name = 1; // string name = 1;
case 1: { case 1: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(10u)) { static_cast< ::google::protobuf::uint8>(10u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString( DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_name())); input, this->mutable_name()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
@ -1052,8 +1052,8 @@ bool Method::MergePartialFromCodedStream(
// string request_type_url = 2; // string request_type_url = 2;
case 2: { case 2: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(18u)) { static_cast< ::google::protobuf::uint8>(18u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString( DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_request_type_url())); input, this->mutable_request_type_url()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
@ -1068,8 +1068,8 @@ bool Method::MergePartialFromCodedStream(
// bool request_streaming = 3; // bool request_streaming = 3;
case 3: { case 3: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(24u)) { static_cast< ::google::protobuf::uint8>(24u)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
@ -1082,8 +1082,8 @@ bool Method::MergePartialFromCodedStream(
// string response_type_url = 4; // string response_type_url = 4;
case 4: { case 4: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(34u)) { static_cast< ::google::protobuf::uint8>(34u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString( DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_response_type_url())); input, this->mutable_response_type_url()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
@ -1098,8 +1098,8 @@ bool Method::MergePartialFromCodedStream(
// bool response_streaming = 5; // bool response_streaming = 5;
case 5: { case 5: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(40u)) { static_cast< ::google::protobuf::uint8>(40u)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
@ -1112,8 +1112,8 @@ bool Method::MergePartialFromCodedStream(
// repeated .google.protobuf.Option options = 6; // repeated .google.protobuf.Option options = 6;
case 6: { case 6: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(50u)) { static_cast< ::google::protobuf::uint8>(50u)) {
DO_(input->IncrementRecursionDepth()); DO_(input->IncrementRecursionDepth());
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
input, add_options())); input, add_options()));
@ -1126,8 +1126,8 @@ bool Method::MergePartialFromCodedStream(
// .google.protobuf.Syntax syntax = 7; // .google.protobuf.Syntax syntax = 7;
case 7: { case 7: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(56u)) { static_cast< ::google::protobuf::uint8>(56u)) {
int value; int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@ -1743,8 +1743,8 @@ bool Mixin::MergePartialFromCodedStream(
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// string name = 1; // string name = 1;
case 1: { case 1: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(10u)) { static_cast< ::google::protobuf::uint8>(10u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString( DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_name())); input, this->mutable_name()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
@ -1759,8 +1759,8 @@ bool Mixin::MergePartialFromCodedStream(
// string root = 2; // string root = 2;
case 2: { case 2: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(18u)) { static_cast< ::google::protobuf::uint8>(18u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString( DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_root())); input, this->mutable_root()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(

@ -1038,8 +1038,8 @@ CommandLineInterface::ParseArguments(int argc, const char* const argv[]) {
continue; continue;
} }
bool foundImplicitPlugin = false; bool foundImplicitPlugin = false;
for (std::vector<OutputDirective>::const_iterator j = output_directives_.cbegin(); for (std::vector<OutputDirective>::const_iterator j = output_directives_.begin();
j != output_directives_.cend(); ++j) { j != output_directives_.end(); ++j) {
if (j->generator == NULL) { if (j->generator == NULL) {
string plugin_name = PluginName(plugin_prefix_ , j->name); string plugin_name = PluginName(plugin_prefix_ , j->name);
if (plugin_name == i->first) { if (plugin_name == i->first) {

@ -3028,8 +3028,8 @@ GenerateMergeFromCodedStream(io::Printer* printer) {
const FieldGenerator& field_generator = field_generators_.get(field); const FieldGenerator& field_generator = field_generators_.get(field);
// Emit code to parse the common, expected case. // Emit code to parse the common, expected case.
printer->Print("if (static_cast<::google::protobuf::uint8>(tag) ==\n" printer->Print("if (static_cast< ::google::protobuf::uint8>(tag) ==\n"
" static_cast<::google::protobuf::uint8>($commontag$u)) {\n", " static_cast< ::google::protobuf::uint8>($commontag$u)) {\n",
"commontag", SimpleItoa(WireFormat::MakeTag(field))); "commontag", SimpleItoa(WireFormat::MakeTag(field)));
if (loops) { if (loops) {
@ -3048,8 +3048,8 @@ GenerateMergeFromCodedStream(io::Printer* printer) {
if (field->is_packed()) { if (field->is_packed()) {
internal::WireFormatLite::WireType wiretype = internal::WireFormatLite::WireType wiretype =
WireFormat::WireTypeForFieldType(field->type()); WireFormat::WireTypeForFieldType(field->type());
printer->Print("} else if (static_cast<::google::protobuf::uint8>(tag) ==\n" printer->Print("} else if (static_cast< ::google::protobuf::uint8>(tag) ==\n"
" static_cast<::google::protobuf::uint8>($uncommontag$u)) {\n", " static_cast< ::google::protobuf::uint8>($uncommontag$u)) {\n",
"uncommontag", SimpleItoa( "uncommontag", SimpleItoa(
internal::WireFormatLite::MakeTag( internal::WireFormatLite::MakeTag(
field->number(), wiretype))); field->number(), wiretype)));
@ -3059,8 +3059,8 @@ GenerateMergeFromCodedStream(io::Printer* printer) {
} else if (field->is_packable() && !field->is_packed()) { } else if (field->is_packable() && !field->is_packed()) {
internal::WireFormatLite::WireType wiretype = internal::WireFormatLite::WireType wiretype =
internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED; internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED;
printer->Print("} else if (static_cast<::google::protobuf::uint8>(tag) ==\n" printer->Print("} else if (static_cast< ::google::protobuf::uint8>(tag) ==\n"
" static_cast<::google::protobuf::uint8>($uncommontag$u)) {\n", " static_cast< ::google::protobuf::uint8>($uncommontag$u)) {\n",
"uncommontag", SimpleItoa( "uncommontag", SimpleItoa(
internal::WireFormatLite::MakeTag( internal::WireFormatLite::MakeTag(
field->number(), wiretype))); field->number(), wiretype)));

@ -287,8 +287,8 @@ bool Version::MergePartialFromCodedStream(
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional int32 major = 1; // optional int32 major = 1;
case 1: { case 1: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(8u)) { static_cast< ::google::protobuf::uint8>(8u)) {
set_has_major(); set_has_major();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
@ -301,8 +301,8 @@ bool Version::MergePartialFromCodedStream(
// optional int32 minor = 2; // optional int32 minor = 2;
case 2: { case 2: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(16u)) { static_cast< ::google::protobuf::uint8>(16u)) {
set_has_minor(); set_has_minor();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
@ -315,8 +315,8 @@ bool Version::MergePartialFromCodedStream(
// optional int32 patch = 3; // optional int32 patch = 3;
case 3: { case 3: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(24u)) { static_cast< ::google::protobuf::uint8>(24u)) {
set_has_patch(); set_has_patch();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
@ -329,8 +329,8 @@ bool Version::MergePartialFromCodedStream(
// optional string suffix = 4; // optional string suffix = 4;
case 4: { case 4: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(34u)) { static_cast< ::google::protobuf::uint8>(34u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString( DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_suffix())); input, this->mutable_suffix()));
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
@ -804,8 +804,8 @@ bool CodeGeneratorRequest::MergePartialFromCodedStream(
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// repeated string file_to_generate = 1; // repeated string file_to_generate = 1;
case 1: { case 1: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(10u)) { static_cast< ::google::protobuf::uint8>(10u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString( DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->add_file_to_generate())); input, this->add_file_to_generate()));
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
@ -821,8 +821,8 @@ bool CodeGeneratorRequest::MergePartialFromCodedStream(
// optional string parameter = 2; // optional string parameter = 2;
case 2: { case 2: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(18u)) { static_cast< ::google::protobuf::uint8>(18u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString( DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_parameter())); input, this->mutable_parameter()));
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
@ -837,8 +837,8 @@ bool CodeGeneratorRequest::MergePartialFromCodedStream(
// optional .google.protobuf.compiler.Version compiler_version = 3; // optional .google.protobuf.compiler.Version compiler_version = 3;
case 3: { case 3: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(26u)) { static_cast< ::google::protobuf::uint8>(26u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_compiler_version())); input, mutable_compiler_version()));
} else { } else {
@ -849,8 +849,8 @@ bool CodeGeneratorRequest::MergePartialFromCodedStream(
// repeated .google.protobuf.FileDescriptorProto proto_file = 15; // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
case 15: { case 15: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(122u)) { static_cast< ::google::protobuf::uint8>(122u)) {
DO_(input->IncrementRecursionDepth()); DO_(input->IncrementRecursionDepth());
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
input, add_proto_file())); input, add_proto_file()));
@ -1412,8 +1412,8 @@ bool CodeGeneratorResponse_File::MergePartialFromCodedStream(
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional string name = 1; // optional string name = 1;
case 1: { case 1: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(10u)) { static_cast< ::google::protobuf::uint8>(10u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString( DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_name())); input, this->mutable_name()));
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
@ -1428,8 +1428,8 @@ bool CodeGeneratorResponse_File::MergePartialFromCodedStream(
// optional string insertion_point = 2; // optional string insertion_point = 2;
case 2: { case 2: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(18u)) { static_cast< ::google::protobuf::uint8>(18u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString( DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_insertion_point())); input, this->mutable_insertion_point()));
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
@ -1444,8 +1444,8 @@ bool CodeGeneratorResponse_File::MergePartialFromCodedStream(
// optional string content = 15; // optional string content = 15;
case 15: { case 15: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(122u)) { static_cast< ::google::protobuf::uint8>(122u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString( DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_content())); input, this->mutable_content()));
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
@ -1955,8 +1955,8 @@ bool CodeGeneratorResponse::MergePartialFromCodedStream(
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional string error = 1; // optional string error = 1;
case 1: { case 1: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(10u)) { static_cast< ::google::protobuf::uint8>(10u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString( DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_error())); input, this->mutable_error()));
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
@ -1971,8 +1971,8 @@ bool CodeGeneratorResponse::MergePartialFromCodedStream(
// repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
case 15: { case 15: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(122u)) { static_cast< ::google::protobuf::uint8>(122u)) {
DO_(input->IncrementRecursionDepth()); DO_(input->IncrementRecursionDepth());
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
input, add_file())); input, add_file()));

File diff suppressed because it is too large Load Diff

@ -216,8 +216,8 @@ bool Duration::MergePartialFromCodedStream(
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// int64 seconds = 1; // int64 seconds = 1;
case 1: { case 1: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(8u)) { static_cast< ::google::protobuf::uint8>(8u)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
@ -230,8 +230,8 @@ bool Duration::MergePartialFromCodedStream(
// int32 nanos = 2; // int32 nanos = 2;
case 2: { case 2: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(16u)) { static_cast< ::google::protobuf::uint8>(16u)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(

@ -192,8 +192,8 @@ bool FieldMask::MergePartialFromCodedStream(
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// repeated string paths = 1; // repeated string paths = 1;
case 1: { case 1: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(10u)) { static_cast< ::google::protobuf::uint8>(10u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString( DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->add_paths())); input, this->add_paths()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(

@ -198,8 +198,8 @@ bool SourceContext::MergePartialFromCodedStream(
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// string file_name = 1; // string file_name = 1;
case 1: { case 1: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(10u)) { static_cast< ::google::protobuf::uint8>(10u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString( DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_file_name())); input, this->mutable_file_name()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(

@ -306,8 +306,8 @@ bool Struct::MergePartialFromCodedStream(
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// map<string, .google.protobuf.Value> fields = 1; // map<string, .google.protobuf.Value> fields = 1;
case 1: { case 1: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(10u)) { static_cast< ::google::protobuf::uint8>(10u)) {
DO_(input->IncrementRecursionDepth()); DO_(input->IncrementRecursionDepth());
Struct_FieldsEntry::Parser< ::google::protobuf::internal::MapField< Struct_FieldsEntry::Parser< ::google::protobuf::internal::MapField<
::std::string, ::google::protobuf::Value, ::std::string, ::google::protobuf::Value,
@ -770,8 +770,8 @@ bool Value::MergePartialFromCodedStream(
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// .google.protobuf.NullValue null_value = 1; // .google.protobuf.NullValue null_value = 1;
case 1: { case 1: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(8u)) { static_cast< ::google::protobuf::uint8>(8u)) {
int value; int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@ -785,8 +785,8 @@ bool Value::MergePartialFromCodedStream(
// double number_value = 2; // double number_value = 2;
case 2: { case 2: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(17u)) { static_cast< ::google::protobuf::uint8>(17u)) {
clear_kind(); clear_kind();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
@ -800,8 +800,8 @@ bool Value::MergePartialFromCodedStream(
// string string_value = 3; // string string_value = 3;
case 3: { case 3: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(26u)) { static_cast< ::google::protobuf::uint8>(26u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString( DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_string_value())); input, this->mutable_string_value()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
@ -816,8 +816,8 @@ bool Value::MergePartialFromCodedStream(
// bool bool_value = 4; // bool bool_value = 4;
case 4: { case 4: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(32u)) { static_cast< ::google::protobuf::uint8>(32u)) {
clear_kind(); clear_kind();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
@ -831,8 +831,8 @@ bool Value::MergePartialFromCodedStream(
// .google.protobuf.Struct struct_value = 5; // .google.protobuf.Struct struct_value = 5;
case 5: { case 5: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(42u)) { static_cast< ::google::protobuf::uint8>(42u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_struct_value())); input, mutable_struct_value()));
} else { } else {
@ -843,8 +843,8 @@ bool Value::MergePartialFromCodedStream(
// .google.protobuf.ListValue list_value = 6; // .google.protobuf.ListValue list_value = 6;
case 6: { case 6: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(50u)) { static_cast< ::google::protobuf::uint8>(50u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_list_value())); input, mutable_list_value()));
} else { } else {
@ -1597,8 +1597,8 @@ bool ListValue::MergePartialFromCodedStream(
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// repeated .google.protobuf.Value values = 1; // repeated .google.protobuf.Value values = 1;
case 1: { case 1: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(10u)) { static_cast< ::google::protobuf::uint8>(10u)) {
DO_(input->IncrementRecursionDepth()); DO_(input->IncrementRecursionDepth());
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
input, add_values())); input, add_values()));

@ -216,8 +216,8 @@ bool Timestamp::MergePartialFromCodedStream(
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// int64 seconds = 1; // int64 seconds = 1;
case 1: { case 1: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(8u)) { static_cast< ::google::protobuf::uint8>(8u)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
@ -230,8 +230,8 @@ bool Timestamp::MergePartialFromCodedStream(
// int32 nanos = 2; // int32 nanos = 2;
case 2: { case 2: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(16u)) { static_cast< ::google::protobuf::uint8>(16u)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(

@ -486,8 +486,8 @@ bool Type::MergePartialFromCodedStream(
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// string name = 1; // string name = 1;
case 1: { case 1: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(10u)) { static_cast< ::google::protobuf::uint8>(10u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString( DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_name())); input, this->mutable_name()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
@ -502,8 +502,8 @@ bool Type::MergePartialFromCodedStream(
// repeated .google.protobuf.Field fields = 2; // repeated .google.protobuf.Field fields = 2;
case 2: { case 2: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(18u)) { static_cast< ::google::protobuf::uint8>(18u)) {
DO_(input->IncrementRecursionDepth()); DO_(input->IncrementRecursionDepth());
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
input, add_fields())); input, add_fields()));
@ -516,8 +516,8 @@ bool Type::MergePartialFromCodedStream(
// repeated string oneofs = 3; // repeated string oneofs = 3;
case 3: { case 3: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(26u)) { static_cast< ::google::protobuf::uint8>(26u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString( DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->add_oneofs())); input, this->add_oneofs()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
@ -533,8 +533,8 @@ bool Type::MergePartialFromCodedStream(
// repeated .google.protobuf.Option options = 4; // repeated .google.protobuf.Option options = 4;
case 4: { case 4: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(34u)) { static_cast< ::google::protobuf::uint8>(34u)) {
DO_(input->IncrementRecursionDepth()); DO_(input->IncrementRecursionDepth());
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
input, add_options())); input, add_options()));
@ -547,8 +547,8 @@ bool Type::MergePartialFromCodedStream(
// .google.protobuf.SourceContext source_context = 5; // .google.protobuf.SourceContext source_context = 5;
case 5: { case 5: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(42u)) { static_cast< ::google::protobuf::uint8>(42u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_source_context())); input, mutable_source_context()));
} else { } else {
@ -559,8 +559,8 @@ bool Type::MergePartialFromCodedStream(
// .google.protobuf.Syntax syntax = 6; // .google.protobuf.Syntax syntax = 6;
case 6: { case 6: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(48u)) { static_cast< ::google::protobuf::uint8>(48u)) {
int value; int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@ -1249,8 +1249,8 @@ bool Field::MergePartialFromCodedStream(
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// .google.protobuf.Field.Kind kind = 1; // .google.protobuf.Field.Kind kind = 1;
case 1: { case 1: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(8u)) { static_cast< ::google::protobuf::uint8>(8u)) {
int value; int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@ -1264,8 +1264,8 @@ bool Field::MergePartialFromCodedStream(
// .google.protobuf.Field.Cardinality cardinality = 2; // .google.protobuf.Field.Cardinality cardinality = 2;
case 2: { case 2: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(16u)) { static_cast< ::google::protobuf::uint8>(16u)) {
int value; int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@ -1279,8 +1279,8 @@ bool Field::MergePartialFromCodedStream(
// int32 number = 3; // int32 number = 3;
case 3: { case 3: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(24u)) { static_cast< ::google::protobuf::uint8>(24u)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
@ -1293,8 +1293,8 @@ bool Field::MergePartialFromCodedStream(
// string name = 4; // string name = 4;
case 4: { case 4: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(34u)) { static_cast< ::google::protobuf::uint8>(34u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString( DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_name())); input, this->mutable_name()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
@ -1309,8 +1309,8 @@ bool Field::MergePartialFromCodedStream(
// string type_url = 6; // string type_url = 6;
case 6: { case 6: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(50u)) { static_cast< ::google::protobuf::uint8>(50u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString( DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_type_url())); input, this->mutable_type_url()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
@ -1325,8 +1325,8 @@ bool Field::MergePartialFromCodedStream(
// int32 oneof_index = 7; // int32 oneof_index = 7;
case 7: { case 7: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(56u)) { static_cast< ::google::protobuf::uint8>(56u)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
@ -1339,8 +1339,8 @@ bool Field::MergePartialFromCodedStream(
// bool packed = 8; // bool packed = 8;
case 8: { case 8: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(64u)) { static_cast< ::google::protobuf::uint8>(64u)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
@ -1353,8 +1353,8 @@ bool Field::MergePartialFromCodedStream(
// repeated .google.protobuf.Option options = 9; // repeated .google.protobuf.Option options = 9;
case 9: { case 9: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(74u)) { static_cast< ::google::protobuf::uint8>(74u)) {
DO_(input->IncrementRecursionDepth()); DO_(input->IncrementRecursionDepth());
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
input, add_options())); input, add_options()));
@ -1367,8 +1367,8 @@ bool Field::MergePartialFromCodedStream(
// string json_name = 10; // string json_name = 10;
case 10: { case 10: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(82u)) { static_cast< ::google::protobuf::uint8>(82u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString( DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_json_name())); input, this->mutable_json_name()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
@ -1383,8 +1383,8 @@ bool Field::MergePartialFromCodedStream(
// string default_value = 11; // string default_value = 11;
case 11: { case 11: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(90u)) { static_cast< ::google::protobuf::uint8>(90u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString( DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_default_value())); input, this->mutable_default_value()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
@ -2295,8 +2295,8 @@ bool Enum::MergePartialFromCodedStream(
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// string name = 1; // string name = 1;
case 1: { case 1: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(10u)) { static_cast< ::google::protobuf::uint8>(10u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString( DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_name())); input, this->mutable_name()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
@ -2311,8 +2311,8 @@ bool Enum::MergePartialFromCodedStream(
// repeated .google.protobuf.EnumValue enumvalue = 2; // repeated .google.protobuf.EnumValue enumvalue = 2;
case 2: { case 2: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(18u)) { static_cast< ::google::protobuf::uint8>(18u)) {
DO_(input->IncrementRecursionDepth()); DO_(input->IncrementRecursionDepth());
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
input, add_enumvalue())); input, add_enumvalue()));
@ -2325,8 +2325,8 @@ bool Enum::MergePartialFromCodedStream(
// repeated .google.protobuf.Option options = 3; // repeated .google.protobuf.Option options = 3;
case 3: { case 3: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(26u)) { static_cast< ::google::protobuf::uint8>(26u)) {
DO_(input->IncrementRecursionDepth()); DO_(input->IncrementRecursionDepth());
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
input, add_options())); input, add_options()));
@ -2339,8 +2339,8 @@ bool Enum::MergePartialFromCodedStream(
// .google.protobuf.SourceContext source_context = 4; // .google.protobuf.SourceContext source_context = 4;
case 4: { case 4: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(34u)) { static_cast< ::google::protobuf::uint8>(34u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_source_context())); input, mutable_source_context()));
} else { } else {
@ -2351,8 +2351,8 @@ bool Enum::MergePartialFromCodedStream(
// .google.protobuf.Syntax syntax = 5; // .google.protobuf.Syntax syntax = 5;
case 5: { case 5: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(40u)) { static_cast< ::google::protobuf::uint8>(40u)) {
int value; int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@ -2909,8 +2909,8 @@ bool EnumValue::MergePartialFromCodedStream(
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// string name = 1; // string name = 1;
case 1: { case 1: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(10u)) { static_cast< ::google::protobuf::uint8>(10u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString( DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_name())); input, this->mutable_name()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
@ -2925,8 +2925,8 @@ bool EnumValue::MergePartialFromCodedStream(
// int32 number = 2; // int32 number = 2;
case 2: { case 2: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(16u)) { static_cast< ::google::protobuf::uint8>(16u)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
@ -2939,8 +2939,8 @@ bool EnumValue::MergePartialFromCodedStream(
// repeated .google.protobuf.Option options = 3; // repeated .google.protobuf.Option options = 3;
case 3: { case 3: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(26u)) { static_cast< ::google::protobuf::uint8>(26u)) {
DO_(input->IncrementRecursionDepth()); DO_(input->IncrementRecursionDepth());
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
input, add_options())); input, add_options()));
@ -3403,8 +3403,8 @@ bool Option::MergePartialFromCodedStream(
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// string name = 1; // string name = 1;
case 1: { case 1: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(10u)) { static_cast< ::google::protobuf::uint8>(10u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString( DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_name())); input, this->mutable_name()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
@ -3419,8 +3419,8 @@ bool Option::MergePartialFromCodedStream(
// .google.protobuf.Any value = 2; // .google.protobuf.Any value = 2;
case 2: { case 2: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(18u)) { static_cast< ::google::protobuf::uint8>(18u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_value())); input, mutable_value()));
} else { } else {

@ -162,9 +162,9 @@ TEST_F(JsonUtilTest, TestDefaultValues) {
TEST_F(JsonUtilTest, TestAlwaysPrintEnumsAsInts) { TEST_F(JsonUtilTest, TestAlwaysPrintEnumsAsInts) {
TestMessage orig; TestMessage orig;
orig.set_enum_value(proto3::EnumType::BAR); orig.set_enum_value(proto3::BAR);
orig.add_repeated_enum_value(proto3::EnumType::FOO); orig.add_repeated_enum_value(proto3::FOO);
orig.add_repeated_enum_value(proto3::EnumType::BAR); orig.add_repeated_enum_value(proto3::BAR);
JsonPrintOptions print_options; JsonPrintOptions print_options;
print_options.always_print_enums_as_ints = true; print_options.always_print_enums_as_ints = true;
@ -177,10 +177,10 @@ TEST_F(JsonUtilTest, TestAlwaysPrintEnumsAsInts) {
JsonParseOptions parse_options; JsonParseOptions parse_options;
ASSERT_TRUE(FromJson(expected_json, &parsed, parse_options)); ASSERT_TRUE(FromJson(expected_json, &parsed, parse_options));
EXPECT_EQ(proto3::EnumType::BAR, parsed.enum_value()); EXPECT_EQ(proto3::BAR, parsed.enum_value());
EXPECT_EQ(2, parsed.repeated_enum_value_size()); EXPECT_EQ(2, parsed.repeated_enum_value_size());
EXPECT_EQ(proto3::EnumType::FOO, parsed.repeated_enum_value(0)); EXPECT_EQ(proto3::FOO, parsed.repeated_enum_value(0));
EXPECT_EQ(proto3::EnumType::BAR, parsed.repeated_enum_value(1)); EXPECT_EQ(proto3::BAR, parsed.repeated_enum_value(1));
} }
TEST_F(JsonUtilTest, ParseMessage) { TEST_F(JsonUtilTest, ParseMessage) {

@ -312,8 +312,8 @@ bool DoubleValue::MergePartialFromCodedStream(
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// double value = 1; // double value = 1;
case 1: { case 1: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(9u)) { static_cast< ::google::protobuf::uint8>(9u)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
@ -568,8 +568,8 @@ bool FloatValue::MergePartialFromCodedStream(
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// float value = 1; // float value = 1;
case 1: { case 1: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(13u)) { static_cast< ::google::protobuf::uint8>(13u)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
@ -824,8 +824,8 @@ bool Int64Value::MergePartialFromCodedStream(
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// int64 value = 1; // int64 value = 1;
case 1: { case 1: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(8u)) { static_cast< ::google::protobuf::uint8>(8u)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
@ -1082,8 +1082,8 @@ bool UInt64Value::MergePartialFromCodedStream(
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// uint64 value = 1; // uint64 value = 1;
case 1: { case 1: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(8u)) { static_cast< ::google::protobuf::uint8>(8u)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
@ -1340,8 +1340,8 @@ bool Int32Value::MergePartialFromCodedStream(
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// int32 value = 1; // int32 value = 1;
case 1: { case 1: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(8u)) { static_cast< ::google::protobuf::uint8>(8u)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
@ -1598,8 +1598,8 @@ bool UInt32Value::MergePartialFromCodedStream(
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// uint32 value = 1; // uint32 value = 1;
case 1: { case 1: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(8u)) { static_cast< ::google::protobuf::uint8>(8u)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
@ -1856,8 +1856,8 @@ bool BoolValue::MergePartialFromCodedStream(
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// bool value = 1; // bool value = 1;
case 1: { case 1: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(8u)) { static_cast< ::google::protobuf::uint8>(8u)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
@ -2117,8 +2117,8 @@ bool StringValue::MergePartialFromCodedStream(
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// string value = 1; // string value = 1;
case 1: { case 1: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(10u)) { static_cast< ::google::protobuf::uint8>(10u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString( DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_value())); input, this->mutable_value()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
@ -2445,8 +2445,8 @@ bool BytesValue::MergePartialFromCodedStream(
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// bytes value = 1; // bytes value = 1;
case 1: { case 1: {
if (static_cast<::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast<::google::protobuf::uint8>(10u)) { static_cast< ::google::protobuf::uint8>(10u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
input, this->mutable_value())); input, this->mutable_value()));
} else { } else {

Loading…
Cancel
Save