Index: third_party/protobuf/src/google/protobuf/descriptor.pb.cc |
diff --git a/third_party/protobuf/src/google/protobuf/descriptor.pb.cc b/third_party/protobuf/src/google/protobuf/descriptor.pb.cc |
index 4d5c4d99d406b1126a97ca7b8ca520be037e9d49..1e21e2309061e004621acc73cd60db8cc1c5bb3d 100644 |
--- a/third_party/protobuf/src/google/protobuf/descriptor.pb.cc |
+++ b/third_party/protobuf/src/google/protobuf/descriptor.pb.cc |
@@ -69,6 +69,9 @@ const ::google::protobuf::internal::GeneratedMessageReflection* |
FieldOptions_reflection_ = NULL; |
const ::google::protobuf::EnumDescriptor* FieldOptions_CType_descriptor_ = NULL; |
const ::google::protobuf::EnumDescriptor* FieldOptions_JSType_descriptor_ = NULL; |
+const ::google::protobuf::Descriptor* OneofOptions_descriptor_ = NULL; |
+const ::google::protobuf::internal::GeneratedMessageReflection* |
+ OneofOptions_reflection_ = NULL; |
const ::google::protobuf::Descriptor* EnumOptions_descriptor_ = NULL; |
const ::google::protobuf::internal::GeneratedMessageReflection* |
EnumOptions_reflection_ = NULL; |
@@ -103,6 +106,7 @@ const ::google::protobuf::internal::GeneratedMessageReflection* |
} // namespace |
+void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() GOOGLE_ATTRIBUTE_COLD; |
void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() { |
protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
const ::google::protobuf::FileDescriptor* file = |
@@ -116,14 +120,13 @@ void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() { |
FileDescriptorSet_reflection_ = |
::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
FileDescriptorSet_descriptor_, |
- FileDescriptorSet::default_instance_, |
+ FileDescriptorSet::internal_default_instance(), |
FileDescriptorSet_offsets_, |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, _has_bits_[0]), |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, _has_bits_), |
-1, |
-1, |
sizeof(FileDescriptorSet), |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, _internal_metadata_), |
- -1); |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, _internal_metadata_)); |
FileDescriptorProto_descriptor_ = file->message_type(1); |
static const int FileDescriptorProto_offsets_[12] = { |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, name_), |
@@ -142,14 +145,13 @@ void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() { |
FileDescriptorProto_reflection_ = |
::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
FileDescriptorProto_descriptor_, |
- FileDescriptorProto::default_instance_, |
+ FileDescriptorProto::internal_default_instance(), |
FileDescriptorProto_offsets_, |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, _has_bits_[0]), |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, _has_bits_), |
-1, |
-1, |
sizeof(FileDescriptorProto), |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, _internal_metadata_), |
- -1); |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, _internal_metadata_)); |
DescriptorProto_descriptor_ = file->message_type(2); |
static const int DescriptorProto_offsets_[10] = { |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, name_), |
@@ -166,14 +168,13 @@ void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() { |
DescriptorProto_reflection_ = |
::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
DescriptorProto_descriptor_, |
- DescriptorProto::default_instance_, |
+ DescriptorProto::internal_default_instance(), |
DescriptorProto_offsets_, |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, _has_bits_[0]), |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, _has_bits_), |
-1, |
-1, |
sizeof(DescriptorProto), |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, _internal_metadata_), |
- -1); |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, _internal_metadata_)); |
DescriptorProto_ExtensionRange_descriptor_ = DescriptorProto_descriptor_->nested_type(0); |
static const int DescriptorProto_ExtensionRange_offsets_[2] = { |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, start_), |
@@ -182,14 +183,13 @@ void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() { |
DescriptorProto_ExtensionRange_reflection_ = |
::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
DescriptorProto_ExtensionRange_descriptor_, |
- DescriptorProto_ExtensionRange::default_instance_, |
+ DescriptorProto_ExtensionRange::internal_default_instance(), |
DescriptorProto_ExtensionRange_offsets_, |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, _has_bits_[0]), |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, _has_bits_), |
-1, |
-1, |
sizeof(DescriptorProto_ExtensionRange), |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, _internal_metadata_), |
- -1); |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, _internal_metadata_)); |
DescriptorProto_ReservedRange_descriptor_ = DescriptorProto_descriptor_->nested_type(1); |
static const int DescriptorProto_ReservedRange_offsets_[2] = { |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ReservedRange, start_), |
@@ -198,14 +198,13 @@ void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() { |
DescriptorProto_ReservedRange_reflection_ = |
::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
DescriptorProto_ReservedRange_descriptor_, |
- DescriptorProto_ReservedRange::default_instance_, |
+ DescriptorProto_ReservedRange::internal_default_instance(), |
DescriptorProto_ReservedRange_offsets_, |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ReservedRange, _has_bits_[0]), |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ReservedRange, _has_bits_), |
-1, |
-1, |
sizeof(DescriptorProto_ReservedRange), |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ReservedRange, _internal_metadata_), |
- -1); |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ReservedRange, _internal_metadata_)); |
FieldDescriptorProto_descriptor_ = file->message_type(3); |
static const int FieldDescriptorProto_offsets_[10] = { |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, name_), |
@@ -222,31 +221,30 @@ void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() { |
FieldDescriptorProto_reflection_ = |
::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
FieldDescriptorProto_descriptor_, |
- FieldDescriptorProto::default_instance_, |
+ FieldDescriptorProto::internal_default_instance(), |
FieldDescriptorProto_offsets_, |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, _has_bits_[0]), |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, _has_bits_), |
-1, |
-1, |
sizeof(FieldDescriptorProto), |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, _internal_metadata_), |
- -1); |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, _internal_metadata_)); |
FieldDescriptorProto_Type_descriptor_ = FieldDescriptorProto_descriptor_->enum_type(0); |
FieldDescriptorProto_Label_descriptor_ = FieldDescriptorProto_descriptor_->enum_type(1); |
OneofDescriptorProto_descriptor_ = file->message_type(4); |
- static const int OneofDescriptorProto_offsets_[1] = { |
+ static const int OneofDescriptorProto_offsets_[2] = { |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, name_), |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, options_), |
}; |
OneofDescriptorProto_reflection_ = |
::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
OneofDescriptorProto_descriptor_, |
- OneofDescriptorProto::default_instance_, |
+ OneofDescriptorProto::internal_default_instance(), |
OneofDescriptorProto_offsets_, |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, _has_bits_[0]), |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, _has_bits_), |
-1, |
-1, |
sizeof(OneofDescriptorProto), |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, _internal_metadata_), |
- -1); |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, _internal_metadata_)); |
EnumDescriptorProto_descriptor_ = file->message_type(5); |
static const int EnumDescriptorProto_offsets_[3] = { |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, name_), |
@@ -256,14 +254,13 @@ void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() { |
EnumDescriptorProto_reflection_ = |
::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
EnumDescriptorProto_descriptor_, |
- EnumDescriptorProto::default_instance_, |
+ EnumDescriptorProto::internal_default_instance(), |
EnumDescriptorProto_offsets_, |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, _has_bits_[0]), |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, _has_bits_), |
-1, |
-1, |
sizeof(EnumDescriptorProto), |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, _internal_metadata_), |
- -1); |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, _internal_metadata_)); |
EnumValueDescriptorProto_descriptor_ = file->message_type(6); |
static const int EnumValueDescriptorProto_offsets_[3] = { |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, name_), |
@@ -273,14 +270,13 @@ void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() { |
EnumValueDescriptorProto_reflection_ = |
::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
EnumValueDescriptorProto_descriptor_, |
- EnumValueDescriptorProto::default_instance_, |
+ EnumValueDescriptorProto::internal_default_instance(), |
EnumValueDescriptorProto_offsets_, |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, _has_bits_[0]), |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, _has_bits_), |
-1, |
-1, |
sizeof(EnumValueDescriptorProto), |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, _internal_metadata_), |
- -1); |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, _internal_metadata_)); |
ServiceDescriptorProto_descriptor_ = file->message_type(7); |
static const int ServiceDescriptorProto_offsets_[3] = { |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, name_), |
@@ -290,14 +286,13 @@ void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() { |
ServiceDescriptorProto_reflection_ = |
::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
ServiceDescriptorProto_descriptor_, |
- ServiceDescriptorProto::default_instance_, |
+ ServiceDescriptorProto::internal_default_instance(), |
ServiceDescriptorProto_offsets_, |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, _has_bits_[0]), |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, _has_bits_), |
-1, |
-1, |
sizeof(ServiceDescriptorProto), |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, _internal_metadata_), |
- -1); |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, _internal_metadata_)); |
MethodDescriptorProto_descriptor_ = file->message_type(8); |
static const int MethodDescriptorProto_offsets_[6] = { |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, name_), |
@@ -310,14 +305,13 @@ void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() { |
MethodDescriptorProto_reflection_ = |
::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
MethodDescriptorProto_descriptor_, |
- MethodDescriptorProto::default_instance_, |
+ MethodDescriptorProto::internal_default_instance(), |
MethodDescriptorProto_offsets_, |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, _has_bits_[0]), |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, _has_bits_), |
-1, |
-1, |
sizeof(MethodDescriptorProto), |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, _internal_metadata_), |
- -1); |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, _internal_metadata_)); |
FileOptions_descriptor_ = file->message_type(9); |
static const int FileOptions_offsets_[15] = { |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_package_), |
@@ -339,14 +333,13 @@ void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() { |
FileOptions_reflection_ = |
::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
FileOptions_descriptor_, |
- FileOptions::default_instance_, |
+ FileOptions::internal_default_instance(), |
FileOptions_offsets_, |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _has_bits_[0]), |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _has_bits_), |
-1, |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _extensions_), |
sizeof(FileOptions), |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _internal_metadata_), |
- -1); |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _internal_metadata_)); |
FileOptions_OptimizeMode_descriptor_ = FileOptions_descriptor_->enum_type(0); |
MessageOptions_descriptor_ = file->message_type(10); |
static const int MessageOptions_offsets_[5] = { |
@@ -359,14 +352,13 @@ void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() { |
MessageOptions_reflection_ = |
::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
MessageOptions_descriptor_, |
- MessageOptions::default_instance_, |
+ MessageOptions::internal_default_instance(), |
MessageOptions_offsets_, |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _has_bits_[0]), |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _has_bits_), |
-1, |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _extensions_), |
sizeof(MessageOptions), |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _internal_metadata_), |
- -1); |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _internal_metadata_)); |
FieldOptions_descriptor_ = file->message_type(11); |
static const int FieldOptions_offsets_[7] = { |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, ctype_), |
@@ -380,17 +372,30 @@ void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() { |
FieldOptions_reflection_ = |
::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
FieldOptions_descriptor_, |
- FieldOptions::default_instance_, |
+ FieldOptions::internal_default_instance(), |
FieldOptions_offsets_, |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _has_bits_[0]), |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _has_bits_), |
-1, |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _extensions_), |
sizeof(FieldOptions), |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _internal_metadata_), |
- -1); |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _internal_metadata_)); |
FieldOptions_CType_descriptor_ = FieldOptions_descriptor_->enum_type(0); |
FieldOptions_JSType_descriptor_ = FieldOptions_descriptor_->enum_type(1); |
- EnumOptions_descriptor_ = file->message_type(12); |
+ OneofOptions_descriptor_ = file->message_type(12); |
+ static const int OneofOptions_offsets_[1] = { |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofOptions, uninterpreted_option_), |
+ }; |
+ OneofOptions_reflection_ = |
+ ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
+ OneofOptions_descriptor_, |
+ OneofOptions::internal_default_instance(), |
+ OneofOptions_offsets_, |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofOptions, _has_bits_), |
+ -1, |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofOptions, _extensions_), |
+ sizeof(OneofOptions), |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofOptions, _internal_metadata_)); |
+ EnumOptions_descriptor_ = file->message_type(13); |
static const int EnumOptions_offsets_[3] = { |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, allow_alias_), |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, deprecated_), |
@@ -399,15 +404,14 @@ void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() { |
EnumOptions_reflection_ = |
::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
EnumOptions_descriptor_, |
- EnumOptions::default_instance_, |
+ EnumOptions::internal_default_instance(), |
EnumOptions_offsets_, |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _has_bits_[0]), |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _has_bits_), |
-1, |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _extensions_), |
sizeof(EnumOptions), |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _internal_metadata_), |
- -1); |
- EnumValueOptions_descriptor_ = file->message_type(13); |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _internal_metadata_)); |
+ EnumValueOptions_descriptor_ = file->message_type(14); |
static const int EnumValueOptions_offsets_[2] = { |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, deprecated_), |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, uninterpreted_option_), |
@@ -415,15 +419,14 @@ void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() { |
EnumValueOptions_reflection_ = |
::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
EnumValueOptions_descriptor_, |
- EnumValueOptions::default_instance_, |
+ EnumValueOptions::internal_default_instance(), |
EnumValueOptions_offsets_, |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _has_bits_[0]), |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _has_bits_), |
-1, |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _extensions_), |
sizeof(EnumValueOptions), |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _internal_metadata_), |
- -1); |
- ServiceOptions_descriptor_ = file->message_type(14); |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _internal_metadata_)); |
+ ServiceOptions_descriptor_ = file->message_type(15); |
static const int ServiceOptions_offsets_[2] = { |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, deprecated_), |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, uninterpreted_option_), |
@@ -431,15 +434,14 @@ void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() { |
ServiceOptions_reflection_ = |
::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
ServiceOptions_descriptor_, |
- ServiceOptions::default_instance_, |
+ ServiceOptions::internal_default_instance(), |
ServiceOptions_offsets_, |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _has_bits_[0]), |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _has_bits_), |
-1, |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _extensions_), |
sizeof(ServiceOptions), |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _internal_metadata_), |
- -1); |
- MethodOptions_descriptor_ = file->message_type(15); |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _internal_metadata_)); |
+ MethodOptions_descriptor_ = file->message_type(16); |
static const int MethodOptions_offsets_[2] = { |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, deprecated_), |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, uninterpreted_option_), |
@@ -447,15 +449,14 @@ void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() { |
MethodOptions_reflection_ = |
::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
MethodOptions_descriptor_, |
- MethodOptions::default_instance_, |
+ MethodOptions::internal_default_instance(), |
MethodOptions_offsets_, |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _has_bits_[0]), |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _has_bits_), |
-1, |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _extensions_), |
sizeof(MethodOptions), |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _internal_metadata_), |
- -1); |
- UninterpretedOption_descriptor_ = file->message_type(16); |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _internal_metadata_)); |
+ UninterpretedOption_descriptor_ = file->message_type(17); |
static const int UninterpretedOption_offsets_[7] = { |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, name_), |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, identifier_value_), |
@@ -468,14 +469,13 @@ void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() { |
UninterpretedOption_reflection_ = |
::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
UninterpretedOption_descriptor_, |
- UninterpretedOption::default_instance_, |
+ UninterpretedOption::internal_default_instance(), |
UninterpretedOption_offsets_, |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, _has_bits_[0]), |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, _has_bits_), |
-1, |
-1, |
sizeof(UninterpretedOption), |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, _internal_metadata_), |
- -1); |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, _internal_metadata_)); |
UninterpretedOption_NamePart_descriptor_ = UninterpretedOption_descriptor_->nested_type(0); |
static const int UninterpretedOption_NamePart_offsets_[2] = { |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, name_part_), |
@@ -484,29 +484,27 @@ void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() { |
UninterpretedOption_NamePart_reflection_ = |
::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
UninterpretedOption_NamePart_descriptor_, |
- UninterpretedOption_NamePart::default_instance_, |
+ UninterpretedOption_NamePart::internal_default_instance(), |
UninterpretedOption_NamePart_offsets_, |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, _has_bits_[0]), |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, _has_bits_), |
-1, |
-1, |
sizeof(UninterpretedOption_NamePart), |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, _internal_metadata_), |
- -1); |
- SourceCodeInfo_descriptor_ = file->message_type(17); |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, _internal_metadata_)); |
+ SourceCodeInfo_descriptor_ = file->message_type(18); |
static const int SourceCodeInfo_offsets_[1] = { |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, location_), |
}; |
SourceCodeInfo_reflection_ = |
::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
SourceCodeInfo_descriptor_, |
- SourceCodeInfo::default_instance_, |
+ SourceCodeInfo::internal_default_instance(), |
SourceCodeInfo_offsets_, |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, _has_bits_[0]), |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, _has_bits_), |
-1, |
-1, |
sizeof(SourceCodeInfo), |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, _internal_metadata_), |
- -1); |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, _internal_metadata_)); |
SourceCodeInfo_Location_descriptor_ = SourceCodeInfo_descriptor_->nested_type(0); |
static const int SourceCodeInfo_Location_offsets_[5] = { |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, path_), |
@@ -518,29 +516,27 @@ void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() { |
SourceCodeInfo_Location_reflection_ = |
::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
SourceCodeInfo_Location_descriptor_, |
- SourceCodeInfo_Location::default_instance_, |
+ SourceCodeInfo_Location::internal_default_instance(), |
SourceCodeInfo_Location_offsets_, |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, _has_bits_[0]), |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, _has_bits_), |
-1, |
-1, |
sizeof(SourceCodeInfo_Location), |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, _internal_metadata_), |
- -1); |
- GeneratedCodeInfo_descriptor_ = file->message_type(18); |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, _internal_metadata_)); |
+ GeneratedCodeInfo_descriptor_ = file->message_type(19); |
static const int GeneratedCodeInfo_offsets_[1] = { |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo, annotation_), |
}; |
GeneratedCodeInfo_reflection_ = |
::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
GeneratedCodeInfo_descriptor_, |
- GeneratedCodeInfo::default_instance_, |
+ GeneratedCodeInfo::internal_default_instance(), |
GeneratedCodeInfo_offsets_, |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo, _has_bits_[0]), |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo, _has_bits_), |
-1, |
-1, |
sizeof(GeneratedCodeInfo), |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo, _internal_metadata_), |
- -1); |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo, _internal_metadata_)); |
GeneratedCodeInfo_Annotation_descriptor_ = GeneratedCodeInfo_descriptor_->nested_type(0); |
static const int GeneratedCodeInfo_Annotation_offsets_[4] = { |
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation, path_), |
@@ -551,135 +547,210 @@ void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() { |
GeneratedCodeInfo_Annotation_reflection_ = |
::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
GeneratedCodeInfo_Annotation_descriptor_, |
- GeneratedCodeInfo_Annotation::default_instance_, |
+ GeneratedCodeInfo_Annotation::internal_default_instance(), |
GeneratedCodeInfo_Annotation_offsets_, |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation, _has_bits_[0]), |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation, _has_bits_), |
-1, |
-1, |
sizeof(GeneratedCodeInfo_Annotation), |
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation, _internal_metadata_), |
- -1); |
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation, _internal_metadata_)); |
} |
namespace { |
GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); |
-inline void protobuf_AssignDescriptorsOnce() { |
+void protobuf_AssignDescriptorsOnce() { |
::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, |
&protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto); |
} |
+void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; |
void protobuf_RegisterTypes(const ::std::string&) { |
protobuf_AssignDescriptorsOnce(); |
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
- FileDescriptorSet_descriptor_, &FileDescriptorSet::default_instance()); |
+ FileDescriptorSet_descriptor_, FileDescriptorSet::internal_default_instance()); |
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
- FileDescriptorProto_descriptor_, &FileDescriptorProto::default_instance()); |
+ FileDescriptorProto_descriptor_, FileDescriptorProto::internal_default_instance()); |
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
- DescriptorProto_descriptor_, &DescriptorProto::default_instance()); |
+ DescriptorProto_descriptor_, DescriptorProto::internal_default_instance()); |
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
- DescriptorProto_ExtensionRange_descriptor_, &DescriptorProto_ExtensionRange::default_instance()); |
+ DescriptorProto_ExtensionRange_descriptor_, DescriptorProto_ExtensionRange::internal_default_instance()); |
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
- DescriptorProto_ReservedRange_descriptor_, &DescriptorProto_ReservedRange::default_instance()); |
+ DescriptorProto_ReservedRange_descriptor_, DescriptorProto_ReservedRange::internal_default_instance()); |
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
- FieldDescriptorProto_descriptor_, &FieldDescriptorProto::default_instance()); |
+ FieldDescriptorProto_descriptor_, FieldDescriptorProto::internal_default_instance()); |
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
- OneofDescriptorProto_descriptor_, &OneofDescriptorProto::default_instance()); |
+ OneofDescriptorProto_descriptor_, OneofDescriptorProto::internal_default_instance()); |
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
- EnumDescriptorProto_descriptor_, &EnumDescriptorProto::default_instance()); |
+ EnumDescriptorProto_descriptor_, EnumDescriptorProto::internal_default_instance()); |
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
- EnumValueDescriptorProto_descriptor_, &EnumValueDescriptorProto::default_instance()); |
+ EnumValueDescriptorProto_descriptor_, EnumValueDescriptorProto::internal_default_instance()); |
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
- ServiceDescriptorProto_descriptor_, &ServiceDescriptorProto::default_instance()); |
+ ServiceDescriptorProto_descriptor_, ServiceDescriptorProto::internal_default_instance()); |
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
- MethodDescriptorProto_descriptor_, &MethodDescriptorProto::default_instance()); |
+ MethodDescriptorProto_descriptor_, MethodDescriptorProto::internal_default_instance()); |
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
- FileOptions_descriptor_, &FileOptions::default_instance()); |
+ FileOptions_descriptor_, FileOptions::internal_default_instance()); |
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
- MessageOptions_descriptor_, &MessageOptions::default_instance()); |
+ MessageOptions_descriptor_, MessageOptions::internal_default_instance()); |
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
- FieldOptions_descriptor_, &FieldOptions::default_instance()); |
+ FieldOptions_descriptor_, FieldOptions::internal_default_instance()); |
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
- EnumOptions_descriptor_, &EnumOptions::default_instance()); |
+ OneofOptions_descriptor_, OneofOptions::internal_default_instance()); |
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
- EnumValueOptions_descriptor_, &EnumValueOptions::default_instance()); |
+ EnumOptions_descriptor_, EnumOptions::internal_default_instance()); |
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
- ServiceOptions_descriptor_, &ServiceOptions::default_instance()); |
+ EnumValueOptions_descriptor_, EnumValueOptions::internal_default_instance()); |
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
- MethodOptions_descriptor_, &MethodOptions::default_instance()); |
+ ServiceOptions_descriptor_, ServiceOptions::internal_default_instance()); |
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
- UninterpretedOption_descriptor_, &UninterpretedOption::default_instance()); |
+ MethodOptions_descriptor_, MethodOptions::internal_default_instance()); |
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
- UninterpretedOption_NamePart_descriptor_, &UninterpretedOption_NamePart::default_instance()); |
+ UninterpretedOption_descriptor_, UninterpretedOption::internal_default_instance()); |
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
- SourceCodeInfo_descriptor_, &SourceCodeInfo::default_instance()); |
+ UninterpretedOption_NamePart_descriptor_, UninterpretedOption_NamePart::internal_default_instance()); |
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
- SourceCodeInfo_Location_descriptor_, &SourceCodeInfo_Location::default_instance()); |
+ SourceCodeInfo_descriptor_, SourceCodeInfo::internal_default_instance()); |
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
- GeneratedCodeInfo_descriptor_, &GeneratedCodeInfo::default_instance()); |
+ SourceCodeInfo_Location_descriptor_, SourceCodeInfo_Location::internal_default_instance()); |
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
- GeneratedCodeInfo_Annotation_descriptor_, &GeneratedCodeInfo_Annotation::default_instance()); |
+ GeneratedCodeInfo_descriptor_, GeneratedCodeInfo::internal_default_instance()); |
+ ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
+ GeneratedCodeInfo_Annotation_descriptor_, GeneratedCodeInfo_Annotation::internal_default_instance()); |
} |
} // namespace |
void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto() { |
- delete FileDescriptorSet::default_instance_; |
+ FileDescriptorSet_default_instance_.Shutdown(); |
delete FileDescriptorSet_reflection_; |
- delete FileDescriptorProto::default_instance_; |
+ FileDescriptorProto_default_instance_.Shutdown(); |
delete FileDescriptorProto_reflection_; |
- delete DescriptorProto::default_instance_; |
+ DescriptorProto_default_instance_.Shutdown(); |
delete DescriptorProto_reflection_; |
- delete DescriptorProto_ExtensionRange::default_instance_; |
+ DescriptorProto_ExtensionRange_default_instance_.Shutdown(); |
delete DescriptorProto_ExtensionRange_reflection_; |
- delete DescriptorProto_ReservedRange::default_instance_; |
+ DescriptorProto_ReservedRange_default_instance_.Shutdown(); |
delete DescriptorProto_ReservedRange_reflection_; |
- delete FieldDescriptorProto::default_instance_; |
+ FieldDescriptorProto_default_instance_.Shutdown(); |
delete FieldDescriptorProto_reflection_; |
- delete OneofDescriptorProto::default_instance_; |
+ OneofDescriptorProto_default_instance_.Shutdown(); |
delete OneofDescriptorProto_reflection_; |
- delete EnumDescriptorProto::default_instance_; |
+ EnumDescriptorProto_default_instance_.Shutdown(); |
delete EnumDescriptorProto_reflection_; |
- delete EnumValueDescriptorProto::default_instance_; |
+ EnumValueDescriptorProto_default_instance_.Shutdown(); |
delete EnumValueDescriptorProto_reflection_; |
- delete ServiceDescriptorProto::default_instance_; |
+ ServiceDescriptorProto_default_instance_.Shutdown(); |
delete ServiceDescriptorProto_reflection_; |
- delete MethodDescriptorProto::default_instance_; |
+ MethodDescriptorProto_default_instance_.Shutdown(); |
delete MethodDescriptorProto_reflection_; |
- delete FileOptions::default_instance_; |
+ FileOptions_default_instance_.Shutdown(); |
delete FileOptions_reflection_; |
- delete MessageOptions::default_instance_; |
+ MessageOptions_default_instance_.Shutdown(); |
delete MessageOptions_reflection_; |
- delete FieldOptions::default_instance_; |
+ FieldOptions_default_instance_.Shutdown(); |
delete FieldOptions_reflection_; |
- delete EnumOptions::default_instance_; |
+ OneofOptions_default_instance_.Shutdown(); |
+ delete OneofOptions_reflection_; |
+ EnumOptions_default_instance_.Shutdown(); |
delete EnumOptions_reflection_; |
- delete EnumValueOptions::default_instance_; |
+ EnumValueOptions_default_instance_.Shutdown(); |
delete EnumValueOptions_reflection_; |
- delete ServiceOptions::default_instance_; |
+ ServiceOptions_default_instance_.Shutdown(); |
delete ServiceOptions_reflection_; |
- delete MethodOptions::default_instance_; |
+ MethodOptions_default_instance_.Shutdown(); |
delete MethodOptions_reflection_; |
- delete UninterpretedOption::default_instance_; |
+ UninterpretedOption_default_instance_.Shutdown(); |
delete UninterpretedOption_reflection_; |
- delete UninterpretedOption_NamePart::default_instance_; |
+ UninterpretedOption_NamePart_default_instance_.Shutdown(); |
delete UninterpretedOption_NamePart_reflection_; |
- delete SourceCodeInfo::default_instance_; |
+ SourceCodeInfo_default_instance_.Shutdown(); |
delete SourceCodeInfo_reflection_; |
- delete SourceCodeInfo_Location::default_instance_; |
+ SourceCodeInfo_Location_default_instance_.Shutdown(); |
delete SourceCodeInfo_Location_reflection_; |
- delete GeneratedCodeInfo::default_instance_; |
+ GeneratedCodeInfo_default_instance_.Shutdown(); |
delete GeneratedCodeInfo_reflection_; |
- delete GeneratedCodeInfo_Annotation::default_instance_; |
+ GeneratedCodeInfo_Annotation_default_instance_.Shutdown(); |
delete GeneratedCodeInfo_Annotation_reflection_; |
} |
-void protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto() { |
- static bool already_here = false; |
- if (already_here) return; |
- already_here = true; |
+void protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto_impl() { |
+ GOOGLE_PROTOBUF_VERIFY_VERSION; |
+ |
+ FileDescriptorSet_default_instance_.DefaultConstruct(); |
+ ::google::protobuf::internal::GetEmptyString(); |
+ FileDescriptorProto_default_instance_.DefaultConstruct(); |
+ ::google::protobuf::internal::GetEmptyString(); |
+ DescriptorProto_default_instance_.DefaultConstruct(); |
+ DescriptorProto_ExtensionRange_default_instance_.DefaultConstruct(); |
+ DescriptorProto_ReservedRange_default_instance_.DefaultConstruct(); |
+ ::google::protobuf::internal::GetEmptyString(); |
+ FieldDescriptorProto_default_instance_.DefaultConstruct(); |
+ ::google::protobuf::internal::GetEmptyString(); |
+ OneofDescriptorProto_default_instance_.DefaultConstruct(); |
+ ::google::protobuf::internal::GetEmptyString(); |
+ EnumDescriptorProto_default_instance_.DefaultConstruct(); |
+ ::google::protobuf::internal::GetEmptyString(); |
+ EnumValueDescriptorProto_default_instance_.DefaultConstruct(); |
+ ::google::protobuf::internal::GetEmptyString(); |
+ ServiceDescriptorProto_default_instance_.DefaultConstruct(); |
+ ::google::protobuf::internal::GetEmptyString(); |
+ MethodDescriptorProto_default_instance_.DefaultConstruct(); |
+ ::google::protobuf::internal::GetEmptyString(); |
+ FileOptions_default_instance_.DefaultConstruct(); |
+ MessageOptions_default_instance_.DefaultConstruct(); |
+ FieldOptions_default_instance_.DefaultConstruct(); |
+ OneofOptions_default_instance_.DefaultConstruct(); |
+ EnumOptions_default_instance_.DefaultConstruct(); |
+ EnumValueOptions_default_instance_.DefaultConstruct(); |
+ ServiceOptions_default_instance_.DefaultConstruct(); |
+ MethodOptions_default_instance_.DefaultConstruct(); |
+ ::google::protobuf::internal::GetEmptyString(); |
+ UninterpretedOption_default_instance_.DefaultConstruct(); |
+ ::google::protobuf::internal::GetEmptyString(); |
+ UninterpretedOption_NamePart_default_instance_.DefaultConstruct(); |
+ SourceCodeInfo_default_instance_.DefaultConstruct(); |
+ ::google::protobuf::internal::GetEmptyString(); |
+ SourceCodeInfo_Location_default_instance_.DefaultConstruct(); |
+ GeneratedCodeInfo_default_instance_.DefaultConstruct(); |
+ ::google::protobuf::internal::GetEmptyString(); |
+ GeneratedCodeInfo_Annotation_default_instance_.DefaultConstruct(); |
+ FileDescriptorSet_default_instance_.get_mutable()->InitAsDefaultInstance(); |
+ FileDescriptorProto_default_instance_.get_mutable()->InitAsDefaultInstance(); |
+ DescriptorProto_default_instance_.get_mutable()->InitAsDefaultInstance(); |
+ DescriptorProto_ExtensionRange_default_instance_.get_mutable()->InitAsDefaultInstance(); |
+ DescriptorProto_ReservedRange_default_instance_.get_mutable()->InitAsDefaultInstance(); |
+ FieldDescriptorProto_default_instance_.get_mutable()->InitAsDefaultInstance(); |
+ OneofDescriptorProto_default_instance_.get_mutable()->InitAsDefaultInstance(); |
+ EnumDescriptorProto_default_instance_.get_mutable()->InitAsDefaultInstance(); |
+ EnumValueDescriptorProto_default_instance_.get_mutable()->InitAsDefaultInstance(); |
+ ServiceDescriptorProto_default_instance_.get_mutable()->InitAsDefaultInstance(); |
+ MethodDescriptorProto_default_instance_.get_mutable()->InitAsDefaultInstance(); |
+ FileOptions_default_instance_.get_mutable()->InitAsDefaultInstance(); |
+ MessageOptions_default_instance_.get_mutable()->InitAsDefaultInstance(); |
+ FieldOptions_default_instance_.get_mutable()->InitAsDefaultInstance(); |
+ OneofOptions_default_instance_.get_mutable()->InitAsDefaultInstance(); |
+ EnumOptions_default_instance_.get_mutable()->InitAsDefaultInstance(); |
+ EnumValueOptions_default_instance_.get_mutable()->InitAsDefaultInstance(); |
+ ServiceOptions_default_instance_.get_mutable()->InitAsDefaultInstance(); |
+ MethodOptions_default_instance_.get_mutable()->InitAsDefaultInstance(); |
+ UninterpretedOption_default_instance_.get_mutable()->InitAsDefaultInstance(); |
+ UninterpretedOption_NamePart_default_instance_.get_mutable()->InitAsDefaultInstance(); |
+ SourceCodeInfo_default_instance_.get_mutable()->InitAsDefaultInstance(); |
+ SourceCodeInfo_Location_default_instance_.get_mutable()->InitAsDefaultInstance(); |
+ GeneratedCodeInfo_default_instance_.get_mutable()->InitAsDefaultInstance(); |
+ GeneratedCodeInfo_Annotation_default_instance_.get_mutable()->InitAsDefaultInstance(); |
+} |
+ |
+GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto_once_); |
+void protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto() { |
+ ::google::protobuf::GoogleOnceInit(&protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto_once_, |
+ &protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto_impl); |
+} |
+void protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto_impl() { |
GOOGLE_PROTOBUF_VERIFY_VERSION; |
+ protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
::google::protobuf::DescriptorPool::InternalAddGeneratedFile( |
"\n google/protobuf/descriptor.proto\022\017goog" |
"le.protobuf\"G\n\021FileDescriptorSet\0222\n\004file" |
@@ -729,140 +800,101 @@ void protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto() { |
"SFIXED32\020\017\022\021\n\rTYPE_SFIXED64\020\020\022\017\n\013TYPE_SI" |
"NT32\020\021\022\017\n\013TYPE_SINT64\020\022\"C\n\005Label\022\022\n\016LABE" |
"L_OPTIONAL\020\001\022\022\n\016LABEL_REQUIRED\020\002\022\022\n\016LABE" |
- "L_REPEATED\020\003\"$\n\024OneofDescriptorProto\022\014\n\004" |
- "name\030\001 \001(\t\"\214\001\n\023EnumDescriptorProto\022\014\n\004na" |
- "me\030\001 \001(\t\0228\n\005value\030\002 \003(\0132).google.protobu" |
- "f.EnumValueDescriptorProto\022-\n\007options\030\003 " |
- "\001(\0132\034.google.protobuf.EnumOptions\"l\n\030Enu" |
- "mValueDescriptorProto\022\014\n\004name\030\001 \001(\t\022\016\n\006n" |
- "umber\030\002 \001(\005\0222\n\007options\030\003 \001(\0132!.google.pr" |
- "otobuf.EnumValueOptions\"\220\001\n\026ServiceDescr" |
- "iptorProto\022\014\n\004name\030\001 \001(\t\0226\n\006method\030\002 \003(\013" |
- "2&.google.protobuf.MethodDescriptorProto" |
- "\0220\n\007options\030\003 \001(\0132\037.google.protobuf.Serv" |
- "iceOptions\"\301\001\n\025MethodDescriptorProto\022\014\n\004" |
- "name\030\001 \001(\t\022\022\n\ninput_type\030\002 \001(\t\022\023\n\013output" |
- "_type\030\003 \001(\t\022/\n\007options\030\004 \001(\0132\036.google.pr" |
- "otobuf.MethodOptions\022\037\n\020client_streaming" |
- "\030\005 \001(\010:\005false\022\037\n\020server_streaming\030\006 \001(\010:" |
- "\005false\"\207\005\n\013FileOptions\022\024\n\014java_package\030\001" |
- " \001(\t\022\034\n\024java_outer_classname\030\010 \001(\t\022\"\n\023ja" |
- "va_multiple_files\030\n \001(\010:\005false\022,\n\035java_g" |
- "enerate_equals_and_hash\030\024 \001(\010:\005false\022%\n\026" |
- "java_string_check_utf8\030\033 \001(\010:\005false\022F\n\014o" |
- "ptimize_for\030\t \001(\0162).google.protobuf.File" |
- "Options.OptimizeMode:\005SPEED\022\022\n\ngo_packag" |
- "e\030\013 \001(\t\022\"\n\023cc_generic_services\030\020 \001(\010:\005fa" |
- "lse\022$\n\025java_generic_services\030\021 \001(\010:\005fals" |
- "e\022\"\n\023py_generic_services\030\022 \001(\010:\005false\022\031\n" |
- "\ndeprecated\030\027 \001(\010:\005false\022\037\n\020cc_enable_ar" |
- "enas\030\037 \001(\010:\005false\022\031\n\021objc_class_prefix\030$" |
- " \001(\t\022\030\n\020csharp_namespace\030% \001(\t\022C\n\024uninte" |
- "rpreted_option\030\347\007 \003(\0132$.google.protobuf." |
- "UninterpretedOption\":\n\014OptimizeMode\022\t\n\005S" |
- "PEED\020\001\022\r\n\tCODE_SIZE\020\002\022\020\n\014LITE_RUNTIME\020\003*" |
- "\t\010\350\007\020\200\200\200\200\002J\004\010&\020\'\"\346\001\n\016MessageOptions\022&\n\027m" |
- "essage_set_wire_format\030\001 \001(\010:\005false\022.\n\037n" |
- "o_standard_descriptor_accessor\030\002 \001(\010:\005fa" |
- "lse\022\031\n\ndeprecated\030\003 \001(\010:\005false\022\021\n\tmap_en" |
- "try\030\007 \001(\010\022C\n\024uninterpreted_option\030\347\007 \003(\013" |
- "2$.google.protobuf.UninterpretedOption*\t" |
- "\010\350\007\020\200\200\200\200\002\"\230\003\n\014FieldOptions\022:\n\005ctype\030\001 \001(" |
- "\0162#.google.protobuf.FieldOptions.CType:\006" |
- "STRING\022\016\n\006packed\030\002 \001(\010\022\?\n\006jstype\030\006 \001(\0162$" |
- ".google.protobuf.FieldOptions.JSType:\tJS" |
- "_NORMAL\022\023\n\004lazy\030\005 \001(\010:\005false\022\031\n\ndeprecat" |
- "ed\030\003 \001(\010:\005false\022\023\n\004weak\030\n \001(\010:\005false\022C\n\024" |
- "uninterpreted_option\030\347\007 \003(\0132$.google.pro" |
- "tobuf.UninterpretedOption\"/\n\005CType\022\n\n\006ST" |
- "RING\020\000\022\010\n\004CORD\020\001\022\020\n\014STRING_PIECE\020\002\"5\n\006JS" |
- "Type\022\r\n\tJS_NORMAL\020\000\022\r\n\tJS_STRING\020\001\022\r\n\tJS" |
- "_NUMBER\020\002*\t\010\350\007\020\200\200\200\200\002\"\215\001\n\013EnumOptions\022\023\n\013" |
- "allow_alias\030\002 \001(\010\022\031\n\ndeprecated\030\003 \001(\010:\005f" |
+ "L_REPEATED\020\003\"T\n\024OneofDescriptorProto\022\014\n\004" |
+ "name\030\001 \001(\t\022.\n\007options\030\002 \001(\0132\035.google.pro" |
+ "tobuf.OneofOptions\"\214\001\n\023EnumDescriptorPro" |
+ "to\022\014\n\004name\030\001 \001(\t\0228\n\005value\030\002 \003(\0132).google" |
+ ".protobuf.EnumValueDescriptorProto\022-\n\007op" |
+ "tions\030\003 \001(\0132\034.google.protobuf.EnumOption" |
+ "s\"l\n\030EnumValueDescriptorProto\022\014\n\004name\030\001 " |
+ "\001(\t\022\016\n\006number\030\002 \001(\005\0222\n\007options\030\003 \001(\0132!.g" |
+ "oogle.protobuf.EnumValueOptions\"\220\001\n\026Serv" |
+ "iceDescriptorProto\022\014\n\004name\030\001 \001(\t\0226\n\006meth" |
+ "od\030\002 \003(\0132&.google.protobuf.MethodDescrip" |
+ "torProto\0220\n\007options\030\003 \001(\0132\037.google.proto" |
+ "buf.ServiceOptions\"\301\001\n\025MethodDescriptorP" |
+ "roto\022\014\n\004name\030\001 \001(\t\022\022\n\ninput_type\030\002 \001(\t\022\023" |
+ "\n\013output_type\030\003 \001(\t\022/\n\007options\030\004 \001(\0132\036.g" |
+ "oogle.protobuf.MethodOptions\022\037\n\020client_s" |
+ "treaming\030\005 \001(\010:\005false\022\037\n\020server_streamin" |
+ "g\030\006 \001(\010:\005false\"\204\005\n\013FileOptions\022\024\n\014java_p" |
+ "ackage\030\001 \001(\t\022\034\n\024java_outer_classname\030\010 \001" |
+ "(\t\022\"\n\023java_multiple_files\030\n \001(\010:\005false\022)" |
+ "\n\035java_generate_equals_and_hash\030\024 \001(\010B\002\030" |
+ "\001\022%\n\026java_string_check_utf8\030\033 \001(\010:\005false" |
+ "\022F\n\014optimize_for\030\t \001(\0162).google.protobuf" |
+ ".FileOptions.OptimizeMode:\005SPEED\022\022\n\ngo_p" |
+ "ackage\030\013 \001(\t\022\"\n\023cc_generic_services\030\020 \001(" |
+ "\010:\005false\022$\n\025java_generic_services\030\021 \001(\010:" |
+ "\005false\022\"\n\023py_generic_services\030\022 \001(\010:\005fal" |
+ "se\022\031\n\ndeprecated\030\027 \001(\010:\005false\022\037\n\020cc_enab" |
+ "le_arenas\030\037 \001(\010:\005false\022\031\n\021objc_class_pre" |
+ "fix\030$ \001(\t\022\030\n\020csharp_namespace\030% \001(\t\022C\n\024u" |
+ "ninterpreted_option\030\347\007 \003(\0132$.google.prot" |
+ "obuf.UninterpretedOption\":\n\014OptimizeMode" |
+ "\022\t\n\005SPEED\020\001\022\r\n\tCODE_SIZE\020\002\022\020\n\014LITE_RUNTI" |
+ "ME\020\003*\t\010\350\007\020\200\200\200\200\002J\004\010&\020\'\"\354\001\n\016MessageOptions" |
+ "\022&\n\027message_set_wire_format\030\001 \001(\010:\005false" |
+ "\022.\n\037no_standard_descriptor_accessor\030\002 \001(" |
+ "\010:\005false\022\031\n\ndeprecated\030\003 \001(\010:\005false\022\021\n\tm" |
+ "ap_entry\030\007 \001(\010\022C\n\024uninterpreted_option\030\347" |
+ "\007 \003(\0132$.google.protobuf.UninterpretedOpt" |
+ "ion*\t\010\350\007\020\200\200\200\200\002J\004\010\010\020\t\"\236\003\n\014FieldOptions\022:\n" |
+ "\005ctype\030\001 \001(\0162#.google.protobuf.FieldOpti" |
+ "ons.CType:\006STRING\022\016\n\006packed\030\002 \001(\010\022\?\n\006jst" |
+ "ype\030\006 \001(\0162$.google.protobuf.FieldOptions" |
+ ".JSType:\tJS_NORMAL\022\023\n\004lazy\030\005 \001(\010:\005false\022" |
+ "\031\n\ndeprecated\030\003 \001(\010:\005false\022\023\n\004weak\030\n \001(\010" |
+ ":\005false\022C\n\024uninterpreted_option\030\347\007 \003(\0132$" |
+ ".google.protobuf.UninterpretedOption\"/\n\005" |
+ "CType\022\n\n\006STRING\020\000\022\010\n\004CORD\020\001\022\020\n\014STRING_PI" |
+ "ECE\020\002\"5\n\006JSType\022\r\n\tJS_NORMAL\020\000\022\r\n\tJS_STR" |
+ "ING\020\001\022\r\n\tJS_NUMBER\020\002*\t\010\350\007\020\200\200\200\200\002J\004\010\004\020\005\"^\n" |
+ "\014OneofOptions\022C\n\024uninterpreted_option\030\347\007" |
+ " \003(\0132$.google.protobuf.UninterpretedOpti" |
+ "on*\t\010\350\007\020\200\200\200\200\002\"\215\001\n\013EnumOptions\022\023\n\013allow_a" |
+ "lias\030\002 \001(\010\022\031\n\ndeprecated\030\003 \001(\010:\005false\022C\n" |
+ "\024uninterpreted_option\030\347\007 \003(\0132$.google.pr" |
+ "otobuf.UninterpretedOption*\t\010\350\007\020\200\200\200\200\002\"}\n" |
+ "\020EnumValueOptions\022\031\n\ndeprecated\030\001 \001(\010:\005f" |
"alse\022C\n\024uninterpreted_option\030\347\007 \003(\0132$.go" |
"ogle.protobuf.UninterpretedOption*\t\010\350\007\020\200" |
- "\200\200\200\002\"}\n\020EnumValueOptions\022\031\n\ndeprecated\030\001" |
- " \001(\010:\005false\022C\n\024uninterpreted_option\030\347\007 \003" |
- "(\0132$.google.protobuf.UninterpretedOption" |
- "*\t\010\350\007\020\200\200\200\200\002\"{\n\016ServiceOptions\022\031\n\ndepreca" |
- "ted\030! \001(\010:\005false\022C\n\024uninterpreted_option" |
- "\030\347\007 \003(\0132$.google.protobuf.UninterpretedO" |
- "ption*\t\010\350\007\020\200\200\200\200\002\"z\n\rMethodOptions\022\031\n\ndep" |
- "recated\030! \001(\010:\005false\022C\n\024uninterpreted_op" |
- "tion\030\347\007 \003(\0132$.google.protobuf.Uninterpre" |
- "tedOption*\t\010\350\007\020\200\200\200\200\002\"\236\002\n\023UninterpretedOp" |
- "tion\022;\n\004name\030\002 \003(\0132-.google.protobuf.Uni" |
- "nterpretedOption.NamePart\022\030\n\020identifier_" |
- "value\030\003 \001(\t\022\032\n\022positive_int_value\030\004 \001(\004\022" |
- "\032\n\022negative_int_value\030\005 \001(\003\022\024\n\014double_va" |
- "lue\030\006 \001(\001\022\024\n\014string_value\030\007 \001(\014\022\027\n\017aggre" |
- "gate_value\030\010 \001(\t\0323\n\010NamePart\022\021\n\tname_par" |
- "t\030\001 \002(\t\022\024\n\014is_extension\030\002 \002(\010\"\325\001\n\016Source" |
- "CodeInfo\022:\n\010location\030\001 \003(\0132(.google.prot" |
- "obuf.SourceCodeInfo.Location\032\206\001\n\010Locatio" |
- "n\022\020\n\004path\030\001 \003(\005B\002\020\001\022\020\n\004span\030\002 \003(\005B\002\020\001\022\030\n" |
- "\020leading_comments\030\003 \001(\t\022\031\n\021trailing_comm" |
- "ents\030\004 \001(\t\022!\n\031leading_detached_comments\030" |
- "\006 \003(\t\"\247\001\n\021GeneratedCodeInfo\022A\n\nannotatio" |
- "n\030\001 \003(\0132-.google.protobuf.GeneratedCodeI" |
- "nfo.Annotation\032O\n\nAnnotation\022\020\n\004path\030\001 \003" |
- "(\005B\002\020\001\022\023\n\013source_file\030\002 \001(\t\022\r\n\005begin\030\003 \001" |
- "(\005\022\013\n\003end\030\004 \001(\005BX\n\023com.google.protobufB\020" |
- "DescriptorProtosH\001Z\ndescriptor\242\002\003GPB\252\002\032G" |
- "oogle.Protobuf.Reflection", 5145); |
+ "\200\200\200\002\"{\n\016ServiceOptions\022\031\n\ndeprecated\030! \001" |
+ "(\010:\005false\022C\n\024uninterpreted_option\030\347\007 \003(\013" |
+ "2$.google.protobuf.UninterpretedOption*\t" |
+ "\010\350\007\020\200\200\200\200\002\"z\n\rMethodOptions\022\031\n\ndeprecated" |
+ "\030! \001(\010:\005false\022C\n\024uninterpreted_option\030\347\007" |
+ " \003(\0132$.google.protobuf.UninterpretedOpti" |
+ "on*\t\010\350\007\020\200\200\200\200\002\"\236\002\n\023UninterpretedOption\022;\n" |
+ "\004name\030\002 \003(\0132-.google.protobuf.Uninterpre" |
+ "tedOption.NamePart\022\030\n\020identifier_value\030\003" |
+ " \001(\t\022\032\n\022positive_int_value\030\004 \001(\004\022\032\n\022nega" |
+ "tive_int_value\030\005 \001(\003\022\024\n\014double_value\030\006 \001" |
+ "(\001\022\024\n\014string_value\030\007 \001(\014\022\027\n\017aggregate_va" |
+ "lue\030\010 \001(\t\0323\n\010NamePart\022\021\n\tname_part\030\001 \002(\t" |
+ "\022\024\n\014is_extension\030\002 \002(\010\"\325\001\n\016SourceCodeInf" |
+ "o\022:\n\010location\030\001 \003(\0132(.google.protobuf.So" |
+ "urceCodeInfo.Location\032\206\001\n\010Location\022\020\n\004pa" |
+ "th\030\001 \003(\005B\002\020\001\022\020\n\004span\030\002 \003(\005B\002\020\001\022\030\n\020leadin" |
+ "g_comments\030\003 \001(\t\022\031\n\021trailing_comments\030\004 " |
+ "\001(\t\022!\n\031leading_detached_comments\030\006 \003(\t\"\247" |
+ "\001\n\021GeneratedCodeInfo\022A\n\nannotation\030\001 \003(\013" |
+ "2-.google.protobuf.GeneratedCodeInfo.Ann" |
+ "otation\032O\n\nAnnotation\022\020\n\004path\030\001 \003(\005B\002\020\001\022" |
+ "\023\n\013source_file\030\002 \001(\t\022\r\n\005begin\030\003 \001(\005\022\013\n\003e" |
+ "nd\030\004 \001(\005BX\n\023com.google.protobufB\020Descrip" |
+ "torProtosH\001Z\ndescriptor\242\002\003GPB\252\002\032Google.P" |
+ "rotobuf.Reflection", 5298); |
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( |
"google/protobuf/descriptor.proto", &protobuf_RegisterTypes); |
- FileDescriptorSet::default_instance_ = new FileDescriptorSet(); |
- FileDescriptorProto::default_instance_ = new FileDescriptorProto(); |
- DescriptorProto::default_instance_ = new DescriptorProto(); |
- DescriptorProto_ExtensionRange::default_instance_ = new DescriptorProto_ExtensionRange(); |
- DescriptorProto_ReservedRange::default_instance_ = new DescriptorProto_ReservedRange(); |
- FieldDescriptorProto::default_instance_ = new FieldDescriptorProto(); |
- OneofDescriptorProto::default_instance_ = new OneofDescriptorProto(); |
- EnumDescriptorProto::default_instance_ = new EnumDescriptorProto(); |
- EnumValueDescriptorProto::default_instance_ = new EnumValueDescriptorProto(); |
- ServiceDescriptorProto::default_instance_ = new ServiceDescriptorProto(); |
- MethodDescriptorProto::default_instance_ = new MethodDescriptorProto(); |
- FileOptions::default_instance_ = new FileOptions(); |
- MessageOptions::default_instance_ = new MessageOptions(); |
- FieldOptions::default_instance_ = new FieldOptions(); |
- EnumOptions::default_instance_ = new EnumOptions(); |
- EnumValueOptions::default_instance_ = new EnumValueOptions(); |
- ServiceOptions::default_instance_ = new ServiceOptions(); |
- MethodOptions::default_instance_ = new MethodOptions(); |
- UninterpretedOption::default_instance_ = new UninterpretedOption(); |
- UninterpretedOption_NamePart::default_instance_ = new UninterpretedOption_NamePart(); |
- SourceCodeInfo::default_instance_ = new SourceCodeInfo(); |
- SourceCodeInfo_Location::default_instance_ = new SourceCodeInfo_Location(); |
- GeneratedCodeInfo::default_instance_ = new GeneratedCodeInfo(); |
- GeneratedCodeInfo_Annotation::default_instance_ = new GeneratedCodeInfo_Annotation(); |
- FileDescriptorSet::default_instance_->InitAsDefaultInstance(); |
- FileDescriptorProto::default_instance_->InitAsDefaultInstance(); |
- DescriptorProto::default_instance_->InitAsDefaultInstance(); |
- DescriptorProto_ExtensionRange::default_instance_->InitAsDefaultInstance(); |
- DescriptorProto_ReservedRange::default_instance_->InitAsDefaultInstance(); |
- FieldDescriptorProto::default_instance_->InitAsDefaultInstance(); |
- OneofDescriptorProto::default_instance_->InitAsDefaultInstance(); |
- EnumDescriptorProto::default_instance_->InitAsDefaultInstance(); |
- EnumValueDescriptorProto::default_instance_->InitAsDefaultInstance(); |
- ServiceDescriptorProto::default_instance_->InitAsDefaultInstance(); |
- MethodDescriptorProto::default_instance_->InitAsDefaultInstance(); |
- FileOptions::default_instance_->InitAsDefaultInstance(); |
- MessageOptions::default_instance_->InitAsDefaultInstance(); |
- FieldOptions::default_instance_->InitAsDefaultInstance(); |
- EnumOptions::default_instance_->InitAsDefaultInstance(); |
- EnumValueOptions::default_instance_->InitAsDefaultInstance(); |
- ServiceOptions::default_instance_->InitAsDefaultInstance(); |
- MethodOptions::default_instance_->InitAsDefaultInstance(); |
- UninterpretedOption::default_instance_->InitAsDefaultInstance(); |
- UninterpretedOption_NamePart::default_instance_->InitAsDefaultInstance(); |
- SourceCodeInfo::default_instance_->InitAsDefaultInstance(); |
- SourceCodeInfo_Location::default_instance_->InitAsDefaultInstance(); |
- GeneratedCodeInfo::default_instance_->InitAsDefaultInstance(); |
- GeneratedCodeInfo_Annotation::default_instance_->InitAsDefaultInstance(); |
::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto); |
} |
+GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto_once_); |
+void protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto() { |
+ ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto_once_, |
+ &protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto_impl); |
+} |
// Force AddDescriptors() to be called at static initialization time. |
struct StaticDescriptorInitializer_google_2fprotobuf_2fdescriptor_2eproto { |
StaticDescriptorInitializer_google_2fprotobuf_2fdescriptor_2eproto() { |
@@ -872,9 +904,9 @@ struct StaticDescriptorInitializer_google_2fprotobuf_2fdescriptor_2eproto { |
namespace { |
-static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD; |
+static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD GOOGLE_ATTRIBUTE_NORETURN; |
static void MergeFromFail(int line) { |
- GOOGLE_CHECK(false) << __FILE__ << ":" << line; |
+ ::google::protobuf::internal::MergeFromFail(__FILE__, line); |
} |
} // namespace |
@@ -888,6 +920,7 @@ const int FileDescriptorSet::kFileFieldNumber; |
FileDescriptorSet::FileDescriptorSet() |
: ::google::protobuf::Message(), _internal_metadata_(NULL) { |
+ if (this != internal_default_instance()) protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
SharedCtor(); |
// @@protoc_insertion_point(constructor:google.protobuf.FileDescriptorSet) |
} |
@@ -899,13 +932,12 @@ FileDescriptorSet::FileDescriptorSet(const FileDescriptorSet& from) |
: ::google::protobuf::Message(), |
_internal_metadata_(NULL) { |
SharedCtor(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
// @@protoc_insertion_point(copy_constructor:google.protobuf.FileDescriptorSet) |
} |
void FileDescriptorSet::SharedCtor() { |
_cached_size_ = 0; |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
} |
FileDescriptorSet::~FileDescriptorSet() { |
@@ -914,8 +946,6 @@ FileDescriptorSet::~FileDescriptorSet() { |
} |
void FileDescriptorSet::SharedDtor() { |
- if (this != default_instance_) { |
- } |
} |
void FileDescriptorSet::SetCachedSize(int size) const { |
@@ -929,11 +959,11 @@ const ::google::protobuf::Descriptor* FileDescriptorSet::descriptor() { |
} |
const FileDescriptorSet& FileDescriptorSet::default_instance() { |
- if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
- return *default_instance_; |
+ protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
+ return *internal_default_instance(); |
} |
-FileDescriptorSet* FileDescriptorSet::default_instance_ = NULL; |
+::google::protobuf::internal::ExplicitlyConstructed<FileDescriptorSet> FileDescriptorSet_default_instance_; |
FileDescriptorSet* FileDescriptorSet::New(::google::protobuf::Arena* arena) const { |
FileDescriptorSet* n = new FileDescriptorSet; |
@@ -946,7 +976,7 @@ FileDescriptorSet* FileDescriptorSet::New(::google::protobuf::Arena* arena) cons |
void FileDescriptorSet::Clear() { |
// @@protoc_insertion_point(message_clear_start:google.protobuf.FileDescriptorSet) |
file_.Clear(); |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ _has_bits_.Clear(); |
if (_internal_metadata_.have_unknown_fields()) { |
mutable_unknown_fields()->Clear(); |
} |
@@ -1016,14 +1046,15 @@ void FileDescriptorSet::SerializeWithCachedSizes( |
// @@protoc_insertion_point(serialize_end:google.protobuf.FileDescriptorSet) |
} |
-::google::protobuf::uint8* FileDescriptorSet::SerializeWithCachedSizesToArray( |
- ::google::protobuf::uint8* target) const { |
+::google::protobuf::uint8* FileDescriptorSet::InternalSerializeWithCachedSizesToArray( |
+ bool deterministic, ::google::protobuf::uint8* target) const { |
+ (void)deterministic; // Unused |
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileDescriptorSet) |
// repeated .google.protobuf.FileDescriptorProto file = 1; |
for (unsigned int i = 0, n = this->file_size(); i < n; i++) { |
target = ::google::protobuf::internal::WireFormatLite:: |
- WriteMessageNoVirtualToArray( |
- 1, this->file(i), target); |
+ InternalWriteMessageNoVirtualToArray( |
+ 1, this->file(i), false, target); |
} |
if (_internal_metadata_.have_unknown_fields()) { |
@@ -1034,16 +1065,19 @@ void FileDescriptorSet::SerializeWithCachedSizes( |
return target; |
} |
-int FileDescriptorSet::ByteSize() const { |
+size_t FileDescriptorSet::ByteSizeLong() const { |
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.FileDescriptorSet) |
- int total_size = 0; |
+ size_t total_size = 0; |
// repeated .google.protobuf.FileDescriptorProto file = 1; |
- total_size += 1 * this->file_size(); |
- for (int i = 0; i < this->file_size(); i++) { |
- total_size += |
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
- this->file(i)); |
+ { |
+ unsigned int count = this->file_size(); |
+ total_size += 1UL * count; |
+ for (unsigned int i = 0; i < count; i++) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->file(i)); |
+ } |
} |
if (_internal_metadata_.have_unknown_fields()) { |
@@ -1051,8 +1085,9 @@ int FileDescriptorSet::ByteSize() const { |
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
unknown_fields()); |
} |
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
- _cached_size_ = total_size; |
+ _cached_size_ = cached_size; |
GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
return total_size; |
} |
@@ -1060,7 +1095,7 @@ int FileDescriptorSet::ByteSize() const { |
void FileDescriptorSet::MergeFrom(const ::google::protobuf::Message& from) { |
// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FileDescriptorSet) |
if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
- const FileDescriptorSet* source = |
+ const FileDescriptorSet* source = |
::google::protobuf::internal::DynamicCastToGenerated<const FileDescriptorSet>( |
&from); |
if (source == NULL) { |
@@ -1068,16 +1103,25 @@ void FileDescriptorSet::MergeFrom(const ::google::protobuf::Message& from) { |
::google::protobuf::internal::ReflectionOps::Merge(from, this); |
} else { |
// @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.FileDescriptorSet) |
- MergeFrom(*source); |
+ UnsafeMergeFrom(*source); |
} |
} |
void FileDescriptorSet::MergeFrom(const FileDescriptorSet& from) { |
// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.FileDescriptorSet) |
- if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
+ if (GOOGLE_PREDICT_TRUE(&from != this)) { |
+ UnsafeMergeFrom(from); |
+ } else { |
+ MergeFromFail(__LINE__); |
+ } |
+} |
+ |
+void FileDescriptorSet::UnsafeMergeFrom(const FileDescriptorSet& from) { |
+ GOOGLE_DCHECK(&from != this); |
file_.MergeFrom(from.file_); |
if (from._internal_metadata_.have_unknown_fields()) { |
- mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+ ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( |
+ from.unknown_fields(), &_internal_metadata_); |
} |
} |
@@ -1092,7 +1136,7 @@ void FileDescriptorSet::CopyFrom(const FileDescriptorSet& from) { |
// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FileDescriptorSet) |
if (&from == this) return; |
Clear(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
} |
bool FileDescriptorSet::IsInitialized() const { |
@@ -1153,6 +1197,9 @@ FileDescriptorSet::file() const { |
return file_; |
} |
+inline const FileDescriptorSet* FileDescriptorSet::internal_default_instance() { |
+ return &FileDescriptorSet_default_instance_.get(); |
+} |
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
// =================================================================== |
@@ -1174,32 +1221,33 @@ const int FileDescriptorProto::kSyntaxFieldNumber; |
FileDescriptorProto::FileDescriptorProto() |
: ::google::protobuf::Message(), _internal_metadata_(NULL) { |
+ if (this != internal_default_instance()) protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
SharedCtor(); |
// @@protoc_insertion_point(constructor:google.protobuf.FileDescriptorProto) |
} |
void FileDescriptorProto::InitAsDefaultInstance() { |
- options_ = const_cast< ::google::protobuf::FileOptions*>(&::google::protobuf::FileOptions::default_instance()); |
- source_code_info_ = const_cast< ::google::protobuf::SourceCodeInfo*>(&::google::protobuf::SourceCodeInfo::default_instance()); |
+ options_ = const_cast< ::google::protobuf::FileOptions*>( |
+ ::google::protobuf::FileOptions::internal_default_instance()); |
+ source_code_info_ = const_cast< ::google::protobuf::SourceCodeInfo*>( |
+ ::google::protobuf::SourceCodeInfo::internal_default_instance()); |
} |
FileDescriptorProto::FileDescriptorProto(const FileDescriptorProto& from) |
: ::google::protobuf::Message(), |
_internal_metadata_(NULL) { |
SharedCtor(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
// @@protoc_insertion_point(copy_constructor:google.protobuf.FileDescriptorProto) |
} |
void FileDescriptorProto::SharedCtor() { |
- ::google::protobuf::internal::GetEmptyString(); |
_cached_size_ = 0; |
name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
+ syntax_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
options_ = NULL; |
source_code_info_ = NULL; |
- syntax_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
} |
FileDescriptorProto::~FileDescriptorProto() { |
@@ -1211,7 +1259,7 @@ void FileDescriptorProto::SharedDtor() { |
name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
syntax_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
- if (this != default_instance_) { |
+ if (this != &FileDescriptorProto_default_instance_.get()) { |
delete options_; |
delete source_code_info_; |
} |
@@ -1228,11 +1276,11 @@ const ::google::protobuf::Descriptor* FileDescriptorProto::descriptor() { |
} |
const FileDescriptorProto& FileDescriptorProto::default_instance() { |
- if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
- return *default_instance_; |
+ protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
+ return *internal_default_instance(); |
} |
-FileDescriptorProto* FileDescriptorProto::default_instance_ = NULL; |
+::google::protobuf::internal::ExplicitlyConstructed<FileDescriptorProto> FileDescriptorProto_default_instance_; |
FileDescriptorProto* FileDescriptorProto::New(::google::protobuf::Arena* arena) const { |
FileDescriptorProto* n = new FileDescriptorProto; |
@@ -1270,7 +1318,7 @@ void FileDescriptorProto::Clear() { |
enum_type_.Clear(); |
service_.Clear(); |
extension_.Clear(); |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ _has_bits_.Clear(); |
if (_internal_metadata_.have_unknown_fields()) { |
mutable_unknown_fields()->Clear(); |
} |
@@ -1604,8 +1652,9 @@ void FileDescriptorProto::SerializeWithCachedSizes( |
// @@protoc_insertion_point(serialize_end:google.protobuf.FileDescriptorProto) |
} |
-::google::protobuf::uint8* FileDescriptorProto::SerializeWithCachedSizesToArray( |
- ::google::protobuf::uint8* target) const { |
+::google::protobuf::uint8* FileDescriptorProto::InternalSerializeWithCachedSizesToArray( |
+ bool deterministic, ::google::protobuf::uint8* target) const { |
+ (void)deterministic; // Unused |
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileDescriptorProto) |
// optional string name = 1; |
if (has_name()) { |
@@ -1642,43 +1691,43 @@ void FileDescriptorProto::SerializeWithCachedSizes( |
// repeated .google.protobuf.DescriptorProto message_type = 4; |
for (unsigned int i = 0, n = this->message_type_size(); i < n; i++) { |
target = ::google::protobuf::internal::WireFormatLite:: |
- WriteMessageNoVirtualToArray( |
- 4, this->message_type(i), target); |
+ InternalWriteMessageNoVirtualToArray( |
+ 4, this->message_type(i), false, target); |
} |
// repeated .google.protobuf.EnumDescriptorProto enum_type = 5; |
for (unsigned int i = 0, n = this->enum_type_size(); i < n; i++) { |
target = ::google::protobuf::internal::WireFormatLite:: |
- WriteMessageNoVirtualToArray( |
- 5, this->enum_type(i), target); |
+ InternalWriteMessageNoVirtualToArray( |
+ 5, this->enum_type(i), false, target); |
} |
// repeated .google.protobuf.ServiceDescriptorProto service = 6; |
for (unsigned int i = 0, n = this->service_size(); i < n; i++) { |
target = ::google::protobuf::internal::WireFormatLite:: |
- WriteMessageNoVirtualToArray( |
- 6, this->service(i), target); |
+ InternalWriteMessageNoVirtualToArray( |
+ 6, this->service(i), false, target); |
} |
// repeated .google.protobuf.FieldDescriptorProto extension = 7; |
for (unsigned int i = 0, n = this->extension_size(); i < n; i++) { |
target = ::google::protobuf::internal::WireFormatLite:: |
- WriteMessageNoVirtualToArray( |
- 7, this->extension(i), target); |
+ InternalWriteMessageNoVirtualToArray( |
+ 7, this->extension(i), false, target); |
} |
// optional .google.protobuf.FileOptions options = 8; |
if (has_options()) { |
target = ::google::protobuf::internal::WireFormatLite:: |
- WriteMessageNoVirtualToArray( |
- 8, *this->options_, target); |
+ InternalWriteMessageNoVirtualToArray( |
+ 8, *this->options_, false, target); |
} |
// optional .google.protobuf.SourceCodeInfo source_code_info = 9; |
if (has_source_code_info()) { |
target = ::google::protobuf::internal::WireFormatLite:: |
- WriteMessageNoVirtualToArray( |
- 9, *this->source_code_info_, target); |
+ InternalWriteMessageNoVirtualToArray( |
+ 9, *this->source_code_info_, false, target); |
} |
// repeated int32 public_dependency = 10; |
@@ -1712,9 +1761,9 @@ void FileDescriptorProto::SerializeWithCachedSizes( |
return target; |
} |
-int FileDescriptorProto::ByteSize() const { |
+size_t FileDescriptorProto::ByteSizeLong() const { |
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.FileDescriptorProto) |
- int total_size = 0; |
+ size_t total_size = 0; |
if (_has_bits_[0 / 32] & 3u) { |
// optional string name = 1; |
@@ -1756,7 +1805,8 @@ int FileDescriptorProto::ByteSize() const { |
} |
// repeated string dependency = 3; |
- total_size += 1 * this->dependency_size(); |
+ total_size += 1 * |
+ ::google::protobuf::internal::FromIntSize(this->dependency_size()); |
for (int i = 0; i < this->dependency_size(); i++) { |
total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
this->dependency(i)); |
@@ -1764,54 +1814,72 @@ int FileDescriptorProto::ByteSize() const { |
// repeated int32 public_dependency = 10; |
{ |
- int data_size = 0; |
- for (int i = 0; i < this->public_dependency_size(); i++) { |
+ size_t data_size = 0; |
+ unsigned int count = this->public_dependency_size(); |
+ for (unsigned int i = 0; i < count; i++) { |
data_size += ::google::protobuf::internal::WireFormatLite:: |
Int32Size(this->public_dependency(i)); |
} |
- total_size += 1 * this->public_dependency_size() + data_size; |
+ total_size += 1 * |
+ ::google::protobuf::internal::FromIntSize(this->public_dependency_size()); |
+ total_size += data_size; |
} |
// repeated int32 weak_dependency = 11; |
{ |
- int data_size = 0; |
- for (int i = 0; i < this->weak_dependency_size(); i++) { |
+ size_t data_size = 0; |
+ unsigned int count = this->weak_dependency_size(); |
+ for (unsigned int i = 0; i < count; i++) { |
data_size += ::google::protobuf::internal::WireFormatLite:: |
Int32Size(this->weak_dependency(i)); |
} |
- total_size += 1 * this->weak_dependency_size() + data_size; |
+ total_size += 1 * |
+ ::google::protobuf::internal::FromIntSize(this->weak_dependency_size()); |
+ total_size += data_size; |
} |
// repeated .google.protobuf.DescriptorProto message_type = 4; |
- total_size += 1 * this->message_type_size(); |
- for (int i = 0; i < this->message_type_size(); i++) { |
- total_size += |
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
- this->message_type(i)); |
+ { |
+ unsigned int count = this->message_type_size(); |
+ total_size += 1UL * count; |
+ for (unsigned int i = 0; i < count; i++) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->message_type(i)); |
+ } |
} |
// repeated .google.protobuf.EnumDescriptorProto enum_type = 5; |
- total_size += 1 * this->enum_type_size(); |
- for (int i = 0; i < this->enum_type_size(); i++) { |
- total_size += |
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
- this->enum_type(i)); |
+ { |
+ unsigned int count = this->enum_type_size(); |
+ total_size += 1UL * count; |
+ for (unsigned int i = 0; i < count; i++) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->enum_type(i)); |
+ } |
} |
// repeated .google.protobuf.ServiceDescriptorProto service = 6; |
- total_size += 1 * this->service_size(); |
- for (int i = 0; i < this->service_size(); i++) { |
- total_size += |
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
- this->service(i)); |
+ { |
+ unsigned int count = this->service_size(); |
+ total_size += 1UL * count; |
+ for (unsigned int i = 0; i < count; i++) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->service(i)); |
+ } |
} |
// repeated .google.protobuf.FieldDescriptorProto extension = 7; |
- total_size += 1 * this->extension_size(); |
- for (int i = 0; i < this->extension_size(); i++) { |
- total_size += |
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
- this->extension(i)); |
+ { |
+ unsigned int count = this->extension_size(); |
+ total_size += 1UL * count; |
+ for (unsigned int i = 0; i < count; i++) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->extension(i)); |
+ } |
} |
if (_internal_metadata_.have_unknown_fields()) { |
@@ -1819,8 +1887,9 @@ int FileDescriptorProto::ByteSize() const { |
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
unknown_fields()); |
} |
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
- _cached_size_ = total_size; |
+ _cached_size_ = cached_size; |
GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
return total_size; |
} |
@@ -1828,7 +1897,7 @@ int FileDescriptorProto::ByteSize() const { |
void FileDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FileDescriptorProto) |
if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
- const FileDescriptorProto* source = |
+ const FileDescriptorProto* source = |
::google::protobuf::internal::DynamicCastToGenerated<const FileDescriptorProto>( |
&from); |
if (source == NULL) { |
@@ -1836,16 +1905,24 @@ void FileDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
::google::protobuf::internal::ReflectionOps::Merge(from, this); |
} else { |
// @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.FileDescriptorProto) |
- MergeFrom(*source); |
+ UnsafeMergeFrom(*source); |
} |
} |
void FileDescriptorProto::MergeFrom(const FileDescriptorProto& from) { |
// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.FileDescriptorProto) |
- if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
- dependency_.MergeFrom(from.dependency_); |
- public_dependency_.MergeFrom(from.public_dependency_); |
- weak_dependency_.MergeFrom(from.weak_dependency_); |
+ if (GOOGLE_PREDICT_TRUE(&from != this)) { |
+ UnsafeMergeFrom(from); |
+ } else { |
+ MergeFromFail(__LINE__); |
+ } |
+} |
+ |
+void FileDescriptorProto::UnsafeMergeFrom(const FileDescriptorProto& from) { |
+ GOOGLE_DCHECK(&from != this); |
+ dependency_.UnsafeMergeFrom(from.dependency_); |
+ public_dependency_.UnsafeMergeFrom(from.public_dependency_); |
+ weak_dependency_.UnsafeMergeFrom(from.weak_dependency_); |
message_type_.MergeFrom(from.message_type_); |
enum_type_.MergeFrom(from.enum_type_); |
service_.MergeFrom(from.service_); |
@@ -1873,7 +1950,8 @@ void FileDescriptorProto::MergeFrom(const FileDescriptorProto& from) { |
} |
} |
if (from._internal_metadata_.have_unknown_fields()) { |
- mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+ ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( |
+ from.unknown_fields(), &_internal_metadata_); |
} |
} |
@@ -1888,7 +1966,7 @@ void FileDescriptorProto::CopyFrom(const FileDescriptorProto& from) { |
// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FileDescriptorProto) |
if (&from == this) return; |
Clear(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
} |
bool FileDescriptorProto::IsInitialized() const { |
@@ -1950,37 +2028,37 @@ void FileDescriptorProto::clear_name() { |
name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
clear_has_name(); |
} |
- const ::std::string& FileDescriptorProto::name() const { |
+const ::std::string& FileDescriptorProto::name() const { |
// @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.name) |
return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void FileDescriptorProto::set_name(const ::std::string& value) { |
+void FileDescriptorProto::set_name(const ::std::string& value) { |
set_has_name(); |
name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
// @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.name) |
} |
- void FileDescriptorProto::set_name(const char* value) { |
+void FileDescriptorProto::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.FileDescriptorProto.name) |
} |
- void FileDescriptorProto::set_name(const char* value, size_t size) { |
+void FileDescriptorProto::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.FileDescriptorProto.name) |
} |
- ::std::string* FileDescriptorProto::mutable_name() { |
+::std::string* FileDescriptorProto::mutable_name() { |
set_has_name(); |
// @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.name) |
return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- ::std::string* FileDescriptorProto::release_name() { |
+::std::string* FileDescriptorProto::release_name() { |
// @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.name) |
clear_has_name(); |
return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void FileDescriptorProto::set_allocated_name(::std::string* name) { |
+void FileDescriptorProto::set_allocated_name(::std::string* name) { |
if (name != NULL) { |
set_has_name(); |
} else { |
@@ -2004,37 +2082,37 @@ void FileDescriptorProto::clear_package() { |
package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
clear_has_package(); |
} |
- const ::std::string& FileDescriptorProto::package() const { |
+const ::std::string& FileDescriptorProto::package() const { |
// @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.package) |
return package_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void FileDescriptorProto::set_package(const ::std::string& value) { |
+void FileDescriptorProto::set_package(const ::std::string& value) { |
set_has_package(); |
package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
// @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.package) |
} |
- void FileDescriptorProto::set_package(const char* value) { |
+void FileDescriptorProto::set_package(const char* value) { |
set_has_package(); |
package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
// @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.package) |
} |
- void FileDescriptorProto::set_package(const char* value, size_t size) { |
+void FileDescriptorProto::set_package(const char* value, size_t size) { |
set_has_package(); |
package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
::std::string(reinterpret_cast<const char*>(value), size)); |
// @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.package) |
} |
- ::std::string* FileDescriptorProto::mutable_package() { |
+::std::string* FileDescriptorProto::mutable_package() { |
set_has_package(); |
// @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.package) |
return package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- ::std::string* FileDescriptorProto::release_package() { |
+::std::string* FileDescriptorProto::release_package() { |
// @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.package) |
clear_has_package(); |
return package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void FileDescriptorProto::set_allocated_package(::std::string* package) { |
+void FileDescriptorProto::set_allocated_package(::std::string* package) { |
if (package != NULL) { |
set_has_package(); |
} else { |
@@ -2051,49 +2129,49 @@ int FileDescriptorProto::dependency_size() const { |
void FileDescriptorProto::clear_dependency() { |
dependency_.Clear(); |
} |
- const ::std::string& FileDescriptorProto::dependency(int index) const { |
+const ::std::string& FileDescriptorProto::dependency(int index) const { |
// @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.dependency) |
return dependency_.Get(index); |
} |
- ::std::string* FileDescriptorProto::mutable_dependency(int index) { |
+::std::string* FileDescriptorProto::mutable_dependency(int index) { |
// @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.dependency) |
return dependency_.Mutable(index); |
} |
- void FileDescriptorProto::set_dependency(int index, const ::std::string& value) { |
+void FileDescriptorProto::set_dependency(int index, const ::std::string& value) { |
// @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.dependency) |
dependency_.Mutable(index)->assign(value); |
} |
- void FileDescriptorProto::set_dependency(int index, const char* value) { |
+void FileDescriptorProto::set_dependency(int index, const char* value) { |
dependency_.Mutable(index)->assign(value); |
// @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.dependency) |
} |
- void FileDescriptorProto::set_dependency(int index, const char* value, size_t size) { |
+void FileDescriptorProto::set_dependency(int index, const char* value, size_t size) { |
dependency_.Mutable(index)->assign( |
reinterpret_cast<const char*>(value), size); |
// @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.dependency) |
} |
- ::std::string* FileDescriptorProto::add_dependency() { |
+::std::string* FileDescriptorProto::add_dependency() { |
// @@protoc_insertion_point(field_add_mutable:google.protobuf.FileDescriptorProto.dependency) |
return dependency_.Add(); |
} |
- void FileDescriptorProto::add_dependency(const ::std::string& value) { |
+void FileDescriptorProto::add_dependency(const ::std::string& value) { |
dependency_.Add()->assign(value); |
// @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.dependency) |
} |
- void FileDescriptorProto::add_dependency(const char* value) { |
+void FileDescriptorProto::add_dependency(const char* value) { |
dependency_.Add()->assign(value); |
// @@protoc_insertion_point(field_add_char:google.protobuf.FileDescriptorProto.dependency) |
} |
- void FileDescriptorProto::add_dependency(const char* value, size_t size) { |
+void FileDescriptorProto::add_dependency(const char* value, size_t size) { |
dependency_.Add()->assign(reinterpret_cast<const char*>(value), size); |
// @@protoc_insertion_point(field_add_pointer:google.protobuf.FileDescriptorProto.dependency) |
} |
- const ::google::protobuf::RepeatedPtrField< ::std::string>& |
+const ::google::protobuf::RepeatedPtrField< ::std::string>& |
FileDescriptorProto::dependency() const { |
// @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.dependency) |
return dependency_; |
} |
- ::google::protobuf::RepeatedPtrField< ::std::string>* |
+::google::protobuf::RepeatedPtrField< ::std::string>* |
FileDescriptorProto::mutable_dependency() { |
// @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.dependency) |
return &dependency_; |
@@ -2106,24 +2184,24 @@ int FileDescriptorProto::public_dependency_size() const { |
void FileDescriptorProto::clear_public_dependency() { |
public_dependency_.Clear(); |
} |
- ::google::protobuf::int32 FileDescriptorProto::public_dependency(int index) const { |
+::google::protobuf::int32 FileDescriptorProto::public_dependency(int index) const { |
// @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.public_dependency) |
return public_dependency_.Get(index); |
} |
- void FileDescriptorProto::set_public_dependency(int index, ::google::protobuf::int32 value) { |
+void FileDescriptorProto::set_public_dependency(int index, ::google::protobuf::int32 value) { |
public_dependency_.Set(index, value); |
// @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.public_dependency) |
} |
- void FileDescriptorProto::add_public_dependency(::google::protobuf::int32 value) { |
+void FileDescriptorProto::add_public_dependency(::google::protobuf::int32 value) { |
public_dependency_.Add(value); |
// @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.public_dependency) |
} |
- const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& |
+const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& |
FileDescriptorProto::public_dependency() const { |
// @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.public_dependency) |
return public_dependency_; |
} |
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* |
+::google::protobuf::RepeatedField< ::google::protobuf::int32 >* |
FileDescriptorProto::mutable_public_dependency() { |
// @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.public_dependency) |
return &public_dependency_; |
@@ -2136,24 +2214,24 @@ int FileDescriptorProto::weak_dependency_size() const { |
void FileDescriptorProto::clear_weak_dependency() { |
weak_dependency_.Clear(); |
} |
- ::google::protobuf::int32 FileDescriptorProto::weak_dependency(int index) const { |
+::google::protobuf::int32 FileDescriptorProto::weak_dependency(int index) const { |
// @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.weak_dependency) |
return weak_dependency_.Get(index); |
} |
- void FileDescriptorProto::set_weak_dependency(int index, ::google::protobuf::int32 value) { |
+void FileDescriptorProto::set_weak_dependency(int index, ::google::protobuf::int32 value) { |
weak_dependency_.Set(index, value); |
// @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.weak_dependency) |
} |
- void FileDescriptorProto::add_weak_dependency(::google::protobuf::int32 value) { |
+void FileDescriptorProto::add_weak_dependency(::google::protobuf::int32 value) { |
weak_dependency_.Add(value); |
// @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.weak_dependency) |
} |
- const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& |
+const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& |
FileDescriptorProto::weak_dependency() const { |
// @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.weak_dependency) |
return weak_dependency_; |
} |
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* |
+::google::protobuf::RepeatedField< ::google::protobuf::int32 >* |
FileDescriptorProto::mutable_weak_dependency() { |
// @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.weak_dependency) |
return &weak_dependency_; |
@@ -2295,7 +2373,8 @@ void FileDescriptorProto::clear_options() { |
} |
const ::google::protobuf::FileOptions& FileDescriptorProto::options() const { |
// @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.options) |
- return options_ != NULL ? *options_ : *default_instance_->options_; |
+ return options_ != NULL ? *options_ |
+ : *::google::protobuf::FileOptions::internal_default_instance(); |
} |
::google::protobuf::FileOptions* FileDescriptorProto::mutable_options() { |
set_has_options(); |
@@ -2339,7 +2418,8 @@ void FileDescriptorProto::clear_source_code_info() { |
} |
const ::google::protobuf::SourceCodeInfo& FileDescriptorProto::source_code_info() const { |
// @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.source_code_info) |
- return source_code_info_ != NULL ? *source_code_info_ : *default_instance_->source_code_info_; |
+ return source_code_info_ != NULL ? *source_code_info_ |
+ : *::google::protobuf::SourceCodeInfo::internal_default_instance(); |
} |
::google::protobuf::SourceCodeInfo* FileDescriptorProto::mutable_source_code_info() { |
set_has_source_code_info(); |
@@ -2381,37 +2461,37 @@ void FileDescriptorProto::clear_syntax() { |
syntax_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
clear_has_syntax(); |
} |
- const ::std::string& FileDescriptorProto::syntax() const { |
+const ::std::string& FileDescriptorProto::syntax() const { |
// @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.syntax) |
return syntax_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void FileDescriptorProto::set_syntax(const ::std::string& value) { |
+void FileDescriptorProto::set_syntax(const ::std::string& value) { |
set_has_syntax(); |
syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
// @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.syntax) |
} |
- void FileDescriptorProto::set_syntax(const char* value) { |
+void FileDescriptorProto::set_syntax(const char* value) { |
set_has_syntax(); |
syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
// @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.syntax) |
} |
- void FileDescriptorProto::set_syntax(const char* value, size_t size) { |
+void FileDescriptorProto::set_syntax(const char* value, size_t size) { |
set_has_syntax(); |
syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
::std::string(reinterpret_cast<const char*>(value), size)); |
// @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.syntax) |
} |
- ::std::string* FileDescriptorProto::mutable_syntax() { |
+::std::string* FileDescriptorProto::mutable_syntax() { |
set_has_syntax(); |
// @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.syntax) |
return syntax_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- ::std::string* FileDescriptorProto::release_syntax() { |
+::std::string* FileDescriptorProto::release_syntax() { |
// @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.syntax) |
clear_has_syntax(); |
return syntax_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void FileDescriptorProto::set_allocated_syntax(::std::string* syntax) { |
+void FileDescriptorProto::set_allocated_syntax(::std::string* syntax) { |
if (syntax != NULL) { |
set_has_syntax(); |
} else { |
@@ -2421,6 +2501,9 @@ void FileDescriptorProto::clear_syntax() { |
// @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.syntax) |
} |
+inline const FileDescriptorProto* FileDescriptorProto::internal_default_instance() { |
+ return &FileDescriptorProto_default_instance_.get(); |
+} |
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
// =================================================================== |
@@ -2432,6 +2515,7 @@ const int DescriptorProto_ExtensionRange::kEndFieldNumber; |
DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange() |
: ::google::protobuf::Message(), _internal_metadata_(NULL) { |
+ if (this != internal_default_instance()) protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
SharedCtor(); |
// @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto.ExtensionRange) |
} |
@@ -2443,15 +2527,14 @@ DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange(const DescriptorP |
: ::google::protobuf::Message(), |
_internal_metadata_(NULL) { |
SharedCtor(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
// @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto.ExtensionRange) |
} |
void DescriptorProto_ExtensionRange::SharedCtor() { |
_cached_size_ = 0; |
- start_ = 0; |
- end_ = 0; |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ ::memset(&start_, 0, reinterpret_cast<char*>(&end_) - |
+ reinterpret_cast<char*>(&start_) + sizeof(end_)); |
} |
DescriptorProto_ExtensionRange::~DescriptorProto_ExtensionRange() { |
@@ -2460,8 +2543,6 @@ DescriptorProto_ExtensionRange::~DescriptorProto_ExtensionRange() { |
} |
void DescriptorProto_ExtensionRange::SharedDtor() { |
- if (this != default_instance_) { |
- } |
} |
void DescriptorProto_ExtensionRange::SetCachedSize(int size) const { |
@@ -2475,11 +2556,11 @@ const ::google::protobuf::Descriptor* DescriptorProto_ExtensionRange::descriptor |
} |
const DescriptorProto_ExtensionRange& DescriptorProto_ExtensionRange::default_instance() { |
- if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
- return *default_instance_; |
+ protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
+ return *internal_default_instance(); |
} |
-DescriptorProto_ExtensionRange* DescriptorProto_ExtensionRange::default_instance_ = NULL; |
+::google::protobuf::internal::ExplicitlyConstructed<DescriptorProto_ExtensionRange> DescriptorProto_ExtensionRange_default_instance_; |
DescriptorProto_ExtensionRange* DescriptorProto_ExtensionRange::New(::google::protobuf::Arena* arena) const { |
DescriptorProto_ExtensionRange* n = new DescriptorProto_ExtensionRange; |
@@ -2503,7 +2584,7 @@ void DescriptorProto_ExtensionRange::Clear() { |
#endif |
#define ZR_(first, last) do {\ |
- ::memset(&first, 0,\ |
+ ::memset(&(first), 0,\ |
ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ |
} while (0) |
@@ -2512,7 +2593,7 @@ void DescriptorProto_ExtensionRange::Clear() { |
#undef ZR_HELPER_ |
#undef ZR_ |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ _has_bits_.Clear(); |
if (_internal_metadata_.have_unknown_fields()) { |
mutable_unknown_fields()->Clear(); |
} |
@@ -2531,10 +2612,10 @@ bool DescriptorProto_ExtensionRange::MergePartialFromCodedStream( |
// optional int32 start = 1; |
case 1: { |
if (tag == 8) { |
+ set_has_start(); |
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
input, &start_))); |
- set_has_start(); |
} else { |
goto handle_unusual; |
} |
@@ -2546,10 +2627,10 @@ bool DescriptorProto_ExtensionRange::MergePartialFromCodedStream( |
case 2: { |
if (tag == 16) { |
parse_end: |
+ set_has_end(); |
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
input, &end_))); |
- set_has_end(); |
} else { |
goto handle_unusual; |
} |
@@ -2599,8 +2680,9 @@ void DescriptorProto_ExtensionRange::SerializeWithCachedSizes( |
// @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto.ExtensionRange) |
} |
-::google::protobuf::uint8* DescriptorProto_ExtensionRange::SerializeWithCachedSizesToArray( |
- ::google::protobuf::uint8* target) const { |
+::google::protobuf::uint8* DescriptorProto_ExtensionRange::InternalSerializeWithCachedSizesToArray( |
+ bool deterministic, ::google::protobuf::uint8* target) const { |
+ (void)deterministic; // Unused |
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DescriptorProto.ExtensionRange) |
// optional int32 start = 1; |
if (has_start()) { |
@@ -2620,9 +2702,9 @@ void DescriptorProto_ExtensionRange::SerializeWithCachedSizes( |
return target; |
} |
-int DescriptorProto_ExtensionRange::ByteSize() const { |
+size_t DescriptorProto_ExtensionRange::ByteSizeLong() const { |
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.DescriptorProto.ExtensionRange) |
- int total_size = 0; |
+ size_t total_size = 0; |
if (_has_bits_[0 / 32] & 3u) { |
// optional int32 start = 1; |
@@ -2645,8 +2727,9 @@ int DescriptorProto_ExtensionRange::ByteSize() const { |
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
unknown_fields()); |
} |
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
- _cached_size_ = total_size; |
+ _cached_size_ = cached_size; |
GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
return total_size; |
} |
@@ -2654,7 +2737,7 @@ int DescriptorProto_ExtensionRange::ByteSize() const { |
void DescriptorProto_ExtensionRange::MergeFrom(const ::google::protobuf::Message& from) { |
// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.DescriptorProto.ExtensionRange) |
if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
- const DescriptorProto_ExtensionRange* source = |
+ const DescriptorProto_ExtensionRange* source = |
::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto_ExtensionRange>( |
&from); |
if (source == NULL) { |
@@ -2662,13 +2745,21 @@ void DescriptorProto_ExtensionRange::MergeFrom(const ::google::protobuf::Message |
::google::protobuf::internal::ReflectionOps::Merge(from, this); |
} else { |
// @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.DescriptorProto.ExtensionRange) |
- MergeFrom(*source); |
+ UnsafeMergeFrom(*source); |
} |
} |
void DescriptorProto_ExtensionRange::MergeFrom(const DescriptorProto_ExtensionRange& from) { |
// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.DescriptorProto.ExtensionRange) |
- if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
+ if (GOOGLE_PREDICT_TRUE(&from != this)) { |
+ UnsafeMergeFrom(from); |
+ } else { |
+ MergeFromFail(__LINE__); |
+ } |
+} |
+ |
+void DescriptorProto_ExtensionRange::UnsafeMergeFrom(const DescriptorProto_ExtensionRange& from) { |
+ GOOGLE_DCHECK(&from != this); |
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
if (from.has_start()) { |
set_start(from.start()); |
@@ -2678,7 +2769,8 @@ void DescriptorProto_ExtensionRange::MergeFrom(const DescriptorProto_ExtensionRa |
} |
} |
if (from._internal_metadata_.have_unknown_fields()) { |
- mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+ ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( |
+ from.unknown_fields(), &_internal_metadata_); |
} |
} |
@@ -2693,7 +2785,7 @@ void DescriptorProto_ExtensionRange::CopyFrom(const DescriptorProto_ExtensionRan |
// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.DescriptorProto.ExtensionRange) |
if (&from == this) return; |
Clear(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
} |
bool DescriptorProto_ExtensionRange::IsInitialized() const { |
@@ -2731,6 +2823,7 @@ const int DescriptorProto_ReservedRange::kEndFieldNumber; |
DescriptorProto_ReservedRange::DescriptorProto_ReservedRange() |
: ::google::protobuf::Message(), _internal_metadata_(NULL) { |
+ if (this != internal_default_instance()) protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
SharedCtor(); |
// @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto.ReservedRange) |
} |
@@ -2742,15 +2835,14 @@ DescriptorProto_ReservedRange::DescriptorProto_ReservedRange(const DescriptorPro |
: ::google::protobuf::Message(), |
_internal_metadata_(NULL) { |
SharedCtor(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
// @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto.ReservedRange) |
} |
void DescriptorProto_ReservedRange::SharedCtor() { |
_cached_size_ = 0; |
- start_ = 0; |
- end_ = 0; |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ ::memset(&start_, 0, reinterpret_cast<char*>(&end_) - |
+ reinterpret_cast<char*>(&start_) + sizeof(end_)); |
} |
DescriptorProto_ReservedRange::~DescriptorProto_ReservedRange() { |
@@ -2759,8 +2851,6 @@ DescriptorProto_ReservedRange::~DescriptorProto_ReservedRange() { |
} |
void DescriptorProto_ReservedRange::SharedDtor() { |
- if (this != default_instance_) { |
- } |
} |
void DescriptorProto_ReservedRange::SetCachedSize(int size) const { |
@@ -2774,11 +2864,11 @@ const ::google::protobuf::Descriptor* DescriptorProto_ReservedRange::descriptor( |
} |
const DescriptorProto_ReservedRange& DescriptorProto_ReservedRange::default_instance() { |
- if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
- return *default_instance_; |
+ protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
+ return *internal_default_instance(); |
} |
-DescriptorProto_ReservedRange* DescriptorProto_ReservedRange::default_instance_ = NULL; |
+::google::protobuf::internal::ExplicitlyConstructed<DescriptorProto_ReservedRange> DescriptorProto_ReservedRange_default_instance_; |
DescriptorProto_ReservedRange* DescriptorProto_ReservedRange::New(::google::protobuf::Arena* arena) const { |
DescriptorProto_ReservedRange* n = new DescriptorProto_ReservedRange; |
@@ -2802,7 +2892,7 @@ void DescriptorProto_ReservedRange::Clear() { |
#endif |
#define ZR_(first, last) do {\ |
- ::memset(&first, 0,\ |
+ ::memset(&(first), 0,\ |
ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ |
} while (0) |
@@ -2811,7 +2901,7 @@ void DescriptorProto_ReservedRange::Clear() { |
#undef ZR_HELPER_ |
#undef ZR_ |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ _has_bits_.Clear(); |
if (_internal_metadata_.have_unknown_fields()) { |
mutable_unknown_fields()->Clear(); |
} |
@@ -2830,10 +2920,10 @@ bool DescriptorProto_ReservedRange::MergePartialFromCodedStream( |
// optional int32 start = 1; |
case 1: { |
if (tag == 8) { |
+ set_has_start(); |
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
input, &start_))); |
- set_has_start(); |
} else { |
goto handle_unusual; |
} |
@@ -2845,10 +2935,10 @@ bool DescriptorProto_ReservedRange::MergePartialFromCodedStream( |
case 2: { |
if (tag == 16) { |
parse_end: |
+ set_has_end(); |
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
input, &end_))); |
- set_has_end(); |
} else { |
goto handle_unusual; |
} |
@@ -2898,8 +2988,9 @@ void DescriptorProto_ReservedRange::SerializeWithCachedSizes( |
// @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto.ReservedRange) |
} |
-::google::protobuf::uint8* DescriptorProto_ReservedRange::SerializeWithCachedSizesToArray( |
- ::google::protobuf::uint8* target) const { |
+::google::protobuf::uint8* DescriptorProto_ReservedRange::InternalSerializeWithCachedSizesToArray( |
+ bool deterministic, ::google::protobuf::uint8* target) const { |
+ (void)deterministic; // Unused |
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DescriptorProto.ReservedRange) |
// optional int32 start = 1; |
if (has_start()) { |
@@ -2919,9 +3010,9 @@ void DescriptorProto_ReservedRange::SerializeWithCachedSizes( |
return target; |
} |
-int DescriptorProto_ReservedRange::ByteSize() const { |
+size_t DescriptorProto_ReservedRange::ByteSizeLong() const { |
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.DescriptorProto.ReservedRange) |
- int total_size = 0; |
+ size_t total_size = 0; |
if (_has_bits_[0 / 32] & 3u) { |
// optional int32 start = 1; |
@@ -2944,8 +3035,9 @@ int DescriptorProto_ReservedRange::ByteSize() const { |
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
unknown_fields()); |
} |
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
- _cached_size_ = total_size; |
+ _cached_size_ = cached_size; |
GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
return total_size; |
} |
@@ -2953,7 +3045,7 @@ int DescriptorProto_ReservedRange::ByteSize() const { |
void DescriptorProto_ReservedRange::MergeFrom(const ::google::protobuf::Message& from) { |
// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.DescriptorProto.ReservedRange) |
if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
- const DescriptorProto_ReservedRange* source = |
+ const DescriptorProto_ReservedRange* source = |
::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto_ReservedRange>( |
&from); |
if (source == NULL) { |
@@ -2961,13 +3053,21 @@ void DescriptorProto_ReservedRange::MergeFrom(const ::google::protobuf::Message& |
::google::protobuf::internal::ReflectionOps::Merge(from, this); |
} else { |
// @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.DescriptorProto.ReservedRange) |
- MergeFrom(*source); |
+ UnsafeMergeFrom(*source); |
} |
} |
void DescriptorProto_ReservedRange::MergeFrom(const DescriptorProto_ReservedRange& from) { |
// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.DescriptorProto.ReservedRange) |
- if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
+ if (GOOGLE_PREDICT_TRUE(&from != this)) { |
+ UnsafeMergeFrom(from); |
+ } else { |
+ MergeFromFail(__LINE__); |
+ } |
+} |
+ |
+void DescriptorProto_ReservedRange::UnsafeMergeFrom(const DescriptorProto_ReservedRange& from) { |
+ GOOGLE_DCHECK(&from != this); |
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
if (from.has_start()) { |
set_start(from.start()); |
@@ -2977,7 +3077,8 @@ void DescriptorProto_ReservedRange::MergeFrom(const DescriptorProto_ReservedRang |
} |
} |
if (from._internal_metadata_.have_unknown_fields()) { |
- mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+ ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( |
+ from.unknown_fields(), &_internal_metadata_); |
} |
} |
@@ -2992,7 +3093,7 @@ void DescriptorProto_ReservedRange::CopyFrom(const DescriptorProto_ReservedRange |
// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.DescriptorProto.ReservedRange) |
if (&from == this) return; |
Clear(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
} |
bool DescriptorProto_ReservedRange::IsInitialized() const { |
@@ -3038,28 +3139,28 @@ const int DescriptorProto::kReservedNameFieldNumber; |
DescriptorProto::DescriptorProto() |
: ::google::protobuf::Message(), _internal_metadata_(NULL) { |
+ if (this != internal_default_instance()) protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
SharedCtor(); |
// @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto) |
} |
void DescriptorProto::InitAsDefaultInstance() { |
- options_ = const_cast< ::google::protobuf::MessageOptions*>(&::google::protobuf::MessageOptions::default_instance()); |
+ options_ = const_cast< ::google::protobuf::MessageOptions*>( |
+ ::google::protobuf::MessageOptions::internal_default_instance()); |
} |
DescriptorProto::DescriptorProto(const DescriptorProto& from) |
: ::google::protobuf::Message(), |
_internal_metadata_(NULL) { |
SharedCtor(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
// @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto) |
} |
void DescriptorProto::SharedCtor() { |
- ::google::protobuf::internal::GetEmptyString(); |
_cached_size_ = 0; |
name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
options_ = NULL; |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
} |
DescriptorProto::~DescriptorProto() { |
@@ -3069,7 +3170,7 @@ DescriptorProto::~DescriptorProto() { |
void DescriptorProto::SharedDtor() { |
name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
- if (this != default_instance_) { |
+ if (this != &DescriptorProto_default_instance_.get()) { |
delete options_; |
} |
} |
@@ -3085,11 +3186,11 @@ const ::google::protobuf::Descriptor* DescriptorProto::descriptor() { |
} |
const DescriptorProto& DescriptorProto::default_instance() { |
- if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
- return *default_instance_; |
+ protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
+ return *internal_default_instance(); |
} |
-DescriptorProto* DescriptorProto::default_instance_ = NULL; |
+::google::protobuf::internal::ExplicitlyConstructed<DescriptorProto> DescriptorProto_default_instance_; |
DescriptorProto* DescriptorProto::New(::google::protobuf::Arena* arena) const { |
DescriptorProto* n = new DescriptorProto; |
@@ -3117,7 +3218,7 @@ void DescriptorProto::Clear() { |
oneof_decl_.Clear(); |
reserved_range_.Clear(); |
reserved_name_.Clear(); |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ _has_bits_.Clear(); |
if (_internal_metadata_.have_unknown_fields()) { |
mutable_unknown_fields()->Clear(); |
} |
@@ -3395,8 +3496,9 @@ void DescriptorProto::SerializeWithCachedSizes( |
// @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto) |
} |
-::google::protobuf::uint8* DescriptorProto::SerializeWithCachedSizesToArray( |
- ::google::protobuf::uint8* target) const { |
+::google::protobuf::uint8* DescriptorProto::InternalSerializeWithCachedSizesToArray( |
+ bool deterministic, ::google::protobuf::uint8* target) const { |
+ (void)deterministic; // Unused |
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DescriptorProto) |
// optional string name = 1; |
if (has_name()) { |
@@ -3412,57 +3514,57 @@ void DescriptorProto::SerializeWithCachedSizes( |
// repeated .google.protobuf.FieldDescriptorProto field = 2; |
for (unsigned int i = 0, n = this->field_size(); i < n; i++) { |
target = ::google::protobuf::internal::WireFormatLite:: |
- WriteMessageNoVirtualToArray( |
- 2, this->field(i), target); |
+ InternalWriteMessageNoVirtualToArray( |
+ 2, this->field(i), false, target); |
} |
// repeated .google.protobuf.DescriptorProto nested_type = 3; |
for (unsigned int i = 0, n = this->nested_type_size(); i < n; i++) { |
target = ::google::protobuf::internal::WireFormatLite:: |
- WriteMessageNoVirtualToArray( |
- 3, this->nested_type(i), target); |
+ InternalWriteMessageNoVirtualToArray( |
+ 3, this->nested_type(i), false, target); |
} |
// repeated .google.protobuf.EnumDescriptorProto enum_type = 4; |
for (unsigned int i = 0, n = this->enum_type_size(); i < n; i++) { |
target = ::google::protobuf::internal::WireFormatLite:: |
- WriteMessageNoVirtualToArray( |
- 4, this->enum_type(i), target); |
+ InternalWriteMessageNoVirtualToArray( |
+ 4, this->enum_type(i), false, target); |
} |
// repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; |
for (unsigned int i = 0, n = this->extension_range_size(); i < n; i++) { |
target = ::google::protobuf::internal::WireFormatLite:: |
- WriteMessageNoVirtualToArray( |
- 5, this->extension_range(i), target); |
+ InternalWriteMessageNoVirtualToArray( |
+ 5, this->extension_range(i), false, target); |
} |
// repeated .google.protobuf.FieldDescriptorProto extension = 6; |
for (unsigned int i = 0, n = this->extension_size(); i < n; i++) { |
target = ::google::protobuf::internal::WireFormatLite:: |
- WriteMessageNoVirtualToArray( |
- 6, this->extension(i), target); |
+ InternalWriteMessageNoVirtualToArray( |
+ 6, this->extension(i), false, target); |
} |
// optional .google.protobuf.MessageOptions options = 7; |
if (has_options()) { |
target = ::google::protobuf::internal::WireFormatLite:: |
- WriteMessageNoVirtualToArray( |
- 7, *this->options_, target); |
+ InternalWriteMessageNoVirtualToArray( |
+ 7, *this->options_, false, target); |
} |
// repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; |
for (unsigned int i = 0, n = this->oneof_decl_size(); i < n; i++) { |
target = ::google::protobuf::internal::WireFormatLite:: |
- WriteMessageNoVirtualToArray( |
- 8, this->oneof_decl(i), target); |
+ InternalWriteMessageNoVirtualToArray( |
+ 8, this->oneof_decl(i), false, target); |
} |
// repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; |
for (unsigned int i = 0, n = this->reserved_range_size(); i < n; i++) { |
target = ::google::protobuf::internal::WireFormatLite:: |
- WriteMessageNoVirtualToArray( |
- 9, this->reserved_range(i), target); |
+ InternalWriteMessageNoVirtualToArray( |
+ 9, this->reserved_range(i), false, target); |
} |
// repeated string reserved_name = 10; |
@@ -3483,9 +3585,9 @@ void DescriptorProto::SerializeWithCachedSizes( |
return target; |
} |
-int DescriptorProto::ByteSize() const { |
+size_t DescriptorProto::ByteSizeLong() const { |
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.DescriptorProto) |
- int total_size = 0; |
+ size_t total_size = 0; |
if (_has_bits_[0 / 32] & 129u) { |
// optional string name = 1; |
@@ -3504,63 +3606,85 @@ int DescriptorProto::ByteSize() const { |
} |
// repeated .google.protobuf.FieldDescriptorProto field = 2; |
- total_size += 1 * this->field_size(); |
- for (int i = 0; i < this->field_size(); i++) { |
- total_size += |
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
- this->field(i)); |
+ { |
+ unsigned int count = this->field_size(); |
+ total_size += 1UL * count; |
+ for (unsigned int i = 0; i < count; i++) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->field(i)); |
+ } |
} |
// repeated .google.protobuf.FieldDescriptorProto extension = 6; |
- total_size += 1 * this->extension_size(); |
- for (int i = 0; i < this->extension_size(); i++) { |
- total_size += |
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
- this->extension(i)); |
+ { |
+ unsigned int count = this->extension_size(); |
+ total_size += 1UL * count; |
+ for (unsigned int i = 0; i < count; i++) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->extension(i)); |
+ } |
} |
// repeated .google.protobuf.DescriptorProto nested_type = 3; |
- total_size += 1 * this->nested_type_size(); |
- for (int i = 0; i < this->nested_type_size(); i++) { |
- total_size += |
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
- this->nested_type(i)); |
+ { |
+ unsigned int count = this->nested_type_size(); |
+ total_size += 1UL * count; |
+ for (unsigned int i = 0; i < count; i++) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->nested_type(i)); |
+ } |
} |
// repeated .google.protobuf.EnumDescriptorProto enum_type = 4; |
- total_size += 1 * this->enum_type_size(); |
- for (int i = 0; i < this->enum_type_size(); i++) { |
- total_size += |
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
- this->enum_type(i)); |
+ { |
+ unsigned int count = this->enum_type_size(); |
+ total_size += 1UL * count; |
+ for (unsigned int i = 0; i < count; i++) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->enum_type(i)); |
+ } |
} |
// repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; |
- total_size += 1 * this->extension_range_size(); |
- for (int i = 0; i < this->extension_range_size(); i++) { |
- total_size += |
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
- this->extension_range(i)); |
+ { |
+ unsigned int count = this->extension_range_size(); |
+ total_size += 1UL * count; |
+ for (unsigned int i = 0; i < count; i++) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->extension_range(i)); |
+ } |
} |
// repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; |
- total_size += 1 * this->oneof_decl_size(); |
- for (int i = 0; i < this->oneof_decl_size(); i++) { |
- total_size += |
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
- this->oneof_decl(i)); |
+ { |
+ unsigned int count = this->oneof_decl_size(); |
+ total_size += 1UL * count; |
+ for (unsigned int i = 0; i < count; i++) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->oneof_decl(i)); |
+ } |
} |
// repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; |
- total_size += 1 * this->reserved_range_size(); |
- for (int i = 0; i < this->reserved_range_size(); i++) { |
- total_size += |
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
- this->reserved_range(i)); |
+ { |
+ unsigned int count = this->reserved_range_size(); |
+ total_size += 1UL * count; |
+ for (unsigned int i = 0; i < count; i++) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->reserved_range(i)); |
+ } |
} |
// repeated string reserved_name = 10; |
- total_size += 1 * this->reserved_name_size(); |
+ total_size += 1 * |
+ ::google::protobuf::internal::FromIntSize(this->reserved_name_size()); |
for (int i = 0; i < this->reserved_name_size(); i++) { |
total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
this->reserved_name(i)); |
@@ -3571,8 +3695,9 @@ int DescriptorProto::ByteSize() const { |
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
unknown_fields()); |
} |
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
- _cached_size_ = total_size; |
+ _cached_size_ = cached_size; |
GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
return total_size; |
} |
@@ -3580,7 +3705,7 @@ int DescriptorProto::ByteSize() const { |
void DescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.DescriptorProto) |
if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
- const DescriptorProto* source = |
+ const DescriptorProto* source = |
::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto>( |
&from); |
if (source == NULL) { |
@@ -3588,13 +3713,21 @@ void DescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
::google::protobuf::internal::ReflectionOps::Merge(from, this); |
} else { |
// @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.DescriptorProto) |
- MergeFrom(*source); |
+ UnsafeMergeFrom(*source); |
} |
} |
void DescriptorProto::MergeFrom(const DescriptorProto& from) { |
// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.DescriptorProto) |
- if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
+ if (GOOGLE_PREDICT_TRUE(&from != this)) { |
+ UnsafeMergeFrom(from); |
+ } else { |
+ MergeFromFail(__LINE__); |
+ } |
+} |
+ |
+void DescriptorProto::UnsafeMergeFrom(const DescriptorProto& from) { |
+ GOOGLE_DCHECK(&from != this); |
field_.MergeFrom(from.field_); |
extension_.MergeFrom(from.extension_); |
nested_type_.MergeFrom(from.nested_type_); |
@@ -3602,7 +3735,7 @@ void DescriptorProto::MergeFrom(const DescriptorProto& from) { |
extension_range_.MergeFrom(from.extension_range_); |
oneof_decl_.MergeFrom(from.oneof_decl_); |
reserved_range_.MergeFrom(from.reserved_range_); |
- reserved_name_.MergeFrom(from.reserved_name_); |
+ reserved_name_.UnsafeMergeFrom(from.reserved_name_); |
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
if (from.has_name()) { |
set_has_name(); |
@@ -3613,7 +3746,8 @@ void DescriptorProto::MergeFrom(const DescriptorProto& from) { |
} |
} |
if (from._internal_metadata_.have_unknown_fields()) { |
- mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+ ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( |
+ from.unknown_fields(), &_internal_metadata_); |
} |
} |
@@ -3628,7 +3762,7 @@ void DescriptorProto::CopyFrom(const DescriptorProto& from) { |
// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.DescriptorProto) |
if (&from == this) return; |
Clear(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
} |
bool DescriptorProto::IsInitialized() const { |
@@ -3637,6 +3771,7 @@ bool DescriptorProto::IsInitialized() const { |
if (!::google::protobuf::internal::AllAreInitialized(this->extension())) return false; |
if (!::google::protobuf::internal::AllAreInitialized(this->nested_type())) return false; |
if (!::google::protobuf::internal::AllAreInitialized(this->enum_type())) return false; |
+ if (!::google::protobuf::internal::AllAreInitialized(this->oneof_decl())) return false; |
if (has_options()) { |
if (!this->options_->IsInitialized()) return false; |
} |
@@ -3688,11 +3823,11 @@ void DescriptorProto_ExtensionRange::clear_start() { |
start_ = 0; |
clear_has_start(); |
} |
- ::google::protobuf::int32 DescriptorProto_ExtensionRange::start() const { |
+::google::protobuf::int32 DescriptorProto_ExtensionRange::start() const { |
// @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.start) |
return start_; |
} |
- void DescriptorProto_ExtensionRange::set_start(::google::protobuf::int32 value) { |
+void DescriptorProto_ExtensionRange::set_start(::google::protobuf::int32 value) { |
set_has_start(); |
start_ = value; |
// @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ExtensionRange.start) |
@@ -3712,16 +3847,19 @@ void DescriptorProto_ExtensionRange::clear_end() { |
end_ = 0; |
clear_has_end(); |
} |
- ::google::protobuf::int32 DescriptorProto_ExtensionRange::end() const { |
+::google::protobuf::int32 DescriptorProto_ExtensionRange::end() const { |
// @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.end) |
return end_; |
} |
- void DescriptorProto_ExtensionRange::set_end(::google::protobuf::int32 value) { |
+void DescriptorProto_ExtensionRange::set_end(::google::protobuf::int32 value) { |
set_has_end(); |
end_ = value; |
// @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ExtensionRange.end) |
} |
+inline const DescriptorProto_ExtensionRange* DescriptorProto_ExtensionRange::internal_default_instance() { |
+ return &DescriptorProto_ExtensionRange_default_instance_.get(); |
+} |
// ------------------------------------------------------------------- |
// DescriptorProto_ReservedRange |
@@ -3740,11 +3878,11 @@ void DescriptorProto_ReservedRange::clear_start() { |
start_ = 0; |
clear_has_start(); |
} |
- ::google::protobuf::int32 DescriptorProto_ReservedRange::start() const { |
+::google::protobuf::int32 DescriptorProto_ReservedRange::start() const { |
// @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ReservedRange.start) |
return start_; |
} |
- void DescriptorProto_ReservedRange::set_start(::google::protobuf::int32 value) { |
+void DescriptorProto_ReservedRange::set_start(::google::protobuf::int32 value) { |
set_has_start(); |
start_ = value; |
// @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ReservedRange.start) |
@@ -3764,16 +3902,19 @@ void DescriptorProto_ReservedRange::clear_end() { |
end_ = 0; |
clear_has_end(); |
} |
- ::google::protobuf::int32 DescriptorProto_ReservedRange::end() const { |
+::google::protobuf::int32 DescriptorProto_ReservedRange::end() const { |
// @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ReservedRange.end) |
return end_; |
} |
- void DescriptorProto_ReservedRange::set_end(::google::protobuf::int32 value) { |
+void DescriptorProto_ReservedRange::set_end(::google::protobuf::int32 value) { |
set_has_end(); |
end_ = value; |
// @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ReservedRange.end) |
} |
+inline const DescriptorProto_ReservedRange* DescriptorProto_ReservedRange::internal_default_instance() { |
+ return &DescriptorProto_ReservedRange_default_instance_.get(); |
+} |
// ------------------------------------------------------------------- |
// DescriptorProto |
@@ -3792,37 +3933,37 @@ void DescriptorProto::clear_name() { |
name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
clear_has_name(); |
} |
- const ::std::string& DescriptorProto::name() const { |
+const ::std::string& DescriptorProto::name() const { |
// @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.name) |
return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void DescriptorProto::set_name(const ::std::string& value) { |
+void DescriptorProto::set_name(const ::std::string& value) { |
set_has_name(); |
name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
// @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.name) |
} |
- void DescriptorProto::set_name(const char* value) { |
+void DescriptorProto::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.DescriptorProto.name) |
} |
- void DescriptorProto::set_name(const char* value, size_t size) { |
+void DescriptorProto::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.DescriptorProto.name) |
} |
- ::std::string* DescriptorProto::mutable_name() { |
+::std::string* DescriptorProto::mutable_name() { |
set_has_name(); |
// @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.name) |
return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- ::std::string* DescriptorProto::release_name() { |
+::std::string* DescriptorProto::release_name() { |
// @@protoc_insertion_point(field_release:google.protobuf.DescriptorProto.name) |
clear_has_name(); |
return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void DescriptorProto::set_allocated_name(::std::string* name) { |
+void DescriptorProto::set_allocated_name(::std::string* name) { |
if (name != NULL) { |
set_has_name(); |
} else { |
@@ -4028,7 +4169,8 @@ void DescriptorProto::clear_options() { |
} |
const ::google::protobuf::MessageOptions& DescriptorProto::options() const { |
// @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.options) |
- return options_ != NULL ? *options_ : *default_instance_->options_; |
+ return options_ != NULL ? *options_ |
+ : *::google::protobuf::MessageOptions::internal_default_instance(); |
} |
::google::protobuf::MessageOptions* DescriptorProto::mutable_options() { |
set_has_options(); |
@@ -4093,54 +4235,57 @@ int DescriptorProto::reserved_name_size() const { |
void DescriptorProto::clear_reserved_name() { |
reserved_name_.Clear(); |
} |
- const ::std::string& DescriptorProto::reserved_name(int index) const { |
+const ::std::string& DescriptorProto::reserved_name(int index) const { |
// @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.reserved_name) |
return reserved_name_.Get(index); |
} |
- ::std::string* DescriptorProto::mutable_reserved_name(int index) { |
+::std::string* DescriptorProto::mutable_reserved_name(int index) { |
// @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.reserved_name) |
return reserved_name_.Mutable(index); |
} |
- void DescriptorProto::set_reserved_name(int index, const ::std::string& value) { |
+void DescriptorProto::set_reserved_name(int index, const ::std::string& value) { |
// @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.reserved_name) |
reserved_name_.Mutable(index)->assign(value); |
} |
- void DescriptorProto::set_reserved_name(int index, const char* value) { |
+void DescriptorProto::set_reserved_name(int index, const char* value) { |
reserved_name_.Mutable(index)->assign(value); |
// @@protoc_insertion_point(field_set_char:google.protobuf.DescriptorProto.reserved_name) |
} |
- void DescriptorProto::set_reserved_name(int index, const char* value, size_t size) { |
+void DescriptorProto::set_reserved_name(int index, const char* value, size_t size) { |
reserved_name_.Mutable(index)->assign( |
reinterpret_cast<const char*>(value), size); |
// @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto.reserved_name) |
} |
- ::std::string* DescriptorProto::add_reserved_name() { |
+::std::string* DescriptorProto::add_reserved_name() { |
// @@protoc_insertion_point(field_add_mutable:google.protobuf.DescriptorProto.reserved_name) |
return reserved_name_.Add(); |
} |
- void DescriptorProto::add_reserved_name(const ::std::string& value) { |
+void DescriptorProto::add_reserved_name(const ::std::string& value) { |
reserved_name_.Add()->assign(value); |
// @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved_name) |
} |
- void DescriptorProto::add_reserved_name(const char* value) { |
+void DescriptorProto::add_reserved_name(const char* value) { |
reserved_name_.Add()->assign(value); |
// @@protoc_insertion_point(field_add_char:google.protobuf.DescriptorProto.reserved_name) |
} |
- void DescriptorProto::add_reserved_name(const char* value, size_t size) { |
+void DescriptorProto::add_reserved_name(const char* value, size_t size) { |
reserved_name_.Add()->assign(reinterpret_cast<const char*>(value), size); |
// @@protoc_insertion_point(field_add_pointer:google.protobuf.DescriptorProto.reserved_name) |
} |
- const ::google::protobuf::RepeatedPtrField< ::std::string>& |
+const ::google::protobuf::RepeatedPtrField< ::std::string>& |
DescriptorProto::reserved_name() const { |
// @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.reserved_name) |
return reserved_name_; |
} |
- ::google::protobuf::RepeatedPtrField< ::std::string>* |
+::google::protobuf::RepeatedPtrField< ::std::string>* |
DescriptorProto::mutable_reserved_name() { |
// @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.reserved_name) |
return &reserved_name_; |
} |
+inline const DescriptorProto* DescriptorProto::internal_default_instance() { |
+ return &DescriptorProto_default_instance_.get(); |
+} |
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
// =================================================================== |
@@ -4150,7 +4295,7 @@ const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Type_descriptor() |
return FieldDescriptorProto_Type_descriptor_; |
} |
bool FieldDescriptorProto_Type_IsValid(int value) { |
- switch(value) { |
+ switch (value) { |
case 1: |
case 2: |
case 3: |
@@ -4203,7 +4348,7 @@ const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Label_descriptor( |
return FieldDescriptorProto_Label_descriptor_; |
} |
bool FieldDescriptorProto_Label_IsValid(int value) { |
- switch(value) { |
+ switch (value) { |
case 1: |
case 2: |
case 3: |
@@ -4236,36 +4381,36 @@ const int FieldDescriptorProto::kOptionsFieldNumber; |
FieldDescriptorProto::FieldDescriptorProto() |
: ::google::protobuf::Message(), _internal_metadata_(NULL) { |
+ if (this != internal_default_instance()) protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
SharedCtor(); |
// @@protoc_insertion_point(constructor:google.protobuf.FieldDescriptorProto) |
} |
void FieldDescriptorProto::InitAsDefaultInstance() { |
- options_ = const_cast< ::google::protobuf::FieldOptions*>(&::google::protobuf::FieldOptions::default_instance()); |
+ options_ = const_cast< ::google::protobuf::FieldOptions*>( |
+ ::google::protobuf::FieldOptions::internal_default_instance()); |
} |
FieldDescriptorProto::FieldDescriptorProto(const FieldDescriptorProto& from) |
: ::google::protobuf::Message(), |
_internal_metadata_(NULL) { |
SharedCtor(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
// @@protoc_insertion_point(copy_constructor:google.protobuf.FieldDescriptorProto) |
} |
void FieldDescriptorProto::SharedCtor() { |
- ::google::protobuf::internal::GetEmptyString(); |
_cached_size_ = 0; |
name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
- number_ = 0; |
- label_ = 1; |
- type_ = 1; |
type_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
extendee_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
default_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
- oneof_index_ = 0; |
json_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
options_ = NULL; |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ ::memset(&number_, 0, reinterpret_cast<char*>(&oneof_index_) - |
+ reinterpret_cast<char*>(&number_) + sizeof(oneof_index_)); |
+ label_ = 1; |
+ type_ = 1; |
} |
FieldDescriptorProto::~FieldDescriptorProto() { |
@@ -4279,7 +4424,7 @@ void FieldDescriptorProto::SharedDtor() { |
extendee_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
default_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
json_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
- if (this != default_instance_) { |
+ if (this != &FieldDescriptorProto_default_instance_.get()) { |
delete options_; |
} |
} |
@@ -4295,11 +4440,11 @@ const ::google::protobuf::Descriptor* FieldDescriptorProto::descriptor() { |
} |
const FieldDescriptorProto& FieldDescriptorProto::default_instance() { |
- if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
- return *default_instance_; |
+ protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
+ return *internal_default_instance(); |
} |
-FieldDescriptorProto* FieldDescriptorProto::default_instance_ = NULL; |
+::google::protobuf::internal::ExplicitlyConstructed<FieldDescriptorProto> FieldDescriptorProto_default_instance_; |
FieldDescriptorProto* FieldDescriptorProto::New(::google::protobuf::Arena* arena) const { |
FieldDescriptorProto* n = new FieldDescriptorProto; |
@@ -4311,11 +4456,27 @@ FieldDescriptorProto* FieldDescriptorProto::New(::google::protobuf::Arena* arena |
void FieldDescriptorProto::Clear() { |
// @@protoc_insertion_point(message_clear_start:google.protobuf.FieldDescriptorProto) |
+#if defined(__clang__) |
+#define ZR_HELPER_(f) \ |
+ _Pragma("clang diagnostic push") \ |
+ _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ |
+ __builtin_offsetof(FieldDescriptorProto, f) \ |
+ _Pragma("clang diagnostic pop") |
+#else |
+#define ZR_HELPER_(f) reinterpret_cast<char*>(\ |
+ &reinterpret_cast<FieldDescriptorProto*>(16)->f) |
+#endif |
+ |
+#define ZR_(first, last) do {\ |
+ ::memset(&(first), 0,\ |
+ ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ |
+} while (0) |
+ |
if (_has_bits_[0 / 32] & 255u) { |
+ ZR_(number_, oneof_index_); |
if (has_name()) { |
name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- number_ = 0; |
label_ = 1; |
type_ = 1; |
if (has_type_name()) { |
@@ -4327,7 +4488,6 @@ void FieldDescriptorProto::Clear() { |
if (has_default_value()) { |
default_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- oneof_index_ = 0; |
} |
if (_has_bits_[8 / 32] & 768u) { |
if (has_json_name()) { |
@@ -4337,7 +4497,11 @@ void FieldDescriptorProto::Clear() { |
if (options_ != NULL) options_->::google::protobuf::FieldOptions::Clear(); |
} |
} |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ |
+#undef ZR_HELPER_ |
+#undef ZR_ |
+ |
+ _has_bits_.Clear(); |
if (_internal_metadata_.have_unknown_fields()) { |
mutable_unknown_fields()->Clear(); |
} |
@@ -4390,10 +4554,10 @@ bool FieldDescriptorProto::MergePartialFromCodedStream( |
case 3: { |
if (tag == 24) { |
parse_number: |
+ set_has_number(); |
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
input, &number_))); |
- set_has_number(); |
} else { |
goto handle_unusual; |
} |
@@ -4492,10 +4656,10 @@ bool FieldDescriptorProto::MergePartialFromCodedStream( |
case 9: { |
if (tag == 72) { |
parse_oneof_index: |
+ set_has_oneof_index(); |
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
input, &oneof_index_))); |
- set_has_oneof_index(); |
} else { |
goto handle_unusual; |
} |
@@ -4630,8 +4794,9 @@ void FieldDescriptorProto::SerializeWithCachedSizes( |
// @@protoc_insertion_point(serialize_end:google.protobuf.FieldDescriptorProto) |
} |
-::google::protobuf::uint8* FieldDescriptorProto::SerializeWithCachedSizesToArray( |
- ::google::protobuf::uint8* target) const { |
+::google::protobuf::uint8* FieldDescriptorProto::InternalSerializeWithCachedSizesToArray( |
+ bool deterministic, ::google::protobuf::uint8* target) const { |
+ (void)deterministic; // Unused |
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldDescriptorProto) |
// optional string name = 1; |
if (has_name()) { |
@@ -4697,8 +4862,8 @@ void FieldDescriptorProto::SerializeWithCachedSizes( |
// optional .google.protobuf.FieldOptions options = 8; |
if (has_options()) { |
target = ::google::protobuf::internal::WireFormatLite:: |
- WriteMessageNoVirtualToArray( |
- 8, *this->options_, target); |
+ InternalWriteMessageNoVirtualToArray( |
+ 8, *this->options_, false, target); |
} |
// optional int32 oneof_index = 9; |
@@ -4725,9 +4890,9 @@ void FieldDescriptorProto::SerializeWithCachedSizes( |
return target; |
} |
-int FieldDescriptorProto::ByteSize() const { |
+size_t FieldDescriptorProto::ByteSizeLong() const { |
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.FieldDescriptorProto) |
- int total_size = 0; |
+ size_t total_size = 0; |
if (_has_bits_[0 / 32] & 255u) { |
// optional string name = 1; |
@@ -4806,8 +4971,9 @@ int FieldDescriptorProto::ByteSize() const { |
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
unknown_fields()); |
} |
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
- _cached_size_ = total_size; |
+ _cached_size_ = cached_size; |
GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
return total_size; |
} |
@@ -4815,7 +4981,7 @@ int FieldDescriptorProto::ByteSize() const { |
void FieldDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FieldDescriptorProto) |
if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
- const FieldDescriptorProto* source = |
+ const FieldDescriptorProto* source = |
::google::protobuf::internal::DynamicCastToGenerated<const FieldDescriptorProto>( |
&from); |
if (source == NULL) { |
@@ -4823,13 +4989,21 @@ void FieldDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
::google::protobuf::internal::ReflectionOps::Merge(from, this); |
} else { |
// @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.FieldDescriptorProto) |
- MergeFrom(*source); |
+ UnsafeMergeFrom(*source); |
} |
} |
void FieldDescriptorProto::MergeFrom(const FieldDescriptorProto& from) { |
// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.FieldDescriptorProto) |
- if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
+ if (GOOGLE_PREDICT_TRUE(&from != this)) { |
+ UnsafeMergeFrom(from); |
+ } else { |
+ MergeFromFail(__LINE__); |
+ } |
+} |
+ |
+void FieldDescriptorProto::UnsafeMergeFrom(const FieldDescriptorProto& from) { |
+ GOOGLE_DCHECK(&from != this); |
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
if (from.has_name()) { |
set_has_name(); |
@@ -4870,7 +5044,8 @@ void FieldDescriptorProto::MergeFrom(const FieldDescriptorProto& from) { |
} |
} |
if (from._internal_metadata_.have_unknown_fields()) { |
- mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+ ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( |
+ from.unknown_fields(), &_internal_metadata_); |
} |
} |
@@ -4885,7 +5060,7 @@ void FieldDescriptorProto::CopyFrom(const FieldDescriptorProto& from) { |
// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FieldDescriptorProto) |
if (&from == this) return; |
Clear(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
} |
bool FieldDescriptorProto::IsInitialized() const { |
@@ -4941,37 +5116,37 @@ void FieldDescriptorProto::clear_name() { |
name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
clear_has_name(); |
} |
- const ::std::string& FieldDescriptorProto::name() const { |
+const ::std::string& FieldDescriptorProto::name() const { |
// @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.name) |
return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void FieldDescriptorProto::set_name(const ::std::string& value) { |
+void FieldDescriptorProto::set_name(const ::std::string& value) { |
set_has_name(); |
name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
// @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.name) |
} |
- void FieldDescriptorProto::set_name(const char* value) { |
+void FieldDescriptorProto::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.FieldDescriptorProto.name) |
} |
- void FieldDescriptorProto::set_name(const char* value, size_t size) { |
+void FieldDescriptorProto::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.FieldDescriptorProto.name) |
} |
- ::std::string* FieldDescriptorProto::mutable_name() { |
+::std::string* FieldDescriptorProto::mutable_name() { |
set_has_name(); |
// @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.name) |
return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- ::std::string* FieldDescriptorProto::release_name() { |
+::std::string* FieldDescriptorProto::release_name() { |
// @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.name) |
clear_has_name(); |
return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void FieldDescriptorProto::set_allocated_name(::std::string* name) { |
+void FieldDescriptorProto::set_allocated_name(::std::string* name) { |
if (name != NULL) { |
set_has_name(); |
} else { |
@@ -4995,11 +5170,11 @@ void FieldDescriptorProto::clear_number() { |
number_ = 0; |
clear_has_number(); |
} |
- ::google::protobuf::int32 FieldDescriptorProto::number() const { |
+::google::protobuf::int32 FieldDescriptorProto::number() const { |
// @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.number) |
return number_; |
} |
- void FieldDescriptorProto::set_number(::google::protobuf::int32 value) { |
+void FieldDescriptorProto::set_number(::google::protobuf::int32 value) { |
set_has_number(); |
number_ = value; |
// @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.number) |
@@ -5019,11 +5194,11 @@ void FieldDescriptorProto::clear_label() { |
label_ = 1; |
clear_has_label(); |
} |
- ::google::protobuf::FieldDescriptorProto_Label FieldDescriptorProto::label() const { |
+::google::protobuf::FieldDescriptorProto_Label FieldDescriptorProto::label() const { |
// @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.label) |
return static_cast< ::google::protobuf::FieldDescriptorProto_Label >(label_); |
} |
- void FieldDescriptorProto::set_label(::google::protobuf::FieldDescriptorProto_Label value) { |
+void FieldDescriptorProto::set_label(::google::protobuf::FieldDescriptorProto_Label value) { |
assert(::google::protobuf::FieldDescriptorProto_Label_IsValid(value)); |
set_has_label(); |
label_ = value; |
@@ -5044,11 +5219,11 @@ void FieldDescriptorProto::clear_type() { |
type_ = 1; |
clear_has_type(); |
} |
- ::google::protobuf::FieldDescriptorProto_Type FieldDescriptorProto::type() const { |
+::google::protobuf::FieldDescriptorProto_Type FieldDescriptorProto::type() const { |
// @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.type) |
return static_cast< ::google::protobuf::FieldDescriptorProto_Type >(type_); |
} |
- void FieldDescriptorProto::set_type(::google::protobuf::FieldDescriptorProto_Type value) { |
+void FieldDescriptorProto::set_type(::google::protobuf::FieldDescriptorProto_Type value) { |
assert(::google::protobuf::FieldDescriptorProto_Type_IsValid(value)); |
set_has_type(); |
type_ = value; |
@@ -5069,37 +5244,37 @@ void FieldDescriptorProto::clear_type_name() { |
type_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
clear_has_type_name(); |
} |
- const ::std::string& FieldDescriptorProto::type_name() const { |
+const ::std::string& FieldDescriptorProto::type_name() const { |
// @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.type_name) |
return type_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void FieldDescriptorProto::set_type_name(const ::std::string& value) { |
+void FieldDescriptorProto::set_type_name(const ::std::string& value) { |
set_has_type_name(); |
type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
// @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.type_name) |
} |
- void FieldDescriptorProto::set_type_name(const char* value) { |
+void FieldDescriptorProto::set_type_name(const char* value) { |
set_has_type_name(); |
type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
// @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.type_name) |
} |
- void FieldDescriptorProto::set_type_name(const char* value, size_t size) { |
+void FieldDescriptorProto::set_type_name(const char* value, size_t size) { |
set_has_type_name(); |
type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
::std::string(reinterpret_cast<const char*>(value), size)); |
// @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.type_name) |
} |
- ::std::string* FieldDescriptorProto::mutable_type_name() { |
+::std::string* FieldDescriptorProto::mutable_type_name() { |
set_has_type_name(); |
// @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.type_name) |
return type_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- ::std::string* FieldDescriptorProto::release_type_name() { |
+::std::string* FieldDescriptorProto::release_type_name() { |
// @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.type_name) |
clear_has_type_name(); |
return type_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void FieldDescriptorProto::set_allocated_type_name(::std::string* type_name) { |
+void FieldDescriptorProto::set_allocated_type_name(::std::string* type_name) { |
if (type_name != NULL) { |
set_has_type_name(); |
} else { |
@@ -5123,37 +5298,37 @@ void FieldDescriptorProto::clear_extendee() { |
extendee_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
clear_has_extendee(); |
} |
- const ::std::string& FieldDescriptorProto::extendee() const { |
+const ::std::string& FieldDescriptorProto::extendee() const { |
// @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.extendee) |
return extendee_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void FieldDescriptorProto::set_extendee(const ::std::string& value) { |
+void FieldDescriptorProto::set_extendee(const ::std::string& value) { |
set_has_extendee(); |
extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
// @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.extendee) |
} |
- void FieldDescriptorProto::set_extendee(const char* value) { |
+void FieldDescriptorProto::set_extendee(const char* value) { |
set_has_extendee(); |
extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
// @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.extendee) |
} |
- void FieldDescriptorProto::set_extendee(const char* value, size_t size) { |
+void FieldDescriptorProto::set_extendee(const char* value, size_t size) { |
set_has_extendee(); |
extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
::std::string(reinterpret_cast<const char*>(value), size)); |
// @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.extendee) |
} |
- ::std::string* FieldDescriptorProto::mutable_extendee() { |
+::std::string* FieldDescriptorProto::mutable_extendee() { |
set_has_extendee(); |
// @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.extendee) |
return extendee_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- ::std::string* FieldDescriptorProto::release_extendee() { |
+::std::string* FieldDescriptorProto::release_extendee() { |
// @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.extendee) |
clear_has_extendee(); |
return extendee_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void FieldDescriptorProto::set_allocated_extendee(::std::string* extendee) { |
+void FieldDescriptorProto::set_allocated_extendee(::std::string* extendee) { |
if (extendee != NULL) { |
set_has_extendee(); |
} else { |
@@ -5177,37 +5352,37 @@ void FieldDescriptorProto::clear_default_value() { |
default_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
clear_has_default_value(); |
} |
- const ::std::string& FieldDescriptorProto::default_value() const { |
+const ::std::string& FieldDescriptorProto::default_value() const { |
// @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.default_value) |
return default_value_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void FieldDescriptorProto::set_default_value(const ::std::string& value) { |
+void FieldDescriptorProto::set_default_value(const ::std::string& value) { |
set_has_default_value(); |
default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
// @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.default_value) |
} |
- void FieldDescriptorProto::set_default_value(const char* value) { |
+void FieldDescriptorProto::set_default_value(const char* value) { |
set_has_default_value(); |
default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
// @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.default_value) |
} |
- void FieldDescriptorProto::set_default_value(const char* value, size_t size) { |
+void FieldDescriptorProto::set_default_value(const char* value, size_t size) { |
set_has_default_value(); |
default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
::std::string(reinterpret_cast<const char*>(value), size)); |
// @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.default_value) |
} |
- ::std::string* FieldDescriptorProto::mutable_default_value() { |
+::std::string* FieldDescriptorProto::mutable_default_value() { |
set_has_default_value(); |
// @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.default_value) |
return default_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- ::std::string* FieldDescriptorProto::release_default_value() { |
+::std::string* FieldDescriptorProto::release_default_value() { |
// @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.default_value) |
clear_has_default_value(); |
return default_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void FieldDescriptorProto::set_allocated_default_value(::std::string* default_value) { |
+void FieldDescriptorProto::set_allocated_default_value(::std::string* default_value) { |
if (default_value != NULL) { |
set_has_default_value(); |
} else { |
@@ -5231,11 +5406,11 @@ void FieldDescriptorProto::clear_oneof_index() { |
oneof_index_ = 0; |
clear_has_oneof_index(); |
} |
- ::google::protobuf::int32 FieldDescriptorProto::oneof_index() const { |
+::google::protobuf::int32 FieldDescriptorProto::oneof_index() const { |
// @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.oneof_index) |
return oneof_index_; |
} |
- void FieldDescriptorProto::set_oneof_index(::google::protobuf::int32 value) { |
+void FieldDescriptorProto::set_oneof_index(::google::protobuf::int32 value) { |
set_has_oneof_index(); |
oneof_index_ = value; |
// @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.oneof_index) |
@@ -5255,37 +5430,37 @@ void FieldDescriptorProto::clear_json_name() { |
json_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
clear_has_json_name(); |
} |
- const ::std::string& FieldDescriptorProto::json_name() const { |
+const ::std::string& FieldDescriptorProto::json_name() const { |
// @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.json_name) |
return json_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void FieldDescriptorProto::set_json_name(const ::std::string& value) { |
+void FieldDescriptorProto::set_json_name(const ::std::string& value) { |
set_has_json_name(); |
json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
// @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.json_name) |
} |
- void FieldDescriptorProto::set_json_name(const char* value) { |
+void FieldDescriptorProto::set_json_name(const char* value) { |
set_has_json_name(); |
json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
// @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.json_name) |
} |
- void FieldDescriptorProto::set_json_name(const char* value, size_t size) { |
+void FieldDescriptorProto::set_json_name(const char* value, size_t size) { |
set_has_json_name(); |
json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
::std::string(reinterpret_cast<const char*>(value), size)); |
// @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.json_name) |
} |
- ::std::string* FieldDescriptorProto::mutable_json_name() { |
+::std::string* FieldDescriptorProto::mutable_json_name() { |
set_has_json_name(); |
// @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.json_name) |
return json_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- ::std::string* FieldDescriptorProto::release_json_name() { |
+::std::string* FieldDescriptorProto::release_json_name() { |
// @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.json_name) |
clear_has_json_name(); |
return json_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void FieldDescriptorProto::set_allocated_json_name(::std::string* json_name) { |
+void FieldDescriptorProto::set_allocated_json_name(::std::string* json_name) { |
if (json_name != NULL) { |
set_has_json_name(); |
} else { |
@@ -5311,7 +5486,8 @@ void FieldDescriptorProto::clear_options() { |
} |
const ::google::protobuf::FieldOptions& FieldDescriptorProto::options() const { |
// @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.options) |
- return options_ != NULL ? *options_ : *default_instance_->options_; |
+ return options_ != NULL ? *options_ |
+ : *::google::protobuf::FieldOptions::internal_default_instance(); |
} |
::google::protobuf::FieldOptions* FieldDescriptorProto::mutable_options() { |
set_has_options(); |
@@ -5339,36 +5515,42 @@ void FieldDescriptorProto::set_allocated_options(::google::protobuf::FieldOption |
// @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.options) |
} |
+inline const FieldDescriptorProto* FieldDescriptorProto::internal_default_instance() { |
+ return &FieldDescriptorProto_default_instance_.get(); |
+} |
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
// =================================================================== |
#if !defined(_MSC_VER) || _MSC_VER >= 1900 |
const int OneofDescriptorProto::kNameFieldNumber; |
+const int OneofDescriptorProto::kOptionsFieldNumber; |
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
OneofDescriptorProto::OneofDescriptorProto() |
: ::google::protobuf::Message(), _internal_metadata_(NULL) { |
+ if (this != internal_default_instance()) protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
SharedCtor(); |
// @@protoc_insertion_point(constructor:google.protobuf.OneofDescriptorProto) |
} |
void OneofDescriptorProto::InitAsDefaultInstance() { |
+ options_ = const_cast< ::google::protobuf::OneofOptions*>( |
+ ::google::protobuf::OneofOptions::internal_default_instance()); |
} |
OneofDescriptorProto::OneofDescriptorProto(const OneofDescriptorProto& from) |
: ::google::protobuf::Message(), |
_internal_metadata_(NULL) { |
SharedCtor(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
// @@protoc_insertion_point(copy_constructor:google.protobuf.OneofDescriptorProto) |
} |
void OneofDescriptorProto::SharedCtor() { |
- ::google::protobuf::internal::GetEmptyString(); |
_cached_size_ = 0; |
name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ options_ = NULL; |
} |
OneofDescriptorProto::~OneofDescriptorProto() { |
@@ -5378,7 +5560,8 @@ OneofDescriptorProto::~OneofDescriptorProto() { |
void OneofDescriptorProto::SharedDtor() { |
name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
- if (this != default_instance_) { |
+ if (this != &OneofDescriptorProto_default_instance_.get()) { |
+ delete options_; |
} |
} |
@@ -5393,11 +5576,11 @@ const ::google::protobuf::Descriptor* OneofDescriptorProto::descriptor() { |
} |
const OneofDescriptorProto& OneofDescriptorProto::default_instance() { |
- if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
- return *default_instance_; |
+ protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
+ return *internal_default_instance(); |
} |
-OneofDescriptorProto* OneofDescriptorProto::default_instance_ = NULL; |
+::google::protobuf::internal::ExplicitlyConstructed<OneofDescriptorProto> OneofDescriptorProto_default_instance_; |
OneofDescriptorProto* OneofDescriptorProto::New(::google::protobuf::Arena* arena) const { |
OneofDescriptorProto* n = new OneofDescriptorProto; |
@@ -5409,10 +5592,15 @@ OneofDescriptorProto* OneofDescriptorProto::New(::google::protobuf::Arena* arena |
void OneofDescriptorProto::Clear() { |
// @@protoc_insertion_point(message_clear_start:google.protobuf.OneofDescriptorProto) |
- if (has_name()) { |
- name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
+ if (_has_bits_[0 / 32] & 3u) { |
+ if (has_name()) { |
+ name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
+ } |
+ if (has_options()) { |
+ if (options_ != NULL) options_->::google::protobuf::OneofOptions::Clear(); |
+ } |
} |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ _has_bits_.Clear(); |
if (_internal_metadata_.have_unknown_fields()) { |
mutable_unknown_fields()->Clear(); |
} |
@@ -5440,6 +5628,19 @@ bool OneofDescriptorProto::MergePartialFromCodedStream( |
} else { |
goto handle_unusual; |
} |
+ if (input->ExpectTag(18)) goto parse_options; |
+ break; |
+ } |
+ |
+ // optional .google.protobuf.OneofOptions options = 2; |
+ case 2: { |
+ if (tag == 18) { |
+ parse_options: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
+ input, mutable_options())); |
+ } else { |
+ goto handle_unusual; |
+ } |
if (input->ExpectAtEnd()) goto success; |
break; |
} |
@@ -5479,6 +5680,12 @@ void OneofDescriptorProto::SerializeWithCachedSizes( |
1, this->name(), output); |
} |
+ // optional .google.protobuf.OneofOptions options = 2; |
+ if (has_options()) { |
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
+ 2, *this->options_, output); |
+ } |
+ |
if (_internal_metadata_.have_unknown_fields()) { |
::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
unknown_fields(), output); |
@@ -5486,8 +5693,9 @@ void OneofDescriptorProto::SerializeWithCachedSizes( |
// @@protoc_insertion_point(serialize_end:google.protobuf.OneofDescriptorProto) |
} |
-::google::protobuf::uint8* OneofDescriptorProto::SerializeWithCachedSizesToArray( |
- ::google::protobuf::uint8* target) const { |
+::google::protobuf::uint8* OneofDescriptorProto::InternalSerializeWithCachedSizesToArray( |
+ bool deterministic, ::google::protobuf::uint8* target) const { |
+ (void)deterministic; // Unused |
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.OneofDescriptorProto) |
// optional string name = 1; |
if (has_name()) { |
@@ -5500,6 +5708,13 @@ void OneofDescriptorProto::SerializeWithCachedSizes( |
1, this->name(), target); |
} |
+ // optional .google.protobuf.OneofOptions options = 2; |
+ if (has_options()) { |
+ target = ::google::protobuf::internal::WireFormatLite:: |
+ InternalWriteMessageNoVirtualToArray( |
+ 2, *this->options_, false, target); |
+ } |
+ |
if (_internal_metadata_.have_unknown_fields()) { |
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
unknown_fields(), target); |
@@ -5508,24 +5723,34 @@ void OneofDescriptorProto::SerializeWithCachedSizes( |
return target; |
} |
-int OneofDescriptorProto::ByteSize() const { |
+size_t OneofDescriptorProto::ByteSizeLong() const { |
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.OneofDescriptorProto) |
- int total_size = 0; |
+ size_t total_size = 0; |
- // optional string name = 1; |
- if (has_name()) { |
- total_size += 1 + |
- ::google::protobuf::internal::WireFormatLite::StringSize( |
- this->name()); |
- } |
+ if (_has_bits_[0 / 32] & 3u) { |
+ // optional string name = 1; |
+ if (has_name()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::StringSize( |
+ this->name()); |
+ } |
+ |
+ // optional .google.protobuf.OneofOptions options = 2; |
+ if (has_options()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ *this->options_); |
+ } |
+ } |
if (_internal_metadata_.have_unknown_fields()) { |
total_size += |
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
unknown_fields()); |
} |
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
- _cached_size_ = total_size; |
+ _cached_size_ = cached_size; |
GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
return total_size; |
} |
@@ -5533,7 +5758,7 @@ int OneofDescriptorProto::ByteSize() const { |
void OneofDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.OneofDescriptorProto) |
if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
- const OneofDescriptorProto* source = |
+ const OneofDescriptorProto* source = |
::google::protobuf::internal::DynamicCastToGenerated<const OneofDescriptorProto>( |
&from); |
if (source == NULL) { |
@@ -5541,21 +5766,33 @@ void OneofDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
::google::protobuf::internal::ReflectionOps::Merge(from, this); |
} else { |
// @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.OneofDescriptorProto) |
- MergeFrom(*source); |
+ UnsafeMergeFrom(*source); |
} |
} |
void OneofDescriptorProto::MergeFrom(const OneofDescriptorProto& from) { |
// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.OneofDescriptorProto) |
- if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
+ if (GOOGLE_PREDICT_TRUE(&from != this)) { |
+ UnsafeMergeFrom(from); |
+ } else { |
+ MergeFromFail(__LINE__); |
+ } |
+} |
+ |
+void OneofDescriptorProto::UnsafeMergeFrom(const OneofDescriptorProto& from) { |
+ GOOGLE_DCHECK(&from != this); |
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
if (from.has_name()) { |
set_has_name(); |
name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
} |
+ if (from.has_options()) { |
+ mutable_options()->::google::protobuf::OneofOptions::MergeFrom(from.options()); |
+ } |
} |
if (from._internal_metadata_.have_unknown_fields()) { |
- mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+ ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( |
+ from.unknown_fields(), &_internal_metadata_); |
} |
} |
@@ -5570,11 +5807,14 @@ void OneofDescriptorProto::CopyFrom(const OneofDescriptorProto& from) { |
// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.OneofDescriptorProto) |
if (&from == this) return; |
Clear(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
} |
bool OneofDescriptorProto::IsInitialized() const { |
+ if (has_options()) { |
+ if (!this->options_->IsInitialized()) return false; |
+ } |
return true; |
} |
@@ -5584,6 +5824,7 @@ void OneofDescriptorProto::Swap(OneofDescriptorProto* other) { |
} |
void OneofDescriptorProto::InternalSwap(OneofDescriptorProto* other) { |
name_.Swap(&other->name_); |
+ std::swap(options_, other->options_); |
std::swap(_has_bits_[0], other->_has_bits_[0]); |
_internal_metadata_.Swap(&other->_internal_metadata_); |
std::swap(_cached_size_, other->_cached_size_); |
@@ -5614,37 +5855,37 @@ void OneofDescriptorProto::clear_name() { |
name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
clear_has_name(); |
} |
- const ::std::string& OneofDescriptorProto::name() const { |
+const ::std::string& OneofDescriptorProto::name() const { |
// @@protoc_insertion_point(field_get:google.protobuf.OneofDescriptorProto.name) |
return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void OneofDescriptorProto::set_name(const ::std::string& value) { |
+void OneofDescriptorProto::set_name(const ::std::string& value) { |
set_has_name(); |
name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
// @@protoc_insertion_point(field_set:google.protobuf.OneofDescriptorProto.name) |
} |
- void OneofDescriptorProto::set_name(const char* value) { |
+void OneofDescriptorProto::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.OneofDescriptorProto.name) |
} |
- void OneofDescriptorProto::set_name(const char* value, size_t size) { |
+void OneofDescriptorProto::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.OneofDescriptorProto.name) |
} |
- ::std::string* OneofDescriptorProto::mutable_name() { |
+::std::string* OneofDescriptorProto::mutable_name() { |
set_has_name(); |
// @@protoc_insertion_point(field_mutable:google.protobuf.OneofDescriptorProto.name) |
return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- ::std::string* OneofDescriptorProto::release_name() { |
+::std::string* OneofDescriptorProto::release_name() { |
// @@protoc_insertion_point(field_release:google.protobuf.OneofDescriptorProto.name) |
clear_has_name(); |
return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void OneofDescriptorProto::set_allocated_name(::std::string* name) { |
+void OneofDescriptorProto::set_allocated_name(::std::string* name) { |
if (name != NULL) { |
set_has_name(); |
} else { |
@@ -5654,40 +5895,88 @@ void OneofDescriptorProto::clear_name() { |
// @@protoc_insertion_point(field_set_allocated:google.protobuf.OneofDescriptorProto.name) |
} |
-#endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
- |
-// =================================================================== |
- |
-#if !defined(_MSC_VER) || _MSC_VER >= 1900 |
-const int EnumDescriptorProto::kNameFieldNumber; |
-const int EnumDescriptorProto::kValueFieldNumber; |
-const int EnumDescriptorProto::kOptionsFieldNumber; |
-#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
- |
-EnumDescriptorProto::EnumDescriptorProto() |
- : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
- SharedCtor(); |
- // @@protoc_insertion_point(constructor:google.protobuf.EnumDescriptorProto) |
+// optional .google.protobuf.OneofOptions options = 2; |
+bool OneofDescriptorProto::has_options() const { |
+ return (_has_bits_[0] & 0x00000002u) != 0; |
} |
- |
-void EnumDescriptorProto::InitAsDefaultInstance() { |
- options_ = const_cast< ::google::protobuf::EnumOptions*>(&::google::protobuf::EnumOptions::default_instance()); |
+void OneofDescriptorProto::set_has_options() { |
+ _has_bits_[0] |= 0x00000002u; |
} |
- |
-EnumDescriptorProto::EnumDescriptorProto(const EnumDescriptorProto& from) |
- : ::google::protobuf::Message(), |
- _internal_metadata_(NULL) { |
- SharedCtor(); |
- MergeFrom(from); |
+void OneofDescriptorProto::clear_has_options() { |
+ _has_bits_[0] &= ~0x00000002u; |
+} |
+void OneofDescriptorProto::clear_options() { |
+ if (options_ != NULL) options_->::google::protobuf::OneofOptions::Clear(); |
+ clear_has_options(); |
+} |
+const ::google::protobuf::OneofOptions& OneofDescriptorProto::options() const { |
+ // @@protoc_insertion_point(field_get:google.protobuf.OneofDescriptorProto.options) |
+ return options_ != NULL ? *options_ |
+ : *::google::protobuf::OneofOptions::internal_default_instance(); |
+} |
+::google::protobuf::OneofOptions* OneofDescriptorProto::mutable_options() { |
+ set_has_options(); |
+ if (options_ == NULL) { |
+ options_ = new ::google::protobuf::OneofOptions; |
+ } |
+ // @@protoc_insertion_point(field_mutable:google.protobuf.OneofDescriptorProto.options) |
+ return options_; |
+} |
+::google::protobuf::OneofOptions* OneofDescriptorProto::release_options() { |
+ // @@protoc_insertion_point(field_release:google.protobuf.OneofDescriptorProto.options) |
+ clear_has_options(); |
+ ::google::protobuf::OneofOptions* temp = options_; |
+ options_ = NULL; |
+ return temp; |
+} |
+void OneofDescriptorProto::set_allocated_options(::google::protobuf::OneofOptions* options) { |
+ delete options_; |
+ options_ = options; |
+ if (options) { |
+ set_has_options(); |
+ } else { |
+ clear_has_options(); |
+ } |
+ // @@protoc_insertion_point(field_set_allocated:google.protobuf.OneofDescriptorProto.options) |
+} |
+ |
+inline const OneofDescriptorProto* OneofDescriptorProto::internal_default_instance() { |
+ return &OneofDescriptorProto_default_instance_.get(); |
+} |
+#endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
+ |
+// =================================================================== |
+ |
+#if !defined(_MSC_VER) || _MSC_VER >= 1900 |
+const int EnumDescriptorProto::kNameFieldNumber; |
+const int EnumDescriptorProto::kValueFieldNumber; |
+const int EnumDescriptorProto::kOptionsFieldNumber; |
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
+ |
+EnumDescriptorProto::EnumDescriptorProto() |
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
+ if (this != internal_default_instance()) protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
+ SharedCtor(); |
+ // @@protoc_insertion_point(constructor:google.protobuf.EnumDescriptorProto) |
+} |
+ |
+void EnumDescriptorProto::InitAsDefaultInstance() { |
+ options_ = const_cast< ::google::protobuf::EnumOptions*>( |
+ ::google::protobuf::EnumOptions::internal_default_instance()); |
+} |
+ |
+EnumDescriptorProto::EnumDescriptorProto(const EnumDescriptorProto& from) |
+ : ::google::protobuf::Message(), |
+ _internal_metadata_(NULL) { |
+ SharedCtor(); |
+ UnsafeMergeFrom(from); |
// @@protoc_insertion_point(copy_constructor:google.protobuf.EnumDescriptorProto) |
} |
void EnumDescriptorProto::SharedCtor() { |
- ::google::protobuf::internal::GetEmptyString(); |
_cached_size_ = 0; |
name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
options_ = NULL; |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
} |
EnumDescriptorProto::~EnumDescriptorProto() { |
@@ -5697,7 +5986,7 @@ EnumDescriptorProto::~EnumDescriptorProto() { |
void EnumDescriptorProto::SharedDtor() { |
name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
- if (this != default_instance_) { |
+ if (this != &EnumDescriptorProto_default_instance_.get()) { |
delete options_; |
} |
} |
@@ -5713,11 +6002,11 @@ const ::google::protobuf::Descriptor* EnumDescriptorProto::descriptor() { |
} |
const EnumDescriptorProto& EnumDescriptorProto::default_instance() { |
- if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
- return *default_instance_; |
+ protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
+ return *internal_default_instance(); |
} |
-EnumDescriptorProto* EnumDescriptorProto::default_instance_ = NULL; |
+::google::protobuf::internal::ExplicitlyConstructed<EnumDescriptorProto> EnumDescriptorProto_default_instance_; |
EnumDescriptorProto* EnumDescriptorProto::New(::google::protobuf::Arena* arena) const { |
EnumDescriptorProto* n = new EnumDescriptorProto; |
@@ -5738,7 +6027,7 @@ void EnumDescriptorProto::Clear() { |
} |
} |
value_.Clear(); |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ _has_bits_.Clear(); |
if (_internal_metadata_.have_unknown_fields()) { |
mutable_unknown_fields()->Clear(); |
} |
@@ -5854,8 +6143,9 @@ void EnumDescriptorProto::SerializeWithCachedSizes( |
// @@protoc_insertion_point(serialize_end:google.protobuf.EnumDescriptorProto) |
} |
-::google::protobuf::uint8* EnumDescriptorProto::SerializeWithCachedSizesToArray( |
- ::google::protobuf::uint8* target) const { |
+::google::protobuf::uint8* EnumDescriptorProto::InternalSerializeWithCachedSizesToArray( |
+ bool deterministic, ::google::protobuf::uint8* target) const { |
+ (void)deterministic; // Unused |
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumDescriptorProto) |
// optional string name = 1; |
if (has_name()) { |
@@ -5871,15 +6161,15 @@ void EnumDescriptorProto::SerializeWithCachedSizes( |
// repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
for (unsigned int i = 0, n = this->value_size(); i < n; i++) { |
target = ::google::protobuf::internal::WireFormatLite:: |
- WriteMessageNoVirtualToArray( |
- 2, this->value(i), target); |
+ InternalWriteMessageNoVirtualToArray( |
+ 2, this->value(i), false, target); |
} |
// optional .google.protobuf.EnumOptions options = 3; |
if (has_options()) { |
target = ::google::protobuf::internal::WireFormatLite:: |
- WriteMessageNoVirtualToArray( |
- 3, *this->options_, target); |
+ InternalWriteMessageNoVirtualToArray( |
+ 3, *this->options_, false, target); |
} |
if (_internal_metadata_.have_unknown_fields()) { |
@@ -5890,9 +6180,9 @@ void EnumDescriptorProto::SerializeWithCachedSizes( |
return target; |
} |
-int EnumDescriptorProto::ByteSize() const { |
+size_t EnumDescriptorProto::ByteSizeLong() const { |
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumDescriptorProto) |
- int total_size = 0; |
+ size_t total_size = 0; |
if (_has_bits_[0 / 32] & 5u) { |
// optional string name = 1; |
@@ -5911,11 +6201,14 @@ int EnumDescriptorProto::ByteSize() const { |
} |
// repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
- total_size += 1 * this->value_size(); |
- for (int i = 0; i < this->value_size(); i++) { |
- total_size += |
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
- this->value(i)); |
+ { |
+ unsigned int count = this->value_size(); |
+ total_size += 1UL * count; |
+ for (unsigned int i = 0; i < count; i++) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->value(i)); |
+ } |
} |
if (_internal_metadata_.have_unknown_fields()) { |
@@ -5923,8 +6216,9 @@ int EnumDescriptorProto::ByteSize() const { |
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
unknown_fields()); |
} |
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
- _cached_size_ = total_size; |
+ _cached_size_ = cached_size; |
GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
return total_size; |
} |
@@ -5932,7 +6226,7 @@ int EnumDescriptorProto::ByteSize() const { |
void EnumDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumDescriptorProto) |
if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
- const EnumDescriptorProto* source = |
+ const EnumDescriptorProto* source = |
::google::protobuf::internal::DynamicCastToGenerated<const EnumDescriptorProto>( |
&from); |
if (source == NULL) { |
@@ -5940,13 +6234,21 @@ void EnumDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
::google::protobuf::internal::ReflectionOps::Merge(from, this); |
} else { |
// @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.EnumDescriptorProto) |
- MergeFrom(*source); |
+ UnsafeMergeFrom(*source); |
} |
} |
void EnumDescriptorProto::MergeFrom(const EnumDescriptorProto& from) { |
// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.EnumDescriptorProto) |
- if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
+ if (GOOGLE_PREDICT_TRUE(&from != this)) { |
+ UnsafeMergeFrom(from); |
+ } else { |
+ MergeFromFail(__LINE__); |
+ } |
+} |
+ |
+void EnumDescriptorProto::UnsafeMergeFrom(const EnumDescriptorProto& from) { |
+ GOOGLE_DCHECK(&from != this); |
value_.MergeFrom(from.value_); |
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
if (from.has_name()) { |
@@ -5958,7 +6260,8 @@ void EnumDescriptorProto::MergeFrom(const EnumDescriptorProto& from) { |
} |
} |
if (from._internal_metadata_.have_unknown_fields()) { |
- mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+ ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( |
+ from.unknown_fields(), &_internal_metadata_); |
} |
} |
@@ -5973,7 +6276,7 @@ void EnumDescriptorProto::CopyFrom(const EnumDescriptorProto& from) { |
// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumDescriptorProto) |
if (&from == this) return; |
Clear(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
} |
bool EnumDescriptorProto::IsInitialized() const { |
@@ -6023,37 +6326,37 @@ void EnumDescriptorProto::clear_name() { |
name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
clear_has_name(); |
} |
- const ::std::string& EnumDescriptorProto::name() const { |
+const ::std::string& EnumDescriptorProto::name() const { |
// @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.name) |
return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void EnumDescriptorProto::set_name(const ::std::string& value) { |
+void EnumDescriptorProto::set_name(const ::std::string& value) { |
set_has_name(); |
name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
// @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.name) |
} |
- void EnumDescriptorProto::set_name(const char* value) { |
+void EnumDescriptorProto::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.EnumDescriptorProto.name) |
} |
- void EnumDescriptorProto::set_name(const char* value, size_t size) { |
+void EnumDescriptorProto::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.EnumDescriptorProto.name) |
} |
- ::std::string* EnumDescriptorProto::mutable_name() { |
+::std::string* EnumDescriptorProto::mutable_name() { |
set_has_name(); |
// @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.name) |
return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- ::std::string* EnumDescriptorProto::release_name() { |
+::std::string* EnumDescriptorProto::release_name() { |
// @@protoc_insertion_point(field_release:google.protobuf.EnumDescriptorProto.name) |
clear_has_name(); |
return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void EnumDescriptorProto::set_allocated_name(::std::string* name) { |
+void EnumDescriptorProto::set_allocated_name(::std::string* name) { |
if (name != NULL) { |
set_has_name(); |
} else { |
@@ -6109,7 +6412,8 @@ void EnumDescriptorProto::clear_options() { |
} |
const ::google::protobuf::EnumOptions& EnumDescriptorProto::options() const { |
// @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.options) |
- return options_ != NULL ? *options_ : *default_instance_->options_; |
+ return options_ != NULL ? *options_ |
+ : *::google::protobuf::EnumOptions::internal_default_instance(); |
} |
::google::protobuf::EnumOptions* EnumDescriptorProto::mutable_options() { |
set_has_options(); |
@@ -6137,6 +6441,9 @@ void EnumDescriptorProto::set_allocated_options(::google::protobuf::EnumOptions* |
// @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumDescriptorProto.options) |
} |
+inline const EnumDescriptorProto* EnumDescriptorProto::internal_default_instance() { |
+ return &EnumDescriptorProto_default_instance_.get(); |
+} |
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
// =================================================================== |
@@ -6149,29 +6456,29 @@ const int EnumValueDescriptorProto::kOptionsFieldNumber; |
EnumValueDescriptorProto::EnumValueDescriptorProto() |
: ::google::protobuf::Message(), _internal_metadata_(NULL) { |
+ if (this != internal_default_instance()) protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
SharedCtor(); |
// @@protoc_insertion_point(constructor:google.protobuf.EnumValueDescriptorProto) |
} |
void EnumValueDescriptorProto::InitAsDefaultInstance() { |
- options_ = const_cast< ::google::protobuf::EnumValueOptions*>(&::google::protobuf::EnumValueOptions::default_instance()); |
+ options_ = const_cast< ::google::protobuf::EnumValueOptions*>( |
+ ::google::protobuf::EnumValueOptions::internal_default_instance()); |
} |
EnumValueDescriptorProto::EnumValueDescriptorProto(const EnumValueDescriptorProto& from) |
: ::google::protobuf::Message(), |
_internal_metadata_(NULL) { |
SharedCtor(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
// @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValueDescriptorProto) |
} |
void EnumValueDescriptorProto::SharedCtor() { |
- ::google::protobuf::internal::GetEmptyString(); |
_cached_size_ = 0; |
name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
- number_ = 0; |
options_ = NULL; |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ number_ = 0; |
} |
EnumValueDescriptorProto::~EnumValueDescriptorProto() { |
@@ -6181,7 +6488,7 @@ EnumValueDescriptorProto::~EnumValueDescriptorProto() { |
void EnumValueDescriptorProto::SharedDtor() { |
name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
- if (this != default_instance_) { |
+ if (this != &EnumValueDescriptorProto_default_instance_.get()) { |
delete options_; |
} |
} |
@@ -6197,11 +6504,11 @@ const ::google::protobuf::Descriptor* EnumValueDescriptorProto::descriptor() { |
} |
const EnumValueDescriptorProto& EnumValueDescriptorProto::default_instance() { |
- if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
- return *default_instance_; |
+ protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
+ return *internal_default_instance(); |
} |
-EnumValueDescriptorProto* EnumValueDescriptorProto::default_instance_ = NULL; |
+::google::protobuf::internal::ExplicitlyConstructed<EnumValueDescriptorProto> EnumValueDescriptorProto_default_instance_; |
EnumValueDescriptorProto* EnumValueDescriptorProto::New(::google::protobuf::Arena* arena) const { |
EnumValueDescriptorProto* n = new EnumValueDescriptorProto; |
@@ -6222,7 +6529,7 @@ void EnumValueDescriptorProto::Clear() { |
if (options_ != NULL) options_->::google::protobuf::EnumValueOptions::Clear(); |
} |
} |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ _has_bits_.Clear(); |
if (_internal_metadata_.have_unknown_fields()) { |
mutable_unknown_fields()->Clear(); |
} |
@@ -6258,10 +6565,10 @@ bool EnumValueDescriptorProto::MergePartialFromCodedStream( |
case 2: { |
if (tag == 16) { |
parse_number: |
+ set_has_number(); |
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
input, &number_))); |
- set_has_number(); |
} else { |
goto handle_unusual; |
} |
@@ -6335,8 +6642,9 @@ void EnumValueDescriptorProto::SerializeWithCachedSizes( |
// @@protoc_insertion_point(serialize_end:google.protobuf.EnumValueDescriptorProto) |
} |
-::google::protobuf::uint8* EnumValueDescriptorProto::SerializeWithCachedSizesToArray( |
- ::google::protobuf::uint8* target) const { |
+::google::protobuf::uint8* EnumValueDescriptorProto::InternalSerializeWithCachedSizesToArray( |
+ bool deterministic, ::google::protobuf::uint8* target) const { |
+ (void)deterministic; // Unused |
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValueDescriptorProto) |
// optional string name = 1; |
if (has_name()) { |
@@ -6357,8 +6665,8 @@ void EnumValueDescriptorProto::SerializeWithCachedSizes( |
// optional .google.protobuf.EnumValueOptions options = 3; |
if (has_options()) { |
target = ::google::protobuf::internal::WireFormatLite:: |
- WriteMessageNoVirtualToArray( |
- 3, *this->options_, target); |
+ InternalWriteMessageNoVirtualToArray( |
+ 3, *this->options_, false, target); |
} |
if (_internal_metadata_.have_unknown_fields()) { |
@@ -6369,9 +6677,9 @@ void EnumValueDescriptorProto::SerializeWithCachedSizes( |
return target; |
} |
-int EnumValueDescriptorProto::ByteSize() const { |
+size_t EnumValueDescriptorProto::ByteSizeLong() const { |
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumValueDescriptorProto) |
- int total_size = 0; |
+ size_t total_size = 0; |
if (_has_bits_[0 / 32] & 7u) { |
// optional string name = 1; |
@@ -6401,8 +6709,9 @@ int EnumValueDescriptorProto::ByteSize() const { |
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
unknown_fields()); |
} |
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
- _cached_size_ = total_size; |
+ _cached_size_ = cached_size; |
GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
return total_size; |
} |
@@ -6410,7 +6719,7 @@ int EnumValueDescriptorProto::ByteSize() const { |
void EnumValueDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumValueDescriptorProto) |
if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
- const EnumValueDescriptorProto* source = |
+ const EnumValueDescriptorProto* source = |
::google::protobuf::internal::DynamicCastToGenerated<const EnumValueDescriptorProto>( |
&from); |
if (source == NULL) { |
@@ -6418,13 +6727,21 @@ void EnumValueDescriptorProto::MergeFrom(const ::google::protobuf::Message& from |
::google::protobuf::internal::ReflectionOps::Merge(from, this); |
} else { |
// @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.EnumValueDescriptorProto) |
- MergeFrom(*source); |
+ UnsafeMergeFrom(*source); |
} |
} |
void EnumValueDescriptorProto::MergeFrom(const EnumValueDescriptorProto& from) { |
// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.EnumValueDescriptorProto) |
- if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
+ if (GOOGLE_PREDICT_TRUE(&from != this)) { |
+ UnsafeMergeFrom(from); |
+ } else { |
+ MergeFromFail(__LINE__); |
+ } |
+} |
+ |
+void EnumValueDescriptorProto::UnsafeMergeFrom(const EnumValueDescriptorProto& from) { |
+ GOOGLE_DCHECK(&from != this); |
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
if (from.has_name()) { |
set_has_name(); |
@@ -6438,7 +6755,8 @@ void EnumValueDescriptorProto::MergeFrom(const EnumValueDescriptorProto& from) { |
} |
} |
if (from._internal_metadata_.have_unknown_fields()) { |
- mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+ ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( |
+ from.unknown_fields(), &_internal_metadata_); |
} |
} |
@@ -6453,7 +6771,7 @@ void EnumValueDescriptorProto::CopyFrom(const EnumValueDescriptorProto& from) { |
// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumValueDescriptorProto) |
if (&from == this) return; |
Clear(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
} |
bool EnumValueDescriptorProto::IsInitialized() const { |
@@ -6502,37 +6820,37 @@ void EnumValueDescriptorProto::clear_name() { |
name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
clear_has_name(); |
} |
- const ::std::string& EnumValueDescriptorProto::name() const { |
+const ::std::string& EnumValueDescriptorProto::name() const { |
// @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.name) |
return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void EnumValueDescriptorProto::set_name(const ::std::string& value) { |
+void EnumValueDescriptorProto::set_name(const ::std::string& value) { |
set_has_name(); |
name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
// @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto.name) |
} |
- void EnumValueDescriptorProto::set_name(const char* value) { |
+void EnumValueDescriptorProto::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.EnumValueDescriptorProto.name) |
} |
- void EnumValueDescriptorProto::set_name(const char* value, size_t size) { |
+void EnumValueDescriptorProto::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.EnumValueDescriptorProto.name) |
} |
- ::std::string* EnumValueDescriptorProto::mutable_name() { |
+::std::string* EnumValueDescriptorProto::mutable_name() { |
set_has_name(); |
// @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorProto.name) |
return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- ::std::string* EnumValueDescriptorProto::release_name() { |
+::std::string* EnumValueDescriptorProto::release_name() { |
// @@protoc_insertion_point(field_release:google.protobuf.EnumValueDescriptorProto.name) |
clear_has_name(); |
return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void EnumValueDescriptorProto::set_allocated_name(::std::string* name) { |
+void EnumValueDescriptorProto::set_allocated_name(::std::string* name) { |
if (name != NULL) { |
set_has_name(); |
} else { |
@@ -6556,11 +6874,11 @@ void EnumValueDescriptorProto::clear_number() { |
number_ = 0; |
clear_has_number(); |
} |
- ::google::protobuf::int32 EnumValueDescriptorProto::number() const { |
+::google::protobuf::int32 EnumValueDescriptorProto::number() const { |
// @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.number) |
return number_; |
} |
- void EnumValueDescriptorProto::set_number(::google::protobuf::int32 value) { |
+void EnumValueDescriptorProto::set_number(::google::protobuf::int32 value) { |
set_has_number(); |
number_ = value; |
// @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto.number) |
@@ -6582,7 +6900,8 @@ void EnumValueDescriptorProto::clear_options() { |
} |
const ::google::protobuf::EnumValueOptions& EnumValueDescriptorProto::options() const { |
// @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.options) |
- return options_ != NULL ? *options_ : *default_instance_->options_; |
+ return options_ != NULL ? *options_ |
+ : *::google::protobuf::EnumValueOptions::internal_default_instance(); |
} |
::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::mutable_options() { |
set_has_options(); |
@@ -6610,6 +6929,9 @@ void EnumValueDescriptorProto::set_allocated_options(::google::protobuf::EnumVal |
// @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValueDescriptorProto.options) |
} |
+inline const EnumValueDescriptorProto* EnumValueDescriptorProto::internal_default_instance() { |
+ return &EnumValueDescriptorProto_default_instance_.get(); |
+} |
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
// =================================================================== |
@@ -6622,28 +6944,28 @@ const int ServiceDescriptorProto::kOptionsFieldNumber; |
ServiceDescriptorProto::ServiceDescriptorProto() |
: ::google::protobuf::Message(), _internal_metadata_(NULL) { |
+ if (this != internal_default_instance()) protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
SharedCtor(); |
// @@protoc_insertion_point(constructor:google.protobuf.ServiceDescriptorProto) |
} |
void ServiceDescriptorProto::InitAsDefaultInstance() { |
- options_ = const_cast< ::google::protobuf::ServiceOptions*>(&::google::protobuf::ServiceOptions::default_instance()); |
+ options_ = const_cast< ::google::protobuf::ServiceOptions*>( |
+ ::google::protobuf::ServiceOptions::internal_default_instance()); |
} |
ServiceDescriptorProto::ServiceDescriptorProto(const ServiceDescriptorProto& from) |
: ::google::protobuf::Message(), |
_internal_metadata_(NULL) { |
SharedCtor(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
// @@protoc_insertion_point(copy_constructor:google.protobuf.ServiceDescriptorProto) |
} |
void ServiceDescriptorProto::SharedCtor() { |
- ::google::protobuf::internal::GetEmptyString(); |
_cached_size_ = 0; |
name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
options_ = NULL; |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
} |
ServiceDescriptorProto::~ServiceDescriptorProto() { |
@@ -6653,7 +6975,7 @@ ServiceDescriptorProto::~ServiceDescriptorProto() { |
void ServiceDescriptorProto::SharedDtor() { |
name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
- if (this != default_instance_) { |
+ if (this != &ServiceDescriptorProto_default_instance_.get()) { |
delete options_; |
} |
} |
@@ -6669,11 +6991,11 @@ const ::google::protobuf::Descriptor* ServiceDescriptorProto::descriptor() { |
} |
const ServiceDescriptorProto& ServiceDescriptorProto::default_instance() { |
- if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
- return *default_instance_; |
+ protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
+ return *internal_default_instance(); |
} |
-ServiceDescriptorProto* ServiceDescriptorProto::default_instance_ = NULL; |
+::google::protobuf::internal::ExplicitlyConstructed<ServiceDescriptorProto> ServiceDescriptorProto_default_instance_; |
ServiceDescriptorProto* ServiceDescriptorProto::New(::google::protobuf::Arena* arena) const { |
ServiceDescriptorProto* n = new ServiceDescriptorProto; |
@@ -6694,7 +7016,7 @@ void ServiceDescriptorProto::Clear() { |
} |
} |
method_.Clear(); |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ _has_bits_.Clear(); |
if (_internal_metadata_.have_unknown_fields()) { |
mutable_unknown_fields()->Clear(); |
} |
@@ -6810,8 +7132,9 @@ void ServiceDescriptorProto::SerializeWithCachedSizes( |
// @@protoc_insertion_point(serialize_end:google.protobuf.ServiceDescriptorProto) |
} |
-::google::protobuf::uint8* ServiceDescriptorProto::SerializeWithCachedSizesToArray( |
- ::google::protobuf::uint8* target) const { |
+::google::protobuf::uint8* ServiceDescriptorProto::InternalSerializeWithCachedSizesToArray( |
+ bool deterministic, ::google::protobuf::uint8* target) const { |
+ (void)deterministic; // Unused |
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ServiceDescriptorProto) |
// optional string name = 1; |
if (has_name()) { |
@@ -6827,15 +7150,15 @@ void ServiceDescriptorProto::SerializeWithCachedSizes( |
// repeated .google.protobuf.MethodDescriptorProto method = 2; |
for (unsigned int i = 0, n = this->method_size(); i < n; i++) { |
target = ::google::protobuf::internal::WireFormatLite:: |
- WriteMessageNoVirtualToArray( |
- 2, this->method(i), target); |
+ InternalWriteMessageNoVirtualToArray( |
+ 2, this->method(i), false, target); |
} |
// optional .google.protobuf.ServiceOptions options = 3; |
if (has_options()) { |
target = ::google::protobuf::internal::WireFormatLite:: |
- WriteMessageNoVirtualToArray( |
- 3, *this->options_, target); |
+ InternalWriteMessageNoVirtualToArray( |
+ 3, *this->options_, false, target); |
} |
if (_internal_metadata_.have_unknown_fields()) { |
@@ -6846,9 +7169,9 @@ void ServiceDescriptorProto::SerializeWithCachedSizes( |
return target; |
} |
-int ServiceDescriptorProto::ByteSize() const { |
+size_t ServiceDescriptorProto::ByteSizeLong() const { |
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.ServiceDescriptorProto) |
- int total_size = 0; |
+ size_t total_size = 0; |
if (_has_bits_[0 / 32] & 5u) { |
// optional string name = 1; |
@@ -6867,11 +7190,14 @@ int ServiceDescriptorProto::ByteSize() const { |
} |
// repeated .google.protobuf.MethodDescriptorProto method = 2; |
- total_size += 1 * this->method_size(); |
- for (int i = 0; i < this->method_size(); i++) { |
- total_size += |
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
- this->method(i)); |
+ { |
+ unsigned int count = this->method_size(); |
+ total_size += 1UL * count; |
+ for (unsigned int i = 0; i < count; i++) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->method(i)); |
+ } |
} |
if (_internal_metadata_.have_unknown_fields()) { |
@@ -6879,8 +7205,9 @@ int ServiceDescriptorProto::ByteSize() const { |
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
unknown_fields()); |
} |
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
- _cached_size_ = total_size; |
+ _cached_size_ = cached_size; |
GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
return total_size; |
} |
@@ -6888,7 +7215,7 @@ int ServiceDescriptorProto::ByteSize() const { |
void ServiceDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.ServiceDescriptorProto) |
if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
- const ServiceDescriptorProto* source = |
+ const ServiceDescriptorProto* source = |
::google::protobuf::internal::DynamicCastToGenerated<const ServiceDescriptorProto>( |
&from); |
if (source == NULL) { |
@@ -6896,13 +7223,21 @@ void ServiceDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) |
::google::protobuf::internal::ReflectionOps::Merge(from, this); |
} else { |
// @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.ServiceDescriptorProto) |
- MergeFrom(*source); |
+ UnsafeMergeFrom(*source); |
} |
} |
void ServiceDescriptorProto::MergeFrom(const ServiceDescriptorProto& from) { |
// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.ServiceDescriptorProto) |
- if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
+ if (GOOGLE_PREDICT_TRUE(&from != this)) { |
+ UnsafeMergeFrom(from); |
+ } else { |
+ MergeFromFail(__LINE__); |
+ } |
+} |
+ |
+void ServiceDescriptorProto::UnsafeMergeFrom(const ServiceDescriptorProto& from) { |
+ GOOGLE_DCHECK(&from != this); |
method_.MergeFrom(from.method_); |
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
if (from.has_name()) { |
@@ -6914,7 +7249,8 @@ void ServiceDescriptorProto::MergeFrom(const ServiceDescriptorProto& from) { |
} |
} |
if (from._internal_metadata_.have_unknown_fields()) { |
- mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+ ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( |
+ from.unknown_fields(), &_internal_metadata_); |
} |
} |
@@ -6929,7 +7265,7 @@ void ServiceDescriptorProto::CopyFrom(const ServiceDescriptorProto& from) { |
// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.ServiceDescriptorProto) |
if (&from == this) return; |
Clear(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
} |
bool ServiceDescriptorProto::IsInitialized() const { |
@@ -6979,37 +7315,37 @@ void ServiceDescriptorProto::clear_name() { |
name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
clear_has_name(); |
} |
- const ::std::string& ServiceDescriptorProto::name() const { |
+const ::std::string& ServiceDescriptorProto::name() const { |
// @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.name) |
return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void ServiceDescriptorProto::set_name(const ::std::string& value) { |
+void ServiceDescriptorProto::set_name(const ::std::string& value) { |
set_has_name(); |
name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
// @@protoc_insertion_point(field_set:google.protobuf.ServiceDescriptorProto.name) |
} |
- void ServiceDescriptorProto::set_name(const char* value) { |
+void ServiceDescriptorProto::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.ServiceDescriptorProto.name) |
} |
- void ServiceDescriptorProto::set_name(const char* value, size_t size) { |
+void ServiceDescriptorProto::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.ServiceDescriptorProto.name) |
} |
- ::std::string* ServiceDescriptorProto::mutable_name() { |
+::std::string* ServiceDescriptorProto::mutable_name() { |
set_has_name(); |
// @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.name) |
return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- ::std::string* ServiceDescriptorProto::release_name() { |
+::std::string* ServiceDescriptorProto::release_name() { |
// @@protoc_insertion_point(field_release:google.protobuf.ServiceDescriptorProto.name) |
clear_has_name(); |
return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void ServiceDescriptorProto::set_allocated_name(::std::string* name) { |
+void ServiceDescriptorProto::set_allocated_name(::std::string* name) { |
if (name != NULL) { |
set_has_name(); |
} else { |
@@ -7065,7 +7401,8 @@ void ServiceDescriptorProto::clear_options() { |
} |
const ::google::protobuf::ServiceOptions& ServiceDescriptorProto::options() const { |
// @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.options) |
- return options_ != NULL ? *options_ : *default_instance_->options_; |
+ return options_ != NULL ? *options_ |
+ : *::google::protobuf::ServiceOptions::internal_default_instance(); |
} |
::google::protobuf::ServiceOptions* ServiceDescriptorProto::mutable_options() { |
set_has_options(); |
@@ -7093,6 +7430,9 @@ void ServiceDescriptorProto::set_allocated_options(::google::protobuf::ServiceOp |
// @@protoc_insertion_point(field_set_allocated:google.protobuf.ServiceDescriptorProto.options) |
} |
+inline const ServiceDescriptorProto* ServiceDescriptorProto::internal_default_instance() { |
+ return &ServiceDescriptorProto_default_instance_.get(); |
+} |
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
// =================================================================== |
@@ -7108,32 +7448,32 @@ const int MethodDescriptorProto::kServerStreamingFieldNumber; |
MethodDescriptorProto::MethodDescriptorProto() |
: ::google::protobuf::Message(), _internal_metadata_(NULL) { |
+ if (this != internal_default_instance()) protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
SharedCtor(); |
// @@protoc_insertion_point(constructor:google.protobuf.MethodDescriptorProto) |
} |
void MethodDescriptorProto::InitAsDefaultInstance() { |
- options_ = const_cast< ::google::protobuf::MethodOptions*>(&::google::protobuf::MethodOptions::default_instance()); |
+ options_ = const_cast< ::google::protobuf::MethodOptions*>( |
+ ::google::protobuf::MethodOptions::internal_default_instance()); |
} |
MethodDescriptorProto::MethodDescriptorProto(const MethodDescriptorProto& from) |
: ::google::protobuf::Message(), |
_internal_metadata_(NULL) { |
SharedCtor(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
// @@protoc_insertion_point(copy_constructor:google.protobuf.MethodDescriptorProto) |
} |
void MethodDescriptorProto::SharedCtor() { |
- ::google::protobuf::internal::GetEmptyString(); |
_cached_size_ = 0; |
name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
input_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
output_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
options_ = NULL; |
- client_streaming_ = false; |
- server_streaming_ = false; |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ ::memset(&client_streaming_, 0, reinterpret_cast<char*>(&server_streaming_) - |
+ reinterpret_cast<char*>(&client_streaming_) + sizeof(server_streaming_)); |
} |
MethodDescriptorProto::~MethodDescriptorProto() { |
@@ -7145,7 +7485,7 @@ void MethodDescriptorProto::SharedDtor() { |
name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
input_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
output_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
- if (this != default_instance_) { |
+ if (this != &MethodDescriptorProto_default_instance_.get()) { |
delete options_; |
} |
} |
@@ -7161,11 +7501,11 @@ const ::google::protobuf::Descriptor* MethodDescriptorProto::descriptor() { |
} |
const MethodDescriptorProto& MethodDescriptorProto::default_instance() { |
- if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
- return *default_instance_; |
+ protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
+ return *internal_default_instance(); |
} |
-MethodDescriptorProto* MethodDescriptorProto::default_instance_ = NULL; |
+::google::protobuf::internal::ExplicitlyConstructed<MethodDescriptorProto> MethodDescriptorProto_default_instance_; |
MethodDescriptorProto* MethodDescriptorProto::New(::google::protobuf::Arena* arena) const { |
MethodDescriptorProto* n = new MethodDescriptorProto; |
@@ -7189,7 +7529,7 @@ void MethodDescriptorProto::Clear() { |
#endif |
#define ZR_(first, last) do {\ |
- ::memset(&first, 0,\ |
+ ::memset(&(first), 0,\ |
ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ |
} while (0) |
@@ -7212,7 +7552,7 @@ void MethodDescriptorProto::Clear() { |
#undef ZR_HELPER_ |
#undef ZR_ |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ _has_bits_.Clear(); |
if (_internal_metadata_.have_unknown_fields()) { |
mutable_unknown_fields()->Clear(); |
} |
@@ -7295,10 +7635,10 @@ bool MethodDescriptorProto::MergePartialFromCodedStream( |
case 5: { |
if (tag == 40) { |
parse_client_streaming: |
+ set_has_client_streaming(); |
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
input, &client_streaming_))); |
- set_has_client_streaming(); |
} else { |
goto handle_unusual; |
} |
@@ -7310,10 +7650,10 @@ bool MethodDescriptorProto::MergePartialFromCodedStream( |
case 6: { |
if (tag == 48) { |
parse_server_streaming: |
+ set_has_server_streaming(); |
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
input, &server_streaming_))); |
- set_has_server_streaming(); |
} else { |
goto handle_unusual; |
} |
@@ -7399,8 +7739,9 @@ void MethodDescriptorProto::SerializeWithCachedSizes( |
// @@protoc_insertion_point(serialize_end:google.protobuf.MethodDescriptorProto) |
} |
-::google::protobuf::uint8* MethodDescriptorProto::SerializeWithCachedSizesToArray( |
- ::google::protobuf::uint8* target) const { |
+::google::protobuf::uint8* MethodDescriptorProto::InternalSerializeWithCachedSizesToArray( |
+ bool deterministic, ::google::protobuf::uint8* target) const { |
+ (void)deterministic; // Unused |
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MethodDescriptorProto) |
// optional string name = 1; |
if (has_name()) { |
@@ -7438,8 +7779,8 @@ void MethodDescriptorProto::SerializeWithCachedSizes( |
// optional .google.protobuf.MethodOptions options = 4; |
if (has_options()) { |
target = ::google::protobuf::internal::WireFormatLite:: |
- WriteMessageNoVirtualToArray( |
- 4, *this->options_, target); |
+ InternalWriteMessageNoVirtualToArray( |
+ 4, *this->options_, false, target); |
} |
// optional bool client_streaming = 5 [default = false]; |
@@ -7460,9 +7801,9 @@ void MethodDescriptorProto::SerializeWithCachedSizes( |
return target; |
} |
-int MethodDescriptorProto::ByteSize() const { |
+size_t MethodDescriptorProto::ByteSizeLong() const { |
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.MethodDescriptorProto) |
- int total_size = 0; |
+ size_t total_size = 0; |
if (_has_bits_[0 / 32] & 63u) { |
// optional string name = 1; |
@@ -7509,8 +7850,9 @@ int MethodDescriptorProto::ByteSize() const { |
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
unknown_fields()); |
} |
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
- _cached_size_ = total_size; |
+ _cached_size_ = cached_size; |
GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
return total_size; |
} |
@@ -7518,7 +7860,7 @@ int MethodDescriptorProto::ByteSize() const { |
void MethodDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.MethodDescriptorProto) |
if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
- const MethodDescriptorProto* source = |
+ const MethodDescriptorProto* source = |
::google::protobuf::internal::DynamicCastToGenerated<const MethodDescriptorProto>( |
&from); |
if (source == NULL) { |
@@ -7526,13 +7868,21 @@ void MethodDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
::google::protobuf::internal::ReflectionOps::Merge(from, this); |
} else { |
// @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.MethodDescriptorProto) |
- MergeFrom(*source); |
+ UnsafeMergeFrom(*source); |
} |
} |
void MethodDescriptorProto::MergeFrom(const MethodDescriptorProto& from) { |
// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.MethodDescriptorProto) |
- if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
+ if (GOOGLE_PREDICT_TRUE(&from != this)) { |
+ UnsafeMergeFrom(from); |
+ } else { |
+ MergeFromFail(__LINE__); |
+ } |
+} |
+ |
+void MethodDescriptorProto::UnsafeMergeFrom(const MethodDescriptorProto& from) { |
+ GOOGLE_DCHECK(&from != this); |
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
if (from.has_name()) { |
set_has_name(); |
@@ -7557,7 +7907,8 @@ void MethodDescriptorProto::MergeFrom(const MethodDescriptorProto& from) { |
} |
} |
if (from._internal_metadata_.have_unknown_fields()) { |
- mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+ ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( |
+ from.unknown_fields(), &_internal_metadata_); |
} |
} |
@@ -7572,7 +7923,7 @@ void MethodDescriptorProto::CopyFrom(const MethodDescriptorProto& from) { |
// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.MethodDescriptorProto) |
if (&from == this) return; |
Clear(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
} |
bool MethodDescriptorProto::IsInitialized() const { |
@@ -7624,37 +7975,37 @@ void MethodDescriptorProto::clear_name() { |
name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
clear_has_name(); |
} |
- const ::std::string& MethodDescriptorProto::name() const { |
+const ::std::string& MethodDescriptorProto::name() const { |
// @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.name) |
return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void MethodDescriptorProto::set_name(const ::std::string& value) { |
+void MethodDescriptorProto::set_name(const ::std::string& value) { |
set_has_name(); |
name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
// @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.name) |
} |
- void MethodDescriptorProto::set_name(const char* value) { |
+void MethodDescriptorProto::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.MethodDescriptorProto.name) |
} |
- void MethodDescriptorProto::set_name(const char* value, size_t size) { |
+void MethodDescriptorProto::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.MethodDescriptorProto.name) |
} |
- ::std::string* MethodDescriptorProto::mutable_name() { |
+::std::string* MethodDescriptorProto::mutable_name() { |
set_has_name(); |
// @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.name) |
return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- ::std::string* MethodDescriptorProto::release_name() { |
+::std::string* MethodDescriptorProto::release_name() { |
// @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.name) |
clear_has_name(); |
return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void MethodDescriptorProto::set_allocated_name(::std::string* name) { |
+void MethodDescriptorProto::set_allocated_name(::std::string* name) { |
if (name != NULL) { |
set_has_name(); |
} else { |
@@ -7678,37 +8029,37 @@ void MethodDescriptorProto::clear_input_type() { |
input_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
clear_has_input_type(); |
} |
- const ::std::string& MethodDescriptorProto::input_type() const { |
+const ::std::string& MethodDescriptorProto::input_type() const { |
// @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.input_type) |
return input_type_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void MethodDescriptorProto::set_input_type(const ::std::string& value) { |
+void MethodDescriptorProto::set_input_type(const ::std::string& value) { |
set_has_input_type(); |
input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
// @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.input_type) |
} |
- void MethodDescriptorProto::set_input_type(const char* value) { |
+void MethodDescriptorProto::set_input_type(const char* value) { |
set_has_input_type(); |
input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
// @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorProto.input_type) |
} |
- void MethodDescriptorProto::set_input_type(const char* value, size_t size) { |
+void MethodDescriptorProto::set_input_type(const char* value, size_t size) { |
set_has_input_type(); |
input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
::std::string(reinterpret_cast<const char*>(value), size)); |
// @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptorProto.input_type) |
} |
- ::std::string* MethodDescriptorProto::mutable_input_type() { |
+::std::string* MethodDescriptorProto::mutable_input_type() { |
set_has_input_type(); |
// @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.input_type) |
return input_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- ::std::string* MethodDescriptorProto::release_input_type() { |
+::std::string* MethodDescriptorProto::release_input_type() { |
// @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.input_type) |
clear_has_input_type(); |
return input_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void MethodDescriptorProto::set_allocated_input_type(::std::string* input_type) { |
+void MethodDescriptorProto::set_allocated_input_type(::std::string* input_type) { |
if (input_type != NULL) { |
set_has_input_type(); |
} else { |
@@ -7732,37 +8083,37 @@ void MethodDescriptorProto::clear_output_type() { |
output_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
clear_has_output_type(); |
} |
- const ::std::string& MethodDescriptorProto::output_type() const { |
+const ::std::string& MethodDescriptorProto::output_type() const { |
// @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.output_type) |
return output_type_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void MethodDescriptorProto::set_output_type(const ::std::string& value) { |
+void MethodDescriptorProto::set_output_type(const ::std::string& value) { |
set_has_output_type(); |
output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
// @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.output_type) |
} |
- void MethodDescriptorProto::set_output_type(const char* value) { |
+void MethodDescriptorProto::set_output_type(const char* value) { |
set_has_output_type(); |
output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
// @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorProto.output_type) |
} |
- void MethodDescriptorProto::set_output_type(const char* value, size_t size) { |
+void MethodDescriptorProto::set_output_type(const char* value, size_t size) { |
set_has_output_type(); |
output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
::std::string(reinterpret_cast<const char*>(value), size)); |
// @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptorProto.output_type) |
} |
- ::std::string* MethodDescriptorProto::mutable_output_type() { |
+::std::string* MethodDescriptorProto::mutable_output_type() { |
set_has_output_type(); |
// @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.output_type) |
return output_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- ::std::string* MethodDescriptorProto::release_output_type() { |
+::std::string* MethodDescriptorProto::release_output_type() { |
// @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.output_type) |
clear_has_output_type(); |
return output_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void MethodDescriptorProto::set_allocated_output_type(::std::string* output_type) { |
+void MethodDescriptorProto::set_allocated_output_type(::std::string* output_type) { |
if (output_type != NULL) { |
set_has_output_type(); |
} else { |
@@ -7788,7 +8139,8 @@ void MethodDescriptorProto::clear_options() { |
} |
const ::google::protobuf::MethodOptions& MethodDescriptorProto::options() const { |
// @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.options) |
- return options_ != NULL ? *options_ : *default_instance_->options_; |
+ return options_ != NULL ? *options_ |
+ : *::google::protobuf::MethodOptions::internal_default_instance(); |
} |
::google::protobuf::MethodOptions* MethodDescriptorProto::mutable_options() { |
set_has_options(); |
@@ -7830,11 +8182,11 @@ void MethodDescriptorProto::clear_client_streaming() { |
client_streaming_ = false; |
clear_has_client_streaming(); |
} |
- bool MethodDescriptorProto::client_streaming() const { |
+bool MethodDescriptorProto::client_streaming() const { |
// @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.client_streaming) |
return client_streaming_; |
} |
- void MethodDescriptorProto::set_client_streaming(bool value) { |
+void MethodDescriptorProto::set_client_streaming(bool value) { |
set_has_client_streaming(); |
client_streaming_ = value; |
// @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.client_streaming) |
@@ -7854,16 +8206,19 @@ void MethodDescriptorProto::clear_server_streaming() { |
server_streaming_ = false; |
clear_has_server_streaming(); |
} |
- bool MethodDescriptorProto::server_streaming() const { |
+bool MethodDescriptorProto::server_streaming() const { |
// @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.server_streaming) |
return server_streaming_; |
} |
- void MethodDescriptorProto::set_server_streaming(bool value) { |
+void MethodDescriptorProto::set_server_streaming(bool value) { |
set_has_server_streaming(); |
server_streaming_ = value; |
// @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.server_streaming) |
} |
+inline const MethodDescriptorProto* MethodDescriptorProto::internal_default_instance() { |
+ return &MethodDescriptorProto_default_instance_.get(); |
+} |
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
// =================================================================== |
@@ -7873,7 +8228,7 @@ const ::google::protobuf::EnumDescriptor* FileOptions_OptimizeMode_descriptor() |
return FileOptions_OptimizeMode_descriptor_; |
} |
bool FileOptions_OptimizeMode_IsValid(int value) { |
- switch(value) { |
+ switch (value) { |
case 1: |
case 2: |
case 3: |
@@ -7911,6 +8266,7 @@ const int FileOptions::kUninterpretedOptionFieldNumber; |
FileOptions::FileOptions() |
: ::google::protobuf::Message(), _internal_metadata_(NULL) { |
+ if (this != internal_default_instance()) protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
SharedCtor(); |
// @@protoc_insertion_point(constructor:google.protobuf.FileOptions) |
} |
@@ -7922,28 +8278,20 @@ FileOptions::FileOptions(const FileOptions& from) |
: ::google::protobuf::Message(), |
_internal_metadata_(NULL) { |
SharedCtor(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
// @@protoc_insertion_point(copy_constructor:google.protobuf.FileOptions) |
} |
void FileOptions::SharedCtor() { |
- ::google::protobuf::internal::GetEmptyString(); |
_cached_size_ = 0; |
java_package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
java_outer_classname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
- java_multiple_files_ = false; |
- java_generate_equals_and_hash_ = false; |
- java_string_check_utf8_ = false; |
- optimize_for_ = 1; |
go_package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
- cc_generic_services_ = false; |
- java_generic_services_ = false; |
- py_generic_services_ = false; |
- deprecated_ = false; |
- cc_enable_arenas_ = false; |
objc_class_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
csharp_namespace_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ ::memset(&java_multiple_files_, 0, reinterpret_cast<char*>(&cc_enable_arenas_) - |
+ reinterpret_cast<char*>(&java_multiple_files_) + sizeof(cc_enable_arenas_)); |
+ optimize_for_ = 1; |
} |
FileOptions::~FileOptions() { |
@@ -7957,8 +8305,6 @@ void FileOptions::SharedDtor() { |
go_package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
objc_class_prefix_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
csharp_namespace_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
- if (this != default_instance_) { |
- } |
} |
void FileOptions::SetCachedSize(int size) const { |
@@ -7972,11 +8318,11 @@ const ::google::protobuf::Descriptor* FileOptions::descriptor() { |
} |
const FileOptions& FileOptions::default_instance() { |
- if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
- return *default_instance_; |
+ protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
+ return *internal_default_instance(); |
} |
-FileOptions* FileOptions::default_instance_ = NULL; |
+::google::protobuf::internal::ExplicitlyConstructed<FileOptions> FileOptions_default_instance_; |
FileOptions* FileOptions::New(::google::protobuf::Arena* arena) const { |
FileOptions* n = new FileOptions; |
@@ -8001,7 +8347,7 @@ void FileOptions::Clear() { |
#endif |
#define ZR_(first, last) do {\ |
- ::memset(&first, 0,\ |
+ ::memset(&(first), 0,\ |
ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ |
} while (0) |
@@ -8032,7 +8378,7 @@ void FileOptions::Clear() { |
#undef ZR_ |
uninterpreted_option_.Clear(); |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ _has_bits_.Clear(); |
if (_internal_metadata_.have_unknown_fields()) { |
mutable_unknown_fields()->Clear(); |
} |
@@ -8105,10 +8451,10 @@ bool FileOptions::MergePartialFromCodedStream( |
case 10: { |
if (tag == 80) { |
parse_java_multiple_files: |
+ set_has_java_multiple_files(); |
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
input, &java_multiple_files_))); |
- set_has_java_multiple_files(); |
} else { |
goto handle_unusual; |
} |
@@ -8137,10 +8483,10 @@ bool FileOptions::MergePartialFromCodedStream( |
case 16: { |
if (tag == 128) { |
parse_cc_generic_services: |
+ set_has_cc_generic_services(); |
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
input, &cc_generic_services_))); |
- set_has_cc_generic_services(); |
} else { |
goto handle_unusual; |
} |
@@ -8152,10 +8498,10 @@ bool FileOptions::MergePartialFromCodedStream( |
case 17: { |
if (tag == 136) { |
parse_java_generic_services: |
+ set_has_java_generic_services(); |
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
input, &java_generic_services_))); |
- set_has_java_generic_services(); |
} else { |
goto handle_unusual; |
} |
@@ -8167,10 +8513,10 @@ bool FileOptions::MergePartialFromCodedStream( |
case 18: { |
if (tag == 144) { |
parse_py_generic_services: |
+ set_has_py_generic_services(); |
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
input, &py_generic_services_))); |
- set_has_py_generic_services(); |
} else { |
goto handle_unusual; |
} |
@@ -8178,14 +8524,14 @@ bool FileOptions::MergePartialFromCodedStream( |
break; |
} |
- // optional bool java_generate_equals_and_hash = 20 [default = false]; |
+ // optional bool java_generate_equals_and_hash = 20 [deprecated = true]; |
case 20: { |
if (tag == 160) { |
parse_java_generate_equals_and_hash: |
+ set_has_java_generate_equals_and_hash(); |
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
input, &java_generate_equals_and_hash_))); |
- set_has_java_generate_equals_and_hash(); |
} else { |
goto handle_unusual; |
} |
@@ -8197,10 +8543,10 @@ bool FileOptions::MergePartialFromCodedStream( |
case 23: { |
if (tag == 184) { |
parse_deprecated: |
+ set_has_deprecated(); |
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
input, &deprecated_))); |
- set_has_deprecated(); |
} else { |
goto handle_unusual; |
} |
@@ -8212,10 +8558,10 @@ bool FileOptions::MergePartialFromCodedStream( |
case 27: { |
if (tag == 216) { |
parse_java_string_check_utf8: |
+ set_has_java_string_check_utf8(); |
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
input, &java_string_check_utf8_))); |
- set_has_java_string_check_utf8(); |
} else { |
goto handle_unusual; |
} |
@@ -8227,10 +8573,10 @@ bool FileOptions::MergePartialFromCodedStream( |
case 31: { |
if (tag == 248) { |
parse_cc_enable_arenas: |
+ set_has_cc_enable_arenas(); |
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
input, &cc_enable_arenas_))); |
- set_has_cc_enable_arenas(); |
} else { |
goto handle_unusual; |
} |
@@ -8297,7 +8643,7 @@ bool FileOptions::MergePartialFromCodedStream( |
goto success; |
} |
if ((8000u <= tag)) { |
- DO_(_extensions_.ParseField(tag, input, default_instance_, |
+ DO_(_extensions_.ParseField(tag, input, internal_default_instance(), |
mutable_unknown_fields())); |
continue; |
} |
@@ -8375,7 +8721,7 @@ void FileOptions::SerializeWithCachedSizes( |
::google::protobuf::internal::WireFormatLite::WriteBool(18, this->py_generic_services(), output); |
} |
- // optional bool java_generate_equals_and_hash = 20 [default = false]; |
+ // optional bool java_generate_equals_and_hash = 20 [deprecated = true]; |
if (has_java_generate_equals_and_hash()) { |
::google::protobuf::internal::WireFormatLite::WriteBool(20, this->java_generate_equals_and_hash(), output); |
} |
@@ -8432,8 +8778,9 @@ void FileOptions::SerializeWithCachedSizes( |
// @@protoc_insertion_point(serialize_end:google.protobuf.FileOptions) |
} |
-::google::protobuf::uint8* FileOptions::SerializeWithCachedSizesToArray( |
- ::google::protobuf::uint8* target) const { |
+::google::protobuf::uint8* FileOptions::InternalSerializeWithCachedSizesToArray( |
+ bool deterministic, ::google::protobuf::uint8* target) const { |
+ (void)deterministic; // Unused |
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileOptions) |
// optional string java_package = 1; |
if (has_java_package()) { |
@@ -8494,7 +8841,7 @@ void FileOptions::SerializeWithCachedSizes( |
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(18, this->py_generic_services(), target); |
} |
- // optional bool java_generate_equals_and_hash = 20 [default = false]; |
+ // optional bool java_generate_equals_and_hash = 20 [deprecated = true]; |
if (has_java_generate_equals_and_hash()) { |
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(20, this->java_generate_equals_and_hash(), target); |
} |
@@ -8539,13 +8886,13 @@ void FileOptions::SerializeWithCachedSizes( |
// repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
target = ::google::protobuf::internal::WireFormatLite:: |
- WriteMessageNoVirtualToArray( |
- 999, this->uninterpreted_option(i), target); |
+ InternalWriteMessageNoVirtualToArray( |
+ 999, this->uninterpreted_option(i), false, target); |
} |
// Extension range [1000, 536870912) |
- target = _extensions_.SerializeWithCachedSizesToArray( |
- 1000, 536870912, target); |
+ target = _extensions_.InternalSerializeWithCachedSizesToArray( |
+ 1000, 536870912, false, target); |
if (_internal_metadata_.have_unknown_fields()) { |
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
@@ -8555,9 +8902,9 @@ void FileOptions::SerializeWithCachedSizes( |
return target; |
} |
-int FileOptions::ByteSize() const { |
+size_t FileOptions::ByteSizeLong() const { |
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.FileOptions) |
- int total_size = 0; |
+ size_t total_size = 0; |
if (_has_bits_[0 / 32] & 255u) { |
// optional string java_package = 1; |
@@ -8579,7 +8926,7 @@ int FileOptions::ByteSize() const { |
total_size += 1 + 1; |
} |
- // optional bool java_generate_equals_and_hash = 20 [default = false]; |
+ // optional bool java_generate_equals_and_hash = 20 [deprecated = true]; |
if (has_java_generate_equals_and_hash()) { |
total_size += 2 + 1; |
} |
@@ -8645,11 +8992,14 @@ int FileOptions::ByteSize() const { |
} |
// repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
- total_size += 2 * this->uninterpreted_option_size(); |
- for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
- total_size += |
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
- this->uninterpreted_option(i)); |
+ { |
+ unsigned int count = this->uninterpreted_option_size(); |
+ total_size += 2UL * count; |
+ for (unsigned int i = 0; i < count; i++) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->uninterpreted_option(i)); |
+ } |
} |
total_size += _extensions_.ByteSize(); |
@@ -8659,8 +9009,9 @@ int FileOptions::ByteSize() const { |
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
unknown_fields()); |
} |
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
- _cached_size_ = total_size; |
+ _cached_size_ = cached_size; |
GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
return total_size; |
} |
@@ -8668,7 +9019,7 @@ int FileOptions::ByteSize() const { |
void FileOptions::MergeFrom(const ::google::protobuf::Message& from) { |
// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FileOptions) |
if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
- const FileOptions* source = |
+ const FileOptions* source = |
::google::protobuf::internal::DynamicCastToGenerated<const FileOptions>( |
&from); |
if (source == NULL) { |
@@ -8676,13 +9027,21 @@ void FileOptions::MergeFrom(const ::google::protobuf::Message& from) { |
::google::protobuf::internal::ReflectionOps::Merge(from, this); |
} else { |
// @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.FileOptions) |
- MergeFrom(*source); |
+ UnsafeMergeFrom(*source); |
} |
} |
void FileOptions::MergeFrom(const FileOptions& from) { |
// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.FileOptions) |
- if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
+ if (GOOGLE_PREDICT_TRUE(&from != this)) { |
+ UnsafeMergeFrom(from); |
+ } else { |
+ MergeFromFail(__LINE__); |
+ } |
+} |
+ |
+void FileOptions::UnsafeMergeFrom(const FileOptions& from) { |
+ GOOGLE_DCHECK(&from != this); |
uninterpreted_option_.MergeFrom(from.uninterpreted_option_); |
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
if (from.has_java_package()) { |
@@ -8737,7 +9096,8 @@ void FileOptions::MergeFrom(const FileOptions& from) { |
} |
_extensions_.MergeFrom(from._extensions_); |
if (from._internal_metadata_.have_unknown_fields()) { |
- mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+ ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( |
+ from.unknown_fields(), &_internal_metadata_); |
} |
} |
@@ -8752,14 +9112,17 @@ void FileOptions::CopyFrom(const FileOptions& from) { |
// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FileOptions) |
if (&from == this) return; |
Clear(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
} |
bool FileOptions::IsInitialized() const { |
if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false; |
- if (!_extensions_.IsInitialized()) return false; return true; |
+ if (!_extensions_.IsInitialized()) { |
+ return false; |
+ } |
+ return true; |
} |
void FileOptions::Swap(FileOptions* other) { |
@@ -8813,37 +9176,37 @@ void FileOptions::clear_java_package() { |
java_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
clear_has_java_package(); |
} |
- const ::std::string& FileOptions::java_package() const { |
+const ::std::string& FileOptions::java_package() const { |
// @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_package) |
return java_package_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void FileOptions::set_java_package(const ::std::string& value) { |
+void FileOptions::set_java_package(const ::std::string& value) { |
set_has_java_package(); |
java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
// @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_package) |
} |
- void FileOptions::set_java_package(const char* value) { |
+void FileOptions::set_java_package(const char* value) { |
set_has_java_package(); |
java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
// @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.java_package) |
} |
- void FileOptions::set_java_package(const char* value, size_t size) { |
+void FileOptions::set_java_package(const char* value, size_t size) { |
set_has_java_package(); |
java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
::std::string(reinterpret_cast<const char*>(value), size)); |
// @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.java_package) |
} |
- ::std::string* FileOptions::mutable_java_package() { |
+::std::string* FileOptions::mutable_java_package() { |
set_has_java_package(); |
// @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_package) |
return java_package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- ::std::string* FileOptions::release_java_package() { |
+::std::string* FileOptions::release_java_package() { |
// @@protoc_insertion_point(field_release:google.protobuf.FileOptions.java_package) |
clear_has_java_package(); |
return java_package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void FileOptions::set_allocated_java_package(::std::string* java_package) { |
+void FileOptions::set_allocated_java_package(::std::string* java_package) { |
if (java_package != NULL) { |
set_has_java_package(); |
} else { |
@@ -8867,37 +9230,37 @@ void FileOptions::clear_java_outer_classname() { |
java_outer_classname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
clear_has_java_outer_classname(); |
} |
- const ::std::string& FileOptions::java_outer_classname() const { |
+const ::std::string& FileOptions::java_outer_classname() const { |
// @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_outer_classname) |
return java_outer_classname_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void FileOptions::set_java_outer_classname(const ::std::string& value) { |
+void FileOptions::set_java_outer_classname(const ::std::string& value) { |
set_has_java_outer_classname(); |
java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
// @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_outer_classname) |
} |
- void FileOptions::set_java_outer_classname(const char* value) { |
+void FileOptions::set_java_outer_classname(const char* value) { |
set_has_java_outer_classname(); |
java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
// @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.java_outer_classname) |
} |
- void FileOptions::set_java_outer_classname(const char* value, size_t size) { |
+void FileOptions::set_java_outer_classname(const char* value, size_t size) { |
set_has_java_outer_classname(); |
java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
::std::string(reinterpret_cast<const char*>(value), size)); |
// @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.java_outer_classname) |
} |
- ::std::string* FileOptions::mutable_java_outer_classname() { |
+::std::string* FileOptions::mutable_java_outer_classname() { |
set_has_java_outer_classname(); |
// @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_outer_classname) |
return java_outer_classname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- ::std::string* FileOptions::release_java_outer_classname() { |
+::std::string* FileOptions::release_java_outer_classname() { |
// @@protoc_insertion_point(field_release:google.protobuf.FileOptions.java_outer_classname) |
clear_has_java_outer_classname(); |
return java_outer_classname_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void FileOptions::set_allocated_java_outer_classname(::std::string* java_outer_classname) { |
+void FileOptions::set_allocated_java_outer_classname(::std::string* java_outer_classname) { |
if (java_outer_classname != NULL) { |
set_has_java_outer_classname(); |
} else { |
@@ -8921,17 +9284,17 @@ void FileOptions::clear_java_multiple_files() { |
java_multiple_files_ = false; |
clear_has_java_multiple_files(); |
} |
- bool FileOptions::java_multiple_files() const { |
+bool FileOptions::java_multiple_files() const { |
// @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_multiple_files) |
return java_multiple_files_; |
} |
- void FileOptions::set_java_multiple_files(bool value) { |
+void FileOptions::set_java_multiple_files(bool value) { |
set_has_java_multiple_files(); |
java_multiple_files_ = value; |
// @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_multiple_files) |
} |
-// optional bool java_generate_equals_and_hash = 20 [default = false]; |
+// optional bool java_generate_equals_and_hash = 20 [deprecated = true]; |
bool FileOptions::has_java_generate_equals_and_hash() const { |
return (_has_bits_[0] & 0x00000008u) != 0; |
} |
@@ -8945,11 +9308,11 @@ void FileOptions::clear_java_generate_equals_and_hash() { |
java_generate_equals_and_hash_ = false; |
clear_has_java_generate_equals_and_hash(); |
} |
- bool FileOptions::java_generate_equals_and_hash() const { |
+bool FileOptions::java_generate_equals_and_hash() const { |
// @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generate_equals_and_hash) |
return java_generate_equals_and_hash_; |
} |
- void FileOptions::set_java_generate_equals_and_hash(bool value) { |
+void FileOptions::set_java_generate_equals_and_hash(bool value) { |
set_has_java_generate_equals_and_hash(); |
java_generate_equals_and_hash_ = value; |
// @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generate_equals_and_hash) |
@@ -8969,11 +9332,11 @@ void FileOptions::clear_java_string_check_utf8() { |
java_string_check_utf8_ = false; |
clear_has_java_string_check_utf8(); |
} |
- bool FileOptions::java_string_check_utf8() const { |
+bool FileOptions::java_string_check_utf8() const { |
// @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_string_check_utf8) |
return java_string_check_utf8_; |
} |
- void FileOptions::set_java_string_check_utf8(bool value) { |
+void FileOptions::set_java_string_check_utf8(bool value) { |
set_has_java_string_check_utf8(); |
java_string_check_utf8_ = value; |
// @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_string_check_utf8) |
@@ -8993,11 +9356,11 @@ void FileOptions::clear_optimize_for() { |
optimize_for_ = 1; |
clear_has_optimize_for(); |
} |
- ::google::protobuf::FileOptions_OptimizeMode FileOptions::optimize_for() const { |
+::google::protobuf::FileOptions_OptimizeMode FileOptions::optimize_for() const { |
// @@protoc_insertion_point(field_get:google.protobuf.FileOptions.optimize_for) |
return static_cast< ::google::protobuf::FileOptions_OptimizeMode >(optimize_for_); |
} |
- void FileOptions::set_optimize_for(::google::protobuf::FileOptions_OptimizeMode value) { |
+void FileOptions::set_optimize_for(::google::protobuf::FileOptions_OptimizeMode value) { |
assert(::google::protobuf::FileOptions_OptimizeMode_IsValid(value)); |
set_has_optimize_for(); |
optimize_for_ = value; |
@@ -9018,37 +9381,37 @@ void FileOptions::clear_go_package() { |
go_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
clear_has_go_package(); |
} |
- const ::std::string& FileOptions::go_package() const { |
+const ::std::string& FileOptions::go_package() const { |
// @@protoc_insertion_point(field_get:google.protobuf.FileOptions.go_package) |
return go_package_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void FileOptions::set_go_package(const ::std::string& value) { |
+void FileOptions::set_go_package(const ::std::string& value) { |
set_has_go_package(); |
go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
// @@protoc_insertion_point(field_set:google.protobuf.FileOptions.go_package) |
} |
- void FileOptions::set_go_package(const char* value) { |
+void FileOptions::set_go_package(const char* value) { |
set_has_go_package(); |
go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
// @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.go_package) |
} |
- void FileOptions::set_go_package(const char* value, size_t size) { |
+void FileOptions::set_go_package(const char* value, size_t size) { |
set_has_go_package(); |
go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
::std::string(reinterpret_cast<const char*>(value), size)); |
// @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.go_package) |
} |
- ::std::string* FileOptions::mutable_go_package() { |
+::std::string* FileOptions::mutable_go_package() { |
set_has_go_package(); |
// @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.go_package) |
return go_package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- ::std::string* FileOptions::release_go_package() { |
+::std::string* FileOptions::release_go_package() { |
// @@protoc_insertion_point(field_release:google.protobuf.FileOptions.go_package) |
clear_has_go_package(); |
return go_package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void FileOptions::set_allocated_go_package(::std::string* go_package) { |
+void FileOptions::set_allocated_go_package(::std::string* go_package) { |
if (go_package != NULL) { |
set_has_go_package(); |
} else { |
@@ -9072,11 +9435,11 @@ void FileOptions::clear_cc_generic_services() { |
cc_generic_services_ = false; |
clear_has_cc_generic_services(); |
} |
- bool FileOptions::cc_generic_services() const { |
+bool FileOptions::cc_generic_services() const { |
// @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_generic_services) |
return cc_generic_services_; |
} |
- void FileOptions::set_cc_generic_services(bool value) { |
+void FileOptions::set_cc_generic_services(bool value) { |
set_has_cc_generic_services(); |
cc_generic_services_ = value; |
// @@protoc_insertion_point(field_set:google.protobuf.FileOptions.cc_generic_services) |
@@ -9096,11 +9459,11 @@ void FileOptions::clear_java_generic_services() { |
java_generic_services_ = false; |
clear_has_java_generic_services(); |
} |
- bool FileOptions::java_generic_services() const { |
+bool FileOptions::java_generic_services() const { |
// @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generic_services) |
return java_generic_services_; |
} |
- void FileOptions::set_java_generic_services(bool value) { |
+void FileOptions::set_java_generic_services(bool value) { |
set_has_java_generic_services(); |
java_generic_services_ = value; |
// @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generic_services) |
@@ -9120,11 +9483,11 @@ void FileOptions::clear_py_generic_services() { |
py_generic_services_ = false; |
clear_has_py_generic_services(); |
} |
- bool FileOptions::py_generic_services() const { |
+bool FileOptions::py_generic_services() const { |
// @@protoc_insertion_point(field_get:google.protobuf.FileOptions.py_generic_services) |
return py_generic_services_; |
} |
- void FileOptions::set_py_generic_services(bool value) { |
+void FileOptions::set_py_generic_services(bool value) { |
set_has_py_generic_services(); |
py_generic_services_ = value; |
// @@protoc_insertion_point(field_set:google.protobuf.FileOptions.py_generic_services) |
@@ -9144,11 +9507,11 @@ void FileOptions::clear_deprecated() { |
deprecated_ = false; |
clear_has_deprecated(); |
} |
- bool FileOptions::deprecated() const { |
+bool FileOptions::deprecated() const { |
// @@protoc_insertion_point(field_get:google.protobuf.FileOptions.deprecated) |
return deprecated_; |
} |
- void FileOptions::set_deprecated(bool value) { |
+void FileOptions::set_deprecated(bool value) { |
set_has_deprecated(); |
deprecated_ = value; |
// @@protoc_insertion_point(field_set:google.protobuf.FileOptions.deprecated) |
@@ -9168,11 +9531,11 @@ void FileOptions::clear_cc_enable_arenas() { |
cc_enable_arenas_ = false; |
clear_has_cc_enable_arenas(); |
} |
- bool FileOptions::cc_enable_arenas() const { |
+bool FileOptions::cc_enable_arenas() const { |
// @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_enable_arenas) |
return cc_enable_arenas_; |
} |
- void FileOptions::set_cc_enable_arenas(bool value) { |
+void FileOptions::set_cc_enable_arenas(bool value) { |
set_has_cc_enable_arenas(); |
cc_enable_arenas_ = value; |
// @@protoc_insertion_point(field_set:google.protobuf.FileOptions.cc_enable_arenas) |
@@ -9192,37 +9555,37 @@ void FileOptions::clear_objc_class_prefix() { |
objc_class_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
clear_has_objc_class_prefix(); |
} |
- const ::std::string& FileOptions::objc_class_prefix() const { |
+const ::std::string& FileOptions::objc_class_prefix() const { |
// @@protoc_insertion_point(field_get:google.protobuf.FileOptions.objc_class_prefix) |
return objc_class_prefix_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void FileOptions::set_objc_class_prefix(const ::std::string& value) { |
+void FileOptions::set_objc_class_prefix(const ::std::string& value) { |
set_has_objc_class_prefix(); |
objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
// @@protoc_insertion_point(field_set:google.protobuf.FileOptions.objc_class_prefix) |
} |
- void FileOptions::set_objc_class_prefix(const char* value) { |
+void FileOptions::set_objc_class_prefix(const char* value) { |
set_has_objc_class_prefix(); |
objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
// @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.objc_class_prefix) |
} |
- void FileOptions::set_objc_class_prefix(const char* value, size_t size) { |
+void FileOptions::set_objc_class_prefix(const char* value, size_t size) { |
set_has_objc_class_prefix(); |
objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
::std::string(reinterpret_cast<const char*>(value), size)); |
// @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.objc_class_prefix) |
} |
- ::std::string* FileOptions::mutable_objc_class_prefix() { |
+::std::string* FileOptions::mutable_objc_class_prefix() { |
set_has_objc_class_prefix(); |
// @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.objc_class_prefix) |
return objc_class_prefix_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- ::std::string* FileOptions::release_objc_class_prefix() { |
+::std::string* FileOptions::release_objc_class_prefix() { |
// @@protoc_insertion_point(field_release:google.protobuf.FileOptions.objc_class_prefix) |
clear_has_objc_class_prefix(); |
return objc_class_prefix_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void FileOptions::set_allocated_objc_class_prefix(::std::string* objc_class_prefix) { |
+void FileOptions::set_allocated_objc_class_prefix(::std::string* objc_class_prefix) { |
if (objc_class_prefix != NULL) { |
set_has_objc_class_prefix(); |
} else { |
@@ -9246,37 +9609,37 @@ void FileOptions::clear_csharp_namespace() { |
csharp_namespace_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
clear_has_csharp_namespace(); |
} |
- const ::std::string& FileOptions::csharp_namespace() const { |
+const ::std::string& FileOptions::csharp_namespace() const { |
// @@protoc_insertion_point(field_get:google.protobuf.FileOptions.csharp_namespace) |
return csharp_namespace_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void FileOptions::set_csharp_namespace(const ::std::string& value) { |
+void FileOptions::set_csharp_namespace(const ::std::string& value) { |
set_has_csharp_namespace(); |
csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
// @@protoc_insertion_point(field_set:google.protobuf.FileOptions.csharp_namespace) |
} |
- void FileOptions::set_csharp_namespace(const char* value) { |
+void FileOptions::set_csharp_namespace(const char* value) { |
set_has_csharp_namespace(); |
csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
// @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.csharp_namespace) |
} |
- void FileOptions::set_csharp_namespace(const char* value, size_t size) { |
+void FileOptions::set_csharp_namespace(const char* value, size_t size) { |
set_has_csharp_namespace(); |
csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
::std::string(reinterpret_cast<const char*>(value), size)); |
// @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.csharp_namespace) |
} |
- ::std::string* FileOptions::mutable_csharp_namespace() { |
+::std::string* FileOptions::mutable_csharp_namespace() { |
set_has_csharp_namespace(); |
// @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.csharp_namespace) |
return csharp_namespace_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- ::std::string* FileOptions::release_csharp_namespace() { |
+::std::string* FileOptions::release_csharp_namespace() { |
// @@protoc_insertion_point(field_release:google.protobuf.FileOptions.csharp_namespace) |
clear_has_csharp_namespace(); |
return csharp_namespace_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void FileOptions::set_allocated_csharp_namespace(::std::string* csharp_namespace) { |
+void FileOptions::set_allocated_csharp_namespace(::std::string* csharp_namespace) { |
if (csharp_namespace != NULL) { |
set_has_csharp_namespace(); |
} else { |
@@ -9316,6 +9679,9 @@ FileOptions::uninterpreted_option() const { |
return uninterpreted_option_; |
} |
+inline const FileOptions* FileOptions::internal_default_instance() { |
+ return &FileOptions_default_instance_.get(); |
+} |
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
// =================================================================== |
@@ -9330,6 +9696,7 @@ const int MessageOptions::kUninterpretedOptionFieldNumber; |
MessageOptions::MessageOptions() |
: ::google::protobuf::Message(), _internal_metadata_(NULL) { |
+ if (this != internal_default_instance()) protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
SharedCtor(); |
// @@protoc_insertion_point(constructor:google.protobuf.MessageOptions) |
} |
@@ -9341,17 +9708,14 @@ MessageOptions::MessageOptions(const MessageOptions& from) |
: ::google::protobuf::Message(), |
_internal_metadata_(NULL) { |
SharedCtor(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
// @@protoc_insertion_point(copy_constructor:google.protobuf.MessageOptions) |
} |
void MessageOptions::SharedCtor() { |
_cached_size_ = 0; |
- message_set_wire_format_ = false; |
- no_standard_descriptor_accessor_ = false; |
- deprecated_ = false; |
- map_entry_ = false; |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ ::memset(&message_set_wire_format_, 0, reinterpret_cast<char*>(&map_entry_) - |
+ reinterpret_cast<char*>(&message_set_wire_format_) + sizeof(map_entry_)); |
} |
MessageOptions::~MessageOptions() { |
@@ -9360,8 +9724,6 @@ MessageOptions::~MessageOptions() { |
} |
void MessageOptions::SharedDtor() { |
- if (this != default_instance_) { |
- } |
} |
void MessageOptions::SetCachedSize(int size) const { |
@@ -9375,11 +9737,11 @@ const ::google::protobuf::Descriptor* MessageOptions::descriptor() { |
} |
const MessageOptions& MessageOptions::default_instance() { |
- if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
- return *default_instance_; |
+ protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
+ return *internal_default_instance(); |
} |
-MessageOptions* MessageOptions::default_instance_ = NULL; |
+::google::protobuf::internal::ExplicitlyConstructed<MessageOptions> MessageOptions_default_instance_; |
MessageOptions* MessageOptions::New(::google::protobuf::Arena* arena) const { |
MessageOptions* n = new MessageOptions; |
@@ -9404,7 +9766,7 @@ void MessageOptions::Clear() { |
#endif |
#define ZR_(first, last) do {\ |
- ::memset(&first, 0,\ |
+ ::memset(&(first), 0,\ |
ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ |
} while (0) |
@@ -9414,7 +9776,7 @@ void MessageOptions::Clear() { |
#undef ZR_ |
uninterpreted_option_.Clear(); |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ _has_bits_.Clear(); |
if (_internal_metadata_.have_unknown_fields()) { |
mutable_unknown_fields()->Clear(); |
} |
@@ -9433,10 +9795,10 @@ bool MessageOptions::MergePartialFromCodedStream( |
// optional bool message_set_wire_format = 1 [default = false]; |
case 1: { |
if (tag == 8) { |
+ set_has_message_set_wire_format(); |
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
input, &message_set_wire_format_))); |
- set_has_message_set_wire_format(); |
} else { |
goto handle_unusual; |
} |
@@ -9448,10 +9810,10 @@ bool MessageOptions::MergePartialFromCodedStream( |
case 2: { |
if (tag == 16) { |
parse_no_standard_descriptor_accessor: |
+ set_has_no_standard_descriptor_accessor(); |
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
input, &no_standard_descriptor_accessor_))); |
- set_has_no_standard_descriptor_accessor(); |
} else { |
goto handle_unusual; |
} |
@@ -9463,10 +9825,10 @@ bool MessageOptions::MergePartialFromCodedStream( |
case 3: { |
if (tag == 24) { |
parse_deprecated: |
+ set_has_deprecated(); |
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
input, &deprecated_))); |
- set_has_deprecated(); |
} else { |
goto handle_unusual; |
} |
@@ -9478,10 +9840,10 @@ bool MessageOptions::MergePartialFromCodedStream( |
case 7: { |
if (tag == 56) { |
parse_map_entry: |
+ set_has_map_entry(); |
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
input, &map_entry_))); |
- set_has_map_entry(); |
} else { |
goto handle_unusual; |
} |
@@ -9514,7 +9876,7 @@ bool MessageOptions::MergePartialFromCodedStream( |
goto success; |
} |
if ((8000u <= tag)) { |
- DO_(_extensions_.ParseField(tag, input, default_instance_, |
+ DO_(_extensions_.ParseField(tag, input, internal_default_instance(), |
mutable_unknown_fields())); |
continue; |
} |
@@ -9573,8 +9935,9 @@ void MessageOptions::SerializeWithCachedSizes( |
// @@protoc_insertion_point(serialize_end:google.protobuf.MessageOptions) |
} |
-::google::protobuf::uint8* MessageOptions::SerializeWithCachedSizesToArray( |
- ::google::protobuf::uint8* target) const { |
+::google::protobuf::uint8* MessageOptions::InternalSerializeWithCachedSizesToArray( |
+ bool deterministic, ::google::protobuf::uint8* target) const { |
+ (void)deterministic; // Unused |
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MessageOptions) |
// optional bool message_set_wire_format = 1 [default = false]; |
if (has_message_set_wire_format()) { |
@@ -9599,13 +9962,13 @@ void MessageOptions::SerializeWithCachedSizes( |
// repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
target = ::google::protobuf::internal::WireFormatLite:: |
- WriteMessageNoVirtualToArray( |
- 999, this->uninterpreted_option(i), target); |
+ InternalWriteMessageNoVirtualToArray( |
+ 999, this->uninterpreted_option(i), false, target); |
} |
// Extension range [1000, 536870912) |
- target = _extensions_.SerializeWithCachedSizesToArray( |
- 1000, 536870912, target); |
+ target = _extensions_.InternalSerializeWithCachedSizesToArray( |
+ 1000, 536870912, false, target); |
if (_internal_metadata_.have_unknown_fields()) { |
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
@@ -9615,9 +9978,9 @@ void MessageOptions::SerializeWithCachedSizes( |
return target; |
} |
-int MessageOptions::ByteSize() const { |
+size_t MessageOptions::ByteSizeLong() const { |
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.MessageOptions) |
- int total_size = 0; |
+ size_t total_size = 0; |
if (_has_bits_[0 / 32] & 15u) { |
// optional bool message_set_wire_format = 1 [default = false]; |
@@ -9642,11 +10005,14 @@ int MessageOptions::ByteSize() const { |
} |
// repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
- total_size += 2 * this->uninterpreted_option_size(); |
- for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
- total_size += |
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
- this->uninterpreted_option(i)); |
+ { |
+ unsigned int count = this->uninterpreted_option_size(); |
+ total_size += 2UL * count; |
+ for (unsigned int i = 0; i < count; i++) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->uninterpreted_option(i)); |
+ } |
} |
total_size += _extensions_.ByteSize(); |
@@ -9656,8 +10022,9 @@ int MessageOptions::ByteSize() const { |
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
unknown_fields()); |
} |
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
- _cached_size_ = total_size; |
+ _cached_size_ = cached_size; |
GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
return total_size; |
} |
@@ -9665,7 +10032,7 @@ int MessageOptions::ByteSize() const { |
void MessageOptions::MergeFrom(const ::google::protobuf::Message& from) { |
// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.MessageOptions) |
if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
- const MessageOptions* source = |
+ const MessageOptions* source = |
::google::protobuf::internal::DynamicCastToGenerated<const MessageOptions>( |
&from); |
if (source == NULL) { |
@@ -9673,13 +10040,21 @@ void MessageOptions::MergeFrom(const ::google::protobuf::Message& from) { |
::google::protobuf::internal::ReflectionOps::Merge(from, this); |
} else { |
// @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.MessageOptions) |
- MergeFrom(*source); |
+ UnsafeMergeFrom(*source); |
} |
} |
void MessageOptions::MergeFrom(const MessageOptions& from) { |
// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.MessageOptions) |
- if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
+ if (GOOGLE_PREDICT_TRUE(&from != this)) { |
+ UnsafeMergeFrom(from); |
+ } else { |
+ MergeFromFail(__LINE__); |
+ } |
+} |
+ |
+void MessageOptions::UnsafeMergeFrom(const MessageOptions& from) { |
+ GOOGLE_DCHECK(&from != this); |
uninterpreted_option_.MergeFrom(from.uninterpreted_option_); |
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
if (from.has_message_set_wire_format()) { |
@@ -9697,7 +10072,8 @@ void MessageOptions::MergeFrom(const MessageOptions& from) { |
} |
_extensions_.MergeFrom(from._extensions_); |
if (from._internal_metadata_.have_unknown_fields()) { |
- mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+ ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( |
+ from.unknown_fields(), &_internal_metadata_); |
} |
} |
@@ -9712,14 +10088,17 @@ void MessageOptions::CopyFrom(const MessageOptions& from) { |
// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.MessageOptions) |
if (&from == this) return; |
Clear(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
} |
bool MessageOptions::IsInitialized() const { |
if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false; |
- if (!_extensions_.IsInitialized()) return false; return true; |
+ if (!_extensions_.IsInitialized()) { |
+ return false; |
+ } |
+ return true; |
} |
void MessageOptions::Swap(MessageOptions* other) { |
@@ -9763,11 +10142,11 @@ void MessageOptions::clear_message_set_wire_format() { |
message_set_wire_format_ = false; |
clear_has_message_set_wire_format(); |
} |
- bool MessageOptions::message_set_wire_format() const { |
+bool MessageOptions::message_set_wire_format() const { |
// @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.message_set_wire_format) |
return message_set_wire_format_; |
} |
- void MessageOptions::set_message_set_wire_format(bool value) { |
+void MessageOptions::set_message_set_wire_format(bool value) { |
set_has_message_set_wire_format(); |
message_set_wire_format_ = value; |
// @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.message_set_wire_format) |
@@ -9787,11 +10166,11 @@ void MessageOptions::clear_no_standard_descriptor_accessor() { |
no_standard_descriptor_accessor_ = false; |
clear_has_no_standard_descriptor_accessor(); |
} |
- bool MessageOptions::no_standard_descriptor_accessor() const { |
+bool MessageOptions::no_standard_descriptor_accessor() const { |
// @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.no_standard_descriptor_accessor) |
return no_standard_descriptor_accessor_; |
} |
- void MessageOptions::set_no_standard_descriptor_accessor(bool value) { |
+void MessageOptions::set_no_standard_descriptor_accessor(bool value) { |
set_has_no_standard_descriptor_accessor(); |
no_standard_descriptor_accessor_ = value; |
// @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.no_standard_descriptor_accessor) |
@@ -9811,11 +10190,11 @@ void MessageOptions::clear_deprecated() { |
deprecated_ = false; |
clear_has_deprecated(); |
} |
- bool MessageOptions::deprecated() const { |
+bool MessageOptions::deprecated() const { |
// @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.deprecated) |
return deprecated_; |
} |
- void MessageOptions::set_deprecated(bool value) { |
+void MessageOptions::set_deprecated(bool value) { |
set_has_deprecated(); |
deprecated_ = value; |
// @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.deprecated) |
@@ -9835,11 +10214,11 @@ void MessageOptions::clear_map_entry() { |
map_entry_ = false; |
clear_has_map_entry(); |
} |
- bool MessageOptions::map_entry() const { |
+bool MessageOptions::map_entry() const { |
// @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.map_entry) |
return map_entry_; |
} |
- void MessageOptions::set_map_entry(bool value) { |
+void MessageOptions::set_map_entry(bool value) { |
set_has_map_entry(); |
map_entry_ = value; |
// @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.map_entry) |
@@ -9875,6 +10254,9 @@ MessageOptions::uninterpreted_option() const { |
return uninterpreted_option_; |
} |
+inline const MessageOptions* MessageOptions::internal_default_instance() { |
+ return &MessageOptions_default_instance_.get(); |
+} |
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
// =================================================================== |
@@ -9884,7 +10266,7 @@ const ::google::protobuf::EnumDescriptor* FieldOptions_CType_descriptor() { |
return FieldOptions_CType_descriptor_; |
} |
bool FieldOptions_CType_IsValid(int value) { |
- switch(value) { |
+ switch (value) { |
case 0: |
case 1: |
case 2: |
@@ -9907,7 +10289,7 @@ const ::google::protobuf::EnumDescriptor* FieldOptions_JSType_descriptor() { |
return FieldOptions_JSType_descriptor_; |
} |
bool FieldOptions_JSType_IsValid(int value) { |
- switch(value) { |
+ switch (value) { |
case 0: |
case 1: |
case 2: |
@@ -9937,6 +10319,7 @@ const int FieldOptions::kUninterpretedOptionFieldNumber; |
FieldOptions::FieldOptions() |
: ::google::protobuf::Message(), _internal_metadata_(NULL) { |
+ if (this != internal_default_instance()) protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
SharedCtor(); |
// @@protoc_insertion_point(constructor:google.protobuf.FieldOptions) |
} |
@@ -9948,19 +10331,14 @@ FieldOptions::FieldOptions(const FieldOptions& from) |
: ::google::protobuf::Message(), |
_internal_metadata_(NULL) { |
SharedCtor(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
// @@protoc_insertion_point(copy_constructor:google.protobuf.FieldOptions) |
} |
void FieldOptions::SharedCtor() { |
_cached_size_ = 0; |
- ctype_ = 0; |
- packed_ = false; |
- jstype_ = 0; |
- lazy_ = false; |
- deprecated_ = false; |
- weak_ = false; |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ ::memset(&ctype_, 0, reinterpret_cast<char*>(&weak_) - |
+ reinterpret_cast<char*>(&ctype_) + sizeof(weak_)); |
} |
FieldOptions::~FieldOptions() { |
@@ -9969,8 +10347,6 @@ FieldOptions::~FieldOptions() { |
} |
void FieldOptions::SharedDtor() { |
- if (this != default_instance_) { |
- } |
} |
void FieldOptions::SetCachedSize(int size) const { |
@@ -9984,11 +10360,11 @@ const ::google::protobuf::Descriptor* FieldOptions::descriptor() { |
} |
const FieldOptions& FieldOptions::default_instance() { |
- if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
- return *default_instance_; |
+ protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
+ return *internal_default_instance(); |
} |
-FieldOptions* FieldOptions::default_instance_ = NULL; |
+::google::protobuf::internal::ExplicitlyConstructed<FieldOptions> FieldOptions_default_instance_; |
FieldOptions* FieldOptions::New(::google::protobuf::Arena* arena) const { |
FieldOptions* n = new FieldOptions; |
@@ -10013,20 +10389,17 @@ void FieldOptions::Clear() { |
#endif |
#define ZR_(first, last) do {\ |
- ::memset(&first, 0,\ |
+ ::memset(&(first), 0,\ |
ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ |
} while (0) |
- if (_has_bits_[0 / 32] & 63u) { |
- ZR_(ctype_, jstype_); |
- ZR_(packed_, weak_); |
- } |
+ ZR_(ctype_, weak_); |
#undef ZR_HELPER_ |
#undef ZR_ |
uninterpreted_option_.Clear(); |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ _has_bits_.Clear(); |
if (_internal_metadata_.have_unknown_fields()) { |
mutable_unknown_fields()->Clear(); |
} |
@@ -10065,10 +10438,10 @@ bool FieldOptions::MergePartialFromCodedStream( |
case 2: { |
if (tag == 16) { |
parse_packed: |
+ set_has_packed(); |
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
input, &packed_))); |
- set_has_packed(); |
} else { |
goto handle_unusual; |
} |
@@ -10080,10 +10453,10 @@ bool FieldOptions::MergePartialFromCodedStream( |
case 3: { |
if (tag == 24) { |
parse_deprecated: |
+ set_has_deprecated(); |
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
input, &deprecated_))); |
- set_has_deprecated(); |
} else { |
goto handle_unusual; |
} |
@@ -10095,10 +10468,10 @@ bool FieldOptions::MergePartialFromCodedStream( |
case 5: { |
if (tag == 40) { |
parse_lazy: |
+ set_has_lazy(); |
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
input, &lazy_))); |
- set_has_lazy(); |
} else { |
goto handle_unusual; |
} |
@@ -10130,10 +10503,10 @@ bool FieldOptions::MergePartialFromCodedStream( |
case 10: { |
if (tag == 80) { |
parse_weak: |
+ set_has_weak(); |
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
input, &weak_))); |
- set_has_weak(); |
} else { |
goto handle_unusual; |
} |
@@ -10166,7 +10539,7 @@ bool FieldOptions::MergePartialFromCodedStream( |
goto success; |
} |
if ((8000u <= tag)) { |
- DO_(_extensions_.ParseField(tag, input, default_instance_, |
+ DO_(_extensions_.ParseField(tag, input, internal_default_instance(), |
mutable_unknown_fields())); |
continue; |
} |
@@ -10237,8 +10610,9 @@ void FieldOptions::SerializeWithCachedSizes( |
// @@protoc_insertion_point(serialize_end:google.protobuf.FieldOptions) |
} |
-::google::protobuf::uint8* FieldOptions::SerializeWithCachedSizesToArray( |
- ::google::protobuf::uint8* target) const { |
+::google::protobuf::uint8* FieldOptions::InternalSerializeWithCachedSizesToArray( |
+ bool deterministic, ::google::protobuf::uint8* target) const { |
+ (void)deterministic; // Unused |
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldOptions) |
// optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; |
if (has_ctype()) { |
@@ -10275,13 +10649,13 @@ void FieldOptions::SerializeWithCachedSizes( |
// repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
target = ::google::protobuf::internal::WireFormatLite:: |
- WriteMessageNoVirtualToArray( |
- 999, this->uninterpreted_option(i), target); |
+ InternalWriteMessageNoVirtualToArray( |
+ 999, this->uninterpreted_option(i), false, target); |
} |
// Extension range [1000, 536870912) |
- target = _extensions_.SerializeWithCachedSizesToArray( |
- 1000, 536870912, target); |
+ target = _extensions_.InternalSerializeWithCachedSizesToArray( |
+ 1000, 536870912, false, target); |
if (_internal_metadata_.have_unknown_fields()) { |
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
@@ -10291,9 +10665,9 @@ void FieldOptions::SerializeWithCachedSizes( |
return target; |
} |
-int FieldOptions::ByteSize() const { |
+size_t FieldOptions::ByteSizeLong() const { |
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.FieldOptions) |
- int total_size = 0; |
+ size_t total_size = 0; |
if (_has_bits_[0 / 32] & 63u) { |
// optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; |
@@ -10330,11 +10704,14 @@ int FieldOptions::ByteSize() const { |
} |
// repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
- total_size += 2 * this->uninterpreted_option_size(); |
- for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
- total_size += |
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
- this->uninterpreted_option(i)); |
+ { |
+ unsigned int count = this->uninterpreted_option_size(); |
+ total_size += 2UL * count; |
+ for (unsigned int i = 0; i < count; i++) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->uninterpreted_option(i)); |
+ } |
} |
total_size += _extensions_.ByteSize(); |
@@ -10344,8 +10721,9 @@ int FieldOptions::ByteSize() const { |
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
unknown_fields()); |
} |
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
- _cached_size_ = total_size; |
+ _cached_size_ = cached_size; |
GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
return total_size; |
} |
@@ -10353,7 +10731,7 @@ int FieldOptions::ByteSize() const { |
void FieldOptions::MergeFrom(const ::google::protobuf::Message& from) { |
// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FieldOptions) |
if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
- const FieldOptions* source = |
+ const FieldOptions* source = |
::google::protobuf::internal::DynamicCastToGenerated<const FieldOptions>( |
&from); |
if (source == NULL) { |
@@ -10361,13 +10739,21 @@ void FieldOptions::MergeFrom(const ::google::protobuf::Message& from) { |
::google::protobuf::internal::ReflectionOps::Merge(from, this); |
} else { |
// @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.FieldOptions) |
- MergeFrom(*source); |
+ UnsafeMergeFrom(*source); |
} |
} |
void FieldOptions::MergeFrom(const FieldOptions& from) { |
// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.FieldOptions) |
- if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
+ if (GOOGLE_PREDICT_TRUE(&from != this)) { |
+ UnsafeMergeFrom(from); |
+ } else { |
+ MergeFromFail(__LINE__); |
+ } |
+} |
+ |
+void FieldOptions::UnsafeMergeFrom(const FieldOptions& from) { |
+ GOOGLE_DCHECK(&from != this); |
uninterpreted_option_.MergeFrom(from.uninterpreted_option_); |
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
if (from.has_ctype()) { |
@@ -10391,7 +10777,8 @@ void FieldOptions::MergeFrom(const FieldOptions& from) { |
} |
_extensions_.MergeFrom(from._extensions_); |
if (from._internal_metadata_.have_unknown_fields()) { |
- mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+ ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( |
+ from.unknown_fields(), &_internal_metadata_); |
} |
} |
@@ -10406,14 +10793,17 @@ void FieldOptions::CopyFrom(const FieldOptions& from) { |
// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FieldOptions) |
if (&from == this) return; |
Clear(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
} |
bool FieldOptions::IsInitialized() const { |
if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false; |
- if (!_extensions_.IsInitialized()) return false; return true; |
+ if (!_extensions_.IsInitialized()) { |
+ return false; |
+ } |
+ return true; |
} |
void FieldOptions::Swap(FieldOptions* other) { |
@@ -10459,11 +10849,11 @@ void FieldOptions::clear_ctype() { |
ctype_ = 0; |
clear_has_ctype(); |
} |
- ::google::protobuf::FieldOptions_CType FieldOptions::ctype() const { |
+::google::protobuf::FieldOptions_CType FieldOptions::ctype() const { |
// @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.ctype) |
return static_cast< ::google::protobuf::FieldOptions_CType >(ctype_); |
} |
- void FieldOptions::set_ctype(::google::protobuf::FieldOptions_CType value) { |
+void FieldOptions::set_ctype(::google::protobuf::FieldOptions_CType value) { |
assert(::google::protobuf::FieldOptions_CType_IsValid(value)); |
set_has_ctype(); |
ctype_ = value; |
@@ -10484,11 +10874,11 @@ void FieldOptions::clear_packed() { |
packed_ = false; |
clear_has_packed(); |
} |
- bool FieldOptions::packed() const { |
+bool FieldOptions::packed() const { |
// @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.packed) |
return packed_; |
} |
- void FieldOptions::set_packed(bool value) { |
+void FieldOptions::set_packed(bool value) { |
set_has_packed(); |
packed_ = value; |
// @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.packed) |
@@ -10508,11 +10898,11 @@ void FieldOptions::clear_jstype() { |
jstype_ = 0; |
clear_has_jstype(); |
} |
- ::google::protobuf::FieldOptions_JSType FieldOptions::jstype() const { |
+::google::protobuf::FieldOptions_JSType FieldOptions::jstype() const { |
// @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.jstype) |
return static_cast< ::google::protobuf::FieldOptions_JSType >(jstype_); |
} |
- void FieldOptions::set_jstype(::google::protobuf::FieldOptions_JSType value) { |
+void FieldOptions::set_jstype(::google::protobuf::FieldOptions_JSType value) { |
assert(::google::protobuf::FieldOptions_JSType_IsValid(value)); |
set_has_jstype(); |
jstype_ = value; |
@@ -10533,11 +10923,11 @@ void FieldOptions::clear_lazy() { |
lazy_ = false; |
clear_has_lazy(); |
} |
- bool FieldOptions::lazy() const { |
+bool FieldOptions::lazy() const { |
// @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.lazy) |
return lazy_; |
} |
- void FieldOptions::set_lazy(bool value) { |
+void FieldOptions::set_lazy(bool value) { |
set_has_lazy(); |
lazy_ = value; |
// @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.lazy) |
@@ -10557,11 +10947,11 @@ void FieldOptions::clear_deprecated() { |
deprecated_ = false; |
clear_has_deprecated(); |
} |
- bool FieldOptions::deprecated() const { |
+bool FieldOptions::deprecated() const { |
// @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.deprecated) |
return deprecated_; |
} |
- void FieldOptions::set_deprecated(bool value) { |
+void FieldOptions::set_deprecated(bool value) { |
set_has_deprecated(); |
deprecated_ = value; |
// @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.deprecated) |
@@ -10581,11 +10971,11 @@ void FieldOptions::clear_weak() { |
weak_ = false; |
clear_has_weak(); |
} |
- bool FieldOptions::weak() const { |
+bool FieldOptions::weak() const { |
// @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.weak) |
return weak_; |
} |
- void FieldOptions::set_weak(bool value) { |
+void FieldOptions::set_weak(bool value) { |
set_has_weak(); |
weak_ = value; |
// @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.weak) |
@@ -10621,126 +11011,439 @@ FieldOptions::uninterpreted_option() const { |
return uninterpreted_option_; |
} |
+inline const FieldOptions* FieldOptions::internal_default_instance() { |
+ return &FieldOptions_default_instance_.get(); |
+} |
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
// =================================================================== |
#if !defined(_MSC_VER) || _MSC_VER >= 1900 |
-const int EnumOptions::kAllowAliasFieldNumber; |
-const int EnumOptions::kDeprecatedFieldNumber; |
-const int EnumOptions::kUninterpretedOptionFieldNumber; |
+const int OneofOptions::kUninterpretedOptionFieldNumber; |
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
-EnumOptions::EnumOptions() |
+OneofOptions::OneofOptions() |
: ::google::protobuf::Message(), _internal_metadata_(NULL) { |
+ if (this != internal_default_instance()) protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
SharedCtor(); |
- // @@protoc_insertion_point(constructor:google.protobuf.EnumOptions) |
+ // @@protoc_insertion_point(constructor:google.protobuf.OneofOptions) |
} |
-void EnumOptions::InitAsDefaultInstance() { |
+void OneofOptions::InitAsDefaultInstance() { |
} |
-EnumOptions::EnumOptions(const EnumOptions& from) |
+OneofOptions::OneofOptions(const OneofOptions& from) |
: ::google::protobuf::Message(), |
_internal_metadata_(NULL) { |
SharedCtor(); |
- MergeFrom(from); |
- // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumOptions) |
+ UnsafeMergeFrom(from); |
+ // @@protoc_insertion_point(copy_constructor:google.protobuf.OneofOptions) |
} |
-void EnumOptions::SharedCtor() { |
+void OneofOptions::SharedCtor() { |
_cached_size_ = 0; |
- allow_alias_ = false; |
- deprecated_ = false; |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
} |
-EnumOptions::~EnumOptions() { |
- // @@protoc_insertion_point(destructor:google.protobuf.EnumOptions) |
+OneofOptions::~OneofOptions() { |
+ // @@protoc_insertion_point(destructor:google.protobuf.OneofOptions) |
SharedDtor(); |
} |
-void EnumOptions::SharedDtor() { |
- if (this != default_instance_) { |
- } |
+void OneofOptions::SharedDtor() { |
} |
-void EnumOptions::SetCachedSize(int size) const { |
+void OneofOptions::SetCachedSize(int size) const { |
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
_cached_size_ = size; |
GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
} |
-const ::google::protobuf::Descriptor* EnumOptions::descriptor() { |
+const ::google::protobuf::Descriptor* OneofOptions::descriptor() { |
protobuf_AssignDescriptorsOnce(); |
- return EnumOptions_descriptor_; |
+ return OneofOptions_descriptor_; |
} |
-const EnumOptions& EnumOptions::default_instance() { |
- if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
- return *default_instance_; |
+const OneofOptions& OneofOptions::default_instance() { |
+ protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
+ return *internal_default_instance(); |
} |
-EnumOptions* EnumOptions::default_instance_ = NULL; |
+::google::protobuf::internal::ExplicitlyConstructed<OneofOptions> OneofOptions_default_instance_; |
-EnumOptions* EnumOptions::New(::google::protobuf::Arena* arena) const { |
- EnumOptions* n = new EnumOptions; |
+OneofOptions* OneofOptions::New(::google::protobuf::Arena* arena) const { |
+ OneofOptions* n = new OneofOptions; |
if (arena != NULL) { |
arena->Own(n); |
} |
return n; |
} |
-void EnumOptions::Clear() { |
-// @@protoc_insertion_point(message_clear_start:google.protobuf.EnumOptions) |
+void OneofOptions::Clear() { |
+// @@protoc_insertion_point(message_clear_start:google.protobuf.OneofOptions) |
_extensions_.Clear(); |
-#if defined(__clang__) |
-#define ZR_HELPER_(f) \ |
- _Pragma("clang diagnostic push") \ |
- _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ |
- __builtin_offsetof(EnumOptions, f) \ |
- _Pragma("clang diagnostic pop") |
-#else |
-#define ZR_HELPER_(f) reinterpret_cast<char*>(\ |
- &reinterpret_cast<EnumOptions*>(16)->f) |
-#endif |
- |
-#define ZR_(first, last) do {\ |
- ::memset(&first, 0,\ |
- ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ |
-} while (0) |
- |
- ZR_(allow_alias_, deprecated_); |
- |
-#undef ZR_HELPER_ |
-#undef ZR_ |
- |
uninterpreted_option_.Clear(); |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ _has_bits_.Clear(); |
if (_internal_metadata_.have_unknown_fields()) { |
mutable_unknown_fields()->Clear(); |
} |
} |
-bool EnumOptions::MergePartialFromCodedStream( |
+bool OneofOptions::MergePartialFromCodedStream( |
::google::protobuf::io::CodedInputStream* input) { |
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
::google::protobuf::uint32 tag; |
- // @@protoc_insertion_point(parse_start:google.protobuf.EnumOptions) |
+ // @@protoc_insertion_point(parse_start:google.protobuf.OneofOptions) |
for (;;) { |
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383); |
tag = p.first; |
if (!p.second) goto handle_unusual; |
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
- // optional bool allow_alias = 2; |
- case 2: { |
- if (tag == 16) { |
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
- bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
- input, &allow_alias_))); |
- set_has_allow_alias(); |
- } else { |
- goto handle_unusual; |
- } |
+ // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
+ case 999: { |
+ if (tag == 7994) { |
+ DO_(input->IncrementRecursionDepth()); |
+ parse_loop_uninterpreted_option: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
+ input, add_uninterpreted_option())); |
+ } else { |
+ goto handle_unusual; |
+ } |
+ if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option; |
+ input->UnsafeDecrementRecursionDepth(); |
+ if (input->ExpectAtEnd()) goto success; |
+ break; |
+ } |
+ |
+ default: { |
+ handle_unusual: |
+ if (tag == 0 || |
+ ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
+ goto success; |
+ } |
+ if ((8000u <= tag)) { |
+ DO_(_extensions_.ParseField(tag, input, internal_default_instance(), |
+ mutable_unknown_fields())); |
+ continue; |
+ } |
+ DO_(::google::protobuf::internal::WireFormat::SkipField( |
+ input, tag, mutable_unknown_fields())); |
+ break; |
+ } |
+ } |
+ } |
+success: |
+ // @@protoc_insertion_point(parse_success:google.protobuf.OneofOptions) |
+ return true; |
+failure: |
+ // @@protoc_insertion_point(parse_failure:google.protobuf.OneofOptions) |
+ return false; |
+#undef DO_ |
+} |
+ |
+void OneofOptions::SerializeWithCachedSizes( |
+ ::google::protobuf::io::CodedOutputStream* output) const { |
+ // @@protoc_insertion_point(serialize_start:google.protobuf.OneofOptions) |
+ // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
+ for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
+ 999, this->uninterpreted_option(i), output); |
+ } |
+ |
+ // Extension range [1000, 536870912) |
+ _extensions_.SerializeWithCachedSizes( |
+ 1000, 536870912, output); |
+ |
+ if (_internal_metadata_.have_unknown_fields()) { |
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
+ unknown_fields(), output); |
+ } |
+ // @@protoc_insertion_point(serialize_end:google.protobuf.OneofOptions) |
+} |
+ |
+::google::protobuf::uint8* OneofOptions::InternalSerializeWithCachedSizesToArray( |
+ bool deterministic, ::google::protobuf::uint8* target) const { |
+ (void)deterministic; // Unused |
+ // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.OneofOptions) |
+ // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
+ for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
+ target = ::google::protobuf::internal::WireFormatLite:: |
+ InternalWriteMessageNoVirtualToArray( |
+ 999, this->uninterpreted_option(i), false, target); |
+ } |
+ |
+ // Extension range [1000, 536870912) |
+ target = _extensions_.InternalSerializeWithCachedSizesToArray( |
+ 1000, 536870912, false, target); |
+ |
+ if (_internal_metadata_.have_unknown_fields()) { |
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
+ unknown_fields(), target); |
+ } |
+ // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.OneofOptions) |
+ return target; |
+} |
+ |
+size_t OneofOptions::ByteSizeLong() const { |
+// @@protoc_insertion_point(message_byte_size_start:google.protobuf.OneofOptions) |
+ size_t total_size = 0; |
+ |
+ // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
+ { |
+ unsigned int count = this->uninterpreted_option_size(); |
+ total_size += 2UL * count; |
+ for (unsigned int i = 0; i < count; i++) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->uninterpreted_option(i)); |
+ } |
+ } |
+ |
+ total_size += _extensions_.ByteSize(); |
+ |
+ if (_internal_metadata_.have_unknown_fields()) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
+ unknown_fields()); |
+ } |
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = cached_size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+ return total_size; |
+} |
+ |
+void OneofOptions::MergeFrom(const ::google::protobuf::Message& from) { |
+// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.OneofOptions) |
+ if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
+ const OneofOptions* source = |
+ ::google::protobuf::internal::DynamicCastToGenerated<const OneofOptions>( |
+ &from); |
+ if (source == NULL) { |
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.OneofOptions) |
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
+ } else { |
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.OneofOptions) |
+ UnsafeMergeFrom(*source); |
+ } |
+} |
+ |
+void OneofOptions::MergeFrom(const OneofOptions& from) { |
+// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.OneofOptions) |
+ if (GOOGLE_PREDICT_TRUE(&from != this)) { |
+ UnsafeMergeFrom(from); |
+ } else { |
+ MergeFromFail(__LINE__); |
+ } |
+} |
+ |
+void OneofOptions::UnsafeMergeFrom(const OneofOptions& from) { |
+ GOOGLE_DCHECK(&from != this); |
+ uninterpreted_option_.MergeFrom(from.uninterpreted_option_); |
+ _extensions_.MergeFrom(from._extensions_); |
+ if (from._internal_metadata_.have_unknown_fields()) { |
+ ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( |
+ from.unknown_fields(), &_internal_metadata_); |
+ } |
+} |
+ |
+void OneofOptions::CopyFrom(const ::google::protobuf::Message& from) { |
+// @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.OneofOptions) |
+ if (&from == this) return; |
+ Clear(); |
+ MergeFrom(from); |
+} |
+ |
+void OneofOptions::CopyFrom(const OneofOptions& from) { |
+// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.OneofOptions) |
+ if (&from == this) return; |
+ Clear(); |
+ UnsafeMergeFrom(from); |
+} |
+ |
+bool OneofOptions::IsInitialized() const { |
+ |
+ if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false; |
+ |
+ if (!_extensions_.IsInitialized()) { |
+ return false; |
+ } |
+ return true; |
+} |
+ |
+void OneofOptions::Swap(OneofOptions* other) { |
+ if (other == this) return; |
+ InternalSwap(other); |
+} |
+void OneofOptions::InternalSwap(OneofOptions* other) { |
+ uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); |
+ std::swap(_has_bits_[0], other->_has_bits_[0]); |
+ _internal_metadata_.Swap(&other->_internal_metadata_); |
+ std::swap(_cached_size_, other->_cached_size_); |
+ _extensions_.Swap(&other->_extensions_); |
+} |
+ |
+::google::protobuf::Metadata OneofOptions::GetMetadata() const { |
+ protobuf_AssignDescriptorsOnce(); |
+ ::google::protobuf::Metadata metadata; |
+ metadata.descriptor = OneofOptions_descriptor_; |
+ metadata.reflection = OneofOptions_reflection_; |
+ return metadata; |
+} |
+ |
+#if PROTOBUF_INLINE_NOT_IN_HEADERS |
+// OneofOptions |
+ |
+// repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
+int OneofOptions::uninterpreted_option_size() const { |
+ return uninterpreted_option_.size(); |
+} |
+void OneofOptions::clear_uninterpreted_option() { |
+ uninterpreted_option_.Clear(); |
+} |
+const ::google::protobuf::UninterpretedOption& OneofOptions::uninterpreted_option(int index) const { |
+ // @@protoc_insertion_point(field_get:google.protobuf.OneofOptions.uninterpreted_option) |
+ return uninterpreted_option_.Get(index); |
+} |
+::google::protobuf::UninterpretedOption* OneofOptions::mutable_uninterpreted_option(int index) { |
+ // @@protoc_insertion_point(field_mutable:google.protobuf.OneofOptions.uninterpreted_option) |
+ return uninterpreted_option_.Mutable(index); |
+} |
+::google::protobuf::UninterpretedOption* OneofOptions::add_uninterpreted_option() { |
+ // @@protoc_insertion_point(field_add:google.protobuf.OneofOptions.uninterpreted_option) |
+ return uninterpreted_option_.Add(); |
+} |
+::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
+OneofOptions::mutable_uninterpreted_option() { |
+ // @@protoc_insertion_point(field_mutable_list:google.protobuf.OneofOptions.uninterpreted_option) |
+ return &uninterpreted_option_; |
+} |
+const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& |
+OneofOptions::uninterpreted_option() const { |
+ // @@protoc_insertion_point(field_list:google.protobuf.OneofOptions.uninterpreted_option) |
+ return uninterpreted_option_; |
+} |
+ |
+inline const OneofOptions* OneofOptions::internal_default_instance() { |
+ return &OneofOptions_default_instance_.get(); |
+} |
+#endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
+ |
+// =================================================================== |
+ |
+#if !defined(_MSC_VER) || _MSC_VER >= 1900 |
+const int EnumOptions::kAllowAliasFieldNumber; |
+const int EnumOptions::kDeprecatedFieldNumber; |
+const int EnumOptions::kUninterpretedOptionFieldNumber; |
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
+ |
+EnumOptions::EnumOptions() |
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
+ if (this != internal_default_instance()) protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
+ SharedCtor(); |
+ // @@protoc_insertion_point(constructor:google.protobuf.EnumOptions) |
+} |
+ |
+void EnumOptions::InitAsDefaultInstance() { |
+} |
+ |
+EnumOptions::EnumOptions(const EnumOptions& from) |
+ : ::google::protobuf::Message(), |
+ _internal_metadata_(NULL) { |
+ SharedCtor(); |
+ UnsafeMergeFrom(from); |
+ // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumOptions) |
+} |
+ |
+void EnumOptions::SharedCtor() { |
+ _cached_size_ = 0; |
+ ::memset(&allow_alias_, 0, reinterpret_cast<char*>(&deprecated_) - |
+ reinterpret_cast<char*>(&allow_alias_) + sizeof(deprecated_)); |
+} |
+ |
+EnumOptions::~EnumOptions() { |
+ // @@protoc_insertion_point(destructor:google.protobuf.EnumOptions) |
+ SharedDtor(); |
+} |
+ |
+void EnumOptions::SharedDtor() { |
+} |
+ |
+void EnumOptions::SetCachedSize(int size) const { |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+} |
+const ::google::protobuf::Descriptor* EnumOptions::descriptor() { |
+ protobuf_AssignDescriptorsOnce(); |
+ return EnumOptions_descriptor_; |
+} |
+ |
+const EnumOptions& EnumOptions::default_instance() { |
+ protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
+ return *internal_default_instance(); |
+} |
+ |
+::google::protobuf::internal::ExplicitlyConstructed<EnumOptions> EnumOptions_default_instance_; |
+ |
+EnumOptions* EnumOptions::New(::google::protobuf::Arena* arena) const { |
+ EnumOptions* n = new EnumOptions; |
+ if (arena != NULL) { |
+ arena->Own(n); |
+ } |
+ return n; |
+} |
+ |
+void EnumOptions::Clear() { |
+// @@protoc_insertion_point(message_clear_start:google.protobuf.EnumOptions) |
+ _extensions_.Clear(); |
+#if defined(__clang__) |
+#define ZR_HELPER_(f) \ |
+ _Pragma("clang diagnostic push") \ |
+ _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ |
+ __builtin_offsetof(EnumOptions, f) \ |
+ _Pragma("clang diagnostic pop") |
+#else |
+#define ZR_HELPER_(f) reinterpret_cast<char*>(\ |
+ &reinterpret_cast<EnumOptions*>(16)->f) |
+#endif |
+ |
+#define ZR_(first, last) do {\ |
+ ::memset(&(first), 0,\ |
+ ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ |
+} while (0) |
+ |
+ ZR_(allow_alias_, deprecated_); |
+ |
+#undef ZR_HELPER_ |
+#undef ZR_ |
+ |
+ uninterpreted_option_.Clear(); |
+ _has_bits_.Clear(); |
+ if (_internal_metadata_.have_unknown_fields()) { |
+ mutable_unknown_fields()->Clear(); |
+ } |
+} |
+ |
+bool EnumOptions::MergePartialFromCodedStream( |
+ ::google::protobuf::io::CodedInputStream* input) { |
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
+ ::google::protobuf::uint32 tag; |
+ // @@protoc_insertion_point(parse_start:google.protobuf.EnumOptions) |
+ for (;;) { |
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383); |
+ tag = p.first; |
+ if (!p.second) goto handle_unusual; |
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
+ // optional bool allow_alias = 2; |
+ case 2: { |
+ if (tag == 16) { |
+ set_has_allow_alias(); |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
+ input, &allow_alias_))); |
+ } else { |
+ goto handle_unusual; |
+ } |
if (input->ExpectTag(24)) goto parse_deprecated; |
break; |
} |
@@ -10749,10 +11452,10 @@ bool EnumOptions::MergePartialFromCodedStream( |
case 3: { |
if (tag == 24) { |
parse_deprecated: |
+ set_has_deprecated(); |
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
input, &deprecated_))); |
- set_has_deprecated(); |
} else { |
goto handle_unusual; |
} |
@@ -10785,7 +11488,7 @@ bool EnumOptions::MergePartialFromCodedStream( |
goto success; |
} |
if ((8000u <= tag)) { |
- DO_(_extensions_.ParseField(tag, input, default_instance_, |
+ DO_(_extensions_.ParseField(tag, input, internal_default_instance(), |
mutable_unknown_fields())); |
continue; |
} |
@@ -10834,8 +11537,9 @@ void EnumOptions::SerializeWithCachedSizes( |
// @@protoc_insertion_point(serialize_end:google.protobuf.EnumOptions) |
} |
-::google::protobuf::uint8* EnumOptions::SerializeWithCachedSizesToArray( |
- ::google::protobuf::uint8* target) const { |
+::google::protobuf::uint8* EnumOptions::InternalSerializeWithCachedSizesToArray( |
+ bool deterministic, ::google::protobuf::uint8* target) const { |
+ (void)deterministic; // Unused |
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumOptions) |
// optional bool allow_alias = 2; |
if (has_allow_alias()) { |
@@ -10850,13 +11554,13 @@ void EnumOptions::SerializeWithCachedSizes( |
// repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
target = ::google::protobuf::internal::WireFormatLite:: |
- WriteMessageNoVirtualToArray( |
- 999, this->uninterpreted_option(i), target); |
+ InternalWriteMessageNoVirtualToArray( |
+ 999, this->uninterpreted_option(i), false, target); |
} |
// Extension range [1000, 536870912) |
- target = _extensions_.SerializeWithCachedSizesToArray( |
- 1000, 536870912, target); |
+ target = _extensions_.InternalSerializeWithCachedSizesToArray( |
+ 1000, 536870912, false, target); |
if (_internal_metadata_.have_unknown_fields()) { |
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
@@ -10866,9 +11570,9 @@ void EnumOptions::SerializeWithCachedSizes( |
return target; |
} |
-int EnumOptions::ByteSize() const { |
+size_t EnumOptions::ByteSizeLong() const { |
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumOptions) |
- int total_size = 0; |
+ size_t total_size = 0; |
if (_has_bits_[0 / 32] & 3u) { |
// optional bool allow_alias = 2; |
@@ -10883,11 +11587,14 @@ int EnumOptions::ByteSize() const { |
} |
// repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
- total_size += 2 * this->uninterpreted_option_size(); |
- for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
- total_size += |
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
- this->uninterpreted_option(i)); |
+ { |
+ unsigned int count = this->uninterpreted_option_size(); |
+ total_size += 2UL * count; |
+ for (unsigned int i = 0; i < count; i++) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->uninterpreted_option(i)); |
+ } |
} |
total_size += _extensions_.ByteSize(); |
@@ -10897,8 +11604,9 @@ int EnumOptions::ByteSize() const { |
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
unknown_fields()); |
} |
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
- _cached_size_ = total_size; |
+ _cached_size_ = cached_size; |
GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
return total_size; |
} |
@@ -10906,7 +11614,7 @@ int EnumOptions::ByteSize() const { |
void EnumOptions::MergeFrom(const ::google::protobuf::Message& from) { |
// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumOptions) |
if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
- const EnumOptions* source = |
+ const EnumOptions* source = |
::google::protobuf::internal::DynamicCastToGenerated<const EnumOptions>( |
&from); |
if (source == NULL) { |
@@ -10914,13 +11622,21 @@ void EnumOptions::MergeFrom(const ::google::protobuf::Message& from) { |
::google::protobuf::internal::ReflectionOps::Merge(from, this); |
} else { |
// @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.EnumOptions) |
- MergeFrom(*source); |
+ UnsafeMergeFrom(*source); |
} |
} |
void EnumOptions::MergeFrom(const EnumOptions& from) { |
// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.EnumOptions) |
- if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
+ if (GOOGLE_PREDICT_TRUE(&from != this)) { |
+ UnsafeMergeFrom(from); |
+ } else { |
+ MergeFromFail(__LINE__); |
+ } |
+} |
+ |
+void EnumOptions::UnsafeMergeFrom(const EnumOptions& from) { |
+ GOOGLE_DCHECK(&from != this); |
uninterpreted_option_.MergeFrom(from.uninterpreted_option_); |
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
if (from.has_allow_alias()) { |
@@ -10932,7 +11648,8 @@ void EnumOptions::MergeFrom(const EnumOptions& from) { |
} |
_extensions_.MergeFrom(from._extensions_); |
if (from._internal_metadata_.have_unknown_fields()) { |
- mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+ ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( |
+ from.unknown_fields(), &_internal_metadata_); |
} |
} |
@@ -10947,14 +11664,17 @@ void EnumOptions::CopyFrom(const EnumOptions& from) { |
// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumOptions) |
if (&from == this) return; |
Clear(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
} |
bool EnumOptions::IsInitialized() const { |
if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false; |
- if (!_extensions_.IsInitialized()) return false; return true; |
+ if (!_extensions_.IsInitialized()) { |
+ return false; |
+ } |
+ return true; |
} |
void EnumOptions::Swap(EnumOptions* other) { |
@@ -10996,11 +11716,11 @@ void EnumOptions::clear_allow_alias() { |
allow_alias_ = false; |
clear_has_allow_alias(); |
} |
- bool EnumOptions::allow_alias() const { |
+bool EnumOptions::allow_alias() const { |
// @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.allow_alias) |
return allow_alias_; |
} |
- void EnumOptions::set_allow_alias(bool value) { |
+void EnumOptions::set_allow_alias(bool value) { |
set_has_allow_alias(); |
allow_alias_ = value; |
// @@protoc_insertion_point(field_set:google.protobuf.EnumOptions.allow_alias) |
@@ -11020,11 +11740,11 @@ void EnumOptions::clear_deprecated() { |
deprecated_ = false; |
clear_has_deprecated(); |
} |
- bool EnumOptions::deprecated() const { |
+bool EnumOptions::deprecated() const { |
// @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.deprecated) |
return deprecated_; |
} |
- void EnumOptions::set_deprecated(bool value) { |
+void EnumOptions::set_deprecated(bool value) { |
set_has_deprecated(); |
deprecated_ = value; |
// @@protoc_insertion_point(field_set:google.protobuf.EnumOptions.deprecated) |
@@ -11060,6 +11780,9 @@ EnumOptions::uninterpreted_option() const { |
return uninterpreted_option_; |
} |
+inline const EnumOptions* EnumOptions::internal_default_instance() { |
+ return &EnumOptions_default_instance_.get(); |
+} |
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
// =================================================================== |
@@ -11071,6 +11794,7 @@ const int EnumValueOptions::kUninterpretedOptionFieldNumber; |
EnumValueOptions::EnumValueOptions() |
: ::google::protobuf::Message(), _internal_metadata_(NULL) { |
+ if (this != internal_default_instance()) protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
SharedCtor(); |
// @@protoc_insertion_point(constructor:google.protobuf.EnumValueOptions) |
} |
@@ -11082,14 +11806,13 @@ EnumValueOptions::EnumValueOptions(const EnumValueOptions& from) |
: ::google::protobuf::Message(), |
_internal_metadata_(NULL) { |
SharedCtor(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
// @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValueOptions) |
} |
void EnumValueOptions::SharedCtor() { |
_cached_size_ = 0; |
deprecated_ = false; |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
} |
EnumValueOptions::~EnumValueOptions() { |
@@ -11098,8 +11821,6 @@ EnumValueOptions::~EnumValueOptions() { |
} |
void EnumValueOptions::SharedDtor() { |
- if (this != default_instance_) { |
- } |
} |
void EnumValueOptions::SetCachedSize(int size) const { |
@@ -11113,11 +11834,11 @@ const ::google::protobuf::Descriptor* EnumValueOptions::descriptor() { |
} |
const EnumValueOptions& EnumValueOptions::default_instance() { |
- if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
- return *default_instance_; |
+ protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
+ return *internal_default_instance(); |
} |
-EnumValueOptions* EnumValueOptions::default_instance_ = NULL; |
+::google::protobuf::internal::ExplicitlyConstructed<EnumValueOptions> EnumValueOptions_default_instance_; |
EnumValueOptions* EnumValueOptions::New(::google::protobuf::Arena* arena) const { |
EnumValueOptions* n = new EnumValueOptions; |
@@ -11132,7 +11853,7 @@ void EnumValueOptions::Clear() { |
_extensions_.Clear(); |
deprecated_ = false; |
uninterpreted_option_.Clear(); |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ _has_bits_.Clear(); |
if (_internal_metadata_.have_unknown_fields()) { |
mutable_unknown_fields()->Clear(); |
} |
@@ -11151,10 +11872,10 @@ bool EnumValueOptions::MergePartialFromCodedStream( |
// optional bool deprecated = 1 [default = false]; |
case 1: { |
if (tag == 8) { |
+ set_has_deprecated(); |
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
input, &deprecated_))); |
- set_has_deprecated(); |
} else { |
goto handle_unusual; |
} |
@@ -11187,7 +11908,7 @@ bool EnumValueOptions::MergePartialFromCodedStream( |
goto success; |
} |
if ((8000u <= tag)) { |
- DO_(_extensions_.ParseField(tag, input, default_instance_, |
+ DO_(_extensions_.ParseField(tag, input, internal_default_instance(), |
mutable_unknown_fields())); |
continue; |
} |
@@ -11231,8 +11952,9 @@ void EnumValueOptions::SerializeWithCachedSizes( |
// @@protoc_insertion_point(serialize_end:google.protobuf.EnumValueOptions) |
} |
-::google::protobuf::uint8* EnumValueOptions::SerializeWithCachedSizesToArray( |
- ::google::protobuf::uint8* target) const { |
+::google::protobuf::uint8* EnumValueOptions::InternalSerializeWithCachedSizesToArray( |
+ bool deterministic, ::google::protobuf::uint8* target) const { |
+ (void)deterministic; // Unused |
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValueOptions) |
// optional bool deprecated = 1 [default = false]; |
if (has_deprecated()) { |
@@ -11242,13 +11964,13 @@ void EnumValueOptions::SerializeWithCachedSizes( |
// repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
target = ::google::protobuf::internal::WireFormatLite:: |
- WriteMessageNoVirtualToArray( |
- 999, this->uninterpreted_option(i), target); |
+ InternalWriteMessageNoVirtualToArray( |
+ 999, this->uninterpreted_option(i), false, target); |
} |
// Extension range [1000, 536870912) |
- target = _extensions_.SerializeWithCachedSizesToArray( |
- 1000, 536870912, target); |
+ target = _extensions_.InternalSerializeWithCachedSizesToArray( |
+ 1000, 536870912, false, target); |
if (_internal_metadata_.have_unknown_fields()) { |
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
@@ -11258,9 +11980,9 @@ void EnumValueOptions::SerializeWithCachedSizes( |
return target; |
} |
-int EnumValueOptions::ByteSize() const { |
+size_t EnumValueOptions::ByteSizeLong() const { |
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumValueOptions) |
- int total_size = 0; |
+ size_t total_size = 0; |
// optional bool deprecated = 1 [default = false]; |
if (has_deprecated()) { |
@@ -11268,11 +11990,14 @@ int EnumValueOptions::ByteSize() const { |
} |
// repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
- total_size += 2 * this->uninterpreted_option_size(); |
- for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
- total_size += |
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
- this->uninterpreted_option(i)); |
+ { |
+ unsigned int count = this->uninterpreted_option_size(); |
+ total_size += 2UL * count; |
+ for (unsigned int i = 0; i < count; i++) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->uninterpreted_option(i)); |
+ } |
} |
total_size += _extensions_.ByteSize(); |
@@ -11282,8 +12007,9 @@ int EnumValueOptions::ByteSize() const { |
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
unknown_fields()); |
} |
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
- _cached_size_ = total_size; |
+ _cached_size_ = cached_size; |
GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
return total_size; |
} |
@@ -11291,7 +12017,7 @@ int EnumValueOptions::ByteSize() const { |
void EnumValueOptions::MergeFrom(const ::google::protobuf::Message& from) { |
// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumValueOptions) |
if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
- const EnumValueOptions* source = |
+ const EnumValueOptions* source = |
::google::protobuf::internal::DynamicCastToGenerated<const EnumValueOptions>( |
&from); |
if (source == NULL) { |
@@ -11299,13 +12025,21 @@ void EnumValueOptions::MergeFrom(const ::google::protobuf::Message& from) { |
::google::protobuf::internal::ReflectionOps::Merge(from, this); |
} else { |
// @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.EnumValueOptions) |
- MergeFrom(*source); |
+ UnsafeMergeFrom(*source); |
} |
} |
void EnumValueOptions::MergeFrom(const EnumValueOptions& from) { |
// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.EnumValueOptions) |
- if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
+ if (GOOGLE_PREDICT_TRUE(&from != this)) { |
+ UnsafeMergeFrom(from); |
+ } else { |
+ MergeFromFail(__LINE__); |
+ } |
+} |
+ |
+void EnumValueOptions::UnsafeMergeFrom(const EnumValueOptions& from) { |
+ GOOGLE_DCHECK(&from != this); |
uninterpreted_option_.MergeFrom(from.uninterpreted_option_); |
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
if (from.has_deprecated()) { |
@@ -11314,7 +12048,8 @@ void EnumValueOptions::MergeFrom(const EnumValueOptions& from) { |
} |
_extensions_.MergeFrom(from._extensions_); |
if (from._internal_metadata_.have_unknown_fields()) { |
- mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+ ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( |
+ from.unknown_fields(), &_internal_metadata_); |
} |
} |
@@ -11329,14 +12064,17 @@ void EnumValueOptions::CopyFrom(const EnumValueOptions& from) { |
// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumValueOptions) |
if (&from == this) return; |
Clear(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
} |
bool EnumValueOptions::IsInitialized() const { |
if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false; |
- if (!_extensions_.IsInitialized()) return false; return true; |
+ if (!_extensions_.IsInitialized()) { |
+ return false; |
+ } |
+ return true; |
} |
void EnumValueOptions::Swap(EnumValueOptions* other) { |
@@ -11377,11 +12115,11 @@ void EnumValueOptions::clear_deprecated() { |
deprecated_ = false; |
clear_has_deprecated(); |
} |
- bool EnumValueOptions::deprecated() const { |
+bool EnumValueOptions::deprecated() const { |
// @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.deprecated) |
return deprecated_; |
} |
- void EnumValueOptions::set_deprecated(bool value) { |
+void EnumValueOptions::set_deprecated(bool value) { |
set_has_deprecated(); |
deprecated_ = value; |
// @@protoc_insertion_point(field_set:google.protobuf.EnumValueOptions.deprecated) |
@@ -11417,6 +12155,9 @@ EnumValueOptions::uninterpreted_option() const { |
return uninterpreted_option_; |
} |
+inline const EnumValueOptions* EnumValueOptions::internal_default_instance() { |
+ return &EnumValueOptions_default_instance_.get(); |
+} |
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
// =================================================================== |
@@ -11428,6 +12169,7 @@ const int ServiceOptions::kUninterpretedOptionFieldNumber; |
ServiceOptions::ServiceOptions() |
: ::google::protobuf::Message(), _internal_metadata_(NULL) { |
+ if (this != internal_default_instance()) protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
SharedCtor(); |
// @@protoc_insertion_point(constructor:google.protobuf.ServiceOptions) |
} |
@@ -11439,14 +12181,13 @@ ServiceOptions::ServiceOptions(const ServiceOptions& from) |
: ::google::protobuf::Message(), |
_internal_metadata_(NULL) { |
SharedCtor(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
// @@protoc_insertion_point(copy_constructor:google.protobuf.ServiceOptions) |
} |
void ServiceOptions::SharedCtor() { |
_cached_size_ = 0; |
deprecated_ = false; |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
} |
ServiceOptions::~ServiceOptions() { |
@@ -11455,8 +12196,6 @@ ServiceOptions::~ServiceOptions() { |
} |
void ServiceOptions::SharedDtor() { |
- if (this != default_instance_) { |
- } |
} |
void ServiceOptions::SetCachedSize(int size) const { |
@@ -11470,11 +12209,11 @@ const ::google::protobuf::Descriptor* ServiceOptions::descriptor() { |
} |
const ServiceOptions& ServiceOptions::default_instance() { |
- if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
- return *default_instance_; |
+ protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
+ return *internal_default_instance(); |
} |
-ServiceOptions* ServiceOptions::default_instance_ = NULL; |
+::google::protobuf::internal::ExplicitlyConstructed<ServiceOptions> ServiceOptions_default_instance_; |
ServiceOptions* ServiceOptions::New(::google::protobuf::Arena* arena) const { |
ServiceOptions* n = new ServiceOptions; |
@@ -11489,7 +12228,7 @@ void ServiceOptions::Clear() { |
_extensions_.Clear(); |
deprecated_ = false; |
uninterpreted_option_.Clear(); |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ _has_bits_.Clear(); |
if (_internal_metadata_.have_unknown_fields()) { |
mutable_unknown_fields()->Clear(); |
} |
@@ -11508,10 +12247,10 @@ bool ServiceOptions::MergePartialFromCodedStream( |
// optional bool deprecated = 33 [default = false]; |
case 33: { |
if (tag == 264) { |
+ set_has_deprecated(); |
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
input, &deprecated_))); |
- set_has_deprecated(); |
} else { |
goto handle_unusual; |
} |
@@ -11544,7 +12283,7 @@ bool ServiceOptions::MergePartialFromCodedStream( |
goto success; |
} |
if ((8000u <= tag)) { |
- DO_(_extensions_.ParseField(tag, input, default_instance_, |
+ DO_(_extensions_.ParseField(tag, input, internal_default_instance(), |
mutable_unknown_fields())); |
continue; |
} |
@@ -11588,8 +12327,9 @@ void ServiceOptions::SerializeWithCachedSizes( |
// @@protoc_insertion_point(serialize_end:google.protobuf.ServiceOptions) |
} |
-::google::protobuf::uint8* ServiceOptions::SerializeWithCachedSizesToArray( |
- ::google::protobuf::uint8* target) const { |
+::google::protobuf::uint8* ServiceOptions::InternalSerializeWithCachedSizesToArray( |
+ bool deterministic, ::google::protobuf::uint8* target) const { |
+ (void)deterministic; // Unused |
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ServiceOptions) |
// optional bool deprecated = 33 [default = false]; |
if (has_deprecated()) { |
@@ -11599,13 +12339,13 @@ void ServiceOptions::SerializeWithCachedSizes( |
// repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
target = ::google::protobuf::internal::WireFormatLite:: |
- WriteMessageNoVirtualToArray( |
- 999, this->uninterpreted_option(i), target); |
+ InternalWriteMessageNoVirtualToArray( |
+ 999, this->uninterpreted_option(i), false, target); |
} |
// Extension range [1000, 536870912) |
- target = _extensions_.SerializeWithCachedSizesToArray( |
- 1000, 536870912, target); |
+ target = _extensions_.InternalSerializeWithCachedSizesToArray( |
+ 1000, 536870912, false, target); |
if (_internal_metadata_.have_unknown_fields()) { |
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
@@ -11615,9 +12355,9 @@ void ServiceOptions::SerializeWithCachedSizes( |
return target; |
} |
-int ServiceOptions::ByteSize() const { |
+size_t ServiceOptions::ByteSizeLong() const { |
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.ServiceOptions) |
- int total_size = 0; |
+ size_t total_size = 0; |
// optional bool deprecated = 33 [default = false]; |
if (has_deprecated()) { |
@@ -11625,11 +12365,14 @@ int ServiceOptions::ByteSize() const { |
} |
// repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
- total_size += 2 * this->uninterpreted_option_size(); |
- for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
- total_size += |
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
- this->uninterpreted_option(i)); |
+ { |
+ unsigned int count = this->uninterpreted_option_size(); |
+ total_size += 2UL * count; |
+ for (unsigned int i = 0; i < count; i++) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->uninterpreted_option(i)); |
+ } |
} |
total_size += _extensions_.ByteSize(); |
@@ -11639,8 +12382,9 @@ int ServiceOptions::ByteSize() const { |
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
unknown_fields()); |
} |
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
- _cached_size_ = total_size; |
+ _cached_size_ = cached_size; |
GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
return total_size; |
} |
@@ -11648,7 +12392,7 @@ int ServiceOptions::ByteSize() const { |
void ServiceOptions::MergeFrom(const ::google::protobuf::Message& from) { |
// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.ServiceOptions) |
if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
- const ServiceOptions* source = |
+ const ServiceOptions* source = |
::google::protobuf::internal::DynamicCastToGenerated<const ServiceOptions>( |
&from); |
if (source == NULL) { |
@@ -11656,13 +12400,21 @@ void ServiceOptions::MergeFrom(const ::google::protobuf::Message& from) { |
::google::protobuf::internal::ReflectionOps::Merge(from, this); |
} else { |
// @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.ServiceOptions) |
- MergeFrom(*source); |
+ UnsafeMergeFrom(*source); |
} |
} |
void ServiceOptions::MergeFrom(const ServiceOptions& from) { |
// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.ServiceOptions) |
- if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
+ if (GOOGLE_PREDICT_TRUE(&from != this)) { |
+ UnsafeMergeFrom(from); |
+ } else { |
+ MergeFromFail(__LINE__); |
+ } |
+} |
+ |
+void ServiceOptions::UnsafeMergeFrom(const ServiceOptions& from) { |
+ GOOGLE_DCHECK(&from != this); |
uninterpreted_option_.MergeFrom(from.uninterpreted_option_); |
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
if (from.has_deprecated()) { |
@@ -11671,7 +12423,8 @@ void ServiceOptions::MergeFrom(const ServiceOptions& from) { |
} |
_extensions_.MergeFrom(from._extensions_); |
if (from._internal_metadata_.have_unknown_fields()) { |
- mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+ ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( |
+ from.unknown_fields(), &_internal_metadata_); |
} |
} |
@@ -11686,14 +12439,17 @@ void ServiceOptions::CopyFrom(const ServiceOptions& from) { |
// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.ServiceOptions) |
if (&from == this) return; |
Clear(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
} |
bool ServiceOptions::IsInitialized() const { |
if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false; |
- if (!_extensions_.IsInitialized()) return false; return true; |
+ if (!_extensions_.IsInitialized()) { |
+ return false; |
+ } |
+ return true; |
} |
void ServiceOptions::Swap(ServiceOptions* other) { |
@@ -11734,11 +12490,11 @@ void ServiceOptions::clear_deprecated() { |
deprecated_ = false; |
clear_has_deprecated(); |
} |
- bool ServiceOptions::deprecated() const { |
+bool ServiceOptions::deprecated() const { |
// @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.deprecated) |
return deprecated_; |
} |
- void ServiceOptions::set_deprecated(bool value) { |
+void ServiceOptions::set_deprecated(bool value) { |
set_has_deprecated(); |
deprecated_ = value; |
// @@protoc_insertion_point(field_set:google.protobuf.ServiceOptions.deprecated) |
@@ -11774,6 +12530,9 @@ ServiceOptions::uninterpreted_option() const { |
return uninterpreted_option_; |
} |
+inline const ServiceOptions* ServiceOptions::internal_default_instance() { |
+ return &ServiceOptions_default_instance_.get(); |
+} |
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
// =================================================================== |
@@ -11785,6 +12544,7 @@ const int MethodOptions::kUninterpretedOptionFieldNumber; |
MethodOptions::MethodOptions() |
: ::google::protobuf::Message(), _internal_metadata_(NULL) { |
+ if (this != internal_default_instance()) protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
SharedCtor(); |
// @@protoc_insertion_point(constructor:google.protobuf.MethodOptions) |
} |
@@ -11796,14 +12556,13 @@ MethodOptions::MethodOptions(const MethodOptions& from) |
: ::google::protobuf::Message(), |
_internal_metadata_(NULL) { |
SharedCtor(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
// @@protoc_insertion_point(copy_constructor:google.protobuf.MethodOptions) |
} |
void MethodOptions::SharedCtor() { |
_cached_size_ = 0; |
deprecated_ = false; |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
} |
MethodOptions::~MethodOptions() { |
@@ -11812,8 +12571,6 @@ MethodOptions::~MethodOptions() { |
} |
void MethodOptions::SharedDtor() { |
- if (this != default_instance_) { |
- } |
} |
void MethodOptions::SetCachedSize(int size) const { |
@@ -11827,11 +12584,11 @@ const ::google::protobuf::Descriptor* MethodOptions::descriptor() { |
} |
const MethodOptions& MethodOptions::default_instance() { |
- if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
- return *default_instance_; |
+ protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
+ return *internal_default_instance(); |
} |
-MethodOptions* MethodOptions::default_instance_ = NULL; |
+::google::protobuf::internal::ExplicitlyConstructed<MethodOptions> MethodOptions_default_instance_; |
MethodOptions* MethodOptions::New(::google::protobuf::Arena* arena) const { |
MethodOptions* n = new MethodOptions; |
@@ -11846,7 +12603,7 @@ void MethodOptions::Clear() { |
_extensions_.Clear(); |
deprecated_ = false; |
uninterpreted_option_.Clear(); |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ _has_bits_.Clear(); |
if (_internal_metadata_.have_unknown_fields()) { |
mutable_unknown_fields()->Clear(); |
} |
@@ -11865,10 +12622,10 @@ bool MethodOptions::MergePartialFromCodedStream( |
// optional bool deprecated = 33 [default = false]; |
case 33: { |
if (tag == 264) { |
+ set_has_deprecated(); |
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
input, &deprecated_))); |
- set_has_deprecated(); |
} else { |
goto handle_unusual; |
} |
@@ -11901,7 +12658,7 @@ bool MethodOptions::MergePartialFromCodedStream( |
goto success; |
} |
if ((8000u <= tag)) { |
- DO_(_extensions_.ParseField(tag, input, default_instance_, |
+ DO_(_extensions_.ParseField(tag, input, internal_default_instance(), |
mutable_unknown_fields())); |
continue; |
} |
@@ -11945,8 +12702,9 @@ void MethodOptions::SerializeWithCachedSizes( |
// @@protoc_insertion_point(serialize_end:google.protobuf.MethodOptions) |
} |
-::google::protobuf::uint8* MethodOptions::SerializeWithCachedSizesToArray( |
- ::google::protobuf::uint8* target) const { |
+::google::protobuf::uint8* MethodOptions::InternalSerializeWithCachedSizesToArray( |
+ bool deterministic, ::google::protobuf::uint8* target) const { |
+ (void)deterministic; // Unused |
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MethodOptions) |
// optional bool deprecated = 33 [default = false]; |
if (has_deprecated()) { |
@@ -11956,13 +12714,13 @@ void MethodOptions::SerializeWithCachedSizes( |
// repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
target = ::google::protobuf::internal::WireFormatLite:: |
- WriteMessageNoVirtualToArray( |
- 999, this->uninterpreted_option(i), target); |
+ InternalWriteMessageNoVirtualToArray( |
+ 999, this->uninterpreted_option(i), false, target); |
} |
// Extension range [1000, 536870912) |
- target = _extensions_.SerializeWithCachedSizesToArray( |
- 1000, 536870912, target); |
+ target = _extensions_.InternalSerializeWithCachedSizesToArray( |
+ 1000, 536870912, false, target); |
if (_internal_metadata_.have_unknown_fields()) { |
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
@@ -11972,9 +12730,9 @@ void MethodOptions::SerializeWithCachedSizes( |
return target; |
} |
-int MethodOptions::ByteSize() const { |
+size_t MethodOptions::ByteSizeLong() const { |
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.MethodOptions) |
- int total_size = 0; |
+ size_t total_size = 0; |
// optional bool deprecated = 33 [default = false]; |
if (has_deprecated()) { |
@@ -11982,11 +12740,14 @@ int MethodOptions::ByteSize() const { |
} |
// repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
- total_size += 2 * this->uninterpreted_option_size(); |
- for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
- total_size += |
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
- this->uninterpreted_option(i)); |
+ { |
+ unsigned int count = this->uninterpreted_option_size(); |
+ total_size += 2UL * count; |
+ for (unsigned int i = 0; i < count; i++) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->uninterpreted_option(i)); |
+ } |
} |
total_size += _extensions_.ByteSize(); |
@@ -11996,8 +12757,9 @@ int MethodOptions::ByteSize() const { |
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
unknown_fields()); |
} |
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
- _cached_size_ = total_size; |
+ _cached_size_ = cached_size; |
GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
return total_size; |
} |
@@ -12005,7 +12767,7 @@ int MethodOptions::ByteSize() const { |
void MethodOptions::MergeFrom(const ::google::protobuf::Message& from) { |
// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.MethodOptions) |
if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
- const MethodOptions* source = |
+ const MethodOptions* source = |
::google::protobuf::internal::DynamicCastToGenerated<const MethodOptions>( |
&from); |
if (source == NULL) { |
@@ -12013,13 +12775,21 @@ void MethodOptions::MergeFrom(const ::google::protobuf::Message& from) { |
::google::protobuf::internal::ReflectionOps::Merge(from, this); |
} else { |
// @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.MethodOptions) |
- MergeFrom(*source); |
+ UnsafeMergeFrom(*source); |
} |
} |
void MethodOptions::MergeFrom(const MethodOptions& from) { |
// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.MethodOptions) |
- if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
+ if (GOOGLE_PREDICT_TRUE(&from != this)) { |
+ UnsafeMergeFrom(from); |
+ } else { |
+ MergeFromFail(__LINE__); |
+ } |
+} |
+ |
+void MethodOptions::UnsafeMergeFrom(const MethodOptions& from) { |
+ GOOGLE_DCHECK(&from != this); |
uninterpreted_option_.MergeFrom(from.uninterpreted_option_); |
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
if (from.has_deprecated()) { |
@@ -12028,7 +12798,8 @@ void MethodOptions::MergeFrom(const MethodOptions& from) { |
} |
_extensions_.MergeFrom(from._extensions_); |
if (from._internal_metadata_.have_unknown_fields()) { |
- mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+ ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( |
+ from.unknown_fields(), &_internal_metadata_); |
} |
} |
@@ -12043,14 +12814,17 @@ void MethodOptions::CopyFrom(const MethodOptions& from) { |
// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.MethodOptions) |
if (&from == this) return; |
Clear(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
} |
bool MethodOptions::IsInitialized() const { |
if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false; |
- if (!_extensions_.IsInitialized()) return false; return true; |
+ if (!_extensions_.IsInitialized()) { |
+ return false; |
+ } |
+ return true; |
} |
void MethodOptions::Swap(MethodOptions* other) { |
@@ -12091,11 +12865,11 @@ void MethodOptions::clear_deprecated() { |
deprecated_ = false; |
clear_has_deprecated(); |
} |
- bool MethodOptions::deprecated() const { |
+bool MethodOptions::deprecated() const { |
// @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.deprecated) |
return deprecated_; |
} |
- void MethodOptions::set_deprecated(bool value) { |
+void MethodOptions::set_deprecated(bool value) { |
set_has_deprecated(); |
deprecated_ = value; |
// @@protoc_insertion_point(field_set:google.protobuf.MethodOptions.deprecated) |
@@ -12131,6 +12905,9 @@ MethodOptions::uninterpreted_option() const { |
return uninterpreted_option_; |
} |
+inline const MethodOptions* MethodOptions::internal_default_instance() { |
+ return &MethodOptions_default_instance_.get(); |
+} |
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
// =================================================================== |
@@ -12142,6 +12919,7 @@ const int UninterpretedOption_NamePart::kIsExtensionFieldNumber; |
UninterpretedOption_NamePart::UninterpretedOption_NamePart() |
: ::google::protobuf::Message(), _internal_metadata_(NULL) { |
+ if (this != internal_default_instance()) protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
SharedCtor(); |
// @@protoc_insertion_point(constructor:google.protobuf.UninterpretedOption.NamePart) |
} |
@@ -12153,16 +12931,14 @@ UninterpretedOption_NamePart::UninterpretedOption_NamePart(const UninterpretedOp |
: ::google::protobuf::Message(), |
_internal_metadata_(NULL) { |
SharedCtor(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
// @@protoc_insertion_point(copy_constructor:google.protobuf.UninterpretedOption.NamePart) |
} |
void UninterpretedOption_NamePart::SharedCtor() { |
- ::google::protobuf::internal::GetEmptyString(); |
_cached_size_ = 0; |
name_part_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
is_extension_ = false; |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
} |
UninterpretedOption_NamePart::~UninterpretedOption_NamePart() { |
@@ -12172,8 +12948,6 @@ UninterpretedOption_NamePart::~UninterpretedOption_NamePart() { |
void UninterpretedOption_NamePart::SharedDtor() { |
name_part_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
- if (this != default_instance_) { |
- } |
} |
void UninterpretedOption_NamePart::SetCachedSize(int size) const { |
@@ -12187,11 +12961,11 @@ const ::google::protobuf::Descriptor* UninterpretedOption_NamePart::descriptor() |
} |
const UninterpretedOption_NamePart& UninterpretedOption_NamePart::default_instance() { |
- if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
- return *default_instance_; |
+ protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
+ return *internal_default_instance(); |
} |
-UninterpretedOption_NamePart* UninterpretedOption_NamePart::default_instance_ = NULL; |
+::google::protobuf::internal::ExplicitlyConstructed<UninterpretedOption_NamePart> UninterpretedOption_NamePart_default_instance_; |
UninterpretedOption_NamePart* UninterpretedOption_NamePart::New(::google::protobuf::Arena* arena) const { |
UninterpretedOption_NamePart* n = new UninterpretedOption_NamePart; |
@@ -12209,7 +12983,7 @@ void UninterpretedOption_NamePart::Clear() { |
} |
is_extension_ = false; |
} |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ _has_bits_.Clear(); |
if (_internal_metadata_.have_unknown_fields()) { |
mutable_unknown_fields()->Clear(); |
} |
@@ -12245,10 +13019,10 @@ bool UninterpretedOption_NamePart::MergePartialFromCodedStream( |
case 2: { |
if (tag == 16) { |
parse_is_extension: |
+ set_has_is_extension(); |
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
input, &is_extension_))); |
- set_has_is_extension(); |
} else { |
goto handle_unusual; |
} |
@@ -12303,8 +13077,9 @@ void UninterpretedOption_NamePart::SerializeWithCachedSizes( |
// @@protoc_insertion_point(serialize_end:google.protobuf.UninterpretedOption.NamePart) |
} |
-::google::protobuf::uint8* UninterpretedOption_NamePart::SerializeWithCachedSizesToArray( |
- ::google::protobuf::uint8* target) const { |
+::google::protobuf::uint8* UninterpretedOption_NamePart::InternalSerializeWithCachedSizesToArray( |
+ bool deterministic, ::google::protobuf::uint8* target) const { |
+ (void)deterministic; // Unused |
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.UninterpretedOption.NamePart) |
// required string name_part = 1; |
if (has_name_part()) { |
@@ -12330,9 +13105,9 @@ void UninterpretedOption_NamePart::SerializeWithCachedSizes( |
return target; |
} |
-int UninterpretedOption_NamePart::RequiredFieldsByteSizeFallback() const { |
+size_t UninterpretedOption_NamePart::RequiredFieldsByteSizeFallback() const { |
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:google.protobuf.UninterpretedOption.NamePart) |
- int total_size = 0; |
+ size_t total_size = 0; |
if (has_name_part()) { |
// required string name_part = 1; |
@@ -12348,9 +13123,9 @@ int UninterpretedOption_NamePart::RequiredFieldsByteSizeFallback() const { |
return total_size; |
} |
-int UninterpretedOption_NamePart::ByteSize() const { |
+size_t UninterpretedOption_NamePart::ByteSizeLong() const { |
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.UninterpretedOption.NamePart) |
- int total_size = 0; |
+ size_t total_size = 0; |
if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. |
// required string name_part = 1; |
@@ -12369,8 +13144,9 @@ int UninterpretedOption_NamePart::ByteSize() const { |
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
unknown_fields()); |
} |
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
- _cached_size_ = total_size; |
+ _cached_size_ = cached_size; |
GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
return total_size; |
} |
@@ -12378,7 +13154,7 @@ int UninterpretedOption_NamePart::ByteSize() const { |
void UninterpretedOption_NamePart::MergeFrom(const ::google::protobuf::Message& from) { |
// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.UninterpretedOption.NamePart) |
if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
- const UninterpretedOption_NamePart* source = |
+ const UninterpretedOption_NamePart* source = |
::google::protobuf::internal::DynamicCastToGenerated<const UninterpretedOption_NamePart>( |
&from); |
if (source == NULL) { |
@@ -12386,13 +13162,21 @@ void UninterpretedOption_NamePart::MergeFrom(const ::google::protobuf::Message& |
::google::protobuf::internal::ReflectionOps::Merge(from, this); |
} else { |
// @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.UninterpretedOption.NamePart) |
- MergeFrom(*source); |
+ UnsafeMergeFrom(*source); |
} |
} |
void UninterpretedOption_NamePart::MergeFrom(const UninterpretedOption_NamePart& from) { |
// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.UninterpretedOption.NamePart) |
- if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
+ if (GOOGLE_PREDICT_TRUE(&from != this)) { |
+ UnsafeMergeFrom(from); |
+ } else { |
+ MergeFromFail(__LINE__); |
+ } |
+} |
+ |
+void UninterpretedOption_NamePart::UnsafeMergeFrom(const UninterpretedOption_NamePart& from) { |
+ GOOGLE_DCHECK(&from != this); |
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
if (from.has_name_part()) { |
set_has_name_part(); |
@@ -12403,7 +13187,8 @@ void UninterpretedOption_NamePart::MergeFrom(const UninterpretedOption_NamePart& |
} |
} |
if (from._internal_metadata_.have_unknown_fields()) { |
- mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+ ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( |
+ from.unknown_fields(), &_internal_metadata_); |
} |
} |
@@ -12418,7 +13203,7 @@ void UninterpretedOption_NamePart::CopyFrom(const UninterpretedOption_NamePart& |
// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.UninterpretedOption.NamePart) |
if (&from == this) return; |
Clear(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
} |
bool UninterpretedOption_NamePart::IsInitialized() const { |
@@ -12462,6 +13247,7 @@ const int UninterpretedOption::kAggregateValueFieldNumber; |
UninterpretedOption::UninterpretedOption() |
: ::google::protobuf::Message(), _internal_metadata_(NULL) { |
+ if (this != internal_default_instance()) protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
SharedCtor(); |
// @@protoc_insertion_point(constructor:google.protobuf.UninterpretedOption) |
} |
@@ -12473,20 +13259,17 @@ UninterpretedOption::UninterpretedOption(const UninterpretedOption& from) |
: ::google::protobuf::Message(), |
_internal_metadata_(NULL) { |
SharedCtor(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
// @@protoc_insertion_point(copy_constructor:google.protobuf.UninterpretedOption) |
} |
void UninterpretedOption::SharedCtor() { |
- ::google::protobuf::internal::GetEmptyString(); |
_cached_size_ = 0; |
identifier_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
- positive_int_value_ = GOOGLE_ULONGLONG(0); |
- negative_int_value_ = GOOGLE_LONGLONG(0); |
- double_value_ = 0; |
string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
aggregate_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ ::memset(&positive_int_value_, 0, reinterpret_cast<char*>(&double_value_) - |
+ reinterpret_cast<char*>(&positive_int_value_) + sizeof(double_value_)); |
} |
UninterpretedOption::~UninterpretedOption() { |
@@ -12498,8 +13281,6 @@ void UninterpretedOption::SharedDtor() { |
identifier_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
string_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
aggregate_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
- if (this != default_instance_) { |
- } |
} |
void UninterpretedOption::SetCachedSize(int size) const { |
@@ -12513,11 +13294,11 @@ const ::google::protobuf::Descriptor* UninterpretedOption::descriptor() { |
} |
const UninterpretedOption& UninterpretedOption::default_instance() { |
- if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
- return *default_instance_; |
+ protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
+ return *internal_default_instance(); |
} |
-UninterpretedOption* UninterpretedOption::default_instance_ = NULL; |
+::google::protobuf::internal::ExplicitlyConstructed<UninterpretedOption> UninterpretedOption_default_instance_; |
UninterpretedOption* UninterpretedOption::New(::google::protobuf::Arena* arena) const { |
UninterpretedOption* n = new UninterpretedOption; |
@@ -12541,7 +13322,7 @@ void UninterpretedOption::Clear() { |
#endif |
#define ZR_(first, last) do {\ |
- ::memset(&first, 0,\ |
+ ::memset(&(first), 0,\ |
ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ |
} while (0) |
@@ -12562,7 +13343,7 @@ void UninterpretedOption::Clear() { |
#undef ZR_ |
name_.Clear(); |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ _has_bits_.Clear(); |
if (_internal_metadata_.have_unknown_fields()) { |
mutable_unknown_fields()->Clear(); |
} |
@@ -12615,10 +13396,10 @@ bool UninterpretedOption::MergePartialFromCodedStream( |
case 4: { |
if (tag == 32) { |
parse_positive_int_value: |
+ set_has_positive_int_value(); |
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
input, &positive_int_value_))); |
- set_has_positive_int_value(); |
} else { |
goto handle_unusual; |
} |
@@ -12630,10 +13411,10 @@ bool UninterpretedOption::MergePartialFromCodedStream( |
case 5: { |
if (tag == 40) { |
parse_negative_int_value: |
+ set_has_negative_int_value(); |
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
input, &negative_int_value_))); |
- set_has_negative_int_value(); |
} else { |
goto handle_unusual; |
} |
@@ -12645,10 +13426,10 @@ bool UninterpretedOption::MergePartialFromCodedStream( |
case 6: { |
if (tag == 49) { |
parse_double_value: |
+ set_has_double_value(); |
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( |
input, &double_value_))); |
- set_has_double_value(); |
} else { |
goto handle_unusual; |
} |
@@ -12765,14 +13546,15 @@ void UninterpretedOption::SerializeWithCachedSizes( |
// @@protoc_insertion_point(serialize_end:google.protobuf.UninterpretedOption) |
} |
-::google::protobuf::uint8* UninterpretedOption::SerializeWithCachedSizesToArray( |
- ::google::protobuf::uint8* target) const { |
+::google::protobuf::uint8* UninterpretedOption::InternalSerializeWithCachedSizesToArray( |
+ bool deterministic, ::google::protobuf::uint8* target) const { |
+ (void)deterministic; // Unused |
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.UninterpretedOption) |
// repeated .google.protobuf.UninterpretedOption.NamePart name = 2; |
for (unsigned int i = 0, n = this->name_size(); i < n; i++) { |
target = ::google::protobuf::internal::WireFormatLite:: |
- WriteMessageNoVirtualToArray( |
- 2, this->name(i), target); |
+ InternalWriteMessageNoVirtualToArray( |
+ 2, this->name(i), false, target); |
} |
// optional string identifier_value = 3; |
@@ -12827,9 +13609,9 @@ void UninterpretedOption::SerializeWithCachedSizes( |
return target; |
} |
-int UninterpretedOption::ByteSize() const { |
+size_t UninterpretedOption::ByteSizeLong() const { |
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.UninterpretedOption) |
- int total_size = 0; |
+ size_t total_size = 0; |
if (_has_bits_[1 / 32] & 126u) { |
// optional string identifier_value = 3; |
@@ -12874,11 +13656,14 @@ int UninterpretedOption::ByteSize() const { |
} |
// repeated .google.protobuf.UninterpretedOption.NamePart name = 2; |
- total_size += 1 * this->name_size(); |
- for (int i = 0; i < this->name_size(); i++) { |
- total_size += |
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
- this->name(i)); |
+ { |
+ unsigned int count = this->name_size(); |
+ total_size += 1UL * count; |
+ for (unsigned int i = 0; i < count; i++) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->name(i)); |
+ } |
} |
if (_internal_metadata_.have_unknown_fields()) { |
@@ -12886,8 +13671,9 @@ int UninterpretedOption::ByteSize() const { |
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
unknown_fields()); |
} |
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
- _cached_size_ = total_size; |
+ _cached_size_ = cached_size; |
GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
return total_size; |
} |
@@ -12895,7 +13681,7 @@ int UninterpretedOption::ByteSize() const { |
void UninterpretedOption::MergeFrom(const ::google::protobuf::Message& from) { |
// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.UninterpretedOption) |
if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
- const UninterpretedOption* source = |
+ const UninterpretedOption* source = |
::google::protobuf::internal::DynamicCastToGenerated<const UninterpretedOption>( |
&from); |
if (source == NULL) { |
@@ -12903,13 +13689,21 @@ void UninterpretedOption::MergeFrom(const ::google::protobuf::Message& from) { |
::google::protobuf::internal::ReflectionOps::Merge(from, this); |
} else { |
// @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.UninterpretedOption) |
- MergeFrom(*source); |
+ UnsafeMergeFrom(*source); |
} |
} |
void UninterpretedOption::MergeFrom(const UninterpretedOption& from) { |
// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.UninterpretedOption) |
- if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
+ if (GOOGLE_PREDICT_TRUE(&from != this)) { |
+ UnsafeMergeFrom(from); |
+ } else { |
+ MergeFromFail(__LINE__); |
+ } |
+} |
+ |
+void UninterpretedOption::UnsafeMergeFrom(const UninterpretedOption& from) { |
+ GOOGLE_DCHECK(&from != this); |
name_.MergeFrom(from.name_); |
if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { |
if (from.has_identifier_value()) { |
@@ -12935,7 +13729,8 @@ void UninterpretedOption::MergeFrom(const UninterpretedOption& from) { |
} |
} |
if (from._internal_metadata_.have_unknown_fields()) { |
- mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+ ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( |
+ from.unknown_fields(), &_internal_metadata_); |
} |
} |
@@ -12950,7 +13745,7 @@ void UninterpretedOption::CopyFrom(const UninterpretedOption& from) { |
// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.UninterpretedOption) |
if (&from == this) return; |
Clear(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
} |
bool UninterpretedOption::IsInitialized() const { |
@@ -13001,37 +13796,37 @@ void UninterpretedOption_NamePart::clear_name_part() { |
name_part_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
clear_has_name_part(); |
} |
- const ::std::string& UninterpretedOption_NamePart::name_part() const { |
+const ::std::string& UninterpretedOption_NamePart::name_part() const { |
// @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.NamePart.name_part) |
return name_part_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void UninterpretedOption_NamePart::set_name_part(const ::std::string& value) { |
+void UninterpretedOption_NamePart::set_name_part(const ::std::string& value) { |
set_has_name_part(); |
name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
// @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.NamePart.name_part) |
} |
- void UninterpretedOption_NamePart::set_name_part(const char* value) { |
+void UninterpretedOption_NamePart::set_name_part(const char* value) { |
set_has_name_part(); |
name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
// @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.NamePart.name_part) |
} |
- void UninterpretedOption_NamePart::set_name_part(const char* value, size_t size) { |
+void UninterpretedOption_NamePart::set_name_part(const char* value, size_t size) { |
set_has_name_part(); |
name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
::std::string(reinterpret_cast<const char*>(value), size)); |
// @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.NamePart.name_part) |
} |
- ::std::string* UninterpretedOption_NamePart::mutable_name_part() { |
+::std::string* UninterpretedOption_NamePart::mutable_name_part() { |
set_has_name_part(); |
// @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.NamePart.name_part) |
return name_part_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- ::std::string* UninterpretedOption_NamePart::release_name_part() { |
+::std::string* UninterpretedOption_NamePart::release_name_part() { |
// @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.NamePart.name_part) |
clear_has_name_part(); |
return name_part_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void UninterpretedOption_NamePart::set_allocated_name_part(::std::string* name_part) { |
+void UninterpretedOption_NamePart::set_allocated_name_part(::std::string* name_part) { |
if (name_part != NULL) { |
set_has_name_part(); |
} else { |
@@ -13055,16 +13850,19 @@ void UninterpretedOption_NamePart::clear_is_extension() { |
is_extension_ = false; |
clear_has_is_extension(); |
} |
- bool UninterpretedOption_NamePart::is_extension() const { |
+bool UninterpretedOption_NamePart::is_extension() const { |
// @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.NamePart.is_extension) |
return is_extension_; |
} |
- void UninterpretedOption_NamePart::set_is_extension(bool value) { |
+void UninterpretedOption_NamePart::set_is_extension(bool value) { |
set_has_is_extension(); |
is_extension_ = value; |
// @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.NamePart.is_extension) |
} |
+inline const UninterpretedOption_NamePart* UninterpretedOption_NamePart::internal_default_instance() { |
+ return &UninterpretedOption_NamePart_default_instance_.get(); |
+} |
// ------------------------------------------------------------------- |
// UninterpretedOption |
@@ -13113,37 +13911,37 @@ void UninterpretedOption::clear_identifier_value() { |
identifier_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
clear_has_identifier_value(); |
} |
- const ::std::string& UninterpretedOption::identifier_value() const { |
+const ::std::string& UninterpretedOption::identifier_value() const { |
// @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.identifier_value) |
return identifier_value_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void UninterpretedOption::set_identifier_value(const ::std::string& value) { |
+void UninterpretedOption::set_identifier_value(const ::std::string& value) { |
set_has_identifier_value(); |
identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
// @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.identifier_value) |
} |
- void UninterpretedOption::set_identifier_value(const char* value) { |
+void UninterpretedOption::set_identifier_value(const char* value) { |
set_has_identifier_value(); |
identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
// @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.identifier_value) |
} |
- void UninterpretedOption::set_identifier_value(const char* value, size_t size) { |
+void UninterpretedOption::set_identifier_value(const char* value, size_t size) { |
set_has_identifier_value(); |
identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
::std::string(reinterpret_cast<const char*>(value), size)); |
// @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.identifier_value) |
} |
- ::std::string* UninterpretedOption::mutable_identifier_value() { |
+::std::string* UninterpretedOption::mutable_identifier_value() { |
set_has_identifier_value(); |
// @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.identifier_value) |
return identifier_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- ::std::string* UninterpretedOption::release_identifier_value() { |
+::std::string* UninterpretedOption::release_identifier_value() { |
// @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.identifier_value) |
clear_has_identifier_value(); |
return identifier_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void UninterpretedOption::set_allocated_identifier_value(::std::string* identifier_value) { |
+void UninterpretedOption::set_allocated_identifier_value(::std::string* identifier_value) { |
if (identifier_value != NULL) { |
set_has_identifier_value(); |
} else { |
@@ -13167,11 +13965,11 @@ void UninterpretedOption::clear_positive_int_value() { |
positive_int_value_ = GOOGLE_ULONGLONG(0); |
clear_has_positive_int_value(); |
} |
- ::google::protobuf::uint64 UninterpretedOption::positive_int_value() const { |
+::google::protobuf::uint64 UninterpretedOption::positive_int_value() const { |
// @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.positive_int_value) |
return positive_int_value_; |
} |
- void UninterpretedOption::set_positive_int_value(::google::protobuf::uint64 value) { |
+void UninterpretedOption::set_positive_int_value(::google::protobuf::uint64 value) { |
set_has_positive_int_value(); |
positive_int_value_ = value; |
// @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.positive_int_value) |
@@ -13191,11 +13989,11 @@ void UninterpretedOption::clear_negative_int_value() { |
negative_int_value_ = GOOGLE_LONGLONG(0); |
clear_has_negative_int_value(); |
} |
- ::google::protobuf::int64 UninterpretedOption::negative_int_value() const { |
+::google::protobuf::int64 UninterpretedOption::negative_int_value() const { |
// @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.negative_int_value) |
return negative_int_value_; |
} |
- void UninterpretedOption::set_negative_int_value(::google::protobuf::int64 value) { |
+void UninterpretedOption::set_negative_int_value(::google::protobuf::int64 value) { |
set_has_negative_int_value(); |
negative_int_value_ = value; |
// @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.negative_int_value) |
@@ -13215,11 +14013,11 @@ void UninterpretedOption::clear_double_value() { |
double_value_ = 0; |
clear_has_double_value(); |
} |
- double UninterpretedOption::double_value() const { |
+double UninterpretedOption::double_value() const { |
// @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.double_value) |
return double_value_; |
} |
- void UninterpretedOption::set_double_value(double value) { |
+void UninterpretedOption::set_double_value(double value) { |
set_has_double_value(); |
double_value_ = value; |
// @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.double_value) |
@@ -13239,37 +14037,37 @@ void UninterpretedOption::clear_string_value() { |
string_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
clear_has_string_value(); |
} |
- const ::std::string& UninterpretedOption::string_value() const { |
+const ::std::string& UninterpretedOption::string_value() const { |
// @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.string_value) |
return string_value_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void UninterpretedOption::set_string_value(const ::std::string& value) { |
+void UninterpretedOption::set_string_value(const ::std::string& value) { |
set_has_string_value(); |
string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
// @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.string_value) |
} |
- void UninterpretedOption::set_string_value(const char* value) { |
+void UninterpretedOption::set_string_value(const char* value) { |
set_has_string_value(); |
string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
// @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.string_value) |
} |
- void UninterpretedOption::set_string_value(const void* value, size_t size) { |
+void UninterpretedOption::set_string_value(const void* value, size_t size) { |
set_has_string_value(); |
string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
::std::string(reinterpret_cast<const char*>(value), size)); |
// @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.string_value) |
} |
- ::std::string* UninterpretedOption::mutable_string_value() { |
+::std::string* UninterpretedOption::mutable_string_value() { |
set_has_string_value(); |
// @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.string_value) |
return string_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- ::std::string* UninterpretedOption::release_string_value() { |
+::std::string* UninterpretedOption::release_string_value() { |
// @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.string_value) |
clear_has_string_value(); |
return string_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void UninterpretedOption::set_allocated_string_value(::std::string* string_value) { |
+void UninterpretedOption::set_allocated_string_value(::std::string* string_value) { |
if (string_value != NULL) { |
set_has_string_value(); |
} else { |
@@ -13293,37 +14091,37 @@ void UninterpretedOption::clear_aggregate_value() { |
aggregate_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
clear_has_aggregate_value(); |
} |
- const ::std::string& UninterpretedOption::aggregate_value() const { |
+const ::std::string& UninterpretedOption::aggregate_value() const { |
// @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.aggregate_value) |
return aggregate_value_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void UninterpretedOption::set_aggregate_value(const ::std::string& value) { |
+void UninterpretedOption::set_aggregate_value(const ::std::string& value) { |
set_has_aggregate_value(); |
aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
// @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.aggregate_value) |
} |
- void UninterpretedOption::set_aggregate_value(const char* value) { |
+void UninterpretedOption::set_aggregate_value(const char* value) { |
set_has_aggregate_value(); |
aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
// @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.aggregate_value) |
} |
- void UninterpretedOption::set_aggregate_value(const char* value, size_t size) { |
+void UninterpretedOption::set_aggregate_value(const char* value, size_t size) { |
set_has_aggregate_value(); |
aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
::std::string(reinterpret_cast<const char*>(value), size)); |
// @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.aggregate_value) |
} |
- ::std::string* UninterpretedOption::mutable_aggregate_value() { |
+::std::string* UninterpretedOption::mutable_aggregate_value() { |
set_has_aggregate_value(); |
// @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.aggregate_value) |
return aggregate_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- ::std::string* UninterpretedOption::release_aggregate_value() { |
+::std::string* UninterpretedOption::release_aggregate_value() { |
// @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.aggregate_value) |
clear_has_aggregate_value(); |
return aggregate_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void UninterpretedOption::set_allocated_aggregate_value(::std::string* aggregate_value) { |
+void UninterpretedOption::set_allocated_aggregate_value(::std::string* aggregate_value) { |
if (aggregate_value != NULL) { |
set_has_aggregate_value(); |
} else { |
@@ -13333,6 +14131,9 @@ void UninterpretedOption::clear_aggregate_value() { |
// @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.aggregate_value) |
} |
+inline const UninterpretedOption* UninterpretedOption::internal_default_instance() { |
+ return &UninterpretedOption_default_instance_.get(); |
+} |
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
// =================================================================== |
@@ -13347,6 +14148,7 @@ const int SourceCodeInfo_Location::kLeadingDetachedCommentsFieldNumber; |
SourceCodeInfo_Location::SourceCodeInfo_Location() |
: ::google::protobuf::Message(), _internal_metadata_(NULL) { |
+ if (this != internal_default_instance()) protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
SharedCtor(); |
// @@protoc_insertion_point(constructor:google.protobuf.SourceCodeInfo.Location) |
} |
@@ -13358,16 +14160,14 @@ SourceCodeInfo_Location::SourceCodeInfo_Location(const SourceCodeInfo_Location& |
: ::google::protobuf::Message(), |
_internal_metadata_(NULL) { |
SharedCtor(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
// @@protoc_insertion_point(copy_constructor:google.protobuf.SourceCodeInfo.Location) |
} |
void SourceCodeInfo_Location::SharedCtor() { |
- ::google::protobuf::internal::GetEmptyString(); |
_cached_size_ = 0; |
leading_comments_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
trailing_comments_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
} |
SourceCodeInfo_Location::~SourceCodeInfo_Location() { |
@@ -13378,8 +14178,6 @@ SourceCodeInfo_Location::~SourceCodeInfo_Location() { |
void SourceCodeInfo_Location::SharedDtor() { |
leading_comments_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
trailing_comments_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
- if (this != default_instance_) { |
- } |
} |
void SourceCodeInfo_Location::SetCachedSize(int size) const { |
@@ -13393,11 +14191,11 @@ const ::google::protobuf::Descriptor* SourceCodeInfo_Location::descriptor() { |
} |
const SourceCodeInfo_Location& SourceCodeInfo_Location::default_instance() { |
- if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
- return *default_instance_; |
+ protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
+ return *internal_default_instance(); |
} |
-SourceCodeInfo_Location* SourceCodeInfo_Location::default_instance_ = NULL; |
+::google::protobuf::internal::ExplicitlyConstructed<SourceCodeInfo_Location> SourceCodeInfo_Location_default_instance_; |
SourceCodeInfo_Location* SourceCodeInfo_Location::New(::google::protobuf::Arena* arena) const { |
SourceCodeInfo_Location* n = new SourceCodeInfo_Location; |
@@ -13420,7 +14218,7 @@ void SourceCodeInfo_Location::Clear() { |
path_.Clear(); |
span_.Clear(); |
leading_detached_comments_.Clear(); |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ _has_bits_.Clear(); |
if (_internal_metadata_.have_unknown_fields()) { |
mutable_unknown_fields()->Clear(); |
} |
@@ -13606,8 +14404,9 @@ void SourceCodeInfo_Location::SerializeWithCachedSizes( |
// @@protoc_insertion_point(serialize_end:google.protobuf.SourceCodeInfo.Location) |
} |
-::google::protobuf::uint8* SourceCodeInfo_Location::SerializeWithCachedSizesToArray( |
- ::google::protobuf::uint8* target) const { |
+::google::protobuf::uint8* SourceCodeInfo_Location::InternalSerializeWithCachedSizesToArray( |
+ bool deterministic, ::google::protobuf::uint8* target) const { |
+ (void)deterministic; // Unused |
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.SourceCodeInfo.Location) |
// repeated int32 path = 1 [packed = true]; |
if (this->path_size() > 0) { |
@@ -13677,9 +14476,9 @@ void SourceCodeInfo_Location::SerializeWithCachedSizes( |
return target; |
} |
-int SourceCodeInfo_Location::ByteSize() const { |
+size_t SourceCodeInfo_Location::ByteSizeLong() const { |
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.SourceCodeInfo.Location) |
- int total_size = 0; |
+ size_t total_size = 0; |
if (_has_bits_[2 / 32] & 12u) { |
// optional string leading_comments = 3; |
@@ -13699,8 +14498,9 @@ int SourceCodeInfo_Location::ByteSize() const { |
} |
// repeated int32 path = 1 [packed = true]; |
{ |
- int data_size = 0; |
- for (int i = 0; i < this->path_size(); i++) { |
+ size_t data_size = 0; |
+ unsigned int count = this->path_size(); |
+ for (unsigned int i = 0; i < count; i++) { |
data_size += ::google::protobuf::internal::WireFormatLite:: |
Int32Size(this->path(i)); |
} |
@@ -13708,16 +14508,18 @@ int SourceCodeInfo_Location::ByteSize() const { |
total_size += 1 + |
::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
} |
+ int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); |
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
- _path_cached_byte_size_ = data_size; |
+ _path_cached_byte_size_ = cached_size; |
GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
total_size += data_size; |
} |
// repeated int32 span = 2 [packed = true]; |
{ |
- int data_size = 0; |
- for (int i = 0; i < this->span_size(); i++) { |
+ size_t data_size = 0; |
+ unsigned int count = this->span_size(); |
+ for (unsigned int i = 0; i < count; i++) { |
data_size += ::google::protobuf::internal::WireFormatLite:: |
Int32Size(this->span(i)); |
} |
@@ -13725,14 +14527,16 @@ int SourceCodeInfo_Location::ByteSize() const { |
total_size += 1 + |
::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
} |
+ int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); |
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
- _span_cached_byte_size_ = data_size; |
+ _span_cached_byte_size_ = cached_size; |
GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
total_size += data_size; |
} |
// repeated string leading_detached_comments = 6; |
- total_size += 1 * this->leading_detached_comments_size(); |
+ total_size += 1 * |
+ ::google::protobuf::internal::FromIntSize(this->leading_detached_comments_size()); |
for (int i = 0; i < this->leading_detached_comments_size(); i++) { |
total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
this->leading_detached_comments(i)); |
@@ -13743,8 +14547,9 @@ int SourceCodeInfo_Location::ByteSize() const { |
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
unknown_fields()); |
} |
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
- _cached_size_ = total_size; |
+ _cached_size_ = cached_size; |
GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
return total_size; |
} |
@@ -13752,7 +14557,7 @@ int SourceCodeInfo_Location::ByteSize() const { |
void SourceCodeInfo_Location::MergeFrom(const ::google::protobuf::Message& from) { |
// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.SourceCodeInfo.Location) |
if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
- const SourceCodeInfo_Location* source = |
+ const SourceCodeInfo_Location* source = |
::google::protobuf::internal::DynamicCastToGenerated<const SourceCodeInfo_Location>( |
&from); |
if (source == NULL) { |
@@ -13760,16 +14565,24 @@ void SourceCodeInfo_Location::MergeFrom(const ::google::protobuf::Message& from) |
::google::protobuf::internal::ReflectionOps::Merge(from, this); |
} else { |
// @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.SourceCodeInfo.Location) |
- MergeFrom(*source); |
+ UnsafeMergeFrom(*source); |
} |
} |
void SourceCodeInfo_Location::MergeFrom(const SourceCodeInfo_Location& from) { |
// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.SourceCodeInfo.Location) |
- if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
- path_.MergeFrom(from.path_); |
- span_.MergeFrom(from.span_); |
- leading_detached_comments_.MergeFrom(from.leading_detached_comments_); |
+ if (GOOGLE_PREDICT_TRUE(&from != this)) { |
+ UnsafeMergeFrom(from); |
+ } else { |
+ MergeFromFail(__LINE__); |
+ } |
+} |
+ |
+void SourceCodeInfo_Location::UnsafeMergeFrom(const SourceCodeInfo_Location& from) { |
+ GOOGLE_DCHECK(&from != this); |
+ path_.UnsafeMergeFrom(from.path_); |
+ span_.UnsafeMergeFrom(from.span_); |
+ leading_detached_comments_.UnsafeMergeFrom(from.leading_detached_comments_); |
if (from._has_bits_[2 / 32] & (0xffu << (2 % 32))) { |
if (from.has_leading_comments()) { |
set_has_leading_comments(); |
@@ -13781,7 +14594,8 @@ void SourceCodeInfo_Location::MergeFrom(const SourceCodeInfo_Location& from) { |
} |
} |
if (from._internal_metadata_.have_unknown_fields()) { |
- mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+ ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( |
+ from.unknown_fields(), &_internal_metadata_); |
} |
} |
@@ -13796,7 +14610,7 @@ void SourceCodeInfo_Location::CopyFrom(const SourceCodeInfo_Location& from) { |
// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.SourceCodeInfo.Location) |
if (&from == this) return; |
Clear(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
} |
bool SourceCodeInfo_Location::IsInitialized() const { |
@@ -13836,6 +14650,7 @@ const int SourceCodeInfo::kLocationFieldNumber; |
SourceCodeInfo::SourceCodeInfo() |
: ::google::protobuf::Message(), _internal_metadata_(NULL) { |
+ if (this != internal_default_instance()) protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
SharedCtor(); |
// @@protoc_insertion_point(constructor:google.protobuf.SourceCodeInfo) |
} |
@@ -13847,13 +14662,12 @@ SourceCodeInfo::SourceCodeInfo(const SourceCodeInfo& from) |
: ::google::protobuf::Message(), |
_internal_metadata_(NULL) { |
SharedCtor(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
// @@protoc_insertion_point(copy_constructor:google.protobuf.SourceCodeInfo) |
} |
void SourceCodeInfo::SharedCtor() { |
_cached_size_ = 0; |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
} |
SourceCodeInfo::~SourceCodeInfo() { |
@@ -13862,8 +14676,6 @@ SourceCodeInfo::~SourceCodeInfo() { |
} |
void SourceCodeInfo::SharedDtor() { |
- if (this != default_instance_) { |
- } |
} |
void SourceCodeInfo::SetCachedSize(int size) const { |
@@ -13877,11 +14689,11 @@ const ::google::protobuf::Descriptor* SourceCodeInfo::descriptor() { |
} |
const SourceCodeInfo& SourceCodeInfo::default_instance() { |
- if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
- return *default_instance_; |
+ protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
+ return *internal_default_instance(); |
} |
-SourceCodeInfo* SourceCodeInfo::default_instance_ = NULL; |
+::google::protobuf::internal::ExplicitlyConstructed<SourceCodeInfo> SourceCodeInfo_default_instance_; |
SourceCodeInfo* SourceCodeInfo::New(::google::protobuf::Arena* arena) const { |
SourceCodeInfo* n = new SourceCodeInfo; |
@@ -13894,7 +14706,7 @@ SourceCodeInfo* SourceCodeInfo::New(::google::protobuf::Arena* arena) const { |
void SourceCodeInfo::Clear() { |
// @@protoc_insertion_point(message_clear_start:google.protobuf.SourceCodeInfo) |
location_.Clear(); |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ _has_bits_.Clear(); |
if (_internal_metadata_.have_unknown_fields()) { |
mutable_unknown_fields()->Clear(); |
} |
@@ -13964,14 +14776,15 @@ void SourceCodeInfo::SerializeWithCachedSizes( |
// @@protoc_insertion_point(serialize_end:google.protobuf.SourceCodeInfo) |
} |
-::google::protobuf::uint8* SourceCodeInfo::SerializeWithCachedSizesToArray( |
- ::google::protobuf::uint8* target) const { |
+::google::protobuf::uint8* SourceCodeInfo::InternalSerializeWithCachedSizesToArray( |
+ bool deterministic, ::google::protobuf::uint8* target) const { |
+ (void)deterministic; // Unused |
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.SourceCodeInfo) |
// repeated .google.protobuf.SourceCodeInfo.Location location = 1; |
for (unsigned int i = 0, n = this->location_size(); i < n; i++) { |
target = ::google::protobuf::internal::WireFormatLite:: |
- WriteMessageNoVirtualToArray( |
- 1, this->location(i), target); |
+ InternalWriteMessageNoVirtualToArray( |
+ 1, this->location(i), false, target); |
} |
if (_internal_metadata_.have_unknown_fields()) { |
@@ -13982,16 +14795,19 @@ void SourceCodeInfo::SerializeWithCachedSizes( |
return target; |
} |
-int SourceCodeInfo::ByteSize() const { |
+size_t SourceCodeInfo::ByteSizeLong() const { |
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.SourceCodeInfo) |
- int total_size = 0; |
+ size_t total_size = 0; |
// repeated .google.protobuf.SourceCodeInfo.Location location = 1; |
- total_size += 1 * this->location_size(); |
- for (int i = 0; i < this->location_size(); i++) { |
- total_size += |
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
- this->location(i)); |
+ { |
+ unsigned int count = this->location_size(); |
+ total_size += 1UL * count; |
+ for (unsigned int i = 0; i < count; i++) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->location(i)); |
+ } |
} |
if (_internal_metadata_.have_unknown_fields()) { |
@@ -13999,8 +14815,9 @@ int SourceCodeInfo::ByteSize() const { |
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
unknown_fields()); |
} |
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
- _cached_size_ = total_size; |
+ _cached_size_ = cached_size; |
GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
return total_size; |
} |
@@ -14008,7 +14825,7 @@ int SourceCodeInfo::ByteSize() const { |
void SourceCodeInfo::MergeFrom(const ::google::protobuf::Message& from) { |
// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.SourceCodeInfo) |
if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
- const SourceCodeInfo* source = |
+ const SourceCodeInfo* source = |
::google::protobuf::internal::DynamicCastToGenerated<const SourceCodeInfo>( |
&from); |
if (source == NULL) { |
@@ -14016,16 +14833,25 @@ void SourceCodeInfo::MergeFrom(const ::google::protobuf::Message& from) { |
::google::protobuf::internal::ReflectionOps::Merge(from, this); |
} else { |
// @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.SourceCodeInfo) |
- MergeFrom(*source); |
+ UnsafeMergeFrom(*source); |
} |
} |
void SourceCodeInfo::MergeFrom(const SourceCodeInfo& from) { |
// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.SourceCodeInfo) |
- if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
+ if (GOOGLE_PREDICT_TRUE(&from != this)) { |
+ UnsafeMergeFrom(from); |
+ } else { |
+ MergeFromFail(__LINE__); |
+ } |
+} |
+ |
+void SourceCodeInfo::UnsafeMergeFrom(const SourceCodeInfo& from) { |
+ GOOGLE_DCHECK(&from != this); |
location_.MergeFrom(from.location_); |
if (from._internal_metadata_.have_unknown_fields()) { |
- mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+ ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( |
+ from.unknown_fields(), &_internal_metadata_); |
} |
} |
@@ -14040,7 +14866,7 @@ void SourceCodeInfo::CopyFrom(const SourceCodeInfo& from) { |
// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.SourceCodeInfo) |
if (&from == this) return; |
Clear(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
} |
bool SourceCodeInfo::IsInitialized() const { |
@@ -14077,24 +14903,24 @@ int SourceCodeInfo_Location::path_size() const { |
void SourceCodeInfo_Location::clear_path() { |
path_.Clear(); |
} |
- ::google::protobuf::int32 SourceCodeInfo_Location::path(int index) const { |
+::google::protobuf::int32 SourceCodeInfo_Location::path(int index) const { |
// @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.path) |
return path_.Get(index); |
} |
- void SourceCodeInfo_Location::set_path(int index, ::google::protobuf::int32 value) { |
+void SourceCodeInfo_Location::set_path(int index, ::google::protobuf::int32 value) { |
path_.Set(index, value); |
// @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.path) |
} |
- void SourceCodeInfo_Location::add_path(::google::protobuf::int32 value) { |
+void SourceCodeInfo_Location::add_path(::google::protobuf::int32 value) { |
path_.Add(value); |
// @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.path) |
} |
- const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& |
+const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& |
SourceCodeInfo_Location::path() const { |
// @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.path) |
return path_; |
} |
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* |
+::google::protobuf::RepeatedField< ::google::protobuf::int32 >* |
SourceCodeInfo_Location::mutable_path() { |
// @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.path) |
return &path_; |
@@ -14107,24 +14933,24 @@ int SourceCodeInfo_Location::span_size() const { |
void SourceCodeInfo_Location::clear_span() { |
span_.Clear(); |
} |
- ::google::protobuf::int32 SourceCodeInfo_Location::span(int index) const { |
+::google::protobuf::int32 SourceCodeInfo_Location::span(int index) const { |
// @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.span) |
return span_.Get(index); |
} |
- void SourceCodeInfo_Location::set_span(int index, ::google::protobuf::int32 value) { |
+void SourceCodeInfo_Location::set_span(int index, ::google::protobuf::int32 value) { |
span_.Set(index, value); |
// @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.span) |
} |
- void SourceCodeInfo_Location::add_span(::google::protobuf::int32 value) { |
+void SourceCodeInfo_Location::add_span(::google::protobuf::int32 value) { |
span_.Add(value); |
// @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.span) |
} |
- const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& |
+const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& |
SourceCodeInfo_Location::span() const { |
// @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.span) |
return span_; |
} |
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* |
+::google::protobuf::RepeatedField< ::google::protobuf::int32 >* |
SourceCodeInfo_Location::mutable_span() { |
// @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.span) |
return &span_; |
@@ -14144,37 +14970,37 @@ void SourceCodeInfo_Location::clear_leading_comments() { |
leading_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
clear_has_leading_comments(); |
} |
- const ::std::string& SourceCodeInfo_Location::leading_comments() const { |
+const ::std::string& SourceCodeInfo_Location::leading_comments() const { |
// @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.leading_comments) |
return leading_comments_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void SourceCodeInfo_Location::set_leading_comments(const ::std::string& value) { |
+void SourceCodeInfo_Location::set_leading_comments(const ::std::string& value) { |
set_has_leading_comments(); |
leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
// @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.leading_comments) |
} |
- void SourceCodeInfo_Location::set_leading_comments(const char* value) { |
+void SourceCodeInfo_Location::set_leading_comments(const char* value) { |
set_has_leading_comments(); |
leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
// @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Location.leading_comments) |
} |
- void SourceCodeInfo_Location::set_leading_comments(const char* value, size_t size) { |
+void SourceCodeInfo_Location::set_leading_comments(const char* value, size_t size) { |
set_has_leading_comments(); |
leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
::std::string(reinterpret_cast<const char*>(value), size)); |
// @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.Location.leading_comments) |
} |
- ::std::string* SourceCodeInfo_Location::mutable_leading_comments() { |
+::std::string* SourceCodeInfo_Location::mutable_leading_comments() { |
set_has_leading_comments(); |
// @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.leading_comments) |
return leading_comments_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- ::std::string* SourceCodeInfo_Location::release_leading_comments() { |
+::std::string* SourceCodeInfo_Location::release_leading_comments() { |
// @@protoc_insertion_point(field_release:google.protobuf.SourceCodeInfo.Location.leading_comments) |
clear_has_leading_comments(); |
return leading_comments_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void SourceCodeInfo_Location::set_allocated_leading_comments(::std::string* leading_comments) { |
+void SourceCodeInfo_Location::set_allocated_leading_comments(::std::string* leading_comments) { |
if (leading_comments != NULL) { |
set_has_leading_comments(); |
} else { |
@@ -14198,37 +15024,37 @@ void SourceCodeInfo_Location::clear_trailing_comments() { |
trailing_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
clear_has_trailing_comments(); |
} |
- const ::std::string& SourceCodeInfo_Location::trailing_comments() const { |
+const ::std::string& SourceCodeInfo_Location::trailing_comments() const { |
// @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.trailing_comments) |
return trailing_comments_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void SourceCodeInfo_Location::set_trailing_comments(const ::std::string& value) { |
+void SourceCodeInfo_Location::set_trailing_comments(const ::std::string& value) { |
set_has_trailing_comments(); |
trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
// @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.trailing_comments) |
} |
- void SourceCodeInfo_Location::set_trailing_comments(const char* value) { |
+void SourceCodeInfo_Location::set_trailing_comments(const char* value) { |
set_has_trailing_comments(); |
trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
// @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Location.trailing_comments) |
} |
- void SourceCodeInfo_Location::set_trailing_comments(const char* value, size_t size) { |
+void SourceCodeInfo_Location::set_trailing_comments(const char* value, size_t size) { |
set_has_trailing_comments(); |
trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
::std::string(reinterpret_cast<const char*>(value), size)); |
// @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.Location.trailing_comments) |
} |
- ::std::string* SourceCodeInfo_Location::mutable_trailing_comments() { |
+::std::string* SourceCodeInfo_Location::mutable_trailing_comments() { |
set_has_trailing_comments(); |
// @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.trailing_comments) |
return trailing_comments_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- ::std::string* SourceCodeInfo_Location::release_trailing_comments() { |
+::std::string* SourceCodeInfo_Location::release_trailing_comments() { |
// @@protoc_insertion_point(field_release:google.protobuf.SourceCodeInfo.Location.trailing_comments) |
clear_has_trailing_comments(); |
return trailing_comments_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void SourceCodeInfo_Location::set_allocated_trailing_comments(::std::string* trailing_comments) { |
+void SourceCodeInfo_Location::set_allocated_trailing_comments(::std::string* trailing_comments) { |
if (trailing_comments != NULL) { |
set_has_trailing_comments(); |
} else { |
@@ -14245,54 +15071,57 @@ int SourceCodeInfo_Location::leading_detached_comments_size() const { |
void SourceCodeInfo_Location::clear_leading_detached_comments() { |
leading_detached_comments_.Clear(); |
} |
- const ::std::string& SourceCodeInfo_Location::leading_detached_comments(int index) const { |
+const ::std::string& SourceCodeInfo_Location::leading_detached_comments(int index) const { |
// @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.leading_detached_comments) |
return leading_detached_comments_.Get(index); |
} |
- ::std::string* SourceCodeInfo_Location::mutable_leading_detached_comments(int index) { |
+::std::string* SourceCodeInfo_Location::mutable_leading_detached_comments(int index) { |
// @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.leading_detached_comments) |
return leading_detached_comments_.Mutable(index); |
} |
- void SourceCodeInfo_Location::set_leading_detached_comments(int index, const ::std::string& value) { |
+void SourceCodeInfo_Location::set_leading_detached_comments(int index, const ::std::string& value) { |
// @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.leading_detached_comments) |
leading_detached_comments_.Mutable(index)->assign(value); |
} |
- void SourceCodeInfo_Location::set_leading_detached_comments(int index, const char* value) { |
+void SourceCodeInfo_Location::set_leading_detached_comments(int index, const char* value) { |
leading_detached_comments_.Mutable(index)->assign(value); |
// @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Location.leading_detached_comments) |
} |
- void SourceCodeInfo_Location::set_leading_detached_comments(int index, const char* value, size_t size) { |
+void SourceCodeInfo_Location::set_leading_detached_comments(int index, const char* value, size_t size) { |
leading_detached_comments_.Mutable(index)->assign( |
reinterpret_cast<const char*>(value), size); |
// @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.Location.leading_detached_comments) |
} |
- ::std::string* SourceCodeInfo_Location::add_leading_detached_comments() { |
+::std::string* SourceCodeInfo_Location::add_leading_detached_comments() { |
// @@protoc_insertion_point(field_add_mutable:google.protobuf.SourceCodeInfo.Location.leading_detached_comments) |
return leading_detached_comments_.Add(); |
} |
- void SourceCodeInfo_Location::add_leading_detached_comments(const ::std::string& value) { |
+void SourceCodeInfo_Location::add_leading_detached_comments(const ::std::string& value) { |
leading_detached_comments_.Add()->assign(value); |
// @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.leading_detached_comments) |
} |
- void SourceCodeInfo_Location::add_leading_detached_comments(const char* value) { |
+void SourceCodeInfo_Location::add_leading_detached_comments(const char* value) { |
leading_detached_comments_.Add()->assign(value); |
// @@protoc_insertion_point(field_add_char:google.protobuf.SourceCodeInfo.Location.leading_detached_comments) |
} |
- void SourceCodeInfo_Location::add_leading_detached_comments(const char* value, size_t size) { |
+void SourceCodeInfo_Location::add_leading_detached_comments(const char* value, size_t size) { |
leading_detached_comments_.Add()->assign(reinterpret_cast<const char*>(value), size); |
// @@protoc_insertion_point(field_add_pointer:google.protobuf.SourceCodeInfo.Location.leading_detached_comments) |
} |
- const ::google::protobuf::RepeatedPtrField< ::std::string>& |
+const ::google::protobuf::RepeatedPtrField< ::std::string>& |
SourceCodeInfo_Location::leading_detached_comments() const { |
// @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.leading_detached_comments) |
return leading_detached_comments_; |
} |
- ::google::protobuf::RepeatedPtrField< ::std::string>* |
+::google::protobuf::RepeatedPtrField< ::std::string>* |
SourceCodeInfo_Location::mutable_leading_detached_comments() { |
// @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.leading_detached_comments) |
return &leading_detached_comments_; |
} |
+inline const SourceCodeInfo_Location* SourceCodeInfo_Location::internal_default_instance() { |
+ return &SourceCodeInfo_Location_default_instance_.get(); |
+} |
// ------------------------------------------------------------------- |
// SourceCodeInfo |
@@ -14327,6 +15156,9 @@ SourceCodeInfo::location() const { |
return location_; |
} |
+inline const SourceCodeInfo* SourceCodeInfo::internal_default_instance() { |
+ return &SourceCodeInfo_default_instance_.get(); |
+} |
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
// =================================================================== |
@@ -14340,6 +15172,7 @@ const int GeneratedCodeInfo_Annotation::kEndFieldNumber; |
GeneratedCodeInfo_Annotation::GeneratedCodeInfo_Annotation() |
: ::google::protobuf::Message(), _internal_metadata_(NULL) { |
+ if (this != internal_default_instance()) protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
SharedCtor(); |
// @@protoc_insertion_point(constructor:google.protobuf.GeneratedCodeInfo.Annotation) |
} |
@@ -14351,17 +15184,15 @@ GeneratedCodeInfo_Annotation::GeneratedCodeInfo_Annotation(const GeneratedCodeIn |
: ::google::protobuf::Message(), |
_internal_metadata_(NULL) { |
SharedCtor(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
// @@protoc_insertion_point(copy_constructor:google.protobuf.GeneratedCodeInfo.Annotation) |
} |
void GeneratedCodeInfo_Annotation::SharedCtor() { |
- ::google::protobuf::internal::GetEmptyString(); |
_cached_size_ = 0; |
source_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
- begin_ = 0; |
- end_ = 0; |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ ::memset(&begin_, 0, reinterpret_cast<char*>(&end_) - |
+ reinterpret_cast<char*>(&begin_) + sizeof(end_)); |
} |
GeneratedCodeInfo_Annotation::~GeneratedCodeInfo_Annotation() { |
@@ -14371,8 +15202,6 @@ GeneratedCodeInfo_Annotation::~GeneratedCodeInfo_Annotation() { |
void GeneratedCodeInfo_Annotation::SharedDtor() { |
source_file_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
- if (this != default_instance_) { |
- } |
} |
void GeneratedCodeInfo_Annotation::SetCachedSize(int size) const { |
@@ -14386,11 +15215,11 @@ const ::google::protobuf::Descriptor* GeneratedCodeInfo_Annotation::descriptor() |
} |
const GeneratedCodeInfo_Annotation& GeneratedCodeInfo_Annotation::default_instance() { |
- if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
- return *default_instance_; |
+ protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
+ return *internal_default_instance(); |
} |
-GeneratedCodeInfo_Annotation* GeneratedCodeInfo_Annotation::default_instance_ = NULL; |
+::google::protobuf::internal::ExplicitlyConstructed<GeneratedCodeInfo_Annotation> GeneratedCodeInfo_Annotation_default_instance_; |
GeneratedCodeInfo_Annotation* GeneratedCodeInfo_Annotation::New(::google::protobuf::Arena* arena) const { |
GeneratedCodeInfo_Annotation* n = new GeneratedCodeInfo_Annotation; |
@@ -14414,7 +15243,7 @@ void GeneratedCodeInfo_Annotation::Clear() { |
#endif |
#define ZR_(first, last) do {\ |
- ::memset(&first, 0,\ |
+ ::memset(&(first), 0,\ |
ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ |
} while (0) |
@@ -14429,7 +15258,7 @@ void GeneratedCodeInfo_Annotation::Clear() { |
#undef ZR_ |
path_.Clear(); |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ _has_bits_.Clear(); |
if (_internal_metadata_.have_unknown_fields()) { |
mutable_unknown_fields()->Clear(); |
} |
@@ -14483,10 +15312,10 @@ bool GeneratedCodeInfo_Annotation::MergePartialFromCodedStream( |
case 3: { |
if (tag == 24) { |
parse_begin: |
+ set_has_begin(); |
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
input, &begin_))); |
- set_has_begin(); |
} else { |
goto handle_unusual; |
} |
@@ -14498,10 +15327,10 @@ bool GeneratedCodeInfo_Annotation::MergePartialFromCodedStream( |
case 4: { |
if (tag == 32) { |
parse_end: |
+ set_has_end(); |
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
input, &end_))); |
- set_has_end(); |
} else { |
goto handle_unusual; |
} |
@@ -14571,8 +15400,9 @@ void GeneratedCodeInfo_Annotation::SerializeWithCachedSizes( |
// @@protoc_insertion_point(serialize_end:google.protobuf.GeneratedCodeInfo.Annotation) |
} |
-::google::protobuf::uint8* GeneratedCodeInfo_Annotation::SerializeWithCachedSizesToArray( |
- ::google::protobuf::uint8* target) const { |
+::google::protobuf::uint8* GeneratedCodeInfo_Annotation::InternalSerializeWithCachedSizesToArray( |
+ bool deterministic, ::google::protobuf::uint8* target) const { |
+ (void)deterministic; // Unused |
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.GeneratedCodeInfo.Annotation) |
// repeated int32 path = 1 [packed = true]; |
if (this->path_size() > 0) { |
@@ -14617,9 +15447,9 @@ void GeneratedCodeInfo_Annotation::SerializeWithCachedSizes( |
return target; |
} |
-int GeneratedCodeInfo_Annotation::ByteSize() const { |
+size_t GeneratedCodeInfo_Annotation::ByteSizeLong() const { |
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.GeneratedCodeInfo.Annotation) |
- int total_size = 0; |
+ size_t total_size = 0; |
if (_has_bits_[1 / 32] & 14u) { |
// optional string source_file = 2; |
@@ -14646,8 +15476,9 @@ int GeneratedCodeInfo_Annotation::ByteSize() const { |
} |
// repeated int32 path = 1 [packed = true]; |
{ |
- int data_size = 0; |
- for (int i = 0; i < this->path_size(); i++) { |
+ size_t data_size = 0; |
+ unsigned int count = this->path_size(); |
+ for (unsigned int i = 0; i < count; i++) { |
data_size += ::google::protobuf::internal::WireFormatLite:: |
Int32Size(this->path(i)); |
} |
@@ -14655,8 +15486,9 @@ int GeneratedCodeInfo_Annotation::ByteSize() const { |
total_size += 1 + |
::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
} |
+ int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); |
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
- _path_cached_byte_size_ = data_size; |
+ _path_cached_byte_size_ = cached_size; |
GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
total_size += data_size; |
} |
@@ -14666,8 +15498,9 @@ int GeneratedCodeInfo_Annotation::ByteSize() const { |
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
unknown_fields()); |
} |
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
- _cached_size_ = total_size; |
+ _cached_size_ = cached_size; |
GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
return total_size; |
} |
@@ -14675,7 +15508,7 @@ int GeneratedCodeInfo_Annotation::ByteSize() const { |
void GeneratedCodeInfo_Annotation::MergeFrom(const ::google::protobuf::Message& from) { |
// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.GeneratedCodeInfo.Annotation) |
if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
- const GeneratedCodeInfo_Annotation* source = |
+ const GeneratedCodeInfo_Annotation* source = |
::google::protobuf::internal::DynamicCastToGenerated<const GeneratedCodeInfo_Annotation>( |
&from); |
if (source == NULL) { |
@@ -14683,14 +15516,22 @@ void GeneratedCodeInfo_Annotation::MergeFrom(const ::google::protobuf::Message& |
::google::protobuf::internal::ReflectionOps::Merge(from, this); |
} else { |
// @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.GeneratedCodeInfo.Annotation) |
- MergeFrom(*source); |
+ UnsafeMergeFrom(*source); |
} |
} |
void GeneratedCodeInfo_Annotation::MergeFrom(const GeneratedCodeInfo_Annotation& from) { |
// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.GeneratedCodeInfo.Annotation) |
- if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
- path_.MergeFrom(from.path_); |
+ if (GOOGLE_PREDICT_TRUE(&from != this)) { |
+ UnsafeMergeFrom(from); |
+ } else { |
+ MergeFromFail(__LINE__); |
+ } |
+} |
+ |
+void GeneratedCodeInfo_Annotation::UnsafeMergeFrom(const GeneratedCodeInfo_Annotation& from) { |
+ GOOGLE_DCHECK(&from != this); |
+ path_.UnsafeMergeFrom(from.path_); |
if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { |
if (from.has_source_file()) { |
set_has_source_file(); |
@@ -14704,7 +15545,8 @@ void GeneratedCodeInfo_Annotation::MergeFrom(const GeneratedCodeInfo_Annotation& |
} |
} |
if (from._internal_metadata_.have_unknown_fields()) { |
- mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+ ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( |
+ from.unknown_fields(), &_internal_metadata_); |
} |
} |
@@ -14719,7 +15561,7 @@ void GeneratedCodeInfo_Annotation::CopyFrom(const GeneratedCodeInfo_Annotation& |
// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.GeneratedCodeInfo.Annotation) |
if (&from == this) return; |
Clear(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
} |
bool GeneratedCodeInfo_Annotation::IsInitialized() const { |
@@ -14758,6 +15600,7 @@ const int GeneratedCodeInfo::kAnnotationFieldNumber; |
GeneratedCodeInfo::GeneratedCodeInfo() |
: ::google::protobuf::Message(), _internal_metadata_(NULL) { |
+ if (this != internal_default_instance()) protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
SharedCtor(); |
// @@protoc_insertion_point(constructor:google.protobuf.GeneratedCodeInfo) |
} |
@@ -14769,13 +15612,12 @@ GeneratedCodeInfo::GeneratedCodeInfo(const GeneratedCodeInfo& from) |
: ::google::protobuf::Message(), |
_internal_metadata_(NULL) { |
SharedCtor(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
// @@protoc_insertion_point(copy_constructor:google.protobuf.GeneratedCodeInfo) |
} |
void GeneratedCodeInfo::SharedCtor() { |
_cached_size_ = 0; |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
} |
GeneratedCodeInfo::~GeneratedCodeInfo() { |
@@ -14784,8 +15626,6 @@ GeneratedCodeInfo::~GeneratedCodeInfo() { |
} |
void GeneratedCodeInfo::SharedDtor() { |
- if (this != default_instance_) { |
- } |
} |
void GeneratedCodeInfo::SetCachedSize(int size) const { |
@@ -14799,11 +15639,11 @@ const ::google::protobuf::Descriptor* GeneratedCodeInfo::descriptor() { |
} |
const GeneratedCodeInfo& GeneratedCodeInfo::default_instance() { |
- if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
- return *default_instance_; |
+ protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
+ return *internal_default_instance(); |
} |
-GeneratedCodeInfo* GeneratedCodeInfo::default_instance_ = NULL; |
+::google::protobuf::internal::ExplicitlyConstructed<GeneratedCodeInfo> GeneratedCodeInfo_default_instance_; |
GeneratedCodeInfo* GeneratedCodeInfo::New(::google::protobuf::Arena* arena) const { |
GeneratedCodeInfo* n = new GeneratedCodeInfo; |
@@ -14816,7 +15656,7 @@ GeneratedCodeInfo* GeneratedCodeInfo::New(::google::protobuf::Arena* arena) cons |
void GeneratedCodeInfo::Clear() { |
// @@protoc_insertion_point(message_clear_start:google.protobuf.GeneratedCodeInfo) |
annotation_.Clear(); |
- ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ _has_bits_.Clear(); |
if (_internal_metadata_.have_unknown_fields()) { |
mutable_unknown_fields()->Clear(); |
} |
@@ -14886,14 +15726,15 @@ void GeneratedCodeInfo::SerializeWithCachedSizes( |
// @@protoc_insertion_point(serialize_end:google.protobuf.GeneratedCodeInfo) |
} |
-::google::protobuf::uint8* GeneratedCodeInfo::SerializeWithCachedSizesToArray( |
- ::google::protobuf::uint8* target) const { |
+::google::protobuf::uint8* GeneratedCodeInfo::InternalSerializeWithCachedSizesToArray( |
+ bool deterministic, ::google::protobuf::uint8* target) const { |
+ (void)deterministic; // Unused |
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.GeneratedCodeInfo) |
// repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; |
for (unsigned int i = 0, n = this->annotation_size(); i < n; i++) { |
target = ::google::protobuf::internal::WireFormatLite:: |
- WriteMessageNoVirtualToArray( |
- 1, this->annotation(i), target); |
+ InternalWriteMessageNoVirtualToArray( |
+ 1, this->annotation(i), false, target); |
} |
if (_internal_metadata_.have_unknown_fields()) { |
@@ -14904,16 +15745,19 @@ void GeneratedCodeInfo::SerializeWithCachedSizes( |
return target; |
} |
-int GeneratedCodeInfo::ByteSize() const { |
+size_t GeneratedCodeInfo::ByteSizeLong() const { |
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.GeneratedCodeInfo) |
- int total_size = 0; |
+ size_t total_size = 0; |
// repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; |
- total_size += 1 * this->annotation_size(); |
- for (int i = 0; i < this->annotation_size(); i++) { |
- total_size += |
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
- this->annotation(i)); |
+ { |
+ unsigned int count = this->annotation_size(); |
+ total_size += 1UL * count; |
+ for (unsigned int i = 0; i < count; i++) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->annotation(i)); |
+ } |
} |
if (_internal_metadata_.have_unknown_fields()) { |
@@ -14921,8 +15765,9 @@ int GeneratedCodeInfo::ByteSize() const { |
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
unknown_fields()); |
} |
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
- _cached_size_ = total_size; |
+ _cached_size_ = cached_size; |
GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
return total_size; |
} |
@@ -14930,7 +15775,7 @@ int GeneratedCodeInfo::ByteSize() const { |
void GeneratedCodeInfo::MergeFrom(const ::google::protobuf::Message& from) { |
// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.GeneratedCodeInfo) |
if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
- const GeneratedCodeInfo* source = |
+ const GeneratedCodeInfo* source = |
::google::protobuf::internal::DynamicCastToGenerated<const GeneratedCodeInfo>( |
&from); |
if (source == NULL) { |
@@ -14938,16 +15783,25 @@ void GeneratedCodeInfo::MergeFrom(const ::google::protobuf::Message& from) { |
::google::protobuf::internal::ReflectionOps::Merge(from, this); |
} else { |
// @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.GeneratedCodeInfo) |
- MergeFrom(*source); |
+ UnsafeMergeFrom(*source); |
} |
} |
void GeneratedCodeInfo::MergeFrom(const GeneratedCodeInfo& from) { |
// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.GeneratedCodeInfo) |
- if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
+ if (GOOGLE_PREDICT_TRUE(&from != this)) { |
+ UnsafeMergeFrom(from); |
+ } else { |
+ MergeFromFail(__LINE__); |
+ } |
+} |
+ |
+void GeneratedCodeInfo::UnsafeMergeFrom(const GeneratedCodeInfo& from) { |
+ GOOGLE_DCHECK(&from != this); |
annotation_.MergeFrom(from.annotation_); |
if (from._internal_metadata_.have_unknown_fields()) { |
- mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+ ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( |
+ from.unknown_fields(), &_internal_metadata_); |
} |
} |
@@ -14962,7 +15816,7 @@ void GeneratedCodeInfo::CopyFrom(const GeneratedCodeInfo& from) { |
// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.GeneratedCodeInfo) |
if (&from == this) return; |
Clear(); |
- MergeFrom(from); |
+ UnsafeMergeFrom(from); |
} |
bool GeneratedCodeInfo::IsInitialized() const { |
@@ -14999,24 +15853,24 @@ int GeneratedCodeInfo_Annotation::path_size() const { |
void GeneratedCodeInfo_Annotation::clear_path() { |
path_.Clear(); |
} |
- ::google::protobuf::int32 GeneratedCodeInfo_Annotation::path(int index) const { |
+::google::protobuf::int32 GeneratedCodeInfo_Annotation::path(int index) const { |
// @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.path) |
return path_.Get(index); |
} |
- void GeneratedCodeInfo_Annotation::set_path(int index, ::google::protobuf::int32 value) { |
+void GeneratedCodeInfo_Annotation::set_path(int index, ::google::protobuf::int32 value) { |
path_.Set(index, value); |
// @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.path) |
} |
- void GeneratedCodeInfo_Annotation::add_path(::google::protobuf::int32 value) { |
+void GeneratedCodeInfo_Annotation::add_path(::google::protobuf::int32 value) { |
path_.Add(value); |
// @@protoc_insertion_point(field_add:google.protobuf.GeneratedCodeInfo.Annotation.path) |
} |
- const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& |
+const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& |
GeneratedCodeInfo_Annotation::path() const { |
// @@protoc_insertion_point(field_list:google.protobuf.GeneratedCodeInfo.Annotation.path) |
return path_; |
} |
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* |
+::google::protobuf::RepeatedField< ::google::protobuf::int32 >* |
GeneratedCodeInfo_Annotation::mutable_path() { |
// @@protoc_insertion_point(field_mutable_list:google.protobuf.GeneratedCodeInfo.Annotation.path) |
return &path_; |
@@ -15036,37 +15890,37 @@ void GeneratedCodeInfo_Annotation::clear_source_file() { |
source_file_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
clear_has_source_file(); |
} |
- const ::std::string& GeneratedCodeInfo_Annotation::source_file() const { |
+const ::std::string& GeneratedCodeInfo_Annotation::source_file() const { |
// @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.source_file) |
return source_file_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void GeneratedCodeInfo_Annotation::set_source_file(const ::std::string& value) { |
+void GeneratedCodeInfo_Annotation::set_source_file(const ::std::string& value) { |
set_has_source_file(); |
source_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
// @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.source_file) |
} |
- void GeneratedCodeInfo_Annotation::set_source_file(const char* value) { |
+void GeneratedCodeInfo_Annotation::set_source_file(const char* value) { |
set_has_source_file(); |
source_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
// @@protoc_insertion_point(field_set_char:google.protobuf.GeneratedCodeInfo.Annotation.source_file) |
} |
- void GeneratedCodeInfo_Annotation::set_source_file(const char* value, size_t size) { |
+void GeneratedCodeInfo_Annotation::set_source_file(const char* value, size_t size) { |
set_has_source_file(); |
source_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
::std::string(reinterpret_cast<const char*>(value), size)); |
// @@protoc_insertion_point(field_set_pointer:google.protobuf.GeneratedCodeInfo.Annotation.source_file) |
} |
- ::std::string* GeneratedCodeInfo_Annotation::mutable_source_file() { |
+::std::string* GeneratedCodeInfo_Annotation::mutable_source_file() { |
set_has_source_file(); |
// @@protoc_insertion_point(field_mutable:google.protobuf.GeneratedCodeInfo.Annotation.source_file) |
return source_file_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- ::std::string* GeneratedCodeInfo_Annotation::release_source_file() { |
+::std::string* GeneratedCodeInfo_Annotation::release_source_file() { |
// @@protoc_insertion_point(field_release:google.protobuf.GeneratedCodeInfo.Annotation.source_file) |
clear_has_source_file(); |
return source_file_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- void GeneratedCodeInfo_Annotation::set_allocated_source_file(::std::string* source_file) { |
+void GeneratedCodeInfo_Annotation::set_allocated_source_file(::std::string* source_file) { |
if (source_file != NULL) { |
set_has_source_file(); |
} else { |
@@ -15090,11 +15944,11 @@ void GeneratedCodeInfo_Annotation::clear_begin() { |
begin_ = 0; |
clear_has_begin(); |
} |
- ::google::protobuf::int32 GeneratedCodeInfo_Annotation::begin() const { |
+::google::protobuf::int32 GeneratedCodeInfo_Annotation::begin() const { |
// @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.begin) |
return begin_; |
} |
- void GeneratedCodeInfo_Annotation::set_begin(::google::protobuf::int32 value) { |
+void GeneratedCodeInfo_Annotation::set_begin(::google::protobuf::int32 value) { |
set_has_begin(); |
begin_ = value; |
// @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.begin) |
@@ -15114,16 +15968,19 @@ void GeneratedCodeInfo_Annotation::clear_end() { |
end_ = 0; |
clear_has_end(); |
} |
- ::google::protobuf::int32 GeneratedCodeInfo_Annotation::end() const { |
+::google::protobuf::int32 GeneratedCodeInfo_Annotation::end() const { |
// @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.end) |
return end_; |
} |
- void GeneratedCodeInfo_Annotation::set_end(::google::protobuf::int32 value) { |
+void GeneratedCodeInfo_Annotation::set_end(::google::protobuf::int32 value) { |
set_has_end(); |
end_ = value; |
// @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.end) |
} |
+inline const GeneratedCodeInfo_Annotation* GeneratedCodeInfo_Annotation::internal_default_instance() { |
+ return &GeneratedCodeInfo_Annotation_default_instance_.get(); |
+} |
// ------------------------------------------------------------------- |
// GeneratedCodeInfo |
@@ -15158,6 +16015,9 @@ GeneratedCodeInfo::annotation() const { |
return annotation_; |
} |
+inline const GeneratedCodeInfo* GeneratedCodeInfo::internal_default_instance() { |
+ return &GeneratedCodeInfo_default_instance_.get(); |
+} |
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
// @@protoc_insertion_point(namespace_scope) |