| OLD | NEW |
| 1 // Generated by the protocol buffer compiler. DO NOT EDIT! | 1 // Generated by the protocol buffer compiler. DO NOT EDIT! |
| 2 // source: google/protobuf/descriptor.proto | 2 // source: google/protobuf/descriptor.proto |
| 3 | 3 |
| 4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION | 4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION |
| 5 #include <google/protobuf/descriptor.pb.h> | 5 #include <google/protobuf/descriptor.pb.h> |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include <google/protobuf/stubs/common.h> | 9 #include <google/protobuf/stubs/common.h> |
| 10 #include <google/protobuf/stubs/port.h> | 10 #include <google/protobuf/stubs/port.h> |
| 11 #include <google/protobuf/stubs/once.h> | 11 #include <google/protobuf/stubs/once.h> |
| 12 #include <google/protobuf/io/coded_stream.h> | 12 #include <google/protobuf/io/coded_stream.h> |
| 13 #include <google/protobuf/wire_format_lite_inl.h> | 13 #include <google/protobuf/wire_format_lite_inl.h> |
| 14 #include <google/protobuf/descriptor.h> | 14 #include <google/protobuf/descriptor.h> |
| 15 #include <google/protobuf/generated_message_reflection.h> | 15 #include <google/protobuf/generated_message_reflection.h> |
| 16 #include <google/protobuf/reflection_ops.h> | 16 #include <google/protobuf/reflection_ops.h> |
| 17 #include <google/protobuf/wire_format.h> | 17 #include <google/protobuf/wire_format.h> |
| 18 // @@protoc_insertion_point(includes) | 18 // @@protoc_insertion_point(includes) |
| 19 | 19 |
| 20 namespace google { | 20 namespace google { |
| 21 namespace protobuf { | 21 namespace protobuf { |
| 22 class FileDescriptorSetDefaultTypeInternal : public ::google::protobuf::internal
::ExplicitlyConstructed<FileDescriptorSet> {}; | |
| 23 FileDescriptorSetDefaultTypeInternal _FileDescriptorSet_default_instance_; | |
| 24 class FileDescriptorProtoDefaultTypeInternal : public ::google::protobuf::intern
al::ExplicitlyConstructed<FileDescriptorProto> {}; | |
| 25 FileDescriptorProtoDefaultTypeInternal _FileDescriptorProto_default_instance_; | |
| 26 class DescriptorProto_ExtensionRangeDefaultTypeInternal : public ::google::proto
buf::internal::ExplicitlyConstructed<DescriptorProto_ExtensionRange> {}; | |
| 27 DescriptorProto_ExtensionRangeDefaultTypeInternal _DescriptorProto_ExtensionRang
e_default_instance_; | |
| 28 class DescriptorProto_ReservedRangeDefaultTypeInternal : public ::google::protob
uf::internal::ExplicitlyConstructed<DescriptorProto_ReservedRange> {}; | |
| 29 DescriptorProto_ReservedRangeDefaultTypeInternal _DescriptorProto_ReservedRange_
default_instance_; | |
| 30 class DescriptorProtoDefaultTypeInternal : public ::google::protobuf::internal::
ExplicitlyConstructed<DescriptorProto> {}; | |
| 31 DescriptorProtoDefaultTypeInternal _DescriptorProto_default_instance_; | |
| 32 class FieldDescriptorProtoDefaultTypeInternal : public ::google::protobuf::inter
nal::ExplicitlyConstructed<FieldDescriptorProto> {}; | |
| 33 FieldDescriptorProtoDefaultTypeInternal _FieldDescriptorProto_default_instance_; | |
| 34 class OneofDescriptorProtoDefaultTypeInternal : public ::google::protobuf::inter
nal::ExplicitlyConstructed<OneofDescriptorProto> {}; | |
| 35 OneofDescriptorProtoDefaultTypeInternal _OneofDescriptorProto_default_instance_; | |
| 36 class EnumDescriptorProtoDefaultTypeInternal : public ::google::protobuf::intern
al::ExplicitlyConstructed<EnumDescriptorProto> {}; | |
| 37 EnumDescriptorProtoDefaultTypeInternal _EnumDescriptorProto_default_instance_; | |
| 38 class EnumValueDescriptorProtoDefaultTypeInternal : public ::google::protobuf::i
nternal::ExplicitlyConstructed<EnumValueDescriptorProto> {}; | |
| 39 EnumValueDescriptorProtoDefaultTypeInternal _EnumValueDescriptorProto_default_in
stance_; | |
| 40 class ServiceDescriptorProtoDefaultTypeInternal : public ::google::protobuf::int
ernal::ExplicitlyConstructed<ServiceDescriptorProto> {}; | |
| 41 ServiceDescriptorProtoDefaultTypeInternal _ServiceDescriptorProto_default_instan
ce_; | |
| 42 class MethodDescriptorProtoDefaultTypeInternal : public ::google::protobuf::inte
rnal::ExplicitlyConstructed<MethodDescriptorProto> {}; | |
| 43 MethodDescriptorProtoDefaultTypeInternal _MethodDescriptorProto_default_instance
_; | |
| 44 class FileOptionsDefaultTypeInternal : public ::google::protobuf::internal::Expl
icitlyConstructed<FileOptions> {}; | |
| 45 FileOptionsDefaultTypeInternal _FileOptions_default_instance_; | |
| 46 class MessageOptionsDefaultTypeInternal : public ::google::protobuf::internal::E
xplicitlyConstructed<MessageOptions> {}; | |
| 47 MessageOptionsDefaultTypeInternal _MessageOptions_default_instance_; | |
| 48 class FieldOptionsDefaultTypeInternal : public ::google::protobuf::internal::Exp
licitlyConstructed<FieldOptions> {}; | |
| 49 FieldOptionsDefaultTypeInternal _FieldOptions_default_instance_; | |
| 50 class OneofOptionsDefaultTypeInternal : public ::google::protobuf::internal::Exp
licitlyConstructed<OneofOptions> {}; | |
| 51 OneofOptionsDefaultTypeInternal _OneofOptions_default_instance_; | |
| 52 class EnumOptionsDefaultTypeInternal : public ::google::protobuf::internal::Expl
icitlyConstructed<EnumOptions> {}; | |
| 53 EnumOptionsDefaultTypeInternal _EnumOptions_default_instance_; | |
| 54 class EnumValueOptionsDefaultTypeInternal : public ::google::protobuf::internal:
:ExplicitlyConstructed<EnumValueOptions> {}; | |
| 55 EnumValueOptionsDefaultTypeInternal _EnumValueOptions_default_instance_; | |
| 56 class ServiceOptionsDefaultTypeInternal : public ::google::protobuf::internal::E
xplicitlyConstructed<ServiceOptions> {}; | |
| 57 ServiceOptionsDefaultTypeInternal _ServiceOptions_default_instance_; | |
| 58 class MethodOptionsDefaultTypeInternal : public ::google::protobuf::internal::Ex
plicitlyConstructed<MethodOptions> {}; | |
| 59 MethodOptionsDefaultTypeInternal _MethodOptions_default_instance_; | |
| 60 class UninterpretedOption_NamePartDefaultTypeInternal : public ::google::protobu
f::internal::ExplicitlyConstructed<UninterpretedOption_NamePart> {}; | |
| 61 UninterpretedOption_NamePartDefaultTypeInternal _UninterpretedOption_NamePart_de
fault_instance_; | |
| 62 class UninterpretedOptionDefaultTypeInternal : public ::google::protobuf::intern
al::ExplicitlyConstructed<UninterpretedOption> {}; | |
| 63 UninterpretedOptionDefaultTypeInternal _UninterpretedOption_default_instance_; | |
| 64 class SourceCodeInfo_LocationDefaultTypeInternal : public ::google::protobuf::in
ternal::ExplicitlyConstructed<SourceCodeInfo_Location> {}; | |
| 65 SourceCodeInfo_LocationDefaultTypeInternal _SourceCodeInfo_Location_default_inst
ance_; | |
| 66 class SourceCodeInfoDefaultTypeInternal : public ::google::protobuf::internal::E
xplicitlyConstructed<SourceCodeInfo> {}; | |
| 67 SourceCodeInfoDefaultTypeInternal _SourceCodeInfo_default_instance_; | |
| 68 class GeneratedCodeInfo_AnnotationDefaultTypeInternal : public ::google::protobu
f::internal::ExplicitlyConstructed<GeneratedCodeInfo_Annotation> {}; | |
| 69 GeneratedCodeInfo_AnnotationDefaultTypeInternal _GeneratedCodeInfo_Annotation_de
fault_instance_; | |
| 70 class GeneratedCodeInfoDefaultTypeInternal : public ::google::protobuf::internal
::ExplicitlyConstructed<GeneratedCodeInfo> {}; | |
| 71 GeneratedCodeInfoDefaultTypeInternal _GeneratedCodeInfo_default_instance_; | |
| 72 | 22 |
| 73 namespace { | 23 namespace { |
| 74 | 24 |
| 75 ::google::protobuf::Metadata file_level_metadata[25]; | 25 const ::google::protobuf::Descriptor* FileDescriptorSet_descriptor_ = NULL; |
| 76 const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[6]; | 26 const ::google::protobuf::internal::GeneratedMessageReflection* |
| 27 FileDescriptorSet_reflection_ = NULL; |
| 28 const ::google::protobuf::Descriptor* FileDescriptorProto_descriptor_ = NULL; |
| 29 const ::google::protobuf::internal::GeneratedMessageReflection* |
| 30 FileDescriptorProto_reflection_ = NULL; |
| 31 const ::google::protobuf::Descriptor* DescriptorProto_descriptor_ = NULL; |
| 32 const ::google::protobuf::internal::GeneratedMessageReflection* |
| 33 DescriptorProto_reflection_ = NULL; |
| 34 const ::google::protobuf::Descriptor* DescriptorProto_ExtensionRange_descriptor_
= NULL; |
| 35 const ::google::protobuf::internal::GeneratedMessageReflection* |
| 36 DescriptorProto_ExtensionRange_reflection_ = NULL; |
| 37 const ::google::protobuf::Descriptor* DescriptorProto_ReservedRange_descriptor_
= NULL; |
| 38 const ::google::protobuf::internal::GeneratedMessageReflection* |
| 39 DescriptorProto_ReservedRange_reflection_ = NULL; |
| 40 const ::google::protobuf::Descriptor* FieldDescriptorProto_descriptor_ = NULL; |
| 41 const ::google::protobuf::internal::GeneratedMessageReflection* |
| 42 FieldDescriptorProto_reflection_ = NULL; |
| 43 const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Type_descriptor_
= NULL; |
| 44 const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Label_descriptor_
= NULL; |
| 45 const ::google::protobuf::Descriptor* OneofDescriptorProto_descriptor_ = NULL; |
| 46 const ::google::protobuf::internal::GeneratedMessageReflection* |
| 47 OneofDescriptorProto_reflection_ = NULL; |
| 48 const ::google::protobuf::Descriptor* EnumDescriptorProto_descriptor_ = NULL; |
| 49 const ::google::protobuf::internal::GeneratedMessageReflection* |
| 50 EnumDescriptorProto_reflection_ = NULL; |
| 51 const ::google::protobuf::Descriptor* EnumValueDescriptorProto_descriptor_ = NUL
L; |
| 52 const ::google::protobuf::internal::GeneratedMessageReflection* |
| 53 EnumValueDescriptorProto_reflection_ = NULL; |
| 54 const ::google::protobuf::Descriptor* ServiceDescriptorProto_descriptor_ = NULL; |
| 55 const ::google::protobuf::internal::GeneratedMessageReflection* |
| 56 ServiceDescriptorProto_reflection_ = NULL; |
| 57 const ::google::protobuf::Descriptor* MethodDescriptorProto_descriptor_ = NULL; |
| 58 const ::google::protobuf::internal::GeneratedMessageReflection* |
| 59 MethodDescriptorProto_reflection_ = NULL; |
| 60 const ::google::protobuf::Descriptor* FileOptions_descriptor_ = NULL; |
| 61 const ::google::protobuf::internal::GeneratedMessageReflection* |
| 62 FileOptions_reflection_ = NULL; |
| 63 const ::google::protobuf::EnumDescriptor* FileOptions_OptimizeMode_descriptor_ =
NULL; |
| 64 const ::google::protobuf::Descriptor* MessageOptions_descriptor_ = NULL; |
| 65 const ::google::protobuf::internal::GeneratedMessageReflection* |
| 66 MessageOptions_reflection_ = NULL; |
| 67 const ::google::protobuf::Descriptor* FieldOptions_descriptor_ = NULL; |
| 68 const ::google::protobuf::internal::GeneratedMessageReflection* |
| 69 FieldOptions_reflection_ = NULL; |
| 70 const ::google::protobuf::EnumDescriptor* FieldOptions_CType_descriptor_ = NULL; |
| 71 const ::google::protobuf::EnumDescriptor* FieldOptions_JSType_descriptor_ = NULL
; |
| 72 const ::google::protobuf::Descriptor* EnumOptions_descriptor_ = NULL; |
| 73 const ::google::protobuf::internal::GeneratedMessageReflection* |
| 74 EnumOptions_reflection_ = NULL; |
| 75 const ::google::protobuf::Descriptor* EnumValueOptions_descriptor_ = NULL; |
| 76 const ::google::protobuf::internal::GeneratedMessageReflection* |
| 77 EnumValueOptions_reflection_ = NULL; |
| 78 const ::google::protobuf::Descriptor* ServiceOptions_descriptor_ = NULL; |
| 79 const ::google::protobuf::internal::GeneratedMessageReflection* |
| 80 ServiceOptions_reflection_ = NULL; |
| 81 const ::google::protobuf::Descriptor* MethodOptions_descriptor_ = NULL; |
| 82 const ::google::protobuf::internal::GeneratedMessageReflection* |
| 83 MethodOptions_reflection_ = NULL; |
| 84 const ::google::protobuf::Descriptor* UninterpretedOption_descriptor_ = NULL; |
| 85 const ::google::protobuf::internal::GeneratedMessageReflection* |
| 86 UninterpretedOption_reflection_ = NULL; |
| 87 const ::google::protobuf::Descriptor* UninterpretedOption_NamePart_descriptor_ =
NULL; |
| 88 const ::google::protobuf::internal::GeneratedMessageReflection* |
| 89 UninterpretedOption_NamePart_reflection_ = NULL; |
| 90 const ::google::protobuf::Descriptor* SourceCodeInfo_descriptor_ = NULL; |
| 91 const ::google::protobuf::internal::GeneratedMessageReflection* |
| 92 SourceCodeInfo_reflection_ = NULL; |
| 93 const ::google::protobuf::Descriptor* SourceCodeInfo_Location_descriptor_ = NULL
; |
| 94 const ::google::protobuf::internal::GeneratedMessageReflection* |
| 95 SourceCodeInfo_Location_reflection_ = NULL; |
| 96 const ::google::protobuf::Descriptor* GeneratedCodeInfo_descriptor_ = NULL; |
| 97 const ::google::protobuf::internal::GeneratedMessageReflection* |
| 98 GeneratedCodeInfo_reflection_ = NULL; |
| 99 const ::google::protobuf::Descriptor* GeneratedCodeInfo_Annotation_descriptor_ =
NULL; |
| 100 const ::google::protobuf::internal::GeneratedMessageReflection* |
| 101 GeneratedCodeInfo_Annotation_reflection_ = NULL; |
| 77 | 102 |
| 78 } // namespace | 103 } // namespace |
| 79 | 104 |
| 80 | 105 |
| 81 const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2fdescripto
r_2eproto() GOOGLE_ATTRIBUTE_COLD; | 106 void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() { |
| 82 const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2fdescripto
r_2eproto() { | 107 protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
| 83 static const ::google::protobuf::uint32 offsets[] = { | 108 const ::google::protobuf::FileDescriptor* file = |
| 84 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, _has_bits_
), | 109 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( |
| 85 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, _internal_
metadata_), | 110 "google/protobuf/descriptor.proto"); |
| 86 ~0u, // no _extensions_ | 111 GOOGLE_CHECK(file != NULL); |
| 87 ~0u, // no _oneof_case_ | 112 FileDescriptorSet_descriptor_ = file->message_type(0); |
| 113 static const int FileDescriptorSet_offsets_[1] = { |
| 88 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, file_), | 114 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, file_), |
| 89 0, | 115 }; |
| 90 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, _has_bit
s_), | 116 FileDescriptorSet_reflection_ = |
| 91 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, _interna
l_metadata_), | 117 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag
eReflection( |
| 92 ~0u, // no _extensions_ | 118 FileDescriptorSet_descriptor_, |
| 93 ~0u, // no _oneof_case_ | 119 FileDescriptorSet::default_instance_, |
| 120 FileDescriptorSet_offsets_, |
| 121 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, _has_bit
s_[0]), |
| 122 -1, |
| 123 -1, |
| 124 sizeof(FileDescriptorSet), |
| 125 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, _interna
l_metadata_), |
| 126 -1); |
| 127 FileDescriptorProto_descriptor_ = file->message_type(1); |
| 128 static const int FileDescriptorProto_offsets_[12] = { |
| 94 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, name_), | 129 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, name_), |
| 95 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, package_
), | 130 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, package_
), |
| 96 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, dependen
cy_), | 131 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, dependen
cy_), |
| 97 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, public_d
ependency_), | 132 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, public_d
ependency_), |
| 98 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, weak_dep
endency_), | 133 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, weak_dep
endency_), |
| 99 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, message_
type_), | 134 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, message_
type_), |
| 100 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, enum_typ
e_), | 135 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, enum_typ
e_), |
| 101 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, service_
), | 136 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, service_
), |
| 102 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, extensio
n_), | 137 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, extensio
n_), |
| 103 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, options_
), | 138 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, options_
), |
| 104 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, source_c
ode_info_), | 139 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, source_c
ode_info_), |
| 105 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, syntax_)
, | 140 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, syntax_)
, |
| 106 0, | 141 }; |
| 107 1, | 142 FileDescriptorProto_reflection_ = |
| 108 5, | 143 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag
eReflection( |
| 109 6, | 144 FileDescriptorProto_descriptor_, |
| 110 7, | 145 FileDescriptorProto::default_instance_, |
| 111 8, | 146 FileDescriptorProto_offsets_, |
| 112 9, | 147 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, _has_b
its_[0]), |
| 113 10, | 148 -1, |
| 114 11, | 149 -1, |
| 115 3, | 150 sizeof(FileDescriptorProto), |
| 116 4, | 151 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, _inter
nal_metadata_), |
| 117 2, | 152 -1); |
| 118 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRang
e, _has_bits_), | 153 DescriptorProto_descriptor_ = file->message_type(2); |
| 119 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRang
e, _internal_metadata_), | 154 static const int DescriptorProto_offsets_[10] = { |
| 120 ~0u, // no _extensions_ | |
| 121 ~0u, // no _oneof_case_ | |
| 122 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRang
e, start_), | |
| 123 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRang
e, end_), | |
| 124 0, | |
| 125 1, | |
| 126 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ReservedRange
, _has_bits_), | |
| 127 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ReservedRange
, _internal_metadata_), | |
| 128 ~0u, // no _extensions_ | |
| 129 ~0u, // no _oneof_case_ | |
| 130 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ReservedRange
, start_), | |
| 131 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ReservedRange
, end_), | |
| 132 0, | |
| 133 1, | |
| 134 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, _has_bits_), | |
| 135 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, _internal_me
tadata_), | |
| 136 ~0u, // no _extensions_ | |
| 137 ~0u, // no _oneof_case_ | |
| 138 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, name_), | 155 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, name_), |
| 139 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, field_), | 156 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, field_), |
| 140 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, extension_), | 157 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, extension_), |
| 141 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, nested_type_
), | 158 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, nested_type_
), |
| 142 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, enum_type_), | 159 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, enum_type_), |
| 143 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, extension_ra
nge_), | 160 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, extension_ra
nge_), |
| 144 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, oneof_decl_)
, | 161 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, oneof_decl_)
, |
| 145 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, options_), | 162 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, options_), |
| 146 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, reserved_ran
ge_), | 163 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, reserved_ran
ge_), |
| 147 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, reserved_nam
e_), | 164 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, reserved_nam
e_), |
| 148 0, | 165 }; |
| 149 2, | 166 DescriptorProto_reflection_ = |
| 150 3, | 167 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag
eReflection( |
| 151 4, | 168 DescriptorProto_descriptor_, |
| 152 5, | 169 DescriptorProto::default_instance_, |
| 153 6, | 170 DescriptorProto_offsets_, |
| 154 7, | 171 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, _has_bits_
[0]), |
| 155 1, | 172 -1, |
| 156 8, | 173 -1, |
| 157 9, | 174 sizeof(DescriptorProto), |
| 158 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, _has_bi
ts_), | 175 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, _internal_
metadata_), |
| 159 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, _intern
al_metadata_), | 176 -1); |
| 160 ~0u, // no _extensions_ | 177 DescriptorProto_ExtensionRange_descriptor_ = DescriptorProto_descriptor_->nest
ed_type(0); |
| 161 ~0u, // no _oneof_case_ | 178 static const int DescriptorProto_ExtensionRange_offsets_[2] = { |
| 179 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRang
e, start_), |
| 180 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRang
e, end_), |
| 181 }; |
| 182 DescriptorProto_ExtensionRange_reflection_ = |
| 183 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag
eReflection( |
| 184 DescriptorProto_ExtensionRange_descriptor_, |
| 185 DescriptorProto_ExtensionRange::default_instance_, |
| 186 DescriptorProto_ExtensionRange_offsets_, |
| 187 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRa
nge, _has_bits_[0]), |
| 188 -1, |
| 189 -1, |
| 190 sizeof(DescriptorProto_ExtensionRange), |
| 191 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRa
nge, _internal_metadata_), |
| 192 -1); |
| 193 DescriptorProto_ReservedRange_descriptor_ = DescriptorProto_descriptor_->neste
d_type(1); |
| 194 static const int DescriptorProto_ReservedRange_offsets_[2] = { |
| 195 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ReservedRange
, start_), |
| 196 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ReservedRange
, end_), |
| 197 }; |
| 198 DescriptorProto_ReservedRange_reflection_ = |
| 199 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag
eReflection( |
| 200 DescriptorProto_ReservedRange_descriptor_, |
| 201 DescriptorProto_ReservedRange::default_instance_, |
| 202 DescriptorProto_ReservedRange_offsets_, |
| 203 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ReservedRan
ge, _has_bits_[0]), |
| 204 -1, |
| 205 -1, |
| 206 sizeof(DescriptorProto_ReservedRange), |
| 207 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ReservedRan
ge, _internal_metadata_), |
| 208 -1); |
| 209 FieldDescriptorProto_descriptor_ = file->message_type(3); |
| 210 static const int FieldDescriptorProto_offsets_[10] = { |
| 162 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, name_), | 211 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, name_), |
| 163 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, number_
), | 212 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, number_
), |
| 164 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, label_)
, | 213 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, label_)
, |
| 165 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, type_), | 214 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, type_), |
| 166 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, type_na
me_), | 215 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, type_na
me_), |
| 167 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, extende
e_), | 216 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, extende
e_), |
| 168 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, default
_value_), | 217 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, default
_value_), |
| 169 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, oneof_i
ndex_), | 218 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, oneof_i
ndex_), |
| 170 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, json_na
me_), | 219 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, json_na
me_), |
| 171 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, options
_), | 220 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, options
_), |
| 172 0, | 221 }; |
| 173 6, | 222 FieldDescriptorProto_reflection_ = |
| 174 8, | 223 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag
eReflection( |
| 175 9, | 224 FieldDescriptorProto_descriptor_, |
| 176 1, | 225 FieldDescriptorProto::default_instance_, |
| 177 2, | 226 FieldDescriptorProto_offsets_, |
| 178 3, | 227 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, _has_
bits_[0]), |
| 179 7, | 228 -1, |
| 180 4, | 229 -1, |
| 181 5, | 230 sizeof(FieldDescriptorProto), |
| 182 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, _has_bi
ts_), | 231 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, _inte
rnal_metadata_), |
| 183 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, _intern
al_metadata_), | 232 -1); |
| 184 ~0u, // no _extensions_ | 233 FieldDescriptorProto_Type_descriptor_ = FieldDescriptorProto_descriptor_->enum
_type(0); |
| 185 ~0u, // no _oneof_case_ | 234 FieldDescriptorProto_Label_descriptor_ = FieldDescriptorProto_descriptor_->enu
m_type(1); |
| 235 OneofDescriptorProto_descriptor_ = file->message_type(4); |
| 236 static const int OneofDescriptorProto_offsets_[1] = { |
| 186 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, name_), | 237 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, name_), |
| 187 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, options
_), | 238 }; |
| 188 0, | 239 OneofDescriptorProto_reflection_ = |
| 189 1, | 240 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag
eReflection( |
| 190 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, _has_bit
s_), | 241 OneofDescriptorProto_descriptor_, |
| 191 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, _interna
l_metadata_), | 242 OneofDescriptorProto::default_instance_, |
| 192 ~0u, // no _extensions_ | 243 OneofDescriptorProto_offsets_, |
| 193 ~0u, // no _oneof_case_ | 244 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, _has_
bits_[0]), |
| 245 -1, |
| 246 -1, |
| 247 sizeof(OneofDescriptorProto), |
| 248 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, _inte
rnal_metadata_), |
| 249 -1); |
| 250 EnumDescriptorProto_descriptor_ = file->message_type(5); |
| 251 static const int EnumDescriptorProto_offsets_[3] = { |
| 194 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, name_), | 252 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, name_), |
| 195 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, value_), | 253 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, value_), |
| 196 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, options_
), | 254 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, options_
), |
| 197 0, | 255 }; |
| 198 2, | 256 EnumDescriptorProto_reflection_ = |
| 199 1, | 257 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag
eReflection( |
| 200 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, _ha
s_bits_), | 258 EnumDescriptorProto_descriptor_, |
| 201 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, _in
ternal_metadata_), | 259 EnumDescriptorProto::default_instance_, |
| 202 ~0u, // no _extensions_ | 260 EnumDescriptorProto_offsets_, |
| 203 ~0u, // no _oneof_case_ | 261 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, _has_b
its_[0]), |
| 262 -1, |
| 263 -1, |
| 264 sizeof(EnumDescriptorProto), |
| 265 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, _inter
nal_metadata_), |
| 266 -1); |
| 267 EnumValueDescriptorProto_descriptor_ = file->message_type(6); |
| 268 static const int EnumValueDescriptorProto_offsets_[3] = { |
| 204 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, nam
e_), | 269 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, nam
e_), |
| 205 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, num
ber_), | 270 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, num
ber_), |
| 206 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, opt
ions_), | 271 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, opt
ions_), |
| 207 0, | 272 }; |
| 208 2, | 273 EnumValueDescriptorProto_reflection_ = |
| 209 1, | 274 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag
eReflection( |
| 210 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, _has_
bits_), | 275 EnumValueDescriptorProto_descriptor_, |
| 211 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, _inte
rnal_metadata_), | 276 EnumValueDescriptorProto::default_instance_, |
| 212 ~0u, // no _extensions_ | 277 EnumValueDescriptorProto_offsets_, |
| 213 ~0u, // no _oneof_case_ | 278 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, _
has_bits_[0]), |
| 279 -1, |
| 280 -1, |
| 281 sizeof(EnumValueDescriptorProto), |
| 282 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, _
internal_metadata_), |
| 283 -1); |
| 284 ServiceDescriptorProto_descriptor_ = file->message_type(7); |
| 285 static const int ServiceDescriptorProto_offsets_[3] = { |
| 214 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, name_
), | 286 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, name_
), |
| 215 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, metho
d_), | 287 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, metho
d_), |
| 216 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, optio
ns_), | 288 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, optio
ns_), |
| 217 0, | 289 }; |
| 218 2, | 290 ServiceDescriptorProto_reflection_ = |
| 219 1, | 291 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag
eReflection( |
| 220 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, _has_b
its_), | 292 ServiceDescriptorProto_descriptor_, |
| 221 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, _inter
nal_metadata_), | 293 ServiceDescriptorProto::default_instance_, |
| 222 ~0u, // no _extensions_ | 294 ServiceDescriptorProto_offsets_, |
| 223 ~0u, // no _oneof_case_ | 295 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, _ha
s_bits_[0]), |
| 296 -1, |
| 297 -1, |
| 298 sizeof(ServiceDescriptorProto), |
| 299 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, _in
ternal_metadata_), |
| 300 -1); |
| 301 MethodDescriptorProto_descriptor_ = file->message_type(8); |
| 302 static const int MethodDescriptorProto_offsets_[6] = { |
| 224 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, name_)
, | 303 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, name_)
, |
| 225 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, input_
type_), | 304 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, input_
type_), |
| 226 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, output
_type_), | 305 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, output
_type_), |
| 227 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, option
s_), | 306 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, option
s_), |
| 228 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, client
_streaming_), | 307 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, client
_streaming_), |
| 229 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, server
_streaming_), | 308 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, server
_streaming_), |
| 230 0, | 309 }; |
| 231 1, | 310 MethodDescriptorProto_reflection_ = |
| 232 2, | 311 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag
eReflection( |
| 233 3, | 312 MethodDescriptorProto_descriptor_, |
| 234 4, | 313 MethodDescriptorProto::default_instance_, |
| 235 5, | 314 MethodDescriptorProto_offsets_, |
| 236 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _has_bits_), | 315 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, _has
_bits_[0]), |
| 237 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _internal_metada
ta_), | 316 -1, |
| 238 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _extensions_), | 317 -1, |
| 239 ~0u, // no _oneof_case_ | 318 sizeof(MethodDescriptorProto), |
| 319 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, _int
ernal_metadata_), |
| 320 -1); |
| 321 FileOptions_descriptor_ = file->message_type(9); |
| 322 static const int FileOptions_offsets_[15] = { |
| 240 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_package_), | 323 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_package_), |
| 241 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_outer_class
name_), | 324 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_outer_class
name_), |
| 242 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_multiple_fi
les_), | 325 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_multiple_fi
les_), |
| 243 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_generate_eq
uals_and_hash_), | 326 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_generate_eq
uals_and_hash_), |
| 244 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_string_chec
k_utf8_), | 327 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_string_chec
k_utf8_), |
| 245 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, optimize_for_), | 328 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, optimize_for_), |
| 246 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, go_package_), | 329 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, go_package_), |
| 247 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, cc_generic_servi
ces_), | 330 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, cc_generic_servi
ces_), |
| 248 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_generic_ser
vices_), | 331 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_generic_ser
vices_), |
| 249 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, py_generic_servi
ces_), | 332 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, py_generic_servi
ces_), |
| 250 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, deprecated_), | 333 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, deprecated_), |
| 251 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, cc_enable_arenas
_), | 334 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, cc_enable_arenas
_), |
| 252 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, objc_class_prefi
x_), | 335 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, objc_class_prefi
x_), |
| 253 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, csharp_namespace
_), | 336 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, csharp_namespace
_), |
| 254 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, swift_prefix_), | |
| 255 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, uninterpreted_op
tion_), | 337 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, uninterpreted_op
tion_), |
| 256 0, | 338 }; |
| 257 1, | 339 FileOptions_reflection_ = |
| 258 6, | 340 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag
eReflection( |
| 259 7, | 341 FileOptions_descriptor_, |
| 260 8, | 342 FileOptions::default_instance_, |
| 261 14, | 343 FileOptions_offsets_, |
| 262 2, | 344 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _has_bits_[0])
, |
| 263 9, | 345 -1, |
| 264 10, | 346 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _extensions_), |
| 265 11, | 347 sizeof(FileOptions), |
| 266 12, | 348 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _internal_meta
data_), |
| 267 13, | 349 -1); |
| 268 3, | 350 FileOptions_OptimizeMode_descriptor_ = FileOptions_descriptor_->enum_type(0); |
| 269 4, | 351 MessageOptions_descriptor_ = file->message_type(10); |
| 270 5, | 352 static const int MessageOptions_offsets_[5] = { |
| 271 15, | |
| 272 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _has_bits_), | |
| 273 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _internal_met
adata_), | |
| 274 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _extensions_)
, | |
| 275 ~0u, // no _oneof_case_ | |
| 276 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, message_set_w
ire_format_), | 353 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, message_set_w
ire_format_), |
| 277 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, no_standard_d
escriptor_accessor_), | 354 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, no_standard_d
escriptor_accessor_), |
| 278 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, deprecated_), | 355 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, deprecated_), |
| 279 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, map_entry_), | 356 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, map_entry_), |
| 280 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, uninterpreted
_option_), | 357 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, uninterpreted
_option_), |
| 281 0, | 358 }; |
| 282 1, | 359 MessageOptions_reflection_ = |
| 283 2, | 360 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag
eReflection( |
| 284 3, | 361 MessageOptions_descriptor_, |
| 285 4, | 362 MessageOptions::default_instance_, |
| 286 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _has_bits_), | 363 MessageOptions_offsets_, |
| 287 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _internal_metad
ata_), | 364 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _has_bits_[
0]), |
| 288 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _extensions_), | 365 -1, |
| 289 ~0u, // no _oneof_case_ | 366 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _extensions
_), |
| 367 sizeof(MessageOptions), |
| 368 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _internal_m
etadata_), |
| 369 -1); |
| 370 FieldOptions_descriptor_ = file->message_type(11); |
| 371 static const int FieldOptions_offsets_[7] = { |
| 290 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, ctype_), | 372 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, ctype_), |
| 291 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, packed_), | 373 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, packed_), |
| 292 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, jstype_), | 374 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, jstype_), |
| 293 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, lazy_), | 375 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, lazy_), |
| 294 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, deprecated_), | 376 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, deprecated_), |
| 295 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, weak_), | 377 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, weak_), |
| 296 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, uninterpreted_o
ption_), | 378 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, uninterpreted_o
ption_), |
| 297 0, | 379 }; |
| 298 2, | 380 FieldOptions_reflection_ = |
| 299 1, | 381 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag
eReflection( |
| 300 3, | 382 FieldOptions_descriptor_, |
| 301 4, | 383 FieldOptions::default_instance_, |
| 302 5, | 384 FieldOptions_offsets_, |
| 303 6, | 385 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _has_bits_[0]
), |
| 304 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofOptions, _has_bits_), | 386 -1, |
| 305 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofOptions, _internal_metad
ata_), | 387 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _extensions_)
, |
| 306 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofOptions, _extensions_), | 388 sizeof(FieldOptions), |
| 307 ~0u, // no _oneof_case_ | 389 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _internal_met
adata_), |
| 308 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofOptions, uninterpreted_o
ption_), | 390 -1); |
| 309 0, | 391 FieldOptions_CType_descriptor_ = FieldOptions_descriptor_->enum_type(0); |
| 310 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _has_bits_), | 392 FieldOptions_JSType_descriptor_ = FieldOptions_descriptor_->enum_type(1); |
| 311 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _internal_metada
ta_), | 393 EnumOptions_descriptor_ = file->message_type(12); |
| 312 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _extensions_), | 394 static const int EnumOptions_offsets_[3] = { |
| 313 ~0u, // no _oneof_case_ | |
| 314 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, allow_alias_), | 395 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, allow_alias_), |
| 315 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, deprecated_), | 396 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, deprecated_), |
| 316 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, uninterpreted_op
tion_), | 397 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, uninterpreted_op
tion_), |
| 317 0, | 398 }; |
| 318 1, | 399 EnumOptions_reflection_ = |
| 319 2, | 400 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag
eReflection( |
| 320 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _has_bits_)
, | 401 EnumOptions_descriptor_, |
| 321 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _internal_m
etadata_), | 402 EnumOptions::default_instance_, |
| 322 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _extensions
_), | 403 EnumOptions_offsets_, |
| 323 ~0u, // no _oneof_case_ | 404 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _has_bits_[0])
, |
| 405 -1, |
| 406 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _extensions_), |
| 407 sizeof(EnumOptions), |
| 408 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _internal_meta
data_), |
| 409 -1); |
| 410 EnumValueOptions_descriptor_ = file->message_type(13); |
| 411 static const int EnumValueOptions_offsets_[2] = { |
| 324 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, deprecated_
), | 412 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, deprecated_
), |
| 325 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, uninterpret
ed_option_), | 413 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, uninterpret
ed_option_), |
| 326 0, | 414 }; |
| 327 1, | 415 EnumValueOptions_reflection_ = |
| 328 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _has_bits_), | 416 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag
eReflection( |
| 329 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _internal_met
adata_), | 417 EnumValueOptions_descriptor_, |
| 330 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _extensions_)
, | 418 EnumValueOptions::default_instance_, |
| 331 ~0u, // no _oneof_case_ | 419 EnumValueOptions_offsets_, |
| 420 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _has_bits
_[0]), |
| 421 -1, |
| 422 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _extensio
ns_), |
| 423 sizeof(EnumValueOptions), |
| 424 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _internal
_metadata_), |
| 425 -1); |
| 426 ServiceOptions_descriptor_ = file->message_type(14); |
| 427 static const int ServiceOptions_offsets_[2] = { |
| 332 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, deprecated_), | 428 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, deprecated_), |
| 333 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, uninterpreted
_option_), | 429 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, uninterpreted
_option_), |
| 334 0, | 430 }; |
| 335 1, | 431 ServiceOptions_reflection_ = |
| 336 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _has_bits_), | 432 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag
eReflection( |
| 337 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _internal_meta
data_), | 433 ServiceOptions_descriptor_, |
| 338 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _extensions_), | 434 ServiceOptions::default_instance_, |
| 339 ~0u, // no _oneof_case_ | 435 ServiceOptions_offsets_, |
| 436 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _has_bits_[
0]), |
| 437 -1, |
| 438 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _extensions
_), |
| 439 sizeof(ServiceOptions), |
| 440 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _internal_m
etadata_), |
| 441 -1); |
| 442 MethodOptions_descriptor_ = file->message_type(15); |
| 443 static const int MethodOptions_offsets_[2] = { |
| 340 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, deprecated_), | 444 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, deprecated_), |
| 341 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, idempotency_le
vel_), | |
| 342 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, uninterpreted_
option_), | 445 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, uninterpreted_
option_), |
| 343 0, | 446 }; |
| 344 1, | 447 MethodOptions_reflection_ = |
| 345 2, | 448 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag
eReflection( |
| 346 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart,
_has_bits_), | 449 MethodOptions_descriptor_, |
| 347 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart,
_internal_metadata_), | 450 MethodOptions::default_instance_, |
| 348 ~0u, // no _extensions_ | 451 MethodOptions_offsets_, |
| 349 ~0u, // no _oneof_case_ | 452 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _has_bits_[0
]), |
| 350 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart,
name_part_), | 453 -1, |
| 351 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart,
is_extension_), | 454 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _extensions_
), |
| 352 0, | 455 sizeof(MethodOptions), |
| 353 1, | 456 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _internal_me
tadata_), |
| 354 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, _has_bit
s_), | 457 -1); |
| 355 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, _interna
l_metadata_), | 458 UninterpretedOption_descriptor_ = file->message_type(16); |
| 356 ~0u, // no _extensions_ | 459 static const int UninterpretedOption_offsets_[7] = { |
| 357 ~0u, // no _oneof_case_ | |
| 358 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, name_), | 460 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, name_), |
| 359 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, identifi
er_value_), | 461 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, identifi
er_value_), |
| 360 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, positive
_int_value_), | 462 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, positive
_int_value_), |
| 361 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, negative
_int_value_), | 463 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, negative
_int_value_), |
| 362 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, double_v
alue_), | 464 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, double_v
alue_), |
| 363 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, string_v
alue_), | 465 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, string_v
alue_), |
| 364 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, aggregat
e_value_), | 466 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, aggregat
e_value_), |
| 365 6, | 467 }; |
| 366 0, | 468 UninterpretedOption_reflection_ = |
| 367 3, | 469 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag
eReflection( |
| 368 4, | 470 UninterpretedOption_descriptor_, |
| 369 5, | 471 UninterpretedOption::default_instance_, |
| 370 1, | 472 UninterpretedOption_offsets_, |
| 371 2, | 473 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, _has_b
its_[0]), |
| 372 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, _has
_bits_), | 474 -1, |
| 373 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, _int
ernal_metadata_), | 475 -1, |
| 374 ~0u, // no _extensions_ | 476 sizeof(UninterpretedOption), |
| 375 ~0u, // no _oneof_case_ | 477 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, _inter
nal_metadata_), |
| 478 -1); |
| 479 UninterpretedOption_NamePart_descriptor_ = UninterpretedOption_descriptor_->ne
sted_type(0); |
| 480 static const int UninterpretedOption_NamePart_offsets_[2] = { |
| 481 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart,
name_part_), |
| 482 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart,
is_extension_), |
| 483 }; |
| 484 UninterpretedOption_NamePart_reflection_ = |
| 485 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag
eReflection( |
| 486 UninterpretedOption_NamePart_descriptor_, |
| 487 UninterpretedOption_NamePart::default_instance_, |
| 488 UninterpretedOption_NamePart_offsets_, |
| 489 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePar
t, _has_bits_[0]), |
| 490 -1, |
| 491 -1, |
| 492 sizeof(UninterpretedOption_NamePart), |
| 493 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePar
t, _internal_metadata_), |
| 494 -1); |
| 495 SourceCodeInfo_descriptor_ = file->message_type(17); |
| 496 static const int SourceCodeInfo_offsets_[1] = { |
| 497 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, location_), |
| 498 }; |
| 499 SourceCodeInfo_reflection_ = |
| 500 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag
eReflection( |
| 501 SourceCodeInfo_descriptor_, |
| 502 SourceCodeInfo::default_instance_, |
| 503 SourceCodeInfo_offsets_, |
| 504 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, _has_bits_[
0]), |
| 505 -1, |
| 506 -1, |
| 507 sizeof(SourceCodeInfo), |
| 508 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, _internal_m
etadata_), |
| 509 -1); |
| 510 SourceCodeInfo_Location_descriptor_ = SourceCodeInfo_descriptor_->nested_type(
0); |
| 511 static const int SourceCodeInfo_Location_offsets_[5] = { |
| 376 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, path
_), | 512 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, path
_), |
| 377 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, span
_), | 513 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, span
_), |
| 378 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, lead
ing_comments_), | 514 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, lead
ing_comments_), |
| 379 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, trai
ling_comments_), | 515 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, trai
ling_comments_), |
| 380 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, lead
ing_detached_comments_), | 516 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, lead
ing_detached_comments_), |
| 381 2, | 517 }; |
| 382 3, | 518 SourceCodeInfo_Location_reflection_ = |
| 383 0, | 519 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag
eReflection( |
| 384 1, | 520 SourceCodeInfo_Location_descriptor_, |
| 385 4, | 521 SourceCodeInfo_Location::default_instance_, |
| 386 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, _has_bits_), | 522 SourceCodeInfo_Location_offsets_, |
| 387 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, _internal_met
adata_), | 523 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, _h
as_bits_[0]), |
| 388 ~0u, // no _extensions_ | 524 -1, |
| 389 ~0u, // no _oneof_case_ | 525 -1, |
| 390 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, location_), | 526 sizeof(SourceCodeInfo_Location), |
| 391 0, | 527 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, _i
nternal_metadata_), |
| 392 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation,
_has_bits_), | 528 -1); |
| 393 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation,
_internal_metadata_), | 529 GeneratedCodeInfo_descriptor_ = file->message_type(18); |
| 394 ~0u, // no _extensions_ | 530 static const int GeneratedCodeInfo_offsets_[1] = { |
| 395 ~0u, // no _oneof_case_ | 531 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo, annotation
_), |
| 532 }; |
| 533 GeneratedCodeInfo_reflection_ = |
| 534 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag
eReflection( |
| 535 GeneratedCodeInfo_descriptor_, |
| 536 GeneratedCodeInfo::default_instance_, |
| 537 GeneratedCodeInfo_offsets_, |
| 538 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo, _has_bit
s_[0]), |
| 539 -1, |
| 540 -1, |
| 541 sizeof(GeneratedCodeInfo), |
| 542 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo, _interna
l_metadata_), |
| 543 -1); |
| 544 GeneratedCodeInfo_Annotation_descriptor_ = GeneratedCodeInfo_descriptor_->nest
ed_type(0); |
| 545 static const int GeneratedCodeInfo_Annotation_offsets_[4] = { |
| 396 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation,
path_), | 546 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation,
path_), |
| 397 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation,
source_file_), | 547 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation,
source_file_), |
| 398 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation,
begin_), | 548 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation,
begin_), |
| 399 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation,
end_), | 549 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation,
end_), |
| 400 3, | 550 }; |
| 401 0, | 551 GeneratedCodeInfo_Annotation_reflection_ = |
| 402 1, | 552 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag
eReflection( |
| 403 2, | 553 GeneratedCodeInfo_Annotation_descriptor_, |
| 404 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo, _has_bits_
), | 554 GeneratedCodeInfo_Annotation::default_instance_, |
| 405 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo, _internal_
metadata_), | 555 GeneratedCodeInfo_Annotation_offsets_, |
| 406 ~0u, // no _extensions_ | 556 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotatio
n, _has_bits_[0]), |
| 407 ~0u, // no _oneof_case_ | 557 -1, |
| 408 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo, annotation
_), | 558 -1, |
| 409 0, | 559 sizeof(GeneratedCodeInfo_Annotation), |
| 410 }; | 560 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotatio
n, _internal_metadata_), |
| 411 return offsets; | 561 -1); |
| 412 } | 562 } |
| 413 | |
| 414 static const ::google::protobuf::internal::MigrationSchema schemas[] = { | |
| 415 { 0, 5, sizeof(FileDescriptorSet)}, | |
| 416 { 6, 22, sizeof(FileDescriptorProto)}, | |
| 417 { 34, 40, sizeof(DescriptorProto_ExtensionRange)}, | |
| 418 { 42, 48, sizeof(DescriptorProto_ReservedRange)}, | |
| 419 { 50, 64, sizeof(DescriptorProto)}, | |
| 420 { 74, 88, sizeof(FieldDescriptorProto)}, | |
| 421 { 98, 104, sizeof(OneofDescriptorProto)}, | |
| 422 { 106, 113, sizeof(EnumDescriptorProto)}, | |
| 423 { 116, 123, sizeof(EnumValueDescriptorProto)}, | |
| 424 { 126, 133, sizeof(ServiceDescriptorProto)}, | |
| 425 { 136, 146, sizeof(MethodDescriptorProto)}, | |
| 426 { 152, 172, sizeof(FileOptions)}, | |
| 427 { 188, 197, sizeof(MessageOptions)}, | |
| 428 { 202, 213, sizeof(FieldOptions)}, | |
| 429 { 220, 225, sizeof(OneofOptions)}, | |
| 430 { 226, 233, sizeof(EnumOptions)}, | |
| 431 { 236, 242, sizeof(EnumValueOptions)}, | |
| 432 { 244, 250, sizeof(ServiceOptions)}, | |
| 433 { 252, 259, sizeof(MethodOptions)}, | |
| 434 { 262, 268, sizeof(UninterpretedOption_NamePart)}, | |
| 435 { 270, 281, sizeof(UninterpretedOption)}, | |
| 436 { 288, 297, sizeof(SourceCodeInfo_Location)}, | |
| 437 { 302, 307, sizeof(SourceCodeInfo)}, | |
| 438 { 308, 316, sizeof(GeneratedCodeInfo_Annotation)}, | |
| 439 { 320, 325, sizeof(GeneratedCodeInfo)}, | |
| 440 }; | |
| 441 | |
| 442 static const ::google::protobuf::internal::DefaultInstanceData file_default_inst
ances[] = { | |
| 443 {reinterpret_cast<const ::google::protobuf::Message*>(&_FileDescriptorSet_defa
ult_instance_), NULL}, | |
| 444 {reinterpret_cast<const ::google::protobuf::Message*>(&_FileDescriptorProto_de
fault_instance_), NULL}, | |
| 445 {reinterpret_cast<const ::google::protobuf::Message*>(&_DescriptorProto_Extens
ionRange_default_instance_), NULL}, | |
| 446 {reinterpret_cast<const ::google::protobuf::Message*>(&_DescriptorProto_Reserv
edRange_default_instance_), NULL}, | |
| 447 {reinterpret_cast<const ::google::protobuf::Message*>(&_DescriptorProto_defaul
t_instance_), NULL}, | |
| 448 {reinterpret_cast<const ::google::protobuf::Message*>(&_FieldDescriptorProto_d
efault_instance_), NULL}, | |
| 449 {reinterpret_cast<const ::google::protobuf::Message*>(&_OneofDescriptorProto_d
efault_instance_), NULL}, | |
| 450 {reinterpret_cast<const ::google::protobuf::Message*>(&_EnumDescriptorProto_de
fault_instance_), NULL}, | |
| 451 {reinterpret_cast<const ::google::protobuf::Message*>(&_EnumValueDescriptorPro
to_default_instance_), NULL}, | |
| 452 {reinterpret_cast<const ::google::protobuf::Message*>(&_ServiceDescriptorProto
_default_instance_), NULL}, | |
| 453 {reinterpret_cast<const ::google::protobuf::Message*>(&_MethodDescriptorProto_
default_instance_), NULL}, | |
| 454 {reinterpret_cast<const ::google::protobuf::Message*>(&_FileOptions_default_in
stance_), NULL}, | |
| 455 {reinterpret_cast<const ::google::protobuf::Message*>(&_MessageOptions_default
_instance_), NULL}, | |
| 456 {reinterpret_cast<const ::google::protobuf::Message*>(&_FieldOptions_default_i
nstance_), NULL}, | |
| 457 {reinterpret_cast<const ::google::protobuf::Message*>(&_OneofOptions_default_i
nstance_), NULL}, | |
| 458 {reinterpret_cast<const ::google::protobuf::Message*>(&_EnumOptions_default_in
stance_), NULL}, | |
| 459 {reinterpret_cast<const ::google::protobuf::Message*>(&_EnumValueOptions_defau
lt_instance_), NULL}, | |
| 460 {reinterpret_cast<const ::google::protobuf::Message*>(&_ServiceOptions_default
_instance_), NULL}, | |
| 461 {reinterpret_cast<const ::google::protobuf::Message*>(&_MethodOptions_default_
instance_), NULL}, | |
| 462 {reinterpret_cast<const ::google::protobuf::Message*>(&_UninterpretedOption_Na
mePart_default_instance_), NULL}, | |
| 463 {reinterpret_cast<const ::google::protobuf::Message*>(&_UninterpretedOption_de
fault_instance_), NULL}, | |
| 464 {reinterpret_cast<const ::google::protobuf::Message*>(&_SourceCodeInfo_Locatio
n_default_instance_), NULL}, | |
| 465 {reinterpret_cast<const ::google::protobuf::Message*>(&_SourceCodeInfo_default
_instance_), NULL}, | |
| 466 {reinterpret_cast<const ::google::protobuf::Message*>(&_GeneratedCodeInfo_Anno
tation_default_instance_), NULL}, | |
| 467 {reinterpret_cast<const ::google::protobuf::Message*>(&_GeneratedCodeInfo_defa
ult_instance_), NULL}, | |
| 468 }; | |
| 469 | 563 |
| 470 namespace { | 564 namespace { |
| 471 | 565 |
| 472 void protobuf_AssignDescriptors() { | 566 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); |
| 473 protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); | 567 inline void protobuf_AssignDescriptorsOnce() { |
| 474 ::google::protobuf::MessageFactory* factory = NULL; | 568 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, |
| 475 AssignDescriptors( | 569 &protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto); |
| 476 "google/protobuf/descriptor.proto", schemas, file_default_instances, proto
buf_Offsets_google_2fprotobuf_2fdescriptor_2eproto(), factory, | 570 } |
| 477 file_level_metadata, file_level_enum_descriptors, NULL); | 571 |
| 478 } | |
| 479 | |
| 480 void protobuf_AssignDescriptorsOnce() { | |
| 481 static GOOGLE_PROTOBUF_DECLARE_ONCE(once); | |
| 482 ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); | |
| 483 } | |
| 484 | |
| 485 void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; | |
| 486 void protobuf_RegisterTypes(const ::std::string&) { | 572 void protobuf_RegisterTypes(const ::std::string&) { |
| 487 protobuf_AssignDescriptorsOnce(); | 573 protobuf_AssignDescriptorsOnce(); |
| 488 ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 25); | 574 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 575 FileDescriptorSet_descriptor_, &FileDescriptorSet::default_instance()); |
| 576 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 577 FileDescriptorProto_descriptor_, &FileDescriptorProto::default_instance())
; |
| 578 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 579 DescriptorProto_descriptor_, &DescriptorProto::default_instance()); |
| 580 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 581 DescriptorProto_ExtensionRange_descriptor_, &DescriptorProto_ExtensionRang
e::default_instance()); |
| 582 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 583 DescriptorProto_ReservedRange_descriptor_, &DescriptorProto_ReservedRange:
:default_instance()); |
| 584 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 585 FieldDescriptorProto_descriptor_, &FieldDescriptorProto::default_instance(
)); |
| 586 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 587 OneofDescriptorProto_descriptor_, &OneofDescriptorProto::default_instance(
)); |
| 588 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 589 EnumDescriptorProto_descriptor_, &EnumDescriptorProto::default_instance())
; |
| 590 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 591 EnumValueDescriptorProto_descriptor_, &EnumValueDescriptorProto::default_i
nstance()); |
| 592 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 593 ServiceDescriptorProto_descriptor_, &ServiceDescriptorProto::default_insta
nce()); |
| 594 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 595 MethodDescriptorProto_descriptor_, &MethodDescriptorProto::default_instanc
e()); |
| 596 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 597 FileOptions_descriptor_, &FileOptions::default_instance()); |
| 598 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 599 MessageOptions_descriptor_, &MessageOptions::default_instance()); |
| 600 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 601 FieldOptions_descriptor_, &FieldOptions::default_instance()); |
| 602 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 603 EnumOptions_descriptor_, &EnumOptions::default_instance()); |
| 604 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 605 EnumValueOptions_descriptor_, &EnumValueOptions::default_instance()); |
| 606 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 607 ServiceOptions_descriptor_, &ServiceOptions::default_instance()); |
| 608 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 609 MethodOptions_descriptor_, &MethodOptions::default_instance()); |
| 610 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 611 UninterpretedOption_descriptor_, &UninterpretedOption::default_instance())
; |
| 612 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 613 UninterpretedOption_NamePart_descriptor_, &UninterpretedOption_NamePart::d
efault_instance()); |
| 614 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 615 SourceCodeInfo_descriptor_, &SourceCodeInfo::default_instance()); |
| 616 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 617 SourceCodeInfo_Location_descriptor_, &SourceCodeInfo_Location::default_ins
tance()); |
| 618 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 619 GeneratedCodeInfo_descriptor_, &GeneratedCodeInfo::default_instance()); |
| 620 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 621 GeneratedCodeInfo_Annotation_descriptor_, &GeneratedCodeInfo_Annotation::d
efault_instance()); |
| 489 } | 622 } |
| 490 | 623 |
| 491 } // namespace | 624 } // namespace |
| 492 | 625 |
| 493 void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto() { | 626 void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto() { |
| 494 _FileDescriptorSet_default_instance_.Shutdown(); | 627 delete FileDescriptorSet::default_instance_; |
| 495 delete file_level_metadata[0].reflection; | 628 delete FileDescriptorSet_reflection_; |
| 496 _FileDescriptorProto_default_instance_.Shutdown(); | 629 delete FileDescriptorProto::default_instance_; |
| 497 delete file_level_metadata[1].reflection; | 630 delete FileDescriptorProto_reflection_; |
| 498 _DescriptorProto_ExtensionRange_default_instance_.Shutdown(); | 631 delete DescriptorProto::default_instance_; |
| 499 delete file_level_metadata[2].reflection; | 632 delete DescriptorProto_reflection_; |
| 500 _DescriptorProto_ReservedRange_default_instance_.Shutdown(); | 633 delete DescriptorProto_ExtensionRange::default_instance_; |
| 501 delete file_level_metadata[3].reflection; | 634 delete DescriptorProto_ExtensionRange_reflection_; |
| 502 _DescriptorProto_default_instance_.Shutdown(); | 635 delete DescriptorProto_ReservedRange::default_instance_; |
| 503 delete file_level_metadata[4].reflection; | 636 delete DescriptorProto_ReservedRange_reflection_; |
| 504 _FieldDescriptorProto_default_instance_.Shutdown(); | 637 delete FieldDescriptorProto::default_instance_; |
| 505 delete file_level_metadata[5].reflection; | 638 delete FieldDescriptorProto_reflection_; |
| 506 _OneofDescriptorProto_default_instance_.Shutdown(); | 639 delete OneofDescriptorProto::default_instance_; |
| 507 delete file_level_metadata[6].reflection; | 640 delete OneofDescriptorProto_reflection_; |
| 508 _EnumDescriptorProto_default_instance_.Shutdown(); | 641 delete EnumDescriptorProto::default_instance_; |
| 509 delete file_level_metadata[7].reflection; | 642 delete EnumDescriptorProto_reflection_; |
| 510 _EnumValueDescriptorProto_default_instance_.Shutdown(); | 643 delete EnumValueDescriptorProto::default_instance_; |
| 511 delete file_level_metadata[8].reflection; | 644 delete EnumValueDescriptorProto_reflection_; |
| 512 _ServiceDescriptorProto_default_instance_.Shutdown(); | 645 delete ServiceDescriptorProto::default_instance_; |
| 513 delete file_level_metadata[9].reflection; | 646 delete ServiceDescriptorProto_reflection_; |
| 514 _MethodDescriptorProto_default_instance_.Shutdown(); | 647 delete MethodDescriptorProto::default_instance_; |
| 515 delete file_level_metadata[10].reflection; | 648 delete MethodDescriptorProto_reflection_; |
| 516 _FileOptions_default_instance_.Shutdown(); | 649 delete FileOptions::default_instance_; |
| 517 delete file_level_metadata[11].reflection; | 650 delete FileOptions_reflection_; |
| 518 _MessageOptions_default_instance_.Shutdown(); | 651 delete MessageOptions::default_instance_; |
| 519 delete file_level_metadata[12].reflection; | 652 delete MessageOptions_reflection_; |
| 520 _FieldOptions_default_instance_.Shutdown(); | 653 delete FieldOptions::default_instance_; |
| 521 delete file_level_metadata[13].reflection; | 654 delete FieldOptions_reflection_; |
| 522 _OneofOptions_default_instance_.Shutdown(); | 655 delete EnumOptions::default_instance_; |
| 523 delete file_level_metadata[14].reflection; | 656 delete EnumOptions_reflection_; |
| 524 _EnumOptions_default_instance_.Shutdown(); | 657 delete EnumValueOptions::default_instance_; |
| 525 delete file_level_metadata[15].reflection; | 658 delete EnumValueOptions_reflection_; |
| 526 _EnumValueOptions_default_instance_.Shutdown(); | 659 delete ServiceOptions::default_instance_; |
| 527 delete file_level_metadata[16].reflection; | 660 delete ServiceOptions_reflection_; |
| 528 _ServiceOptions_default_instance_.Shutdown(); | 661 delete MethodOptions::default_instance_; |
| 529 delete file_level_metadata[17].reflection; | 662 delete MethodOptions_reflection_; |
| 530 _MethodOptions_default_instance_.Shutdown(); | 663 delete UninterpretedOption::default_instance_; |
| 531 delete file_level_metadata[18].reflection; | 664 delete UninterpretedOption_reflection_; |
| 532 _UninterpretedOption_NamePart_default_instance_.Shutdown(); | 665 delete UninterpretedOption_NamePart::default_instance_; |
| 533 delete file_level_metadata[19].reflection; | 666 delete UninterpretedOption_NamePart_reflection_; |
| 534 _UninterpretedOption_default_instance_.Shutdown(); | 667 delete SourceCodeInfo::default_instance_; |
| 535 delete file_level_metadata[20].reflection; | 668 delete SourceCodeInfo_reflection_; |
| 536 _SourceCodeInfo_Location_default_instance_.Shutdown(); | 669 delete SourceCodeInfo_Location::default_instance_; |
| 537 delete file_level_metadata[21].reflection; | 670 delete SourceCodeInfo_Location_reflection_; |
| 538 _SourceCodeInfo_default_instance_.Shutdown(); | 671 delete GeneratedCodeInfo::default_instance_; |
| 539 delete file_level_metadata[22].reflection; | 672 delete GeneratedCodeInfo_reflection_; |
| 540 _GeneratedCodeInfo_Annotation_default_instance_.Shutdown(); | 673 delete GeneratedCodeInfo_Annotation::default_instance_; |
| 541 delete file_level_metadata[23].reflection; | 674 delete GeneratedCodeInfo_Annotation_reflection_; |
| 542 _GeneratedCodeInfo_default_instance_.Shutdown(); | 675 } |
| 543 delete file_level_metadata[24].reflection; | 676 |
| 544 } | 677 void protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto() { |
| 545 | 678 static bool already_here = false; |
| 546 void protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto_impl() { | 679 if (already_here) return; |
| 680 already_here = true; |
| 547 GOOGLE_PROTOBUF_VERIFY_VERSION; | 681 GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 548 | 682 |
| 549 ::google::protobuf::internal::InitProtobufDefaults(); | |
| 550 _FileDescriptorSet_default_instance_.DefaultConstruct(); | |
| 551 _FileDescriptorProto_default_instance_.DefaultConstruct(); | |
| 552 _DescriptorProto_ExtensionRange_default_instance_.DefaultConstruct(); | |
| 553 _DescriptorProto_ReservedRange_default_instance_.DefaultConstruct(); | |
| 554 _DescriptorProto_default_instance_.DefaultConstruct(); | |
| 555 _FieldDescriptorProto_default_instance_.DefaultConstruct(); | |
| 556 _OneofDescriptorProto_default_instance_.DefaultConstruct(); | |
| 557 _EnumDescriptorProto_default_instance_.DefaultConstruct(); | |
| 558 _EnumValueDescriptorProto_default_instance_.DefaultConstruct(); | |
| 559 _ServiceDescriptorProto_default_instance_.DefaultConstruct(); | |
| 560 _MethodDescriptorProto_default_instance_.DefaultConstruct(); | |
| 561 _FileOptions_default_instance_.DefaultConstruct(); | |
| 562 _MessageOptions_default_instance_.DefaultConstruct(); | |
| 563 _FieldOptions_default_instance_.DefaultConstruct(); | |
| 564 _OneofOptions_default_instance_.DefaultConstruct(); | |
| 565 _EnumOptions_default_instance_.DefaultConstruct(); | |
| 566 _EnumValueOptions_default_instance_.DefaultConstruct(); | |
| 567 _ServiceOptions_default_instance_.DefaultConstruct(); | |
| 568 _MethodOptions_default_instance_.DefaultConstruct(); | |
| 569 _UninterpretedOption_NamePart_default_instance_.DefaultConstruct(); | |
| 570 _UninterpretedOption_default_instance_.DefaultConstruct(); | |
| 571 _SourceCodeInfo_Location_default_instance_.DefaultConstruct(); | |
| 572 _SourceCodeInfo_default_instance_.DefaultConstruct(); | |
| 573 _GeneratedCodeInfo_Annotation_default_instance_.DefaultConstruct(); | |
| 574 _GeneratedCodeInfo_default_instance_.DefaultConstruct(); | |
| 575 _FileDescriptorProto_default_instance_.get_mutable()->options_ = const_cast< :
:google::protobuf::FileOptions*>( | |
| 576 ::google::protobuf::FileOptions::internal_default_instance()); | |
| 577 _FileDescriptorProto_default_instance_.get_mutable()->source_code_info_ = cons
t_cast< ::google::protobuf::SourceCodeInfo*>( | |
| 578 ::google::protobuf::SourceCodeInfo::internal_default_instance()); | |
| 579 _DescriptorProto_default_instance_.get_mutable()->options_ = const_cast< ::goo
gle::protobuf::MessageOptions*>( | |
| 580 ::google::protobuf::MessageOptions::internal_default_instance()); | |
| 581 _FieldDescriptorProto_default_instance_.get_mutable()->options_ = const_cast<
::google::protobuf::FieldOptions*>( | |
| 582 ::google::protobuf::FieldOptions::internal_default_instance()); | |
| 583 _OneofDescriptorProto_default_instance_.get_mutable()->options_ = const_cast<
::google::protobuf::OneofOptions*>( | |
| 584 ::google::protobuf::OneofOptions::internal_default_instance()); | |
| 585 _EnumDescriptorProto_default_instance_.get_mutable()->options_ = const_cast< :
:google::protobuf::EnumOptions*>( | |
| 586 ::google::protobuf::EnumOptions::internal_default_instance()); | |
| 587 _EnumValueDescriptorProto_default_instance_.get_mutable()->options_ = const_ca
st< ::google::protobuf::EnumValueOptions*>( | |
| 588 ::google::protobuf::EnumValueOptions::internal_default_instance()); | |
| 589 _ServiceDescriptorProto_default_instance_.get_mutable()->options_ = const_cast
< ::google::protobuf::ServiceOptions*>( | |
| 590 ::google::protobuf::ServiceOptions::internal_default_instance()); | |
| 591 _MethodDescriptorProto_default_instance_.get_mutable()->options_ = const_cast<
::google::protobuf::MethodOptions*>( | |
| 592 ::google::protobuf::MethodOptions::internal_default_instance()); | |
| 593 } | |
| 594 | |
| 595 void protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto() { | |
| 596 static GOOGLE_PROTOBUF_DECLARE_ONCE(once); | |
| 597 ::google::protobuf::GoogleOnceInit(&once, &protobuf_InitDefaults_google_2fprot
obuf_2fdescriptor_2eproto_impl); | |
| 598 } | |
| 599 void protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto_impl() { | |
| 600 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
| 601 static const char descriptor[] = { | |
| 602 "\n google/protobuf/descriptor.proto\022\017goog" | |
| 603 "le.protobuf\"G\n\021FileDescriptorSet\0222\n\004file" | |
| 604 "\030\001 \003(\0132$.google.protobuf.FileDescriptorP" | |
| 605 "roto\"\333\003\n\023FileDescriptorProto\022\014\n\004name\030\001 \001" | |
| 606 "(\t\022\017\n\007package\030\002 \001(\t\022\022\n\ndependency\030\003 \0
03(\t\022" | |
| 607 "\031\n\021public_dependency\030\n \003(\005\022\027\n\017weak_depen" | |
| 608 "dency\030\013 \003(\005\0226\n\014message_type\030\004 \003(\0132 .goog" | |
| 609 "le.protobuf.DescriptorProto\0227\n\tenum_type" | |
| 610 "\030\005 \003(\0132$.google.protobuf.EnumDescriptorP" | |
| 611 "roto\0228\n\007service\030\006 \003(\0132\'.google.protobuf." | |
| 612 "ServiceDescriptorProto\0228\n\textension\030\007 \003(" | |
| 613 "\0132%.google.protobuf.FieldDescriptorProto" | |
| 614 "\022-\n\007options\030\010 \001(\0132\034.google.protobuf.File" | |
| 615 "Options\0229\n\020source_code_info\030\t \001(\0132\037.goog" | |
| 616 "le.protobuf.SourceCodeInfo\022\016\n\006syntax\030\014 \001" | |
| 617 "(\t\"\360\004\n\017DescriptorProto\022\014\n\004name\030\001 \001(\t\0224
\n\005" | |
| 618 "field\030\002 \003(\0132%.google.protobuf.FieldDescr" | |
| 619 "iptorProto\0228\n\textension\030\006 \003(\0132%.google.p" | |
| 620 "rotobuf.FieldDescriptorProto\0225\n\013nested_t" | |
| 621 "ype\030\003 \003(\0132 .google.protobuf.DescriptorPr" | |
| 622 "oto\0227\n\tenum_type\030\004 \003(\0132$.google.protobuf" | |
| 623 ".EnumDescriptorProto\022H\n\017extension_range\030" | |
| 624 "\005 \003(\0132/.google.protobuf.DescriptorProto." | |
| 625 "ExtensionRange\0229\n\noneof_decl\030\010 \003(\0132%.goo" | |
| 626 "gle.protobuf.OneofDescriptorProto\0220\n\007opt" | |
| 627 "ions\030\007 \001(\0132\037.google.protobuf.MessageOpti" | |
| 628 "ons\022F\n\016reserved_range\030\t \003(\0132..google.pro" | |
| 629 "tobuf.DescriptorProto.ReservedRange\022\025\n\rr" | |
| 630 "eserved_name\030\n \003(\t\032,\n\016ExtensionRange\022\r\n\005" | |
| 631 "start\030\001 \001(\005\022\013\n\003end\030\002 \001(\005\032+\n\rReserv
edRang" | |
| 632 "e\022\r\n\005start\030\001 \001(\005\022\013\n\003end\030\002 \001(\005\"
\274\005\n\024FieldD" | |
| 633 "escriptorProto\022\014\n\004name\030\001 \001(\t\022\016\n\006number\030\
003" | |
| 634 " \001(\005\022:\n\005label\030\004 \001(\0162+.google.protobuf.Fi" | |
| 635 "eldDescriptorProto.Label\0228\n\004type\030\005 \001(\0162*" | |
| 636 ".google.protobuf.FieldDescriptorProto.Ty" | |
| 637 "pe\022\021\n\ttype_name\030\006 \001(\t\022\020\n\010extendee\030\002 \00
1(\t\022" | |
| 638 "\025\n\rdefault_value\030\007 \001(\t\022\023\n\013oneof_index\030\t " | |
| 639 "\001(\005\022\021\n\tjson_name\030\n \001(\t\022.\n\007options\030\010 \0
01(\0132" | |
| 640 "\035.google.protobuf.FieldOptions\"\266\002\n\004Type\022" | |
| 641 "\017\n\013TYPE_DOUBLE\020\001\022\016\n\nTYPE_FLOAT\020\002\022\016\n\nTY
PE" | |
| 642 "_INT64\020\003\022\017\n\013TYPE_UINT64\020\004\022\016\n\nTYPE_INT32\020
" | |
| 643 "\005\022\020\n\014TYPE_FIXED64\020\006\022\020\n\014TYPE_FIXED32\020\007\
022\r\n" | |
| 644 "\tTYPE_BOOL\020\010\022\017\n\013TYPE_STRING\020\t\022\016\n\nTYPE_GR" | |
| 645 "OUP\020\n\022\020\n\014TYPE_MESSAGE\020\013\022\016\n\nTYPE_BYTES\020\014
\022" | |
| 646 "\017\n\013TYPE_UINT32\020\r\022\r\n\tTYPE_ENUM\020\016\022\021\n\rTYPE_" | |
| 647 "SFIXED32\020\017\022\021\n\rTYPE_SFIXED64\020\020\022\017\n\013TYPE_SI" | |
| 648 "NT32\020\021\022\017\n\013TYPE_SINT64\020\022\"C\n\005Label\022\022\n\016
LABE" | |
| 649 "L_OPTIONAL\020\001\022\022\n\016LABEL_REQUIRED\020\002\022\022\n\016LABE" | |
| 650 "L_REPEATED\020\003\"T\n\024OneofDescriptorProto\022\014\n\004" | |
| 651 "name\030\001 \001(\t\022.\n\007options\030\002 \001(\0132\035.google.pro" | |
| 652 "tobuf.OneofOptions\"\214\001\n\023EnumDescriptorPro" | |
| 653 "to\022\014\n\004name\030\001 \001(\t\0228\n\005value\030\002 \003(\0132).
google" | |
| 654 ".protobuf.EnumValueDescriptorProto\022-\n\007op" | |
| 655 "tions\030\003 \001(\0132\034.google.protobuf.EnumOption" | |
| 656 "s\"l\n\030EnumValueDescriptorProto\022\014\n\004name\030\001 " | |
| 657 "\001(\t\022\016\n\006number\030\002 \001(\005\0222\n\007options\030\003 \
001(\0132!.g" | |
| 658 "oogle.protobuf.EnumValueOptions\"\220\001\n\026Serv" | |
| 659 "iceDescriptorProto\022\014\n\004name\030\001 \001(\t\0226\n\006meth" | |
| 660 "od\030\002 \003(\0132&.google.protobuf.MethodDescrip" | |
| 661 "torProto\0220\n\007options\030\003 \001(\0132\037.google.proto" | |
| 662 "buf.ServiceOptions\"\301\001\n\025MethodDescriptorP" | |
| 663 "roto\022\014\n\004name\030\001 \001(\t\022\022\n\ninput_type\030\002 \001
(\t\022\023" | |
| 664 "\n\013output_type\030\003 \001(\t\022/\n\007options\030\004 \001(\0132\03
6.g" | |
| 665 "oogle.protobuf.MethodOptions\022\037\n\020client_s" | |
| 666 "treaming\030\005 \001(\010:\005false\022\037\n\020server_streamin" | |
| 667 "g\030\006 \001(\010:\005false\"\232\005\n\013FileOptions\022\024\n\014jav
a_p" | |
| 668 "ackage\030\001 \001(\t\022\034\n\024java_outer_classname\030\010 \001" | |
| 669 "(\t\022\"\n\023java_multiple_files\030\n \001(\010:\005false\022)" | |
| 670 "\n\035java_generate_equals_and_hash\030\024 \001(\010B\002\030" | |
| 671 "\001\022%\n\026java_string_check_utf8\030\033 \001(\010:\005false" | |
| 672 "\022F\n\014optimize_for\030\t \001(\0162).google.protobuf" | |
| 673 ".FileOptions.OptimizeMode:\005SPEED\022\022\n\ngo_p" | |
| 674 "ackage\030\013 \001(\t\022\"\n\023cc_generic_services\030\020 \001(" | |
| 675 "\010:\005false\022$\n\025java_generic_services\030\021 \001(\010:" | |
| 676 "\005false\022\"\n\023py_generic_services\030\022 \001(\010:\005fal" | |
| 677 "se\022\031\n\ndeprecated\030\027 \001(\010:\005false\022\037\n\020cc_enab
" | |
| 678 "le_arenas\030\037 \001(\010:\005false\022\031\n\021objc_class_pre" | |
| 679 "fix\030$ \001(\t\022\030\n\020csharp_namespace\030% \001(\t\022\024\n\014
s" | |
| 680 "wift_prefix\030\' \001(\t\022C\n\024uninterpreted_optio" | |
| 681 "n\030\347\007 \003(\0132$.google.protobuf.Uninterpreted" | |
| 682 "Option\":\n\014OptimizeMode\022\t\n\005SPEED\020\001\022\r\n\tCOD" | |
| 683 "E_SIZE\020\002\022\020\n\014LITE_RUNTIME\020\003*\t\010\350\007\020\200\2
00\200\200\002J\004\010" | |
| 684 "&\020\'\"\354\001\n\016MessageOptions\022&\n\027message_set_wi" | |
| 685 "re_format\030\001 \001(\010:\005false\022.\n\037no_standard_de" | |
| 686 "scriptor_accessor\030\002 \001(\010:\005false\022\031\n\ndeprec" | |
| 687 "ated\030\003 \001(\010:\005false\022\021\n\tmap_entry\030\007 \001(\010\0
22C\n\024" | |
| 688 "uninterpreted_option\030\347\007 \003(\0132$.google.pro" | |
| 689 "tobuf.UninterpretedOption*\t\010\350\007\020\200\200\200\200\002J\004\010
\010" | |
| 690 "\020\t\"\236\003\n\014FieldOptions\022:\n\005ctype\030\001 \001(\0162#.go
o" | |
| 691 "gle.protobuf.FieldOptions.CType:\006STRING\022" | |
| 692 "\016\n\006packed\030\002 \001(\010\022\?\n\006jstype\030\006 \001(\0162$.
google" | |
| 693 ".protobuf.FieldOptions.JSType:\tJS_NORMAL" | |
| 694 "\022\023\n\004lazy\030\005 \001(\010:\005false\022\031\n\ndeprecated\030\
003 \001(" | |
| 695 "\010:\005false\022\023\n\004weak\030\n \001(\010:\005false\022C\n\024unin
ter" | |
| 696 "preted_option\030\347\007 \003(\0132$.google.protobuf.U" | |
| 697 "ninterpretedOption\"/\n\005CType\022\n\n\006STRING\020\000\022" | |
| 698 "\010\n\004CORD\020\001\022\020\n\014STRING_PIECE\020\002\"5\n\006JSType\0
22\r\n" | |
| 699 "\tJS_NORMAL\020\000\022\r\n\tJS_STRING\020\001\022\r\n\tJS_NUMBER" | |
| 700 "\020\002*\t\010\350\007\020\200\200\200\200\002J\004\010\004\020\005\"^\n
\014OneofOptions\022C\n\024u" | |
| 701 "ninterpreted_option\030\347\007 \003(\0132$.google.prot" | |
| 702 "obuf.UninterpretedOption*\t\010\350\007\020\200\200\200\200\002\"\215\001
\n\013" | |
| 703 "EnumOptions\022\023\n\013allow_alias\030\002 \001(\010\022\031\n\ndepr" | |
| 704 "ecated\030\003 \001(\010:\005false\022C\n\024uninterpreted_opt" | |
| 705 "ion\030\347\007 \003(\0132$.google.protobuf.Uninterpret" | |
| 706 "edOption*\t\010\350\007\020\200\200\200\200\002\"}\n\020EnumValueOptions\
022" | |
| 707 "\031\n\ndeprecated\030\001 \001(\010:\005false\022C\n\024uninterpre" | |
| 708 "ted_option\030\347\007 \003(\0132$.google.protobuf.Unin" | |
| 709 "terpretedOption*\t\010\350\007\020\200\200\200\200\002\"{\n\016ServiceOpt
" | |
| 710 "ions\022\031\n\ndeprecated\030! \001(\010:\005false\022C\n\024unint" | |
| 711 "erpreted_option\030\347\007 \003(\0132$.google.protobuf" | |
| 712 ".UninterpretedOption*\t\010\350\007\020\200\200\200\200\002\"\255\002\n\r
Meth" | |
| 713 "odOptions\022\031\n\ndeprecated\030! \001(\010:\005false\022_\n\021" | |
| 714 "idempotency_level\030\" \001(\0162/.google.protobu" | |
| 715 "f.MethodOptions.IdempotencyLevel:\023IDEMPO" | |
| 716 "TENCY_UNKNOWN\022C\n\024uninterpreted_option\030\347\007" | |
| 717 " \003(\0132$.google.protobuf.UninterpretedOpti" | |
| 718 "on\"P\n\020IdempotencyLevel\022\027\n\023IDEMPOTENCY_UN" | |
| 719 "KNOWN\020\000\022\023\n\017NO_SIDE_EFFECTS\020\001\022\016\n\nIDEMPOTE" | |
| 720 "NT\020\002*\t\010\350\007\020\200\200\200\200\002\"\236\002\n\023Uninterp
retedOption\022" | |
| 721 ";\n\004name\030\002 \003(\0132-.google.protobuf.Uninterp" | |
| 722 "retedOption.NamePart\022\030\n\020identifier_value" | |
| 723 "\030\003 \001(\t\022\032\n\022positive_int_value\030\004 \001(\004\022\03
2\n\022ne" | |
| 724 "gative_int_value\030\005 \001(\003\022\024\n\014double_value\030\006" | |
| 725 " \001(\001\022\024\n\014string_value\030\007 \001(\014\022\027\n\017aggre
gate_" | |
| 726 "value\030\010 \001(\t\0323\n\010NamePart\022\021\n\tname_part\030\001 \00
2" | |
| 727 "(\t\022\024\n\014is_extension\030\002 \002(\010\"\325\001\n\016SourceCode
I" | |
| 728 "nfo\022:\n\010location\030\001 \003(\0132(.google.protobuf." | |
| 729 "SourceCodeInfo.Location\032\206\001\n\010Location\022\020\n\004" | |
| 730 "path\030\001 \003(\005B\002\020\001\022\020\n\004span\030\002 \003(\005B\
002\020\001\022\030\n\020lead" | |
| 731 "ing_comments\030\003 \001(\t\022\031\n\021trailing_comments\030" | |
| 732 "\004 \001(\t\022!\n\031leading_detached_comments\030\006 \003(\t" | |
| 733 "\"\247\001\n\021GeneratedCodeInfo\022A\n\nannotation\030\001 \003" | |
| 734 "(\0132-.google.protobuf.GeneratedCodeInfo.A" | |
| 735 "nnotation\032O\n\nAnnotation\022\020\n\004path\030\001 \003(\005B\002\020
" | |
| 736 "\001\022\023\n\013source_file\030\002 \001(\t\022\r\n\005begin\030\003 \0
01(\005\022\013\n" | |
| 737 "\003end\030\004 \001(\005B\214\001\n\023com.google.protobufB\020Desc" | |
| 738 "riptorProtosH\001Z>github.com/golang/protob" | |
| 739 "uf/protoc-gen-go/descriptor;descriptor\242\002" | |
| 740 "\003GPB\252\002\032Google.Protobuf.Reflection" | |
| 741 }; | |
| 742 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( | 683 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( |
| 743 descriptor, 5553); | 684 "\n google/protobuf/descriptor.proto\022\017goog" |
| 685 "le.protobuf\"G\n\021FileDescriptorSet\0222\n\004file" |
| 686 "\030\001 \003(\0132$.google.protobuf.FileDescriptorP" |
| 687 "roto\"\333\003\n\023FileDescriptorProto\022\014\n\004name\030\001 \001" |
| 688 "(\t\022\017\n\007package\030\002 \001(\t\022\022\n\ndependency\030\003 \003
(\t\022" |
| 689 "\031\n\021public_dependency\030\n \003(\005\022\027\n\017weak_depen" |
| 690 "dency\030\013 \003(\005\0226\n\014message_type\030\004 \003(\0132 .goog" |
| 691 "le.protobuf.DescriptorProto\0227\n\tenum_type" |
| 692 "\030\005 \003(\0132$.google.protobuf.EnumDescriptorP" |
| 693 "roto\0228\n\007service\030\006 \003(\0132\'.google.protobuf." |
| 694 "ServiceDescriptorProto\0228\n\textension\030\007 \003(" |
| 695 "\0132%.google.protobuf.FieldDescriptorProto" |
| 696 "\022-\n\007options\030\010 \001(\0132\034.google.protobuf.File" |
| 697 "Options\0229\n\020source_code_info\030\t \001(\0132\037.goog" |
| 698 "le.protobuf.SourceCodeInfo\022\016\n\006syntax\030\014 \001" |
| 699 "(\t\"\360\004\n\017DescriptorProto\022\014\n\004name\030\001 \001(\t\0224\n
\005" |
| 700 "field\030\002 \003(\0132%.google.protobuf.FieldDescr" |
| 701 "iptorProto\0228\n\textension\030\006 \003(\0132%.google.p" |
| 702 "rotobuf.FieldDescriptorProto\0225\n\013nested_t" |
| 703 "ype\030\003 \003(\0132 .google.protobuf.DescriptorPr" |
| 704 "oto\0227\n\tenum_type\030\004 \003(\0132$.google.protobuf" |
| 705 ".EnumDescriptorProto\022H\n\017extension_range\030" |
| 706 "\005 \003(\0132/.google.protobuf.DescriptorProto." |
| 707 "ExtensionRange\0229\n\noneof_decl\030\010 \003(\0132%.goo" |
| 708 "gle.protobuf.OneofDescriptorProto\0220\n\007opt" |
| 709 "ions\030\007 \001(\0132\037.google.protobuf.MessageOpti" |
| 710 "ons\022F\n\016reserved_range\030\t \003(\0132..google.pro" |
| 711 "tobuf.DescriptorProto.ReservedRange\022\025\n\rr" |
| 712 "eserved_name\030\n \003(\t\032,\n\016ExtensionRange\022\r\n\005" |
| 713 "start\030\001 \001(\005\022\013\n\003end\030\002 \001(\005\032+\n\rReserved
Rang" |
| 714 "e\022\r\n\005start\030\001 \001(\005\022\013\n\003end\030\002 \001(\005\"\2
74\005\n\024FieldD" |
| 715 "escriptorProto\022\014\n\004name\030\001 \001(\t\022\016\n\006number\030\00
3" |
| 716 " \001(\005\022:\n\005label\030\004 \001(\0162+.google.protobuf.Fi" |
| 717 "eldDescriptorProto.Label\0228\n\004type\030\005 \001(\0162*" |
| 718 ".google.protobuf.FieldDescriptorProto.Ty" |
| 719 "pe\022\021\n\ttype_name\030\006 \001(\t\022\020\n\010extendee\030\002 \001(
\t\022" |
| 720 "\025\n\rdefault_value\030\007 \001(\t\022\023\n\013oneof_index\030\t " |
| 721 "\001(\005\022\021\n\tjson_name\030\n \001(\t\022.\n\007options\030\010 \001
(\0132" |
| 722 "\035.google.protobuf.FieldOptions\"\266\002\n\004Type\022" |
| 723 "\017\n\013TYPE_DOUBLE\020\001\022\016\n\nTYPE_FLOAT\020\002\022\016\n\nTYPE
" |
| 724 "_INT64\020\003\022\017\n\013TYPE_UINT64\020\004\022\016\n\nTYPE_INT32\020" |
| 725 "\005\022\020\n\014TYPE_FIXED64\020\006\022\020\n\014TYPE_FIXED32\020\007\02
2\r\n" |
| 726 "\tTYPE_BOOL\020\010\022\017\n\013TYPE_STRING\020\t\022\016\n\nTYPE_GR" |
| 727 "OUP\020\n\022\020\n\014TYPE_MESSAGE\020\013\022\016\n\nTYPE_BYTES\020\014\0
22" |
| 728 "\017\n\013TYPE_UINT32\020\r\022\r\n\tTYPE_ENUM\020\016\022\021\n\rTYPE_" |
| 729 "SFIXED32\020\017\022\021\n\rTYPE_SFIXED64\020\020\022\017\n\013TYPE_SI" |
| 730 "NT32\020\021\022\017\n\013TYPE_SINT64\020\022\"C\n\005Label\022\022\n\016LA
BE" |
| 731 "L_OPTIONAL\020\001\022\022\n\016LABEL_REQUIRED\020\002\022\022\n\016LABE" |
| 732 "L_REPEATED\020\003\"$\n\024OneofDescriptorProto\022\014\n\004" |
| 733 "name\030\001 \001(\t\"\214\001\n\023EnumDescriptorProto\022\014\n\004na" |
| 734 "me\030\001 \001(\t\0228\n\005value\030\002 \003(\0132).google.protobu" |
| 735 "f.EnumValueDescriptorProto\022-\n\007options\030\003 " |
| 736 "\001(\0132\034.google.protobuf.EnumOptions\"l\n\030Enu" |
| 737 "mValueDescriptorProto\022\014\n\004name\030\001 \001(\t\022\016\n\006n" |
| 738 "umber\030\002 \001(\005\0222\n\007options\030\003 \001(\0132!.google.pr" |
| 739 "otobuf.EnumValueOptions\"\220\001\n\026ServiceDescr" |
| 740 "iptorProto\022\014\n\004name\030\001 \001(\t\0226\n\006method\030\002 \003(
\013" |
| 741 "2&.google.protobuf.MethodDescriptorProto" |
| 742 "\0220\n\007options\030\003 \001(\0132\037.google.protobuf.Serv" |
| 743 "iceOptions\"\301\001\n\025MethodDescriptorProto\022\014\n\004" |
| 744 "name\030\001 \001(\t\022\022\n\ninput_type\030\002 \001(\t\022\023\n\013out
put" |
| 745 "_type\030\003 \001(\t\022/\n\007options\030\004 \001(\0132\036.google.pr" |
| 746 "otobuf.MethodOptions\022\037\n\020client_streaming" |
| 747 "\030\005 \001(\010:\005false\022\037\n\020server_streaming\030\006 \001(\01
0:" |
| 748 "\005false\"\207\005\n\013FileOptions\022\024\n\014java_package\030\001" |
| 749 " \001(\t\022\034\n\024java_outer_classname\030\010 \001(\t\022\"\n\023ja" |
| 750 "va_multiple_files\030\n \001(\010:\005false\022,\n\035java_g" |
| 751 "enerate_equals_and_hash\030\024 \001(\010:\005false\022%\n\026" |
| 752 "java_string_check_utf8\030\033 \001(\010:\005false\022F\n\014o" |
| 753 "ptimize_for\030\t \001(\0162).google.protobuf.File" |
| 754 "Options.OptimizeMode:\005SPEED\022\022\n\ngo_packag" |
| 755 "e\030\013 \001(\t\022\"\n\023cc_generic_services\030\020 \001(\010:\005fa" |
| 756 "lse\022$\n\025java_generic_services\030\021 \001(\010:\005fals" |
| 757 "e\022\"\n\023py_generic_services\030\022 \001(\010:\005false\022\031\n" |
| 758 "\ndeprecated\030\027 \001(\010:\005false\022\037\n\020cc_enable_ar" |
| 759 "enas\030\037 \001(\010:\005false\022\031\n\021objc_class_prefix\030$" |
| 760 " \001(\t\022\030\n\020csharp_namespace\030% \001(\t\022C\n\024uninte" |
| 761 "rpreted_option\030\347\007 \003(\0132$.google.protobuf." |
| 762 "UninterpretedOption\":\n\014OptimizeMode\022\t\n\005S" |
| 763 "PEED\020\001\022\r\n\tCODE_SIZE\020\002\022\020\n\014LITE_RUNTIME\020\003*" |
| 764 "\t\010\350\007\020\200\200\200\200\002J\004\010&\020\'\"\346\001\n\016Messa
geOptions\022&\n\027m" |
| 765 "essage_set_wire_format\030\001 \001(\010:\005false\022.\n\037n" |
| 766 "o_standard_descriptor_accessor\030\002 \001(\010:\005fa" |
| 767 "lse\022\031\n\ndeprecated\030\003 \001(\010:\005false\022\021\n\tmap_en" |
| 768 "try\030\007 \001(\010\022C\n\024uninterpreted_option\030\347\007 \003(\013" |
| 769 "2$.google.protobuf.UninterpretedOption*\t" |
| 770 "\010\350\007\020\200\200\200\200\002\"\230\003\n\014FieldOptions\022:\n\005
ctype\030\001 \001(" |
| 771 "\0162#.google.protobuf.FieldOptions.CType:\006" |
| 772 "STRING\022\016\n\006packed\030\002 \001(\010\022\?\n\006jstype\030\006 \001
(\0162$" |
| 773 ".google.protobuf.FieldOptions.JSType:\tJS" |
| 774 "_NORMAL\022\023\n\004lazy\030\005 \001(\010:\005false\022\031\n\ndeprecat" |
| 775 "ed\030\003 \001(\010:\005false\022\023\n\004weak\030\n \001(\010:\005false\
022C\n\024" |
| 776 "uninterpreted_option\030\347\007 \003(\0132$.google.pro" |
| 777 "tobuf.UninterpretedOption\"/\n\005CType\022\n\n\006ST" |
| 778 "RING\020\000\022\010\n\004CORD\020\001\022\020\n\014STRING_PIECE\020\002\"5
\n\006JS" |
| 779 "Type\022\r\n\tJS_NORMAL\020\000\022\r\n\tJS_STRING\020\001\022\r\n\tJS" |
| 780 "_NUMBER\020\002*\t\010\350\007\020\200\200\200\200\002\"\215\001\n\013EnumO
ptions\022\023\n\013" |
| 781 "allow_alias\030\002 \001(\010\022\031\n\ndeprecated\030\003 \001(\010:\005f
" |
| 782 "alse\022C\n\024uninterpreted_option\030\347\007 \003(\0132$.go" |
| 783 "ogle.protobuf.UninterpretedOption*\t\010\350\007\020\200" |
| 784 "\200\200\200\002\"}\n\020EnumValueOptions\022\031\n\ndeprecated\030\001" |
| 785 " \001(\010:\005false\022C\n\024uninterpreted_option\030\347\007 \003" |
| 786 "(\0132$.google.protobuf.UninterpretedOption" |
| 787 "*\t\010\350\007\020\200\200\200\200\002\"{\n\016ServiceOptions\022\031\n\nd
epreca" |
| 788 "ted\030! \001(\010:\005false\022C\n\024uninterpreted_option" |
| 789 "\030\347\007 \003(\0132$.google.protobuf.UninterpretedO" |
| 790 "ption*\t\010\350\007\020\200\200\200\200\002\"z\n\rMethodOptions\022\031\n\
ndep" |
| 791 "recated\030! \001(\010:\005false\022C\n\024uninterpreted_op" |
| 792 "tion\030\347\007 \003(\0132$.google.protobuf.Uninterpre" |
| 793 "tedOption*\t\010\350\007\020\200\200\200\200\002\"\236\002\n\023Uninterpret
edOp" |
| 794 "tion\022;\n\004name\030\002 \003(\0132-.google.protobuf.Uni" |
| 795 "nterpretedOption.NamePart\022\030\n\020identifier_" |
| 796 "value\030\003 \001(\t\022\032\n\022positive_int_value\030\004 \001(\004\022
" |
| 797 "\032\n\022negative_int_value\030\005 \001(\003\022\024\n\014double_va" |
| 798 "lue\030\006 \001(\001\022\024\n\014string_value\030\007 \001(\014\022\027\n
\017aggre" |
| 799 "gate_value\030\010 \001(\t\0323\n\010NamePart\022\021\n\tname_par" |
| 800 "t\030\001 \002(\t\022\024\n\014is_extension\030\002 \002(\010\"\325\001\n\0
16Source" |
| 801 "CodeInfo\022:\n\010location\030\001 \003(\0132(.google.prot" |
| 802 "obuf.SourceCodeInfo.Location\032\206\001\n\010Locatio" |
| 803 "n\022\020\n\004path\030\001 \003(\005B\002\020\001\022\020\n\004span\030\00
2 \003(\005B\002\020\001\022\030\n" |
| 804 "\020leading_comments\030\003 \001(\t\022\031\n\021trailing_comm" |
| 805 "ents\030\004 \001(\t\022!\n\031leading_detached_comments\030" |
| 806 "\006 \003(\t\"\247\001\n\021GeneratedCodeInfo\022A\n\nannotatio" |
| 807 "n\030\001 \003(\0132-.google.protobuf.GeneratedCodeI" |
| 808 "nfo.Annotation\032O\n\nAnnotation\022\020\n\004path\030\001 \003" |
| 809 "(\005B\002\020\001\022\023\n\013source_file\030\002 \001(\t\022\r\n\005begi
n\030\003 \001" |
| 810 "(\005\022\013\n\003end\030\004 \001(\005BX\n\023com.google.protobufB\020" |
| 811 "DescriptorProtosH\001Z\ndescriptor\242\002\003GPB\252\002\032G" |
| 812 "oogle.Protobuf.Reflection", 5145); |
| 744 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( | 813 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( |
| 745 "google/protobuf/descriptor.proto", &protobuf_RegisterTypes); | 814 "google/protobuf/descriptor.proto", &protobuf_RegisterTypes); |
| 815 FileDescriptorSet::default_instance_ = new FileDescriptorSet(); |
| 816 FileDescriptorProto::default_instance_ = new FileDescriptorProto(); |
| 817 DescriptorProto::default_instance_ = new DescriptorProto(); |
| 818 DescriptorProto_ExtensionRange::default_instance_ = new DescriptorProto_Extens
ionRange(); |
| 819 DescriptorProto_ReservedRange::default_instance_ = new DescriptorProto_Reserve
dRange(); |
| 820 FieldDescriptorProto::default_instance_ = new FieldDescriptorProto(); |
| 821 OneofDescriptorProto::default_instance_ = new OneofDescriptorProto(); |
| 822 EnumDescriptorProto::default_instance_ = new EnumDescriptorProto(); |
| 823 EnumValueDescriptorProto::default_instance_ = new EnumValueDescriptorProto(); |
| 824 ServiceDescriptorProto::default_instance_ = new ServiceDescriptorProto(); |
| 825 MethodDescriptorProto::default_instance_ = new MethodDescriptorProto(); |
| 826 FileOptions::default_instance_ = new FileOptions(); |
| 827 MessageOptions::default_instance_ = new MessageOptions(); |
| 828 FieldOptions::default_instance_ = new FieldOptions(); |
| 829 EnumOptions::default_instance_ = new EnumOptions(); |
| 830 EnumValueOptions::default_instance_ = new EnumValueOptions(); |
| 831 ServiceOptions::default_instance_ = new ServiceOptions(); |
| 832 MethodOptions::default_instance_ = new MethodOptions(); |
| 833 UninterpretedOption::default_instance_ = new UninterpretedOption(); |
| 834 UninterpretedOption_NamePart::default_instance_ = new UninterpretedOption_Name
Part(); |
| 835 SourceCodeInfo::default_instance_ = new SourceCodeInfo(); |
| 836 SourceCodeInfo_Location::default_instance_ = new SourceCodeInfo_Location(); |
| 837 GeneratedCodeInfo::default_instance_ = new GeneratedCodeInfo(); |
| 838 GeneratedCodeInfo_Annotation::default_instance_ = new GeneratedCodeInfo_Annota
tion(); |
| 839 FileDescriptorSet::default_instance_->InitAsDefaultInstance(); |
| 840 FileDescriptorProto::default_instance_->InitAsDefaultInstance(); |
| 841 DescriptorProto::default_instance_->InitAsDefaultInstance(); |
| 842 DescriptorProto_ExtensionRange::default_instance_->InitAsDefaultInstance(); |
| 843 DescriptorProto_ReservedRange::default_instance_->InitAsDefaultInstance(); |
| 844 FieldDescriptorProto::default_instance_->InitAsDefaultInstance(); |
| 845 OneofDescriptorProto::default_instance_->InitAsDefaultInstance(); |
| 846 EnumDescriptorProto::default_instance_->InitAsDefaultInstance(); |
| 847 EnumValueDescriptorProto::default_instance_->InitAsDefaultInstance(); |
| 848 ServiceDescriptorProto::default_instance_->InitAsDefaultInstance(); |
| 849 MethodDescriptorProto::default_instance_->InitAsDefaultInstance(); |
| 850 FileOptions::default_instance_->InitAsDefaultInstance(); |
| 851 MessageOptions::default_instance_->InitAsDefaultInstance(); |
| 852 FieldOptions::default_instance_->InitAsDefaultInstance(); |
| 853 EnumOptions::default_instance_->InitAsDefaultInstance(); |
| 854 EnumValueOptions::default_instance_->InitAsDefaultInstance(); |
| 855 ServiceOptions::default_instance_->InitAsDefaultInstance(); |
| 856 MethodOptions::default_instance_->InitAsDefaultInstance(); |
| 857 UninterpretedOption::default_instance_->InitAsDefaultInstance(); |
| 858 UninterpretedOption_NamePart::default_instance_->InitAsDefaultInstance(); |
| 859 SourceCodeInfo::default_instance_->InitAsDefaultInstance(); |
| 860 SourceCodeInfo_Location::default_instance_->InitAsDefaultInstance(); |
| 861 GeneratedCodeInfo::default_instance_->InitAsDefaultInstance(); |
| 862 GeneratedCodeInfo_Annotation::default_instance_->InitAsDefaultInstance(); |
| 746 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fproto
buf_2fdescriptor_2eproto); | 863 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fproto
buf_2fdescriptor_2eproto); |
| 747 } | 864 } |
| 748 | 865 |
| 749 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2ep
roto_once_); | |
| 750 void protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto() { | |
| 751 ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_google_2fprotobuf_2fdescr
iptor_2eproto_once_, | |
| 752 &protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto_impl); | |
| 753 } | |
| 754 // Force AddDescriptors() to be called at static initialization time. | 866 // Force AddDescriptors() to be called at static initialization time. |
| 755 struct StaticDescriptorInitializer_google_2fprotobuf_2fdescriptor_2eproto { | 867 struct StaticDescriptorInitializer_google_2fprotobuf_2fdescriptor_2eproto { |
| 756 StaticDescriptorInitializer_google_2fprotobuf_2fdescriptor_2eproto() { | 868 StaticDescriptorInitializer_google_2fprotobuf_2fdescriptor_2eproto() { |
| 757 protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); | 869 protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
| 758 } | 870 } |
| 759 } static_descriptor_initializer_google_2fprotobuf_2fdescriptor_2eproto_; | 871 } static_descriptor_initializer_google_2fprotobuf_2fdescriptor_2eproto_; |
| 760 const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Type_descriptor()
{ | 872 |
| 761 protobuf_AssignDescriptorsOnce(); | 873 namespace { |
| 762 return file_level_enum_descriptors[0]; | 874 |
| 763 } | 875 static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD; |
| 764 bool FieldDescriptorProto_Type_IsValid(int value) { | 876 static void MergeFromFail(int line) { |
| 765 switch (value) { | 877 GOOGLE_CHECK(false) << __FILE__ << ":" << line; |
| 766 case 1: | 878 } |
| 767 case 2: | 879 |
| 768 case 3: | 880 } // namespace |
| 769 case 4: | 881 |
| 770 case 5: | |
| 771 case 6: | |
| 772 case 7: | |
| 773 case 8: | |
| 774 case 9: | |
| 775 case 10: | |
| 776 case 11: | |
| 777 case 12: | |
| 778 case 13: | |
| 779 case 14: | |
| 780 case 15: | |
| 781 case 16: | |
| 782 case 17: | |
| 783 case 18: | |
| 784 return true; | |
| 785 default: | |
| 786 return false; | |
| 787 } | |
| 788 } | |
| 789 | |
| 790 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | |
| 791 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_DOUBLE; | |
| 792 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FLOAT; | |
| 793 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_INT64; | |
| 794 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_UINT64; | |
| 795 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_INT32; | |
| 796 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FIXED64; | |
| 797 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FIXED32; | |
| 798 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_BOOL; | |
| 799 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_STRING; | |
| 800 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_GROUP; | |
| 801 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_MESSAGE; | |
| 802 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_BYTES; | |
| 803 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_UINT32; | |
| 804 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_ENUM; | |
| 805 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SFIXED32; | |
| 806 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SFIXED64; | |
| 807 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SINT32; | |
| 808 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SINT64; | |
| 809 const FieldDescriptorProto_Type FieldDescriptorProto::Type_MIN; | |
| 810 const FieldDescriptorProto_Type FieldDescriptorProto::Type_MAX; | |
| 811 const int FieldDescriptorProto::Type_ARRAYSIZE; | |
| 812 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | |
| 813 const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Label_descriptor(
) { | |
| 814 protobuf_AssignDescriptorsOnce(); | |
| 815 return file_level_enum_descriptors[1]; | |
| 816 } | |
| 817 bool FieldDescriptorProto_Label_IsValid(int value) { | |
| 818 switch (value) { | |
| 819 case 1: | |
| 820 case 2: | |
| 821 case 3: | |
| 822 return true; | |
| 823 default: | |
| 824 return false; | |
| 825 } | |
| 826 } | |
| 827 | |
| 828 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | |
| 829 const FieldDescriptorProto_Label FieldDescriptorProto::LABEL_OPTIONAL; | |
| 830 const FieldDescriptorProto_Label FieldDescriptorProto::LABEL_REQUIRED; | |
| 831 const FieldDescriptorProto_Label FieldDescriptorProto::LABEL_REPEATED; | |
| 832 const FieldDescriptorProto_Label FieldDescriptorProto::Label_MIN; | |
| 833 const FieldDescriptorProto_Label FieldDescriptorProto::Label_MAX; | |
| 834 const int FieldDescriptorProto::Label_ARRAYSIZE; | |
| 835 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | |
| 836 const ::google::protobuf::EnumDescriptor* FileOptions_OptimizeMode_descriptor()
{ | |
| 837 protobuf_AssignDescriptorsOnce(); | |
| 838 return file_level_enum_descriptors[2]; | |
| 839 } | |
| 840 bool FileOptions_OptimizeMode_IsValid(int value) { | |
| 841 switch (value) { | |
| 842 case 1: | |
| 843 case 2: | |
| 844 case 3: | |
| 845 return true; | |
| 846 default: | |
| 847 return false; | |
| 848 } | |
| 849 } | |
| 850 | |
| 851 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | |
| 852 const FileOptions_OptimizeMode FileOptions::SPEED; | |
| 853 const FileOptions_OptimizeMode FileOptions::CODE_SIZE; | |
| 854 const FileOptions_OptimizeMode FileOptions::LITE_RUNTIME; | |
| 855 const FileOptions_OptimizeMode FileOptions::OptimizeMode_MIN; | |
| 856 const FileOptions_OptimizeMode FileOptions::OptimizeMode_MAX; | |
| 857 const int FileOptions::OptimizeMode_ARRAYSIZE; | |
| 858 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | |
| 859 const ::google::protobuf::EnumDescriptor* FieldOptions_CType_descriptor() { | |
| 860 protobuf_AssignDescriptorsOnce(); | |
| 861 return file_level_enum_descriptors[3]; | |
| 862 } | |
| 863 bool FieldOptions_CType_IsValid(int value) { | |
| 864 switch (value) { | |
| 865 case 0: | |
| 866 case 1: | |
| 867 case 2: | |
| 868 return true; | |
| 869 default: | |
| 870 return false; | |
| 871 } | |
| 872 } | |
| 873 | |
| 874 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | |
| 875 const FieldOptions_CType FieldOptions::STRING; | |
| 876 const FieldOptions_CType FieldOptions::CORD; | |
| 877 const FieldOptions_CType FieldOptions::STRING_PIECE; | |
| 878 const FieldOptions_CType FieldOptions::CType_MIN; | |
| 879 const FieldOptions_CType FieldOptions::CType_MAX; | |
| 880 const int FieldOptions::CType_ARRAYSIZE; | |
| 881 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | |
| 882 const ::google::protobuf::EnumDescriptor* FieldOptions_JSType_descriptor() { | |
| 883 protobuf_AssignDescriptorsOnce(); | |
| 884 return file_level_enum_descriptors[4]; | |
| 885 } | |
| 886 bool FieldOptions_JSType_IsValid(int value) { | |
| 887 switch (value) { | |
| 888 case 0: | |
| 889 case 1: | |
| 890 case 2: | |
| 891 return true; | |
| 892 default: | |
| 893 return false; | |
| 894 } | |
| 895 } | |
| 896 | |
| 897 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | |
| 898 const FieldOptions_JSType FieldOptions::JS_NORMAL; | |
| 899 const FieldOptions_JSType FieldOptions::JS_STRING; | |
| 900 const FieldOptions_JSType FieldOptions::JS_NUMBER; | |
| 901 const FieldOptions_JSType FieldOptions::JSType_MIN; | |
| 902 const FieldOptions_JSType FieldOptions::JSType_MAX; | |
| 903 const int FieldOptions::JSType_ARRAYSIZE; | |
| 904 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | |
| 905 const ::google::protobuf::EnumDescriptor* MethodOptions_IdempotencyLevel_descrip
tor() { | |
| 906 protobuf_AssignDescriptorsOnce(); | |
| 907 return file_level_enum_descriptors[5]; | |
| 908 } | |
| 909 bool MethodOptions_IdempotencyLevel_IsValid(int value) { | |
| 910 switch (value) { | |
| 911 case 0: | |
| 912 case 1: | |
| 913 case 2: | |
| 914 return true; | |
| 915 default: | |
| 916 return false; | |
| 917 } | |
| 918 } | |
| 919 | |
| 920 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | |
| 921 const MethodOptions_IdempotencyLevel MethodOptions::IDEMPOTENCY_UNKNOWN; | |
| 922 const MethodOptions_IdempotencyLevel MethodOptions::NO_SIDE_EFFECTS; | |
| 923 const MethodOptions_IdempotencyLevel MethodOptions::IDEMPOTENT; | |
| 924 const MethodOptions_IdempotencyLevel MethodOptions::IdempotencyLevel_MIN; | |
| 925 const MethodOptions_IdempotencyLevel MethodOptions::IdempotencyLevel_MAX; | |
| 926 const int MethodOptions::IdempotencyLevel_ARRAYSIZE; | |
| 927 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | |
| 928 | 882 |
| 929 // =================================================================== | 883 // =================================================================== |
| 930 | 884 |
| 931 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 885 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 932 const int FileDescriptorSet::kFileFieldNumber; | 886 const int FileDescriptorSet::kFileFieldNumber; |
| 933 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 887 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 934 | 888 |
| 935 FileDescriptorSet::FileDescriptorSet() | 889 FileDescriptorSet::FileDescriptorSet() |
| 936 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 890 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 937 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
| 938 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
| 939 } | |
| 940 SharedCtor(); | 891 SharedCtor(); |
| 941 // @@protoc_insertion_point(constructor:google.protobuf.FileDescriptorSet) | 892 // @@protoc_insertion_point(constructor:google.protobuf.FileDescriptorSet) |
| 942 } | 893 } |
| 894 |
| 895 void FileDescriptorSet::InitAsDefaultInstance() { |
| 896 } |
| 897 |
| 943 FileDescriptorSet::FileDescriptorSet(const FileDescriptorSet& from) | 898 FileDescriptorSet::FileDescriptorSet(const FileDescriptorSet& from) |
| 944 : ::google::protobuf::Message(), | 899 : ::google::protobuf::Message(), |
| 945 _internal_metadata_(NULL), | 900 _internal_metadata_(NULL) { |
| 946 _has_bits_(from._has_bits_), | 901 SharedCtor(); |
| 947 _cached_size_(0), | 902 MergeFrom(from); |
| 948 file_(from.file_) { | |
| 949 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 950 // @@protoc_insertion_point(copy_constructor:google.protobuf.FileDescriptorSet
) | 903 // @@protoc_insertion_point(copy_constructor:google.protobuf.FileDescriptorSet
) |
| 951 } | 904 } |
| 952 | 905 |
| 953 void FileDescriptorSet::SharedCtor() { | 906 void FileDescriptorSet::SharedCtor() { |
| 954 _cached_size_ = 0; | 907 _cached_size_ = 0; |
| 908 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 955 } | 909 } |
| 956 | 910 |
| 957 FileDescriptorSet::~FileDescriptorSet() { | 911 FileDescriptorSet::~FileDescriptorSet() { |
| 958 // @@protoc_insertion_point(destructor:google.protobuf.FileDescriptorSet) | 912 // @@protoc_insertion_point(destructor:google.protobuf.FileDescriptorSet) |
| 959 SharedDtor(); | 913 SharedDtor(); |
| 960 } | 914 } |
| 961 | 915 |
| 962 void FileDescriptorSet::SharedDtor() { | 916 void FileDescriptorSet::SharedDtor() { |
| 917 if (this != default_instance_) { |
| 918 } |
| 963 } | 919 } |
| 964 | 920 |
| 965 void FileDescriptorSet::SetCachedSize(int size) const { | 921 void FileDescriptorSet::SetCachedSize(int size) const { |
| 966 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 922 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 967 _cached_size_ = size; | 923 _cached_size_ = size; |
| 968 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 924 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 969 } | 925 } |
| 970 const ::google::protobuf::Descriptor* FileDescriptorSet::descriptor() { | 926 const ::google::protobuf::Descriptor* FileDescriptorSet::descriptor() { |
| 971 protobuf_AssignDescriptorsOnce(); | 927 protobuf_AssignDescriptorsOnce(); |
| 972 return file_level_metadata[0].descriptor; | 928 return FileDescriptorSet_descriptor_; |
| 973 } | 929 } |
| 974 | 930 |
| 975 const FileDescriptorSet& FileDescriptorSet::default_instance() { | 931 const FileDescriptorSet& FileDescriptorSet::default_instance() { |
| 976 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 932 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
| 977 return *internal_default_instance(); | 933 return *default_instance_; |
| 978 } | 934 } |
| 979 | 935 |
| 936 FileDescriptorSet* FileDescriptorSet::default_instance_ = NULL; |
| 937 |
| 980 FileDescriptorSet* FileDescriptorSet::New(::google::protobuf::Arena* arena) cons
t { | 938 FileDescriptorSet* FileDescriptorSet::New(::google::protobuf::Arena* arena) cons
t { |
| 981 FileDescriptorSet* n = new FileDescriptorSet; | 939 FileDescriptorSet* n = new FileDescriptorSet; |
| 982 if (arena != NULL) { | 940 if (arena != NULL) { |
| 983 arena->Own(n); | 941 arena->Own(n); |
| 984 } | 942 } |
| 985 return n; | 943 return n; |
| 986 } | 944 } |
| 987 | 945 |
| 988 void FileDescriptorSet::Clear() { | 946 void FileDescriptorSet::Clear() { |
| 989 // @@protoc_insertion_point(message_clear_start:google.protobuf.FileDescriptorSe
t) | 947 // @@protoc_insertion_point(message_clear_start:google.protobuf.FileDescriptorSe
t) |
| 990 file_.Clear(); | 948 file_.Clear(); |
| 991 _has_bits_.Clear(); | 949 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 992 _internal_metadata_.Clear(); | 950 if (_internal_metadata_.have_unknown_fields()) { |
| 951 mutable_unknown_fields()->Clear(); |
| 952 } |
| 993 } | 953 } |
| 994 | 954 |
| 995 bool FileDescriptorSet::MergePartialFromCodedStream( | 955 bool FileDescriptorSet::MergePartialFromCodedStream( |
| 996 ::google::protobuf::io::CodedInputStream* input) { | 956 ::google::protobuf::io::CodedInputStream* input) { |
| 997 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 957 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 998 ::google::protobuf::uint32 tag; | 958 ::google::protobuf::uint32 tag; |
| 999 // @@protoc_insertion_point(parse_start:google.protobuf.FileDescriptorSet) | 959 // @@protoc_insertion_point(parse_start:google.protobuf.FileDescriptorSet) |
| 1000 for (;;) { | 960 for (;;) { |
| 1001 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 961 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
| 1002 tag = p.first; | 962 tag = p.first; |
| 1003 if (!p.second) goto handle_unusual; | 963 if (!p.second) goto handle_unusual; |
| 1004 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 964 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
| 1005 // repeated .google.protobuf.FileDescriptorProto file = 1; | 965 // repeated .google.protobuf.FileDescriptorProto file = 1; |
| 1006 case 1: { | 966 case 1: { |
| 1007 if (tag == 10u) { | 967 if (tag == 10) { |
| 1008 DO_(input->IncrementRecursionDepth()); | 968 DO_(input->IncrementRecursionDepth()); |
| 969 parse_loop_file: |
| 1009 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 970 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
| 1010 input, add_file())); | 971 input, add_file())); |
| 1011 } else { | 972 } else { |
| 1012 goto handle_unusual; | 973 goto handle_unusual; |
| 1013 } | 974 } |
| 975 if (input->ExpectTag(10)) goto parse_loop_file; |
| 1014 input->UnsafeDecrementRecursionDepth(); | 976 input->UnsafeDecrementRecursionDepth(); |
| 977 if (input->ExpectAtEnd()) goto success; |
| 1015 break; | 978 break; |
| 1016 } | 979 } |
| 1017 | 980 |
| 1018 default: { | 981 default: { |
| 1019 handle_unusual: | 982 handle_unusual: |
| 1020 if (tag == 0 || | 983 if (tag == 0 || |
| 1021 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 984 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 1022 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 985 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 1023 goto success; | 986 goto success; |
| 1024 } | 987 } |
| (...skipping 21 matching lines...) Expand all Loading... |
| 1046 1, this->file(i), output); | 1009 1, this->file(i), output); |
| 1047 } | 1010 } |
| 1048 | 1011 |
| 1049 if (_internal_metadata_.have_unknown_fields()) { | 1012 if (_internal_metadata_.have_unknown_fields()) { |
| 1050 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 1013 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 1051 unknown_fields(), output); | 1014 unknown_fields(), output); |
| 1052 } | 1015 } |
| 1053 // @@protoc_insertion_point(serialize_end:google.protobuf.FileDescriptorSet) | 1016 // @@protoc_insertion_point(serialize_end:google.protobuf.FileDescriptorSet) |
| 1054 } | 1017 } |
| 1055 | 1018 |
| 1056 ::google::protobuf::uint8* FileDescriptorSet::InternalSerializeWithCachedSizesTo
Array( | 1019 ::google::protobuf::uint8* FileDescriptorSet::SerializeWithCachedSizesToArray( |
| 1057 bool deterministic, ::google::protobuf::uint8* target) const { | 1020 ::google::protobuf::uint8* target) const { |
| 1058 (void)deterministic; // Unused | |
| 1059 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileDescr
iptorSet) | 1021 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileDescr
iptorSet) |
| 1060 // repeated .google.protobuf.FileDescriptorProto file = 1; | 1022 // repeated .google.protobuf.FileDescriptorProto file = 1; |
| 1061 for (unsigned int i = 0, n = this->file_size(); i < n; i++) { | 1023 for (unsigned int i = 0, n = this->file_size(); i < n; i++) { |
| 1062 target = ::google::protobuf::internal::WireFormatLite:: | 1024 target = ::google::protobuf::internal::WireFormatLite:: |
| 1063 InternalWriteMessageNoVirtualToArray( | 1025 WriteMessageNoVirtualToArray( |
| 1064 1, this->file(i), false, target); | 1026 1, this->file(i), target); |
| 1065 } | 1027 } |
| 1066 | 1028 |
| 1067 if (_internal_metadata_.have_unknown_fields()) { | 1029 if (_internal_metadata_.have_unknown_fields()) { |
| 1068 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 1030 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
| 1069 unknown_fields(), target); | 1031 unknown_fields(), target); |
| 1070 } | 1032 } |
| 1071 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileDescrip
torSet) | 1033 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileDescrip
torSet) |
| 1072 return target; | 1034 return target; |
| 1073 } | 1035 } |
| 1074 | 1036 |
| 1075 size_t FileDescriptorSet::ByteSizeLong() const { | 1037 int FileDescriptorSet::ByteSize() const { |
| 1076 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FileDescript
orSet) | 1038 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FileDescript
orSet) |
| 1077 size_t total_size = 0; | 1039 int total_size = 0; |
| 1040 |
| 1041 // repeated .google.protobuf.FileDescriptorProto file = 1; |
| 1042 total_size += 1 * this->file_size(); |
| 1043 for (int i = 0; i < this->file_size(); i++) { |
| 1044 total_size += |
| 1045 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 1046 this->file(i)); |
| 1047 } |
| 1078 | 1048 |
| 1079 if (_internal_metadata_.have_unknown_fields()) { | 1049 if (_internal_metadata_.have_unknown_fields()) { |
| 1080 total_size += | 1050 total_size += |
| 1081 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | 1051 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 1082 unknown_fields()); | 1052 unknown_fields()); |
| 1083 } | 1053 } |
| 1084 // repeated .google.protobuf.FileDescriptorProto file = 1; | |
| 1085 { | |
| 1086 unsigned int count = this->file_size(); | |
| 1087 total_size += 1UL * count; | |
| 1088 for (unsigned int i = 0; i < count; i++) { | |
| 1089 total_size += | |
| 1090 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
| 1091 this->file(i)); | |
| 1092 } | |
| 1093 } | |
| 1094 | |
| 1095 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | |
| 1096 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 1054 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 1097 _cached_size_ = cached_size; | 1055 _cached_size_ = total_size; |
| 1098 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 1056 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 1099 return total_size; | 1057 return total_size; |
| 1100 } | 1058 } |
| 1101 | 1059 |
| 1102 void FileDescriptorSet::MergeFrom(const ::google::protobuf::Message& from) { | 1060 void FileDescriptorSet::MergeFrom(const ::google::protobuf::Message& from) { |
| 1103 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FileDes
criptorSet) | 1061 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FileDes
criptorSet) |
| 1104 GOOGLE_DCHECK_NE(&from, this); | 1062 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 1105 const FileDescriptorSet* source = | 1063 const FileDescriptorSet* source = |
| 1106 ::google::protobuf::internal::DynamicCastToGenerated<const FileDescriptorS
et>( | 1064 ::google::protobuf::internal::DynamicCastToGenerated<const FileDescriptorS
et>( |
| 1107 &from); | 1065 &from); |
| 1108 if (source == NULL) { | 1066 if (source == NULL) { |
| 1109 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.F
ileDescriptorSet) | 1067 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.F
ileDescriptorSet) |
| 1110 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 1068 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 1111 } else { | 1069 } else { |
| 1112 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.FileDescriptorSet) | 1070 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.FileDescriptorSet) |
| 1113 MergeFrom(*source); | 1071 MergeFrom(*source); |
| 1114 } | 1072 } |
| 1115 } | 1073 } |
| 1116 | 1074 |
| 1117 void FileDescriptorSet::MergeFrom(const FileDescriptorSet& from) { | 1075 void FileDescriptorSet::MergeFrom(const FileDescriptorSet& from) { |
| 1118 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.File
DescriptorSet) | 1076 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.File
DescriptorSet) |
| 1119 GOOGLE_DCHECK_NE(&from, this); | 1077 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 1120 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 1121 file_.MergeFrom(from.file_); | 1078 file_.MergeFrom(from.file_); |
| 1079 if (from._internal_metadata_.have_unknown_fields()) { |
| 1080 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 1081 } |
| 1122 } | 1082 } |
| 1123 | 1083 |
| 1124 void FileDescriptorSet::CopyFrom(const ::google::protobuf::Message& from) { | 1084 void FileDescriptorSet::CopyFrom(const ::google::protobuf::Message& from) { |
| 1125 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FileDesc
riptorSet) | 1085 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FileDesc
riptorSet) |
| 1126 if (&from == this) return; | 1086 if (&from == this) return; |
| 1127 Clear(); | 1087 Clear(); |
| 1128 MergeFrom(from); | 1088 MergeFrom(from); |
| 1129 } | 1089 } |
| 1130 | 1090 |
| 1131 void FileDescriptorSet::CopyFrom(const FileDescriptorSet& from) { | 1091 void FileDescriptorSet::CopyFrom(const FileDescriptorSet& from) { |
| 1132 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FileD
escriptorSet) | 1092 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FileD
escriptorSet) |
| 1133 if (&from == this) return; | 1093 if (&from == this) return; |
| 1134 Clear(); | 1094 Clear(); |
| 1135 MergeFrom(from); | 1095 MergeFrom(from); |
| 1136 } | 1096 } |
| 1137 | 1097 |
| 1138 bool FileDescriptorSet::IsInitialized() const { | 1098 bool FileDescriptorSet::IsInitialized() const { |
| 1099 |
| 1139 if (!::google::protobuf::internal::AllAreInitialized(this->file())) return fal
se; | 1100 if (!::google::protobuf::internal::AllAreInitialized(this->file())) return fal
se; |
| 1140 return true; | 1101 return true; |
| 1141 } | 1102 } |
| 1142 | 1103 |
| 1143 void FileDescriptorSet::Swap(FileDescriptorSet* other) { | 1104 void FileDescriptorSet::Swap(FileDescriptorSet* other) { |
| 1144 if (other == this) return; | 1105 if (other == this) return; |
| 1145 InternalSwap(other); | 1106 InternalSwap(other); |
| 1146 } | 1107 } |
| 1147 void FileDescriptorSet::InternalSwap(FileDescriptorSet* other) { | 1108 void FileDescriptorSet::InternalSwap(FileDescriptorSet* other) { |
| 1148 file_.UnsafeArenaSwap(&other->file_); | 1109 file_.UnsafeArenaSwap(&other->file_); |
| 1149 std::swap(_has_bits_[0], other->_has_bits_[0]); | 1110 std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 1150 _internal_metadata_.Swap(&other->_internal_metadata_); | 1111 _internal_metadata_.Swap(&other->_internal_metadata_); |
| 1151 std::swap(_cached_size_, other->_cached_size_); | 1112 std::swap(_cached_size_, other->_cached_size_); |
| 1152 } | 1113 } |
| 1153 | 1114 |
| 1154 ::google::protobuf::Metadata FileDescriptorSet::GetMetadata() const { | 1115 ::google::protobuf::Metadata FileDescriptorSet::GetMetadata() const { |
| 1155 protobuf_AssignDescriptorsOnce(); | 1116 protobuf_AssignDescriptorsOnce(); |
| 1156 return file_level_metadata[0]; | 1117 ::google::protobuf::Metadata metadata; |
| 1118 metadata.descriptor = FileDescriptorSet_descriptor_; |
| 1119 metadata.reflection = FileDescriptorSet_reflection_; |
| 1120 return metadata; |
| 1157 } | 1121 } |
| 1158 | 1122 |
| 1159 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 1123 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 1160 // FileDescriptorSet | 1124 // FileDescriptorSet |
| 1161 | 1125 |
| 1162 // repeated .google.protobuf.FileDescriptorProto file = 1; | 1126 // repeated .google.protobuf.FileDescriptorProto file = 1; |
| 1163 int FileDescriptorSet::file_size() const { | 1127 int FileDescriptorSet::file_size() const { |
| 1164 return file_.size(); | 1128 return file_.size(); |
| 1165 } | 1129 } |
| 1166 void FileDescriptorSet::clear_file() { | 1130 void FileDescriptorSet::clear_file() { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1203 const int FileDescriptorProto::kEnumTypeFieldNumber; | 1167 const int FileDescriptorProto::kEnumTypeFieldNumber; |
| 1204 const int FileDescriptorProto::kServiceFieldNumber; | 1168 const int FileDescriptorProto::kServiceFieldNumber; |
| 1205 const int FileDescriptorProto::kExtensionFieldNumber; | 1169 const int FileDescriptorProto::kExtensionFieldNumber; |
| 1206 const int FileDescriptorProto::kOptionsFieldNumber; | 1170 const int FileDescriptorProto::kOptionsFieldNumber; |
| 1207 const int FileDescriptorProto::kSourceCodeInfoFieldNumber; | 1171 const int FileDescriptorProto::kSourceCodeInfoFieldNumber; |
| 1208 const int FileDescriptorProto::kSyntaxFieldNumber; | 1172 const int FileDescriptorProto::kSyntaxFieldNumber; |
| 1209 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 1173 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1210 | 1174 |
| 1211 FileDescriptorProto::FileDescriptorProto() | 1175 FileDescriptorProto::FileDescriptorProto() |
| 1212 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 1176 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 1213 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
| 1214 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
| 1215 } | |
| 1216 SharedCtor(); | 1177 SharedCtor(); |
| 1217 // @@protoc_insertion_point(constructor:google.protobuf.FileDescriptorProto) | 1178 // @@protoc_insertion_point(constructor:google.protobuf.FileDescriptorProto) |
| 1218 } | 1179 } |
| 1180 |
| 1181 void FileDescriptorProto::InitAsDefaultInstance() { |
| 1182 options_ = const_cast< ::google::protobuf::FileOptions*>(&::google::protobuf::
FileOptions::default_instance()); |
| 1183 source_code_info_ = const_cast< ::google::protobuf::SourceCodeInfo*>(&::google
::protobuf::SourceCodeInfo::default_instance()); |
| 1184 } |
| 1185 |
| 1219 FileDescriptorProto::FileDescriptorProto(const FileDescriptorProto& from) | 1186 FileDescriptorProto::FileDescriptorProto(const FileDescriptorProto& from) |
| 1220 : ::google::protobuf::Message(), | 1187 : ::google::protobuf::Message(), |
| 1221 _internal_metadata_(NULL), | 1188 _internal_metadata_(NULL) { |
| 1222 _has_bits_(from._has_bits_), | 1189 SharedCtor(); |
| 1223 _cached_size_(0), | 1190 MergeFrom(from); |
| 1224 dependency_(from.dependency_), | |
| 1225 public_dependency_(from.public_dependency_), | |
| 1226 weak_dependency_(from.weak_dependency_), | |
| 1227 message_type_(from.message_type_), | |
| 1228 enum_type_(from.enum_type_), | |
| 1229 service_(from.service_), | |
| 1230 extension_(from.extension_) { | |
| 1231 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 1232 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); | |
| 1233 if (from.has_name()) { | |
| 1234 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), from.name_); | |
| 1235 } | |
| 1236 package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); | |
| 1237 if (from.has_package()) { | |
| 1238 package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), from.package_); | |
| 1239 } | |
| 1240 syntax_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyI
nited()); | |
| 1241 if (from.has_syntax()) { | |
| 1242 syntax_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), from.syntax_); | |
| 1243 } | |
| 1244 if (from.has_options()) { | |
| 1245 options_ = new ::google::protobuf::FileOptions(*from.options_); | |
| 1246 } else { | |
| 1247 options_ = NULL; | |
| 1248 } | |
| 1249 if (from.has_source_code_info()) { | |
| 1250 source_code_info_ = new ::google::protobuf::SourceCodeInfo(*from.source_code
_info_); | |
| 1251 } else { | |
| 1252 source_code_info_ = NULL; | |
| 1253 } | |
| 1254 // @@protoc_insertion_point(copy_constructor:google.protobuf.FileDescriptorPro
to) | 1191 // @@protoc_insertion_point(copy_constructor:google.protobuf.FileDescriptorPro
to) |
| 1255 } | 1192 } |
| 1256 | 1193 |
| 1257 void FileDescriptorProto::SharedCtor() { | 1194 void FileDescriptorProto::SharedCtor() { |
| 1195 ::google::protobuf::internal::GetEmptyString(); |
| 1258 _cached_size_ = 0; | 1196 _cached_size_ = 0; |
| 1259 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); | 1197 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); |
| 1260 package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); | 1198 package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); |
| 1199 options_ = NULL; |
| 1200 source_code_info_ = NULL; |
| 1261 syntax_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyI
nited()); | 1201 syntax_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyI
nited()); |
| 1262 ::memset(&options_, 0, reinterpret_cast<char*>(&source_code_info_) - | 1202 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 1263 reinterpret_cast<char*>(&options_) + sizeof(source_code_info_)); | |
| 1264 } | 1203 } |
| 1265 | 1204 |
| 1266 FileDescriptorProto::~FileDescriptorProto() { | 1205 FileDescriptorProto::~FileDescriptorProto() { |
| 1267 // @@protoc_insertion_point(destructor:google.protobuf.FileDescriptorProto) | 1206 // @@protoc_insertion_point(destructor:google.protobuf.FileDescriptorProto) |
| 1268 SharedDtor(); | 1207 SharedDtor(); |
| 1269 } | 1208 } |
| 1270 | 1209 |
| 1271 void FileDescriptorProto::SharedDtor() { | 1210 void FileDescriptorProto::SharedDtor() { |
| 1272 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d()); | 1211 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d()); |
| 1273 package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited()); | 1212 package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited()); |
| 1274 syntax_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); | 1213 syntax_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); |
| 1275 if (this != internal_default_instance()) { | 1214 if (this != default_instance_) { |
| 1276 delete options_; | 1215 delete options_; |
| 1277 } | |
| 1278 if (this != internal_default_instance()) { | |
| 1279 delete source_code_info_; | 1216 delete source_code_info_; |
| 1280 } | 1217 } |
| 1281 } | 1218 } |
| 1282 | 1219 |
| 1283 void FileDescriptorProto::SetCachedSize(int size) const { | 1220 void FileDescriptorProto::SetCachedSize(int size) const { |
| 1284 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 1221 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 1285 _cached_size_ = size; | 1222 _cached_size_ = size; |
| 1286 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 1223 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 1287 } | 1224 } |
| 1288 const ::google::protobuf::Descriptor* FileDescriptorProto::descriptor() { | 1225 const ::google::protobuf::Descriptor* FileDescriptorProto::descriptor() { |
| 1289 protobuf_AssignDescriptorsOnce(); | 1226 protobuf_AssignDescriptorsOnce(); |
| 1290 return file_level_metadata[1].descriptor; | 1227 return FileDescriptorProto_descriptor_; |
| 1291 } | 1228 } |
| 1292 | 1229 |
| 1293 const FileDescriptorProto& FileDescriptorProto::default_instance() { | 1230 const FileDescriptorProto& FileDescriptorProto::default_instance() { |
| 1294 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 1231 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
| 1295 return *internal_default_instance(); | 1232 return *default_instance_; |
| 1296 } | 1233 } |
| 1297 | 1234 |
| 1235 FileDescriptorProto* FileDescriptorProto::default_instance_ = NULL; |
| 1236 |
| 1298 FileDescriptorProto* FileDescriptorProto::New(::google::protobuf::Arena* arena)
const { | 1237 FileDescriptorProto* FileDescriptorProto::New(::google::protobuf::Arena* arena)
const { |
| 1299 FileDescriptorProto* n = new FileDescriptorProto; | 1238 FileDescriptorProto* n = new FileDescriptorProto; |
| 1300 if (arena != NULL) { | 1239 if (arena != NULL) { |
| 1301 arena->Own(n); | 1240 arena->Own(n); |
| 1302 } | 1241 } |
| 1303 return n; | 1242 return n; |
| 1304 } | 1243 } |
| 1305 | 1244 |
| 1306 void FileDescriptorProto::Clear() { | 1245 void FileDescriptorProto::Clear() { |
| 1307 // @@protoc_insertion_point(message_clear_start:google.protobuf.FileDescriptorPr
oto) | 1246 // @@protoc_insertion_point(message_clear_start:google.protobuf.FileDescriptorPr
oto) |
| 1247 if (_has_bits_[0 / 32] & 3u) { |
| 1248 if (has_name()) { |
| 1249 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); |
| 1250 } |
| 1251 if (has_package()) { |
| 1252 package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); |
| 1253 } |
| 1254 } |
| 1255 if (_has_bits_[8 / 32] & 3584u) { |
| 1256 if (has_options()) { |
| 1257 if (options_ != NULL) options_->::google::protobuf::FileOptions::Clear(); |
| 1258 } |
| 1259 if (has_source_code_info()) { |
| 1260 if (source_code_info_ != NULL) source_code_info_->::google::protobuf::Sour
ceCodeInfo::Clear(); |
| 1261 } |
| 1262 if (has_syntax()) { |
| 1263 syntax_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringA
lreadyInited()); |
| 1264 } |
| 1265 } |
| 1308 dependency_.Clear(); | 1266 dependency_.Clear(); |
| 1309 public_dependency_.Clear(); | 1267 public_dependency_.Clear(); |
| 1310 weak_dependency_.Clear(); | 1268 weak_dependency_.Clear(); |
| 1311 message_type_.Clear(); | 1269 message_type_.Clear(); |
| 1312 enum_type_.Clear(); | 1270 enum_type_.Clear(); |
| 1313 service_.Clear(); | 1271 service_.Clear(); |
| 1314 extension_.Clear(); | 1272 extension_.Clear(); |
| 1315 if (_has_bits_[0 / 32] & 31u) { | 1273 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 1316 if (has_name()) { | 1274 if (_internal_metadata_.have_unknown_fields()) { |
| 1317 GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited())); | 1275 mutable_unknown_fields()->Clear(); |
| 1318 (*name_.UnsafeRawStringPointer())->clear(); | |
| 1319 } | |
| 1320 if (has_package()) { | |
| 1321 GOOGLE_DCHECK(!package_.IsDefault(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited())); | |
| 1322 (*package_.UnsafeRawStringPointer())->clear(); | |
| 1323 } | |
| 1324 if (has_syntax()) { | |
| 1325 GOOGLE_DCHECK(!syntax_.IsDefault(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited())); | |
| 1326 (*syntax_.UnsafeRawStringPointer())->clear(); | |
| 1327 } | |
| 1328 if (has_options()) { | |
| 1329 GOOGLE_DCHECK(options_ != NULL); | |
| 1330 options_->::google::protobuf::FileOptions::Clear(); | |
| 1331 } | |
| 1332 if (has_source_code_info()) { | |
| 1333 GOOGLE_DCHECK(source_code_info_ != NULL); | |
| 1334 source_code_info_->::google::protobuf::SourceCodeInfo::Clear(); | |
| 1335 } | |
| 1336 } | 1276 } |
| 1337 _has_bits_.Clear(); | |
| 1338 _internal_metadata_.Clear(); | |
| 1339 } | 1277 } |
| 1340 | 1278 |
| 1341 bool FileDescriptorProto::MergePartialFromCodedStream( | 1279 bool FileDescriptorProto::MergePartialFromCodedStream( |
| 1342 ::google::protobuf::io::CodedInputStream* input) { | 1280 ::google::protobuf::io::CodedInputStream* input) { |
| 1343 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 1281 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 1344 ::google::protobuf::uint32 tag; | 1282 ::google::protobuf::uint32 tag; |
| 1345 // @@protoc_insertion_point(parse_start:google.protobuf.FileDescriptorProto) | 1283 // @@protoc_insertion_point(parse_start:google.protobuf.FileDescriptorProto) |
| 1346 for (;;) { | 1284 for (;;) { |
| 1347 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 1285 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
| 1348 tag = p.first; | 1286 tag = p.first; |
| 1349 if (!p.second) goto handle_unusual; | 1287 if (!p.second) goto handle_unusual; |
| 1350 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 1288 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
| 1351 // optional string name = 1; | 1289 // optional string name = 1; |
| 1352 case 1: { | 1290 case 1: { |
| 1353 if (tag == 10u) { | 1291 if (tag == 10) { |
| 1354 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 1292 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 1355 input, this->mutable_name())); | 1293 input, this->mutable_name())); |
| 1356 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 1294 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 1357 this->name().data(), this->name().length(), | 1295 this->name().data(), this->name().length(), |
| 1358 ::google::protobuf::internal::WireFormat::PARSE, | 1296 ::google::protobuf::internal::WireFormat::PARSE, |
| 1359 "google.protobuf.FileDescriptorProto.name"); | 1297 "google.protobuf.FileDescriptorProto.name"); |
| 1360 } else { | 1298 } else { |
| 1361 goto handle_unusual; | 1299 goto handle_unusual; |
| 1362 } | 1300 } |
| 1301 if (input->ExpectTag(18)) goto parse_package; |
| 1363 break; | 1302 break; |
| 1364 } | 1303 } |
| 1365 | 1304 |
| 1366 // optional string package = 2; | 1305 // optional string package = 2; |
| 1367 case 2: { | 1306 case 2: { |
| 1368 if (tag == 18u) { | 1307 if (tag == 18) { |
| 1308 parse_package: |
| 1369 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 1309 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 1370 input, this->mutable_package())); | 1310 input, this->mutable_package())); |
| 1371 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 1311 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 1372 this->package().data(), this->package().length(), | 1312 this->package().data(), this->package().length(), |
| 1373 ::google::protobuf::internal::WireFormat::PARSE, | 1313 ::google::protobuf::internal::WireFormat::PARSE, |
| 1374 "google.protobuf.FileDescriptorProto.package"); | 1314 "google.protobuf.FileDescriptorProto.package"); |
| 1375 } else { | 1315 } else { |
| 1376 goto handle_unusual; | 1316 goto handle_unusual; |
| 1377 } | 1317 } |
| 1318 if (input->ExpectTag(26)) goto parse_dependency; |
| 1378 break; | 1319 break; |
| 1379 } | 1320 } |
| 1380 | 1321 |
| 1381 // repeated string dependency = 3; | 1322 // repeated string dependency = 3; |
| 1382 case 3: { | 1323 case 3: { |
| 1383 if (tag == 26u) { | 1324 if (tag == 26) { |
| 1325 parse_dependency: |
| 1384 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 1326 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 1385 input, this->add_dependency())); | 1327 input, this->add_dependency())); |
| 1386 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 1328 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 1387 this->dependency(this->dependency_size() - 1).data(), | 1329 this->dependency(this->dependency_size() - 1).data(), |
| 1388 this->dependency(this->dependency_size() - 1).length(), | 1330 this->dependency(this->dependency_size() - 1).length(), |
| 1389 ::google::protobuf::internal::WireFormat::PARSE, | 1331 ::google::protobuf::internal::WireFormat::PARSE, |
| 1390 "google.protobuf.FileDescriptorProto.dependency"); | 1332 "google.protobuf.FileDescriptorProto.dependency"); |
| 1391 } else { | 1333 } else { |
| 1392 goto handle_unusual; | 1334 goto handle_unusual; |
| 1393 } | 1335 } |
| 1336 if (input->ExpectTag(26)) goto parse_dependency; |
| 1337 if (input->ExpectTag(34)) goto parse_message_type; |
| 1394 break; | 1338 break; |
| 1395 } | 1339 } |
| 1396 | 1340 |
| 1397 // repeated .google.protobuf.DescriptorProto message_type = 4; | 1341 // repeated .google.protobuf.DescriptorProto message_type = 4; |
| 1398 case 4: { | 1342 case 4: { |
| 1399 if (tag == 34u) { | 1343 if (tag == 34) { |
| 1344 parse_message_type: |
| 1400 DO_(input->IncrementRecursionDepth()); | 1345 DO_(input->IncrementRecursionDepth()); |
| 1346 parse_loop_message_type: |
| 1401 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 1347 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
| 1402 input, add_message_type())); | 1348 input, add_message_type())); |
| 1403 } else { | 1349 } else { |
| 1404 goto handle_unusual; | 1350 goto handle_unusual; |
| 1405 } | 1351 } |
| 1352 if (input->ExpectTag(34)) goto parse_loop_message_type; |
| 1353 if (input->ExpectTag(42)) goto parse_loop_enum_type; |
| 1406 input->UnsafeDecrementRecursionDepth(); | 1354 input->UnsafeDecrementRecursionDepth(); |
| 1407 break; | 1355 break; |
| 1408 } | 1356 } |
| 1409 | 1357 |
| 1410 // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; | 1358 // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; |
| 1411 case 5: { | 1359 case 5: { |
| 1412 if (tag == 42u) { | 1360 if (tag == 42) { |
| 1413 DO_(input->IncrementRecursionDepth()); | 1361 DO_(input->IncrementRecursionDepth()); |
| 1362 parse_loop_enum_type: |
| 1414 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 1363 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
| 1415 input, add_enum_type())); | 1364 input, add_enum_type())); |
| 1416 } else { | 1365 } else { |
| 1417 goto handle_unusual; | 1366 goto handle_unusual; |
| 1418 } | 1367 } |
| 1368 if (input->ExpectTag(42)) goto parse_loop_enum_type; |
| 1369 if (input->ExpectTag(50)) goto parse_loop_service; |
| 1419 input->UnsafeDecrementRecursionDepth(); | 1370 input->UnsafeDecrementRecursionDepth(); |
| 1420 break; | 1371 break; |
| 1421 } | 1372 } |
| 1422 | 1373 |
| 1423 // repeated .google.protobuf.ServiceDescriptorProto service = 6; | 1374 // repeated .google.protobuf.ServiceDescriptorProto service = 6; |
| 1424 case 6: { | 1375 case 6: { |
| 1425 if (tag == 50u) { | 1376 if (tag == 50) { |
| 1426 DO_(input->IncrementRecursionDepth()); | 1377 DO_(input->IncrementRecursionDepth()); |
| 1378 parse_loop_service: |
| 1427 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 1379 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
| 1428 input, add_service())); | 1380 input, add_service())); |
| 1429 } else { | 1381 } else { |
| 1430 goto handle_unusual; | 1382 goto handle_unusual; |
| 1431 } | 1383 } |
| 1384 if (input->ExpectTag(50)) goto parse_loop_service; |
| 1385 if (input->ExpectTag(58)) goto parse_loop_extension; |
| 1432 input->UnsafeDecrementRecursionDepth(); | 1386 input->UnsafeDecrementRecursionDepth(); |
| 1433 break; | 1387 break; |
| 1434 } | 1388 } |
| 1435 | 1389 |
| 1436 // repeated .google.protobuf.FieldDescriptorProto extension = 7; | 1390 // repeated .google.protobuf.FieldDescriptorProto extension = 7; |
| 1437 case 7: { | 1391 case 7: { |
| 1438 if (tag == 58u) { | 1392 if (tag == 58) { |
| 1439 DO_(input->IncrementRecursionDepth()); | 1393 DO_(input->IncrementRecursionDepth()); |
| 1394 parse_loop_extension: |
| 1440 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 1395 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
| 1441 input, add_extension())); | 1396 input, add_extension())); |
| 1442 } else { | 1397 } else { |
| 1443 goto handle_unusual; | 1398 goto handle_unusual; |
| 1444 } | 1399 } |
| 1400 if (input->ExpectTag(58)) goto parse_loop_extension; |
| 1445 input->UnsafeDecrementRecursionDepth(); | 1401 input->UnsafeDecrementRecursionDepth(); |
| 1402 if (input->ExpectTag(66)) goto parse_options; |
| 1446 break; | 1403 break; |
| 1447 } | 1404 } |
| 1448 | 1405 |
| 1449 // optional .google.protobuf.FileOptions options = 8; | 1406 // optional .google.protobuf.FileOptions options = 8; |
| 1450 case 8: { | 1407 case 8: { |
| 1451 if (tag == 66u) { | 1408 if (tag == 66) { |
| 1409 parse_options: |
| 1452 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 1410 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
| 1453 input, mutable_options())); | 1411 input, mutable_options())); |
| 1454 } else { | 1412 } else { |
| 1455 goto handle_unusual; | 1413 goto handle_unusual; |
| 1456 } | 1414 } |
| 1415 if (input->ExpectTag(74)) goto parse_source_code_info; |
| 1457 break; | 1416 break; |
| 1458 } | 1417 } |
| 1459 | 1418 |
| 1460 // optional .google.protobuf.SourceCodeInfo source_code_info = 9; | 1419 // optional .google.protobuf.SourceCodeInfo source_code_info = 9; |
| 1461 case 9: { | 1420 case 9: { |
| 1462 if (tag == 74u) { | 1421 if (tag == 74) { |
| 1422 parse_source_code_info: |
| 1463 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 1423 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
| 1464 input, mutable_source_code_info())); | 1424 input, mutable_source_code_info())); |
| 1465 } else { | 1425 } else { |
| 1466 goto handle_unusual; | 1426 goto handle_unusual; |
| 1467 } | 1427 } |
| 1428 if (input->ExpectTag(80)) goto parse_public_dependency; |
| 1468 break; | 1429 break; |
| 1469 } | 1430 } |
| 1470 | 1431 |
| 1471 // repeated int32 public_dependency = 10; | 1432 // repeated int32 public_dependency = 10; |
| 1472 case 10: { | 1433 case 10: { |
| 1473 if (tag == 80u) { | 1434 if (tag == 80) { |
| 1435 parse_public_dependency: |
| 1474 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimiti
ve< | 1436 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimiti
ve< |
| 1475 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 1437 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
| 1476 1, 80u, input, this->mutable_public_dependency()))); | 1438 1, 80, input, this->mutable_public_dependency()))); |
| 1477 } else if (tag == 82u) { | 1439 } else if (tag == 82) { |
| 1478 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive
NoInline< | 1440 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive
NoInline< |
| 1479 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 1441 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
| 1480 input, this->mutable_public_dependency()))); | 1442 input, this->mutable_public_dependency()))); |
| 1481 } else { | 1443 } else { |
| 1482 goto handle_unusual; | 1444 goto handle_unusual; |
| 1483 } | 1445 } |
| 1446 if (input->ExpectTag(80)) goto parse_public_dependency; |
| 1447 if (input->ExpectTag(88)) goto parse_weak_dependency; |
| 1484 break; | 1448 break; |
| 1485 } | 1449 } |
| 1486 | 1450 |
| 1487 // repeated int32 weak_dependency = 11; | 1451 // repeated int32 weak_dependency = 11; |
| 1488 case 11: { | 1452 case 11: { |
| 1489 if (tag == 88u) { | 1453 if (tag == 88) { |
| 1454 parse_weak_dependency: |
| 1490 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimiti
ve< | 1455 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimiti
ve< |
| 1491 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 1456 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
| 1492 1, 88u, input, this->mutable_weak_dependency()))); | 1457 1, 88, input, this->mutable_weak_dependency()))); |
| 1493 } else if (tag == 90u) { | 1458 } else if (tag == 90) { |
| 1494 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive
NoInline< | 1459 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive
NoInline< |
| 1495 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 1460 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
| 1496 input, this->mutable_weak_dependency()))); | 1461 input, this->mutable_weak_dependency()))); |
| 1497 } else { | 1462 } else { |
| 1498 goto handle_unusual; | 1463 goto handle_unusual; |
| 1499 } | 1464 } |
| 1465 if (input->ExpectTag(88)) goto parse_weak_dependency; |
| 1466 if (input->ExpectTag(98)) goto parse_syntax; |
| 1500 break; | 1467 break; |
| 1501 } | 1468 } |
| 1502 | 1469 |
| 1503 // optional string syntax = 12; | 1470 // optional string syntax = 12; |
| 1504 case 12: { | 1471 case 12: { |
| 1505 if (tag == 98u) { | 1472 if (tag == 98) { |
| 1473 parse_syntax: |
| 1506 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 1474 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 1507 input, this->mutable_syntax())); | 1475 input, this->mutable_syntax())); |
| 1508 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 1476 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 1509 this->syntax().data(), this->syntax().length(), | 1477 this->syntax().data(), this->syntax().length(), |
| 1510 ::google::protobuf::internal::WireFormat::PARSE, | 1478 ::google::protobuf::internal::WireFormat::PARSE, |
| 1511 "google.protobuf.FileDescriptorProto.syntax"); | 1479 "google.protobuf.FileDescriptorProto.syntax"); |
| 1512 } else { | 1480 } else { |
| 1513 goto handle_unusual; | 1481 goto handle_unusual; |
| 1514 } | 1482 } |
| 1483 if (input->ExpectAtEnd()) goto success; |
| 1515 break; | 1484 break; |
| 1516 } | 1485 } |
| 1517 | 1486 |
| 1518 default: { | 1487 default: { |
| 1519 handle_unusual: | 1488 handle_unusual: |
| 1520 if (tag == 0 || | 1489 if (tag == 0 || |
| 1521 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 1490 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 1522 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 1491 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 1523 goto success; | 1492 goto success; |
| 1524 } | 1493 } |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1628 12, this->syntax(), output); | 1597 12, this->syntax(), output); |
| 1629 } | 1598 } |
| 1630 | 1599 |
| 1631 if (_internal_metadata_.have_unknown_fields()) { | 1600 if (_internal_metadata_.have_unknown_fields()) { |
| 1632 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 1601 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 1633 unknown_fields(), output); | 1602 unknown_fields(), output); |
| 1634 } | 1603 } |
| 1635 // @@protoc_insertion_point(serialize_end:google.protobuf.FileDescriptorProto) | 1604 // @@protoc_insertion_point(serialize_end:google.protobuf.FileDescriptorProto) |
| 1636 } | 1605 } |
| 1637 | 1606 |
| 1638 ::google::protobuf::uint8* FileDescriptorProto::InternalSerializeWithCachedSizes
ToArray( | 1607 ::google::protobuf::uint8* FileDescriptorProto::SerializeWithCachedSizesToArray( |
| 1639 bool deterministic, ::google::protobuf::uint8* target) const { | 1608 ::google::protobuf::uint8* target) const { |
| 1640 (void)deterministic; // Unused | |
| 1641 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileDescr
iptorProto) | 1609 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileDescr
iptorProto) |
| 1642 // optional string name = 1; | 1610 // optional string name = 1; |
| 1643 if (has_name()) { | 1611 if (has_name()) { |
| 1644 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 1612 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 1645 this->name().data(), this->name().length(), | 1613 this->name().data(), this->name().length(), |
| 1646 ::google::protobuf::internal::WireFormat::SERIALIZE, | 1614 ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 1647 "google.protobuf.FileDescriptorProto.name"); | 1615 "google.protobuf.FileDescriptorProto.name"); |
| 1648 target = | 1616 target = |
| 1649 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 1617 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 1650 1, this->name(), target); | 1618 1, this->name(), target); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 1667 this->dependency(i).data(), this->dependency(i).length(), | 1635 this->dependency(i).data(), this->dependency(i).length(), |
| 1668 ::google::protobuf::internal::WireFormat::SERIALIZE, | 1636 ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 1669 "google.protobuf.FileDescriptorProto.dependency"); | 1637 "google.protobuf.FileDescriptorProto.dependency"); |
| 1670 target = ::google::protobuf::internal::WireFormatLite:: | 1638 target = ::google::protobuf::internal::WireFormatLite:: |
| 1671 WriteStringToArray(3, this->dependency(i), target); | 1639 WriteStringToArray(3, this->dependency(i), target); |
| 1672 } | 1640 } |
| 1673 | 1641 |
| 1674 // repeated .google.protobuf.DescriptorProto message_type = 4; | 1642 // repeated .google.protobuf.DescriptorProto message_type = 4; |
| 1675 for (unsigned int i = 0, n = this->message_type_size(); i < n; i++) { | 1643 for (unsigned int i = 0, n = this->message_type_size(); i < n; i++) { |
| 1676 target = ::google::protobuf::internal::WireFormatLite:: | 1644 target = ::google::protobuf::internal::WireFormatLite:: |
| 1677 InternalWriteMessageNoVirtualToArray( | 1645 WriteMessageNoVirtualToArray( |
| 1678 4, this->message_type(i), false, target); | 1646 4, this->message_type(i), target); |
| 1679 } | 1647 } |
| 1680 | 1648 |
| 1681 // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; | 1649 // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; |
| 1682 for (unsigned int i = 0, n = this->enum_type_size(); i < n; i++) { | 1650 for (unsigned int i = 0, n = this->enum_type_size(); i < n; i++) { |
| 1683 target = ::google::protobuf::internal::WireFormatLite:: | 1651 target = ::google::protobuf::internal::WireFormatLite:: |
| 1684 InternalWriteMessageNoVirtualToArray( | 1652 WriteMessageNoVirtualToArray( |
| 1685 5, this->enum_type(i), false, target); | 1653 5, this->enum_type(i), target); |
| 1686 } | 1654 } |
| 1687 | 1655 |
| 1688 // repeated .google.protobuf.ServiceDescriptorProto service = 6; | 1656 // repeated .google.protobuf.ServiceDescriptorProto service = 6; |
| 1689 for (unsigned int i = 0, n = this->service_size(); i < n; i++) { | 1657 for (unsigned int i = 0, n = this->service_size(); i < n; i++) { |
| 1690 target = ::google::protobuf::internal::WireFormatLite:: | 1658 target = ::google::protobuf::internal::WireFormatLite:: |
| 1691 InternalWriteMessageNoVirtualToArray( | 1659 WriteMessageNoVirtualToArray( |
| 1692 6, this->service(i), false, target); | 1660 6, this->service(i), target); |
| 1693 } | 1661 } |
| 1694 | 1662 |
| 1695 // repeated .google.protobuf.FieldDescriptorProto extension = 7; | 1663 // repeated .google.protobuf.FieldDescriptorProto extension = 7; |
| 1696 for (unsigned int i = 0, n = this->extension_size(); i < n; i++) { | 1664 for (unsigned int i = 0, n = this->extension_size(); i < n; i++) { |
| 1697 target = ::google::protobuf::internal::WireFormatLite:: | 1665 target = ::google::protobuf::internal::WireFormatLite:: |
| 1698 InternalWriteMessageNoVirtualToArray( | 1666 WriteMessageNoVirtualToArray( |
| 1699 7, this->extension(i), false, target); | 1667 7, this->extension(i), target); |
| 1700 } | 1668 } |
| 1701 | 1669 |
| 1702 // optional .google.protobuf.FileOptions options = 8; | 1670 // optional .google.protobuf.FileOptions options = 8; |
| 1703 if (has_options()) { | 1671 if (has_options()) { |
| 1704 target = ::google::protobuf::internal::WireFormatLite:: | 1672 target = ::google::protobuf::internal::WireFormatLite:: |
| 1705 InternalWriteMessageNoVirtualToArray( | 1673 WriteMessageNoVirtualToArray( |
| 1706 8, *this->options_, false, target); | 1674 8, *this->options_, target); |
| 1707 } | 1675 } |
| 1708 | 1676 |
| 1709 // optional .google.protobuf.SourceCodeInfo source_code_info = 9; | 1677 // optional .google.protobuf.SourceCodeInfo source_code_info = 9; |
| 1710 if (has_source_code_info()) { | 1678 if (has_source_code_info()) { |
| 1711 target = ::google::protobuf::internal::WireFormatLite:: | 1679 target = ::google::protobuf::internal::WireFormatLite:: |
| 1712 InternalWriteMessageNoVirtualToArray( | 1680 WriteMessageNoVirtualToArray( |
| 1713 9, *this->source_code_info_, false, target); | 1681 9, *this->source_code_info_, target); |
| 1714 } | 1682 } |
| 1715 | 1683 |
| 1716 // repeated int32 public_dependency = 10; | 1684 // repeated int32 public_dependency = 10; |
| 1717 for (int i = 0; i < this->public_dependency_size(); i++) { | 1685 for (int i = 0; i < this->public_dependency_size(); i++) { |
| 1718 target = ::google::protobuf::internal::WireFormatLite:: | 1686 target = ::google::protobuf::internal::WireFormatLite:: |
| 1719 WriteInt32ToArray(10, this->public_dependency(i), target); | 1687 WriteInt32ToArray(10, this->public_dependency(i), target); |
| 1720 } | 1688 } |
| 1721 | 1689 |
| 1722 // repeated int32 weak_dependency = 11; | 1690 // repeated int32 weak_dependency = 11; |
| 1723 for (int i = 0; i < this->weak_dependency_size(); i++) { | 1691 for (int i = 0; i < this->weak_dependency_size(); i++) { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 1737 } | 1705 } |
| 1738 | 1706 |
| 1739 if (_internal_metadata_.have_unknown_fields()) { | 1707 if (_internal_metadata_.have_unknown_fields()) { |
| 1740 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 1708 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
| 1741 unknown_fields(), target); | 1709 unknown_fields(), target); |
| 1742 } | 1710 } |
| 1743 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileDescrip
torProto) | 1711 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileDescrip
torProto) |
| 1744 return target; | 1712 return target; |
| 1745 } | 1713 } |
| 1746 | 1714 |
| 1747 size_t FileDescriptorProto::ByteSizeLong() const { | 1715 int FileDescriptorProto::ByteSize() const { |
| 1748 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FileDescript
orProto) | 1716 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FileDescript
orProto) |
| 1749 size_t total_size = 0; | 1717 int total_size = 0; |
| 1750 | 1718 |
| 1751 if (_internal_metadata_.have_unknown_fields()) { | 1719 if (_has_bits_[0 / 32] & 3u) { |
| 1752 total_size += | 1720 // optional string name = 1; |
| 1753 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | 1721 if (has_name()) { |
| 1754 unknown_fields()); | 1722 total_size += 1 + |
| 1723 ::google::protobuf::internal::WireFormatLite::StringSize( |
| 1724 this->name()); |
| 1725 } |
| 1726 |
| 1727 // optional string package = 2; |
| 1728 if (has_package()) { |
| 1729 total_size += 1 + |
| 1730 ::google::protobuf::internal::WireFormatLite::StringSize( |
| 1731 this->package()); |
| 1732 } |
| 1733 |
| 1734 } |
| 1735 if (_has_bits_[9 / 32] & 3584u) { |
| 1736 // optional .google.protobuf.FileOptions options = 8; |
| 1737 if (has_options()) { |
| 1738 total_size += 1 + |
| 1739 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 1740 *this->options_); |
| 1741 } |
| 1742 |
| 1743 // optional .google.protobuf.SourceCodeInfo source_code_info = 9; |
| 1744 if (has_source_code_info()) { |
| 1745 total_size += 1 + |
| 1746 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 1747 *this->source_code_info_); |
| 1748 } |
| 1749 |
| 1750 // optional string syntax = 12; |
| 1751 if (has_syntax()) { |
| 1752 total_size += 1 + |
| 1753 ::google::protobuf::internal::WireFormatLite::StringSize( |
| 1754 this->syntax()); |
| 1755 } |
| 1756 |
| 1755 } | 1757 } |
| 1756 // repeated string dependency = 3; | 1758 // repeated string dependency = 3; |
| 1757 total_size += 1 * | 1759 total_size += 1 * this->dependency_size(); |
| 1758 ::google::protobuf::internal::FromIntSize(this->dependency_size()); | |
| 1759 for (int i = 0; i < this->dependency_size(); i++) { | 1760 for (int i = 0; i < this->dependency_size(); i++) { |
| 1760 total_size += ::google::protobuf::internal::WireFormatLite::StringSize( | 1761 total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
| 1761 this->dependency(i)); | 1762 this->dependency(i)); |
| 1762 } | 1763 } |
| 1763 | 1764 |
| 1764 // repeated int32 public_dependency = 10; | 1765 // repeated int32 public_dependency = 10; |
| 1765 { | 1766 { |
| 1766 size_t data_size = 0; | 1767 int data_size = 0; |
| 1767 unsigned int count = this->public_dependency_size(); | 1768 for (int i = 0; i < this->public_dependency_size(); i++) { |
| 1768 for (unsigned int i = 0; i < count; i++) { | |
| 1769 data_size += ::google::protobuf::internal::WireFormatLite:: | 1769 data_size += ::google::protobuf::internal::WireFormatLite:: |
| 1770 Int32Size(this->public_dependency(i)); | 1770 Int32Size(this->public_dependency(i)); |
| 1771 } | 1771 } |
| 1772 total_size += 1 * | 1772 total_size += 1 * this->public_dependency_size() + data_size; |
| 1773 ::google::protobuf::internal::FromIntSize(this->public_depende
ncy_size()); | |
| 1774 total_size += data_size; | |
| 1775 } | 1773 } |
| 1776 | 1774 |
| 1777 // repeated int32 weak_dependency = 11; | 1775 // repeated int32 weak_dependency = 11; |
| 1778 { | 1776 { |
| 1779 size_t data_size = 0; | 1777 int data_size = 0; |
| 1780 unsigned int count = this->weak_dependency_size(); | 1778 for (int i = 0; i < this->weak_dependency_size(); i++) { |
| 1781 for (unsigned int i = 0; i < count; i++) { | |
| 1782 data_size += ::google::protobuf::internal::WireFormatLite:: | 1779 data_size += ::google::protobuf::internal::WireFormatLite:: |
| 1783 Int32Size(this->weak_dependency(i)); | 1780 Int32Size(this->weak_dependency(i)); |
| 1784 } | 1781 } |
| 1785 total_size += 1 * | 1782 total_size += 1 * this->weak_dependency_size() + data_size; |
| 1786 ::google::protobuf::internal::FromIntSize(this->weak_dependenc
y_size()); | |
| 1787 total_size += data_size; | |
| 1788 } | 1783 } |
| 1789 | 1784 |
| 1790 // repeated .google.protobuf.DescriptorProto message_type = 4; | 1785 // repeated .google.protobuf.DescriptorProto message_type = 4; |
| 1791 { | 1786 total_size += 1 * this->message_type_size(); |
| 1792 unsigned int count = this->message_type_size(); | 1787 for (int i = 0; i < this->message_type_size(); i++) { |
| 1793 total_size += 1UL * count; | 1788 total_size += |
| 1794 for (unsigned int i = 0; i < count; i++) { | 1789 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 1795 total_size += | 1790 this->message_type(i)); |
| 1796 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
| 1797 this->message_type(i)); | |
| 1798 } | |
| 1799 } | 1791 } |
| 1800 | 1792 |
| 1801 // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; | 1793 // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; |
| 1802 { | 1794 total_size += 1 * this->enum_type_size(); |
| 1803 unsigned int count = this->enum_type_size(); | 1795 for (int i = 0; i < this->enum_type_size(); i++) { |
| 1804 total_size += 1UL * count; | 1796 total_size += |
| 1805 for (unsigned int i = 0; i < count; i++) { | 1797 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 1806 total_size += | 1798 this->enum_type(i)); |
| 1807 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
| 1808 this->enum_type(i)); | |
| 1809 } | |
| 1810 } | 1799 } |
| 1811 | 1800 |
| 1812 // repeated .google.protobuf.ServiceDescriptorProto service = 6; | 1801 // repeated .google.protobuf.ServiceDescriptorProto service = 6; |
| 1813 { | 1802 total_size += 1 * this->service_size(); |
| 1814 unsigned int count = this->service_size(); | 1803 for (int i = 0; i < this->service_size(); i++) { |
| 1815 total_size += 1UL * count; | 1804 total_size += |
| 1816 for (unsigned int i = 0; i < count; i++) { | 1805 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 1817 total_size += | 1806 this->service(i)); |
| 1818 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
| 1819 this->service(i)); | |
| 1820 } | |
| 1821 } | 1807 } |
| 1822 | 1808 |
| 1823 // repeated .google.protobuf.FieldDescriptorProto extension = 7; | 1809 // repeated .google.protobuf.FieldDescriptorProto extension = 7; |
| 1824 { | 1810 total_size += 1 * this->extension_size(); |
| 1825 unsigned int count = this->extension_size(); | 1811 for (int i = 0; i < this->extension_size(); i++) { |
| 1826 total_size += 1UL * count; | 1812 total_size += |
| 1827 for (unsigned int i = 0; i < count; i++) { | 1813 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 1828 total_size += | 1814 this->extension(i)); |
| 1829 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
| 1830 this->extension(i)); | |
| 1831 } | |
| 1832 } | 1815 } |
| 1833 | 1816 |
| 1834 if (_has_bits_[0 / 32] & 31u) { | 1817 if (_internal_metadata_.have_unknown_fields()) { |
| 1835 // optional string name = 1; | 1818 total_size += |
| 1836 if (has_name()) { | 1819 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 1837 total_size += 1 + | 1820 unknown_fields()); |
| 1838 ::google::protobuf::internal::WireFormatLite::StringSize( | |
| 1839 this->name()); | |
| 1840 } | |
| 1841 | |
| 1842 // optional string package = 2; | |
| 1843 if (has_package()) { | |
| 1844 total_size += 1 + | |
| 1845 ::google::protobuf::internal::WireFormatLite::StringSize( | |
| 1846 this->package()); | |
| 1847 } | |
| 1848 | |
| 1849 // optional string syntax = 12; | |
| 1850 if (has_syntax()) { | |
| 1851 total_size += 1 + | |
| 1852 ::google::protobuf::internal::WireFormatLite::StringSize( | |
| 1853 this->syntax()); | |
| 1854 } | |
| 1855 | |
| 1856 // optional .google.protobuf.FileOptions options = 8; | |
| 1857 if (has_options()) { | |
| 1858 total_size += 1 + | |
| 1859 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
| 1860 *this->options_); | |
| 1861 } | |
| 1862 | |
| 1863 // optional .google.protobuf.SourceCodeInfo source_code_info = 9; | |
| 1864 if (has_source_code_info()) { | |
| 1865 total_size += 1 + | |
| 1866 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
| 1867 *this->source_code_info_); | |
| 1868 } | |
| 1869 | |
| 1870 } | 1821 } |
| 1871 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | |
| 1872 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 1822 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 1873 _cached_size_ = cached_size; | 1823 _cached_size_ = total_size; |
| 1874 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 1824 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 1875 return total_size; | 1825 return total_size; |
| 1876 } | 1826 } |
| 1877 | 1827 |
| 1878 void FileDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { | 1828 void FileDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
| 1879 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FileDes
criptorProto) | 1829 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FileDes
criptorProto) |
| 1880 GOOGLE_DCHECK_NE(&from, this); | 1830 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 1881 const FileDescriptorProto* source = | 1831 const FileDescriptorProto* source = |
| 1882 ::google::protobuf::internal::DynamicCastToGenerated<const FileDescriptorP
roto>( | 1832 ::google::protobuf::internal::DynamicCastToGenerated<const FileDescriptorP
roto>( |
| 1883 &from); | 1833 &from); |
| 1884 if (source == NULL) { | 1834 if (source == NULL) { |
| 1885 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.F
ileDescriptorProto) | 1835 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.F
ileDescriptorProto) |
| 1886 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 1836 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 1887 } else { | 1837 } else { |
| 1888 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.FileDescriptorProto) | 1838 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.FileDescriptorProto) |
| 1889 MergeFrom(*source); | 1839 MergeFrom(*source); |
| 1890 } | 1840 } |
| 1891 } | 1841 } |
| 1892 | 1842 |
| 1893 void FileDescriptorProto::MergeFrom(const FileDescriptorProto& from) { | 1843 void FileDescriptorProto::MergeFrom(const FileDescriptorProto& from) { |
| 1894 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.File
DescriptorProto) | 1844 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.File
DescriptorProto) |
| 1895 GOOGLE_DCHECK_NE(&from, this); | 1845 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 1896 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 1897 dependency_.MergeFrom(from.dependency_); | 1846 dependency_.MergeFrom(from.dependency_); |
| 1898 public_dependency_.MergeFrom(from.public_dependency_); | 1847 public_dependency_.MergeFrom(from.public_dependency_); |
| 1899 weak_dependency_.MergeFrom(from.weak_dependency_); | 1848 weak_dependency_.MergeFrom(from.weak_dependency_); |
| 1900 message_type_.MergeFrom(from.message_type_); | 1849 message_type_.MergeFrom(from.message_type_); |
| 1901 enum_type_.MergeFrom(from.enum_type_); | 1850 enum_type_.MergeFrom(from.enum_type_); |
| 1902 service_.MergeFrom(from.service_); | 1851 service_.MergeFrom(from.service_); |
| 1903 extension_.MergeFrom(from.extension_); | 1852 extension_.MergeFrom(from.extension_); |
| 1904 if (from._has_bits_[0 / 32] & 31u) { | 1853 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 1905 if (from.has_name()) { | 1854 if (from.has_name()) { |
| 1906 set_has_name(); | 1855 set_has_name(); |
| 1907 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), from.name_); | 1856 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), from.name_); |
| 1908 } | 1857 } |
| 1909 if (from.has_package()) { | 1858 if (from.has_package()) { |
| 1910 set_has_package(); | 1859 set_has_package(); |
| 1911 package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAl
readyInited(), from.package_); | 1860 package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAl
readyInited(), from.package_); |
| 1912 } | 1861 } |
| 1913 if (from.has_syntax()) { | 1862 } |
| 1914 set_has_syntax(); | 1863 if (from._has_bits_[9 / 32] & (0xffu << (9 % 32))) { |
| 1915 syntax_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited(), from.syntax_); | |
| 1916 } | |
| 1917 if (from.has_options()) { | 1864 if (from.has_options()) { |
| 1918 mutable_options()->::google::protobuf::FileOptions::MergeFrom(from.options
()); | 1865 mutable_options()->::google::protobuf::FileOptions::MergeFrom(from.options
()); |
| 1919 } | 1866 } |
| 1920 if (from.has_source_code_info()) { | 1867 if (from.has_source_code_info()) { |
| 1921 mutable_source_code_info()->::google::protobuf::SourceCodeInfo::MergeFrom(
from.source_code_info()); | 1868 mutable_source_code_info()->::google::protobuf::SourceCodeInfo::MergeFrom(
from.source_code_info()); |
| 1922 } | 1869 } |
| 1870 if (from.has_syntax()) { |
| 1871 set_has_syntax(); |
| 1872 syntax_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited(), from.syntax_); |
| 1873 } |
| 1874 } |
| 1875 if (from._internal_metadata_.have_unknown_fields()) { |
| 1876 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 1923 } | 1877 } |
| 1924 } | 1878 } |
| 1925 | 1879 |
| 1926 void FileDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { | 1880 void FileDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { |
| 1927 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FileDesc
riptorProto) | 1881 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FileDesc
riptorProto) |
| 1928 if (&from == this) return; | 1882 if (&from == this) return; |
| 1929 Clear(); | 1883 Clear(); |
| 1930 MergeFrom(from); | 1884 MergeFrom(from); |
| 1931 } | 1885 } |
| 1932 | 1886 |
| 1933 void FileDescriptorProto::CopyFrom(const FileDescriptorProto& from) { | 1887 void FileDescriptorProto::CopyFrom(const FileDescriptorProto& from) { |
| 1934 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FileD
escriptorProto) | 1888 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FileD
escriptorProto) |
| 1935 if (&from == this) return; | 1889 if (&from == this) return; |
| 1936 Clear(); | 1890 Clear(); |
| 1937 MergeFrom(from); | 1891 MergeFrom(from); |
| 1938 } | 1892 } |
| 1939 | 1893 |
| 1940 bool FileDescriptorProto::IsInitialized() const { | 1894 bool FileDescriptorProto::IsInitialized() const { |
| 1895 |
| 1941 if (!::google::protobuf::internal::AllAreInitialized(this->message_type())) re
turn false; | 1896 if (!::google::protobuf::internal::AllAreInitialized(this->message_type())) re
turn false; |
| 1942 if (!::google::protobuf::internal::AllAreInitialized(this->enum_type())) retur
n false; | 1897 if (!::google::protobuf::internal::AllAreInitialized(this->enum_type())) retur
n false; |
| 1943 if (!::google::protobuf::internal::AllAreInitialized(this->service())) return
false; | 1898 if (!::google::protobuf::internal::AllAreInitialized(this->service())) return
false; |
| 1944 if (!::google::protobuf::internal::AllAreInitialized(this->extension())) retur
n false; | 1899 if (!::google::protobuf::internal::AllAreInitialized(this->extension())) retur
n false; |
| 1945 if (has_options()) { | 1900 if (has_options()) { |
| 1946 if (!this->options_->IsInitialized()) return false; | 1901 if (!this->options_->IsInitialized()) return false; |
| 1947 } | 1902 } |
| 1948 return true; | 1903 return true; |
| 1949 } | 1904 } |
| 1950 | 1905 |
| 1951 void FileDescriptorProto::Swap(FileDescriptorProto* other) { | 1906 void FileDescriptorProto::Swap(FileDescriptorProto* other) { |
| 1952 if (other == this) return; | 1907 if (other == this) return; |
| 1953 InternalSwap(other); | 1908 InternalSwap(other); |
| 1954 } | 1909 } |
| 1955 void FileDescriptorProto::InternalSwap(FileDescriptorProto* other) { | 1910 void FileDescriptorProto::InternalSwap(FileDescriptorProto* other) { |
| 1911 name_.Swap(&other->name_); |
| 1912 package_.Swap(&other->package_); |
| 1956 dependency_.UnsafeArenaSwap(&other->dependency_); | 1913 dependency_.UnsafeArenaSwap(&other->dependency_); |
| 1957 public_dependency_.UnsafeArenaSwap(&other->public_dependency_); | 1914 public_dependency_.UnsafeArenaSwap(&other->public_dependency_); |
| 1958 weak_dependency_.UnsafeArenaSwap(&other->weak_dependency_); | 1915 weak_dependency_.UnsafeArenaSwap(&other->weak_dependency_); |
| 1959 message_type_.UnsafeArenaSwap(&other->message_type_); | 1916 message_type_.UnsafeArenaSwap(&other->message_type_); |
| 1960 enum_type_.UnsafeArenaSwap(&other->enum_type_); | 1917 enum_type_.UnsafeArenaSwap(&other->enum_type_); |
| 1961 service_.UnsafeArenaSwap(&other->service_); | 1918 service_.UnsafeArenaSwap(&other->service_); |
| 1962 extension_.UnsafeArenaSwap(&other->extension_); | 1919 extension_.UnsafeArenaSwap(&other->extension_); |
| 1963 name_.Swap(&other->name_); | |
| 1964 package_.Swap(&other->package_); | |
| 1965 syntax_.Swap(&other->syntax_); | |
| 1966 std::swap(options_, other->options_); | 1920 std::swap(options_, other->options_); |
| 1967 std::swap(source_code_info_, other->source_code_info_); | 1921 std::swap(source_code_info_, other->source_code_info_); |
| 1922 syntax_.Swap(&other->syntax_); |
| 1968 std::swap(_has_bits_[0], other->_has_bits_[0]); | 1923 std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 1969 _internal_metadata_.Swap(&other->_internal_metadata_); | 1924 _internal_metadata_.Swap(&other->_internal_metadata_); |
| 1970 std::swap(_cached_size_, other->_cached_size_); | 1925 std::swap(_cached_size_, other->_cached_size_); |
| 1971 } | 1926 } |
| 1972 | 1927 |
| 1973 ::google::protobuf::Metadata FileDescriptorProto::GetMetadata() const { | 1928 ::google::protobuf::Metadata FileDescriptorProto::GetMetadata() const { |
| 1974 protobuf_AssignDescriptorsOnce(); | 1929 protobuf_AssignDescriptorsOnce(); |
| 1975 return file_level_metadata[1]; | 1930 ::google::protobuf::Metadata metadata; |
| 1931 metadata.descriptor = FileDescriptorProto_descriptor_; |
| 1932 metadata.reflection = FileDescriptorProto_reflection_; |
| 1933 return metadata; |
| 1976 } | 1934 } |
| 1977 | 1935 |
| 1978 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 1936 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 1979 // FileDescriptorProto | 1937 // FileDescriptorProto |
| 1980 | 1938 |
| 1981 // optional string name = 1; | 1939 // optional string name = 1; |
| 1982 bool FileDescriptorProto::has_name() const { | 1940 bool FileDescriptorProto::has_name() const { |
| 1983 return (_has_bits_[0] & 0x00000001u) != 0; | 1941 return (_has_bits_[0] & 0x00000001u) != 0; |
| 1984 } | 1942 } |
| 1985 void FileDescriptorProto::set_has_name() { | 1943 void FileDescriptorProto::set_has_name() { |
| 1986 _has_bits_[0] |= 0x00000001u; | 1944 _has_bits_[0] |= 0x00000001u; |
| 1987 } | 1945 } |
| 1988 void FileDescriptorProto::clear_has_name() { | 1946 void FileDescriptorProto::clear_has_name() { |
| 1989 _has_bits_[0] &= ~0x00000001u; | 1947 _has_bits_[0] &= ~0x00000001u; |
| 1990 } | 1948 } |
| 1991 void FileDescriptorProto::clear_name() { | 1949 void FileDescriptorProto::clear_name() { |
| 1992 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); | 1950 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); |
| 1993 clear_has_name(); | 1951 clear_has_name(); |
| 1994 } | 1952 } |
| 1995 const ::std::string& FileDescriptorProto::name() const { | 1953 const ::std::string& FileDescriptorProto::name() const { |
| 1996 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.name
) | 1954 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.name
) |
| 1997 return name_.GetNoArena(); | 1955 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited()); |
| 1998 } | 1956 } |
| 1999 void FileDescriptorProto::set_name(const ::std::string& value) { | 1957 void FileDescriptorProto::set_name(const ::std::string& value) { |
| 2000 set_has_name(); | 1958 set_has_name(); |
| 2001 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); | 1959 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); |
| 2002 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.name
) | 1960 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.name
) |
| 2003 } | 1961 } |
| 2004 void FileDescriptorProto::set_name(const char* value) { | 1962 void FileDescriptorProto::set_name(const char* value) { |
| 2005 set_has_name(); | 1963 set_has_name(); |
| 2006 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); | 1964 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); |
| 2007 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto
.name) | 1965 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto
.name) |
| 2008 } | 1966 } |
| 2009 void FileDescriptorProto::set_name(const char* value, size_t size) { | 1967 void FileDescriptorProto::set_name(const char* value, size_t size) { |
| 2010 set_has_name(); | 1968 set_has_name(); |
| 2011 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), | 1969 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 2012 ::std::string(reinterpret_cast<const char*>(value), size)); | 1970 ::std::string(reinterpret_cast<const char*>(value), size)); |
| 2013 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorPr
oto.name) | 1971 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorPr
oto.name) |
| 2014 } | 1972 } |
| 2015 ::std::string* FileDescriptorProto::mutable_name() { | 1973 ::std::string* FileDescriptorProto::mutable_name() { |
| 2016 set_has_name(); | 1974 set_has_name(); |
| 2017 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.
name) | 1975 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.
name) |
| 2018 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 1976 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
| 2019 } | 1977 } |
| 2020 ::std::string* FileDescriptorProto::release_name() { | 1978 ::std::string* FileDescriptorProto::release_name() { |
| 2021 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.
name) | 1979 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.
name) |
| 2022 clear_has_name(); | 1980 clear_has_name(); |
| 2023 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 1981 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
| 2024 } | 1982 } |
| 2025 void FileDescriptorProto::set_allocated_name(::std::string* name) { | 1983 void FileDescriptorProto::set_allocated_name(::std::string* name) { |
| 2026 if (name != NULL) { | 1984 if (name != NULL) { |
| 2027 set_has_name(); | 1985 set_has_name(); |
| 2028 } else { | 1986 } else { |
| 2029 clear_has_name(); | 1987 clear_has_name(); |
| 2030 } | 1988 } |
| 2031 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), name); | 1989 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), name); |
| 2032 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptor
Proto.name) | 1990 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptor
Proto.name) |
| 2033 } | 1991 } |
| 2034 | 1992 |
| 2035 // optional string package = 2; | 1993 // optional string package = 2; |
| 2036 bool FileDescriptorProto::has_package() const { | 1994 bool FileDescriptorProto::has_package() const { |
| 2037 return (_has_bits_[0] & 0x00000002u) != 0; | 1995 return (_has_bits_[0] & 0x00000002u) != 0; |
| 2038 } | 1996 } |
| 2039 void FileDescriptorProto::set_has_package() { | 1997 void FileDescriptorProto::set_has_package() { |
| 2040 _has_bits_[0] |= 0x00000002u; | 1998 _has_bits_[0] |= 0x00000002u; |
| 2041 } | 1999 } |
| 2042 void FileDescriptorProto::clear_has_package() { | 2000 void FileDescriptorProto::clear_has_package() { |
| 2043 _has_bits_[0] &= ~0x00000002u; | 2001 _has_bits_[0] &= ~0x00000002u; |
| 2044 } | 2002 } |
| 2045 void FileDescriptorProto::clear_package() { | 2003 void FileDescriptorProto::clear_package() { |
| 2046 package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); | 2004 package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); |
| 2047 clear_has_package(); | 2005 clear_has_package(); |
| 2048 } | 2006 } |
| 2049 const ::std::string& FileDescriptorProto::package() const { | 2007 const ::std::string& FileDescriptorProto::package() const { |
| 2050 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.pack
age) | 2008 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.pack
age) |
| 2051 return package_.GetNoArena(); | 2009 return package_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlread
yInited()); |
| 2052 } | 2010 } |
| 2053 void FileDescriptorProto::set_package(const ::std::string& value) { | 2011 void FileDescriptorProto::set_package(const ::std::string& value) { |
| 2054 set_has_package(); | 2012 set_has_package(); |
| 2055 package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), value); | 2013 package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), value); |
| 2056 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.pack
age) | 2014 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.pack
age) |
| 2057 } | 2015 } |
| 2058 void FileDescriptorProto::set_package(const char* value) { | 2016 void FileDescriptorProto::set_package(const char* value) { |
| 2059 set_has_package(); | 2017 set_has_package(); |
| 2060 package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), ::std::string(value)); | 2018 package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), ::std::string(value)); |
| 2061 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto
.package) | 2019 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto
.package) |
| 2062 } | 2020 } |
| 2063 void FileDescriptorProto::set_package(const char* value, size_t size) { | 2021 void FileDescriptorProto::set_package(const char* value, size_t size) { |
| 2064 set_has_package(); | 2022 set_has_package(); |
| 2065 package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), | 2023 package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), |
| 2066 ::std::string(reinterpret_cast<const char*>(value), size)); | 2024 ::std::string(reinterpret_cast<const char*>(value), size)); |
| 2067 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorPr
oto.package) | 2025 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorPr
oto.package) |
| 2068 } | 2026 } |
| 2069 ::std::string* FileDescriptorProto::mutable_package() { | 2027 ::std::string* FileDescriptorProto::mutable_package() { |
| 2070 set_has_package(); | 2028 set_has_package(); |
| 2071 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.
package) | 2029 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.
package) |
| 2072 return package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); | 2030 return package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); |
| 2073 } | 2031 } |
| 2074 ::std::string* FileDescriptorProto::release_package() { | 2032 ::std::string* FileDescriptorProto::release_package() { |
| 2075 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.
package) | 2033 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.
package) |
| 2076 clear_has_package(); | 2034 clear_has_package(); |
| 2077 return package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); | 2035 return package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); |
| 2078 } | 2036 } |
| 2079 void FileDescriptorProto::set_allocated_package(::std::string* package) { | 2037 void FileDescriptorProto::set_allocated_package(::std::string* package) { |
| 2080 if (package != NULL) { | 2038 if (package != NULL) { |
| 2081 set_has_package(); | 2039 set_has_package(); |
| 2082 } else { | 2040 } else { |
| 2083 clear_has_package(); | 2041 clear_has_package(); |
| 2084 } | 2042 } |
| 2085 package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), package); | 2043 package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), package); |
| 2086 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptor
Proto.package) | 2044 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptor
Proto.package) |
| 2087 } | 2045 } |
| 2088 | 2046 |
| 2089 // repeated string dependency = 3; | 2047 // repeated string dependency = 3; |
| 2090 int FileDescriptorProto::dependency_size() const { | 2048 int FileDescriptorProto::dependency_size() const { |
| 2091 return dependency_.size(); | 2049 return dependency_.size(); |
| 2092 } | 2050 } |
| 2093 void FileDescriptorProto::clear_dependency() { | 2051 void FileDescriptorProto::clear_dependency() { |
| 2094 dependency_.Clear(); | 2052 dependency_.Clear(); |
| 2095 } | 2053 } |
| 2096 const ::std::string& FileDescriptorProto::dependency(int index) const { | 2054 const ::std::string& FileDescriptorProto::dependency(int index) const { |
| 2097 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.depe
ndency) | 2055 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.depe
ndency) |
| 2098 return dependency_.Get(index); | 2056 return dependency_.Get(index); |
| 2099 } | 2057 } |
| 2100 ::std::string* FileDescriptorProto::mutable_dependency(int index) { | 2058 ::std::string* FileDescriptorProto::mutable_dependency(int index) { |
| 2101 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.
dependency) | 2059 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.
dependency) |
| 2102 return dependency_.Mutable(index); | 2060 return dependency_.Mutable(index); |
| 2103 } | 2061 } |
| 2104 void FileDescriptorProto::set_dependency(int index, const ::std::string& value)
{ | 2062 void FileDescriptorProto::set_dependency(int index, const ::std::string& value)
{ |
| 2105 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.depe
ndency) | 2063 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.depe
ndency) |
| 2106 dependency_.Mutable(index)->assign(value); | 2064 dependency_.Mutable(index)->assign(value); |
| 2107 } | 2065 } |
| 2108 void FileDescriptorProto::set_dependency(int index, const char* value) { | 2066 void FileDescriptorProto::set_dependency(int index, const char* value) { |
| 2109 dependency_.Mutable(index)->assign(value); | 2067 dependency_.Mutable(index)->assign(value); |
| 2110 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto
.dependency) | 2068 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto
.dependency) |
| 2111 } | 2069 } |
| 2112 void FileDescriptorProto::set_dependency(int index, const char* value, size_t si
ze) { | 2070 void FileDescriptorProto::set_dependency(int index, const char* value, size_t s
ize) { |
| 2113 dependency_.Mutable(index)->assign( | 2071 dependency_.Mutable(index)->assign( |
| 2114 reinterpret_cast<const char*>(value), size); | 2072 reinterpret_cast<const char*>(value), size); |
| 2115 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorPr
oto.dependency) | 2073 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorPr
oto.dependency) |
| 2116 } | 2074 } |
| 2117 ::std::string* FileDescriptorProto::add_dependency() { | 2075 ::std::string* FileDescriptorProto::add_dependency() { |
| 2118 // @@protoc_insertion_point(field_add_mutable:google.protobuf.FileDescriptorPr
oto.dependency) | 2076 // @@protoc_insertion_point(field_add_mutable:google.protobuf.FileDescriptorPr
oto.dependency) |
| 2119 return dependency_.Add(); | 2077 return dependency_.Add(); |
| 2120 } | 2078 } |
| 2121 void FileDescriptorProto::add_dependency(const ::std::string& value) { | 2079 void FileDescriptorProto::add_dependency(const ::std::string& value) { |
| 2122 dependency_.Add()->assign(value); | 2080 dependency_.Add()->assign(value); |
| 2123 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.depe
ndency) | 2081 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.depe
ndency) |
| 2124 } | 2082 } |
| 2125 void FileDescriptorProto::add_dependency(const char* value) { | 2083 void FileDescriptorProto::add_dependency(const char* value) { |
| 2126 dependency_.Add()->assign(value); | 2084 dependency_.Add()->assign(value); |
| 2127 // @@protoc_insertion_point(field_add_char:google.protobuf.FileDescriptorProto
.dependency) | 2085 // @@protoc_insertion_point(field_add_char:google.protobuf.FileDescriptorProto
.dependency) |
| 2128 } | 2086 } |
| 2129 void FileDescriptorProto::add_dependency(const char* value, size_t size) { | 2087 void FileDescriptorProto::add_dependency(const char* value, size_t size) { |
| 2130 dependency_.Add()->assign(reinterpret_cast<const char*>(value), size); | 2088 dependency_.Add()->assign(reinterpret_cast<const char*>(value), size); |
| 2131 // @@protoc_insertion_point(field_add_pointer:google.protobuf.FileDescriptorPr
oto.dependency) | 2089 // @@protoc_insertion_point(field_add_pointer:google.protobuf.FileDescriptorPr
oto.dependency) |
| 2132 } | 2090 } |
| 2133 const ::google::protobuf::RepeatedPtrField< ::std::string>& | 2091 const ::google::protobuf::RepeatedPtrField< ::std::string>& |
| 2134 FileDescriptorProto::dependency() const { | 2092 FileDescriptorProto::dependency() const { |
| 2135 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.dep
endency) | 2093 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.dep
endency) |
| 2136 return dependency_; | 2094 return dependency_; |
| 2137 } | 2095 } |
| 2138 ::google::protobuf::RepeatedPtrField< ::std::string>* | 2096 ::google::protobuf::RepeatedPtrField< ::std::string>* |
| 2139 FileDescriptorProto::mutable_dependency() { | 2097 FileDescriptorProto::mutable_dependency() { |
| 2140 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorP
roto.dependency) | 2098 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorP
roto.dependency) |
| 2141 return &dependency_; | 2099 return &dependency_; |
| 2142 } | 2100 } |
| 2143 | 2101 |
| 2144 // repeated int32 public_dependency = 10; | 2102 // repeated int32 public_dependency = 10; |
| 2145 int FileDescriptorProto::public_dependency_size() const { | 2103 int FileDescriptorProto::public_dependency_size() const { |
| 2146 return public_dependency_.size(); | 2104 return public_dependency_.size(); |
| 2147 } | 2105 } |
| 2148 void FileDescriptorProto::clear_public_dependency() { | 2106 void FileDescriptorProto::clear_public_dependency() { |
| 2149 public_dependency_.Clear(); | 2107 public_dependency_.Clear(); |
| 2150 } | 2108 } |
| 2151 ::google::protobuf::int32 FileDescriptorProto::public_dependency(int index) cons
t { | 2109 ::google::protobuf::int32 FileDescriptorProto::public_dependency(int index) con
st { |
| 2152 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.publ
ic_dependency) | 2110 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.publ
ic_dependency) |
| 2153 return public_dependency_.Get(index); | 2111 return public_dependency_.Get(index); |
| 2154 } | 2112 } |
| 2155 void FileDescriptorProto::set_public_dependency(int index, ::google::protobuf::i
nt32 value) { | 2113 void FileDescriptorProto::set_public_dependency(int index, ::google::protobuf::
int32 value) { |
| 2156 public_dependency_.Set(index, value); | 2114 public_dependency_.Set(index, value); |
| 2157 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.publ
ic_dependency) | 2115 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.publ
ic_dependency) |
| 2158 } | 2116 } |
| 2159 void FileDescriptorProto::add_public_dependency(::google::protobuf::int32 value)
{ | 2117 void FileDescriptorProto::add_public_dependency(::google::protobuf::int32 value
) { |
| 2160 public_dependency_.Add(value); | 2118 public_dependency_.Add(value); |
| 2161 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.publ
ic_dependency) | 2119 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.publ
ic_dependency) |
| 2162 } | 2120 } |
| 2163 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& | 2121 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& |
| 2164 FileDescriptorProto::public_dependency() const { | 2122 FileDescriptorProto::public_dependency() const { |
| 2165 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.pub
lic_dependency) | 2123 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.pub
lic_dependency) |
| 2166 return public_dependency_; | 2124 return public_dependency_; |
| 2167 } | 2125 } |
| 2168 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* | 2126 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* |
| 2169 FileDescriptorProto::mutable_public_dependency() { | 2127 FileDescriptorProto::mutable_public_dependency() { |
| 2170 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorP
roto.public_dependency) | 2128 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorP
roto.public_dependency) |
| 2171 return &public_dependency_; | 2129 return &public_dependency_; |
| 2172 } | 2130 } |
| 2173 | 2131 |
| 2174 // repeated int32 weak_dependency = 11; | 2132 // repeated int32 weak_dependency = 11; |
| 2175 int FileDescriptorProto::weak_dependency_size() const { | 2133 int FileDescriptorProto::weak_dependency_size() const { |
| 2176 return weak_dependency_.size(); | 2134 return weak_dependency_.size(); |
| 2177 } | 2135 } |
| 2178 void FileDescriptorProto::clear_weak_dependency() { | 2136 void FileDescriptorProto::clear_weak_dependency() { |
| 2179 weak_dependency_.Clear(); | 2137 weak_dependency_.Clear(); |
| 2180 } | 2138 } |
| 2181 ::google::protobuf::int32 FileDescriptorProto::weak_dependency(int index) const
{ | 2139 ::google::protobuf::int32 FileDescriptorProto::weak_dependency(int index) const
{ |
| 2182 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.weak
_dependency) | 2140 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.weak
_dependency) |
| 2183 return weak_dependency_.Get(index); | 2141 return weak_dependency_.Get(index); |
| 2184 } | 2142 } |
| 2185 void FileDescriptorProto::set_weak_dependency(int index, ::google::protobuf::int
32 value) { | 2143 void FileDescriptorProto::set_weak_dependency(int index, ::google::protobuf::in
t32 value) { |
| 2186 weak_dependency_.Set(index, value); | 2144 weak_dependency_.Set(index, value); |
| 2187 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.weak
_dependency) | 2145 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.weak
_dependency) |
| 2188 } | 2146 } |
| 2189 void FileDescriptorProto::add_weak_dependency(::google::protobuf::int32 value) { | 2147 void FileDescriptorProto::add_weak_dependency(::google::protobuf::int32 value)
{ |
| 2190 weak_dependency_.Add(value); | 2148 weak_dependency_.Add(value); |
| 2191 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.weak
_dependency) | 2149 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.weak
_dependency) |
| 2192 } | 2150 } |
| 2193 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& | 2151 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& |
| 2194 FileDescriptorProto::weak_dependency() const { | 2152 FileDescriptorProto::weak_dependency() const { |
| 2195 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.wea
k_dependency) | 2153 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.wea
k_dependency) |
| 2196 return weak_dependency_; | 2154 return weak_dependency_; |
| 2197 } | 2155 } |
| 2198 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* | 2156 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* |
| 2199 FileDescriptorProto::mutable_weak_dependency() { | 2157 FileDescriptorProto::mutable_weak_dependency() { |
| 2200 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorP
roto.weak_dependency) | 2158 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorP
roto.weak_dependency) |
| 2201 return &weak_dependency_; | 2159 return &weak_dependency_; |
| 2202 } | 2160 } |
| 2203 | 2161 |
| 2204 // repeated .google.protobuf.DescriptorProto message_type = 4; | 2162 // repeated .google.protobuf.DescriptorProto message_type = 4; |
| 2205 int FileDescriptorProto::message_type_size() const { | 2163 int FileDescriptorProto::message_type_size() const { |
| 2206 return message_type_.size(); | 2164 return message_type_.size(); |
| 2207 } | 2165 } |
| 2208 void FileDescriptorProto::clear_message_type() { | 2166 void FileDescriptorProto::clear_message_type() { |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2316 return &extension_; | 2274 return &extension_; |
| 2317 } | 2275 } |
| 2318 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorP
roto >& | 2276 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorP
roto >& |
| 2319 FileDescriptorProto::extension() const { | 2277 FileDescriptorProto::extension() const { |
| 2320 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.ext
ension) | 2278 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.ext
ension) |
| 2321 return extension_; | 2279 return extension_; |
| 2322 } | 2280 } |
| 2323 | 2281 |
| 2324 // optional .google.protobuf.FileOptions options = 8; | 2282 // optional .google.protobuf.FileOptions options = 8; |
| 2325 bool FileDescriptorProto::has_options() const { | 2283 bool FileDescriptorProto::has_options() const { |
| 2326 return (_has_bits_[0] & 0x00000008u) != 0; | 2284 return (_has_bits_[0] & 0x00000200u) != 0; |
| 2327 } | 2285 } |
| 2328 void FileDescriptorProto::set_has_options() { | 2286 void FileDescriptorProto::set_has_options() { |
| 2329 _has_bits_[0] |= 0x00000008u; | 2287 _has_bits_[0] |= 0x00000200u; |
| 2330 } | 2288 } |
| 2331 void FileDescriptorProto::clear_has_options() { | 2289 void FileDescriptorProto::clear_has_options() { |
| 2332 _has_bits_[0] &= ~0x00000008u; | 2290 _has_bits_[0] &= ~0x00000200u; |
| 2333 } | 2291 } |
| 2334 void FileDescriptorProto::clear_options() { | 2292 void FileDescriptorProto::clear_options() { |
| 2335 if (options_ != NULL) options_->::google::protobuf::FileOptions::Clear(); | 2293 if (options_ != NULL) options_->::google::protobuf::FileOptions::Clear(); |
| 2336 clear_has_options(); | 2294 clear_has_options(); |
| 2337 } | 2295 } |
| 2338 const ::google::protobuf::FileOptions& FileDescriptorProto::options() const { | 2296 const ::google::protobuf::FileOptions& FileDescriptorProto::options() const { |
| 2339 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.opti
ons) | 2297 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.opti
ons) |
| 2340 return options_ != NULL ? *options_ | 2298 return options_ != NULL ? *options_ : *default_instance_->options_; |
| 2341 : *::google::protobuf::FileOptions::internal_default_in
stance(); | |
| 2342 } | 2299 } |
| 2343 ::google::protobuf::FileOptions* FileDescriptorProto::mutable_options() { | 2300 ::google::protobuf::FileOptions* FileDescriptorProto::mutable_options() { |
| 2344 set_has_options(); | 2301 set_has_options(); |
| 2345 if (options_ == NULL) { | 2302 if (options_ == NULL) { |
| 2346 options_ = new ::google::protobuf::FileOptions; | 2303 options_ = new ::google::protobuf::FileOptions; |
| 2347 } | 2304 } |
| 2348 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.
options) | 2305 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.
options) |
| 2349 return options_; | 2306 return options_; |
| 2350 } | 2307 } |
| 2351 ::google::protobuf::FileOptions* FileDescriptorProto::release_options() { | 2308 ::google::protobuf::FileOptions* FileDescriptorProto::release_options() { |
| 2352 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.
options) | 2309 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.
options) |
| 2353 clear_has_options(); | 2310 clear_has_options(); |
| 2354 ::google::protobuf::FileOptions* temp = options_; | 2311 ::google::protobuf::FileOptions* temp = options_; |
| 2355 options_ = NULL; | 2312 options_ = NULL; |
| 2356 return temp; | 2313 return temp; |
| 2357 } | 2314 } |
| 2358 void FileDescriptorProto::set_allocated_options(::google::protobuf::FileOptions*
options) { | 2315 void FileDescriptorProto::set_allocated_options(::google::protobuf::FileOptions*
options) { |
| 2359 delete options_; | 2316 delete options_; |
| 2360 options_ = options; | 2317 options_ = options; |
| 2361 if (options) { | 2318 if (options) { |
| 2362 set_has_options(); | 2319 set_has_options(); |
| 2363 } else { | 2320 } else { |
| 2364 clear_has_options(); | 2321 clear_has_options(); |
| 2365 } | 2322 } |
| 2366 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptor
Proto.options) | 2323 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptor
Proto.options) |
| 2367 } | 2324 } |
| 2368 | 2325 |
| 2369 // optional .google.protobuf.SourceCodeInfo source_code_info = 9; | 2326 // optional .google.protobuf.SourceCodeInfo source_code_info = 9; |
| 2370 bool FileDescriptorProto::has_source_code_info() const { | 2327 bool FileDescriptorProto::has_source_code_info() const { |
| 2371 return (_has_bits_[0] & 0x00000010u) != 0; | 2328 return (_has_bits_[0] & 0x00000400u) != 0; |
| 2372 } | 2329 } |
| 2373 void FileDescriptorProto::set_has_source_code_info() { | 2330 void FileDescriptorProto::set_has_source_code_info() { |
| 2374 _has_bits_[0] |= 0x00000010u; | 2331 _has_bits_[0] |= 0x00000400u; |
| 2375 } | 2332 } |
| 2376 void FileDescriptorProto::clear_has_source_code_info() { | 2333 void FileDescriptorProto::clear_has_source_code_info() { |
| 2377 _has_bits_[0] &= ~0x00000010u; | 2334 _has_bits_[0] &= ~0x00000400u; |
| 2378 } | 2335 } |
| 2379 void FileDescriptorProto::clear_source_code_info() { | 2336 void FileDescriptorProto::clear_source_code_info() { |
| 2380 if (source_code_info_ != NULL) source_code_info_->::google::protobuf::SourceCo
deInfo::Clear(); | 2337 if (source_code_info_ != NULL) source_code_info_->::google::protobuf::SourceCo
deInfo::Clear(); |
| 2381 clear_has_source_code_info(); | 2338 clear_has_source_code_info(); |
| 2382 } | 2339 } |
| 2383 const ::google::protobuf::SourceCodeInfo& FileDescriptorProto::source_code_info(
) const { | 2340 const ::google::protobuf::SourceCodeInfo& FileDescriptorProto::source_code_info(
) const { |
| 2384 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.sour
ce_code_info) | 2341 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.sour
ce_code_info) |
| 2385 return source_code_info_ != NULL ? *source_code_info_ | 2342 return source_code_info_ != NULL ? *source_code_info_ : *default_instance_->so
urce_code_info_; |
| 2386 : *::google::protobuf::SourceCodeInfo::internal_default
_instance(); | |
| 2387 } | 2343 } |
| 2388 ::google::protobuf::SourceCodeInfo* FileDescriptorProto::mutable_source_code_inf
o() { | 2344 ::google::protobuf::SourceCodeInfo* FileDescriptorProto::mutable_source_code_inf
o() { |
| 2389 set_has_source_code_info(); | 2345 set_has_source_code_info(); |
| 2390 if (source_code_info_ == NULL) { | 2346 if (source_code_info_ == NULL) { |
| 2391 source_code_info_ = new ::google::protobuf::SourceCodeInfo; | 2347 source_code_info_ = new ::google::protobuf::SourceCodeInfo; |
| 2392 } | 2348 } |
| 2393 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.
source_code_info) | 2349 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.
source_code_info) |
| 2394 return source_code_info_; | 2350 return source_code_info_; |
| 2395 } | 2351 } |
| 2396 ::google::protobuf::SourceCodeInfo* FileDescriptorProto::release_source_code_inf
o() { | 2352 ::google::protobuf::SourceCodeInfo* FileDescriptorProto::release_source_code_inf
o() { |
| 2397 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.
source_code_info) | 2353 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.
source_code_info) |
| 2398 clear_has_source_code_info(); | 2354 clear_has_source_code_info(); |
| 2399 ::google::protobuf::SourceCodeInfo* temp = source_code_info_; | 2355 ::google::protobuf::SourceCodeInfo* temp = source_code_info_; |
| 2400 source_code_info_ = NULL; | 2356 source_code_info_ = NULL; |
| 2401 return temp; | 2357 return temp; |
| 2402 } | 2358 } |
| 2403 void FileDescriptorProto::set_allocated_source_code_info(::google::protobuf::Sou
rceCodeInfo* source_code_info) { | 2359 void FileDescriptorProto::set_allocated_source_code_info(::google::protobuf::Sou
rceCodeInfo* source_code_info) { |
| 2404 delete source_code_info_; | 2360 delete source_code_info_; |
| 2405 source_code_info_ = source_code_info; | 2361 source_code_info_ = source_code_info; |
| 2406 if (source_code_info) { | 2362 if (source_code_info) { |
| 2407 set_has_source_code_info(); | 2363 set_has_source_code_info(); |
| 2408 } else { | 2364 } else { |
| 2409 clear_has_source_code_info(); | 2365 clear_has_source_code_info(); |
| 2410 } | 2366 } |
| 2411 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptor
Proto.source_code_info) | 2367 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptor
Proto.source_code_info) |
| 2412 } | 2368 } |
| 2413 | 2369 |
| 2414 // optional string syntax = 12; | 2370 // optional string syntax = 12; |
| 2415 bool FileDescriptorProto::has_syntax() const { | 2371 bool FileDescriptorProto::has_syntax() const { |
| 2416 return (_has_bits_[0] & 0x00000004u) != 0; | 2372 return (_has_bits_[0] & 0x00000800u) != 0; |
| 2417 } | 2373 } |
| 2418 void FileDescriptorProto::set_has_syntax() { | 2374 void FileDescriptorProto::set_has_syntax() { |
| 2419 _has_bits_[0] |= 0x00000004u; | 2375 _has_bits_[0] |= 0x00000800u; |
| 2420 } | 2376 } |
| 2421 void FileDescriptorProto::clear_has_syntax() { | 2377 void FileDescriptorProto::clear_has_syntax() { |
| 2422 _has_bits_[0] &= ~0x00000004u; | 2378 _has_bits_[0] &= ~0x00000800u; |
| 2423 } | 2379 } |
| 2424 void FileDescriptorProto::clear_syntax() { | 2380 void FileDescriptorProto::clear_syntax() { |
| 2425 syntax_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 2381 syntax_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
| 2426 clear_has_syntax(); | 2382 clear_has_syntax(); |
| 2427 } | 2383 } |
| 2428 const ::std::string& FileDescriptorProto::syntax() const { | 2384 const ::std::string& FileDescriptorProto::syntax() const { |
| 2429 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.synt
ax) | 2385 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.synt
ax) |
| 2430 return syntax_.GetNoArena(); | 2386 return syntax_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); |
| 2431 } | 2387 } |
| 2432 void FileDescriptorProto::set_syntax(const ::std::string& value) { | 2388 void FileDescriptorProto::set_syntax(const ::std::string& value) { |
| 2433 set_has_syntax(); | 2389 set_has_syntax(); |
| 2434 syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(
), value); | 2390 syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(
), value); |
| 2435 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.synt
ax) | 2391 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.synt
ax) |
| 2436 } | 2392 } |
| 2437 void FileDescriptorProto::set_syntax(const char* value) { | 2393 void FileDescriptorProto::set_syntax(const char* value) { |
| 2438 set_has_syntax(); | 2394 set_has_syntax(); |
| 2439 syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(
), ::std::string(value)); | 2395 syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(
), ::std::string(value)); |
| 2440 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto
.syntax) | 2396 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto
.syntax) |
| 2441 } | 2397 } |
| 2442 void FileDescriptorProto::set_syntax(const char* value, size_t size) { | 2398 void FileDescriptorProto::set_syntax(const char* value, size_t size) { |
| 2443 set_has_syntax(); | 2399 set_has_syntax(); |
| 2444 syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(
), | 2400 syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(
), |
| 2445 ::std::string(reinterpret_cast<const char*>(value), size)); | 2401 ::std::string(reinterpret_cast<const char*>(value), size)); |
| 2446 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorPr
oto.syntax) | 2402 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorPr
oto.syntax) |
| 2447 } | 2403 } |
| 2448 ::std::string* FileDescriptorProto::mutable_syntax() { | 2404 ::std::string* FileDescriptorProto::mutable_syntax() { |
| 2449 set_has_syntax(); | 2405 set_has_syntax(); |
| 2450 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.
syntax) | 2406 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.
syntax) |
| 2451 return syntax_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); | 2407 return syntax_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); |
| 2452 } | 2408 } |
| 2453 ::std::string* FileDescriptorProto::release_syntax() { | 2409 ::std::string* FileDescriptorProto::release_syntax() { |
| 2454 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.
syntax) | 2410 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.
syntax) |
| 2455 clear_has_syntax(); | 2411 clear_has_syntax(); |
| 2456 return syntax_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); | 2412 return syntax_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); |
| 2457 } | 2413 } |
| 2458 void FileDescriptorProto::set_allocated_syntax(::std::string* syntax) { | 2414 void FileDescriptorProto::set_allocated_syntax(::std::string* syntax) { |
| 2459 if (syntax != NULL) { | 2415 if (syntax != NULL) { |
| 2460 set_has_syntax(); | 2416 set_has_syntax(); |
| 2461 } else { | 2417 } else { |
| 2462 clear_has_syntax(); | 2418 clear_has_syntax(); |
| 2463 } | 2419 } |
| 2464 syntax_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), syntax); | 2420 syntax_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), syntax); |
| 2465 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptor
Proto.syntax) | 2421 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptor
Proto.syntax) |
| 2466 } | 2422 } |
| 2467 | 2423 |
| 2468 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 2424 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 2469 | 2425 |
| 2470 // =================================================================== | 2426 // =================================================================== |
| 2471 | 2427 |
| 2472 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 2428 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2473 const int DescriptorProto_ExtensionRange::kStartFieldNumber; | 2429 const int DescriptorProto_ExtensionRange::kStartFieldNumber; |
| 2474 const int DescriptorProto_ExtensionRange::kEndFieldNumber; | 2430 const int DescriptorProto_ExtensionRange::kEndFieldNumber; |
| 2475 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 2431 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2476 | 2432 |
| 2477 DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange() | 2433 DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange() |
| 2478 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 2434 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 2479 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
| 2480 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
| 2481 } | |
| 2482 SharedCtor(); | 2435 SharedCtor(); |
| 2483 // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto.Extens
ionRange) | 2436 // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto.Extens
ionRange) |
| 2484 } | 2437 } |
| 2438 |
| 2439 void DescriptorProto_ExtensionRange::InitAsDefaultInstance() { |
| 2440 } |
| 2441 |
| 2485 DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange(const DescriptorP
roto_ExtensionRange& from) | 2442 DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange(const DescriptorP
roto_ExtensionRange& from) |
| 2486 : ::google::protobuf::Message(), | 2443 : ::google::protobuf::Message(), |
| 2487 _internal_metadata_(NULL), | 2444 _internal_metadata_(NULL) { |
| 2488 _has_bits_(from._has_bits_), | 2445 SharedCtor(); |
| 2489 _cached_size_(0) { | 2446 MergeFrom(from); |
| 2490 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 2491 ::memcpy(&start_, &from.start_, | |
| 2492 reinterpret_cast<char*>(&end_) - | |
| 2493 reinterpret_cast<char*>(&start_) + sizeof(end_)); | |
| 2494 // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto.E
xtensionRange) | 2447 // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto.E
xtensionRange) |
| 2495 } | 2448 } |
| 2496 | 2449 |
| 2497 void DescriptorProto_ExtensionRange::SharedCtor() { | 2450 void DescriptorProto_ExtensionRange::SharedCtor() { |
| 2498 _cached_size_ = 0; | 2451 _cached_size_ = 0; |
| 2499 ::memset(&start_, 0, reinterpret_cast<char*>(&end_) - | 2452 start_ = 0; |
| 2500 reinterpret_cast<char*>(&start_) + sizeof(end_)); | 2453 end_ = 0; |
| 2454 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 2501 } | 2455 } |
| 2502 | 2456 |
| 2503 DescriptorProto_ExtensionRange::~DescriptorProto_ExtensionRange() { | 2457 DescriptorProto_ExtensionRange::~DescriptorProto_ExtensionRange() { |
| 2504 // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto.Extensi
onRange) | 2458 // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto.Extensi
onRange) |
| 2505 SharedDtor(); | 2459 SharedDtor(); |
| 2506 } | 2460 } |
| 2507 | 2461 |
| 2508 void DescriptorProto_ExtensionRange::SharedDtor() { | 2462 void DescriptorProto_ExtensionRange::SharedDtor() { |
| 2463 if (this != default_instance_) { |
| 2464 } |
| 2509 } | 2465 } |
| 2510 | 2466 |
| 2511 void DescriptorProto_ExtensionRange::SetCachedSize(int size) const { | 2467 void DescriptorProto_ExtensionRange::SetCachedSize(int size) const { |
| 2512 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 2468 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 2513 _cached_size_ = size; | 2469 _cached_size_ = size; |
| 2514 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 2470 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 2515 } | 2471 } |
| 2516 const ::google::protobuf::Descriptor* DescriptorProto_ExtensionRange::descriptor
() { | 2472 const ::google::protobuf::Descriptor* DescriptorProto_ExtensionRange::descriptor
() { |
| 2517 protobuf_AssignDescriptorsOnce(); | 2473 protobuf_AssignDescriptorsOnce(); |
| 2518 return file_level_metadata[2].descriptor; | 2474 return DescriptorProto_ExtensionRange_descriptor_; |
| 2519 } | 2475 } |
| 2520 | 2476 |
| 2521 const DescriptorProto_ExtensionRange& DescriptorProto_ExtensionRange::default_in
stance() { | 2477 const DescriptorProto_ExtensionRange& DescriptorProto_ExtensionRange::default_in
stance() { |
| 2522 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 2478 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
| 2523 return *internal_default_instance(); | 2479 return *default_instance_; |
| 2524 } | 2480 } |
| 2525 | 2481 |
| 2482 DescriptorProto_ExtensionRange* DescriptorProto_ExtensionRange::default_instance
_ = NULL; |
| 2483 |
| 2526 DescriptorProto_ExtensionRange* DescriptorProto_ExtensionRange::New(::google::pr
otobuf::Arena* arena) const { | 2484 DescriptorProto_ExtensionRange* DescriptorProto_ExtensionRange::New(::google::pr
otobuf::Arena* arena) const { |
| 2527 DescriptorProto_ExtensionRange* n = new DescriptorProto_ExtensionRange; | 2485 DescriptorProto_ExtensionRange* n = new DescriptorProto_ExtensionRange; |
| 2528 if (arena != NULL) { | 2486 if (arena != NULL) { |
| 2529 arena->Own(n); | 2487 arena->Own(n); |
| 2530 } | 2488 } |
| 2531 return n; | 2489 return n; |
| 2532 } | 2490 } |
| 2533 | 2491 |
| 2534 void DescriptorProto_ExtensionRange::Clear() { | 2492 void DescriptorProto_ExtensionRange::Clear() { |
| 2535 // @@protoc_insertion_point(message_clear_start:google.protobuf.DescriptorProto.
ExtensionRange) | 2493 // @@protoc_insertion_point(message_clear_start:google.protobuf.DescriptorProto.
ExtensionRange) |
| 2536 if (_has_bits_[0 / 32] & 3u) { | 2494 #if defined(__clang__) |
| 2537 ::memset(&start_, 0, reinterpret_cast<char*>(&end_) - | 2495 #define ZR_HELPER_(f) \ |
| 2538 reinterpret_cast<char*>(&start_) + sizeof(end_)); | 2496 _Pragma("clang diagnostic push") \ |
| 2497 _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ |
| 2498 __builtin_offsetof(DescriptorProto_ExtensionRange, f) \ |
| 2499 _Pragma("clang diagnostic pop") |
| 2500 #else |
| 2501 #define ZR_HELPER_(f) reinterpret_cast<char*>(\ |
| 2502 &reinterpret_cast<DescriptorProto_ExtensionRange*>(16)->f) |
| 2503 #endif |
| 2504 |
| 2505 #define ZR_(first, last) do {\ |
| 2506 ::memset(&first, 0,\ |
| 2507 ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ |
| 2508 } while (0) |
| 2509 |
| 2510 ZR_(start_, end_); |
| 2511 |
| 2512 #undef ZR_HELPER_ |
| 2513 #undef ZR_ |
| 2514 |
| 2515 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 2516 if (_internal_metadata_.have_unknown_fields()) { |
| 2517 mutable_unknown_fields()->Clear(); |
| 2539 } | 2518 } |
| 2540 _has_bits_.Clear(); | |
| 2541 _internal_metadata_.Clear(); | |
| 2542 } | 2519 } |
| 2543 | 2520 |
| 2544 bool DescriptorProto_ExtensionRange::MergePartialFromCodedStream( | 2521 bool DescriptorProto_ExtensionRange::MergePartialFromCodedStream( |
| 2545 ::google::protobuf::io::CodedInputStream* input) { | 2522 ::google::protobuf::io::CodedInputStream* input) { |
| 2546 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 2523 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 2547 ::google::protobuf::uint32 tag; | 2524 ::google::protobuf::uint32 tag; |
| 2548 // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto.Extens
ionRange) | 2525 // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto.Extens
ionRange) |
| 2549 for (;;) { | 2526 for (;;) { |
| 2550 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 2527 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
| 2551 tag = p.first; | 2528 tag = p.first; |
| 2552 if (!p.second) goto handle_unusual; | 2529 if (!p.second) goto handle_unusual; |
| 2553 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 2530 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
| 2554 // optional int32 start = 1; | 2531 // optional int32 start = 1; |
| 2555 case 1: { | 2532 case 1: { |
| 2556 if (tag == 8u) { | 2533 if (tag == 8) { |
| 2557 set_has_start(); | |
| 2558 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 2534 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2559 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 2535 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
| 2560 input, &start_))); | 2536 input, &start_))); |
| 2537 set_has_start(); |
| 2561 } else { | 2538 } else { |
| 2562 goto handle_unusual; | 2539 goto handle_unusual; |
| 2563 } | 2540 } |
| 2541 if (input->ExpectTag(16)) goto parse_end; |
| 2564 break; | 2542 break; |
| 2565 } | 2543 } |
| 2566 | 2544 |
| 2567 // optional int32 end = 2; | 2545 // optional int32 end = 2; |
| 2568 case 2: { | 2546 case 2: { |
| 2569 if (tag == 16u) { | 2547 if (tag == 16) { |
| 2570 set_has_end(); | 2548 parse_end: |
| 2571 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 2549 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2572 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 2550 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
| 2573 input, &end_))); | 2551 input, &end_))); |
| 2552 set_has_end(); |
| 2574 } else { | 2553 } else { |
| 2575 goto handle_unusual; | 2554 goto handle_unusual; |
| 2576 } | 2555 } |
| 2556 if (input->ExpectAtEnd()) goto success; |
| 2577 break; | 2557 break; |
| 2578 } | 2558 } |
| 2579 | 2559 |
| 2580 default: { | 2560 default: { |
| 2581 handle_unusual: | 2561 handle_unusual: |
| 2582 if (tag == 0 || | 2562 if (tag == 0 || |
| 2583 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 2563 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 2584 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 2564 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 2585 goto success; | 2565 goto success; |
| 2586 } | 2566 } |
| (...skipping 25 matching lines...) Expand all Loading... |
| 2612 ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end(), out
put); | 2592 ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end(), out
put); |
| 2613 } | 2593 } |
| 2614 | 2594 |
| 2615 if (_internal_metadata_.have_unknown_fields()) { | 2595 if (_internal_metadata_.have_unknown_fields()) { |
| 2616 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 2596 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 2617 unknown_fields(), output); | 2597 unknown_fields(), output); |
| 2618 } | 2598 } |
| 2619 // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto.Exte
nsionRange) | 2599 // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto.Exte
nsionRange) |
| 2620 } | 2600 } |
| 2621 | 2601 |
| 2622 ::google::protobuf::uint8* DescriptorProto_ExtensionRange::InternalSerializeWith
CachedSizesToArray( | 2602 ::google::protobuf::uint8* DescriptorProto_ExtensionRange::SerializeWithCachedSi
zesToArray( |
| 2623 bool deterministic, ::google::protobuf::uint8* target) const { | 2603 ::google::protobuf::uint8* target) const { |
| 2624 (void)deterministic; // Unused | |
| 2625 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Descripto
rProto.ExtensionRange) | 2604 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Descripto
rProto.ExtensionRange) |
| 2626 // optional int32 start = 1; | 2605 // optional int32 start = 1; |
| 2627 if (has_start()) { | 2606 if (has_start()) { |
| 2628 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1,
this->start(), target); | 2607 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1,
this->start(), target); |
| 2629 } | 2608 } |
| 2630 | 2609 |
| 2631 // optional int32 end = 2; | 2610 // optional int32 end = 2; |
| 2632 if (has_end()) { | 2611 if (has_end()) { |
| 2633 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2,
this->end(), target); | 2612 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2,
this->end(), target); |
| 2634 } | 2613 } |
| 2635 | 2614 |
| 2636 if (_internal_metadata_.have_unknown_fields()) { | 2615 if (_internal_metadata_.have_unknown_fields()) { |
| 2637 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 2616 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
| 2638 unknown_fields(), target); | 2617 unknown_fields(), target); |
| 2639 } | 2618 } |
| 2640 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorP
roto.ExtensionRange) | 2619 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorP
roto.ExtensionRange) |
| 2641 return target; | 2620 return target; |
| 2642 } | 2621 } |
| 2643 | 2622 |
| 2644 size_t DescriptorProto_ExtensionRange::ByteSizeLong() const { | 2623 int DescriptorProto_ExtensionRange::ByteSize() const { |
| 2645 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DescriptorPr
oto.ExtensionRange) | 2624 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DescriptorPr
oto.ExtensionRange) |
| 2646 size_t total_size = 0; | 2625 int total_size = 0; |
| 2647 | 2626 |
| 2648 if (_internal_metadata_.have_unknown_fields()) { | |
| 2649 total_size += | |
| 2650 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | |
| 2651 unknown_fields()); | |
| 2652 } | |
| 2653 if (_has_bits_[0 / 32] & 3u) { | 2627 if (_has_bits_[0 / 32] & 3u) { |
| 2654 // optional int32 start = 1; | 2628 // optional int32 start = 1; |
| 2655 if (has_start()) { | 2629 if (has_start()) { |
| 2656 total_size += 1 + | 2630 total_size += 1 + |
| 2657 ::google::protobuf::internal::WireFormatLite::Int32Size( | 2631 ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 2658 this->start()); | 2632 this->start()); |
| 2659 } | 2633 } |
| 2660 | 2634 |
| 2661 // optional int32 end = 2; | 2635 // optional int32 end = 2; |
| 2662 if (has_end()) { | 2636 if (has_end()) { |
| 2663 total_size += 1 + | 2637 total_size += 1 + |
| 2664 ::google::protobuf::internal::WireFormatLite::Int32Size( | 2638 ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 2665 this->end()); | 2639 this->end()); |
| 2666 } | 2640 } |
| 2667 | 2641 |
| 2668 } | 2642 } |
| 2669 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | 2643 if (_internal_metadata_.have_unknown_fields()) { |
| 2644 total_size += |
| 2645 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 2646 unknown_fields()); |
| 2647 } |
| 2670 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 2648 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 2671 _cached_size_ = cached_size; | 2649 _cached_size_ = total_size; |
| 2672 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 2650 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 2673 return total_size; | 2651 return total_size; |
| 2674 } | 2652 } |
| 2675 | 2653 |
| 2676 void DescriptorProto_ExtensionRange::MergeFrom(const ::google::protobuf::Message
& from) { | 2654 void DescriptorProto_ExtensionRange::MergeFrom(const ::google::protobuf::Message
& from) { |
| 2677 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Descrip
torProto.ExtensionRange) | 2655 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Descrip
torProto.ExtensionRange) |
| 2678 GOOGLE_DCHECK_NE(&from, this); | 2656 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 2679 const DescriptorProto_ExtensionRange* source = | 2657 const DescriptorProto_ExtensionRange* source = |
| 2680 ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto
_ExtensionRange>( | 2658 ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto
_ExtensionRange>( |
| 2681 &from); | 2659 &from); |
| 2682 if (source == NULL) { | 2660 if (source == NULL) { |
| 2683 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.D
escriptorProto.ExtensionRange) | 2661 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.D
escriptorProto.ExtensionRange) |
| 2684 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 2662 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 2685 } else { | 2663 } else { |
| 2686 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.DescriptorProto.ExtensionRange) | 2664 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.DescriptorProto.ExtensionRange) |
| 2687 MergeFrom(*source); | 2665 MergeFrom(*source); |
| 2688 } | 2666 } |
| 2689 } | 2667 } |
| 2690 | 2668 |
| 2691 void DescriptorProto_ExtensionRange::MergeFrom(const DescriptorProto_ExtensionRa
nge& from) { | 2669 void DescriptorProto_ExtensionRange::MergeFrom(const DescriptorProto_ExtensionRa
nge& from) { |
| 2692 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Desc
riptorProto.ExtensionRange) | 2670 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Desc
riptorProto.ExtensionRange) |
| 2693 GOOGLE_DCHECK_NE(&from, this); | 2671 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 2694 _internal_metadata_.MergeFrom(from._internal_metadata_); | 2672 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 2695 if (from._has_bits_[0 / 32] & 3u) { | |
| 2696 if (from.has_start()) { | 2673 if (from.has_start()) { |
| 2697 set_start(from.start()); | 2674 set_start(from.start()); |
| 2698 } | 2675 } |
| 2699 if (from.has_end()) { | 2676 if (from.has_end()) { |
| 2700 set_end(from.end()); | 2677 set_end(from.end()); |
| 2701 } | 2678 } |
| 2702 } | 2679 } |
| 2680 if (from._internal_metadata_.have_unknown_fields()) { |
| 2681 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 2682 } |
| 2703 } | 2683 } |
| 2704 | 2684 |
| 2705 void DescriptorProto_ExtensionRange::CopyFrom(const ::google::protobuf::Message&
from) { | 2685 void DescriptorProto_ExtensionRange::CopyFrom(const ::google::protobuf::Message&
from) { |
| 2706 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Descript
orProto.ExtensionRange) | 2686 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Descript
orProto.ExtensionRange) |
| 2707 if (&from == this) return; | 2687 if (&from == this) return; |
| 2708 Clear(); | 2688 Clear(); |
| 2709 MergeFrom(from); | 2689 MergeFrom(from); |
| 2710 } | 2690 } |
| 2711 | 2691 |
| 2712 void DescriptorProto_ExtensionRange::CopyFrom(const DescriptorProto_ExtensionRan
ge& from) { | 2692 void DescriptorProto_ExtensionRange::CopyFrom(const DescriptorProto_ExtensionRan
ge& from) { |
| 2713 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Descr
iptorProto.ExtensionRange) | 2693 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Descr
iptorProto.ExtensionRange) |
| 2714 if (&from == this) return; | 2694 if (&from == this) return; |
| 2715 Clear(); | 2695 Clear(); |
| 2716 MergeFrom(from); | 2696 MergeFrom(from); |
| 2717 } | 2697 } |
| 2718 | 2698 |
| 2719 bool DescriptorProto_ExtensionRange::IsInitialized() const { | 2699 bool DescriptorProto_ExtensionRange::IsInitialized() const { |
| 2700 |
| 2720 return true; | 2701 return true; |
| 2721 } | 2702 } |
| 2722 | 2703 |
| 2723 void DescriptorProto_ExtensionRange::Swap(DescriptorProto_ExtensionRange* other)
{ | 2704 void DescriptorProto_ExtensionRange::Swap(DescriptorProto_ExtensionRange* other)
{ |
| 2724 if (other == this) return; | 2705 if (other == this) return; |
| 2725 InternalSwap(other); | 2706 InternalSwap(other); |
| 2726 } | 2707 } |
| 2727 void DescriptorProto_ExtensionRange::InternalSwap(DescriptorProto_ExtensionRange
* other) { | 2708 void DescriptorProto_ExtensionRange::InternalSwap(DescriptorProto_ExtensionRange
* other) { |
| 2728 std::swap(start_, other->start_); | 2709 std::swap(start_, other->start_); |
| 2729 std::swap(end_, other->end_); | 2710 std::swap(end_, other->end_); |
| 2730 std::swap(_has_bits_[0], other->_has_bits_[0]); | 2711 std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 2731 _internal_metadata_.Swap(&other->_internal_metadata_); | 2712 _internal_metadata_.Swap(&other->_internal_metadata_); |
| 2732 std::swap(_cached_size_, other->_cached_size_); | 2713 std::swap(_cached_size_, other->_cached_size_); |
| 2733 } | 2714 } |
| 2734 | 2715 |
| 2735 ::google::protobuf::Metadata DescriptorProto_ExtensionRange::GetMetadata() const
{ | 2716 ::google::protobuf::Metadata DescriptorProto_ExtensionRange::GetMetadata() const
{ |
| 2736 protobuf_AssignDescriptorsOnce(); | 2717 protobuf_AssignDescriptorsOnce(); |
| 2737 return file_level_metadata[2]; | 2718 ::google::protobuf::Metadata metadata; |
| 2719 metadata.descriptor = DescriptorProto_ExtensionRange_descriptor_; |
| 2720 metadata.reflection = DescriptorProto_ExtensionRange_reflection_; |
| 2721 return metadata; |
| 2738 } | 2722 } |
| 2739 | 2723 |
| 2740 #if PROTOBUF_INLINE_NOT_IN_HEADERS | |
| 2741 // DescriptorProto_ExtensionRange | |
| 2742 | 2724 |
| 2743 // optional int32 start = 1; | 2725 // ------------------------------------------------------------------- |
| 2744 bool DescriptorProto_ExtensionRange::has_start() const { | |
| 2745 return (_has_bits_[0] & 0x00000001u) != 0; | |
| 2746 } | |
| 2747 void DescriptorProto_ExtensionRange::set_has_start() { | |
| 2748 _has_bits_[0] |= 0x00000001u; | |
| 2749 } | |
| 2750 void DescriptorProto_ExtensionRange::clear_has_start() { | |
| 2751 _has_bits_[0] &= ~0x00000001u; | |
| 2752 } | |
| 2753 void DescriptorProto_ExtensionRange::clear_start() { | |
| 2754 start_ = 0; | |
| 2755 clear_has_start(); | |
| 2756 } | |
| 2757 ::google::protobuf::int32 DescriptorProto_ExtensionRange::start() const { | |
| 2758 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.Extensio
nRange.start) | |
| 2759 return start_; | |
| 2760 } | |
| 2761 void DescriptorProto_ExtensionRange::set_start(::google::protobuf::int32 value)
{ | |
| 2762 set_has_start(); | |
| 2763 start_ = value; | |
| 2764 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.Extensio
nRange.start) | |
| 2765 } | |
| 2766 | |
| 2767 // optional int32 end = 2; | |
| 2768 bool DescriptorProto_ExtensionRange::has_end() const { | |
| 2769 return (_has_bits_[0] & 0x00000002u) != 0; | |
| 2770 } | |
| 2771 void DescriptorProto_ExtensionRange::set_has_end() { | |
| 2772 _has_bits_[0] |= 0x00000002u; | |
| 2773 } | |
| 2774 void DescriptorProto_ExtensionRange::clear_has_end() { | |
| 2775 _has_bits_[0] &= ~0x00000002u; | |
| 2776 } | |
| 2777 void DescriptorProto_ExtensionRange::clear_end() { | |
| 2778 end_ = 0; | |
| 2779 clear_has_end(); | |
| 2780 } | |
| 2781 ::google::protobuf::int32 DescriptorProto_ExtensionRange::end() const { | |
| 2782 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.Extensio
nRange.end) | |
| 2783 return end_; | |
| 2784 } | |
| 2785 void DescriptorProto_ExtensionRange::set_end(::google::protobuf::int32 value) { | |
| 2786 set_has_end(); | |
| 2787 end_ = value; | |
| 2788 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.Extensio
nRange.end) | |
| 2789 } | |
| 2790 | |
| 2791 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | |
| 2792 | |
| 2793 // =================================================================== | |
| 2794 | 2726 |
| 2795 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 2727 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2796 const int DescriptorProto_ReservedRange::kStartFieldNumber; | 2728 const int DescriptorProto_ReservedRange::kStartFieldNumber; |
| 2797 const int DescriptorProto_ReservedRange::kEndFieldNumber; | 2729 const int DescriptorProto_ReservedRange::kEndFieldNumber; |
| 2798 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 2730 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2799 | 2731 |
| 2800 DescriptorProto_ReservedRange::DescriptorProto_ReservedRange() | 2732 DescriptorProto_ReservedRange::DescriptorProto_ReservedRange() |
| 2801 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 2733 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 2802 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
| 2803 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
| 2804 } | |
| 2805 SharedCtor(); | 2734 SharedCtor(); |
| 2806 // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto.Reserv
edRange) | 2735 // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto.Reserv
edRange) |
| 2807 } | 2736 } |
| 2737 |
| 2738 void DescriptorProto_ReservedRange::InitAsDefaultInstance() { |
| 2739 } |
| 2740 |
| 2808 DescriptorProto_ReservedRange::DescriptorProto_ReservedRange(const DescriptorPro
to_ReservedRange& from) | 2741 DescriptorProto_ReservedRange::DescriptorProto_ReservedRange(const DescriptorPro
to_ReservedRange& from) |
| 2809 : ::google::protobuf::Message(), | 2742 : ::google::protobuf::Message(), |
| 2810 _internal_metadata_(NULL), | 2743 _internal_metadata_(NULL) { |
| 2811 _has_bits_(from._has_bits_), | 2744 SharedCtor(); |
| 2812 _cached_size_(0) { | 2745 MergeFrom(from); |
| 2813 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 2814 ::memcpy(&start_, &from.start_, | |
| 2815 reinterpret_cast<char*>(&end_) - | |
| 2816 reinterpret_cast<char*>(&start_) + sizeof(end_)); | |
| 2817 // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto.R
eservedRange) | 2746 // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto.R
eservedRange) |
| 2818 } | 2747 } |
| 2819 | 2748 |
| 2820 void DescriptorProto_ReservedRange::SharedCtor() { | 2749 void DescriptorProto_ReservedRange::SharedCtor() { |
| 2821 _cached_size_ = 0; | 2750 _cached_size_ = 0; |
| 2822 ::memset(&start_, 0, reinterpret_cast<char*>(&end_) - | 2751 start_ = 0; |
| 2823 reinterpret_cast<char*>(&start_) + sizeof(end_)); | 2752 end_ = 0; |
| 2753 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 2824 } | 2754 } |
| 2825 | 2755 |
| 2826 DescriptorProto_ReservedRange::~DescriptorProto_ReservedRange() { | 2756 DescriptorProto_ReservedRange::~DescriptorProto_ReservedRange() { |
| 2827 // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto.Reserve
dRange) | 2757 // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto.Reserve
dRange) |
| 2828 SharedDtor(); | 2758 SharedDtor(); |
| 2829 } | 2759 } |
| 2830 | 2760 |
| 2831 void DescriptorProto_ReservedRange::SharedDtor() { | 2761 void DescriptorProto_ReservedRange::SharedDtor() { |
| 2762 if (this != default_instance_) { |
| 2763 } |
| 2832 } | 2764 } |
| 2833 | 2765 |
| 2834 void DescriptorProto_ReservedRange::SetCachedSize(int size) const { | 2766 void DescriptorProto_ReservedRange::SetCachedSize(int size) const { |
| 2835 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 2767 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 2836 _cached_size_ = size; | 2768 _cached_size_ = size; |
| 2837 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 2769 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 2838 } | 2770 } |
| 2839 const ::google::protobuf::Descriptor* DescriptorProto_ReservedRange::descriptor(
) { | 2771 const ::google::protobuf::Descriptor* DescriptorProto_ReservedRange::descriptor(
) { |
| 2840 protobuf_AssignDescriptorsOnce(); | 2772 protobuf_AssignDescriptorsOnce(); |
| 2841 return file_level_metadata[3].descriptor; | 2773 return DescriptorProto_ReservedRange_descriptor_; |
| 2842 } | 2774 } |
| 2843 | 2775 |
| 2844 const DescriptorProto_ReservedRange& DescriptorProto_ReservedRange::default_inst
ance() { | 2776 const DescriptorProto_ReservedRange& DescriptorProto_ReservedRange::default_inst
ance() { |
| 2845 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 2777 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
| 2846 return *internal_default_instance(); | 2778 return *default_instance_; |
| 2847 } | 2779 } |
| 2848 | 2780 |
| 2781 DescriptorProto_ReservedRange* DescriptorProto_ReservedRange::default_instance_
= NULL; |
| 2782 |
| 2849 DescriptorProto_ReservedRange* DescriptorProto_ReservedRange::New(::google::prot
obuf::Arena* arena) const { | 2783 DescriptorProto_ReservedRange* DescriptorProto_ReservedRange::New(::google::prot
obuf::Arena* arena) const { |
| 2850 DescriptorProto_ReservedRange* n = new DescriptorProto_ReservedRange; | 2784 DescriptorProto_ReservedRange* n = new DescriptorProto_ReservedRange; |
| 2851 if (arena != NULL) { | 2785 if (arena != NULL) { |
| 2852 arena->Own(n); | 2786 arena->Own(n); |
| 2853 } | 2787 } |
| 2854 return n; | 2788 return n; |
| 2855 } | 2789 } |
| 2856 | 2790 |
| 2857 void DescriptorProto_ReservedRange::Clear() { | 2791 void DescriptorProto_ReservedRange::Clear() { |
| 2858 // @@protoc_insertion_point(message_clear_start:google.protobuf.DescriptorProto.
ReservedRange) | 2792 // @@protoc_insertion_point(message_clear_start:google.protobuf.DescriptorProto.
ReservedRange) |
| 2859 if (_has_bits_[0 / 32] & 3u) { | 2793 #if defined(__clang__) |
| 2860 ::memset(&start_, 0, reinterpret_cast<char*>(&end_) - | 2794 #define ZR_HELPER_(f) \ |
| 2861 reinterpret_cast<char*>(&start_) + sizeof(end_)); | 2795 _Pragma("clang diagnostic push") \ |
| 2796 _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ |
| 2797 __builtin_offsetof(DescriptorProto_ReservedRange, f) \ |
| 2798 _Pragma("clang diagnostic pop") |
| 2799 #else |
| 2800 #define ZR_HELPER_(f) reinterpret_cast<char*>(\ |
| 2801 &reinterpret_cast<DescriptorProto_ReservedRange*>(16)->f) |
| 2802 #endif |
| 2803 |
| 2804 #define ZR_(first, last) do {\ |
| 2805 ::memset(&first, 0,\ |
| 2806 ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ |
| 2807 } while (0) |
| 2808 |
| 2809 ZR_(start_, end_); |
| 2810 |
| 2811 #undef ZR_HELPER_ |
| 2812 #undef ZR_ |
| 2813 |
| 2814 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 2815 if (_internal_metadata_.have_unknown_fields()) { |
| 2816 mutable_unknown_fields()->Clear(); |
| 2862 } | 2817 } |
| 2863 _has_bits_.Clear(); | |
| 2864 _internal_metadata_.Clear(); | |
| 2865 } | 2818 } |
| 2866 | 2819 |
| 2867 bool DescriptorProto_ReservedRange::MergePartialFromCodedStream( | 2820 bool DescriptorProto_ReservedRange::MergePartialFromCodedStream( |
| 2868 ::google::protobuf::io::CodedInputStream* input) { | 2821 ::google::protobuf::io::CodedInputStream* input) { |
| 2869 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 2822 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 2870 ::google::protobuf::uint32 tag; | 2823 ::google::protobuf::uint32 tag; |
| 2871 // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto.Reserv
edRange) | 2824 // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto.Reserv
edRange) |
| 2872 for (;;) { | 2825 for (;;) { |
| 2873 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 2826 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
| 2874 tag = p.first; | 2827 tag = p.first; |
| 2875 if (!p.second) goto handle_unusual; | 2828 if (!p.second) goto handle_unusual; |
| 2876 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 2829 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
| 2877 // optional int32 start = 1; | 2830 // optional int32 start = 1; |
| 2878 case 1: { | 2831 case 1: { |
| 2879 if (tag == 8u) { | 2832 if (tag == 8) { |
| 2880 set_has_start(); | |
| 2881 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 2833 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2882 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 2834 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
| 2883 input, &start_))); | 2835 input, &start_))); |
| 2836 set_has_start(); |
| 2884 } else { | 2837 } else { |
| 2885 goto handle_unusual; | 2838 goto handle_unusual; |
| 2886 } | 2839 } |
| 2840 if (input->ExpectTag(16)) goto parse_end; |
| 2887 break; | 2841 break; |
| 2888 } | 2842 } |
| 2889 | 2843 |
| 2890 // optional int32 end = 2; | 2844 // optional int32 end = 2; |
| 2891 case 2: { | 2845 case 2: { |
| 2892 if (tag == 16u) { | 2846 if (tag == 16) { |
| 2893 set_has_end(); | 2847 parse_end: |
| 2894 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 2848 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2895 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 2849 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
| 2896 input, &end_))); | 2850 input, &end_))); |
| 2851 set_has_end(); |
| 2897 } else { | 2852 } else { |
| 2898 goto handle_unusual; | 2853 goto handle_unusual; |
| 2899 } | 2854 } |
| 2855 if (input->ExpectAtEnd()) goto success; |
| 2900 break; | 2856 break; |
| 2901 } | 2857 } |
| 2902 | 2858 |
| 2903 default: { | 2859 default: { |
| 2904 handle_unusual: | 2860 handle_unusual: |
| 2905 if (tag == 0 || | 2861 if (tag == 0 || |
| 2906 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 2862 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 2907 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 2863 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 2908 goto success; | 2864 goto success; |
| 2909 } | 2865 } |
| (...skipping 25 matching lines...) Expand all Loading... |
| 2935 ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end(), out
put); | 2891 ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end(), out
put); |
| 2936 } | 2892 } |
| 2937 | 2893 |
| 2938 if (_internal_metadata_.have_unknown_fields()) { | 2894 if (_internal_metadata_.have_unknown_fields()) { |
| 2939 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 2895 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 2940 unknown_fields(), output); | 2896 unknown_fields(), output); |
| 2941 } | 2897 } |
| 2942 // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto.Rese
rvedRange) | 2898 // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto.Rese
rvedRange) |
| 2943 } | 2899 } |
| 2944 | 2900 |
| 2945 ::google::protobuf::uint8* DescriptorProto_ReservedRange::InternalSerializeWithC
achedSizesToArray( | 2901 ::google::protobuf::uint8* DescriptorProto_ReservedRange::SerializeWithCachedSiz
esToArray( |
| 2946 bool deterministic, ::google::protobuf::uint8* target) const { | 2902 ::google::protobuf::uint8* target) const { |
| 2947 (void)deterministic; // Unused | |
| 2948 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Descripto
rProto.ReservedRange) | 2903 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Descripto
rProto.ReservedRange) |
| 2949 // optional int32 start = 1; | 2904 // optional int32 start = 1; |
| 2950 if (has_start()) { | 2905 if (has_start()) { |
| 2951 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1,
this->start(), target); | 2906 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1,
this->start(), target); |
| 2952 } | 2907 } |
| 2953 | 2908 |
| 2954 // optional int32 end = 2; | 2909 // optional int32 end = 2; |
| 2955 if (has_end()) { | 2910 if (has_end()) { |
| 2956 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2,
this->end(), target); | 2911 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2,
this->end(), target); |
| 2957 } | 2912 } |
| 2958 | 2913 |
| 2959 if (_internal_metadata_.have_unknown_fields()) { | 2914 if (_internal_metadata_.have_unknown_fields()) { |
| 2960 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 2915 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
| 2961 unknown_fields(), target); | 2916 unknown_fields(), target); |
| 2962 } | 2917 } |
| 2963 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorP
roto.ReservedRange) | 2918 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorP
roto.ReservedRange) |
| 2964 return target; | 2919 return target; |
| 2965 } | 2920 } |
| 2966 | 2921 |
| 2967 size_t DescriptorProto_ReservedRange::ByteSizeLong() const { | 2922 int DescriptorProto_ReservedRange::ByteSize() const { |
| 2968 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DescriptorPr
oto.ReservedRange) | 2923 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DescriptorPr
oto.ReservedRange) |
| 2969 size_t total_size = 0; | 2924 int total_size = 0; |
| 2970 | 2925 |
| 2971 if (_internal_metadata_.have_unknown_fields()) { | |
| 2972 total_size += | |
| 2973 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | |
| 2974 unknown_fields()); | |
| 2975 } | |
| 2976 if (_has_bits_[0 / 32] & 3u) { | 2926 if (_has_bits_[0 / 32] & 3u) { |
| 2977 // optional int32 start = 1; | 2927 // optional int32 start = 1; |
| 2978 if (has_start()) { | 2928 if (has_start()) { |
| 2979 total_size += 1 + | 2929 total_size += 1 + |
| 2980 ::google::protobuf::internal::WireFormatLite::Int32Size( | 2930 ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 2981 this->start()); | 2931 this->start()); |
| 2982 } | 2932 } |
| 2983 | 2933 |
| 2984 // optional int32 end = 2; | 2934 // optional int32 end = 2; |
| 2985 if (has_end()) { | 2935 if (has_end()) { |
| 2986 total_size += 1 + | 2936 total_size += 1 + |
| 2987 ::google::protobuf::internal::WireFormatLite::Int32Size( | 2937 ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 2988 this->end()); | 2938 this->end()); |
| 2989 } | 2939 } |
| 2990 | 2940 |
| 2991 } | 2941 } |
| 2992 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | 2942 if (_internal_metadata_.have_unknown_fields()) { |
| 2943 total_size += |
| 2944 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 2945 unknown_fields()); |
| 2946 } |
| 2993 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 2947 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 2994 _cached_size_ = cached_size; | 2948 _cached_size_ = total_size; |
| 2995 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 2949 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 2996 return total_size; | 2950 return total_size; |
| 2997 } | 2951 } |
| 2998 | 2952 |
| 2999 void DescriptorProto_ReservedRange::MergeFrom(const ::google::protobuf::Message&
from) { | 2953 void DescriptorProto_ReservedRange::MergeFrom(const ::google::protobuf::Message&
from) { |
| 3000 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Descrip
torProto.ReservedRange) | 2954 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Descrip
torProto.ReservedRange) |
| 3001 GOOGLE_DCHECK_NE(&from, this); | 2955 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 3002 const DescriptorProto_ReservedRange* source = | 2956 const DescriptorProto_ReservedRange* source = |
| 3003 ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto
_ReservedRange>( | 2957 ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto
_ReservedRange>( |
| 3004 &from); | 2958 &from); |
| 3005 if (source == NULL) { | 2959 if (source == NULL) { |
| 3006 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.D
escriptorProto.ReservedRange) | 2960 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.D
escriptorProto.ReservedRange) |
| 3007 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 2961 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 3008 } else { | 2962 } else { |
| 3009 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.DescriptorProto.ReservedRange) | 2963 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.DescriptorProto.ReservedRange) |
| 3010 MergeFrom(*source); | 2964 MergeFrom(*source); |
| 3011 } | 2965 } |
| 3012 } | 2966 } |
| 3013 | 2967 |
| 3014 void DescriptorProto_ReservedRange::MergeFrom(const DescriptorProto_ReservedRang
e& from) { | 2968 void DescriptorProto_ReservedRange::MergeFrom(const DescriptorProto_ReservedRang
e& from) { |
| 3015 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Desc
riptorProto.ReservedRange) | 2969 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Desc
riptorProto.ReservedRange) |
| 3016 GOOGLE_DCHECK_NE(&from, this); | 2970 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 3017 _internal_metadata_.MergeFrom(from._internal_metadata_); | 2971 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 3018 if (from._has_bits_[0 / 32] & 3u) { | |
| 3019 if (from.has_start()) { | 2972 if (from.has_start()) { |
| 3020 set_start(from.start()); | 2973 set_start(from.start()); |
| 3021 } | 2974 } |
| 3022 if (from.has_end()) { | 2975 if (from.has_end()) { |
| 3023 set_end(from.end()); | 2976 set_end(from.end()); |
| 3024 } | 2977 } |
| 3025 } | 2978 } |
| 2979 if (from._internal_metadata_.have_unknown_fields()) { |
| 2980 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 2981 } |
| 3026 } | 2982 } |
| 3027 | 2983 |
| 3028 void DescriptorProto_ReservedRange::CopyFrom(const ::google::protobuf::Message&
from) { | 2984 void DescriptorProto_ReservedRange::CopyFrom(const ::google::protobuf::Message&
from) { |
| 3029 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Descript
orProto.ReservedRange) | 2985 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Descript
orProto.ReservedRange) |
| 3030 if (&from == this) return; | 2986 if (&from == this) return; |
| 3031 Clear(); | 2987 Clear(); |
| 3032 MergeFrom(from); | 2988 MergeFrom(from); |
| 3033 } | 2989 } |
| 3034 | 2990 |
| 3035 void DescriptorProto_ReservedRange::CopyFrom(const DescriptorProto_ReservedRange
& from) { | 2991 void DescriptorProto_ReservedRange::CopyFrom(const DescriptorProto_ReservedRange
& from) { |
| 3036 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Descr
iptorProto.ReservedRange) | 2992 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Descr
iptorProto.ReservedRange) |
| 3037 if (&from == this) return; | 2993 if (&from == this) return; |
| 3038 Clear(); | 2994 Clear(); |
| 3039 MergeFrom(from); | 2995 MergeFrom(from); |
| 3040 } | 2996 } |
| 3041 | 2997 |
| 3042 bool DescriptorProto_ReservedRange::IsInitialized() const { | 2998 bool DescriptorProto_ReservedRange::IsInitialized() const { |
| 2999 |
| 3043 return true; | 3000 return true; |
| 3044 } | 3001 } |
| 3045 | 3002 |
| 3046 void DescriptorProto_ReservedRange::Swap(DescriptorProto_ReservedRange* other) { | 3003 void DescriptorProto_ReservedRange::Swap(DescriptorProto_ReservedRange* other) { |
| 3047 if (other == this) return; | 3004 if (other == this) return; |
| 3048 InternalSwap(other); | 3005 InternalSwap(other); |
| 3049 } | 3006 } |
| 3050 void DescriptorProto_ReservedRange::InternalSwap(DescriptorProto_ReservedRange*
other) { | 3007 void DescriptorProto_ReservedRange::InternalSwap(DescriptorProto_ReservedRange*
other) { |
| 3051 std::swap(start_, other->start_); | 3008 std::swap(start_, other->start_); |
| 3052 std::swap(end_, other->end_); | 3009 std::swap(end_, other->end_); |
| 3053 std::swap(_has_bits_[0], other->_has_bits_[0]); | 3010 std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 3054 _internal_metadata_.Swap(&other->_internal_metadata_); | 3011 _internal_metadata_.Swap(&other->_internal_metadata_); |
| 3055 std::swap(_cached_size_, other->_cached_size_); | 3012 std::swap(_cached_size_, other->_cached_size_); |
| 3056 } | 3013 } |
| 3057 | 3014 |
| 3058 ::google::protobuf::Metadata DescriptorProto_ReservedRange::GetMetadata() const
{ | 3015 ::google::protobuf::Metadata DescriptorProto_ReservedRange::GetMetadata() const
{ |
| 3059 protobuf_AssignDescriptorsOnce(); | 3016 protobuf_AssignDescriptorsOnce(); |
| 3060 return file_level_metadata[3]; | 3017 ::google::protobuf::Metadata metadata; |
| 3018 metadata.descriptor = DescriptorProto_ReservedRange_descriptor_; |
| 3019 metadata.reflection = DescriptorProto_ReservedRange_reflection_; |
| 3020 return metadata; |
| 3061 } | 3021 } |
| 3062 | 3022 |
| 3063 #if PROTOBUF_INLINE_NOT_IN_HEADERS | |
| 3064 // DescriptorProto_ReservedRange | |
| 3065 | 3023 |
| 3066 // optional int32 start = 1; | 3024 // ------------------------------------------------------------------- |
| 3067 bool DescriptorProto_ReservedRange::has_start() const { | |
| 3068 return (_has_bits_[0] & 0x00000001u) != 0; | |
| 3069 } | |
| 3070 void DescriptorProto_ReservedRange::set_has_start() { | |
| 3071 _has_bits_[0] |= 0x00000001u; | |
| 3072 } | |
| 3073 void DescriptorProto_ReservedRange::clear_has_start() { | |
| 3074 _has_bits_[0] &= ~0x00000001u; | |
| 3075 } | |
| 3076 void DescriptorProto_ReservedRange::clear_start() { | |
| 3077 start_ = 0; | |
| 3078 clear_has_start(); | |
| 3079 } | |
| 3080 ::google::protobuf::int32 DescriptorProto_ReservedRange::start() const { | |
| 3081 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.Reserved
Range.start) | |
| 3082 return start_; | |
| 3083 } | |
| 3084 void DescriptorProto_ReservedRange::set_start(::google::protobuf::int32 value) { | |
| 3085 set_has_start(); | |
| 3086 start_ = value; | |
| 3087 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.Reserved
Range.start) | |
| 3088 } | |
| 3089 | |
| 3090 // optional int32 end = 2; | |
| 3091 bool DescriptorProto_ReservedRange::has_end() const { | |
| 3092 return (_has_bits_[0] & 0x00000002u) != 0; | |
| 3093 } | |
| 3094 void DescriptorProto_ReservedRange::set_has_end() { | |
| 3095 _has_bits_[0] |= 0x00000002u; | |
| 3096 } | |
| 3097 void DescriptorProto_ReservedRange::clear_has_end() { | |
| 3098 _has_bits_[0] &= ~0x00000002u; | |
| 3099 } | |
| 3100 void DescriptorProto_ReservedRange::clear_end() { | |
| 3101 end_ = 0; | |
| 3102 clear_has_end(); | |
| 3103 } | |
| 3104 ::google::protobuf::int32 DescriptorProto_ReservedRange::end() const { | |
| 3105 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.Reserved
Range.end) | |
| 3106 return end_; | |
| 3107 } | |
| 3108 void DescriptorProto_ReservedRange::set_end(::google::protobuf::int32 value) { | |
| 3109 set_has_end(); | |
| 3110 end_ = value; | |
| 3111 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.Reserved
Range.end) | |
| 3112 } | |
| 3113 | |
| 3114 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | |
| 3115 | |
| 3116 // =================================================================== | |
| 3117 | 3025 |
| 3118 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 3026 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 3119 const int DescriptorProto::kNameFieldNumber; | 3027 const int DescriptorProto::kNameFieldNumber; |
| 3120 const int DescriptorProto::kFieldFieldNumber; | 3028 const int DescriptorProto::kFieldFieldNumber; |
| 3121 const int DescriptorProto::kExtensionFieldNumber; | 3029 const int DescriptorProto::kExtensionFieldNumber; |
| 3122 const int DescriptorProto::kNestedTypeFieldNumber; | 3030 const int DescriptorProto::kNestedTypeFieldNumber; |
| 3123 const int DescriptorProto::kEnumTypeFieldNumber; | 3031 const int DescriptorProto::kEnumTypeFieldNumber; |
| 3124 const int DescriptorProto::kExtensionRangeFieldNumber; | 3032 const int DescriptorProto::kExtensionRangeFieldNumber; |
| 3125 const int DescriptorProto::kOneofDeclFieldNumber; | 3033 const int DescriptorProto::kOneofDeclFieldNumber; |
| 3126 const int DescriptorProto::kOptionsFieldNumber; | 3034 const int DescriptorProto::kOptionsFieldNumber; |
| 3127 const int DescriptorProto::kReservedRangeFieldNumber; | 3035 const int DescriptorProto::kReservedRangeFieldNumber; |
| 3128 const int DescriptorProto::kReservedNameFieldNumber; | 3036 const int DescriptorProto::kReservedNameFieldNumber; |
| 3129 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 3037 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 3130 | 3038 |
| 3131 DescriptorProto::DescriptorProto() | 3039 DescriptorProto::DescriptorProto() |
| 3132 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 3040 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 3133 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
| 3134 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
| 3135 } | |
| 3136 SharedCtor(); | 3041 SharedCtor(); |
| 3137 // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto) | 3042 // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto) |
| 3138 } | 3043 } |
| 3044 |
| 3045 void DescriptorProto::InitAsDefaultInstance() { |
| 3046 options_ = const_cast< ::google::protobuf::MessageOptions*>(&::google::protobu
f::MessageOptions::default_instance()); |
| 3047 } |
| 3048 |
| 3139 DescriptorProto::DescriptorProto(const DescriptorProto& from) | 3049 DescriptorProto::DescriptorProto(const DescriptorProto& from) |
| 3140 : ::google::protobuf::Message(), | 3050 : ::google::protobuf::Message(), |
| 3141 _internal_metadata_(NULL), | 3051 _internal_metadata_(NULL) { |
| 3142 _has_bits_(from._has_bits_), | 3052 SharedCtor(); |
| 3143 _cached_size_(0), | 3053 MergeFrom(from); |
| 3144 field_(from.field_), | |
| 3145 extension_(from.extension_), | |
| 3146 nested_type_(from.nested_type_), | |
| 3147 enum_type_(from.enum_type_), | |
| 3148 extension_range_(from.extension_range_), | |
| 3149 oneof_decl_(from.oneof_decl_), | |
| 3150 reserved_range_(from.reserved_range_), | |
| 3151 reserved_name_(from.reserved_name_) { | |
| 3152 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 3153 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); | |
| 3154 if (from.has_name()) { | |
| 3155 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), from.name_); | |
| 3156 } | |
| 3157 if (from.has_options()) { | |
| 3158 options_ = new ::google::protobuf::MessageOptions(*from.options_); | |
| 3159 } else { | |
| 3160 options_ = NULL; | |
| 3161 } | |
| 3162 // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto) | 3054 // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto) |
| 3163 } | 3055 } |
| 3164 | 3056 |
| 3165 void DescriptorProto::SharedCtor() { | 3057 void DescriptorProto::SharedCtor() { |
| 3058 ::google::protobuf::internal::GetEmptyString(); |
| 3166 _cached_size_ = 0; | 3059 _cached_size_ = 0; |
| 3167 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); | 3060 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); |
| 3168 options_ = NULL; | 3061 options_ = NULL; |
| 3062 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 3169 } | 3063 } |
| 3170 | 3064 |
| 3171 DescriptorProto::~DescriptorProto() { | 3065 DescriptorProto::~DescriptorProto() { |
| 3172 // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto) | 3066 // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto) |
| 3173 SharedDtor(); | 3067 SharedDtor(); |
| 3174 } | 3068 } |
| 3175 | 3069 |
| 3176 void DescriptorProto::SharedDtor() { | 3070 void DescriptorProto::SharedDtor() { |
| 3177 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d()); | 3071 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d()); |
| 3178 if (this != internal_default_instance()) { | 3072 if (this != default_instance_) { |
| 3179 delete options_; | 3073 delete options_; |
| 3180 } | 3074 } |
| 3181 } | 3075 } |
| 3182 | 3076 |
| 3183 void DescriptorProto::SetCachedSize(int size) const { | 3077 void DescriptorProto::SetCachedSize(int size) const { |
| 3184 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 3078 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 3185 _cached_size_ = size; | 3079 _cached_size_ = size; |
| 3186 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 3080 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 3187 } | 3081 } |
| 3188 const ::google::protobuf::Descriptor* DescriptorProto::descriptor() { | 3082 const ::google::protobuf::Descriptor* DescriptorProto::descriptor() { |
| 3189 protobuf_AssignDescriptorsOnce(); | 3083 protobuf_AssignDescriptorsOnce(); |
| 3190 return file_level_metadata[4].descriptor; | 3084 return DescriptorProto_descriptor_; |
| 3191 } | 3085 } |
| 3192 | 3086 |
| 3193 const DescriptorProto& DescriptorProto::default_instance() { | 3087 const DescriptorProto& DescriptorProto::default_instance() { |
| 3194 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 3088 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
| 3195 return *internal_default_instance(); | 3089 return *default_instance_; |
| 3196 } | 3090 } |
| 3197 | 3091 |
| 3092 DescriptorProto* DescriptorProto::default_instance_ = NULL; |
| 3093 |
| 3198 DescriptorProto* DescriptorProto::New(::google::protobuf::Arena* arena) const { | 3094 DescriptorProto* DescriptorProto::New(::google::protobuf::Arena* arena) const { |
| 3199 DescriptorProto* n = new DescriptorProto; | 3095 DescriptorProto* n = new DescriptorProto; |
| 3200 if (arena != NULL) { | 3096 if (arena != NULL) { |
| 3201 arena->Own(n); | 3097 arena->Own(n); |
| 3202 } | 3098 } |
| 3203 return n; | 3099 return n; |
| 3204 } | 3100 } |
| 3205 | 3101 |
| 3206 void DescriptorProto::Clear() { | 3102 void DescriptorProto::Clear() { |
| 3207 // @@protoc_insertion_point(message_clear_start:google.protobuf.DescriptorProto) | 3103 // @@protoc_insertion_point(message_clear_start:google.protobuf.DescriptorProto) |
| 3104 if (_has_bits_[0 / 32] & 129u) { |
| 3105 if (has_name()) { |
| 3106 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); |
| 3107 } |
| 3108 if (has_options()) { |
| 3109 if (options_ != NULL) options_->::google::protobuf::MessageOptions::Clear(
); |
| 3110 } |
| 3111 } |
| 3208 field_.Clear(); | 3112 field_.Clear(); |
| 3209 extension_.Clear(); | 3113 extension_.Clear(); |
| 3210 nested_type_.Clear(); | 3114 nested_type_.Clear(); |
| 3211 enum_type_.Clear(); | 3115 enum_type_.Clear(); |
| 3212 extension_range_.Clear(); | 3116 extension_range_.Clear(); |
| 3213 oneof_decl_.Clear(); | 3117 oneof_decl_.Clear(); |
| 3214 reserved_range_.Clear(); | 3118 reserved_range_.Clear(); |
| 3215 reserved_name_.Clear(); | 3119 reserved_name_.Clear(); |
| 3216 if (_has_bits_[0 / 32] & 3u) { | 3120 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 3217 if (has_name()) { | 3121 if (_internal_metadata_.have_unknown_fields()) { |
| 3218 GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited())); | 3122 mutable_unknown_fields()->Clear(); |
| 3219 (*name_.UnsafeRawStringPointer())->clear(); | |
| 3220 } | |
| 3221 if (has_options()) { | |
| 3222 GOOGLE_DCHECK(options_ != NULL); | |
| 3223 options_->::google::protobuf::MessageOptions::Clear(); | |
| 3224 } | |
| 3225 } | 3123 } |
| 3226 _has_bits_.Clear(); | |
| 3227 _internal_metadata_.Clear(); | |
| 3228 } | 3124 } |
| 3229 | 3125 |
| 3230 bool DescriptorProto::MergePartialFromCodedStream( | 3126 bool DescriptorProto::MergePartialFromCodedStream( |
| 3231 ::google::protobuf::io::CodedInputStream* input) { | 3127 ::google::protobuf::io::CodedInputStream* input) { |
| 3232 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 3128 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 3233 ::google::protobuf::uint32 tag; | 3129 ::google::protobuf::uint32 tag; |
| 3234 // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto) | 3130 // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto) |
| 3235 for (;;) { | 3131 for (;;) { |
| 3236 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 3132 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
| 3237 tag = p.first; | 3133 tag = p.first; |
| 3238 if (!p.second) goto handle_unusual; | 3134 if (!p.second) goto handle_unusual; |
| 3239 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 3135 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
| 3240 // optional string name = 1; | 3136 // optional string name = 1; |
| 3241 case 1: { | 3137 case 1: { |
| 3242 if (tag == 10u) { | 3138 if (tag == 10) { |
| 3243 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 3139 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 3244 input, this->mutable_name())); | 3140 input, this->mutable_name())); |
| 3245 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 3141 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 3246 this->name().data(), this->name().length(), | 3142 this->name().data(), this->name().length(), |
| 3247 ::google::protobuf::internal::WireFormat::PARSE, | 3143 ::google::protobuf::internal::WireFormat::PARSE, |
| 3248 "google.protobuf.DescriptorProto.name"); | 3144 "google.protobuf.DescriptorProto.name"); |
| 3249 } else { | 3145 } else { |
| 3250 goto handle_unusual; | 3146 goto handle_unusual; |
| 3251 } | 3147 } |
| 3148 if (input->ExpectTag(18)) goto parse_field; |
| 3252 break; | 3149 break; |
| 3253 } | 3150 } |
| 3254 | 3151 |
| 3255 // repeated .google.protobuf.FieldDescriptorProto field = 2; | 3152 // repeated .google.protobuf.FieldDescriptorProto field = 2; |
| 3256 case 2: { | 3153 case 2: { |
| 3257 if (tag == 18u) { | 3154 if (tag == 18) { |
| 3155 parse_field: |
| 3258 DO_(input->IncrementRecursionDepth()); | 3156 DO_(input->IncrementRecursionDepth()); |
| 3157 parse_loop_field: |
| 3259 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 3158 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
| 3260 input, add_field())); | 3159 input, add_field())); |
| 3261 } else { | 3160 } else { |
| 3262 goto handle_unusual; | 3161 goto handle_unusual; |
| 3263 } | 3162 } |
| 3163 if (input->ExpectTag(18)) goto parse_loop_field; |
| 3164 if (input->ExpectTag(26)) goto parse_loop_nested_type; |
| 3264 input->UnsafeDecrementRecursionDepth(); | 3165 input->UnsafeDecrementRecursionDepth(); |
| 3265 break; | 3166 break; |
| 3266 } | 3167 } |
| 3267 | 3168 |
| 3268 // repeated .google.protobuf.DescriptorProto nested_type = 3; | 3169 // repeated .google.protobuf.DescriptorProto nested_type = 3; |
| 3269 case 3: { | 3170 case 3: { |
| 3270 if (tag == 26u) { | 3171 if (tag == 26) { |
| 3271 DO_(input->IncrementRecursionDepth()); | 3172 DO_(input->IncrementRecursionDepth()); |
| 3173 parse_loop_nested_type: |
| 3272 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 3174 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
| 3273 input, add_nested_type())); | 3175 input, add_nested_type())); |
| 3274 } else { | 3176 } else { |
| 3275 goto handle_unusual; | 3177 goto handle_unusual; |
| 3276 } | 3178 } |
| 3179 if (input->ExpectTag(26)) goto parse_loop_nested_type; |
| 3180 if (input->ExpectTag(34)) goto parse_loop_enum_type; |
| 3277 input->UnsafeDecrementRecursionDepth(); | 3181 input->UnsafeDecrementRecursionDepth(); |
| 3278 break; | 3182 break; |
| 3279 } | 3183 } |
| 3280 | 3184 |
| 3281 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; | 3185 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; |
| 3282 case 4: { | 3186 case 4: { |
| 3283 if (tag == 34u) { | 3187 if (tag == 34) { |
| 3284 DO_(input->IncrementRecursionDepth()); | 3188 DO_(input->IncrementRecursionDepth()); |
| 3189 parse_loop_enum_type: |
| 3285 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 3190 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
| 3286 input, add_enum_type())); | 3191 input, add_enum_type())); |
| 3287 } else { | 3192 } else { |
| 3288 goto handle_unusual; | 3193 goto handle_unusual; |
| 3289 } | 3194 } |
| 3195 if (input->ExpectTag(34)) goto parse_loop_enum_type; |
| 3196 if (input->ExpectTag(42)) goto parse_loop_extension_range; |
| 3290 input->UnsafeDecrementRecursionDepth(); | 3197 input->UnsafeDecrementRecursionDepth(); |
| 3291 break; | 3198 break; |
| 3292 } | 3199 } |
| 3293 | 3200 |
| 3294 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_rang
e = 5; | 3201 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_rang
e = 5; |
| 3295 case 5: { | 3202 case 5: { |
| 3296 if (tag == 42u) { | 3203 if (tag == 42) { |
| 3297 DO_(input->IncrementRecursionDepth()); | 3204 DO_(input->IncrementRecursionDepth()); |
| 3205 parse_loop_extension_range: |
| 3298 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 3206 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
| 3299 input, add_extension_range())); | 3207 input, add_extension_range())); |
| 3300 } else { | 3208 } else { |
| 3301 goto handle_unusual; | 3209 goto handle_unusual; |
| 3302 } | 3210 } |
| 3211 if (input->ExpectTag(42)) goto parse_loop_extension_range; |
| 3212 if (input->ExpectTag(50)) goto parse_loop_extension; |
| 3303 input->UnsafeDecrementRecursionDepth(); | 3213 input->UnsafeDecrementRecursionDepth(); |
| 3304 break; | 3214 break; |
| 3305 } | 3215 } |
| 3306 | 3216 |
| 3307 // repeated .google.protobuf.FieldDescriptorProto extension = 6; | 3217 // repeated .google.protobuf.FieldDescriptorProto extension = 6; |
| 3308 case 6: { | 3218 case 6: { |
| 3309 if (tag == 50u) { | 3219 if (tag == 50) { |
| 3310 DO_(input->IncrementRecursionDepth()); | 3220 DO_(input->IncrementRecursionDepth()); |
| 3221 parse_loop_extension: |
| 3311 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 3222 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
| 3312 input, add_extension())); | 3223 input, add_extension())); |
| 3313 } else { | 3224 } else { |
| 3314 goto handle_unusual; | 3225 goto handle_unusual; |
| 3315 } | 3226 } |
| 3227 if (input->ExpectTag(50)) goto parse_loop_extension; |
| 3316 input->UnsafeDecrementRecursionDepth(); | 3228 input->UnsafeDecrementRecursionDepth(); |
| 3229 if (input->ExpectTag(58)) goto parse_options; |
| 3317 break; | 3230 break; |
| 3318 } | 3231 } |
| 3319 | 3232 |
| 3320 // optional .google.protobuf.MessageOptions options = 7; | 3233 // optional .google.protobuf.MessageOptions options = 7; |
| 3321 case 7: { | 3234 case 7: { |
| 3322 if (tag == 58u) { | 3235 if (tag == 58) { |
| 3236 parse_options: |
| 3323 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 3237 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
| 3324 input, mutable_options())); | 3238 input, mutable_options())); |
| 3325 } else { | 3239 } else { |
| 3326 goto handle_unusual; | 3240 goto handle_unusual; |
| 3327 } | 3241 } |
| 3242 if (input->ExpectTag(66)) goto parse_oneof_decl; |
| 3328 break; | 3243 break; |
| 3329 } | 3244 } |
| 3330 | 3245 |
| 3331 // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; | 3246 // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; |
| 3332 case 8: { | 3247 case 8: { |
| 3333 if (tag == 66u) { | 3248 if (tag == 66) { |
| 3249 parse_oneof_decl: |
| 3334 DO_(input->IncrementRecursionDepth()); | 3250 DO_(input->IncrementRecursionDepth()); |
| 3251 parse_loop_oneof_decl: |
| 3335 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 3252 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
| 3336 input, add_oneof_decl())); | 3253 input, add_oneof_decl())); |
| 3337 } else { | 3254 } else { |
| 3338 goto handle_unusual; | 3255 goto handle_unusual; |
| 3339 } | 3256 } |
| 3257 if (input->ExpectTag(66)) goto parse_loop_oneof_decl; |
| 3258 if (input->ExpectTag(74)) goto parse_loop_reserved_range; |
| 3340 input->UnsafeDecrementRecursionDepth(); | 3259 input->UnsafeDecrementRecursionDepth(); |
| 3341 break; | 3260 break; |
| 3342 } | 3261 } |
| 3343 | 3262 |
| 3344 // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range
= 9; | 3263 // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range
= 9; |
| 3345 case 9: { | 3264 case 9: { |
| 3346 if (tag == 74u) { | 3265 if (tag == 74) { |
| 3347 DO_(input->IncrementRecursionDepth()); | 3266 DO_(input->IncrementRecursionDepth()); |
| 3267 parse_loop_reserved_range: |
| 3348 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 3268 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
| 3349 input, add_reserved_range())); | 3269 input, add_reserved_range())); |
| 3350 } else { | 3270 } else { |
| 3351 goto handle_unusual; | 3271 goto handle_unusual; |
| 3352 } | 3272 } |
| 3273 if (input->ExpectTag(74)) goto parse_loop_reserved_range; |
| 3353 input->UnsafeDecrementRecursionDepth(); | 3274 input->UnsafeDecrementRecursionDepth(); |
| 3275 if (input->ExpectTag(82)) goto parse_reserved_name; |
| 3354 break; | 3276 break; |
| 3355 } | 3277 } |
| 3356 | 3278 |
| 3357 // repeated string reserved_name = 10; | 3279 // repeated string reserved_name = 10; |
| 3358 case 10: { | 3280 case 10: { |
| 3359 if (tag == 82u) { | 3281 if (tag == 82) { |
| 3282 parse_reserved_name: |
| 3360 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 3283 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 3361 input, this->add_reserved_name())); | 3284 input, this->add_reserved_name())); |
| 3362 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 3285 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 3363 this->reserved_name(this->reserved_name_size() - 1).data(), | 3286 this->reserved_name(this->reserved_name_size() - 1).data(), |
| 3364 this->reserved_name(this->reserved_name_size() - 1).length(), | 3287 this->reserved_name(this->reserved_name_size() - 1).length(), |
| 3365 ::google::protobuf::internal::WireFormat::PARSE, | 3288 ::google::protobuf::internal::WireFormat::PARSE, |
| 3366 "google.protobuf.DescriptorProto.reserved_name"); | 3289 "google.protobuf.DescriptorProto.reserved_name"); |
| 3367 } else { | 3290 } else { |
| 3368 goto handle_unusual; | 3291 goto handle_unusual; |
| 3369 } | 3292 } |
| 3293 if (input->ExpectTag(82)) goto parse_reserved_name; |
| 3294 if (input->ExpectAtEnd()) goto success; |
| 3370 break; | 3295 break; |
| 3371 } | 3296 } |
| 3372 | 3297 |
| 3373 default: { | 3298 default: { |
| 3374 handle_unusual: | 3299 handle_unusual: |
| 3375 if (tag == 0 || | 3300 if (tag == 0 || |
| 3376 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 3301 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 3377 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 3302 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 3378 goto success; | 3303 goto success; |
| 3379 } | 3304 } |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3463 10, this->reserved_name(i), output); | 3388 10, this->reserved_name(i), output); |
| 3464 } | 3389 } |
| 3465 | 3390 |
| 3466 if (_internal_metadata_.have_unknown_fields()) { | 3391 if (_internal_metadata_.have_unknown_fields()) { |
| 3467 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 3392 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 3468 unknown_fields(), output); | 3393 unknown_fields(), output); |
| 3469 } | 3394 } |
| 3470 // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto) | 3395 // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto) |
| 3471 } | 3396 } |
| 3472 | 3397 |
| 3473 ::google::protobuf::uint8* DescriptorProto::InternalSerializeWithCachedSizesToAr
ray( | 3398 ::google::protobuf::uint8* DescriptorProto::SerializeWithCachedSizesToArray( |
| 3474 bool deterministic, ::google::protobuf::uint8* target) const { | 3399 ::google::protobuf::uint8* target) const { |
| 3475 (void)deterministic; // Unused | |
| 3476 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Descripto
rProto) | 3400 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Descripto
rProto) |
| 3477 // optional string name = 1; | 3401 // optional string name = 1; |
| 3478 if (has_name()) { | 3402 if (has_name()) { |
| 3479 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 3403 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 3480 this->name().data(), this->name().length(), | 3404 this->name().data(), this->name().length(), |
| 3481 ::google::protobuf::internal::WireFormat::SERIALIZE, | 3405 ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 3482 "google.protobuf.DescriptorProto.name"); | 3406 "google.protobuf.DescriptorProto.name"); |
| 3483 target = | 3407 target = |
| 3484 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 3408 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 3485 1, this->name(), target); | 3409 1, this->name(), target); |
| 3486 } | 3410 } |
| 3487 | 3411 |
| 3488 // repeated .google.protobuf.FieldDescriptorProto field = 2; | 3412 // repeated .google.protobuf.FieldDescriptorProto field = 2; |
| 3489 for (unsigned int i = 0, n = this->field_size(); i < n; i++) { | 3413 for (unsigned int i = 0, n = this->field_size(); i < n; i++) { |
| 3490 target = ::google::protobuf::internal::WireFormatLite:: | 3414 target = ::google::protobuf::internal::WireFormatLite:: |
| 3491 InternalWriteMessageNoVirtualToArray( | 3415 WriteMessageNoVirtualToArray( |
| 3492 2, this->field(i), false, target); | 3416 2, this->field(i), target); |
| 3493 } | 3417 } |
| 3494 | 3418 |
| 3495 // repeated .google.protobuf.DescriptorProto nested_type = 3; | 3419 // repeated .google.protobuf.DescriptorProto nested_type = 3; |
| 3496 for (unsigned int i = 0, n = this->nested_type_size(); i < n; i++) { | 3420 for (unsigned int i = 0, n = this->nested_type_size(); i < n; i++) { |
| 3497 target = ::google::protobuf::internal::WireFormatLite:: | 3421 target = ::google::protobuf::internal::WireFormatLite:: |
| 3498 InternalWriteMessageNoVirtualToArray( | 3422 WriteMessageNoVirtualToArray( |
| 3499 3, this->nested_type(i), false, target); | 3423 3, this->nested_type(i), target); |
| 3500 } | 3424 } |
| 3501 | 3425 |
| 3502 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; | 3426 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; |
| 3503 for (unsigned int i = 0, n = this->enum_type_size(); i < n; i++) { | 3427 for (unsigned int i = 0, n = this->enum_type_size(); i < n; i++) { |
| 3504 target = ::google::protobuf::internal::WireFormatLite:: | 3428 target = ::google::protobuf::internal::WireFormatLite:: |
| 3505 InternalWriteMessageNoVirtualToArray( | 3429 WriteMessageNoVirtualToArray( |
| 3506 4, this->enum_type(i), false, target); | 3430 4, this->enum_type(i), target); |
| 3507 } | 3431 } |
| 3508 | 3432 |
| 3509 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range =
5; | 3433 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range =
5; |
| 3510 for (unsigned int i = 0, n = this->extension_range_size(); i < n; i++) { | 3434 for (unsigned int i = 0, n = this->extension_range_size(); i < n; i++) { |
| 3511 target = ::google::protobuf::internal::WireFormatLite:: | 3435 target = ::google::protobuf::internal::WireFormatLite:: |
| 3512 InternalWriteMessageNoVirtualToArray( | 3436 WriteMessageNoVirtualToArray( |
| 3513 5, this->extension_range(i), false, target); | 3437 5, this->extension_range(i), target); |
| 3514 } | 3438 } |
| 3515 | 3439 |
| 3516 // repeated .google.protobuf.FieldDescriptorProto extension = 6; | 3440 // repeated .google.protobuf.FieldDescriptorProto extension = 6; |
| 3517 for (unsigned int i = 0, n = this->extension_size(); i < n; i++) { | 3441 for (unsigned int i = 0, n = this->extension_size(); i < n; i++) { |
| 3518 target = ::google::protobuf::internal::WireFormatLite:: | 3442 target = ::google::protobuf::internal::WireFormatLite:: |
| 3519 InternalWriteMessageNoVirtualToArray( | 3443 WriteMessageNoVirtualToArray( |
| 3520 6, this->extension(i), false, target); | 3444 6, this->extension(i), target); |
| 3521 } | 3445 } |
| 3522 | 3446 |
| 3523 // optional .google.protobuf.MessageOptions options = 7; | 3447 // optional .google.protobuf.MessageOptions options = 7; |
| 3524 if (has_options()) { | 3448 if (has_options()) { |
| 3525 target = ::google::protobuf::internal::WireFormatLite:: | 3449 target = ::google::protobuf::internal::WireFormatLite:: |
| 3526 InternalWriteMessageNoVirtualToArray( | 3450 WriteMessageNoVirtualToArray( |
| 3527 7, *this->options_, false, target); | 3451 7, *this->options_, target); |
| 3528 } | 3452 } |
| 3529 | 3453 |
| 3530 // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; | 3454 // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; |
| 3531 for (unsigned int i = 0, n = this->oneof_decl_size(); i < n; i++) { | 3455 for (unsigned int i = 0, n = this->oneof_decl_size(); i < n; i++) { |
| 3532 target = ::google::protobuf::internal::WireFormatLite:: | 3456 target = ::google::protobuf::internal::WireFormatLite:: |
| 3533 InternalWriteMessageNoVirtualToArray( | 3457 WriteMessageNoVirtualToArray( |
| 3534 8, this->oneof_decl(i), false, target); | 3458 8, this->oneof_decl(i), target); |
| 3535 } | 3459 } |
| 3536 | 3460 |
| 3537 // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; | 3461 // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; |
| 3538 for (unsigned int i = 0, n = this->reserved_range_size(); i < n; i++) { | 3462 for (unsigned int i = 0, n = this->reserved_range_size(); i < n; i++) { |
| 3539 target = ::google::protobuf::internal::WireFormatLite:: | 3463 target = ::google::protobuf::internal::WireFormatLite:: |
| 3540 InternalWriteMessageNoVirtualToArray( | 3464 WriteMessageNoVirtualToArray( |
| 3541 9, this->reserved_range(i), false, target); | 3465 9, this->reserved_range(i), target); |
| 3542 } | 3466 } |
| 3543 | 3467 |
| 3544 // repeated string reserved_name = 10; | 3468 // repeated string reserved_name = 10; |
| 3545 for (int i = 0; i < this->reserved_name_size(); i++) { | 3469 for (int i = 0; i < this->reserved_name_size(); i++) { |
| 3546 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 3470 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 3547 this->reserved_name(i).data(), this->reserved_name(i).length(), | 3471 this->reserved_name(i).data(), this->reserved_name(i).length(), |
| 3548 ::google::protobuf::internal::WireFormat::SERIALIZE, | 3472 ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 3549 "google.protobuf.DescriptorProto.reserved_name"); | 3473 "google.protobuf.DescriptorProto.reserved_name"); |
| 3550 target = ::google::protobuf::internal::WireFormatLite:: | 3474 target = ::google::protobuf::internal::WireFormatLite:: |
| 3551 WriteStringToArray(10, this->reserved_name(i), target); | 3475 WriteStringToArray(10, this->reserved_name(i), target); |
| 3552 } | 3476 } |
| 3553 | 3477 |
| 3554 if (_internal_metadata_.have_unknown_fields()) { | 3478 if (_internal_metadata_.have_unknown_fields()) { |
| 3555 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 3479 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
| 3556 unknown_fields(), target); | 3480 unknown_fields(), target); |
| 3557 } | 3481 } |
| 3558 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorP
roto) | 3482 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorP
roto) |
| 3559 return target; | 3483 return target; |
| 3560 } | 3484 } |
| 3561 | 3485 |
| 3562 size_t DescriptorProto::ByteSizeLong() const { | 3486 int DescriptorProto::ByteSize() const { |
| 3563 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DescriptorPr
oto) | 3487 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DescriptorPr
oto) |
| 3564 size_t total_size = 0; | 3488 int total_size = 0; |
| 3565 | 3489 |
| 3566 if (_internal_metadata_.have_unknown_fields()) { | 3490 if (_has_bits_[0 / 32] & 129u) { |
| 3567 total_size += | |
| 3568 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | |
| 3569 unknown_fields()); | |
| 3570 } | |
| 3571 // repeated .google.protobuf.FieldDescriptorProto field = 2; | |
| 3572 { | |
| 3573 unsigned int count = this->field_size(); | |
| 3574 total_size += 1UL * count; | |
| 3575 for (unsigned int i = 0; i < count; i++) { | |
| 3576 total_size += | |
| 3577 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
| 3578 this->field(i)); | |
| 3579 } | |
| 3580 } | |
| 3581 | |
| 3582 // repeated .google.protobuf.FieldDescriptorProto extension = 6; | |
| 3583 { | |
| 3584 unsigned int count = this->extension_size(); | |
| 3585 total_size += 1UL * count; | |
| 3586 for (unsigned int i = 0; i < count; i++) { | |
| 3587 total_size += | |
| 3588 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
| 3589 this->extension(i)); | |
| 3590 } | |
| 3591 } | |
| 3592 | |
| 3593 // repeated .google.protobuf.DescriptorProto nested_type = 3; | |
| 3594 { | |
| 3595 unsigned int count = this->nested_type_size(); | |
| 3596 total_size += 1UL * count; | |
| 3597 for (unsigned int i = 0; i < count; i++) { | |
| 3598 total_size += | |
| 3599 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
| 3600 this->nested_type(i)); | |
| 3601 } | |
| 3602 } | |
| 3603 | |
| 3604 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; | |
| 3605 { | |
| 3606 unsigned int count = this->enum_type_size(); | |
| 3607 total_size += 1UL * count; | |
| 3608 for (unsigned int i = 0; i < count; i++) { | |
| 3609 total_size += | |
| 3610 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
| 3611 this->enum_type(i)); | |
| 3612 } | |
| 3613 } | |
| 3614 | |
| 3615 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range =
5; | |
| 3616 { | |
| 3617 unsigned int count = this->extension_range_size(); | |
| 3618 total_size += 1UL * count; | |
| 3619 for (unsigned int i = 0; i < count; i++) { | |
| 3620 total_size += | |
| 3621 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
| 3622 this->extension_range(i)); | |
| 3623 } | |
| 3624 } | |
| 3625 | |
| 3626 // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; | |
| 3627 { | |
| 3628 unsigned int count = this->oneof_decl_size(); | |
| 3629 total_size += 1UL * count; | |
| 3630 for (unsigned int i = 0; i < count; i++) { | |
| 3631 total_size += | |
| 3632 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
| 3633 this->oneof_decl(i)); | |
| 3634 } | |
| 3635 } | |
| 3636 | |
| 3637 // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; | |
| 3638 { | |
| 3639 unsigned int count = this->reserved_range_size(); | |
| 3640 total_size += 1UL * count; | |
| 3641 for (unsigned int i = 0; i < count; i++) { | |
| 3642 total_size += | |
| 3643 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
| 3644 this->reserved_range(i)); | |
| 3645 } | |
| 3646 } | |
| 3647 | |
| 3648 // repeated string reserved_name = 10; | |
| 3649 total_size += 1 * | |
| 3650 ::google::protobuf::internal::FromIntSize(this->reserved_name_size()); | |
| 3651 for (int i = 0; i < this->reserved_name_size(); i++) { | |
| 3652 total_size += ::google::protobuf::internal::WireFormatLite::StringSize( | |
| 3653 this->reserved_name(i)); | |
| 3654 } | |
| 3655 | |
| 3656 if (_has_bits_[0 / 32] & 3u) { | |
| 3657 // optional string name = 1; | 3491 // optional string name = 1; |
| 3658 if (has_name()) { | 3492 if (has_name()) { |
| 3659 total_size += 1 + | 3493 total_size += 1 + |
| 3660 ::google::protobuf::internal::WireFormatLite::StringSize( | 3494 ::google::protobuf::internal::WireFormatLite::StringSize( |
| 3661 this->name()); | 3495 this->name()); |
| 3662 } | 3496 } |
| 3663 | 3497 |
| 3664 // optional .google.protobuf.MessageOptions options = 7; | 3498 // optional .google.protobuf.MessageOptions options = 7; |
| 3665 if (has_options()) { | 3499 if (has_options()) { |
| 3666 total_size += 1 + | 3500 total_size += 1 + |
| 3667 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | 3501 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 3668 *this->options_); | 3502 *this->options_); |
| 3669 } | 3503 } |
| 3670 | 3504 |
| 3671 } | 3505 } |
| 3672 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | 3506 // repeated .google.protobuf.FieldDescriptorProto field = 2; |
| 3507 total_size += 1 * this->field_size(); |
| 3508 for (int i = 0; i < this->field_size(); i++) { |
| 3509 total_size += |
| 3510 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 3511 this->field(i)); |
| 3512 } |
| 3513 |
| 3514 // repeated .google.protobuf.FieldDescriptorProto extension = 6; |
| 3515 total_size += 1 * this->extension_size(); |
| 3516 for (int i = 0; i < this->extension_size(); i++) { |
| 3517 total_size += |
| 3518 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 3519 this->extension(i)); |
| 3520 } |
| 3521 |
| 3522 // repeated .google.protobuf.DescriptorProto nested_type = 3; |
| 3523 total_size += 1 * this->nested_type_size(); |
| 3524 for (int i = 0; i < this->nested_type_size(); i++) { |
| 3525 total_size += |
| 3526 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 3527 this->nested_type(i)); |
| 3528 } |
| 3529 |
| 3530 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; |
| 3531 total_size += 1 * this->enum_type_size(); |
| 3532 for (int i = 0; i < this->enum_type_size(); i++) { |
| 3533 total_size += |
| 3534 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 3535 this->enum_type(i)); |
| 3536 } |
| 3537 |
| 3538 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range =
5; |
| 3539 total_size += 1 * this->extension_range_size(); |
| 3540 for (int i = 0; i < this->extension_range_size(); i++) { |
| 3541 total_size += |
| 3542 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 3543 this->extension_range(i)); |
| 3544 } |
| 3545 |
| 3546 // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; |
| 3547 total_size += 1 * this->oneof_decl_size(); |
| 3548 for (int i = 0; i < this->oneof_decl_size(); i++) { |
| 3549 total_size += |
| 3550 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 3551 this->oneof_decl(i)); |
| 3552 } |
| 3553 |
| 3554 // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; |
| 3555 total_size += 1 * this->reserved_range_size(); |
| 3556 for (int i = 0; i < this->reserved_range_size(); i++) { |
| 3557 total_size += |
| 3558 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 3559 this->reserved_range(i)); |
| 3560 } |
| 3561 |
| 3562 // repeated string reserved_name = 10; |
| 3563 total_size += 1 * this->reserved_name_size(); |
| 3564 for (int i = 0; i < this->reserved_name_size(); i++) { |
| 3565 total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
| 3566 this->reserved_name(i)); |
| 3567 } |
| 3568 |
| 3569 if (_internal_metadata_.have_unknown_fields()) { |
| 3570 total_size += |
| 3571 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 3572 unknown_fields()); |
| 3573 } |
| 3673 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 3574 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 3674 _cached_size_ = cached_size; | 3575 _cached_size_ = total_size; |
| 3675 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 3576 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 3676 return total_size; | 3577 return total_size; |
| 3677 } | 3578 } |
| 3678 | 3579 |
| 3679 void DescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { | 3580 void DescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
| 3680 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Descrip
torProto) | 3581 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Descrip
torProto) |
| 3681 GOOGLE_DCHECK_NE(&from, this); | 3582 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 3682 const DescriptorProto* source = | 3583 const DescriptorProto* source = |
| 3683 ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto
>( | 3584 ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto
>( |
| 3684 &from); | 3585 &from); |
| 3685 if (source == NULL) { | 3586 if (source == NULL) { |
| 3686 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.D
escriptorProto) | 3587 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.D
escriptorProto) |
| 3687 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 3588 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 3688 } else { | 3589 } else { |
| 3689 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.DescriptorProto) | 3590 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.DescriptorProto) |
| 3690 MergeFrom(*source); | 3591 MergeFrom(*source); |
| 3691 } | 3592 } |
| 3692 } | 3593 } |
| 3693 | 3594 |
| 3694 void DescriptorProto::MergeFrom(const DescriptorProto& from) { | 3595 void DescriptorProto::MergeFrom(const DescriptorProto& from) { |
| 3695 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Desc
riptorProto) | 3596 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Desc
riptorProto) |
| 3696 GOOGLE_DCHECK_NE(&from, this); | 3597 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 3697 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 3698 field_.MergeFrom(from.field_); | 3598 field_.MergeFrom(from.field_); |
| 3699 extension_.MergeFrom(from.extension_); | 3599 extension_.MergeFrom(from.extension_); |
| 3700 nested_type_.MergeFrom(from.nested_type_); | 3600 nested_type_.MergeFrom(from.nested_type_); |
| 3701 enum_type_.MergeFrom(from.enum_type_); | 3601 enum_type_.MergeFrom(from.enum_type_); |
| 3702 extension_range_.MergeFrom(from.extension_range_); | 3602 extension_range_.MergeFrom(from.extension_range_); |
| 3703 oneof_decl_.MergeFrom(from.oneof_decl_); | 3603 oneof_decl_.MergeFrom(from.oneof_decl_); |
| 3704 reserved_range_.MergeFrom(from.reserved_range_); | 3604 reserved_range_.MergeFrom(from.reserved_range_); |
| 3705 reserved_name_.MergeFrom(from.reserved_name_); | 3605 reserved_name_.MergeFrom(from.reserved_name_); |
| 3706 if (from._has_bits_[0 / 32] & 3u) { | 3606 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 3707 if (from.has_name()) { | 3607 if (from.has_name()) { |
| 3708 set_has_name(); | 3608 set_has_name(); |
| 3709 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), from.name_); | 3609 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), from.name_); |
| 3710 } | 3610 } |
| 3711 if (from.has_options()) { | 3611 if (from.has_options()) { |
| 3712 mutable_options()->::google::protobuf::MessageOptions::MergeFrom(from.opti
ons()); | 3612 mutable_options()->::google::protobuf::MessageOptions::MergeFrom(from.opti
ons()); |
| 3713 } | 3613 } |
| 3714 } | 3614 } |
| 3615 if (from._internal_metadata_.have_unknown_fields()) { |
| 3616 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 3617 } |
| 3715 } | 3618 } |
| 3716 | 3619 |
| 3717 void DescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { | 3620 void DescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { |
| 3718 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Descript
orProto) | 3621 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Descript
orProto) |
| 3719 if (&from == this) return; | 3622 if (&from == this) return; |
| 3720 Clear(); | 3623 Clear(); |
| 3721 MergeFrom(from); | 3624 MergeFrom(from); |
| 3722 } | 3625 } |
| 3723 | 3626 |
| 3724 void DescriptorProto::CopyFrom(const DescriptorProto& from) { | 3627 void DescriptorProto::CopyFrom(const DescriptorProto& from) { |
| 3725 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Descr
iptorProto) | 3628 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Descr
iptorProto) |
| 3726 if (&from == this) return; | 3629 if (&from == this) return; |
| 3727 Clear(); | 3630 Clear(); |
| 3728 MergeFrom(from); | 3631 MergeFrom(from); |
| 3729 } | 3632 } |
| 3730 | 3633 |
| 3731 bool DescriptorProto::IsInitialized() const { | 3634 bool DescriptorProto::IsInitialized() const { |
| 3635 |
| 3732 if (!::google::protobuf::internal::AllAreInitialized(this->field())) return fa
lse; | 3636 if (!::google::protobuf::internal::AllAreInitialized(this->field())) return fa
lse; |
| 3733 if (!::google::protobuf::internal::AllAreInitialized(this->extension())) retur
n false; | 3637 if (!::google::protobuf::internal::AllAreInitialized(this->extension())) retur
n false; |
| 3734 if (!::google::protobuf::internal::AllAreInitialized(this->nested_type())) ret
urn false; | 3638 if (!::google::protobuf::internal::AllAreInitialized(this->nested_type())) ret
urn false; |
| 3735 if (!::google::protobuf::internal::AllAreInitialized(this->enum_type())) retur
n false; | 3639 if (!::google::protobuf::internal::AllAreInitialized(this->enum_type())) retur
n false; |
| 3736 if (!::google::protobuf::internal::AllAreInitialized(this->oneof_decl())) retu
rn false; | |
| 3737 if (has_options()) { | 3640 if (has_options()) { |
| 3738 if (!this->options_->IsInitialized()) return false; | 3641 if (!this->options_->IsInitialized()) return false; |
| 3739 } | 3642 } |
| 3740 return true; | 3643 return true; |
| 3741 } | 3644 } |
| 3742 | 3645 |
| 3743 void DescriptorProto::Swap(DescriptorProto* other) { | 3646 void DescriptorProto::Swap(DescriptorProto* other) { |
| 3744 if (other == this) return; | 3647 if (other == this) return; |
| 3745 InternalSwap(other); | 3648 InternalSwap(other); |
| 3746 } | 3649 } |
| 3747 void DescriptorProto::InternalSwap(DescriptorProto* other) { | 3650 void DescriptorProto::InternalSwap(DescriptorProto* other) { |
| 3651 name_.Swap(&other->name_); |
| 3748 field_.UnsafeArenaSwap(&other->field_); | 3652 field_.UnsafeArenaSwap(&other->field_); |
| 3749 extension_.UnsafeArenaSwap(&other->extension_); | 3653 extension_.UnsafeArenaSwap(&other->extension_); |
| 3750 nested_type_.UnsafeArenaSwap(&other->nested_type_); | 3654 nested_type_.UnsafeArenaSwap(&other->nested_type_); |
| 3751 enum_type_.UnsafeArenaSwap(&other->enum_type_); | 3655 enum_type_.UnsafeArenaSwap(&other->enum_type_); |
| 3752 extension_range_.UnsafeArenaSwap(&other->extension_range_); | 3656 extension_range_.UnsafeArenaSwap(&other->extension_range_); |
| 3753 oneof_decl_.UnsafeArenaSwap(&other->oneof_decl_); | 3657 oneof_decl_.UnsafeArenaSwap(&other->oneof_decl_); |
| 3658 std::swap(options_, other->options_); |
| 3754 reserved_range_.UnsafeArenaSwap(&other->reserved_range_); | 3659 reserved_range_.UnsafeArenaSwap(&other->reserved_range_); |
| 3755 reserved_name_.UnsafeArenaSwap(&other->reserved_name_); | 3660 reserved_name_.UnsafeArenaSwap(&other->reserved_name_); |
| 3756 name_.Swap(&other->name_); | |
| 3757 std::swap(options_, other->options_); | |
| 3758 std::swap(_has_bits_[0], other->_has_bits_[0]); | 3661 std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 3759 _internal_metadata_.Swap(&other->_internal_metadata_); | 3662 _internal_metadata_.Swap(&other->_internal_metadata_); |
| 3760 std::swap(_cached_size_, other->_cached_size_); | 3663 std::swap(_cached_size_, other->_cached_size_); |
| 3761 } | 3664 } |
| 3762 | 3665 |
| 3763 ::google::protobuf::Metadata DescriptorProto::GetMetadata() const { | 3666 ::google::protobuf::Metadata DescriptorProto::GetMetadata() const { |
| 3764 protobuf_AssignDescriptorsOnce(); | 3667 protobuf_AssignDescriptorsOnce(); |
| 3765 return file_level_metadata[4]; | 3668 ::google::protobuf::Metadata metadata; |
| 3669 metadata.descriptor = DescriptorProto_descriptor_; |
| 3670 metadata.reflection = DescriptorProto_reflection_; |
| 3671 return metadata; |
| 3766 } | 3672 } |
| 3767 | 3673 |
| 3768 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 3674 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 3675 // DescriptorProto_ExtensionRange |
| 3676 |
| 3677 // optional int32 start = 1; |
| 3678 bool DescriptorProto_ExtensionRange::has_start() const { |
| 3679 return (_has_bits_[0] & 0x00000001u) != 0; |
| 3680 } |
| 3681 void DescriptorProto_ExtensionRange::set_has_start() { |
| 3682 _has_bits_[0] |= 0x00000001u; |
| 3683 } |
| 3684 void DescriptorProto_ExtensionRange::clear_has_start() { |
| 3685 _has_bits_[0] &= ~0x00000001u; |
| 3686 } |
| 3687 void DescriptorProto_ExtensionRange::clear_start() { |
| 3688 start_ = 0; |
| 3689 clear_has_start(); |
| 3690 } |
| 3691 ::google::protobuf::int32 DescriptorProto_ExtensionRange::start() const { |
| 3692 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.Extensio
nRange.start) |
| 3693 return start_; |
| 3694 } |
| 3695 void DescriptorProto_ExtensionRange::set_start(::google::protobuf::int32 value)
{ |
| 3696 set_has_start(); |
| 3697 start_ = value; |
| 3698 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.Extensio
nRange.start) |
| 3699 } |
| 3700 |
| 3701 // optional int32 end = 2; |
| 3702 bool DescriptorProto_ExtensionRange::has_end() const { |
| 3703 return (_has_bits_[0] & 0x00000002u) != 0; |
| 3704 } |
| 3705 void DescriptorProto_ExtensionRange::set_has_end() { |
| 3706 _has_bits_[0] |= 0x00000002u; |
| 3707 } |
| 3708 void DescriptorProto_ExtensionRange::clear_has_end() { |
| 3709 _has_bits_[0] &= ~0x00000002u; |
| 3710 } |
| 3711 void DescriptorProto_ExtensionRange::clear_end() { |
| 3712 end_ = 0; |
| 3713 clear_has_end(); |
| 3714 } |
| 3715 ::google::protobuf::int32 DescriptorProto_ExtensionRange::end() const { |
| 3716 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.Extensio
nRange.end) |
| 3717 return end_; |
| 3718 } |
| 3719 void DescriptorProto_ExtensionRange::set_end(::google::protobuf::int32 value) { |
| 3720 set_has_end(); |
| 3721 end_ = value; |
| 3722 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.Extensio
nRange.end) |
| 3723 } |
| 3724 |
| 3725 // ------------------------------------------------------------------- |
| 3726 |
| 3727 // DescriptorProto_ReservedRange |
| 3728 |
| 3729 // optional int32 start = 1; |
| 3730 bool DescriptorProto_ReservedRange::has_start() const { |
| 3731 return (_has_bits_[0] & 0x00000001u) != 0; |
| 3732 } |
| 3733 void DescriptorProto_ReservedRange::set_has_start() { |
| 3734 _has_bits_[0] |= 0x00000001u; |
| 3735 } |
| 3736 void DescriptorProto_ReservedRange::clear_has_start() { |
| 3737 _has_bits_[0] &= ~0x00000001u; |
| 3738 } |
| 3739 void DescriptorProto_ReservedRange::clear_start() { |
| 3740 start_ = 0; |
| 3741 clear_has_start(); |
| 3742 } |
| 3743 ::google::protobuf::int32 DescriptorProto_ReservedRange::start() const { |
| 3744 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.Reserved
Range.start) |
| 3745 return start_; |
| 3746 } |
| 3747 void DescriptorProto_ReservedRange::set_start(::google::protobuf::int32 value)
{ |
| 3748 set_has_start(); |
| 3749 start_ = value; |
| 3750 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.Reserved
Range.start) |
| 3751 } |
| 3752 |
| 3753 // optional int32 end = 2; |
| 3754 bool DescriptorProto_ReservedRange::has_end() const { |
| 3755 return (_has_bits_[0] & 0x00000002u) != 0; |
| 3756 } |
| 3757 void DescriptorProto_ReservedRange::set_has_end() { |
| 3758 _has_bits_[0] |= 0x00000002u; |
| 3759 } |
| 3760 void DescriptorProto_ReservedRange::clear_has_end() { |
| 3761 _has_bits_[0] &= ~0x00000002u; |
| 3762 } |
| 3763 void DescriptorProto_ReservedRange::clear_end() { |
| 3764 end_ = 0; |
| 3765 clear_has_end(); |
| 3766 } |
| 3767 ::google::protobuf::int32 DescriptorProto_ReservedRange::end() const { |
| 3768 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.Reserved
Range.end) |
| 3769 return end_; |
| 3770 } |
| 3771 void DescriptorProto_ReservedRange::set_end(::google::protobuf::int32 value) { |
| 3772 set_has_end(); |
| 3773 end_ = value; |
| 3774 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.Reserved
Range.end) |
| 3775 } |
| 3776 |
| 3777 // ------------------------------------------------------------------- |
| 3778 |
| 3769 // DescriptorProto | 3779 // DescriptorProto |
| 3770 | 3780 |
| 3771 // optional string name = 1; | 3781 // optional string name = 1; |
| 3772 bool DescriptorProto::has_name() const { | 3782 bool DescriptorProto::has_name() const { |
| 3773 return (_has_bits_[0] & 0x00000001u) != 0; | 3783 return (_has_bits_[0] & 0x00000001u) != 0; |
| 3774 } | 3784 } |
| 3775 void DescriptorProto::set_has_name() { | 3785 void DescriptorProto::set_has_name() { |
| 3776 _has_bits_[0] |= 0x00000001u; | 3786 _has_bits_[0] |= 0x00000001u; |
| 3777 } | 3787 } |
| 3778 void DescriptorProto::clear_has_name() { | 3788 void DescriptorProto::clear_has_name() { |
| 3779 _has_bits_[0] &= ~0x00000001u; | 3789 _has_bits_[0] &= ~0x00000001u; |
| 3780 } | 3790 } |
| 3781 void DescriptorProto::clear_name() { | 3791 void DescriptorProto::clear_name() { |
| 3782 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); | 3792 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); |
| 3783 clear_has_name(); | 3793 clear_has_name(); |
| 3784 } | 3794 } |
| 3785 const ::std::string& DescriptorProto::name() const { | 3795 const ::std::string& DescriptorProto::name() const { |
| 3786 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.name) | 3796 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.name) |
| 3787 return name_.GetNoArena(); | 3797 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited()); |
| 3788 } | 3798 } |
| 3789 void DescriptorProto::set_name(const ::std::string& value) { | 3799 void DescriptorProto::set_name(const ::std::string& value) { |
| 3790 set_has_name(); | 3800 set_has_name(); |
| 3791 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); | 3801 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); |
| 3792 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.name) | 3802 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.name) |
| 3793 } | 3803 } |
| 3794 void DescriptorProto::set_name(const char* value) { | 3804 void DescriptorProto::set_name(const char* value) { |
| 3795 set_has_name(); | 3805 set_has_name(); |
| 3796 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); | 3806 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); |
| 3797 // @@protoc_insertion_point(field_set_char:google.protobuf.DescriptorProto.nam
e) | 3807 // @@protoc_insertion_point(field_set_char:google.protobuf.DescriptorProto.nam
e) |
| 3798 } | 3808 } |
| 3799 void DescriptorProto::set_name(const char* value, size_t size) { | 3809 void DescriptorProto::set_name(const char* value, size_t size) { |
| 3800 set_has_name(); | 3810 set_has_name(); |
| 3801 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), | 3811 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 3802 ::std::string(reinterpret_cast<const char*>(value), size)); | 3812 ::std::string(reinterpret_cast<const char*>(value), size)); |
| 3803 // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto.
name) | 3813 // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto.
name) |
| 3804 } | 3814 } |
| 3805 ::std::string* DescriptorProto::mutable_name() { | 3815 ::std::string* DescriptorProto::mutable_name() { |
| 3806 set_has_name(); | 3816 set_has_name(); |
| 3807 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.name
) | 3817 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.name
) |
| 3808 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 3818 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
| 3809 } | 3819 } |
| 3810 ::std::string* DescriptorProto::release_name() { | 3820 ::std::string* DescriptorProto::release_name() { |
| 3811 // @@protoc_insertion_point(field_release:google.protobuf.DescriptorProto.name
) | 3821 // @@protoc_insertion_point(field_release:google.protobuf.DescriptorProto.name
) |
| 3812 clear_has_name(); | 3822 clear_has_name(); |
| 3813 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 3823 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
| 3814 } | 3824 } |
| 3815 void DescriptorProto::set_allocated_name(::std::string* name) { | 3825 void DescriptorProto::set_allocated_name(::std::string* name) { |
| 3816 if (name != NULL) { | 3826 if (name != NULL) { |
| 3817 set_has_name(); | 3827 set_has_name(); |
| 3818 } else { | 3828 } else { |
| 3819 clear_has_name(); | 3829 clear_has_name(); |
| 3820 } | 3830 } |
| 3821 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), name); | 3831 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), name); |
| 3822 // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProt
o.name) | 3832 // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProt
o.name) |
| 3823 } | 3833 } |
| 3824 | 3834 |
| 3825 // repeated .google.protobuf.FieldDescriptorProto field = 2; | 3835 // repeated .google.protobuf.FieldDescriptorProto field = 2; |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3997 return &oneof_decl_; | 4007 return &oneof_decl_; |
| 3998 } | 4008 } |
| 3999 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorP
roto >& | 4009 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorP
roto >& |
| 4000 DescriptorProto::oneof_decl() const { | 4010 DescriptorProto::oneof_decl() const { |
| 4001 // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.oneof_d
ecl) | 4011 // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.oneof_d
ecl) |
| 4002 return oneof_decl_; | 4012 return oneof_decl_; |
| 4003 } | 4013 } |
| 4004 | 4014 |
| 4005 // optional .google.protobuf.MessageOptions options = 7; | 4015 // optional .google.protobuf.MessageOptions options = 7; |
| 4006 bool DescriptorProto::has_options() const { | 4016 bool DescriptorProto::has_options() const { |
| 4007 return (_has_bits_[0] & 0x00000002u) != 0; | 4017 return (_has_bits_[0] & 0x00000080u) != 0; |
| 4008 } | 4018 } |
| 4009 void DescriptorProto::set_has_options() { | 4019 void DescriptorProto::set_has_options() { |
| 4010 _has_bits_[0] |= 0x00000002u; | 4020 _has_bits_[0] |= 0x00000080u; |
| 4011 } | 4021 } |
| 4012 void DescriptorProto::clear_has_options() { | 4022 void DescriptorProto::clear_has_options() { |
| 4013 _has_bits_[0] &= ~0x00000002u; | 4023 _has_bits_[0] &= ~0x00000080u; |
| 4014 } | 4024 } |
| 4015 void DescriptorProto::clear_options() { | 4025 void DescriptorProto::clear_options() { |
| 4016 if (options_ != NULL) options_->::google::protobuf::MessageOptions::Clear(); | 4026 if (options_ != NULL) options_->::google::protobuf::MessageOptions::Clear(); |
| 4017 clear_has_options(); | 4027 clear_has_options(); |
| 4018 } | 4028 } |
| 4019 const ::google::protobuf::MessageOptions& DescriptorProto::options() const { | 4029 const ::google::protobuf::MessageOptions& DescriptorProto::options() const { |
| 4020 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.options) | 4030 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.options) |
| 4021 return options_ != NULL ? *options_ | 4031 return options_ != NULL ? *options_ : *default_instance_->options_; |
| 4022 : *::google::protobuf::MessageOptions::internal_default
_instance(); | |
| 4023 } | 4032 } |
| 4024 ::google::protobuf::MessageOptions* DescriptorProto::mutable_options() { | 4033 ::google::protobuf::MessageOptions* DescriptorProto::mutable_options() { |
| 4025 set_has_options(); | 4034 set_has_options(); |
| 4026 if (options_ == NULL) { | 4035 if (options_ == NULL) { |
| 4027 options_ = new ::google::protobuf::MessageOptions; | 4036 options_ = new ::google::protobuf::MessageOptions; |
| 4028 } | 4037 } |
| 4029 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.opti
ons) | 4038 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.opti
ons) |
| 4030 return options_; | 4039 return options_; |
| 4031 } | 4040 } |
| 4032 ::google::protobuf::MessageOptions* DescriptorProto::release_options() { | 4041 ::google::protobuf::MessageOptions* DescriptorProto::release_options() { |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4077 return reserved_range_; | 4086 return reserved_range_; |
| 4078 } | 4087 } |
| 4079 | 4088 |
| 4080 // repeated string reserved_name = 10; | 4089 // repeated string reserved_name = 10; |
| 4081 int DescriptorProto::reserved_name_size() const { | 4090 int DescriptorProto::reserved_name_size() const { |
| 4082 return reserved_name_.size(); | 4091 return reserved_name_.size(); |
| 4083 } | 4092 } |
| 4084 void DescriptorProto::clear_reserved_name() { | 4093 void DescriptorProto::clear_reserved_name() { |
| 4085 reserved_name_.Clear(); | 4094 reserved_name_.Clear(); |
| 4086 } | 4095 } |
| 4087 const ::std::string& DescriptorProto::reserved_name(int index) const { | 4096 const ::std::string& DescriptorProto::reserved_name(int index) const { |
| 4088 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.reserved
_name) | 4097 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.reserved
_name) |
| 4089 return reserved_name_.Get(index); | 4098 return reserved_name_.Get(index); |
| 4090 } | 4099 } |
| 4091 ::std::string* DescriptorProto::mutable_reserved_name(int index) { | 4100 ::std::string* DescriptorProto::mutable_reserved_name(int index) { |
| 4092 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.rese
rved_name) | 4101 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.rese
rved_name) |
| 4093 return reserved_name_.Mutable(index); | 4102 return reserved_name_.Mutable(index); |
| 4094 } | 4103 } |
| 4095 void DescriptorProto::set_reserved_name(int index, const ::std::string& value) { | 4104 void DescriptorProto::set_reserved_name(int index, const ::std::string& value)
{ |
| 4096 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.reserved
_name) | 4105 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.reserved
_name) |
| 4097 reserved_name_.Mutable(index)->assign(value); | 4106 reserved_name_.Mutable(index)->assign(value); |
| 4098 } | 4107 } |
| 4099 void DescriptorProto::set_reserved_name(int index, const char* value) { | 4108 void DescriptorProto::set_reserved_name(int index, const char* value) { |
| 4100 reserved_name_.Mutable(index)->assign(value); | 4109 reserved_name_.Mutable(index)->assign(value); |
| 4101 // @@protoc_insertion_point(field_set_char:google.protobuf.DescriptorProto.res
erved_name) | 4110 // @@protoc_insertion_point(field_set_char:google.protobuf.DescriptorProto.res
erved_name) |
| 4102 } | 4111 } |
| 4103 void DescriptorProto::set_reserved_name(int index, const char* value, size_t siz
e) { | 4112 void DescriptorProto::set_reserved_name(int index, const char* value, size_t si
ze) { |
| 4104 reserved_name_.Mutable(index)->assign( | 4113 reserved_name_.Mutable(index)->assign( |
| 4105 reinterpret_cast<const char*>(value), size); | 4114 reinterpret_cast<const char*>(value), size); |
| 4106 // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto.
reserved_name) | 4115 // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto.
reserved_name) |
| 4107 } | 4116 } |
| 4108 ::std::string* DescriptorProto::add_reserved_name() { | 4117 ::std::string* DescriptorProto::add_reserved_name() { |
| 4109 // @@protoc_insertion_point(field_add_mutable:google.protobuf.DescriptorProto.
reserved_name) | 4118 // @@protoc_insertion_point(field_add_mutable:google.protobuf.DescriptorProto.
reserved_name) |
| 4110 return reserved_name_.Add(); | 4119 return reserved_name_.Add(); |
| 4111 } | 4120 } |
| 4112 void DescriptorProto::add_reserved_name(const ::std::string& value) { | 4121 void DescriptorProto::add_reserved_name(const ::std::string& value) { |
| 4113 reserved_name_.Add()->assign(value); | 4122 reserved_name_.Add()->assign(value); |
| 4114 // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved
_name) | 4123 // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved
_name) |
| 4115 } | 4124 } |
| 4116 void DescriptorProto::add_reserved_name(const char* value) { | 4125 void DescriptorProto::add_reserved_name(const char* value) { |
| 4117 reserved_name_.Add()->assign(value); | 4126 reserved_name_.Add()->assign(value); |
| 4118 // @@protoc_insertion_point(field_add_char:google.protobuf.DescriptorProto.res
erved_name) | 4127 // @@protoc_insertion_point(field_add_char:google.protobuf.DescriptorProto.res
erved_name) |
| 4119 } | 4128 } |
| 4120 void DescriptorProto::add_reserved_name(const char* value, size_t size) { | 4129 void DescriptorProto::add_reserved_name(const char* value, size_t size) { |
| 4121 reserved_name_.Add()->assign(reinterpret_cast<const char*>(value), size); | 4130 reserved_name_.Add()->assign(reinterpret_cast<const char*>(value), size); |
| 4122 // @@protoc_insertion_point(field_add_pointer:google.protobuf.DescriptorProto.
reserved_name) | 4131 // @@protoc_insertion_point(field_add_pointer:google.protobuf.DescriptorProto.
reserved_name) |
| 4123 } | 4132 } |
| 4124 const ::google::protobuf::RepeatedPtrField< ::std::string>& | 4133 const ::google::protobuf::RepeatedPtrField< ::std::string>& |
| 4125 DescriptorProto::reserved_name() const { | 4134 DescriptorProto::reserved_name() const { |
| 4126 // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.reserve
d_name) | 4135 // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.reserve
d_name) |
| 4127 return reserved_name_; | 4136 return reserved_name_; |
| 4128 } | 4137 } |
| 4129 ::google::protobuf::RepeatedPtrField< ::std::string>* | 4138 ::google::protobuf::RepeatedPtrField< ::std::string>* |
| 4130 DescriptorProto::mutable_reserved_name() { | 4139 DescriptorProto::mutable_reserved_name() { |
| 4131 // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto
.reserved_name) | 4140 // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto
.reserved_name) |
| 4132 return &reserved_name_; | 4141 return &reserved_name_; |
| 4133 } | 4142 } |
| 4134 | 4143 |
| 4135 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 4144 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 4136 | 4145 |
| 4137 // =================================================================== | 4146 // =================================================================== |
| 4138 | 4147 |
| 4148 const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Type_descriptor()
{ |
| 4149 protobuf_AssignDescriptorsOnce(); |
| 4150 return FieldDescriptorProto_Type_descriptor_; |
| 4151 } |
| 4152 bool FieldDescriptorProto_Type_IsValid(int value) { |
| 4153 switch(value) { |
| 4154 case 1: |
| 4155 case 2: |
| 4156 case 3: |
| 4157 case 4: |
| 4158 case 5: |
| 4159 case 6: |
| 4160 case 7: |
| 4161 case 8: |
| 4162 case 9: |
| 4163 case 10: |
| 4164 case 11: |
| 4165 case 12: |
| 4166 case 13: |
| 4167 case 14: |
| 4168 case 15: |
| 4169 case 16: |
| 4170 case 17: |
| 4171 case 18: |
| 4172 return true; |
| 4173 default: |
| 4174 return false; |
| 4175 } |
| 4176 } |
| 4177 |
| 4178 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4179 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_DOUBLE; |
| 4180 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FLOAT; |
| 4181 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_INT64; |
| 4182 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_UINT64; |
| 4183 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_INT32; |
| 4184 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FIXED64; |
| 4185 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FIXED32; |
| 4186 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_BOOL; |
| 4187 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_STRING; |
| 4188 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_GROUP; |
| 4189 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_MESSAGE; |
| 4190 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_BYTES; |
| 4191 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_UINT32; |
| 4192 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_ENUM; |
| 4193 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SFIXED32; |
| 4194 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SFIXED64; |
| 4195 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SINT32; |
| 4196 const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SINT64; |
| 4197 const FieldDescriptorProto_Type FieldDescriptorProto::Type_MIN; |
| 4198 const FieldDescriptorProto_Type FieldDescriptorProto::Type_MAX; |
| 4199 const int FieldDescriptorProto::Type_ARRAYSIZE; |
| 4200 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4201 const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Label_descriptor(
) { |
| 4202 protobuf_AssignDescriptorsOnce(); |
| 4203 return FieldDescriptorProto_Label_descriptor_; |
| 4204 } |
| 4205 bool FieldDescriptorProto_Label_IsValid(int value) { |
| 4206 switch(value) { |
| 4207 case 1: |
| 4208 case 2: |
| 4209 case 3: |
| 4210 return true; |
| 4211 default: |
| 4212 return false; |
| 4213 } |
| 4214 } |
| 4215 |
| 4216 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4217 const FieldDescriptorProto_Label FieldDescriptorProto::LABEL_OPTIONAL; |
| 4218 const FieldDescriptorProto_Label FieldDescriptorProto::LABEL_REQUIRED; |
| 4219 const FieldDescriptorProto_Label FieldDescriptorProto::LABEL_REPEATED; |
| 4220 const FieldDescriptorProto_Label FieldDescriptorProto::Label_MIN; |
| 4221 const FieldDescriptorProto_Label FieldDescriptorProto::Label_MAX; |
| 4222 const int FieldDescriptorProto::Label_ARRAYSIZE; |
| 4223 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4139 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 4224 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4140 const int FieldDescriptorProto::kNameFieldNumber; | 4225 const int FieldDescriptorProto::kNameFieldNumber; |
| 4141 const int FieldDescriptorProto::kNumberFieldNumber; | 4226 const int FieldDescriptorProto::kNumberFieldNumber; |
| 4142 const int FieldDescriptorProto::kLabelFieldNumber; | 4227 const int FieldDescriptorProto::kLabelFieldNumber; |
| 4143 const int FieldDescriptorProto::kTypeFieldNumber; | 4228 const int FieldDescriptorProto::kTypeFieldNumber; |
| 4144 const int FieldDescriptorProto::kTypeNameFieldNumber; | 4229 const int FieldDescriptorProto::kTypeNameFieldNumber; |
| 4145 const int FieldDescriptorProto::kExtendeeFieldNumber; | 4230 const int FieldDescriptorProto::kExtendeeFieldNumber; |
| 4146 const int FieldDescriptorProto::kDefaultValueFieldNumber; | 4231 const int FieldDescriptorProto::kDefaultValueFieldNumber; |
| 4147 const int FieldDescriptorProto::kOneofIndexFieldNumber; | 4232 const int FieldDescriptorProto::kOneofIndexFieldNumber; |
| 4148 const int FieldDescriptorProto::kJsonNameFieldNumber; | 4233 const int FieldDescriptorProto::kJsonNameFieldNumber; |
| 4149 const int FieldDescriptorProto::kOptionsFieldNumber; | 4234 const int FieldDescriptorProto::kOptionsFieldNumber; |
| 4150 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 4235 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4151 | 4236 |
| 4152 FieldDescriptorProto::FieldDescriptorProto() | 4237 FieldDescriptorProto::FieldDescriptorProto() |
| 4153 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 4238 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 4154 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
| 4155 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
| 4156 } | |
| 4157 SharedCtor(); | 4239 SharedCtor(); |
| 4158 // @@protoc_insertion_point(constructor:google.protobuf.FieldDescriptorProto) | 4240 // @@protoc_insertion_point(constructor:google.protobuf.FieldDescriptorProto) |
| 4159 } | 4241 } |
| 4242 |
| 4243 void FieldDescriptorProto::InitAsDefaultInstance() { |
| 4244 options_ = const_cast< ::google::protobuf::FieldOptions*>(&::google::protobuf:
:FieldOptions::default_instance()); |
| 4245 } |
| 4246 |
| 4160 FieldDescriptorProto::FieldDescriptorProto(const FieldDescriptorProto& from) | 4247 FieldDescriptorProto::FieldDescriptorProto(const FieldDescriptorProto& from) |
| 4161 : ::google::protobuf::Message(), | 4248 : ::google::protobuf::Message(), |
| 4162 _internal_metadata_(NULL), | 4249 _internal_metadata_(NULL) { |
| 4163 _has_bits_(from._has_bits_), | 4250 SharedCtor(); |
| 4164 _cached_size_(0) { | 4251 MergeFrom(from); |
| 4165 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 4166 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); | |
| 4167 if (from.has_name()) { | |
| 4168 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), from.name_); | |
| 4169 } | |
| 4170 type_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | |
| 4171 if (from.has_type_name()) { | |
| 4172 type_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAl
readyInited(), from.type_name_); | |
| 4173 } | |
| 4174 extendee_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlread
yInited()); | |
| 4175 if (from.has_extendee()) { | |
| 4176 extendee_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited(), from.extendee_); | |
| 4177 } | |
| 4178 default_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringA
lreadyInited()); | |
| 4179 if (from.has_default_value()) { | |
| 4180 default_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited(), from.default_value_); | |
| 4181 } | |
| 4182 json_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | |
| 4183 if (from.has_json_name()) { | |
| 4184 json_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAl
readyInited(), from.json_name_); | |
| 4185 } | |
| 4186 if (from.has_options()) { | |
| 4187 options_ = new ::google::protobuf::FieldOptions(*from.options_); | |
| 4188 } else { | |
| 4189 options_ = NULL; | |
| 4190 } | |
| 4191 ::memcpy(&number_, &from.number_, | |
| 4192 reinterpret_cast<char*>(&type_) - | |
| 4193 reinterpret_cast<char*>(&number_) + sizeof(type_)); | |
| 4194 // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldDescriptorPr
oto) | 4252 // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldDescriptorPr
oto) |
| 4195 } | 4253 } |
| 4196 | 4254 |
| 4197 void FieldDescriptorProto::SharedCtor() { | 4255 void FieldDescriptorProto::SharedCtor() { |
| 4256 ::google::protobuf::internal::GetEmptyString(); |
| 4198 _cached_size_ = 0; | 4257 _cached_size_ = 0; |
| 4199 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); | 4258 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); |
| 4259 number_ = 0; |
| 4260 label_ = 1; |
| 4261 type_ = 1; |
| 4200 type_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 4262 type_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
| 4201 extendee_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlread
yInited()); | 4263 extendee_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlread
yInited()); |
| 4202 default_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringA
lreadyInited()); | 4264 default_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringA
lreadyInited()); |
| 4265 oneof_index_ = 0; |
| 4203 json_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 4266 json_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
| 4204 ::memset(&options_, 0, reinterpret_cast<char*>(&oneof_index_) - | 4267 options_ = NULL; |
| 4205 reinterpret_cast<char*>(&options_) + sizeof(oneof_index_)); | 4268 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 4206 label_ = 1; | |
| 4207 type_ = 1; | |
| 4208 } | 4269 } |
| 4209 | 4270 |
| 4210 FieldDescriptorProto::~FieldDescriptorProto() { | 4271 FieldDescriptorProto::~FieldDescriptorProto() { |
| 4211 // @@protoc_insertion_point(destructor:google.protobuf.FieldDescriptorProto) | 4272 // @@protoc_insertion_point(destructor:google.protobuf.FieldDescriptorProto) |
| 4212 SharedDtor(); | 4273 SharedDtor(); |
| 4213 } | 4274 } |
| 4214 | 4275 |
| 4215 void FieldDescriptorProto::SharedDtor() { | 4276 void FieldDescriptorProto::SharedDtor() { |
| 4216 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d()); | 4277 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d()); |
| 4217 type_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); | 4278 type_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); |
| 4218 extendee_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI
nited()); | 4279 extendee_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI
nited()); |
| 4219 default_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); | 4280 default_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); |
| 4220 json_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); | 4281 json_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); |
| 4221 if (this != internal_default_instance()) { | 4282 if (this != default_instance_) { |
| 4222 delete options_; | 4283 delete options_; |
| 4223 } | 4284 } |
| 4224 } | 4285 } |
| 4225 | 4286 |
| 4226 void FieldDescriptorProto::SetCachedSize(int size) const { | 4287 void FieldDescriptorProto::SetCachedSize(int size) const { |
| 4227 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 4288 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 4228 _cached_size_ = size; | 4289 _cached_size_ = size; |
| 4229 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 4290 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 4230 } | 4291 } |
| 4231 const ::google::protobuf::Descriptor* FieldDescriptorProto::descriptor() { | 4292 const ::google::protobuf::Descriptor* FieldDescriptorProto::descriptor() { |
| 4232 protobuf_AssignDescriptorsOnce(); | 4293 protobuf_AssignDescriptorsOnce(); |
| 4233 return file_level_metadata[5].descriptor; | 4294 return FieldDescriptorProto_descriptor_; |
| 4234 } | 4295 } |
| 4235 | 4296 |
| 4236 const FieldDescriptorProto& FieldDescriptorProto::default_instance() { | 4297 const FieldDescriptorProto& FieldDescriptorProto::default_instance() { |
| 4237 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 4298 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
| 4238 return *internal_default_instance(); | 4299 return *default_instance_; |
| 4239 } | 4300 } |
| 4240 | 4301 |
| 4302 FieldDescriptorProto* FieldDescriptorProto::default_instance_ = NULL; |
| 4303 |
| 4241 FieldDescriptorProto* FieldDescriptorProto::New(::google::protobuf::Arena* arena
) const { | 4304 FieldDescriptorProto* FieldDescriptorProto::New(::google::protobuf::Arena* arena
) const { |
| 4242 FieldDescriptorProto* n = new FieldDescriptorProto; | 4305 FieldDescriptorProto* n = new FieldDescriptorProto; |
| 4243 if (arena != NULL) { | 4306 if (arena != NULL) { |
| 4244 arena->Own(n); | 4307 arena->Own(n); |
| 4245 } | 4308 } |
| 4246 return n; | 4309 return n; |
| 4247 } | 4310 } |
| 4248 | 4311 |
| 4249 void FieldDescriptorProto::Clear() { | 4312 void FieldDescriptorProto::Clear() { |
| 4250 // @@protoc_insertion_point(message_clear_start:google.protobuf.FieldDescriptorP
roto) | 4313 // @@protoc_insertion_point(message_clear_start:google.protobuf.FieldDescriptorP
roto) |
| 4251 if (_has_bits_[0 / 32] & 63u) { | 4314 if (_has_bits_[0 / 32] & 255u) { |
| 4252 if (has_name()) { | 4315 if (has_name()) { |
| 4253 GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited())); | 4316 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); |
| 4254 (*name_.UnsafeRawStringPointer())->clear(); | |
| 4255 } | 4317 } |
| 4318 number_ = 0; |
| 4319 label_ = 1; |
| 4320 type_ = 1; |
| 4256 if (has_type_name()) { | 4321 if (has_type_name()) { |
| 4257 GOOGLE_DCHECK(!type_name_.IsDefault(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited())); | 4322 type_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); |
| 4258 (*type_name_.UnsafeRawStringPointer())->clear(); | |
| 4259 } | 4323 } |
| 4260 if (has_extendee()) { | 4324 if (has_extendee()) { |
| 4261 GOOGLE_DCHECK(!extendee_.IsDefault(&::google::protobuf::internal::GetEmpty
StringAlreadyInited())); | 4325 extendee_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); |
| 4262 (*extendee_.UnsafeRawStringPointer())->clear(); | |
| 4263 } | 4326 } |
| 4264 if (has_default_value()) { | 4327 if (has_default_value()) { |
| 4265 GOOGLE_DCHECK(!default_value_.IsDefault(&::google::protobuf::internal::Get
EmptyStringAlreadyInited())); | 4328 default_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmpty
StringAlreadyInited()); |
| 4266 (*default_value_.UnsafeRawStringPointer())->clear(); | |
| 4267 } | 4329 } |
| 4330 oneof_index_ = 0; |
| 4331 } |
| 4332 if (_has_bits_[8 / 32] & 768u) { |
| 4268 if (has_json_name()) { | 4333 if (has_json_name()) { |
| 4269 GOOGLE_DCHECK(!json_name_.IsDefault(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited())); | 4334 json_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); |
| 4270 (*json_name_.UnsafeRawStringPointer())->clear(); | |
| 4271 } | 4335 } |
| 4272 if (has_options()) { | 4336 if (has_options()) { |
| 4273 GOOGLE_DCHECK(options_ != NULL); | 4337 if (options_ != NULL) options_->::google::protobuf::FieldOptions::Clear(); |
| 4274 options_->::google::protobuf::FieldOptions::Clear(); | |
| 4275 } | 4338 } |
| 4276 } | 4339 } |
| 4277 if (_has_bits_[0 / 32] & 192u) { | 4340 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 4278 ::memset(&number_, 0, reinterpret_cast<char*>(&oneof_index_) - | 4341 if (_internal_metadata_.have_unknown_fields()) { |
| 4279 reinterpret_cast<char*>(&number_) + sizeof(oneof_index_)); | 4342 mutable_unknown_fields()->Clear(); |
| 4280 } | 4343 } |
| 4281 if (_has_bits_[8 / 32] & 768u) { | |
| 4282 label_ = 1; | |
| 4283 type_ = 1; | |
| 4284 } | |
| 4285 _has_bits_.Clear(); | |
| 4286 _internal_metadata_.Clear(); | |
| 4287 } | 4344 } |
| 4288 | 4345 |
| 4289 bool FieldDescriptorProto::MergePartialFromCodedStream( | 4346 bool FieldDescriptorProto::MergePartialFromCodedStream( |
| 4290 ::google::protobuf::io::CodedInputStream* input) { | 4347 ::google::protobuf::io::CodedInputStream* input) { |
| 4291 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 4348 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 4292 ::google::protobuf::uint32 tag; | 4349 ::google::protobuf::uint32 tag; |
| 4293 // @@protoc_insertion_point(parse_start:google.protobuf.FieldDescriptorProto) | 4350 // @@protoc_insertion_point(parse_start:google.protobuf.FieldDescriptorProto) |
| 4294 for (;;) { | 4351 for (;;) { |
| 4295 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 4352 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
| 4296 tag = p.first; | 4353 tag = p.first; |
| 4297 if (!p.second) goto handle_unusual; | 4354 if (!p.second) goto handle_unusual; |
| 4298 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 4355 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
| 4299 // optional string name = 1; | 4356 // optional string name = 1; |
| 4300 case 1: { | 4357 case 1: { |
| 4301 if (tag == 10u) { | 4358 if (tag == 10) { |
| 4302 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 4359 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 4303 input, this->mutable_name())); | 4360 input, this->mutable_name())); |
| 4304 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 4361 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 4305 this->name().data(), this->name().length(), | 4362 this->name().data(), this->name().length(), |
| 4306 ::google::protobuf::internal::WireFormat::PARSE, | 4363 ::google::protobuf::internal::WireFormat::PARSE, |
| 4307 "google.protobuf.FieldDescriptorProto.name"); | 4364 "google.protobuf.FieldDescriptorProto.name"); |
| 4308 } else { | 4365 } else { |
| 4309 goto handle_unusual; | 4366 goto handle_unusual; |
| 4310 } | 4367 } |
| 4368 if (input->ExpectTag(18)) goto parse_extendee; |
| 4311 break; | 4369 break; |
| 4312 } | 4370 } |
| 4313 | 4371 |
| 4314 // optional string extendee = 2; | 4372 // optional string extendee = 2; |
| 4315 case 2: { | 4373 case 2: { |
| 4316 if (tag == 18u) { | 4374 if (tag == 18) { |
| 4375 parse_extendee: |
| 4317 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 4376 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 4318 input, this->mutable_extendee())); | 4377 input, this->mutable_extendee())); |
| 4319 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 4378 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 4320 this->extendee().data(), this->extendee().length(), | 4379 this->extendee().data(), this->extendee().length(), |
| 4321 ::google::protobuf::internal::WireFormat::PARSE, | 4380 ::google::protobuf::internal::WireFormat::PARSE, |
| 4322 "google.protobuf.FieldDescriptorProto.extendee"); | 4381 "google.protobuf.FieldDescriptorProto.extendee"); |
| 4323 } else { | 4382 } else { |
| 4324 goto handle_unusual; | 4383 goto handle_unusual; |
| 4325 } | 4384 } |
| 4385 if (input->ExpectTag(24)) goto parse_number; |
| 4326 break; | 4386 break; |
| 4327 } | 4387 } |
| 4328 | 4388 |
| 4329 // optional int32 number = 3; | 4389 // optional int32 number = 3; |
| 4330 case 3: { | 4390 case 3: { |
| 4331 if (tag == 24u) { | 4391 if (tag == 24) { |
| 4332 set_has_number(); | 4392 parse_number: |
| 4333 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 4393 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 4334 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 4394 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
| 4335 input, &number_))); | 4395 input, &number_))); |
| 4396 set_has_number(); |
| 4336 } else { | 4397 } else { |
| 4337 goto handle_unusual; | 4398 goto handle_unusual; |
| 4338 } | 4399 } |
| 4400 if (input->ExpectTag(32)) goto parse_label; |
| 4339 break; | 4401 break; |
| 4340 } | 4402 } |
| 4341 | 4403 |
| 4342 // optional .google.protobuf.FieldDescriptorProto.Label label = 4; | 4404 // optional .google.protobuf.FieldDescriptorProto.Label label = 4; |
| 4343 case 4: { | 4405 case 4: { |
| 4344 if (tag == 32u) { | 4406 if (tag == 32) { |
| 4407 parse_label: |
| 4345 int value; | 4408 int value; |
| 4346 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 4409 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 4347 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>
( | 4410 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>
( |
| 4348 input, &value))); | 4411 input, &value))); |
| 4349 if (::google::protobuf::FieldDescriptorProto_Label_IsValid(value)) { | 4412 if (::google::protobuf::FieldDescriptorProto_Label_IsValid(value)) { |
| 4350 set_label(static_cast< ::google::protobuf::FieldDescriptorProto_Labe
l >(value)); | 4413 set_label(static_cast< ::google::protobuf::FieldDescriptorProto_Labe
l >(value)); |
| 4351 } else { | 4414 } else { |
| 4352 mutable_unknown_fields()->AddVarint(4, value); | 4415 mutable_unknown_fields()->AddVarint(4, value); |
| 4353 } | 4416 } |
| 4354 } else { | 4417 } else { |
| 4355 goto handle_unusual; | 4418 goto handle_unusual; |
| 4356 } | 4419 } |
| 4420 if (input->ExpectTag(40)) goto parse_type; |
| 4357 break; | 4421 break; |
| 4358 } | 4422 } |
| 4359 | 4423 |
| 4360 // optional .google.protobuf.FieldDescriptorProto.Type type = 5; | 4424 // optional .google.protobuf.FieldDescriptorProto.Type type = 5; |
| 4361 case 5: { | 4425 case 5: { |
| 4362 if (tag == 40u) { | 4426 if (tag == 40) { |
| 4427 parse_type: |
| 4363 int value; | 4428 int value; |
| 4364 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 4429 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 4365 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>
( | 4430 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>
( |
| 4366 input, &value))); | 4431 input, &value))); |
| 4367 if (::google::protobuf::FieldDescriptorProto_Type_IsValid(value)) { | 4432 if (::google::protobuf::FieldDescriptorProto_Type_IsValid(value)) { |
| 4368 set_type(static_cast< ::google::protobuf::FieldDescriptorProto_Type
>(value)); | 4433 set_type(static_cast< ::google::protobuf::FieldDescriptorProto_Type
>(value)); |
| 4369 } else { | 4434 } else { |
| 4370 mutable_unknown_fields()->AddVarint(5, value); | 4435 mutable_unknown_fields()->AddVarint(5, value); |
| 4371 } | 4436 } |
| 4372 } else { | 4437 } else { |
| 4373 goto handle_unusual; | 4438 goto handle_unusual; |
| 4374 } | 4439 } |
| 4440 if (input->ExpectTag(50)) goto parse_type_name; |
| 4375 break; | 4441 break; |
| 4376 } | 4442 } |
| 4377 | 4443 |
| 4378 // optional string type_name = 6; | 4444 // optional string type_name = 6; |
| 4379 case 6: { | 4445 case 6: { |
| 4380 if (tag == 50u) { | 4446 if (tag == 50) { |
| 4447 parse_type_name: |
| 4381 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 4448 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 4382 input, this->mutable_type_name())); | 4449 input, this->mutable_type_name())); |
| 4383 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 4450 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 4384 this->type_name().data(), this->type_name().length(), | 4451 this->type_name().data(), this->type_name().length(), |
| 4385 ::google::protobuf::internal::WireFormat::PARSE, | 4452 ::google::protobuf::internal::WireFormat::PARSE, |
| 4386 "google.protobuf.FieldDescriptorProto.type_name"); | 4453 "google.protobuf.FieldDescriptorProto.type_name"); |
| 4387 } else { | 4454 } else { |
| 4388 goto handle_unusual; | 4455 goto handle_unusual; |
| 4389 } | 4456 } |
| 4457 if (input->ExpectTag(58)) goto parse_default_value; |
| 4390 break; | 4458 break; |
| 4391 } | 4459 } |
| 4392 | 4460 |
| 4393 // optional string default_value = 7; | 4461 // optional string default_value = 7; |
| 4394 case 7: { | 4462 case 7: { |
| 4395 if (tag == 58u) { | 4463 if (tag == 58) { |
| 4464 parse_default_value: |
| 4396 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 4465 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 4397 input, this->mutable_default_value())); | 4466 input, this->mutable_default_value())); |
| 4398 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 4467 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 4399 this->default_value().data(), this->default_value().length(), | 4468 this->default_value().data(), this->default_value().length(), |
| 4400 ::google::protobuf::internal::WireFormat::PARSE, | 4469 ::google::protobuf::internal::WireFormat::PARSE, |
| 4401 "google.protobuf.FieldDescriptorProto.default_value"); | 4470 "google.protobuf.FieldDescriptorProto.default_value"); |
| 4402 } else { | 4471 } else { |
| 4403 goto handle_unusual; | 4472 goto handle_unusual; |
| 4404 } | 4473 } |
| 4474 if (input->ExpectTag(66)) goto parse_options; |
| 4405 break; | 4475 break; |
| 4406 } | 4476 } |
| 4407 | 4477 |
| 4408 // optional .google.protobuf.FieldOptions options = 8; | 4478 // optional .google.protobuf.FieldOptions options = 8; |
| 4409 case 8: { | 4479 case 8: { |
| 4410 if (tag == 66u) { | 4480 if (tag == 66) { |
| 4481 parse_options: |
| 4411 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 4482 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
| 4412 input, mutable_options())); | 4483 input, mutable_options())); |
| 4413 } else { | 4484 } else { |
| 4414 goto handle_unusual; | 4485 goto handle_unusual; |
| 4415 } | 4486 } |
| 4487 if (input->ExpectTag(72)) goto parse_oneof_index; |
| 4416 break; | 4488 break; |
| 4417 } | 4489 } |
| 4418 | 4490 |
| 4419 // optional int32 oneof_index = 9; | 4491 // optional int32 oneof_index = 9; |
| 4420 case 9: { | 4492 case 9: { |
| 4421 if (tag == 72u) { | 4493 if (tag == 72) { |
| 4422 set_has_oneof_index(); | 4494 parse_oneof_index: |
| 4423 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 4495 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 4424 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 4496 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
| 4425 input, &oneof_index_))); | 4497 input, &oneof_index_))); |
| 4498 set_has_oneof_index(); |
| 4426 } else { | 4499 } else { |
| 4427 goto handle_unusual; | 4500 goto handle_unusual; |
| 4428 } | 4501 } |
| 4502 if (input->ExpectTag(82)) goto parse_json_name; |
| 4429 break; | 4503 break; |
| 4430 } | 4504 } |
| 4431 | 4505 |
| 4432 // optional string json_name = 10; | 4506 // optional string json_name = 10; |
| 4433 case 10: { | 4507 case 10: { |
| 4434 if (tag == 82u) { | 4508 if (tag == 82) { |
| 4509 parse_json_name: |
| 4435 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 4510 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 4436 input, this->mutable_json_name())); | 4511 input, this->mutable_json_name())); |
| 4437 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 4512 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 4438 this->json_name().data(), this->json_name().length(), | 4513 this->json_name().data(), this->json_name().length(), |
| 4439 ::google::protobuf::internal::WireFormat::PARSE, | 4514 ::google::protobuf::internal::WireFormat::PARSE, |
| 4440 "google.protobuf.FieldDescriptorProto.json_name"); | 4515 "google.protobuf.FieldDescriptorProto.json_name"); |
| 4441 } else { | 4516 } else { |
| 4442 goto handle_unusual; | 4517 goto handle_unusual; |
| 4443 } | 4518 } |
| 4519 if (input->ExpectAtEnd()) goto success; |
| 4444 break; | 4520 break; |
| 4445 } | 4521 } |
| 4446 | 4522 |
| 4447 default: { | 4523 default: { |
| 4448 handle_unusual: | 4524 handle_unusual: |
| 4449 if (tag == 0 || | 4525 if (tag == 0 || |
| 4450 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 4526 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 4451 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 4527 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 4452 goto success; | 4528 goto success; |
| 4453 } | 4529 } |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4547 10, this->json_name(), output); | 4623 10, this->json_name(), output); |
| 4548 } | 4624 } |
| 4549 | 4625 |
| 4550 if (_internal_metadata_.have_unknown_fields()) { | 4626 if (_internal_metadata_.have_unknown_fields()) { |
| 4551 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 4627 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 4552 unknown_fields(), output); | 4628 unknown_fields(), output); |
| 4553 } | 4629 } |
| 4554 // @@protoc_insertion_point(serialize_end:google.protobuf.FieldDescriptorProto
) | 4630 // @@protoc_insertion_point(serialize_end:google.protobuf.FieldDescriptorProto
) |
| 4555 } | 4631 } |
| 4556 | 4632 |
| 4557 ::google::protobuf::uint8* FieldDescriptorProto::InternalSerializeWithCachedSize
sToArray( | 4633 ::google::protobuf::uint8* FieldDescriptorProto::SerializeWithCachedSizesToArray
( |
| 4558 bool deterministic, ::google::protobuf::uint8* target) const { | 4634 ::google::protobuf::uint8* target) const { |
| 4559 (void)deterministic; // Unused | |
| 4560 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldDesc
riptorProto) | 4635 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldDesc
riptorProto) |
| 4561 // optional string name = 1; | 4636 // optional string name = 1; |
| 4562 if (has_name()) { | 4637 if (has_name()) { |
| 4563 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 4638 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 4564 this->name().data(), this->name().length(), | 4639 this->name().data(), this->name().length(), |
| 4565 ::google::protobuf::internal::WireFormat::SERIALIZE, | 4640 ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 4566 "google.protobuf.FieldDescriptorProto.name"); | 4641 "google.protobuf.FieldDescriptorProto.name"); |
| 4567 target = | 4642 target = |
| 4568 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 4643 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 4569 1, this->name(), target); | 4644 1, this->name(), target); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4615 ::google::protobuf::internal::WireFormat::SERIALIZE, | 4690 ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 4616 "google.protobuf.FieldDescriptorProto.default_value"); | 4691 "google.protobuf.FieldDescriptorProto.default_value"); |
| 4617 target = | 4692 target = |
| 4618 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 4693 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 4619 7, this->default_value(), target); | 4694 7, this->default_value(), target); |
| 4620 } | 4695 } |
| 4621 | 4696 |
| 4622 // optional .google.protobuf.FieldOptions options = 8; | 4697 // optional .google.protobuf.FieldOptions options = 8; |
| 4623 if (has_options()) { | 4698 if (has_options()) { |
| 4624 target = ::google::protobuf::internal::WireFormatLite:: | 4699 target = ::google::protobuf::internal::WireFormatLite:: |
| 4625 InternalWriteMessageNoVirtualToArray( | 4700 WriteMessageNoVirtualToArray( |
| 4626 8, *this->options_, false, target); | 4701 8, *this->options_, target); |
| 4627 } | 4702 } |
| 4628 | 4703 |
| 4629 // optional int32 oneof_index = 9; | 4704 // optional int32 oneof_index = 9; |
| 4630 if (has_oneof_index()) { | 4705 if (has_oneof_index()) { |
| 4631 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9,
this->oneof_index(), target); | 4706 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9,
this->oneof_index(), target); |
| 4632 } | 4707 } |
| 4633 | 4708 |
| 4634 // optional string json_name = 10; | 4709 // optional string json_name = 10; |
| 4635 if (has_json_name()) { | 4710 if (has_json_name()) { |
| 4636 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 4711 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 4637 this->json_name().data(), this->json_name().length(), | 4712 this->json_name().data(), this->json_name().length(), |
| 4638 ::google::protobuf::internal::WireFormat::SERIALIZE, | 4713 ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 4639 "google.protobuf.FieldDescriptorProto.json_name"); | 4714 "google.protobuf.FieldDescriptorProto.json_name"); |
| 4640 target = | 4715 target = |
| 4641 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 4716 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 4642 10, this->json_name(), target); | 4717 10, this->json_name(), target); |
| 4643 } | 4718 } |
| 4644 | 4719 |
| 4645 if (_internal_metadata_.have_unknown_fields()) { | 4720 if (_internal_metadata_.have_unknown_fields()) { |
| 4646 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 4721 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
| 4647 unknown_fields(), target); | 4722 unknown_fields(), target); |
| 4648 } | 4723 } |
| 4649 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FieldDescri
ptorProto) | 4724 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FieldDescri
ptorProto) |
| 4650 return target; | 4725 return target; |
| 4651 } | 4726 } |
| 4652 | 4727 |
| 4653 size_t FieldDescriptorProto::ByteSizeLong() const { | 4728 int FieldDescriptorProto::ByteSize() const { |
| 4654 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FieldDescrip
torProto) | 4729 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FieldDescrip
torProto) |
| 4655 size_t total_size = 0; | 4730 int total_size = 0; |
| 4656 | 4731 |
| 4657 if (_internal_metadata_.have_unknown_fields()) { | |
| 4658 total_size += | |
| 4659 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | |
| 4660 unknown_fields()); | |
| 4661 } | |
| 4662 if (_has_bits_[0 / 32] & 255u) { | 4732 if (_has_bits_[0 / 32] & 255u) { |
| 4663 // optional string name = 1; | 4733 // optional string name = 1; |
| 4664 if (has_name()) { | 4734 if (has_name()) { |
| 4665 total_size += 1 + | 4735 total_size += 1 + |
| 4666 ::google::protobuf::internal::WireFormatLite::StringSize( | 4736 ::google::protobuf::internal::WireFormatLite::StringSize( |
| 4667 this->name()); | 4737 this->name()); |
| 4668 } | 4738 } |
| 4669 | 4739 |
| 4740 // optional int32 number = 3; |
| 4741 if (has_number()) { |
| 4742 total_size += 1 + |
| 4743 ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 4744 this->number()); |
| 4745 } |
| 4746 |
| 4747 // optional .google.protobuf.FieldDescriptorProto.Label label = 4; |
| 4748 if (has_label()) { |
| 4749 total_size += 1 + |
| 4750 ::google::protobuf::internal::WireFormatLite::EnumSize(this->label()); |
| 4751 } |
| 4752 |
| 4753 // optional .google.protobuf.FieldDescriptorProto.Type type = 5; |
| 4754 if (has_type()) { |
| 4755 total_size += 1 + |
| 4756 ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); |
| 4757 } |
| 4758 |
| 4670 // optional string type_name = 6; | 4759 // optional string type_name = 6; |
| 4671 if (has_type_name()) { | 4760 if (has_type_name()) { |
| 4672 total_size += 1 + | 4761 total_size += 1 + |
| 4673 ::google::protobuf::internal::WireFormatLite::StringSize( | 4762 ::google::protobuf::internal::WireFormatLite::StringSize( |
| 4674 this->type_name()); | 4763 this->type_name()); |
| 4675 } | 4764 } |
| 4676 | 4765 |
| 4677 // optional string extendee = 2; | 4766 // optional string extendee = 2; |
| 4678 if (has_extendee()) { | 4767 if (has_extendee()) { |
| 4679 total_size += 1 + | 4768 total_size += 1 + |
| 4680 ::google::protobuf::internal::WireFormatLite::StringSize( | 4769 ::google::protobuf::internal::WireFormatLite::StringSize( |
| 4681 this->extendee()); | 4770 this->extendee()); |
| 4682 } | 4771 } |
| 4683 | 4772 |
| 4684 // optional string default_value = 7; | 4773 // optional string default_value = 7; |
| 4685 if (has_default_value()) { | 4774 if (has_default_value()) { |
| 4686 total_size += 1 + | 4775 total_size += 1 + |
| 4687 ::google::protobuf::internal::WireFormatLite::StringSize( | 4776 ::google::protobuf::internal::WireFormatLite::StringSize( |
| 4688 this->default_value()); | 4777 this->default_value()); |
| 4689 } | 4778 } |
| 4690 | 4779 |
| 4691 // optional string json_name = 10; | |
| 4692 if (has_json_name()) { | |
| 4693 total_size += 1 + | |
| 4694 ::google::protobuf::internal::WireFormatLite::StringSize( | |
| 4695 this->json_name()); | |
| 4696 } | |
| 4697 | |
| 4698 // optional .google.protobuf.FieldOptions options = 8; | |
| 4699 if (has_options()) { | |
| 4700 total_size += 1 + | |
| 4701 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
| 4702 *this->options_); | |
| 4703 } | |
| 4704 | |
| 4705 // optional int32 number = 3; | |
| 4706 if (has_number()) { | |
| 4707 total_size += 1 + | |
| 4708 ::google::protobuf::internal::WireFormatLite::Int32Size( | |
| 4709 this->number()); | |
| 4710 } | |
| 4711 | |
| 4712 // optional int32 oneof_index = 9; | 4780 // optional int32 oneof_index = 9; |
| 4713 if (has_oneof_index()) { | 4781 if (has_oneof_index()) { |
| 4714 total_size += 1 + | 4782 total_size += 1 + |
| 4715 ::google::protobuf::internal::WireFormatLite::Int32Size( | 4783 ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 4716 this->oneof_index()); | 4784 this->oneof_index()); |
| 4717 } | 4785 } |
| 4718 | 4786 |
| 4719 } | 4787 } |
| 4720 if (_has_bits_[8 / 32] & 768u) { | 4788 if (_has_bits_[8 / 32] & 768u) { |
| 4721 // optional .google.protobuf.FieldDescriptorProto.Label label = 4; | 4789 // optional string json_name = 10; |
| 4722 if (has_label()) { | 4790 if (has_json_name()) { |
| 4723 total_size += 1 + | 4791 total_size += 1 + |
| 4724 ::google::protobuf::internal::WireFormatLite::EnumSize(this->label()); | 4792 ::google::protobuf::internal::WireFormatLite::StringSize( |
| 4793 this->json_name()); |
| 4725 } | 4794 } |
| 4726 | 4795 |
| 4727 // optional .google.protobuf.FieldDescriptorProto.Type type = 5; | 4796 // optional .google.protobuf.FieldOptions options = 8; |
| 4728 if (has_type()) { | 4797 if (has_options()) { |
| 4729 total_size += 1 + | 4798 total_size += 1 + |
| 4730 ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); | 4799 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 4800 *this->options_); |
| 4731 } | 4801 } |
| 4732 | 4802 |
| 4733 } | 4803 } |
| 4734 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | 4804 if (_internal_metadata_.have_unknown_fields()) { |
| 4805 total_size += |
| 4806 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 4807 unknown_fields()); |
| 4808 } |
| 4735 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 4809 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 4736 _cached_size_ = cached_size; | 4810 _cached_size_ = total_size; |
| 4737 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 4811 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 4738 return total_size; | 4812 return total_size; |
| 4739 } | 4813 } |
| 4740 | 4814 |
| 4741 void FieldDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { | 4815 void FieldDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
| 4742 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FieldDe
scriptorProto) | 4816 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FieldDe
scriptorProto) |
| 4743 GOOGLE_DCHECK_NE(&from, this); | 4817 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 4744 const FieldDescriptorProto* source = | 4818 const FieldDescriptorProto* source = |
| 4745 ::google::protobuf::internal::DynamicCastToGenerated<const FieldDescriptor
Proto>( | 4819 ::google::protobuf::internal::DynamicCastToGenerated<const FieldDescriptor
Proto>( |
| 4746 &from); | 4820 &from); |
| 4747 if (source == NULL) { | 4821 if (source == NULL) { |
| 4748 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.F
ieldDescriptorProto) | 4822 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.F
ieldDescriptorProto) |
| 4749 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 4823 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 4750 } else { | 4824 } else { |
| 4751 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.FieldDescriptorProto) | 4825 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.FieldDescriptorProto) |
| 4752 MergeFrom(*source); | 4826 MergeFrom(*source); |
| 4753 } | 4827 } |
| 4754 } | 4828 } |
| 4755 | 4829 |
| 4756 void FieldDescriptorProto::MergeFrom(const FieldDescriptorProto& from) { | 4830 void FieldDescriptorProto::MergeFrom(const FieldDescriptorProto& from) { |
| 4757 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Fiel
dDescriptorProto) | 4831 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Fiel
dDescriptorProto) |
| 4758 GOOGLE_DCHECK_NE(&from, this); | 4832 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 4759 _internal_metadata_.MergeFrom(from._internal_metadata_); | 4833 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 4760 if (from._has_bits_[0 / 32] & 255u) { | |
| 4761 if (from.has_name()) { | 4834 if (from.has_name()) { |
| 4762 set_has_name(); | 4835 set_has_name(); |
| 4763 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), from.name_); | 4836 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), from.name_); |
| 4764 } | 4837 } |
| 4838 if (from.has_number()) { |
| 4839 set_number(from.number()); |
| 4840 } |
| 4841 if (from.has_label()) { |
| 4842 set_label(from.label()); |
| 4843 } |
| 4844 if (from.has_type()) { |
| 4845 set_type(from.type()); |
| 4846 } |
| 4765 if (from.has_type_name()) { | 4847 if (from.has_type_name()) { |
| 4766 set_has_type_name(); | 4848 set_has_type_name(); |
| 4767 type_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyString
AlreadyInited(), from.type_name_); | 4849 type_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyString
AlreadyInited(), from.type_name_); |
| 4768 } | 4850 } |
| 4769 if (from.has_extendee()) { | 4851 if (from.has_extendee()) { |
| 4770 set_has_extendee(); | 4852 set_has_extendee(); |
| 4771 extendee_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringA
lreadyInited(), from.extendee_); | 4853 extendee_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringA
lreadyInited(), from.extendee_); |
| 4772 } | 4854 } |
| 4773 if (from.has_default_value()) { | 4855 if (from.has_default_value()) { |
| 4774 set_has_default_value(); | 4856 set_has_default_value(); |
| 4775 default_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited(), from.default_value_); | 4857 default_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited(), from.default_value_); |
| 4776 } | 4858 } |
| 4859 if (from.has_oneof_index()) { |
| 4860 set_oneof_index(from.oneof_index()); |
| 4861 } |
| 4862 } |
| 4863 if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { |
| 4777 if (from.has_json_name()) { | 4864 if (from.has_json_name()) { |
| 4778 set_has_json_name(); | 4865 set_has_json_name(); |
| 4779 json_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyString
AlreadyInited(), from.json_name_); | 4866 json_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyString
AlreadyInited(), from.json_name_); |
| 4780 } | 4867 } |
| 4781 if (from.has_options()) { | 4868 if (from.has_options()) { |
| 4782 mutable_options()->::google::protobuf::FieldOptions::MergeFrom(from.option
s()); | 4869 mutable_options()->::google::protobuf::FieldOptions::MergeFrom(from.option
s()); |
| 4783 } | 4870 } |
| 4784 if (from.has_number()) { | |
| 4785 set_number(from.number()); | |
| 4786 } | |
| 4787 if (from.has_oneof_index()) { | |
| 4788 set_oneof_index(from.oneof_index()); | |
| 4789 } | |
| 4790 } | 4871 } |
| 4791 if (from._has_bits_[8 / 32] & 768u) { | 4872 if (from._internal_metadata_.have_unknown_fields()) { |
| 4792 if (from.has_label()) { | 4873 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 4793 set_label(from.label()); | |
| 4794 } | |
| 4795 if (from.has_type()) { | |
| 4796 set_type(from.type()); | |
| 4797 } | |
| 4798 } | 4874 } |
| 4799 } | 4875 } |
| 4800 | 4876 |
| 4801 void FieldDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { | 4877 void FieldDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { |
| 4802 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FieldDes
criptorProto) | 4878 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FieldDes
criptorProto) |
| 4803 if (&from == this) return; | 4879 if (&from == this) return; |
| 4804 Clear(); | 4880 Clear(); |
| 4805 MergeFrom(from); | 4881 MergeFrom(from); |
| 4806 } | 4882 } |
| 4807 | 4883 |
| 4808 void FieldDescriptorProto::CopyFrom(const FieldDescriptorProto& from) { | 4884 void FieldDescriptorProto::CopyFrom(const FieldDescriptorProto& from) { |
| 4809 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Field
DescriptorProto) | 4885 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Field
DescriptorProto) |
| 4810 if (&from == this) return; | 4886 if (&from == this) return; |
| 4811 Clear(); | 4887 Clear(); |
| 4812 MergeFrom(from); | 4888 MergeFrom(from); |
| 4813 } | 4889 } |
| 4814 | 4890 |
| 4815 bool FieldDescriptorProto::IsInitialized() const { | 4891 bool FieldDescriptorProto::IsInitialized() const { |
| 4892 |
| 4816 if (has_options()) { | 4893 if (has_options()) { |
| 4817 if (!this->options_->IsInitialized()) return false; | 4894 if (!this->options_->IsInitialized()) return false; |
| 4818 } | 4895 } |
| 4819 return true; | 4896 return true; |
| 4820 } | 4897 } |
| 4821 | 4898 |
| 4822 void FieldDescriptorProto::Swap(FieldDescriptorProto* other) { | 4899 void FieldDescriptorProto::Swap(FieldDescriptorProto* other) { |
| 4823 if (other == this) return; | 4900 if (other == this) return; |
| 4824 InternalSwap(other); | 4901 InternalSwap(other); |
| 4825 } | 4902 } |
| 4826 void FieldDescriptorProto::InternalSwap(FieldDescriptorProto* other) { | 4903 void FieldDescriptorProto::InternalSwap(FieldDescriptorProto* other) { |
| 4827 name_.Swap(&other->name_); | 4904 name_.Swap(&other->name_); |
| 4905 std::swap(number_, other->number_); |
| 4906 std::swap(label_, other->label_); |
| 4907 std::swap(type_, other->type_); |
| 4828 type_name_.Swap(&other->type_name_); | 4908 type_name_.Swap(&other->type_name_); |
| 4829 extendee_.Swap(&other->extendee_); | 4909 extendee_.Swap(&other->extendee_); |
| 4830 default_value_.Swap(&other->default_value_); | 4910 default_value_.Swap(&other->default_value_); |
| 4911 std::swap(oneof_index_, other->oneof_index_); |
| 4831 json_name_.Swap(&other->json_name_); | 4912 json_name_.Swap(&other->json_name_); |
| 4832 std::swap(options_, other->options_); | 4913 std::swap(options_, other->options_); |
| 4833 std::swap(number_, other->number_); | |
| 4834 std::swap(oneof_index_, other->oneof_index_); | |
| 4835 std::swap(label_, other->label_); | |
| 4836 std::swap(type_, other->type_); | |
| 4837 std::swap(_has_bits_[0], other->_has_bits_[0]); | 4914 std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 4838 _internal_metadata_.Swap(&other->_internal_metadata_); | 4915 _internal_metadata_.Swap(&other->_internal_metadata_); |
| 4839 std::swap(_cached_size_, other->_cached_size_); | 4916 std::swap(_cached_size_, other->_cached_size_); |
| 4840 } | 4917 } |
| 4841 | 4918 |
| 4842 ::google::protobuf::Metadata FieldDescriptorProto::GetMetadata() const { | 4919 ::google::protobuf::Metadata FieldDescriptorProto::GetMetadata() const { |
| 4843 protobuf_AssignDescriptorsOnce(); | 4920 protobuf_AssignDescriptorsOnce(); |
| 4844 return file_level_metadata[5]; | 4921 ::google::protobuf::Metadata metadata; |
| 4922 metadata.descriptor = FieldDescriptorProto_descriptor_; |
| 4923 metadata.reflection = FieldDescriptorProto_reflection_; |
| 4924 return metadata; |
| 4845 } | 4925 } |
| 4846 | 4926 |
| 4847 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 4927 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 4848 // FieldDescriptorProto | 4928 // FieldDescriptorProto |
| 4849 | 4929 |
| 4850 // optional string name = 1; | 4930 // optional string name = 1; |
| 4851 bool FieldDescriptorProto::has_name() const { | 4931 bool FieldDescriptorProto::has_name() const { |
| 4852 return (_has_bits_[0] & 0x00000001u) != 0; | 4932 return (_has_bits_[0] & 0x00000001u) != 0; |
| 4853 } | 4933 } |
| 4854 void FieldDescriptorProto::set_has_name() { | 4934 void FieldDescriptorProto::set_has_name() { |
| 4855 _has_bits_[0] |= 0x00000001u; | 4935 _has_bits_[0] |= 0x00000001u; |
| 4856 } | 4936 } |
| 4857 void FieldDescriptorProto::clear_has_name() { | 4937 void FieldDescriptorProto::clear_has_name() { |
| 4858 _has_bits_[0] &= ~0x00000001u; | 4938 _has_bits_[0] &= ~0x00000001u; |
| 4859 } | 4939 } |
| 4860 void FieldDescriptorProto::clear_name() { | 4940 void FieldDescriptorProto::clear_name() { |
| 4861 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); | 4941 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); |
| 4862 clear_has_name(); | 4942 clear_has_name(); |
| 4863 } | 4943 } |
| 4864 const ::std::string& FieldDescriptorProto::name() const { | 4944 const ::std::string& FieldDescriptorProto::name() const { |
| 4865 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.nam
e) | 4945 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.nam
e) |
| 4866 return name_.GetNoArena(); | 4946 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited()); |
| 4867 } | 4947 } |
| 4868 void FieldDescriptorProto::set_name(const ::std::string& value) { | 4948 void FieldDescriptorProto::set_name(const ::std::string& value) { |
| 4869 set_has_name(); | 4949 set_has_name(); |
| 4870 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); | 4950 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); |
| 4871 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.nam
e) | 4951 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.nam
e) |
| 4872 } | 4952 } |
| 4873 void FieldDescriptorProto::set_name(const char* value) { | 4953 void FieldDescriptorProto::set_name(const char* value) { |
| 4874 set_has_name(); | 4954 set_has_name(); |
| 4875 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); | 4955 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); |
| 4876 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProt
o.name) | 4956 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProt
o.name) |
| 4877 } | 4957 } |
| 4878 void FieldDescriptorProto::set_name(const char* value, size_t size) { | 4958 void FieldDescriptorProto::set_name(const char* value, size_t size) { |
| 4879 set_has_name(); | 4959 set_has_name(); |
| 4880 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), | 4960 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 4881 ::std::string(reinterpret_cast<const char*>(value), size)); | 4961 ::std::string(reinterpret_cast<const char*>(value), size)); |
| 4882 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorP
roto.name) | 4962 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorP
roto.name) |
| 4883 } | 4963 } |
| 4884 ::std::string* FieldDescriptorProto::mutable_name() { | 4964 ::std::string* FieldDescriptorProto::mutable_name() { |
| 4885 set_has_name(); | 4965 set_has_name(); |
| 4886 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto
.name) | 4966 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto
.name) |
| 4887 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 4967 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
| 4888 } | 4968 } |
| 4889 ::std::string* FieldDescriptorProto::release_name() { | 4969 ::std::string* FieldDescriptorProto::release_name() { |
| 4890 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto
.name) | 4970 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto
.name) |
| 4891 clear_has_name(); | 4971 clear_has_name(); |
| 4892 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 4972 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
| 4893 } | 4973 } |
| 4894 void FieldDescriptorProto::set_allocated_name(::std::string* name) { | 4974 void FieldDescriptorProto::set_allocated_name(::std::string* name) { |
| 4895 if (name != NULL) { | 4975 if (name != NULL) { |
| 4896 set_has_name(); | 4976 set_has_name(); |
| 4897 } else { | 4977 } else { |
| 4898 clear_has_name(); | 4978 clear_has_name(); |
| 4899 } | 4979 } |
| 4900 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), name); | 4980 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), name); |
| 4901 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto
rProto.name) | 4981 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto
rProto.name) |
| 4902 } | 4982 } |
| 4903 | 4983 |
| 4904 // optional int32 number = 3; | 4984 // optional int32 number = 3; |
| 4905 bool FieldDescriptorProto::has_number() const { | 4985 bool FieldDescriptorProto::has_number() const { |
| 4906 return (_has_bits_[0] & 0x00000040u) != 0; | 4986 return (_has_bits_[0] & 0x00000002u) != 0; |
| 4907 } | 4987 } |
| 4908 void FieldDescriptorProto::set_has_number() { | 4988 void FieldDescriptorProto::set_has_number() { |
| 4909 _has_bits_[0] |= 0x00000040u; | 4989 _has_bits_[0] |= 0x00000002u; |
| 4910 } | 4990 } |
| 4911 void FieldDescriptorProto::clear_has_number() { | 4991 void FieldDescriptorProto::clear_has_number() { |
| 4912 _has_bits_[0] &= ~0x00000040u; | 4992 _has_bits_[0] &= ~0x00000002u; |
| 4913 } | 4993 } |
| 4914 void FieldDescriptorProto::clear_number() { | 4994 void FieldDescriptorProto::clear_number() { |
| 4915 number_ = 0; | 4995 number_ = 0; |
| 4916 clear_has_number(); | 4996 clear_has_number(); |
| 4917 } | 4997 } |
| 4918 ::google::protobuf::int32 FieldDescriptorProto::number() const { | 4998 ::google::protobuf::int32 FieldDescriptorProto::number() const { |
| 4919 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.num
ber) | 4999 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.num
ber) |
| 4920 return number_; | 5000 return number_; |
| 4921 } | 5001 } |
| 4922 void FieldDescriptorProto::set_number(::google::protobuf::int32 value) { | 5002 void FieldDescriptorProto::set_number(::google::protobuf::int32 value) { |
| 4923 set_has_number(); | 5003 set_has_number(); |
| 4924 number_ = value; | 5004 number_ = value; |
| 4925 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.num
ber) | 5005 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.num
ber) |
| 4926 } | 5006 } |
| 4927 | 5007 |
| 4928 // optional .google.protobuf.FieldDescriptorProto.Label label = 4; | 5008 // optional .google.protobuf.FieldDescriptorProto.Label label = 4; |
| 4929 bool FieldDescriptorProto::has_label() const { | 5009 bool FieldDescriptorProto::has_label() const { |
| 4930 return (_has_bits_[0] & 0x00000100u) != 0; | 5010 return (_has_bits_[0] & 0x00000004u) != 0; |
| 4931 } | 5011 } |
| 4932 void FieldDescriptorProto::set_has_label() { | 5012 void FieldDescriptorProto::set_has_label() { |
| 4933 _has_bits_[0] |= 0x00000100u; | 5013 _has_bits_[0] |= 0x00000004u; |
| 4934 } | 5014 } |
| 4935 void FieldDescriptorProto::clear_has_label() { | 5015 void FieldDescriptorProto::clear_has_label() { |
| 4936 _has_bits_[0] &= ~0x00000100u; | 5016 _has_bits_[0] &= ~0x00000004u; |
| 4937 } | 5017 } |
| 4938 void FieldDescriptorProto::clear_label() { | 5018 void FieldDescriptorProto::clear_label() { |
| 4939 label_ = 1; | 5019 label_ = 1; |
| 4940 clear_has_label(); | 5020 clear_has_label(); |
| 4941 } | 5021 } |
| 4942 ::google::protobuf::FieldDescriptorProto_Label FieldDescriptorProto::label() con
st { | 5022 ::google::protobuf::FieldDescriptorProto_Label FieldDescriptorProto::label() co
nst { |
| 4943 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.lab
el) | 5023 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.lab
el) |
| 4944 return static_cast< ::google::protobuf::FieldDescriptorProto_Label >(label_); | 5024 return static_cast< ::google::protobuf::FieldDescriptorProto_Label >(label_); |
| 4945 } | 5025 } |
| 4946 void FieldDescriptorProto::set_label(::google::protobuf::FieldDescriptorProto_La
bel value) { | 5026 void FieldDescriptorProto::set_label(::google::protobuf::FieldDescriptorProto_L
abel value) { |
| 4947 assert(::google::protobuf::FieldDescriptorProto_Label_IsValid(value)); | 5027 assert(::google::protobuf::FieldDescriptorProto_Label_IsValid(value)); |
| 4948 set_has_label(); | 5028 set_has_label(); |
| 4949 label_ = value; | 5029 label_ = value; |
| 4950 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.lab
el) | 5030 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.lab
el) |
| 4951 } | 5031 } |
| 4952 | 5032 |
| 4953 // optional .google.protobuf.FieldDescriptorProto.Type type = 5; | 5033 // optional .google.protobuf.FieldDescriptorProto.Type type = 5; |
| 4954 bool FieldDescriptorProto::has_type() const { | 5034 bool FieldDescriptorProto::has_type() const { |
| 4955 return (_has_bits_[0] & 0x00000200u) != 0; | 5035 return (_has_bits_[0] & 0x00000008u) != 0; |
| 4956 } | 5036 } |
| 4957 void FieldDescriptorProto::set_has_type() { | 5037 void FieldDescriptorProto::set_has_type() { |
| 4958 _has_bits_[0] |= 0x00000200u; | 5038 _has_bits_[0] |= 0x00000008u; |
| 4959 } | 5039 } |
| 4960 void FieldDescriptorProto::clear_has_type() { | 5040 void FieldDescriptorProto::clear_has_type() { |
| 4961 _has_bits_[0] &= ~0x00000200u; | 5041 _has_bits_[0] &= ~0x00000008u; |
| 4962 } | 5042 } |
| 4963 void FieldDescriptorProto::clear_type() { | 5043 void FieldDescriptorProto::clear_type() { |
| 4964 type_ = 1; | 5044 type_ = 1; |
| 4965 clear_has_type(); | 5045 clear_has_type(); |
| 4966 } | 5046 } |
| 4967 ::google::protobuf::FieldDescriptorProto_Type FieldDescriptorProto::type() const
{ | 5047 ::google::protobuf::FieldDescriptorProto_Type FieldDescriptorProto::type() cons
t { |
| 4968 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.typ
e) | 5048 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.typ
e) |
| 4969 return static_cast< ::google::protobuf::FieldDescriptorProto_Type >(type_); | 5049 return static_cast< ::google::protobuf::FieldDescriptorProto_Type >(type_); |
| 4970 } | 5050 } |
| 4971 void FieldDescriptorProto::set_type(::google::protobuf::FieldDescriptorProto_Typ
e value) { | 5051 void FieldDescriptorProto::set_type(::google::protobuf::FieldDescriptorProto_Ty
pe value) { |
| 4972 assert(::google::protobuf::FieldDescriptorProto_Type_IsValid(value)); | 5052 assert(::google::protobuf::FieldDescriptorProto_Type_IsValid(value)); |
| 4973 set_has_type(); | 5053 set_has_type(); |
| 4974 type_ = value; | 5054 type_ = value; |
| 4975 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.typ
e) | 5055 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.typ
e) |
| 4976 } | 5056 } |
| 4977 | 5057 |
| 4978 // optional string type_name = 6; | 5058 // optional string type_name = 6; |
| 4979 bool FieldDescriptorProto::has_type_name() const { | 5059 bool FieldDescriptorProto::has_type_name() const { |
| 4980 return (_has_bits_[0] & 0x00000002u) != 0; | 5060 return (_has_bits_[0] & 0x00000010u) != 0; |
| 4981 } | 5061 } |
| 4982 void FieldDescriptorProto::set_has_type_name() { | 5062 void FieldDescriptorProto::set_has_type_name() { |
| 4983 _has_bits_[0] |= 0x00000002u; | 5063 _has_bits_[0] |= 0x00000010u; |
| 4984 } | 5064 } |
| 4985 void FieldDescriptorProto::clear_has_type_name() { | 5065 void FieldDescriptorProto::clear_has_type_name() { |
| 4986 _has_bits_[0] &= ~0x00000002u; | 5066 _has_bits_[0] &= ~0x00000010u; |
| 4987 } | 5067 } |
| 4988 void FieldDescriptorProto::clear_type_name() { | 5068 void FieldDescriptorProto::clear_type_name() { |
| 4989 type_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); | 5069 type_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); |
| 4990 clear_has_type_name(); | 5070 clear_has_type_name(); |
| 4991 } | 5071 } |
| 4992 const ::std::string& FieldDescriptorProto::type_name() const { | 5072 const ::std::string& FieldDescriptorProto::type_name() const { |
| 4993 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.typ
e_name) | 5073 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.typ
e_name) |
| 4994 return type_name_.GetNoArena(); | 5074 return type_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); |
| 4995 } | 5075 } |
| 4996 void FieldDescriptorProto::set_type_name(const ::std::string& value) { | 5076 void FieldDescriptorProto::set_type_name(const ::std::string& value) { |
| 4997 set_has_type_name(); | 5077 set_has_type_name(); |
| 4998 type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), value); | 5078 type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), value); |
| 4999 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.typ
e_name) | 5079 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.typ
e_name) |
| 5000 } | 5080 } |
| 5001 void FieldDescriptorProto::set_type_name(const char* value) { | 5081 void FieldDescriptorProto::set_type_name(const char* value) { |
| 5002 set_has_type_name(); | 5082 set_has_type_name(); |
| 5003 type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), ::std::string(value)); | 5083 type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), ::std::string(value)); |
| 5004 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProt
o.type_name) | 5084 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProt
o.type_name) |
| 5005 } | 5085 } |
| 5006 void FieldDescriptorProto::set_type_name(const char* value, size_t size) { | 5086 void FieldDescriptorProto::set_type_name(const char* value, size_t size) { |
| 5007 set_has_type_name(); | 5087 set_has_type_name(); |
| 5008 type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), | 5088 type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), |
| 5009 ::std::string(reinterpret_cast<const char*>(value), size)); | 5089 ::std::string(reinterpret_cast<const char*>(value), size)); |
| 5010 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorP
roto.type_name) | 5090 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorP
roto.type_name) |
| 5011 } | 5091 } |
| 5012 ::std::string* FieldDescriptorProto::mutable_type_name() { | 5092 ::std::string* FieldDescriptorProto::mutable_type_name() { |
| 5013 set_has_type_name(); | 5093 set_has_type_name(); |
| 5014 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto
.type_name) | 5094 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto
.type_name) |
| 5015 return type_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); | 5095 return type_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); |
| 5016 } | 5096 } |
| 5017 ::std::string* FieldDescriptorProto::release_type_name() { | 5097 ::std::string* FieldDescriptorProto::release_type_name() { |
| 5018 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto
.type_name) | 5098 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto
.type_name) |
| 5019 clear_has_type_name(); | 5099 clear_has_type_name(); |
| 5020 return type_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); | 5100 return type_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); |
| 5021 } | 5101 } |
| 5022 void FieldDescriptorProto::set_allocated_type_name(::std::string* type_name) { | 5102 void FieldDescriptorProto::set_allocated_type_name(::std::string* type_name) { |
| 5023 if (type_name != NULL) { | 5103 if (type_name != NULL) { |
| 5024 set_has_type_name(); | 5104 set_has_type_name(); |
| 5025 } else { | 5105 } else { |
| 5026 clear_has_type_name(); | 5106 clear_has_type_name(); |
| 5027 } | 5107 } |
| 5028 type_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited(), type_name); | 5108 type_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited(), type_name); |
| 5029 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto
rProto.type_name) | 5109 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto
rProto.type_name) |
| 5030 } | 5110 } |
| 5031 | 5111 |
| 5032 // optional string extendee = 2; | 5112 // optional string extendee = 2; |
| 5033 bool FieldDescriptorProto::has_extendee() const { | 5113 bool FieldDescriptorProto::has_extendee() const { |
| 5034 return (_has_bits_[0] & 0x00000004u) != 0; | 5114 return (_has_bits_[0] & 0x00000020u) != 0; |
| 5035 } | 5115 } |
| 5036 void FieldDescriptorProto::set_has_extendee() { | 5116 void FieldDescriptorProto::set_has_extendee() { |
| 5037 _has_bits_[0] |= 0x00000004u; | 5117 _has_bits_[0] |= 0x00000020u; |
| 5038 } | 5118 } |
| 5039 void FieldDescriptorProto::clear_has_extendee() { | 5119 void FieldDescriptorProto::clear_has_extendee() { |
| 5040 _has_bits_[0] &= ~0x00000004u; | 5120 _has_bits_[0] &= ~0x00000020u; |
| 5041 } | 5121 } |
| 5042 void FieldDescriptorProto::clear_extendee() { | 5122 void FieldDescriptorProto::clear_extendee() { |
| 5043 extendee_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); | 5123 extendee_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); |
| 5044 clear_has_extendee(); | 5124 clear_has_extendee(); |
| 5045 } | 5125 } |
| 5046 const ::std::string& FieldDescriptorProto::extendee() const { | 5126 const ::std::string& FieldDescriptorProto::extendee() const { |
| 5047 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.ext
endee) | 5127 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.ext
endee) |
| 5048 return extendee_.GetNoArena(); | 5128 return extendee_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
| 5049 } | 5129 } |
| 5050 void FieldDescriptorProto::set_extendee(const ::std::string& value) { | 5130 void FieldDescriptorProto::set_extendee(const ::std::string& value) { |
| 5051 set_has_extendee(); | 5131 set_has_extendee(); |
| 5052 extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d(), value); | 5132 extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d(), value); |
| 5053 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.ext
endee) | 5133 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.ext
endee) |
| 5054 } | 5134 } |
| 5055 void FieldDescriptorProto::set_extendee(const char* value) { | 5135 void FieldDescriptorProto::set_extendee(const char* value) { |
| 5056 set_has_extendee(); | 5136 set_has_extendee(); |
| 5057 extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d(), ::std::string(value)); | 5137 extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d(), ::std::string(value)); |
| 5058 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProt
o.extendee) | 5138 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProt
o.extendee) |
| 5059 } | 5139 } |
| 5060 void FieldDescriptorProto::set_extendee(const char* value, size_t size) { | 5140 void FieldDescriptorProto::set_extendee(const char* value, size_t size) { |
| 5061 set_has_extendee(); | 5141 set_has_extendee(); |
| 5062 extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d(), | 5142 extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d(), |
| 5063 ::std::string(reinterpret_cast<const char*>(value), size)); | 5143 ::std::string(reinterpret_cast<const char*>(value), size)); |
| 5064 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorP
roto.extendee) | 5144 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorP
roto.extendee) |
| 5065 } | 5145 } |
| 5066 ::std::string* FieldDescriptorProto::mutable_extendee() { | 5146 ::std::string* FieldDescriptorProto::mutable_extendee() { |
| 5067 set_has_extendee(); | 5147 set_has_extendee(); |
| 5068 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto
.extendee) | 5148 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto
.extendee) |
| 5069 return extendee_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringA
lreadyInited()); | 5149 return extendee_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringA
lreadyInited()); |
| 5070 } | 5150 } |
| 5071 ::std::string* FieldDescriptorProto::release_extendee() { | 5151 ::std::string* FieldDescriptorProto::release_extendee() { |
| 5072 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto
.extendee) | 5152 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto
.extendee) |
| 5073 clear_has_extendee(); | 5153 clear_has_extendee(); |
| 5074 return extendee_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringA
lreadyInited()); | 5154 return extendee_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringA
lreadyInited()); |
| 5075 } | 5155 } |
| 5076 void FieldDescriptorProto::set_allocated_extendee(::std::string* extendee) { | 5156 void FieldDescriptorProto::set_allocated_extendee(::std::string* extendee) { |
| 5077 if (extendee != NULL) { | 5157 if (extendee != NULL) { |
| 5078 set_has_extendee(); | 5158 set_has_extendee(); |
| 5079 } else { | 5159 } else { |
| 5080 clear_has_extendee(); | 5160 clear_has_extendee(); |
| 5081 } | 5161 } |
| 5082 extendee_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited(), extendee); | 5162 extendee_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited(), extendee); |
| 5083 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto
rProto.extendee) | 5163 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto
rProto.extendee) |
| 5084 } | 5164 } |
| 5085 | 5165 |
| 5086 // optional string default_value = 7; | 5166 // optional string default_value = 7; |
| 5087 bool FieldDescriptorProto::has_default_value() const { | 5167 bool FieldDescriptorProto::has_default_value() const { |
| 5088 return (_has_bits_[0] & 0x00000008u) != 0; | 5168 return (_has_bits_[0] & 0x00000040u) != 0; |
| 5089 } | 5169 } |
| 5090 void FieldDescriptorProto::set_has_default_value() { | 5170 void FieldDescriptorProto::set_has_default_value() { |
| 5091 _has_bits_[0] |= 0x00000008u; | 5171 _has_bits_[0] |= 0x00000040u; |
| 5092 } | 5172 } |
| 5093 void FieldDescriptorProto::clear_has_default_value() { | 5173 void FieldDescriptorProto::clear_has_default_value() { |
| 5094 _has_bits_[0] &= ~0x00000008u; | 5174 _has_bits_[0] &= ~0x00000040u; |
| 5095 } | 5175 } |
| 5096 void FieldDescriptorProto::clear_default_value() { | 5176 void FieldDescriptorProto::clear_default_value() { |
| 5097 default_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); | 5177 default_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); |
| 5098 clear_has_default_value(); | 5178 clear_has_default_value(); |
| 5099 } | 5179 } |
| 5100 const ::std::string& FieldDescriptorProto::default_value() const { | 5180 const ::std::string& FieldDescriptorProto::default_value() const { |
| 5101 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.def
ault_value) | 5181 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.def
ault_value) |
| 5102 return default_value_.GetNoArena(); | 5182 return default_value_.GetNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); |
| 5103 } | 5183 } |
| 5104 void FieldDescriptorProto::set_default_value(const ::std::string& value) { | 5184 void FieldDescriptorProto::set_default_value(const ::std::string& value) { |
| 5105 set_has_default_value(); | 5185 set_has_default_value(); |
| 5106 default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), value); | 5186 default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), value); |
| 5107 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.def
ault_value) | 5187 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.def
ault_value) |
| 5108 } | 5188 } |
| 5109 void FieldDescriptorProto::set_default_value(const char* value) { | 5189 void FieldDescriptorProto::set_default_value(const char* value) { |
| 5110 set_has_default_value(); | 5190 set_has_default_value(); |
| 5111 default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), ::std::string(value)); | 5191 default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), ::std::string(value)); |
| 5112 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProt
o.default_value) | 5192 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProt
o.default_value) |
| 5113 } | 5193 } |
| 5114 void FieldDescriptorProto::set_default_value(const char* value, size_t size) { | 5194 void FieldDescriptorProto::set_default_value(const char* value, size_t size) { |
| 5115 set_has_default_value(); | 5195 set_has_default_value(); |
| 5116 default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), | 5196 default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), |
| 5117 ::std::string(reinterpret_cast<const char*>(value), size)); | 5197 ::std::string(reinterpret_cast<const char*>(value), size)); |
| 5118 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorP
roto.default_value) | 5198 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorP
roto.default_value) |
| 5119 } | 5199 } |
| 5120 ::std::string* FieldDescriptorProto::mutable_default_value() { | 5200 ::std::string* FieldDescriptorProto::mutable_default_value() { |
| 5121 set_has_default_value(); | 5201 set_has_default_value(); |
| 5122 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto
.default_value) | 5202 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto
.default_value) |
| 5123 return default_value_.MutableNoArena(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited()); | 5203 return default_value_.MutableNoArena(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited()); |
| 5124 } | 5204 } |
| 5125 ::std::string* FieldDescriptorProto::release_default_value() { | 5205 ::std::string* FieldDescriptorProto::release_default_value() { |
| 5126 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto
.default_value) | 5206 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto
.default_value) |
| 5127 clear_has_default_value(); | 5207 clear_has_default_value(); |
| 5128 return default_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited()); | 5208 return default_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited()); |
| 5129 } | 5209 } |
| 5130 void FieldDescriptorProto::set_allocated_default_value(::std::string* default_va
lue) { | 5210 void FieldDescriptorProto::set_allocated_default_value(::std::string* default_v
alue) { |
| 5131 if (default_value != NULL) { | 5211 if (default_value != NULL) { |
| 5132 set_has_default_value(); | 5212 set_has_default_value(); |
| 5133 } else { | 5213 } else { |
| 5134 clear_has_default_value(); | 5214 clear_has_default_value(); |
| 5135 } | 5215 } |
| 5136 default_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited(), default_value); | 5216 default_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited(), default_value); |
| 5137 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto
rProto.default_value) | 5217 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto
rProto.default_value) |
| 5138 } | 5218 } |
| 5139 | 5219 |
| 5140 // optional int32 oneof_index = 9; | 5220 // optional int32 oneof_index = 9; |
| 5141 bool FieldDescriptorProto::has_oneof_index() const { | 5221 bool FieldDescriptorProto::has_oneof_index() const { |
| 5142 return (_has_bits_[0] & 0x00000080u) != 0; | 5222 return (_has_bits_[0] & 0x00000080u) != 0; |
| 5143 } | 5223 } |
| 5144 void FieldDescriptorProto::set_has_oneof_index() { | 5224 void FieldDescriptorProto::set_has_oneof_index() { |
| 5145 _has_bits_[0] |= 0x00000080u; | 5225 _has_bits_[0] |= 0x00000080u; |
| 5146 } | 5226 } |
| 5147 void FieldDescriptorProto::clear_has_oneof_index() { | 5227 void FieldDescriptorProto::clear_has_oneof_index() { |
| 5148 _has_bits_[0] &= ~0x00000080u; | 5228 _has_bits_[0] &= ~0x00000080u; |
| 5149 } | 5229 } |
| 5150 void FieldDescriptorProto::clear_oneof_index() { | 5230 void FieldDescriptorProto::clear_oneof_index() { |
| 5151 oneof_index_ = 0; | 5231 oneof_index_ = 0; |
| 5152 clear_has_oneof_index(); | 5232 clear_has_oneof_index(); |
| 5153 } | 5233 } |
| 5154 ::google::protobuf::int32 FieldDescriptorProto::oneof_index() const { | 5234 ::google::protobuf::int32 FieldDescriptorProto::oneof_index() const { |
| 5155 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.one
of_index) | 5235 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.one
of_index) |
| 5156 return oneof_index_; | 5236 return oneof_index_; |
| 5157 } | 5237 } |
| 5158 void FieldDescriptorProto::set_oneof_index(::google::protobuf::int32 value) { | 5238 void FieldDescriptorProto::set_oneof_index(::google::protobuf::int32 value) { |
| 5159 set_has_oneof_index(); | 5239 set_has_oneof_index(); |
| 5160 oneof_index_ = value; | 5240 oneof_index_ = value; |
| 5161 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.one
of_index) | 5241 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.one
of_index) |
| 5162 } | 5242 } |
| 5163 | 5243 |
| 5164 // optional string json_name = 10; | 5244 // optional string json_name = 10; |
| 5165 bool FieldDescriptorProto::has_json_name() const { | 5245 bool FieldDescriptorProto::has_json_name() const { |
| 5166 return (_has_bits_[0] & 0x00000010u) != 0; | 5246 return (_has_bits_[0] & 0x00000100u) != 0; |
| 5167 } | 5247 } |
| 5168 void FieldDescriptorProto::set_has_json_name() { | 5248 void FieldDescriptorProto::set_has_json_name() { |
| 5169 _has_bits_[0] |= 0x00000010u; | 5249 _has_bits_[0] |= 0x00000100u; |
| 5170 } | 5250 } |
| 5171 void FieldDescriptorProto::clear_has_json_name() { | 5251 void FieldDescriptorProto::clear_has_json_name() { |
| 5172 _has_bits_[0] &= ~0x00000010u; | 5252 _has_bits_[0] &= ~0x00000100u; |
| 5173 } | 5253 } |
| 5174 void FieldDescriptorProto::clear_json_name() { | 5254 void FieldDescriptorProto::clear_json_name() { |
| 5175 json_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); | 5255 json_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); |
| 5176 clear_has_json_name(); | 5256 clear_has_json_name(); |
| 5177 } | 5257 } |
| 5178 const ::std::string& FieldDescriptorProto::json_name() const { | 5258 const ::std::string& FieldDescriptorProto::json_name() const { |
| 5179 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.jso
n_name) | 5259 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.jso
n_name) |
| 5180 return json_name_.GetNoArena(); | 5260 return json_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); |
| 5181 } | 5261 } |
| 5182 void FieldDescriptorProto::set_json_name(const ::std::string& value) { | 5262 void FieldDescriptorProto::set_json_name(const ::std::string& value) { |
| 5183 set_has_json_name(); | 5263 set_has_json_name(); |
| 5184 json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), value); | 5264 json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), value); |
| 5185 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.jso
n_name) | 5265 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.jso
n_name) |
| 5186 } | 5266 } |
| 5187 void FieldDescriptorProto::set_json_name(const char* value) { | 5267 void FieldDescriptorProto::set_json_name(const char* value) { |
| 5188 set_has_json_name(); | 5268 set_has_json_name(); |
| 5189 json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), ::std::string(value)); | 5269 json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), ::std::string(value)); |
| 5190 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProt
o.json_name) | 5270 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProt
o.json_name) |
| 5191 } | 5271 } |
| 5192 void FieldDescriptorProto::set_json_name(const char* value, size_t size) { | 5272 void FieldDescriptorProto::set_json_name(const char* value, size_t size) { |
| 5193 set_has_json_name(); | 5273 set_has_json_name(); |
| 5194 json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), | 5274 json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), |
| 5195 ::std::string(reinterpret_cast<const char*>(value), size)); | 5275 ::std::string(reinterpret_cast<const char*>(value), size)); |
| 5196 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorP
roto.json_name) | 5276 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorP
roto.json_name) |
| 5197 } | 5277 } |
| 5198 ::std::string* FieldDescriptorProto::mutable_json_name() { | 5278 ::std::string* FieldDescriptorProto::mutable_json_name() { |
| 5199 set_has_json_name(); | 5279 set_has_json_name(); |
| 5200 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto
.json_name) | 5280 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto
.json_name) |
| 5201 return json_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); | 5281 return json_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); |
| 5202 } | 5282 } |
| 5203 ::std::string* FieldDescriptorProto::release_json_name() { | 5283 ::std::string* FieldDescriptorProto::release_json_name() { |
| 5204 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto
.json_name) | 5284 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto
.json_name) |
| 5205 clear_has_json_name(); | 5285 clear_has_json_name(); |
| 5206 return json_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); | 5286 return json_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); |
| 5207 } | 5287 } |
| 5208 void FieldDescriptorProto::set_allocated_json_name(::std::string* json_name) { | 5288 void FieldDescriptorProto::set_allocated_json_name(::std::string* json_name) { |
| 5209 if (json_name != NULL) { | 5289 if (json_name != NULL) { |
| 5210 set_has_json_name(); | 5290 set_has_json_name(); |
| 5211 } else { | 5291 } else { |
| 5212 clear_has_json_name(); | 5292 clear_has_json_name(); |
| 5213 } | 5293 } |
| 5214 json_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited(), json_name); | 5294 json_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited(), json_name); |
| 5215 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto
rProto.json_name) | 5295 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto
rProto.json_name) |
| 5216 } | 5296 } |
| 5217 | 5297 |
| 5218 // optional .google.protobuf.FieldOptions options = 8; | 5298 // optional .google.protobuf.FieldOptions options = 8; |
| 5219 bool FieldDescriptorProto::has_options() const { | 5299 bool FieldDescriptorProto::has_options() const { |
| 5220 return (_has_bits_[0] & 0x00000020u) != 0; | 5300 return (_has_bits_[0] & 0x00000200u) != 0; |
| 5221 } | 5301 } |
| 5222 void FieldDescriptorProto::set_has_options() { | 5302 void FieldDescriptorProto::set_has_options() { |
| 5223 _has_bits_[0] |= 0x00000020u; | 5303 _has_bits_[0] |= 0x00000200u; |
| 5224 } | 5304 } |
| 5225 void FieldDescriptorProto::clear_has_options() { | 5305 void FieldDescriptorProto::clear_has_options() { |
| 5226 _has_bits_[0] &= ~0x00000020u; | 5306 _has_bits_[0] &= ~0x00000200u; |
| 5227 } | 5307 } |
| 5228 void FieldDescriptorProto::clear_options() { | 5308 void FieldDescriptorProto::clear_options() { |
| 5229 if (options_ != NULL) options_->::google::protobuf::FieldOptions::Clear(); | 5309 if (options_ != NULL) options_->::google::protobuf::FieldOptions::Clear(); |
| 5230 clear_has_options(); | 5310 clear_has_options(); |
| 5231 } | 5311 } |
| 5232 const ::google::protobuf::FieldOptions& FieldDescriptorProto::options() const { | 5312 const ::google::protobuf::FieldOptions& FieldDescriptorProto::options() const { |
| 5233 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.opt
ions) | 5313 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.opt
ions) |
| 5234 return options_ != NULL ? *options_ | 5314 return options_ != NULL ? *options_ : *default_instance_->options_; |
| 5235 : *::google::protobuf::FieldOptions::internal_default_i
nstance(); | |
| 5236 } | 5315 } |
| 5237 ::google::protobuf::FieldOptions* FieldDescriptorProto::mutable_options() { | 5316 ::google::protobuf::FieldOptions* FieldDescriptorProto::mutable_options() { |
| 5238 set_has_options(); | 5317 set_has_options(); |
| 5239 if (options_ == NULL) { | 5318 if (options_ == NULL) { |
| 5240 options_ = new ::google::protobuf::FieldOptions; | 5319 options_ = new ::google::protobuf::FieldOptions; |
| 5241 } | 5320 } |
| 5242 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto
.options) | 5321 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto
.options) |
| 5243 return options_; | 5322 return options_; |
| 5244 } | 5323 } |
| 5245 ::google::protobuf::FieldOptions* FieldDescriptorProto::release_options() { | 5324 ::google::protobuf::FieldOptions* FieldDescriptorProto::release_options() { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 5259 } | 5338 } |
| 5260 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto
rProto.options) | 5339 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto
rProto.options) |
| 5261 } | 5340 } |
| 5262 | 5341 |
| 5263 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 5342 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 5264 | 5343 |
| 5265 // =================================================================== | 5344 // =================================================================== |
| 5266 | 5345 |
| 5267 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 5346 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5268 const int OneofDescriptorProto::kNameFieldNumber; | 5347 const int OneofDescriptorProto::kNameFieldNumber; |
| 5269 const int OneofDescriptorProto::kOptionsFieldNumber; | |
| 5270 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 5348 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5271 | 5349 |
| 5272 OneofDescriptorProto::OneofDescriptorProto() | 5350 OneofDescriptorProto::OneofDescriptorProto() |
| 5273 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 5351 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 5274 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
| 5275 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
| 5276 } | |
| 5277 SharedCtor(); | 5352 SharedCtor(); |
| 5278 // @@protoc_insertion_point(constructor:google.protobuf.OneofDescriptorProto) | 5353 // @@protoc_insertion_point(constructor:google.protobuf.OneofDescriptorProto) |
| 5279 } | 5354 } |
| 5355 |
| 5356 void OneofDescriptorProto::InitAsDefaultInstance() { |
| 5357 } |
| 5358 |
| 5280 OneofDescriptorProto::OneofDescriptorProto(const OneofDescriptorProto& from) | 5359 OneofDescriptorProto::OneofDescriptorProto(const OneofDescriptorProto& from) |
| 5281 : ::google::protobuf::Message(), | 5360 : ::google::protobuf::Message(), |
| 5282 _internal_metadata_(NULL), | 5361 _internal_metadata_(NULL) { |
| 5283 _has_bits_(from._has_bits_), | 5362 SharedCtor(); |
| 5284 _cached_size_(0) { | 5363 MergeFrom(from); |
| 5285 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 5286 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); | |
| 5287 if (from.has_name()) { | |
| 5288 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), from.name_); | |
| 5289 } | |
| 5290 if (from.has_options()) { | |
| 5291 options_ = new ::google::protobuf::OneofOptions(*from.options_); | |
| 5292 } else { | |
| 5293 options_ = NULL; | |
| 5294 } | |
| 5295 // @@protoc_insertion_point(copy_constructor:google.protobuf.OneofDescriptorPr
oto) | 5364 // @@protoc_insertion_point(copy_constructor:google.protobuf.OneofDescriptorPr
oto) |
| 5296 } | 5365 } |
| 5297 | 5366 |
| 5298 void OneofDescriptorProto::SharedCtor() { | 5367 void OneofDescriptorProto::SharedCtor() { |
| 5368 ::google::protobuf::internal::GetEmptyString(); |
| 5299 _cached_size_ = 0; | 5369 _cached_size_ = 0; |
| 5300 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); | 5370 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); |
| 5301 options_ = NULL; | 5371 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 5302 } | 5372 } |
| 5303 | 5373 |
| 5304 OneofDescriptorProto::~OneofDescriptorProto() { | 5374 OneofDescriptorProto::~OneofDescriptorProto() { |
| 5305 // @@protoc_insertion_point(destructor:google.protobuf.OneofDescriptorProto) | 5375 // @@protoc_insertion_point(destructor:google.protobuf.OneofDescriptorProto) |
| 5306 SharedDtor(); | 5376 SharedDtor(); |
| 5307 } | 5377 } |
| 5308 | 5378 |
| 5309 void OneofDescriptorProto::SharedDtor() { | 5379 void OneofDescriptorProto::SharedDtor() { |
| 5310 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d()); | 5380 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d()); |
| 5311 if (this != internal_default_instance()) { | 5381 if (this != default_instance_) { |
| 5312 delete options_; | |
| 5313 } | 5382 } |
| 5314 } | 5383 } |
| 5315 | 5384 |
| 5316 void OneofDescriptorProto::SetCachedSize(int size) const { | 5385 void OneofDescriptorProto::SetCachedSize(int size) const { |
| 5317 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 5386 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 5318 _cached_size_ = size; | 5387 _cached_size_ = size; |
| 5319 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 5388 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 5320 } | 5389 } |
| 5321 const ::google::protobuf::Descriptor* OneofDescriptorProto::descriptor() { | 5390 const ::google::protobuf::Descriptor* OneofDescriptorProto::descriptor() { |
| 5322 protobuf_AssignDescriptorsOnce(); | 5391 protobuf_AssignDescriptorsOnce(); |
| 5323 return file_level_metadata[6].descriptor; | 5392 return OneofDescriptorProto_descriptor_; |
| 5324 } | 5393 } |
| 5325 | 5394 |
| 5326 const OneofDescriptorProto& OneofDescriptorProto::default_instance() { | 5395 const OneofDescriptorProto& OneofDescriptorProto::default_instance() { |
| 5327 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 5396 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
| 5328 return *internal_default_instance(); | 5397 return *default_instance_; |
| 5329 } | 5398 } |
| 5330 | 5399 |
| 5400 OneofDescriptorProto* OneofDescriptorProto::default_instance_ = NULL; |
| 5401 |
| 5331 OneofDescriptorProto* OneofDescriptorProto::New(::google::protobuf::Arena* arena
) const { | 5402 OneofDescriptorProto* OneofDescriptorProto::New(::google::protobuf::Arena* arena
) const { |
| 5332 OneofDescriptorProto* n = new OneofDescriptorProto; | 5403 OneofDescriptorProto* n = new OneofDescriptorProto; |
| 5333 if (arena != NULL) { | 5404 if (arena != NULL) { |
| 5334 arena->Own(n); | 5405 arena->Own(n); |
| 5335 } | 5406 } |
| 5336 return n; | 5407 return n; |
| 5337 } | 5408 } |
| 5338 | 5409 |
| 5339 void OneofDescriptorProto::Clear() { | 5410 void OneofDescriptorProto::Clear() { |
| 5340 // @@protoc_insertion_point(message_clear_start:google.protobuf.OneofDescriptorP
roto) | 5411 // @@protoc_insertion_point(message_clear_start:google.protobuf.OneofDescriptorP
roto) |
| 5341 if (_has_bits_[0 / 32] & 3u) { | 5412 if (has_name()) { |
| 5342 if (has_name()) { | 5413 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
| 5343 GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited())); | |
| 5344 (*name_.UnsafeRawStringPointer())->clear(); | |
| 5345 } | |
| 5346 if (has_options()) { | |
| 5347 GOOGLE_DCHECK(options_ != NULL); | |
| 5348 options_->::google::protobuf::OneofOptions::Clear(); | |
| 5349 } | |
| 5350 } | 5414 } |
| 5351 _has_bits_.Clear(); | 5415 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 5352 _internal_metadata_.Clear(); | 5416 if (_internal_metadata_.have_unknown_fields()) { |
| 5417 mutable_unknown_fields()->Clear(); |
| 5418 } |
| 5353 } | 5419 } |
| 5354 | 5420 |
| 5355 bool OneofDescriptorProto::MergePartialFromCodedStream( | 5421 bool OneofDescriptorProto::MergePartialFromCodedStream( |
| 5356 ::google::protobuf::io::CodedInputStream* input) { | 5422 ::google::protobuf::io::CodedInputStream* input) { |
| 5357 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 5423 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 5358 ::google::protobuf::uint32 tag; | 5424 ::google::protobuf::uint32 tag; |
| 5359 // @@protoc_insertion_point(parse_start:google.protobuf.OneofDescriptorProto) | 5425 // @@protoc_insertion_point(parse_start:google.protobuf.OneofDescriptorProto) |
| 5360 for (;;) { | 5426 for (;;) { |
| 5361 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 5427 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
| 5362 tag = p.first; | 5428 tag = p.first; |
| 5363 if (!p.second) goto handle_unusual; | 5429 if (!p.second) goto handle_unusual; |
| 5364 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 5430 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
| 5365 // optional string name = 1; | 5431 // optional string name = 1; |
| 5366 case 1: { | 5432 case 1: { |
| 5367 if (tag == 10u) { | 5433 if (tag == 10) { |
| 5368 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 5434 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 5369 input, this->mutable_name())); | 5435 input, this->mutable_name())); |
| 5370 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 5436 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 5371 this->name().data(), this->name().length(), | 5437 this->name().data(), this->name().length(), |
| 5372 ::google::protobuf::internal::WireFormat::PARSE, | 5438 ::google::protobuf::internal::WireFormat::PARSE, |
| 5373 "google.protobuf.OneofDescriptorProto.name"); | 5439 "google.protobuf.OneofDescriptorProto.name"); |
| 5374 } else { | 5440 } else { |
| 5375 goto handle_unusual; | 5441 goto handle_unusual; |
| 5376 } | 5442 } |
| 5443 if (input->ExpectAtEnd()) goto success; |
| 5377 break; | 5444 break; |
| 5378 } | 5445 } |
| 5379 | 5446 |
| 5380 // optional .google.protobuf.OneofOptions options = 2; | |
| 5381 case 2: { | |
| 5382 if (tag == 18u) { | |
| 5383 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | |
| 5384 input, mutable_options())); | |
| 5385 } else { | |
| 5386 goto handle_unusual; | |
| 5387 } | |
| 5388 break; | |
| 5389 } | |
| 5390 | |
| 5391 default: { | 5447 default: { |
| 5392 handle_unusual: | 5448 handle_unusual: |
| 5393 if (tag == 0 || | 5449 if (tag == 0 || |
| 5394 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 5450 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 5395 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 5451 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 5396 goto success; | 5452 goto success; |
| 5397 } | 5453 } |
| 5398 DO_(::google::protobuf::internal::WireFormat::SkipField( | 5454 DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 5399 input, tag, mutable_unknown_fields())); | 5455 input, tag, mutable_unknown_fields())); |
| 5400 break; | 5456 break; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 5416 // optional string name = 1; | 5472 // optional string name = 1; |
| 5417 if (has_name()) { | 5473 if (has_name()) { |
| 5418 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 5474 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 5419 this->name().data(), this->name().length(), | 5475 this->name().data(), this->name().length(), |
| 5420 ::google::protobuf::internal::WireFormat::SERIALIZE, | 5476 ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 5421 "google.protobuf.OneofDescriptorProto.name"); | 5477 "google.protobuf.OneofDescriptorProto.name"); |
| 5422 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( | 5478 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 5423 1, this->name(), output); | 5479 1, this->name(), output); |
| 5424 } | 5480 } |
| 5425 | 5481 |
| 5426 // optional .google.protobuf.OneofOptions options = 2; | |
| 5427 if (has_options()) { | |
| 5428 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | |
| 5429 2, *this->options_, output); | |
| 5430 } | |
| 5431 | |
| 5432 if (_internal_metadata_.have_unknown_fields()) { | 5482 if (_internal_metadata_.have_unknown_fields()) { |
| 5433 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 5483 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 5434 unknown_fields(), output); | 5484 unknown_fields(), output); |
| 5435 } | 5485 } |
| 5436 // @@protoc_insertion_point(serialize_end:google.protobuf.OneofDescriptorProto
) | 5486 // @@protoc_insertion_point(serialize_end:google.protobuf.OneofDescriptorProto
) |
| 5437 } | 5487 } |
| 5438 | 5488 |
| 5439 ::google::protobuf::uint8* OneofDescriptorProto::InternalSerializeWithCachedSize
sToArray( | 5489 ::google::protobuf::uint8* OneofDescriptorProto::SerializeWithCachedSizesToArray
( |
| 5440 bool deterministic, ::google::protobuf::uint8* target) const { | 5490 ::google::protobuf::uint8* target) const { |
| 5441 (void)deterministic; // Unused | |
| 5442 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.OneofDesc
riptorProto) | 5491 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.OneofDesc
riptorProto) |
| 5443 // optional string name = 1; | 5492 // optional string name = 1; |
| 5444 if (has_name()) { | 5493 if (has_name()) { |
| 5445 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 5494 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 5446 this->name().data(), this->name().length(), | 5495 this->name().data(), this->name().length(), |
| 5447 ::google::protobuf::internal::WireFormat::SERIALIZE, | 5496 ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 5448 "google.protobuf.OneofDescriptorProto.name"); | 5497 "google.protobuf.OneofDescriptorProto.name"); |
| 5449 target = | 5498 target = |
| 5450 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 5499 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 5451 1, this->name(), target); | 5500 1, this->name(), target); |
| 5452 } | 5501 } |
| 5453 | 5502 |
| 5454 // optional .google.protobuf.OneofOptions options = 2; | |
| 5455 if (has_options()) { | |
| 5456 target = ::google::protobuf::internal::WireFormatLite:: | |
| 5457 InternalWriteMessageNoVirtualToArray( | |
| 5458 2, *this->options_, false, target); | |
| 5459 } | |
| 5460 | |
| 5461 if (_internal_metadata_.have_unknown_fields()) { | 5503 if (_internal_metadata_.have_unknown_fields()) { |
| 5462 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 5504 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
| 5463 unknown_fields(), target); | 5505 unknown_fields(), target); |
| 5464 } | 5506 } |
| 5465 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.OneofDescri
ptorProto) | 5507 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.OneofDescri
ptorProto) |
| 5466 return target; | 5508 return target; |
| 5467 } | 5509 } |
| 5468 | 5510 |
| 5469 size_t OneofDescriptorProto::ByteSizeLong() const { | 5511 int OneofDescriptorProto::ByteSize() const { |
| 5470 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.OneofDescrip
torProto) | 5512 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.OneofDescrip
torProto) |
| 5471 size_t total_size = 0; | 5513 int total_size = 0; |
| 5514 |
| 5515 // optional string name = 1; |
| 5516 if (has_name()) { |
| 5517 total_size += 1 + |
| 5518 ::google::protobuf::internal::WireFormatLite::StringSize( |
| 5519 this->name()); |
| 5520 } |
| 5472 | 5521 |
| 5473 if (_internal_metadata_.have_unknown_fields()) { | 5522 if (_internal_metadata_.have_unknown_fields()) { |
| 5474 total_size += | 5523 total_size += |
| 5475 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | 5524 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 5476 unknown_fields()); | 5525 unknown_fields()); |
| 5477 } | 5526 } |
| 5478 if (_has_bits_[0 / 32] & 3u) { | |
| 5479 // optional string name = 1; | |
| 5480 if (has_name()) { | |
| 5481 total_size += 1 + | |
| 5482 ::google::protobuf::internal::WireFormatLite::StringSize( | |
| 5483 this->name()); | |
| 5484 } | |
| 5485 | |
| 5486 // optional .google.protobuf.OneofOptions options = 2; | |
| 5487 if (has_options()) { | |
| 5488 total_size += 1 + | |
| 5489 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
| 5490 *this->options_); | |
| 5491 } | |
| 5492 | |
| 5493 } | |
| 5494 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | |
| 5495 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 5527 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 5496 _cached_size_ = cached_size; | 5528 _cached_size_ = total_size; |
| 5497 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 5529 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 5498 return total_size; | 5530 return total_size; |
| 5499 } | 5531 } |
| 5500 | 5532 |
| 5501 void OneofDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { | 5533 void OneofDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
| 5502 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.OneofDe
scriptorProto) | 5534 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.OneofDe
scriptorProto) |
| 5503 GOOGLE_DCHECK_NE(&from, this); | 5535 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 5504 const OneofDescriptorProto* source = | 5536 const OneofDescriptorProto* source = |
| 5505 ::google::protobuf::internal::DynamicCastToGenerated<const OneofDescriptor
Proto>( | 5537 ::google::protobuf::internal::DynamicCastToGenerated<const OneofDescriptor
Proto>( |
| 5506 &from); | 5538 &from); |
| 5507 if (source == NULL) { | 5539 if (source == NULL) { |
| 5508 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.O
neofDescriptorProto) | 5540 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.O
neofDescriptorProto) |
| 5509 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 5541 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 5510 } else { | 5542 } else { |
| 5511 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.OneofDescriptorProto) | 5543 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.OneofDescriptorProto) |
| 5512 MergeFrom(*source); | 5544 MergeFrom(*source); |
| 5513 } | 5545 } |
| 5514 } | 5546 } |
| 5515 | 5547 |
| 5516 void OneofDescriptorProto::MergeFrom(const OneofDescriptorProto& from) { | 5548 void OneofDescriptorProto::MergeFrom(const OneofDescriptorProto& from) { |
| 5517 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Oneo
fDescriptorProto) | 5549 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Oneo
fDescriptorProto) |
| 5518 GOOGLE_DCHECK_NE(&from, this); | 5550 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 5519 _internal_metadata_.MergeFrom(from._internal_metadata_); | 5551 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 5520 if (from._has_bits_[0 / 32] & 3u) { | |
| 5521 if (from.has_name()) { | 5552 if (from.has_name()) { |
| 5522 set_has_name(); | 5553 set_has_name(); |
| 5523 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), from.name_); | 5554 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), from.name_); |
| 5524 } | 5555 } |
| 5525 if (from.has_options()) { | 5556 } |
| 5526 mutable_options()->::google::protobuf::OneofOptions::MergeFrom(from.option
s()); | 5557 if (from._internal_metadata_.have_unknown_fields()) { |
| 5527 } | 5558 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 5528 } | 5559 } |
| 5529 } | 5560 } |
| 5530 | 5561 |
| 5531 void OneofDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { | 5562 void OneofDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { |
| 5532 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.OneofDes
criptorProto) | 5563 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.OneofDes
criptorProto) |
| 5533 if (&from == this) return; | 5564 if (&from == this) return; |
| 5534 Clear(); | 5565 Clear(); |
| 5535 MergeFrom(from); | 5566 MergeFrom(from); |
| 5536 } | 5567 } |
| 5537 | 5568 |
| 5538 void OneofDescriptorProto::CopyFrom(const OneofDescriptorProto& from) { | 5569 void OneofDescriptorProto::CopyFrom(const OneofDescriptorProto& from) { |
| 5539 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Oneof
DescriptorProto) | 5570 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Oneof
DescriptorProto) |
| 5540 if (&from == this) return; | 5571 if (&from == this) return; |
| 5541 Clear(); | 5572 Clear(); |
| 5542 MergeFrom(from); | 5573 MergeFrom(from); |
| 5543 } | 5574 } |
| 5544 | 5575 |
| 5545 bool OneofDescriptorProto::IsInitialized() const { | 5576 bool OneofDescriptorProto::IsInitialized() const { |
| 5546 if (has_options()) { | 5577 |
| 5547 if (!this->options_->IsInitialized()) return false; | |
| 5548 } | |
| 5549 return true; | 5578 return true; |
| 5550 } | 5579 } |
| 5551 | 5580 |
| 5552 void OneofDescriptorProto::Swap(OneofDescriptorProto* other) { | 5581 void OneofDescriptorProto::Swap(OneofDescriptorProto* other) { |
| 5553 if (other == this) return; | 5582 if (other == this) return; |
| 5554 InternalSwap(other); | 5583 InternalSwap(other); |
| 5555 } | 5584 } |
| 5556 void OneofDescriptorProto::InternalSwap(OneofDescriptorProto* other) { | 5585 void OneofDescriptorProto::InternalSwap(OneofDescriptorProto* other) { |
| 5557 name_.Swap(&other->name_); | 5586 name_.Swap(&other->name_); |
| 5558 std::swap(options_, other->options_); | |
| 5559 std::swap(_has_bits_[0], other->_has_bits_[0]); | 5587 std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 5560 _internal_metadata_.Swap(&other->_internal_metadata_); | 5588 _internal_metadata_.Swap(&other->_internal_metadata_); |
| 5561 std::swap(_cached_size_, other->_cached_size_); | 5589 std::swap(_cached_size_, other->_cached_size_); |
| 5562 } | 5590 } |
| 5563 | 5591 |
| 5564 ::google::protobuf::Metadata OneofDescriptorProto::GetMetadata() const { | 5592 ::google::protobuf::Metadata OneofDescriptorProto::GetMetadata() const { |
| 5565 protobuf_AssignDescriptorsOnce(); | 5593 protobuf_AssignDescriptorsOnce(); |
| 5566 return file_level_metadata[6]; | 5594 ::google::protobuf::Metadata metadata; |
| 5595 metadata.descriptor = OneofDescriptorProto_descriptor_; |
| 5596 metadata.reflection = OneofDescriptorProto_reflection_; |
| 5597 return metadata; |
| 5567 } | 5598 } |
| 5568 | 5599 |
| 5569 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 5600 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 5570 // OneofDescriptorProto | 5601 // OneofDescriptorProto |
| 5571 | 5602 |
| 5572 // optional string name = 1; | 5603 // optional string name = 1; |
| 5573 bool OneofDescriptorProto::has_name() const { | 5604 bool OneofDescriptorProto::has_name() const { |
| 5574 return (_has_bits_[0] & 0x00000001u) != 0; | 5605 return (_has_bits_[0] & 0x00000001u) != 0; |
| 5575 } | 5606 } |
| 5576 void OneofDescriptorProto::set_has_name() { | 5607 void OneofDescriptorProto::set_has_name() { |
| 5577 _has_bits_[0] |= 0x00000001u; | 5608 _has_bits_[0] |= 0x00000001u; |
| 5578 } | 5609 } |
| 5579 void OneofDescriptorProto::clear_has_name() { | 5610 void OneofDescriptorProto::clear_has_name() { |
| 5580 _has_bits_[0] &= ~0x00000001u; | 5611 _has_bits_[0] &= ~0x00000001u; |
| 5581 } | 5612 } |
| 5582 void OneofDescriptorProto::clear_name() { | 5613 void OneofDescriptorProto::clear_name() { |
| 5583 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); | 5614 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); |
| 5584 clear_has_name(); | 5615 clear_has_name(); |
| 5585 } | 5616 } |
| 5586 const ::std::string& OneofDescriptorProto::name() const { | 5617 const ::std::string& OneofDescriptorProto::name() const { |
| 5587 // @@protoc_insertion_point(field_get:google.protobuf.OneofDescriptorProto.nam
e) | 5618 // @@protoc_insertion_point(field_get:google.protobuf.OneofDescriptorProto.nam
e) |
| 5588 return name_.GetNoArena(); | 5619 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited()); |
| 5589 } | 5620 } |
| 5590 void OneofDescriptorProto::set_name(const ::std::string& value) { | 5621 void OneofDescriptorProto::set_name(const ::std::string& value) { |
| 5591 set_has_name(); | 5622 set_has_name(); |
| 5592 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); | 5623 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); |
| 5593 // @@protoc_insertion_point(field_set:google.protobuf.OneofDescriptorProto.nam
e) | 5624 // @@protoc_insertion_point(field_set:google.protobuf.OneofDescriptorProto.nam
e) |
| 5594 } | 5625 } |
| 5595 void OneofDescriptorProto::set_name(const char* value) { | 5626 void OneofDescriptorProto::set_name(const char* value) { |
| 5596 set_has_name(); | 5627 set_has_name(); |
| 5597 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); | 5628 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); |
| 5598 // @@protoc_insertion_point(field_set_char:google.protobuf.OneofDescriptorProt
o.name) | 5629 // @@protoc_insertion_point(field_set_char:google.protobuf.OneofDescriptorProt
o.name) |
| 5599 } | 5630 } |
| 5600 void OneofDescriptorProto::set_name(const char* value, size_t size) { | 5631 void OneofDescriptorProto::set_name(const char* value, size_t size) { |
| 5601 set_has_name(); | 5632 set_has_name(); |
| 5602 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), | 5633 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 5603 ::std::string(reinterpret_cast<const char*>(value), size)); | 5634 ::std::string(reinterpret_cast<const char*>(value), size)); |
| 5604 // @@protoc_insertion_point(field_set_pointer:google.protobuf.OneofDescriptorP
roto.name) | 5635 // @@protoc_insertion_point(field_set_pointer:google.protobuf.OneofDescriptorP
roto.name) |
| 5605 } | 5636 } |
| 5606 ::std::string* OneofDescriptorProto::mutable_name() { | 5637 ::std::string* OneofDescriptorProto::mutable_name() { |
| 5607 set_has_name(); | 5638 set_has_name(); |
| 5608 // @@protoc_insertion_point(field_mutable:google.protobuf.OneofDescriptorProto
.name) | 5639 // @@protoc_insertion_point(field_mutable:google.protobuf.OneofDescriptorProto
.name) |
| 5609 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 5640 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
| 5610 } | 5641 } |
| 5611 ::std::string* OneofDescriptorProto::release_name() { | 5642 ::std::string* OneofDescriptorProto::release_name() { |
| 5612 // @@protoc_insertion_point(field_release:google.protobuf.OneofDescriptorProto
.name) | 5643 // @@protoc_insertion_point(field_release:google.protobuf.OneofDescriptorProto
.name) |
| 5613 clear_has_name(); | 5644 clear_has_name(); |
| 5614 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 5645 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
| 5615 } | 5646 } |
| 5616 void OneofDescriptorProto::set_allocated_name(::std::string* name) { | 5647 void OneofDescriptorProto::set_allocated_name(::std::string* name) { |
| 5617 if (name != NULL) { | 5648 if (name != NULL) { |
| 5618 set_has_name(); | 5649 set_has_name(); |
| 5619 } else { | 5650 } else { |
| 5620 clear_has_name(); | 5651 clear_has_name(); |
| 5621 } | 5652 } |
| 5622 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), name); | 5653 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), name); |
| 5623 // @@protoc_insertion_point(field_set_allocated:google.protobuf.OneofDescripto
rProto.name) | 5654 // @@protoc_insertion_point(field_set_allocated:google.protobuf.OneofDescripto
rProto.name) |
| 5624 } | 5655 } |
| 5625 | 5656 |
| 5626 // optional .google.protobuf.OneofOptions options = 2; | |
| 5627 bool OneofDescriptorProto::has_options() const { | |
| 5628 return (_has_bits_[0] & 0x00000002u) != 0; | |
| 5629 } | |
| 5630 void OneofDescriptorProto::set_has_options() { | |
| 5631 _has_bits_[0] |= 0x00000002u; | |
| 5632 } | |
| 5633 void OneofDescriptorProto::clear_has_options() { | |
| 5634 _has_bits_[0] &= ~0x00000002u; | |
| 5635 } | |
| 5636 void OneofDescriptorProto::clear_options() { | |
| 5637 if (options_ != NULL) options_->::google::protobuf::OneofOptions::Clear(); | |
| 5638 clear_has_options(); | |
| 5639 } | |
| 5640 const ::google::protobuf::OneofOptions& OneofDescriptorProto::options() const { | |
| 5641 // @@protoc_insertion_point(field_get:google.protobuf.OneofDescriptorProto.opt
ions) | |
| 5642 return options_ != NULL ? *options_ | |
| 5643 : *::google::protobuf::OneofOptions::internal_default_i
nstance(); | |
| 5644 } | |
| 5645 ::google::protobuf::OneofOptions* OneofDescriptorProto::mutable_options() { | |
| 5646 set_has_options(); | |
| 5647 if (options_ == NULL) { | |
| 5648 options_ = new ::google::protobuf::OneofOptions; | |
| 5649 } | |
| 5650 // @@protoc_insertion_point(field_mutable:google.protobuf.OneofDescriptorProto
.options) | |
| 5651 return options_; | |
| 5652 } | |
| 5653 ::google::protobuf::OneofOptions* OneofDescriptorProto::release_options() { | |
| 5654 // @@protoc_insertion_point(field_release:google.protobuf.OneofDescriptorProto
.options) | |
| 5655 clear_has_options(); | |
| 5656 ::google::protobuf::OneofOptions* temp = options_; | |
| 5657 options_ = NULL; | |
| 5658 return temp; | |
| 5659 } | |
| 5660 void OneofDescriptorProto::set_allocated_options(::google::protobuf::OneofOption
s* options) { | |
| 5661 delete options_; | |
| 5662 options_ = options; | |
| 5663 if (options) { | |
| 5664 set_has_options(); | |
| 5665 } else { | |
| 5666 clear_has_options(); | |
| 5667 } | |
| 5668 // @@protoc_insertion_point(field_set_allocated:google.protobuf.OneofDescripto
rProto.options) | |
| 5669 } | |
| 5670 | |
| 5671 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 5657 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 5672 | 5658 |
| 5673 // =================================================================== | 5659 // =================================================================== |
| 5674 | 5660 |
| 5675 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 5661 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5676 const int EnumDescriptorProto::kNameFieldNumber; | 5662 const int EnumDescriptorProto::kNameFieldNumber; |
| 5677 const int EnumDescriptorProto::kValueFieldNumber; | 5663 const int EnumDescriptorProto::kValueFieldNumber; |
| 5678 const int EnumDescriptorProto::kOptionsFieldNumber; | 5664 const int EnumDescriptorProto::kOptionsFieldNumber; |
| 5679 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 5665 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5680 | 5666 |
| 5681 EnumDescriptorProto::EnumDescriptorProto() | 5667 EnumDescriptorProto::EnumDescriptorProto() |
| 5682 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 5668 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 5683 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
| 5684 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
| 5685 } | |
| 5686 SharedCtor(); | 5669 SharedCtor(); |
| 5687 // @@protoc_insertion_point(constructor:google.protobuf.EnumDescriptorProto) | 5670 // @@protoc_insertion_point(constructor:google.protobuf.EnumDescriptorProto) |
| 5688 } | 5671 } |
| 5672 |
| 5673 void EnumDescriptorProto::InitAsDefaultInstance() { |
| 5674 options_ = const_cast< ::google::protobuf::EnumOptions*>(&::google::protobuf::
EnumOptions::default_instance()); |
| 5675 } |
| 5676 |
| 5689 EnumDescriptorProto::EnumDescriptorProto(const EnumDescriptorProto& from) | 5677 EnumDescriptorProto::EnumDescriptorProto(const EnumDescriptorProto& from) |
| 5690 : ::google::protobuf::Message(), | 5678 : ::google::protobuf::Message(), |
| 5691 _internal_metadata_(NULL), | 5679 _internal_metadata_(NULL) { |
| 5692 _has_bits_(from._has_bits_), | 5680 SharedCtor(); |
| 5693 _cached_size_(0), | 5681 MergeFrom(from); |
| 5694 value_(from.value_) { | |
| 5695 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 5696 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); | |
| 5697 if (from.has_name()) { | |
| 5698 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), from.name_); | |
| 5699 } | |
| 5700 if (from.has_options()) { | |
| 5701 options_ = new ::google::protobuf::EnumOptions(*from.options_); | |
| 5702 } else { | |
| 5703 options_ = NULL; | |
| 5704 } | |
| 5705 // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumDescriptorPro
to) | 5682 // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumDescriptorPro
to) |
| 5706 } | 5683 } |
| 5707 | 5684 |
| 5708 void EnumDescriptorProto::SharedCtor() { | 5685 void EnumDescriptorProto::SharedCtor() { |
| 5686 ::google::protobuf::internal::GetEmptyString(); |
| 5709 _cached_size_ = 0; | 5687 _cached_size_ = 0; |
| 5710 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); | 5688 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); |
| 5711 options_ = NULL; | 5689 options_ = NULL; |
| 5690 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 5712 } | 5691 } |
| 5713 | 5692 |
| 5714 EnumDescriptorProto::~EnumDescriptorProto() { | 5693 EnumDescriptorProto::~EnumDescriptorProto() { |
| 5715 // @@protoc_insertion_point(destructor:google.protobuf.EnumDescriptorProto) | 5694 // @@protoc_insertion_point(destructor:google.protobuf.EnumDescriptorProto) |
| 5716 SharedDtor(); | 5695 SharedDtor(); |
| 5717 } | 5696 } |
| 5718 | 5697 |
| 5719 void EnumDescriptorProto::SharedDtor() { | 5698 void EnumDescriptorProto::SharedDtor() { |
| 5720 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d()); | 5699 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d()); |
| 5721 if (this != internal_default_instance()) { | 5700 if (this != default_instance_) { |
| 5722 delete options_; | 5701 delete options_; |
| 5723 } | 5702 } |
| 5724 } | 5703 } |
| 5725 | 5704 |
| 5726 void EnumDescriptorProto::SetCachedSize(int size) const { | 5705 void EnumDescriptorProto::SetCachedSize(int size) const { |
| 5727 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 5706 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 5728 _cached_size_ = size; | 5707 _cached_size_ = size; |
| 5729 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 5708 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 5730 } | 5709 } |
| 5731 const ::google::protobuf::Descriptor* EnumDescriptorProto::descriptor() { | 5710 const ::google::protobuf::Descriptor* EnumDescriptorProto::descriptor() { |
| 5732 protobuf_AssignDescriptorsOnce(); | 5711 protobuf_AssignDescriptorsOnce(); |
| 5733 return file_level_metadata[7].descriptor; | 5712 return EnumDescriptorProto_descriptor_; |
| 5734 } | 5713 } |
| 5735 | 5714 |
| 5736 const EnumDescriptorProto& EnumDescriptorProto::default_instance() { | 5715 const EnumDescriptorProto& EnumDescriptorProto::default_instance() { |
| 5737 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 5716 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
| 5738 return *internal_default_instance(); | 5717 return *default_instance_; |
| 5739 } | 5718 } |
| 5740 | 5719 |
| 5720 EnumDescriptorProto* EnumDescriptorProto::default_instance_ = NULL; |
| 5721 |
| 5741 EnumDescriptorProto* EnumDescriptorProto::New(::google::protobuf::Arena* arena)
const { | 5722 EnumDescriptorProto* EnumDescriptorProto::New(::google::protobuf::Arena* arena)
const { |
| 5742 EnumDescriptorProto* n = new EnumDescriptorProto; | 5723 EnumDescriptorProto* n = new EnumDescriptorProto; |
| 5743 if (arena != NULL) { | 5724 if (arena != NULL) { |
| 5744 arena->Own(n); | 5725 arena->Own(n); |
| 5745 } | 5726 } |
| 5746 return n; | 5727 return n; |
| 5747 } | 5728 } |
| 5748 | 5729 |
| 5749 void EnumDescriptorProto::Clear() { | 5730 void EnumDescriptorProto::Clear() { |
| 5750 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumDescriptorPr
oto) | 5731 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumDescriptorPr
oto) |
| 5751 value_.Clear(); | 5732 if (_has_bits_[0 / 32] & 5u) { |
| 5752 if (_has_bits_[0 / 32] & 3u) { | |
| 5753 if (has_name()) { | 5733 if (has_name()) { |
| 5754 GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited())); | 5734 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); |
| 5755 (*name_.UnsafeRawStringPointer())->clear(); | |
| 5756 } | 5735 } |
| 5757 if (has_options()) { | 5736 if (has_options()) { |
| 5758 GOOGLE_DCHECK(options_ != NULL); | 5737 if (options_ != NULL) options_->::google::protobuf::EnumOptions::Clear(); |
| 5759 options_->::google::protobuf::EnumOptions::Clear(); | |
| 5760 } | 5738 } |
| 5761 } | 5739 } |
| 5762 _has_bits_.Clear(); | 5740 value_.Clear(); |
| 5763 _internal_metadata_.Clear(); | 5741 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 5742 if (_internal_metadata_.have_unknown_fields()) { |
| 5743 mutable_unknown_fields()->Clear(); |
| 5744 } |
| 5764 } | 5745 } |
| 5765 | 5746 |
| 5766 bool EnumDescriptorProto::MergePartialFromCodedStream( | 5747 bool EnumDescriptorProto::MergePartialFromCodedStream( |
| 5767 ::google::protobuf::io::CodedInputStream* input) { | 5748 ::google::protobuf::io::CodedInputStream* input) { |
| 5768 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 5749 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 5769 ::google::protobuf::uint32 tag; | 5750 ::google::protobuf::uint32 tag; |
| 5770 // @@protoc_insertion_point(parse_start:google.protobuf.EnumDescriptorProto) | 5751 // @@protoc_insertion_point(parse_start:google.protobuf.EnumDescriptorProto) |
| 5771 for (;;) { | 5752 for (;;) { |
| 5772 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 5753 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
| 5773 tag = p.first; | 5754 tag = p.first; |
| 5774 if (!p.second) goto handle_unusual; | 5755 if (!p.second) goto handle_unusual; |
| 5775 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 5756 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
| 5776 // optional string name = 1; | 5757 // optional string name = 1; |
| 5777 case 1: { | 5758 case 1: { |
| 5778 if (tag == 10u) { | 5759 if (tag == 10) { |
| 5779 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 5760 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 5780 input, this->mutable_name())); | 5761 input, this->mutable_name())); |
| 5781 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 5762 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 5782 this->name().data(), this->name().length(), | 5763 this->name().data(), this->name().length(), |
| 5783 ::google::protobuf::internal::WireFormat::PARSE, | 5764 ::google::protobuf::internal::WireFormat::PARSE, |
| 5784 "google.protobuf.EnumDescriptorProto.name"); | 5765 "google.protobuf.EnumDescriptorProto.name"); |
| 5785 } else { | 5766 } else { |
| 5786 goto handle_unusual; | 5767 goto handle_unusual; |
| 5787 } | 5768 } |
| 5769 if (input->ExpectTag(18)) goto parse_value; |
| 5788 break; | 5770 break; |
| 5789 } | 5771 } |
| 5790 | 5772 |
| 5791 // repeated .google.protobuf.EnumValueDescriptorProto value = 2; | 5773 // repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
| 5792 case 2: { | 5774 case 2: { |
| 5793 if (tag == 18u) { | 5775 if (tag == 18) { |
| 5776 parse_value: |
| 5794 DO_(input->IncrementRecursionDepth()); | 5777 DO_(input->IncrementRecursionDepth()); |
| 5778 parse_loop_value: |
| 5795 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 5779 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
| 5796 input, add_value())); | 5780 input, add_value())); |
| 5797 } else { | 5781 } else { |
| 5798 goto handle_unusual; | 5782 goto handle_unusual; |
| 5799 } | 5783 } |
| 5784 if (input->ExpectTag(18)) goto parse_loop_value; |
| 5800 input->UnsafeDecrementRecursionDepth(); | 5785 input->UnsafeDecrementRecursionDepth(); |
| 5786 if (input->ExpectTag(26)) goto parse_options; |
| 5801 break; | 5787 break; |
| 5802 } | 5788 } |
| 5803 | 5789 |
| 5804 // optional .google.protobuf.EnumOptions options = 3; | 5790 // optional .google.protobuf.EnumOptions options = 3; |
| 5805 case 3: { | 5791 case 3: { |
| 5806 if (tag == 26u) { | 5792 if (tag == 26) { |
| 5793 parse_options: |
| 5807 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 5794 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
| 5808 input, mutable_options())); | 5795 input, mutable_options())); |
| 5809 } else { | 5796 } else { |
| 5810 goto handle_unusual; | 5797 goto handle_unusual; |
| 5811 } | 5798 } |
| 5799 if (input->ExpectAtEnd()) goto success; |
| 5812 break; | 5800 break; |
| 5813 } | 5801 } |
| 5814 | 5802 |
| 5815 default: { | 5803 default: { |
| 5816 handle_unusual: | 5804 handle_unusual: |
| 5817 if (tag == 0 || | 5805 if (tag == 0 || |
| 5818 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 5806 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 5819 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 5807 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 5820 goto success; | 5808 goto success; |
| 5821 } | 5809 } |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5859 3, *this->options_, output); | 5847 3, *this->options_, output); |
| 5860 } | 5848 } |
| 5861 | 5849 |
| 5862 if (_internal_metadata_.have_unknown_fields()) { | 5850 if (_internal_metadata_.have_unknown_fields()) { |
| 5863 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 5851 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 5864 unknown_fields(), output); | 5852 unknown_fields(), output); |
| 5865 } | 5853 } |
| 5866 // @@protoc_insertion_point(serialize_end:google.protobuf.EnumDescriptorProto) | 5854 // @@protoc_insertion_point(serialize_end:google.protobuf.EnumDescriptorProto) |
| 5867 } | 5855 } |
| 5868 | 5856 |
| 5869 ::google::protobuf::uint8* EnumDescriptorProto::InternalSerializeWithCachedSizes
ToArray( | 5857 ::google::protobuf::uint8* EnumDescriptorProto::SerializeWithCachedSizesToArray( |
| 5870 bool deterministic, ::google::protobuf::uint8* target) const { | 5858 ::google::protobuf::uint8* target) const { |
| 5871 (void)deterministic; // Unused | |
| 5872 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumDescr
iptorProto) | 5859 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumDescr
iptorProto) |
| 5873 // optional string name = 1; | 5860 // optional string name = 1; |
| 5874 if (has_name()) { | 5861 if (has_name()) { |
| 5875 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 5862 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 5876 this->name().data(), this->name().length(), | 5863 this->name().data(), this->name().length(), |
| 5877 ::google::protobuf::internal::WireFormat::SERIALIZE, | 5864 ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 5878 "google.protobuf.EnumDescriptorProto.name"); | 5865 "google.protobuf.EnumDescriptorProto.name"); |
| 5879 target = | 5866 target = |
| 5880 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 5867 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 5881 1, this->name(), target); | 5868 1, this->name(), target); |
| 5882 } | 5869 } |
| 5883 | 5870 |
| 5884 // repeated .google.protobuf.EnumValueDescriptorProto value = 2; | 5871 // repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
| 5885 for (unsigned int i = 0, n = this->value_size(); i < n; i++) { | 5872 for (unsigned int i = 0, n = this->value_size(); i < n; i++) { |
| 5886 target = ::google::protobuf::internal::WireFormatLite:: | 5873 target = ::google::protobuf::internal::WireFormatLite:: |
| 5887 InternalWriteMessageNoVirtualToArray( | 5874 WriteMessageNoVirtualToArray( |
| 5888 2, this->value(i), false, target); | 5875 2, this->value(i), target); |
| 5889 } | 5876 } |
| 5890 | 5877 |
| 5891 // optional .google.protobuf.EnumOptions options = 3; | 5878 // optional .google.protobuf.EnumOptions options = 3; |
| 5892 if (has_options()) { | 5879 if (has_options()) { |
| 5893 target = ::google::protobuf::internal::WireFormatLite:: | 5880 target = ::google::protobuf::internal::WireFormatLite:: |
| 5894 InternalWriteMessageNoVirtualToArray( | 5881 WriteMessageNoVirtualToArray( |
| 5895 3, *this->options_, false, target); | 5882 3, *this->options_, target); |
| 5896 } | 5883 } |
| 5897 | 5884 |
| 5898 if (_internal_metadata_.have_unknown_fields()) { | 5885 if (_internal_metadata_.have_unknown_fields()) { |
| 5899 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 5886 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
| 5900 unknown_fields(), target); | 5887 unknown_fields(), target); |
| 5901 } | 5888 } |
| 5902 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumDescrip
torProto) | 5889 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumDescrip
torProto) |
| 5903 return target; | 5890 return target; |
| 5904 } | 5891 } |
| 5905 | 5892 |
| 5906 size_t EnumDescriptorProto::ByteSizeLong() const { | 5893 int EnumDescriptorProto::ByteSize() const { |
| 5907 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumDescript
orProto) | 5894 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumDescript
orProto) |
| 5908 size_t total_size = 0; | 5895 int total_size = 0; |
| 5909 | 5896 |
| 5910 if (_internal_metadata_.have_unknown_fields()) { | 5897 if (_has_bits_[0 / 32] & 5u) { |
| 5911 total_size += | |
| 5912 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | |
| 5913 unknown_fields()); | |
| 5914 } | |
| 5915 // repeated .google.protobuf.EnumValueDescriptorProto value = 2; | |
| 5916 { | |
| 5917 unsigned int count = this->value_size(); | |
| 5918 total_size += 1UL * count; | |
| 5919 for (unsigned int i = 0; i < count; i++) { | |
| 5920 total_size += | |
| 5921 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
| 5922 this->value(i)); | |
| 5923 } | |
| 5924 } | |
| 5925 | |
| 5926 if (_has_bits_[0 / 32] & 3u) { | |
| 5927 // optional string name = 1; | 5898 // optional string name = 1; |
| 5928 if (has_name()) { | 5899 if (has_name()) { |
| 5929 total_size += 1 + | 5900 total_size += 1 + |
| 5930 ::google::protobuf::internal::WireFormatLite::StringSize( | 5901 ::google::protobuf::internal::WireFormatLite::StringSize( |
| 5931 this->name()); | 5902 this->name()); |
| 5932 } | 5903 } |
| 5933 | 5904 |
| 5934 // optional .google.protobuf.EnumOptions options = 3; | 5905 // optional .google.protobuf.EnumOptions options = 3; |
| 5935 if (has_options()) { | 5906 if (has_options()) { |
| 5936 total_size += 1 + | 5907 total_size += 1 + |
| 5937 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | 5908 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 5938 *this->options_); | 5909 *this->options_); |
| 5939 } | 5910 } |
| 5940 | 5911 |
| 5941 } | 5912 } |
| 5942 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | 5913 // repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
| 5914 total_size += 1 * this->value_size(); |
| 5915 for (int i = 0; i < this->value_size(); i++) { |
| 5916 total_size += |
| 5917 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 5918 this->value(i)); |
| 5919 } |
| 5920 |
| 5921 if (_internal_metadata_.have_unknown_fields()) { |
| 5922 total_size += |
| 5923 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 5924 unknown_fields()); |
| 5925 } |
| 5943 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 5926 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 5944 _cached_size_ = cached_size; | 5927 _cached_size_ = total_size; |
| 5945 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 5928 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 5946 return total_size; | 5929 return total_size; |
| 5947 } | 5930 } |
| 5948 | 5931 |
| 5949 void EnumDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { | 5932 void EnumDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
| 5950 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumDes
criptorProto) | 5933 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumDes
criptorProto) |
| 5951 GOOGLE_DCHECK_NE(&from, this); | 5934 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 5952 const EnumDescriptorProto* source = | 5935 const EnumDescriptorProto* source = |
| 5953 ::google::protobuf::internal::DynamicCastToGenerated<const EnumDescriptorP
roto>( | 5936 ::google::protobuf::internal::DynamicCastToGenerated<const EnumDescriptorP
roto>( |
| 5954 &from); | 5937 &from); |
| 5955 if (source == NULL) { | 5938 if (source == NULL) { |
| 5956 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.E
numDescriptorProto) | 5939 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.E
numDescriptorProto) |
| 5957 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 5940 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 5958 } else { | 5941 } else { |
| 5959 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.EnumDescriptorProto) | 5942 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.EnumDescriptorProto) |
| 5960 MergeFrom(*source); | 5943 MergeFrom(*source); |
| 5961 } | 5944 } |
| 5962 } | 5945 } |
| 5963 | 5946 |
| 5964 void EnumDescriptorProto::MergeFrom(const EnumDescriptorProto& from) { | 5947 void EnumDescriptorProto::MergeFrom(const EnumDescriptorProto& from) { |
| 5965 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Enum
DescriptorProto) | 5948 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Enum
DescriptorProto) |
| 5966 GOOGLE_DCHECK_NE(&from, this); | 5949 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 5967 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 5968 value_.MergeFrom(from.value_); | 5950 value_.MergeFrom(from.value_); |
| 5969 if (from._has_bits_[0 / 32] & 3u) { | 5951 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 5970 if (from.has_name()) { | 5952 if (from.has_name()) { |
| 5971 set_has_name(); | 5953 set_has_name(); |
| 5972 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), from.name_); | 5954 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), from.name_); |
| 5973 } | 5955 } |
| 5974 if (from.has_options()) { | 5956 if (from.has_options()) { |
| 5975 mutable_options()->::google::protobuf::EnumOptions::MergeFrom(from.options
()); | 5957 mutable_options()->::google::protobuf::EnumOptions::MergeFrom(from.options
()); |
| 5976 } | 5958 } |
| 5977 } | 5959 } |
| 5960 if (from._internal_metadata_.have_unknown_fields()) { |
| 5961 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 5962 } |
| 5978 } | 5963 } |
| 5979 | 5964 |
| 5980 void EnumDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { | 5965 void EnumDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { |
| 5981 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumDesc
riptorProto) | 5966 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumDesc
riptorProto) |
| 5982 if (&from == this) return; | 5967 if (&from == this) return; |
| 5983 Clear(); | 5968 Clear(); |
| 5984 MergeFrom(from); | 5969 MergeFrom(from); |
| 5985 } | 5970 } |
| 5986 | 5971 |
| 5987 void EnumDescriptorProto::CopyFrom(const EnumDescriptorProto& from) { | 5972 void EnumDescriptorProto::CopyFrom(const EnumDescriptorProto& from) { |
| 5988 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumD
escriptorProto) | 5973 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumD
escriptorProto) |
| 5989 if (&from == this) return; | 5974 if (&from == this) return; |
| 5990 Clear(); | 5975 Clear(); |
| 5991 MergeFrom(from); | 5976 MergeFrom(from); |
| 5992 } | 5977 } |
| 5993 | 5978 |
| 5994 bool EnumDescriptorProto::IsInitialized() const { | 5979 bool EnumDescriptorProto::IsInitialized() const { |
| 5980 |
| 5995 if (!::google::protobuf::internal::AllAreInitialized(this->value())) return fa
lse; | 5981 if (!::google::protobuf::internal::AllAreInitialized(this->value())) return fa
lse; |
| 5996 if (has_options()) { | 5982 if (has_options()) { |
| 5997 if (!this->options_->IsInitialized()) return false; | 5983 if (!this->options_->IsInitialized()) return false; |
| 5998 } | 5984 } |
| 5999 return true; | 5985 return true; |
| 6000 } | 5986 } |
| 6001 | 5987 |
| 6002 void EnumDescriptorProto::Swap(EnumDescriptorProto* other) { | 5988 void EnumDescriptorProto::Swap(EnumDescriptorProto* other) { |
| 6003 if (other == this) return; | 5989 if (other == this) return; |
| 6004 InternalSwap(other); | 5990 InternalSwap(other); |
| 6005 } | 5991 } |
| 6006 void EnumDescriptorProto::InternalSwap(EnumDescriptorProto* other) { | 5992 void EnumDescriptorProto::InternalSwap(EnumDescriptorProto* other) { |
| 5993 name_.Swap(&other->name_); |
| 6007 value_.UnsafeArenaSwap(&other->value_); | 5994 value_.UnsafeArenaSwap(&other->value_); |
| 6008 name_.Swap(&other->name_); | |
| 6009 std::swap(options_, other->options_); | 5995 std::swap(options_, other->options_); |
| 6010 std::swap(_has_bits_[0], other->_has_bits_[0]); | 5996 std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 6011 _internal_metadata_.Swap(&other->_internal_metadata_); | 5997 _internal_metadata_.Swap(&other->_internal_metadata_); |
| 6012 std::swap(_cached_size_, other->_cached_size_); | 5998 std::swap(_cached_size_, other->_cached_size_); |
| 6013 } | 5999 } |
| 6014 | 6000 |
| 6015 ::google::protobuf::Metadata EnumDescriptorProto::GetMetadata() const { | 6001 ::google::protobuf::Metadata EnumDescriptorProto::GetMetadata() const { |
| 6016 protobuf_AssignDescriptorsOnce(); | 6002 protobuf_AssignDescriptorsOnce(); |
| 6017 return file_level_metadata[7]; | 6003 ::google::protobuf::Metadata metadata; |
| 6004 metadata.descriptor = EnumDescriptorProto_descriptor_; |
| 6005 metadata.reflection = EnumDescriptorProto_reflection_; |
| 6006 return metadata; |
| 6018 } | 6007 } |
| 6019 | 6008 |
| 6020 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 6009 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 6021 // EnumDescriptorProto | 6010 // EnumDescriptorProto |
| 6022 | 6011 |
| 6023 // optional string name = 1; | 6012 // optional string name = 1; |
| 6024 bool EnumDescriptorProto::has_name() const { | 6013 bool EnumDescriptorProto::has_name() const { |
| 6025 return (_has_bits_[0] & 0x00000001u) != 0; | 6014 return (_has_bits_[0] & 0x00000001u) != 0; |
| 6026 } | 6015 } |
| 6027 void EnumDescriptorProto::set_has_name() { | 6016 void EnumDescriptorProto::set_has_name() { |
| 6028 _has_bits_[0] |= 0x00000001u; | 6017 _has_bits_[0] |= 0x00000001u; |
| 6029 } | 6018 } |
| 6030 void EnumDescriptorProto::clear_has_name() { | 6019 void EnumDescriptorProto::clear_has_name() { |
| 6031 _has_bits_[0] &= ~0x00000001u; | 6020 _has_bits_[0] &= ~0x00000001u; |
| 6032 } | 6021 } |
| 6033 void EnumDescriptorProto::clear_name() { | 6022 void EnumDescriptorProto::clear_name() { |
| 6034 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); | 6023 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); |
| 6035 clear_has_name(); | 6024 clear_has_name(); |
| 6036 } | 6025 } |
| 6037 const ::std::string& EnumDescriptorProto::name() const { | 6026 const ::std::string& EnumDescriptorProto::name() const { |
| 6038 // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.name
) | 6027 // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.name
) |
| 6039 return name_.GetNoArena(); | 6028 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited()); |
| 6040 } | 6029 } |
| 6041 void EnumDescriptorProto::set_name(const ::std::string& value) { | 6030 void EnumDescriptorProto::set_name(const ::std::string& value) { |
| 6042 set_has_name(); | 6031 set_has_name(); |
| 6043 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); | 6032 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); |
| 6044 // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.name
) | 6033 // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.name
) |
| 6045 } | 6034 } |
| 6046 void EnumDescriptorProto::set_name(const char* value) { | 6035 void EnumDescriptorProto::set_name(const char* value) { |
| 6047 set_has_name(); | 6036 set_has_name(); |
| 6048 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); | 6037 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); |
| 6049 // @@protoc_insertion_point(field_set_char:google.protobuf.EnumDescriptorProto
.name) | 6038 // @@protoc_insertion_point(field_set_char:google.protobuf.EnumDescriptorProto
.name) |
| 6050 } | 6039 } |
| 6051 void EnumDescriptorProto::set_name(const char* value, size_t size) { | 6040 void EnumDescriptorProto::set_name(const char* value, size_t size) { |
| 6052 set_has_name(); | 6041 set_has_name(); |
| 6053 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), | 6042 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 6054 ::std::string(reinterpret_cast<const char*>(value), size)); | 6043 ::std::string(reinterpret_cast<const char*>(value), size)); |
| 6055 // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumDescriptorPr
oto.name) | 6044 // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumDescriptorPr
oto.name) |
| 6056 } | 6045 } |
| 6057 ::std::string* EnumDescriptorProto::mutable_name() { | 6046 ::std::string* EnumDescriptorProto::mutable_name() { |
| 6058 set_has_name(); | 6047 set_has_name(); |
| 6059 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.
name) | 6048 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.
name) |
| 6060 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 6049 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
| 6061 } | 6050 } |
| 6062 ::std::string* EnumDescriptorProto::release_name() { | 6051 ::std::string* EnumDescriptorProto::release_name() { |
| 6063 // @@protoc_insertion_point(field_release:google.protobuf.EnumDescriptorProto.
name) | 6052 // @@protoc_insertion_point(field_release:google.protobuf.EnumDescriptorProto.
name) |
| 6064 clear_has_name(); | 6053 clear_has_name(); |
| 6065 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 6054 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
| 6066 } | 6055 } |
| 6067 void EnumDescriptorProto::set_allocated_name(::std::string* name) { | 6056 void EnumDescriptorProto::set_allocated_name(::std::string* name) { |
| 6068 if (name != NULL) { | 6057 if (name != NULL) { |
| 6069 set_has_name(); | 6058 set_has_name(); |
| 6070 } else { | 6059 } else { |
| 6071 clear_has_name(); | 6060 clear_has_name(); |
| 6072 } | 6061 } |
| 6073 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), name); | 6062 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), name); |
| 6074 // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumDescriptor
Proto.name) | 6063 // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumDescriptor
Proto.name) |
| 6075 } | 6064 } |
| 6076 | 6065 |
| 6077 // repeated .google.protobuf.EnumValueDescriptorProto value = 2; | 6066 // repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 6099 return &value_; | 6088 return &value_; |
| 6100 } | 6089 } |
| 6101 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescrip
torProto >& | 6090 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescrip
torProto >& |
| 6102 EnumDescriptorProto::value() const { | 6091 EnumDescriptorProto::value() const { |
| 6103 // @@protoc_insertion_point(field_list:google.protobuf.EnumDescriptorProto.val
ue) | 6092 // @@protoc_insertion_point(field_list:google.protobuf.EnumDescriptorProto.val
ue) |
| 6104 return value_; | 6093 return value_; |
| 6105 } | 6094 } |
| 6106 | 6095 |
| 6107 // optional .google.protobuf.EnumOptions options = 3; | 6096 // optional .google.protobuf.EnumOptions options = 3; |
| 6108 bool EnumDescriptorProto::has_options() const { | 6097 bool EnumDescriptorProto::has_options() const { |
| 6109 return (_has_bits_[0] & 0x00000002u) != 0; | 6098 return (_has_bits_[0] & 0x00000004u) != 0; |
| 6110 } | 6099 } |
| 6111 void EnumDescriptorProto::set_has_options() { | 6100 void EnumDescriptorProto::set_has_options() { |
| 6112 _has_bits_[0] |= 0x00000002u; | 6101 _has_bits_[0] |= 0x00000004u; |
| 6113 } | 6102 } |
| 6114 void EnumDescriptorProto::clear_has_options() { | 6103 void EnumDescriptorProto::clear_has_options() { |
| 6115 _has_bits_[0] &= ~0x00000002u; | 6104 _has_bits_[0] &= ~0x00000004u; |
| 6116 } | 6105 } |
| 6117 void EnumDescriptorProto::clear_options() { | 6106 void EnumDescriptorProto::clear_options() { |
| 6118 if (options_ != NULL) options_->::google::protobuf::EnumOptions::Clear(); | 6107 if (options_ != NULL) options_->::google::protobuf::EnumOptions::Clear(); |
| 6119 clear_has_options(); | 6108 clear_has_options(); |
| 6120 } | 6109 } |
| 6121 const ::google::protobuf::EnumOptions& EnumDescriptorProto::options() const { | 6110 const ::google::protobuf::EnumOptions& EnumDescriptorProto::options() const { |
| 6122 // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.opti
ons) | 6111 // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.opti
ons) |
| 6123 return options_ != NULL ? *options_ | 6112 return options_ != NULL ? *options_ : *default_instance_->options_; |
| 6124 : *::google::protobuf::EnumOptions::internal_default_in
stance(); | |
| 6125 } | 6113 } |
| 6126 ::google::protobuf::EnumOptions* EnumDescriptorProto::mutable_options() { | 6114 ::google::protobuf::EnumOptions* EnumDescriptorProto::mutable_options() { |
| 6127 set_has_options(); | 6115 set_has_options(); |
| 6128 if (options_ == NULL) { | 6116 if (options_ == NULL) { |
| 6129 options_ = new ::google::protobuf::EnumOptions; | 6117 options_ = new ::google::protobuf::EnumOptions; |
| 6130 } | 6118 } |
| 6131 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.
options) | 6119 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.
options) |
| 6132 return options_; | 6120 return options_; |
| 6133 } | 6121 } |
| 6134 ::google::protobuf::EnumOptions* EnumDescriptorProto::release_options() { | 6122 ::google::protobuf::EnumOptions* EnumDescriptorProto::release_options() { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 6154 // =================================================================== | 6142 // =================================================================== |
| 6155 | 6143 |
| 6156 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 6144 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 6157 const int EnumValueDescriptorProto::kNameFieldNumber; | 6145 const int EnumValueDescriptorProto::kNameFieldNumber; |
| 6158 const int EnumValueDescriptorProto::kNumberFieldNumber; | 6146 const int EnumValueDescriptorProto::kNumberFieldNumber; |
| 6159 const int EnumValueDescriptorProto::kOptionsFieldNumber; | 6147 const int EnumValueDescriptorProto::kOptionsFieldNumber; |
| 6160 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 6148 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 6161 | 6149 |
| 6162 EnumValueDescriptorProto::EnumValueDescriptorProto() | 6150 EnumValueDescriptorProto::EnumValueDescriptorProto() |
| 6163 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 6151 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 6164 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
| 6165 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
| 6166 } | |
| 6167 SharedCtor(); | 6152 SharedCtor(); |
| 6168 // @@protoc_insertion_point(constructor:google.protobuf.EnumValueDescriptorPro
to) | 6153 // @@protoc_insertion_point(constructor:google.protobuf.EnumValueDescriptorPro
to) |
| 6169 } | 6154 } |
| 6155 |
| 6156 void EnumValueDescriptorProto::InitAsDefaultInstance() { |
| 6157 options_ = const_cast< ::google::protobuf::EnumValueOptions*>(&::google::proto
buf::EnumValueOptions::default_instance()); |
| 6158 } |
| 6159 |
| 6170 EnumValueDescriptorProto::EnumValueDescriptorProto(const EnumValueDescriptorProt
o& from) | 6160 EnumValueDescriptorProto::EnumValueDescriptorProto(const EnumValueDescriptorProt
o& from) |
| 6171 : ::google::protobuf::Message(), | 6161 : ::google::protobuf::Message(), |
| 6172 _internal_metadata_(NULL), | 6162 _internal_metadata_(NULL) { |
| 6173 _has_bits_(from._has_bits_), | 6163 SharedCtor(); |
| 6174 _cached_size_(0) { | 6164 MergeFrom(from); |
| 6175 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 6176 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); | |
| 6177 if (from.has_name()) { | |
| 6178 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), from.name_); | |
| 6179 } | |
| 6180 if (from.has_options()) { | |
| 6181 options_ = new ::google::protobuf::EnumValueOptions(*from.options_); | |
| 6182 } else { | |
| 6183 options_ = NULL; | |
| 6184 } | |
| 6185 number_ = from.number_; | |
| 6186 // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValueDescript
orProto) | 6165 // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValueDescript
orProto) |
| 6187 } | 6166 } |
| 6188 | 6167 |
| 6189 void EnumValueDescriptorProto::SharedCtor() { | 6168 void EnumValueDescriptorProto::SharedCtor() { |
| 6169 ::google::protobuf::internal::GetEmptyString(); |
| 6190 _cached_size_ = 0; | 6170 _cached_size_ = 0; |
| 6191 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); | 6171 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); |
| 6192 ::memset(&options_, 0, reinterpret_cast<char*>(&number_) - | 6172 number_ = 0; |
| 6193 reinterpret_cast<char*>(&options_) + sizeof(number_)); | 6173 options_ = NULL; |
| 6174 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 6194 } | 6175 } |
| 6195 | 6176 |
| 6196 EnumValueDescriptorProto::~EnumValueDescriptorProto() { | 6177 EnumValueDescriptorProto::~EnumValueDescriptorProto() { |
| 6197 // @@protoc_insertion_point(destructor:google.protobuf.EnumValueDescriptorProt
o) | 6178 // @@protoc_insertion_point(destructor:google.protobuf.EnumValueDescriptorProt
o) |
| 6198 SharedDtor(); | 6179 SharedDtor(); |
| 6199 } | 6180 } |
| 6200 | 6181 |
| 6201 void EnumValueDescriptorProto::SharedDtor() { | 6182 void EnumValueDescriptorProto::SharedDtor() { |
| 6202 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d()); | 6183 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d()); |
| 6203 if (this != internal_default_instance()) { | 6184 if (this != default_instance_) { |
| 6204 delete options_; | 6185 delete options_; |
| 6205 } | 6186 } |
| 6206 } | 6187 } |
| 6207 | 6188 |
| 6208 void EnumValueDescriptorProto::SetCachedSize(int size) const { | 6189 void EnumValueDescriptorProto::SetCachedSize(int size) const { |
| 6209 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 6190 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 6210 _cached_size_ = size; | 6191 _cached_size_ = size; |
| 6211 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 6192 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 6212 } | 6193 } |
| 6213 const ::google::protobuf::Descriptor* EnumValueDescriptorProto::descriptor() { | 6194 const ::google::protobuf::Descriptor* EnumValueDescriptorProto::descriptor() { |
| 6214 protobuf_AssignDescriptorsOnce(); | 6195 protobuf_AssignDescriptorsOnce(); |
| 6215 return file_level_metadata[8].descriptor; | 6196 return EnumValueDescriptorProto_descriptor_; |
| 6216 } | 6197 } |
| 6217 | 6198 |
| 6218 const EnumValueDescriptorProto& EnumValueDescriptorProto::default_instance() { | 6199 const EnumValueDescriptorProto& EnumValueDescriptorProto::default_instance() { |
| 6219 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 6200 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
| 6220 return *internal_default_instance(); | 6201 return *default_instance_; |
| 6221 } | 6202 } |
| 6222 | 6203 |
| 6204 EnumValueDescriptorProto* EnumValueDescriptorProto::default_instance_ = NULL; |
| 6205 |
| 6223 EnumValueDescriptorProto* EnumValueDescriptorProto::New(::google::protobuf::Aren
a* arena) const { | 6206 EnumValueDescriptorProto* EnumValueDescriptorProto::New(::google::protobuf::Aren
a* arena) const { |
| 6224 EnumValueDescriptorProto* n = new EnumValueDescriptorProto; | 6207 EnumValueDescriptorProto* n = new EnumValueDescriptorProto; |
| 6225 if (arena != NULL) { | 6208 if (arena != NULL) { |
| 6226 arena->Own(n); | 6209 arena->Own(n); |
| 6227 } | 6210 } |
| 6228 return n; | 6211 return n; |
| 6229 } | 6212 } |
| 6230 | 6213 |
| 6231 void EnumValueDescriptorProto::Clear() { | 6214 void EnumValueDescriptorProto::Clear() { |
| 6232 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumValueDescrip
torProto) | 6215 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumValueDescrip
torProto) |
| 6233 if (_has_bits_[0 / 32] & 3u) { | 6216 if (_has_bits_[0 / 32] & 7u) { |
| 6234 if (has_name()) { | 6217 if (has_name()) { |
| 6235 GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited())); | 6218 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); |
| 6236 (*name_.UnsafeRawStringPointer())->clear(); | |
| 6237 } | 6219 } |
| 6220 number_ = 0; |
| 6238 if (has_options()) { | 6221 if (has_options()) { |
| 6239 GOOGLE_DCHECK(options_ != NULL); | 6222 if (options_ != NULL) options_->::google::protobuf::EnumValueOptions::Clea
r(); |
| 6240 options_->::google::protobuf::EnumValueOptions::Clear(); | |
| 6241 } | 6223 } |
| 6242 } | 6224 } |
| 6243 number_ = 0; | 6225 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 6244 _has_bits_.Clear(); | 6226 if (_internal_metadata_.have_unknown_fields()) { |
| 6245 _internal_metadata_.Clear(); | 6227 mutable_unknown_fields()->Clear(); |
| 6228 } |
| 6246 } | 6229 } |
| 6247 | 6230 |
| 6248 bool EnumValueDescriptorProto::MergePartialFromCodedStream( | 6231 bool EnumValueDescriptorProto::MergePartialFromCodedStream( |
| 6249 ::google::protobuf::io::CodedInputStream* input) { | 6232 ::google::protobuf::io::CodedInputStream* input) { |
| 6250 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 6233 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 6251 ::google::protobuf::uint32 tag; | 6234 ::google::protobuf::uint32 tag; |
| 6252 // @@protoc_insertion_point(parse_start:google.protobuf.EnumValueDescriptorPro
to) | 6235 // @@protoc_insertion_point(parse_start:google.protobuf.EnumValueDescriptorPro
to) |
| 6253 for (;;) { | 6236 for (;;) { |
| 6254 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 6237 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
| 6255 tag = p.first; | 6238 tag = p.first; |
| 6256 if (!p.second) goto handle_unusual; | 6239 if (!p.second) goto handle_unusual; |
| 6257 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 6240 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
| 6258 // optional string name = 1; | 6241 // optional string name = 1; |
| 6259 case 1: { | 6242 case 1: { |
| 6260 if (tag == 10u) { | 6243 if (tag == 10) { |
| 6261 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 6244 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 6262 input, this->mutable_name())); | 6245 input, this->mutable_name())); |
| 6263 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 6246 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 6264 this->name().data(), this->name().length(), | 6247 this->name().data(), this->name().length(), |
| 6265 ::google::protobuf::internal::WireFormat::PARSE, | 6248 ::google::protobuf::internal::WireFormat::PARSE, |
| 6266 "google.protobuf.EnumValueDescriptorProto.name"); | 6249 "google.protobuf.EnumValueDescriptorProto.name"); |
| 6267 } else { | 6250 } else { |
| 6268 goto handle_unusual; | 6251 goto handle_unusual; |
| 6269 } | 6252 } |
| 6253 if (input->ExpectTag(16)) goto parse_number; |
| 6270 break; | 6254 break; |
| 6271 } | 6255 } |
| 6272 | 6256 |
| 6273 // optional int32 number = 2; | 6257 // optional int32 number = 2; |
| 6274 case 2: { | 6258 case 2: { |
| 6275 if (tag == 16u) { | 6259 if (tag == 16) { |
| 6276 set_has_number(); | 6260 parse_number: |
| 6277 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 6261 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 6278 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 6262 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
| 6279 input, &number_))); | 6263 input, &number_))); |
| 6264 set_has_number(); |
| 6280 } else { | 6265 } else { |
| 6281 goto handle_unusual; | 6266 goto handle_unusual; |
| 6282 } | 6267 } |
| 6268 if (input->ExpectTag(26)) goto parse_options; |
| 6283 break; | 6269 break; |
| 6284 } | 6270 } |
| 6285 | 6271 |
| 6286 // optional .google.protobuf.EnumValueOptions options = 3; | 6272 // optional .google.protobuf.EnumValueOptions options = 3; |
| 6287 case 3: { | 6273 case 3: { |
| 6288 if (tag == 26u) { | 6274 if (tag == 26) { |
| 6275 parse_options: |
| 6289 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 6276 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
| 6290 input, mutable_options())); | 6277 input, mutable_options())); |
| 6291 } else { | 6278 } else { |
| 6292 goto handle_unusual; | 6279 goto handle_unusual; |
| 6293 } | 6280 } |
| 6281 if (input->ExpectAtEnd()) goto success; |
| 6294 break; | 6282 break; |
| 6295 } | 6283 } |
| 6296 | 6284 |
| 6297 default: { | 6285 default: { |
| 6298 handle_unusual: | 6286 handle_unusual: |
| 6299 if (tag == 0 || | 6287 if (tag == 0 || |
| 6300 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 6288 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 6301 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 6289 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 6302 goto success; | 6290 goto success; |
| 6303 } | 6291 } |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6340 3, *this->options_, output); | 6328 3, *this->options_, output); |
| 6341 } | 6329 } |
| 6342 | 6330 |
| 6343 if (_internal_metadata_.have_unknown_fields()) { | 6331 if (_internal_metadata_.have_unknown_fields()) { |
| 6344 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 6332 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 6345 unknown_fields(), output); | 6333 unknown_fields(), output); |
| 6346 } | 6334 } |
| 6347 // @@protoc_insertion_point(serialize_end:google.protobuf.EnumValueDescriptorP
roto) | 6335 // @@protoc_insertion_point(serialize_end:google.protobuf.EnumValueDescriptorP
roto) |
| 6348 } | 6336 } |
| 6349 | 6337 |
| 6350 ::google::protobuf::uint8* EnumValueDescriptorProto::InternalSerializeWithCached
SizesToArray( | 6338 ::google::protobuf::uint8* EnumValueDescriptorProto::SerializeWithCachedSizesToA
rray( |
| 6351 bool deterministic, ::google::protobuf::uint8* target) const { | 6339 ::google::protobuf::uint8* target) const { |
| 6352 (void)deterministic; // Unused | |
| 6353 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValue
DescriptorProto) | 6340 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValue
DescriptorProto) |
| 6354 // optional string name = 1; | 6341 // optional string name = 1; |
| 6355 if (has_name()) { | 6342 if (has_name()) { |
| 6356 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 6343 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 6357 this->name().data(), this->name().length(), | 6344 this->name().data(), this->name().length(), |
| 6358 ::google::protobuf::internal::WireFormat::SERIALIZE, | 6345 ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 6359 "google.protobuf.EnumValueDescriptorProto.name"); | 6346 "google.protobuf.EnumValueDescriptorProto.name"); |
| 6360 target = | 6347 target = |
| 6361 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 6348 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 6362 1, this->name(), target); | 6349 1, this->name(), target); |
| 6363 } | 6350 } |
| 6364 | 6351 |
| 6365 // optional int32 number = 2; | 6352 // optional int32 number = 2; |
| 6366 if (has_number()) { | 6353 if (has_number()) { |
| 6367 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2,
this->number(), target); | 6354 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2,
this->number(), target); |
| 6368 } | 6355 } |
| 6369 | 6356 |
| 6370 // optional .google.protobuf.EnumValueOptions options = 3; | 6357 // optional .google.protobuf.EnumValueOptions options = 3; |
| 6371 if (has_options()) { | 6358 if (has_options()) { |
| 6372 target = ::google::protobuf::internal::WireFormatLite:: | 6359 target = ::google::protobuf::internal::WireFormatLite:: |
| 6373 InternalWriteMessageNoVirtualToArray( | 6360 WriteMessageNoVirtualToArray( |
| 6374 3, *this->options_, false, target); | 6361 3, *this->options_, target); |
| 6375 } | 6362 } |
| 6376 | 6363 |
| 6377 if (_internal_metadata_.have_unknown_fields()) { | 6364 if (_internal_metadata_.have_unknown_fields()) { |
| 6378 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 6365 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
| 6379 unknown_fields(), target); | 6366 unknown_fields(), target); |
| 6380 } | 6367 } |
| 6381 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumValueDe
scriptorProto) | 6368 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumValueDe
scriptorProto) |
| 6382 return target; | 6369 return target; |
| 6383 } | 6370 } |
| 6384 | 6371 |
| 6385 size_t EnumValueDescriptorProto::ByteSizeLong() const { | 6372 int EnumValueDescriptorProto::ByteSize() const { |
| 6386 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumValueDes
criptorProto) | 6373 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumValueDes
criptorProto) |
| 6387 size_t total_size = 0; | 6374 int total_size = 0; |
| 6388 | 6375 |
| 6389 if (_internal_metadata_.have_unknown_fields()) { | |
| 6390 total_size += | |
| 6391 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | |
| 6392 unknown_fields()); | |
| 6393 } | |
| 6394 if (_has_bits_[0 / 32] & 7u) { | 6376 if (_has_bits_[0 / 32] & 7u) { |
| 6395 // optional string name = 1; | 6377 // optional string name = 1; |
| 6396 if (has_name()) { | 6378 if (has_name()) { |
| 6397 total_size += 1 + | 6379 total_size += 1 + |
| 6398 ::google::protobuf::internal::WireFormatLite::StringSize( | 6380 ::google::protobuf::internal::WireFormatLite::StringSize( |
| 6399 this->name()); | 6381 this->name()); |
| 6400 } | 6382 } |
| 6401 | 6383 |
| 6402 // optional .google.protobuf.EnumValueOptions options = 3; | |
| 6403 if (has_options()) { | |
| 6404 total_size += 1 + | |
| 6405 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
| 6406 *this->options_); | |
| 6407 } | |
| 6408 | |
| 6409 // optional int32 number = 2; | 6384 // optional int32 number = 2; |
| 6410 if (has_number()) { | 6385 if (has_number()) { |
| 6411 total_size += 1 + | 6386 total_size += 1 + |
| 6412 ::google::protobuf::internal::WireFormatLite::Int32Size( | 6387 ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 6413 this->number()); | 6388 this->number()); |
| 6414 } | 6389 } |
| 6415 | 6390 |
| 6391 // optional .google.protobuf.EnumValueOptions options = 3; |
| 6392 if (has_options()) { |
| 6393 total_size += 1 + |
| 6394 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 6395 *this->options_); |
| 6396 } |
| 6397 |
| 6416 } | 6398 } |
| 6417 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | 6399 if (_internal_metadata_.have_unknown_fields()) { |
| 6400 total_size += |
| 6401 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 6402 unknown_fields()); |
| 6403 } |
| 6418 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 6404 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 6419 _cached_size_ = cached_size; | 6405 _cached_size_ = total_size; |
| 6420 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 6406 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 6421 return total_size; | 6407 return total_size; |
| 6422 } | 6408 } |
| 6423 | 6409 |
| 6424 void EnumValueDescriptorProto::MergeFrom(const ::google::protobuf::Message& from
) { | 6410 void EnumValueDescriptorProto::MergeFrom(const ::google::protobuf::Message& from
) { |
| 6425 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumVal
ueDescriptorProto) | 6411 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumVal
ueDescriptorProto) |
| 6426 GOOGLE_DCHECK_NE(&from, this); | 6412 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 6427 const EnumValueDescriptorProto* source = | 6413 const EnumValueDescriptorProto* source = |
| 6428 ::google::protobuf::internal::DynamicCastToGenerated<const EnumValueDescri
ptorProto>( | 6414 ::google::protobuf::internal::DynamicCastToGenerated<const EnumValueDescri
ptorProto>( |
| 6429 &from); | 6415 &from); |
| 6430 if (source == NULL) { | 6416 if (source == NULL) { |
| 6431 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.E
numValueDescriptorProto) | 6417 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.E
numValueDescriptorProto) |
| 6432 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 6418 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 6433 } else { | 6419 } else { |
| 6434 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.EnumValueDescriptorProto) | 6420 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.EnumValueDescriptorProto) |
| 6435 MergeFrom(*source); | 6421 MergeFrom(*source); |
| 6436 } | 6422 } |
| 6437 } | 6423 } |
| 6438 | 6424 |
| 6439 void EnumValueDescriptorProto::MergeFrom(const EnumValueDescriptorProto& from) { | 6425 void EnumValueDescriptorProto::MergeFrom(const EnumValueDescriptorProto& from) { |
| 6440 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Enum
ValueDescriptorProto) | 6426 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Enum
ValueDescriptorProto) |
| 6441 GOOGLE_DCHECK_NE(&from, this); | 6427 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 6442 _internal_metadata_.MergeFrom(from._internal_metadata_); | 6428 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 6443 if (from._has_bits_[0 / 32] & 7u) { | |
| 6444 if (from.has_name()) { | 6429 if (from.has_name()) { |
| 6445 set_has_name(); | 6430 set_has_name(); |
| 6446 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), from.name_); | 6431 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), from.name_); |
| 6447 } | 6432 } |
| 6433 if (from.has_number()) { |
| 6434 set_number(from.number()); |
| 6435 } |
| 6448 if (from.has_options()) { | 6436 if (from.has_options()) { |
| 6449 mutable_options()->::google::protobuf::EnumValueOptions::MergeFrom(from.op
tions()); | 6437 mutable_options()->::google::protobuf::EnumValueOptions::MergeFrom(from.op
tions()); |
| 6450 } | 6438 } |
| 6451 if (from.has_number()) { | 6439 } |
| 6452 set_number(from.number()); | 6440 if (from._internal_metadata_.have_unknown_fields()) { |
| 6453 } | 6441 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 6454 } | 6442 } |
| 6455 } | 6443 } |
| 6456 | 6444 |
| 6457 void EnumValueDescriptorProto::CopyFrom(const ::google::protobuf::Message& from)
{ | 6445 void EnumValueDescriptorProto::CopyFrom(const ::google::protobuf::Message& from)
{ |
| 6458 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumValu
eDescriptorProto) | 6446 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumValu
eDescriptorProto) |
| 6459 if (&from == this) return; | 6447 if (&from == this) return; |
| 6460 Clear(); | 6448 Clear(); |
| 6461 MergeFrom(from); | 6449 MergeFrom(from); |
| 6462 } | 6450 } |
| 6463 | 6451 |
| 6464 void EnumValueDescriptorProto::CopyFrom(const EnumValueDescriptorProto& from) { | 6452 void EnumValueDescriptorProto::CopyFrom(const EnumValueDescriptorProto& from) { |
| 6465 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumV
alueDescriptorProto) | 6453 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumV
alueDescriptorProto) |
| 6466 if (&from == this) return; | 6454 if (&from == this) return; |
| 6467 Clear(); | 6455 Clear(); |
| 6468 MergeFrom(from); | 6456 MergeFrom(from); |
| 6469 } | 6457 } |
| 6470 | 6458 |
| 6471 bool EnumValueDescriptorProto::IsInitialized() const { | 6459 bool EnumValueDescriptorProto::IsInitialized() const { |
| 6460 |
| 6472 if (has_options()) { | 6461 if (has_options()) { |
| 6473 if (!this->options_->IsInitialized()) return false; | 6462 if (!this->options_->IsInitialized()) return false; |
| 6474 } | 6463 } |
| 6475 return true; | 6464 return true; |
| 6476 } | 6465 } |
| 6477 | 6466 |
| 6478 void EnumValueDescriptorProto::Swap(EnumValueDescriptorProto* other) { | 6467 void EnumValueDescriptorProto::Swap(EnumValueDescriptorProto* other) { |
| 6479 if (other == this) return; | 6468 if (other == this) return; |
| 6480 InternalSwap(other); | 6469 InternalSwap(other); |
| 6481 } | 6470 } |
| 6482 void EnumValueDescriptorProto::InternalSwap(EnumValueDescriptorProto* other) { | 6471 void EnumValueDescriptorProto::InternalSwap(EnumValueDescriptorProto* other) { |
| 6483 name_.Swap(&other->name_); | 6472 name_.Swap(&other->name_); |
| 6473 std::swap(number_, other->number_); |
| 6484 std::swap(options_, other->options_); | 6474 std::swap(options_, other->options_); |
| 6485 std::swap(number_, other->number_); | |
| 6486 std::swap(_has_bits_[0], other->_has_bits_[0]); | 6475 std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 6487 _internal_metadata_.Swap(&other->_internal_metadata_); | 6476 _internal_metadata_.Swap(&other->_internal_metadata_); |
| 6488 std::swap(_cached_size_, other->_cached_size_); | 6477 std::swap(_cached_size_, other->_cached_size_); |
| 6489 } | 6478 } |
| 6490 | 6479 |
| 6491 ::google::protobuf::Metadata EnumValueDescriptorProto::GetMetadata() const { | 6480 ::google::protobuf::Metadata EnumValueDescriptorProto::GetMetadata() const { |
| 6492 protobuf_AssignDescriptorsOnce(); | 6481 protobuf_AssignDescriptorsOnce(); |
| 6493 return file_level_metadata[8]; | 6482 ::google::protobuf::Metadata metadata; |
| 6483 metadata.descriptor = EnumValueDescriptorProto_descriptor_; |
| 6484 metadata.reflection = EnumValueDescriptorProto_reflection_; |
| 6485 return metadata; |
| 6494 } | 6486 } |
| 6495 | 6487 |
| 6496 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 6488 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 6497 // EnumValueDescriptorProto | 6489 // EnumValueDescriptorProto |
| 6498 | 6490 |
| 6499 // optional string name = 1; | 6491 // optional string name = 1; |
| 6500 bool EnumValueDescriptorProto::has_name() const { | 6492 bool EnumValueDescriptorProto::has_name() const { |
| 6501 return (_has_bits_[0] & 0x00000001u) != 0; | 6493 return (_has_bits_[0] & 0x00000001u) != 0; |
| 6502 } | 6494 } |
| 6503 void EnumValueDescriptorProto::set_has_name() { | 6495 void EnumValueDescriptorProto::set_has_name() { |
| 6504 _has_bits_[0] |= 0x00000001u; | 6496 _has_bits_[0] |= 0x00000001u; |
| 6505 } | 6497 } |
| 6506 void EnumValueDescriptorProto::clear_has_name() { | 6498 void EnumValueDescriptorProto::clear_has_name() { |
| 6507 _has_bits_[0] &= ~0x00000001u; | 6499 _has_bits_[0] &= ~0x00000001u; |
| 6508 } | 6500 } |
| 6509 void EnumValueDescriptorProto::clear_name() { | 6501 void EnumValueDescriptorProto::clear_name() { |
| 6510 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); | 6502 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); |
| 6511 clear_has_name(); | 6503 clear_has_name(); |
| 6512 } | 6504 } |
| 6513 const ::std::string& EnumValueDescriptorProto::name() const { | 6505 const ::std::string& EnumValueDescriptorProto::name() const { |
| 6514 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto
.name) | 6506 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto
.name) |
| 6515 return name_.GetNoArena(); | 6507 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited()); |
| 6516 } | 6508 } |
| 6517 void EnumValueDescriptorProto::set_name(const ::std::string& value) { | 6509 void EnumValueDescriptorProto::set_name(const ::std::string& value) { |
| 6518 set_has_name(); | 6510 set_has_name(); |
| 6519 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); | 6511 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); |
| 6520 // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto
.name) | 6512 // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto
.name) |
| 6521 } | 6513 } |
| 6522 void EnumValueDescriptorProto::set_name(const char* value) { | 6514 void EnumValueDescriptorProto::set_name(const char* value) { |
| 6523 set_has_name(); | 6515 set_has_name(); |
| 6524 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); | 6516 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); |
| 6525 // @@protoc_insertion_point(field_set_char:google.protobuf.EnumValueDescriptor
Proto.name) | 6517 // @@protoc_insertion_point(field_set_char:google.protobuf.EnumValueDescriptor
Proto.name) |
| 6526 } | 6518 } |
| 6527 void EnumValueDescriptorProto::set_name(const char* value, size_t size) { | 6519 void EnumValueDescriptorProto::set_name(const char* value, size_t size) { |
| 6528 set_has_name(); | 6520 set_has_name(); |
| 6529 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), | 6521 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 6530 ::std::string(reinterpret_cast<const char*>(value), size)); | 6522 ::std::string(reinterpret_cast<const char*>(value), size)); |
| 6531 // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumValueDescrip
torProto.name) | 6523 // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumValueDescrip
torProto.name) |
| 6532 } | 6524 } |
| 6533 ::std::string* EnumValueDescriptorProto::mutable_name() { | 6525 ::std::string* EnumValueDescriptorProto::mutable_name() { |
| 6534 set_has_name(); | 6526 set_has_name(); |
| 6535 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorP
roto.name) | 6527 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorP
roto.name) |
| 6536 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 6528 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
| 6537 } | 6529 } |
| 6538 ::std::string* EnumValueDescriptorProto::release_name() { | 6530 ::std::string* EnumValueDescriptorProto::release_name() { |
| 6539 // @@protoc_insertion_point(field_release:google.protobuf.EnumValueDescriptorP
roto.name) | 6531 // @@protoc_insertion_point(field_release:google.protobuf.EnumValueDescriptorP
roto.name) |
| 6540 clear_has_name(); | 6532 clear_has_name(); |
| 6541 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 6533 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
| 6542 } | 6534 } |
| 6543 void EnumValueDescriptorProto::set_allocated_name(::std::string* name) { | 6535 void EnumValueDescriptorProto::set_allocated_name(::std::string* name) { |
| 6544 if (name != NULL) { | 6536 if (name != NULL) { |
| 6545 set_has_name(); | 6537 set_has_name(); |
| 6546 } else { | 6538 } else { |
| 6547 clear_has_name(); | 6539 clear_has_name(); |
| 6548 } | 6540 } |
| 6549 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), name); | 6541 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), name); |
| 6550 // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValueDescr
iptorProto.name) | 6542 // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValueDescr
iptorProto.name) |
| 6551 } | 6543 } |
| 6552 | 6544 |
| 6553 // optional int32 number = 2; | 6545 // optional int32 number = 2; |
| 6554 bool EnumValueDescriptorProto::has_number() const { | 6546 bool EnumValueDescriptorProto::has_number() const { |
| 6555 return (_has_bits_[0] & 0x00000004u) != 0; | 6547 return (_has_bits_[0] & 0x00000002u) != 0; |
| 6556 } | 6548 } |
| 6557 void EnumValueDescriptorProto::set_has_number() { | 6549 void EnumValueDescriptorProto::set_has_number() { |
| 6558 _has_bits_[0] |= 0x00000004u; | 6550 _has_bits_[0] |= 0x00000002u; |
| 6559 } | 6551 } |
| 6560 void EnumValueDescriptorProto::clear_has_number() { | 6552 void EnumValueDescriptorProto::clear_has_number() { |
| 6561 _has_bits_[0] &= ~0x00000004u; | 6553 _has_bits_[0] &= ~0x00000002u; |
| 6562 } | 6554 } |
| 6563 void EnumValueDescriptorProto::clear_number() { | 6555 void EnumValueDescriptorProto::clear_number() { |
| 6564 number_ = 0; | 6556 number_ = 0; |
| 6565 clear_has_number(); | 6557 clear_has_number(); |
| 6566 } | 6558 } |
| 6567 ::google::protobuf::int32 EnumValueDescriptorProto::number() const { | 6559 ::google::protobuf::int32 EnumValueDescriptorProto::number() const { |
| 6568 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto
.number) | 6560 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto
.number) |
| 6569 return number_; | 6561 return number_; |
| 6570 } | 6562 } |
| 6571 void EnumValueDescriptorProto::set_number(::google::protobuf::int32 value) { | 6563 void EnumValueDescriptorProto::set_number(::google::protobuf::int32 value) { |
| 6572 set_has_number(); | 6564 set_has_number(); |
| 6573 number_ = value; | 6565 number_ = value; |
| 6574 // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto
.number) | 6566 // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto
.number) |
| 6575 } | 6567 } |
| 6576 | 6568 |
| 6577 // optional .google.protobuf.EnumValueOptions options = 3; | 6569 // optional .google.protobuf.EnumValueOptions options = 3; |
| 6578 bool EnumValueDescriptorProto::has_options() const { | 6570 bool EnumValueDescriptorProto::has_options() const { |
| 6579 return (_has_bits_[0] & 0x00000002u) != 0; | 6571 return (_has_bits_[0] & 0x00000004u) != 0; |
| 6580 } | 6572 } |
| 6581 void EnumValueDescriptorProto::set_has_options() { | 6573 void EnumValueDescriptorProto::set_has_options() { |
| 6582 _has_bits_[0] |= 0x00000002u; | 6574 _has_bits_[0] |= 0x00000004u; |
| 6583 } | 6575 } |
| 6584 void EnumValueDescriptorProto::clear_has_options() { | 6576 void EnumValueDescriptorProto::clear_has_options() { |
| 6585 _has_bits_[0] &= ~0x00000002u; | 6577 _has_bits_[0] &= ~0x00000004u; |
| 6586 } | 6578 } |
| 6587 void EnumValueDescriptorProto::clear_options() { | 6579 void EnumValueDescriptorProto::clear_options() { |
| 6588 if (options_ != NULL) options_->::google::protobuf::EnumValueOptions::Clear(); | 6580 if (options_ != NULL) options_->::google::protobuf::EnumValueOptions::Clear(); |
| 6589 clear_has_options(); | 6581 clear_has_options(); |
| 6590 } | 6582 } |
| 6591 const ::google::protobuf::EnumValueOptions& EnumValueDescriptorProto::options()
const { | 6583 const ::google::protobuf::EnumValueOptions& EnumValueDescriptorProto::options()
const { |
| 6592 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto
.options) | 6584 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto
.options) |
| 6593 return options_ != NULL ? *options_ | 6585 return options_ != NULL ? *options_ : *default_instance_->options_; |
| 6594 : *::google::protobuf::EnumValueOptions::internal_defau
lt_instance(); | |
| 6595 } | 6586 } |
| 6596 ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::mutable_options(
) { | 6587 ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::mutable_options(
) { |
| 6597 set_has_options(); | 6588 set_has_options(); |
| 6598 if (options_ == NULL) { | 6589 if (options_ == NULL) { |
| 6599 options_ = new ::google::protobuf::EnumValueOptions; | 6590 options_ = new ::google::protobuf::EnumValueOptions; |
| 6600 } | 6591 } |
| 6601 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorP
roto.options) | 6592 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorP
roto.options) |
| 6602 return options_; | 6593 return options_; |
| 6603 } | 6594 } |
| 6604 ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::release_options(
) { | 6595 ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::release_options(
) { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 6624 // =================================================================== | 6615 // =================================================================== |
| 6625 | 6616 |
| 6626 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 6617 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 6627 const int ServiceDescriptorProto::kNameFieldNumber; | 6618 const int ServiceDescriptorProto::kNameFieldNumber; |
| 6628 const int ServiceDescriptorProto::kMethodFieldNumber; | 6619 const int ServiceDescriptorProto::kMethodFieldNumber; |
| 6629 const int ServiceDescriptorProto::kOptionsFieldNumber; | 6620 const int ServiceDescriptorProto::kOptionsFieldNumber; |
| 6630 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 6621 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 6631 | 6622 |
| 6632 ServiceDescriptorProto::ServiceDescriptorProto() | 6623 ServiceDescriptorProto::ServiceDescriptorProto() |
| 6633 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 6624 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 6634 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
| 6635 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
| 6636 } | |
| 6637 SharedCtor(); | 6625 SharedCtor(); |
| 6638 // @@protoc_insertion_point(constructor:google.protobuf.ServiceDescriptorProto
) | 6626 // @@protoc_insertion_point(constructor:google.protobuf.ServiceDescriptorProto
) |
| 6639 } | 6627 } |
| 6628 |
| 6629 void ServiceDescriptorProto::InitAsDefaultInstance() { |
| 6630 options_ = const_cast< ::google::protobuf::ServiceOptions*>(&::google::protobu
f::ServiceOptions::default_instance()); |
| 6631 } |
| 6632 |
| 6640 ServiceDescriptorProto::ServiceDescriptorProto(const ServiceDescriptorProto& fro
m) | 6633 ServiceDescriptorProto::ServiceDescriptorProto(const ServiceDescriptorProto& fro
m) |
| 6641 : ::google::protobuf::Message(), | 6634 : ::google::protobuf::Message(), |
| 6642 _internal_metadata_(NULL), | 6635 _internal_metadata_(NULL) { |
| 6643 _has_bits_(from._has_bits_), | 6636 SharedCtor(); |
| 6644 _cached_size_(0), | 6637 MergeFrom(from); |
| 6645 method_(from.method_) { | |
| 6646 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 6647 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); | |
| 6648 if (from.has_name()) { | |
| 6649 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), from.name_); | |
| 6650 } | |
| 6651 if (from.has_options()) { | |
| 6652 options_ = new ::google::protobuf::ServiceOptions(*from.options_); | |
| 6653 } else { | |
| 6654 options_ = NULL; | |
| 6655 } | |
| 6656 // @@protoc_insertion_point(copy_constructor:google.protobuf.ServiceDescriptor
Proto) | 6638 // @@protoc_insertion_point(copy_constructor:google.protobuf.ServiceDescriptor
Proto) |
| 6657 } | 6639 } |
| 6658 | 6640 |
| 6659 void ServiceDescriptorProto::SharedCtor() { | 6641 void ServiceDescriptorProto::SharedCtor() { |
| 6642 ::google::protobuf::internal::GetEmptyString(); |
| 6660 _cached_size_ = 0; | 6643 _cached_size_ = 0; |
| 6661 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); | 6644 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); |
| 6662 options_ = NULL; | 6645 options_ = NULL; |
| 6646 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 6663 } | 6647 } |
| 6664 | 6648 |
| 6665 ServiceDescriptorProto::~ServiceDescriptorProto() { | 6649 ServiceDescriptorProto::~ServiceDescriptorProto() { |
| 6666 // @@protoc_insertion_point(destructor:google.protobuf.ServiceDescriptorProto) | 6650 // @@protoc_insertion_point(destructor:google.protobuf.ServiceDescriptorProto) |
| 6667 SharedDtor(); | 6651 SharedDtor(); |
| 6668 } | 6652 } |
| 6669 | 6653 |
| 6670 void ServiceDescriptorProto::SharedDtor() { | 6654 void ServiceDescriptorProto::SharedDtor() { |
| 6671 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d()); | 6655 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d()); |
| 6672 if (this != internal_default_instance()) { | 6656 if (this != default_instance_) { |
| 6673 delete options_; | 6657 delete options_; |
| 6674 } | 6658 } |
| 6675 } | 6659 } |
| 6676 | 6660 |
| 6677 void ServiceDescriptorProto::SetCachedSize(int size) const { | 6661 void ServiceDescriptorProto::SetCachedSize(int size) const { |
| 6678 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 6662 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 6679 _cached_size_ = size; | 6663 _cached_size_ = size; |
| 6680 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 6664 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 6681 } | 6665 } |
| 6682 const ::google::protobuf::Descriptor* ServiceDescriptorProto::descriptor() { | 6666 const ::google::protobuf::Descriptor* ServiceDescriptorProto::descriptor() { |
| 6683 protobuf_AssignDescriptorsOnce(); | 6667 protobuf_AssignDescriptorsOnce(); |
| 6684 return file_level_metadata[9].descriptor; | 6668 return ServiceDescriptorProto_descriptor_; |
| 6685 } | 6669 } |
| 6686 | 6670 |
| 6687 const ServiceDescriptorProto& ServiceDescriptorProto::default_instance() { | 6671 const ServiceDescriptorProto& ServiceDescriptorProto::default_instance() { |
| 6688 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 6672 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
| 6689 return *internal_default_instance(); | 6673 return *default_instance_; |
| 6690 } | 6674 } |
| 6691 | 6675 |
| 6676 ServiceDescriptorProto* ServiceDescriptorProto::default_instance_ = NULL; |
| 6677 |
| 6692 ServiceDescriptorProto* ServiceDescriptorProto::New(::google::protobuf::Arena* a
rena) const { | 6678 ServiceDescriptorProto* ServiceDescriptorProto::New(::google::protobuf::Arena* a
rena) const { |
| 6693 ServiceDescriptorProto* n = new ServiceDescriptorProto; | 6679 ServiceDescriptorProto* n = new ServiceDescriptorProto; |
| 6694 if (arena != NULL) { | 6680 if (arena != NULL) { |
| 6695 arena->Own(n); | 6681 arena->Own(n); |
| 6696 } | 6682 } |
| 6697 return n; | 6683 return n; |
| 6698 } | 6684 } |
| 6699 | 6685 |
| 6700 void ServiceDescriptorProto::Clear() { | 6686 void ServiceDescriptorProto::Clear() { |
| 6701 // @@protoc_insertion_point(message_clear_start:google.protobuf.ServiceDescripto
rProto) | 6687 // @@protoc_insertion_point(message_clear_start:google.protobuf.ServiceDescripto
rProto) |
| 6702 method_.Clear(); | 6688 if (_has_bits_[0 / 32] & 5u) { |
| 6703 if (_has_bits_[0 / 32] & 3u) { | |
| 6704 if (has_name()) { | 6689 if (has_name()) { |
| 6705 GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited())); | 6690 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); |
| 6706 (*name_.UnsafeRawStringPointer())->clear(); | |
| 6707 } | 6691 } |
| 6708 if (has_options()) { | 6692 if (has_options()) { |
| 6709 GOOGLE_DCHECK(options_ != NULL); | 6693 if (options_ != NULL) options_->::google::protobuf::ServiceOptions::Clear(
); |
| 6710 options_->::google::protobuf::ServiceOptions::Clear(); | |
| 6711 } | 6694 } |
| 6712 } | 6695 } |
| 6713 _has_bits_.Clear(); | 6696 method_.Clear(); |
| 6714 _internal_metadata_.Clear(); | 6697 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 6698 if (_internal_metadata_.have_unknown_fields()) { |
| 6699 mutable_unknown_fields()->Clear(); |
| 6700 } |
| 6715 } | 6701 } |
| 6716 | 6702 |
| 6717 bool ServiceDescriptorProto::MergePartialFromCodedStream( | 6703 bool ServiceDescriptorProto::MergePartialFromCodedStream( |
| 6718 ::google::protobuf::io::CodedInputStream* input) { | 6704 ::google::protobuf::io::CodedInputStream* input) { |
| 6719 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 6705 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 6720 ::google::protobuf::uint32 tag; | 6706 ::google::protobuf::uint32 tag; |
| 6721 // @@protoc_insertion_point(parse_start:google.protobuf.ServiceDescriptorProto
) | 6707 // @@protoc_insertion_point(parse_start:google.protobuf.ServiceDescriptorProto
) |
| 6722 for (;;) { | 6708 for (;;) { |
| 6723 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 6709 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
| 6724 tag = p.first; | 6710 tag = p.first; |
| 6725 if (!p.second) goto handle_unusual; | 6711 if (!p.second) goto handle_unusual; |
| 6726 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 6712 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
| 6727 // optional string name = 1; | 6713 // optional string name = 1; |
| 6728 case 1: { | 6714 case 1: { |
| 6729 if (tag == 10u) { | 6715 if (tag == 10) { |
| 6730 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 6716 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 6731 input, this->mutable_name())); | 6717 input, this->mutable_name())); |
| 6732 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 6718 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 6733 this->name().data(), this->name().length(), | 6719 this->name().data(), this->name().length(), |
| 6734 ::google::protobuf::internal::WireFormat::PARSE, | 6720 ::google::protobuf::internal::WireFormat::PARSE, |
| 6735 "google.protobuf.ServiceDescriptorProto.name"); | 6721 "google.protobuf.ServiceDescriptorProto.name"); |
| 6736 } else { | 6722 } else { |
| 6737 goto handle_unusual; | 6723 goto handle_unusual; |
| 6738 } | 6724 } |
| 6725 if (input->ExpectTag(18)) goto parse_method; |
| 6739 break; | 6726 break; |
| 6740 } | 6727 } |
| 6741 | 6728 |
| 6742 // repeated .google.protobuf.MethodDescriptorProto method = 2; | 6729 // repeated .google.protobuf.MethodDescriptorProto method = 2; |
| 6743 case 2: { | 6730 case 2: { |
| 6744 if (tag == 18u) { | 6731 if (tag == 18) { |
| 6732 parse_method: |
| 6745 DO_(input->IncrementRecursionDepth()); | 6733 DO_(input->IncrementRecursionDepth()); |
| 6734 parse_loop_method: |
| 6746 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 6735 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
| 6747 input, add_method())); | 6736 input, add_method())); |
| 6748 } else { | 6737 } else { |
| 6749 goto handle_unusual; | 6738 goto handle_unusual; |
| 6750 } | 6739 } |
| 6740 if (input->ExpectTag(18)) goto parse_loop_method; |
| 6751 input->UnsafeDecrementRecursionDepth(); | 6741 input->UnsafeDecrementRecursionDepth(); |
| 6742 if (input->ExpectTag(26)) goto parse_options; |
| 6752 break; | 6743 break; |
| 6753 } | 6744 } |
| 6754 | 6745 |
| 6755 // optional .google.protobuf.ServiceOptions options = 3; | 6746 // optional .google.protobuf.ServiceOptions options = 3; |
| 6756 case 3: { | 6747 case 3: { |
| 6757 if (tag == 26u) { | 6748 if (tag == 26) { |
| 6749 parse_options: |
| 6758 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 6750 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
| 6759 input, mutable_options())); | 6751 input, mutable_options())); |
| 6760 } else { | 6752 } else { |
| 6761 goto handle_unusual; | 6753 goto handle_unusual; |
| 6762 } | 6754 } |
| 6755 if (input->ExpectAtEnd()) goto success; |
| 6763 break; | 6756 break; |
| 6764 } | 6757 } |
| 6765 | 6758 |
| 6766 default: { | 6759 default: { |
| 6767 handle_unusual: | 6760 handle_unusual: |
| 6768 if (tag == 0 || | 6761 if (tag == 0 || |
| 6769 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 6762 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 6770 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 6763 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 6771 goto success; | 6764 goto success; |
| 6772 } | 6765 } |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6810 3, *this->options_, output); | 6803 3, *this->options_, output); |
| 6811 } | 6804 } |
| 6812 | 6805 |
| 6813 if (_internal_metadata_.have_unknown_fields()) { | 6806 if (_internal_metadata_.have_unknown_fields()) { |
| 6814 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 6807 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 6815 unknown_fields(), output); | 6808 unknown_fields(), output); |
| 6816 } | 6809 } |
| 6817 // @@protoc_insertion_point(serialize_end:google.protobuf.ServiceDescriptorPro
to) | 6810 // @@protoc_insertion_point(serialize_end:google.protobuf.ServiceDescriptorPro
to) |
| 6818 } | 6811 } |
| 6819 | 6812 |
| 6820 ::google::protobuf::uint8* ServiceDescriptorProto::InternalSerializeWithCachedSi
zesToArray( | 6813 ::google::protobuf::uint8* ServiceDescriptorProto::SerializeWithCachedSizesToArr
ay( |
| 6821 bool deterministic, ::google::protobuf::uint8* target) const { | 6814 ::google::protobuf::uint8* target) const { |
| 6822 (void)deterministic; // Unused | |
| 6823 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ServiceDe
scriptorProto) | 6815 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ServiceDe
scriptorProto) |
| 6824 // optional string name = 1; | 6816 // optional string name = 1; |
| 6825 if (has_name()) { | 6817 if (has_name()) { |
| 6826 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 6818 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 6827 this->name().data(), this->name().length(), | 6819 this->name().data(), this->name().length(), |
| 6828 ::google::protobuf::internal::WireFormat::SERIALIZE, | 6820 ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 6829 "google.protobuf.ServiceDescriptorProto.name"); | 6821 "google.protobuf.ServiceDescriptorProto.name"); |
| 6830 target = | 6822 target = |
| 6831 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 6823 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 6832 1, this->name(), target); | 6824 1, this->name(), target); |
| 6833 } | 6825 } |
| 6834 | 6826 |
| 6835 // repeated .google.protobuf.MethodDescriptorProto method = 2; | 6827 // repeated .google.protobuf.MethodDescriptorProto method = 2; |
| 6836 for (unsigned int i = 0, n = this->method_size(); i < n; i++) { | 6828 for (unsigned int i = 0, n = this->method_size(); i < n; i++) { |
| 6837 target = ::google::protobuf::internal::WireFormatLite:: | 6829 target = ::google::protobuf::internal::WireFormatLite:: |
| 6838 InternalWriteMessageNoVirtualToArray( | 6830 WriteMessageNoVirtualToArray( |
| 6839 2, this->method(i), false, target); | 6831 2, this->method(i), target); |
| 6840 } | 6832 } |
| 6841 | 6833 |
| 6842 // optional .google.protobuf.ServiceOptions options = 3; | 6834 // optional .google.protobuf.ServiceOptions options = 3; |
| 6843 if (has_options()) { | 6835 if (has_options()) { |
| 6844 target = ::google::protobuf::internal::WireFormatLite:: | 6836 target = ::google::protobuf::internal::WireFormatLite:: |
| 6845 InternalWriteMessageNoVirtualToArray( | 6837 WriteMessageNoVirtualToArray( |
| 6846 3, *this->options_, false, target); | 6838 3, *this->options_, target); |
| 6847 } | 6839 } |
| 6848 | 6840 |
| 6849 if (_internal_metadata_.have_unknown_fields()) { | 6841 if (_internal_metadata_.have_unknown_fields()) { |
| 6850 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 6842 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
| 6851 unknown_fields(), target); | 6843 unknown_fields(), target); |
| 6852 } | 6844 } |
| 6853 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ServiceDesc
riptorProto) | 6845 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ServiceDesc
riptorProto) |
| 6854 return target; | 6846 return target; |
| 6855 } | 6847 } |
| 6856 | 6848 |
| 6857 size_t ServiceDescriptorProto::ByteSizeLong() const { | 6849 int ServiceDescriptorProto::ByteSize() const { |
| 6858 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.ServiceDescr
iptorProto) | 6850 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.ServiceDescr
iptorProto) |
| 6859 size_t total_size = 0; | 6851 int total_size = 0; |
| 6860 | 6852 |
| 6861 if (_internal_metadata_.have_unknown_fields()) { | 6853 if (_has_bits_[0 / 32] & 5u) { |
| 6862 total_size += | |
| 6863 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | |
| 6864 unknown_fields()); | |
| 6865 } | |
| 6866 // repeated .google.protobuf.MethodDescriptorProto method = 2; | |
| 6867 { | |
| 6868 unsigned int count = this->method_size(); | |
| 6869 total_size += 1UL * count; | |
| 6870 for (unsigned int i = 0; i < count; i++) { | |
| 6871 total_size += | |
| 6872 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
| 6873 this->method(i)); | |
| 6874 } | |
| 6875 } | |
| 6876 | |
| 6877 if (_has_bits_[0 / 32] & 3u) { | |
| 6878 // optional string name = 1; | 6854 // optional string name = 1; |
| 6879 if (has_name()) { | 6855 if (has_name()) { |
| 6880 total_size += 1 + | 6856 total_size += 1 + |
| 6881 ::google::protobuf::internal::WireFormatLite::StringSize( | 6857 ::google::protobuf::internal::WireFormatLite::StringSize( |
| 6882 this->name()); | 6858 this->name()); |
| 6883 } | 6859 } |
| 6884 | 6860 |
| 6885 // optional .google.protobuf.ServiceOptions options = 3; | 6861 // optional .google.protobuf.ServiceOptions options = 3; |
| 6886 if (has_options()) { | 6862 if (has_options()) { |
| 6887 total_size += 1 + | 6863 total_size += 1 + |
| 6888 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | 6864 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 6889 *this->options_); | 6865 *this->options_); |
| 6890 } | 6866 } |
| 6891 | 6867 |
| 6892 } | 6868 } |
| 6893 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | 6869 // repeated .google.protobuf.MethodDescriptorProto method = 2; |
| 6870 total_size += 1 * this->method_size(); |
| 6871 for (int i = 0; i < this->method_size(); i++) { |
| 6872 total_size += |
| 6873 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 6874 this->method(i)); |
| 6875 } |
| 6876 |
| 6877 if (_internal_metadata_.have_unknown_fields()) { |
| 6878 total_size += |
| 6879 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 6880 unknown_fields()); |
| 6881 } |
| 6894 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 6882 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 6895 _cached_size_ = cached_size; | 6883 _cached_size_ = total_size; |
| 6896 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 6884 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 6897 return total_size; | 6885 return total_size; |
| 6898 } | 6886 } |
| 6899 | 6887 |
| 6900 void ServiceDescriptorProto::MergeFrom(const ::google::protobuf::Message& from)
{ | 6888 void ServiceDescriptorProto::MergeFrom(const ::google::protobuf::Message& from)
{ |
| 6901 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Service
DescriptorProto) | 6889 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Service
DescriptorProto) |
| 6902 GOOGLE_DCHECK_NE(&from, this); | 6890 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 6903 const ServiceDescriptorProto* source = | 6891 const ServiceDescriptorProto* source = |
| 6904 ::google::protobuf::internal::DynamicCastToGenerated<const ServiceDescript
orProto>( | 6892 ::google::protobuf::internal::DynamicCastToGenerated<const ServiceDescript
orProto>( |
| 6905 &from); | 6893 &from); |
| 6906 if (source == NULL) { | 6894 if (source == NULL) { |
| 6907 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.S
erviceDescriptorProto) | 6895 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.S
erviceDescriptorProto) |
| 6908 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 6896 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 6909 } else { | 6897 } else { |
| 6910 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.ServiceDescriptorProto) | 6898 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.ServiceDescriptorProto) |
| 6911 MergeFrom(*source); | 6899 MergeFrom(*source); |
| 6912 } | 6900 } |
| 6913 } | 6901 } |
| 6914 | 6902 |
| 6915 void ServiceDescriptorProto::MergeFrom(const ServiceDescriptorProto& from) { | 6903 void ServiceDescriptorProto::MergeFrom(const ServiceDescriptorProto& from) { |
| 6916 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Serv
iceDescriptorProto) | 6904 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Serv
iceDescriptorProto) |
| 6917 GOOGLE_DCHECK_NE(&from, this); | 6905 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 6918 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 6919 method_.MergeFrom(from.method_); | 6906 method_.MergeFrom(from.method_); |
| 6920 if (from._has_bits_[0 / 32] & 3u) { | 6907 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 6921 if (from.has_name()) { | 6908 if (from.has_name()) { |
| 6922 set_has_name(); | 6909 set_has_name(); |
| 6923 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), from.name_); | 6910 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), from.name_); |
| 6924 } | 6911 } |
| 6925 if (from.has_options()) { | 6912 if (from.has_options()) { |
| 6926 mutable_options()->::google::protobuf::ServiceOptions::MergeFrom(from.opti
ons()); | 6913 mutable_options()->::google::protobuf::ServiceOptions::MergeFrom(from.opti
ons()); |
| 6927 } | 6914 } |
| 6928 } | 6915 } |
| 6916 if (from._internal_metadata_.have_unknown_fields()) { |
| 6917 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 6918 } |
| 6929 } | 6919 } |
| 6930 | 6920 |
| 6931 void ServiceDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { | 6921 void ServiceDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { |
| 6932 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.ServiceD
escriptorProto) | 6922 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.ServiceD
escriptorProto) |
| 6933 if (&from == this) return; | 6923 if (&from == this) return; |
| 6934 Clear(); | 6924 Clear(); |
| 6935 MergeFrom(from); | 6925 MergeFrom(from); |
| 6936 } | 6926 } |
| 6937 | 6927 |
| 6938 void ServiceDescriptorProto::CopyFrom(const ServiceDescriptorProto& from) { | 6928 void ServiceDescriptorProto::CopyFrom(const ServiceDescriptorProto& from) { |
| 6939 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Servi
ceDescriptorProto) | 6929 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Servi
ceDescriptorProto) |
| 6940 if (&from == this) return; | 6930 if (&from == this) return; |
| 6941 Clear(); | 6931 Clear(); |
| 6942 MergeFrom(from); | 6932 MergeFrom(from); |
| 6943 } | 6933 } |
| 6944 | 6934 |
| 6945 bool ServiceDescriptorProto::IsInitialized() const { | 6935 bool ServiceDescriptorProto::IsInitialized() const { |
| 6936 |
| 6946 if (!::google::protobuf::internal::AllAreInitialized(this->method())) return f
alse; | 6937 if (!::google::protobuf::internal::AllAreInitialized(this->method())) return f
alse; |
| 6947 if (has_options()) { | 6938 if (has_options()) { |
| 6948 if (!this->options_->IsInitialized()) return false; | 6939 if (!this->options_->IsInitialized()) return false; |
| 6949 } | 6940 } |
| 6950 return true; | 6941 return true; |
| 6951 } | 6942 } |
| 6952 | 6943 |
| 6953 void ServiceDescriptorProto::Swap(ServiceDescriptorProto* other) { | 6944 void ServiceDescriptorProto::Swap(ServiceDescriptorProto* other) { |
| 6954 if (other == this) return; | 6945 if (other == this) return; |
| 6955 InternalSwap(other); | 6946 InternalSwap(other); |
| 6956 } | 6947 } |
| 6957 void ServiceDescriptorProto::InternalSwap(ServiceDescriptorProto* other) { | 6948 void ServiceDescriptorProto::InternalSwap(ServiceDescriptorProto* other) { |
| 6949 name_.Swap(&other->name_); |
| 6958 method_.UnsafeArenaSwap(&other->method_); | 6950 method_.UnsafeArenaSwap(&other->method_); |
| 6959 name_.Swap(&other->name_); | |
| 6960 std::swap(options_, other->options_); | 6951 std::swap(options_, other->options_); |
| 6961 std::swap(_has_bits_[0], other->_has_bits_[0]); | 6952 std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 6962 _internal_metadata_.Swap(&other->_internal_metadata_); | 6953 _internal_metadata_.Swap(&other->_internal_metadata_); |
| 6963 std::swap(_cached_size_, other->_cached_size_); | 6954 std::swap(_cached_size_, other->_cached_size_); |
| 6964 } | 6955 } |
| 6965 | 6956 |
| 6966 ::google::protobuf::Metadata ServiceDescriptorProto::GetMetadata() const { | 6957 ::google::protobuf::Metadata ServiceDescriptorProto::GetMetadata() const { |
| 6967 protobuf_AssignDescriptorsOnce(); | 6958 protobuf_AssignDescriptorsOnce(); |
| 6968 return file_level_metadata[9]; | 6959 ::google::protobuf::Metadata metadata; |
| 6960 metadata.descriptor = ServiceDescriptorProto_descriptor_; |
| 6961 metadata.reflection = ServiceDescriptorProto_reflection_; |
| 6962 return metadata; |
| 6969 } | 6963 } |
| 6970 | 6964 |
| 6971 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 6965 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 6972 // ServiceDescriptorProto | 6966 // ServiceDescriptorProto |
| 6973 | 6967 |
| 6974 // optional string name = 1; | 6968 // optional string name = 1; |
| 6975 bool ServiceDescriptorProto::has_name() const { | 6969 bool ServiceDescriptorProto::has_name() const { |
| 6976 return (_has_bits_[0] & 0x00000001u) != 0; | 6970 return (_has_bits_[0] & 0x00000001u) != 0; |
| 6977 } | 6971 } |
| 6978 void ServiceDescriptorProto::set_has_name() { | 6972 void ServiceDescriptorProto::set_has_name() { |
| 6979 _has_bits_[0] |= 0x00000001u; | 6973 _has_bits_[0] |= 0x00000001u; |
| 6980 } | 6974 } |
| 6981 void ServiceDescriptorProto::clear_has_name() { | 6975 void ServiceDescriptorProto::clear_has_name() { |
| 6982 _has_bits_[0] &= ~0x00000001u; | 6976 _has_bits_[0] &= ~0x00000001u; |
| 6983 } | 6977 } |
| 6984 void ServiceDescriptorProto::clear_name() { | 6978 void ServiceDescriptorProto::clear_name() { |
| 6985 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); | 6979 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); |
| 6986 clear_has_name(); | 6980 clear_has_name(); |
| 6987 } | 6981 } |
| 6988 const ::std::string& ServiceDescriptorProto::name() const { | 6982 const ::std::string& ServiceDescriptorProto::name() const { |
| 6989 // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.n
ame) | 6983 // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.n
ame) |
| 6990 return name_.GetNoArena(); | 6984 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited()); |
| 6991 } | 6985 } |
| 6992 void ServiceDescriptorProto::set_name(const ::std::string& value) { | 6986 void ServiceDescriptorProto::set_name(const ::std::string& value) { |
| 6993 set_has_name(); | 6987 set_has_name(); |
| 6994 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); | 6988 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); |
| 6995 // @@protoc_insertion_point(field_set:google.protobuf.ServiceDescriptorProto.n
ame) | 6989 // @@protoc_insertion_point(field_set:google.protobuf.ServiceDescriptorProto.n
ame) |
| 6996 } | 6990 } |
| 6997 void ServiceDescriptorProto::set_name(const char* value) { | 6991 void ServiceDescriptorProto::set_name(const char* value) { |
| 6998 set_has_name(); | 6992 set_has_name(); |
| 6999 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); | 6993 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); |
| 7000 // @@protoc_insertion_point(field_set_char:google.protobuf.ServiceDescriptorPr
oto.name) | 6994 // @@protoc_insertion_point(field_set_char:google.protobuf.ServiceDescriptorPr
oto.name) |
| 7001 } | 6995 } |
| 7002 void ServiceDescriptorProto::set_name(const char* value, size_t size) { | 6996 void ServiceDescriptorProto::set_name(const char* value, size_t size) { |
| 7003 set_has_name(); | 6997 set_has_name(); |
| 7004 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), | 6998 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7005 ::std::string(reinterpret_cast<const char*>(value), size)); | 6999 ::std::string(reinterpret_cast<const char*>(value), size)); |
| 7006 // @@protoc_insertion_point(field_set_pointer:google.protobuf.ServiceDescripto
rProto.name) | 7000 // @@protoc_insertion_point(field_set_pointer:google.protobuf.ServiceDescripto
rProto.name) |
| 7007 } | 7001 } |
| 7008 ::std::string* ServiceDescriptorProto::mutable_name() { | 7002 ::std::string* ServiceDescriptorProto::mutable_name() { |
| 7009 set_has_name(); | 7003 set_has_name(); |
| 7010 // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorPro
to.name) | 7004 // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorPro
to.name) |
| 7011 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 7005 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
| 7012 } | 7006 } |
| 7013 ::std::string* ServiceDescriptorProto::release_name() { | 7007 ::std::string* ServiceDescriptorProto::release_name() { |
| 7014 // @@protoc_insertion_point(field_release:google.protobuf.ServiceDescriptorPro
to.name) | 7008 // @@protoc_insertion_point(field_release:google.protobuf.ServiceDescriptorPro
to.name) |
| 7015 clear_has_name(); | 7009 clear_has_name(); |
| 7016 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 7010 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
| 7017 } | 7011 } |
| 7018 void ServiceDescriptorProto::set_allocated_name(::std::string* name) { | 7012 void ServiceDescriptorProto::set_allocated_name(::std::string* name) { |
| 7019 if (name != NULL) { | 7013 if (name != NULL) { |
| 7020 set_has_name(); | 7014 set_has_name(); |
| 7021 } else { | 7015 } else { |
| 7022 clear_has_name(); | 7016 clear_has_name(); |
| 7023 } | 7017 } |
| 7024 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), name); | 7018 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), name); |
| 7025 // @@protoc_insertion_point(field_set_allocated:google.protobuf.ServiceDescrip
torProto.name) | 7019 // @@protoc_insertion_point(field_set_allocated:google.protobuf.ServiceDescrip
torProto.name) |
| 7026 } | 7020 } |
| 7027 | 7021 |
| 7028 // repeated .google.protobuf.MethodDescriptorProto method = 2; | 7022 // repeated .google.protobuf.MethodDescriptorProto method = 2; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 7050 return &method_; | 7044 return &method_; |
| 7051 } | 7045 } |
| 7052 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptor
Proto >& | 7046 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptor
Proto >& |
| 7053 ServiceDescriptorProto::method() const { | 7047 ServiceDescriptorProto::method() const { |
| 7054 // @@protoc_insertion_point(field_list:google.protobuf.ServiceDescriptorProto.
method) | 7048 // @@protoc_insertion_point(field_list:google.protobuf.ServiceDescriptorProto.
method) |
| 7055 return method_; | 7049 return method_; |
| 7056 } | 7050 } |
| 7057 | 7051 |
| 7058 // optional .google.protobuf.ServiceOptions options = 3; | 7052 // optional .google.protobuf.ServiceOptions options = 3; |
| 7059 bool ServiceDescriptorProto::has_options() const { | 7053 bool ServiceDescriptorProto::has_options() const { |
| 7060 return (_has_bits_[0] & 0x00000002u) != 0; | 7054 return (_has_bits_[0] & 0x00000004u) != 0; |
| 7061 } | 7055 } |
| 7062 void ServiceDescriptorProto::set_has_options() { | 7056 void ServiceDescriptorProto::set_has_options() { |
| 7063 _has_bits_[0] |= 0x00000002u; | 7057 _has_bits_[0] |= 0x00000004u; |
| 7064 } | 7058 } |
| 7065 void ServiceDescriptorProto::clear_has_options() { | 7059 void ServiceDescriptorProto::clear_has_options() { |
| 7066 _has_bits_[0] &= ~0x00000002u; | 7060 _has_bits_[0] &= ~0x00000004u; |
| 7067 } | 7061 } |
| 7068 void ServiceDescriptorProto::clear_options() { | 7062 void ServiceDescriptorProto::clear_options() { |
| 7069 if (options_ != NULL) options_->::google::protobuf::ServiceOptions::Clear(); | 7063 if (options_ != NULL) options_->::google::protobuf::ServiceOptions::Clear(); |
| 7070 clear_has_options(); | 7064 clear_has_options(); |
| 7071 } | 7065 } |
| 7072 const ::google::protobuf::ServiceOptions& ServiceDescriptorProto::options() cons
t { | 7066 const ::google::protobuf::ServiceOptions& ServiceDescriptorProto::options() cons
t { |
| 7073 // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.o
ptions) | 7067 // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.o
ptions) |
| 7074 return options_ != NULL ? *options_ | 7068 return options_ != NULL ? *options_ : *default_instance_->options_; |
| 7075 : *::google::protobuf::ServiceOptions::internal_default
_instance(); | |
| 7076 } | 7069 } |
| 7077 ::google::protobuf::ServiceOptions* ServiceDescriptorProto::mutable_options() { | 7070 ::google::protobuf::ServiceOptions* ServiceDescriptorProto::mutable_options() { |
| 7078 set_has_options(); | 7071 set_has_options(); |
| 7079 if (options_ == NULL) { | 7072 if (options_ == NULL) { |
| 7080 options_ = new ::google::protobuf::ServiceOptions; | 7073 options_ = new ::google::protobuf::ServiceOptions; |
| 7081 } | 7074 } |
| 7082 // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorPro
to.options) | 7075 // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorPro
to.options) |
| 7083 return options_; | 7076 return options_; |
| 7084 } | 7077 } |
| 7085 ::google::protobuf::ServiceOptions* ServiceDescriptorProto::release_options() { | 7078 ::google::protobuf::ServiceOptions* ServiceDescriptorProto::release_options() { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 7108 const int MethodDescriptorProto::kNameFieldNumber; | 7101 const int MethodDescriptorProto::kNameFieldNumber; |
| 7109 const int MethodDescriptorProto::kInputTypeFieldNumber; | 7102 const int MethodDescriptorProto::kInputTypeFieldNumber; |
| 7110 const int MethodDescriptorProto::kOutputTypeFieldNumber; | 7103 const int MethodDescriptorProto::kOutputTypeFieldNumber; |
| 7111 const int MethodDescriptorProto::kOptionsFieldNumber; | 7104 const int MethodDescriptorProto::kOptionsFieldNumber; |
| 7112 const int MethodDescriptorProto::kClientStreamingFieldNumber; | 7105 const int MethodDescriptorProto::kClientStreamingFieldNumber; |
| 7113 const int MethodDescriptorProto::kServerStreamingFieldNumber; | 7106 const int MethodDescriptorProto::kServerStreamingFieldNumber; |
| 7114 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 7107 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7115 | 7108 |
| 7116 MethodDescriptorProto::MethodDescriptorProto() | 7109 MethodDescriptorProto::MethodDescriptorProto() |
| 7117 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 7110 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 7118 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
| 7119 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
| 7120 } | |
| 7121 SharedCtor(); | 7111 SharedCtor(); |
| 7122 // @@protoc_insertion_point(constructor:google.protobuf.MethodDescriptorProto) | 7112 // @@protoc_insertion_point(constructor:google.protobuf.MethodDescriptorProto) |
| 7123 } | 7113 } |
| 7114 |
| 7115 void MethodDescriptorProto::InitAsDefaultInstance() { |
| 7116 options_ = const_cast< ::google::protobuf::MethodOptions*>(&::google::protobuf
::MethodOptions::default_instance()); |
| 7117 } |
| 7118 |
| 7124 MethodDescriptorProto::MethodDescriptorProto(const MethodDescriptorProto& from) | 7119 MethodDescriptorProto::MethodDescriptorProto(const MethodDescriptorProto& from) |
| 7125 : ::google::protobuf::Message(), | 7120 : ::google::protobuf::Message(), |
| 7126 _internal_metadata_(NULL), | 7121 _internal_metadata_(NULL) { |
| 7127 _has_bits_(from._has_bits_), | 7122 SharedCtor(); |
| 7128 _cached_size_(0) { | 7123 MergeFrom(from); |
| 7129 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 7130 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); | |
| 7131 if (from.has_name()) { | |
| 7132 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), from.name_); | |
| 7133 } | |
| 7134 input_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); | |
| 7135 if (from.has_input_type()) { | |
| 7136 input_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringA
lreadyInited(), from.input_type_); | |
| 7137 } | |
| 7138 output_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); | |
| 7139 if (from.has_output_type()) { | |
| 7140 output_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyString
AlreadyInited(), from.output_type_); | |
| 7141 } | |
| 7142 if (from.has_options()) { | |
| 7143 options_ = new ::google::protobuf::MethodOptions(*from.options_); | |
| 7144 } else { | |
| 7145 options_ = NULL; | |
| 7146 } | |
| 7147 ::memcpy(&client_streaming_, &from.client_streaming_, | |
| 7148 reinterpret_cast<char*>(&server_streaming_) - | |
| 7149 reinterpret_cast<char*>(&client_streaming_) + sizeof(server_streaming_)); | |
| 7150 // @@protoc_insertion_point(copy_constructor:google.protobuf.MethodDescriptorP
roto) | 7124 // @@protoc_insertion_point(copy_constructor:google.protobuf.MethodDescriptorP
roto) |
| 7151 } | 7125 } |
| 7152 | 7126 |
| 7153 void MethodDescriptorProto::SharedCtor() { | 7127 void MethodDescriptorProto::SharedCtor() { |
| 7128 ::google::protobuf::internal::GetEmptyString(); |
| 7154 _cached_size_ = 0; | 7129 _cached_size_ = 0; |
| 7155 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); | 7130 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); |
| 7156 input_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); | 7131 input_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); |
| 7157 output_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); | 7132 output_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); |
| 7158 ::memset(&options_, 0, reinterpret_cast<char*>(&server_streaming_) - | 7133 options_ = NULL; |
| 7159 reinterpret_cast<char*>(&options_) + sizeof(server_streaming_)); | 7134 client_streaming_ = false; |
| 7135 server_streaming_ = false; |
| 7136 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 7160 } | 7137 } |
| 7161 | 7138 |
| 7162 MethodDescriptorProto::~MethodDescriptorProto() { | 7139 MethodDescriptorProto::~MethodDescriptorProto() { |
| 7163 // @@protoc_insertion_point(destructor:google.protobuf.MethodDescriptorProto) | 7140 // @@protoc_insertion_point(destructor:google.protobuf.MethodDescriptorProto) |
| 7164 SharedDtor(); | 7141 SharedDtor(); |
| 7165 } | 7142 } |
| 7166 | 7143 |
| 7167 void MethodDescriptorProto::SharedDtor() { | 7144 void MethodDescriptorProto::SharedDtor() { |
| 7168 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d()); | 7145 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d()); |
| 7169 input_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlread
yInited()); | 7146 input_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlread
yInited()); |
| 7170 output_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 7147 output_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
| 7171 if (this != internal_default_instance()) { | 7148 if (this != default_instance_) { |
| 7172 delete options_; | 7149 delete options_; |
| 7173 } | 7150 } |
| 7174 } | 7151 } |
| 7175 | 7152 |
| 7176 void MethodDescriptorProto::SetCachedSize(int size) const { | 7153 void MethodDescriptorProto::SetCachedSize(int size) const { |
| 7177 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 7154 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 7178 _cached_size_ = size; | 7155 _cached_size_ = size; |
| 7179 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 7156 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 7180 } | 7157 } |
| 7181 const ::google::protobuf::Descriptor* MethodDescriptorProto::descriptor() { | 7158 const ::google::protobuf::Descriptor* MethodDescriptorProto::descriptor() { |
| 7182 protobuf_AssignDescriptorsOnce(); | 7159 protobuf_AssignDescriptorsOnce(); |
| 7183 return file_level_metadata[10].descriptor; | 7160 return MethodDescriptorProto_descriptor_; |
| 7184 } | 7161 } |
| 7185 | 7162 |
| 7186 const MethodDescriptorProto& MethodDescriptorProto::default_instance() { | 7163 const MethodDescriptorProto& MethodDescriptorProto::default_instance() { |
| 7187 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 7164 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
| 7188 return *internal_default_instance(); | 7165 return *default_instance_; |
| 7189 } | 7166 } |
| 7190 | 7167 |
| 7168 MethodDescriptorProto* MethodDescriptorProto::default_instance_ = NULL; |
| 7169 |
| 7191 MethodDescriptorProto* MethodDescriptorProto::New(::google::protobuf::Arena* are
na) const { | 7170 MethodDescriptorProto* MethodDescriptorProto::New(::google::protobuf::Arena* are
na) const { |
| 7192 MethodDescriptorProto* n = new MethodDescriptorProto; | 7171 MethodDescriptorProto* n = new MethodDescriptorProto; |
| 7193 if (arena != NULL) { | 7172 if (arena != NULL) { |
| 7194 arena->Own(n); | 7173 arena->Own(n); |
| 7195 } | 7174 } |
| 7196 return n; | 7175 return n; |
| 7197 } | 7176 } |
| 7198 | 7177 |
| 7199 void MethodDescriptorProto::Clear() { | 7178 void MethodDescriptorProto::Clear() { |
| 7200 // @@protoc_insertion_point(message_clear_start:google.protobuf.MethodDescriptor
Proto) | 7179 // @@protoc_insertion_point(message_clear_start:google.protobuf.MethodDescriptor
Proto) |
| 7201 if (_has_bits_[0 / 32] & 15u) { | 7180 #if defined(__clang__) |
| 7181 #define ZR_HELPER_(f) \ |
| 7182 _Pragma("clang diagnostic push") \ |
| 7183 _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ |
| 7184 __builtin_offsetof(MethodDescriptorProto, f) \ |
| 7185 _Pragma("clang diagnostic pop") |
| 7186 #else |
| 7187 #define ZR_HELPER_(f) reinterpret_cast<char*>(\ |
| 7188 &reinterpret_cast<MethodDescriptorProto*>(16)->f) |
| 7189 #endif |
| 7190 |
| 7191 #define ZR_(first, last) do {\ |
| 7192 ::memset(&first, 0,\ |
| 7193 ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ |
| 7194 } while (0) |
| 7195 |
| 7196 if (_has_bits_[0 / 32] & 63u) { |
| 7197 ZR_(client_streaming_, server_streaming_); |
| 7202 if (has_name()) { | 7198 if (has_name()) { |
| 7203 GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited())); | 7199 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); |
| 7204 (*name_.UnsafeRawStringPointer())->clear(); | |
| 7205 } | 7200 } |
| 7206 if (has_input_type()) { | 7201 if (has_input_type()) { |
| 7207 GOOGLE_DCHECK(!input_type_.IsDefault(&::google::protobuf::internal::GetEmp
tyStringAlreadyInited())); | 7202 input_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited()); |
| 7208 (*input_type_.UnsafeRawStringPointer())->clear(); | |
| 7209 } | 7203 } |
| 7210 if (has_output_type()) { | 7204 if (has_output_type()) { |
| 7211 GOOGLE_DCHECK(!output_type_.IsDefault(&::google::protobuf::internal::GetEm
ptyStringAlreadyInited())); | 7205 output_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited()); |
| 7212 (*output_type_.UnsafeRawStringPointer())->clear(); | |
| 7213 } | 7206 } |
| 7214 if (has_options()) { | 7207 if (has_options()) { |
| 7215 GOOGLE_DCHECK(options_ != NULL); | 7208 if (options_ != NULL) options_->::google::protobuf::MethodOptions::Clear()
; |
| 7216 options_->::google::protobuf::MethodOptions::Clear(); | |
| 7217 } | 7209 } |
| 7218 } | 7210 } |
| 7219 if (_has_bits_[0 / 32] & 48u) { | 7211 |
| 7220 ::memset(&client_streaming_, 0, reinterpret_cast<char*>(&server_streaming_)
- | 7212 #undef ZR_HELPER_ |
| 7221 reinterpret_cast<char*>(&client_streaming_) + sizeof(server_streaming_)); | 7213 #undef ZR_ |
| 7214 |
| 7215 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 7216 if (_internal_metadata_.have_unknown_fields()) { |
| 7217 mutable_unknown_fields()->Clear(); |
| 7222 } | 7218 } |
| 7223 _has_bits_.Clear(); | |
| 7224 _internal_metadata_.Clear(); | |
| 7225 } | 7219 } |
| 7226 | 7220 |
| 7227 bool MethodDescriptorProto::MergePartialFromCodedStream( | 7221 bool MethodDescriptorProto::MergePartialFromCodedStream( |
| 7228 ::google::protobuf::io::CodedInputStream* input) { | 7222 ::google::protobuf::io::CodedInputStream* input) { |
| 7229 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 7223 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 7230 ::google::protobuf::uint32 tag; | 7224 ::google::protobuf::uint32 tag; |
| 7231 // @@protoc_insertion_point(parse_start:google.protobuf.MethodDescriptorProto) | 7225 // @@protoc_insertion_point(parse_start:google.protobuf.MethodDescriptorProto) |
| 7232 for (;;) { | 7226 for (;;) { |
| 7233 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 7227 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
| 7234 tag = p.first; | 7228 tag = p.first; |
| 7235 if (!p.second) goto handle_unusual; | 7229 if (!p.second) goto handle_unusual; |
| 7236 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 7230 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
| 7237 // optional string name = 1; | 7231 // optional string name = 1; |
| 7238 case 1: { | 7232 case 1: { |
| 7239 if (tag == 10u) { | 7233 if (tag == 10) { |
| 7240 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 7234 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7241 input, this->mutable_name())); | 7235 input, this->mutable_name())); |
| 7242 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 7236 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 7243 this->name().data(), this->name().length(), | 7237 this->name().data(), this->name().length(), |
| 7244 ::google::protobuf::internal::WireFormat::PARSE, | 7238 ::google::protobuf::internal::WireFormat::PARSE, |
| 7245 "google.protobuf.MethodDescriptorProto.name"); | 7239 "google.protobuf.MethodDescriptorProto.name"); |
| 7246 } else { | 7240 } else { |
| 7247 goto handle_unusual; | 7241 goto handle_unusual; |
| 7248 } | 7242 } |
| 7243 if (input->ExpectTag(18)) goto parse_input_type; |
| 7249 break; | 7244 break; |
| 7250 } | 7245 } |
| 7251 | 7246 |
| 7252 // optional string input_type = 2; | 7247 // optional string input_type = 2; |
| 7253 case 2: { | 7248 case 2: { |
| 7254 if (tag == 18u) { | 7249 if (tag == 18) { |
| 7250 parse_input_type: |
| 7255 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 7251 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7256 input, this->mutable_input_type())); | 7252 input, this->mutable_input_type())); |
| 7257 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 7253 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 7258 this->input_type().data(), this->input_type().length(), | 7254 this->input_type().data(), this->input_type().length(), |
| 7259 ::google::protobuf::internal::WireFormat::PARSE, | 7255 ::google::protobuf::internal::WireFormat::PARSE, |
| 7260 "google.protobuf.MethodDescriptorProto.input_type"); | 7256 "google.protobuf.MethodDescriptorProto.input_type"); |
| 7261 } else { | 7257 } else { |
| 7262 goto handle_unusual; | 7258 goto handle_unusual; |
| 7263 } | 7259 } |
| 7260 if (input->ExpectTag(26)) goto parse_output_type; |
| 7264 break; | 7261 break; |
| 7265 } | 7262 } |
| 7266 | 7263 |
| 7267 // optional string output_type = 3; | 7264 // optional string output_type = 3; |
| 7268 case 3: { | 7265 case 3: { |
| 7269 if (tag == 26u) { | 7266 if (tag == 26) { |
| 7267 parse_output_type: |
| 7270 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 7268 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7271 input, this->mutable_output_type())); | 7269 input, this->mutable_output_type())); |
| 7272 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 7270 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 7273 this->output_type().data(), this->output_type().length(), | 7271 this->output_type().data(), this->output_type().length(), |
| 7274 ::google::protobuf::internal::WireFormat::PARSE, | 7272 ::google::protobuf::internal::WireFormat::PARSE, |
| 7275 "google.protobuf.MethodDescriptorProto.output_type"); | 7273 "google.protobuf.MethodDescriptorProto.output_type"); |
| 7276 } else { | 7274 } else { |
| 7277 goto handle_unusual; | 7275 goto handle_unusual; |
| 7278 } | 7276 } |
| 7277 if (input->ExpectTag(34)) goto parse_options; |
| 7279 break; | 7278 break; |
| 7280 } | 7279 } |
| 7281 | 7280 |
| 7282 // optional .google.protobuf.MethodOptions options = 4; | 7281 // optional .google.protobuf.MethodOptions options = 4; |
| 7283 case 4: { | 7282 case 4: { |
| 7284 if (tag == 34u) { | 7283 if (tag == 34) { |
| 7284 parse_options: |
| 7285 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 7285 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
| 7286 input, mutable_options())); | 7286 input, mutable_options())); |
| 7287 } else { | 7287 } else { |
| 7288 goto handle_unusual; | 7288 goto handle_unusual; |
| 7289 } | 7289 } |
| 7290 if (input->ExpectTag(40)) goto parse_client_streaming; |
| 7290 break; | 7291 break; |
| 7291 } | 7292 } |
| 7292 | 7293 |
| 7293 // optional bool client_streaming = 5 [default = false]; | 7294 // optional bool client_streaming = 5 [default = false]; |
| 7294 case 5: { | 7295 case 5: { |
| 7295 if (tag == 40u) { | 7296 if (tag == 40) { |
| 7296 set_has_client_streaming(); | 7297 parse_client_streaming: |
| 7297 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 7298 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 7298 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 7299 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
| 7299 input, &client_streaming_))); | 7300 input, &client_streaming_))); |
| 7301 set_has_client_streaming(); |
| 7300 } else { | 7302 } else { |
| 7301 goto handle_unusual; | 7303 goto handle_unusual; |
| 7302 } | 7304 } |
| 7305 if (input->ExpectTag(48)) goto parse_server_streaming; |
| 7303 break; | 7306 break; |
| 7304 } | 7307 } |
| 7305 | 7308 |
| 7306 // optional bool server_streaming = 6 [default = false]; | 7309 // optional bool server_streaming = 6 [default = false]; |
| 7307 case 6: { | 7310 case 6: { |
| 7308 if (tag == 48u) { | 7311 if (tag == 48) { |
| 7309 set_has_server_streaming(); | 7312 parse_server_streaming: |
| 7310 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 7313 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 7311 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 7314 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
| 7312 input, &server_streaming_))); | 7315 input, &server_streaming_))); |
| 7316 set_has_server_streaming(); |
| 7313 } else { | 7317 } else { |
| 7314 goto handle_unusual; | 7318 goto handle_unusual; |
| 7315 } | 7319 } |
| 7320 if (input->ExpectAtEnd()) goto success; |
| 7316 break; | 7321 break; |
| 7317 } | 7322 } |
| 7318 | 7323 |
| 7319 default: { | 7324 default: { |
| 7320 handle_unusual: | 7325 handle_unusual: |
| 7321 if (tag == 0 || | 7326 if (tag == 0 || |
| 7322 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 7327 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 7323 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 7328 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 7324 goto success; | 7329 goto success; |
| 7325 } | 7330 } |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7387 ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->server_stre
aming(), output); | 7392 ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->server_stre
aming(), output); |
| 7388 } | 7393 } |
| 7389 | 7394 |
| 7390 if (_internal_metadata_.have_unknown_fields()) { | 7395 if (_internal_metadata_.have_unknown_fields()) { |
| 7391 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 7396 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 7392 unknown_fields(), output); | 7397 unknown_fields(), output); |
| 7393 } | 7398 } |
| 7394 // @@protoc_insertion_point(serialize_end:google.protobuf.MethodDescriptorProt
o) | 7399 // @@protoc_insertion_point(serialize_end:google.protobuf.MethodDescriptorProt
o) |
| 7395 } | 7400 } |
| 7396 | 7401 |
| 7397 ::google::protobuf::uint8* MethodDescriptorProto::InternalSerializeWithCachedSiz
esToArray( | 7402 ::google::protobuf::uint8* MethodDescriptorProto::SerializeWithCachedSizesToArra
y( |
| 7398 bool deterministic, ::google::protobuf::uint8* target) const { | 7403 ::google::protobuf::uint8* target) const { |
| 7399 (void)deterministic; // Unused | |
| 7400 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MethodDes
criptorProto) | 7404 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MethodDes
criptorProto) |
| 7401 // optional string name = 1; | 7405 // optional string name = 1; |
| 7402 if (has_name()) { | 7406 if (has_name()) { |
| 7403 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 7407 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 7404 this->name().data(), this->name().length(), | 7408 this->name().data(), this->name().length(), |
| 7405 ::google::protobuf::internal::WireFormat::SERIALIZE, | 7409 ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 7406 "google.protobuf.MethodDescriptorProto.name"); | 7410 "google.protobuf.MethodDescriptorProto.name"); |
| 7407 target = | 7411 target = |
| 7408 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 7412 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7409 1, this->name(), target); | 7413 1, this->name(), target); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 7427 ::google::protobuf::internal::WireFormat::SERIALIZE, | 7431 ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 7428 "google.protobuf.MethodDescriptorProto.output_type"); | 7432 "google.protobuf.MethodDescriptorProto.output_type"); |
| 7429 target = | 7433 target = |
| 7430 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 7434 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7431 3, this->output_type(), target); | 7435 3, this->output_type(), target); |
| 7432 } | 7436 } |
| 7433 | 7437 |
| 7434 // optional .google.protobuf.MethodOptions options = 4; | 7438 // optional .google.protobuf.MethodOptions options = 4; |
| 7435 if (has_options()) { | 7439 if (has_options()) { |
| 7436 target = ::google::protobuf::internal::WireFormatLite:: | 7440 target = ::google::protobuf::internal::WireFormatLite:: |
| 7437 InternalWriteMessageNoVirtualToArray( | 7441 WriteMessageNoVirtualToArray( |
| 7438 4, *this->options_, false, target); | 7442 4, *this->options_, target); |
| 7439 } | 7443 } |
| 7440 | 7444 |
| 7441 // optional bool client_streaming = 5 [default = false]; | 7445 // optional bool client_streaming = 5 [default = false]; |
| 7442 if (has_client_streaming()) { | 7446 if (has_client_streaming()) { |
| 7443 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, t
his->client_streaming(), target); | 7447 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, t
his->client_streaming(), target); |
| 7444 } | 7448 } |
| 7445 | 7449 |
| 7446 // optional bool server_streaming = 6 [default = false]; | 7450 // optional bool server_streaming = 6 [default = false]; |
| 7447 if (has_server_streaming()) { | 7451 if (has_server_streaming()) { |
| 7448 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, t
his->server_streaming(), target); | 7452 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, t
his->server_streaming(), target); |
| 7449 } | 7453 } |
| 7450 | 7454 |
| 7451 if (_internal_metadata_.have_unknown_fields()) { | 7455 if (_internal_metadata_.have_unknown_fields()) { |
| 7452 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 7456 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
| 7453 unknown_fields(), target); | 7457 unknown_fields(), target); |
| 7454 } | 7458 } |
| 7455 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MethodDescr
iptorProto) | 7459 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MethodDescr
iptorProto) |
| 7456 return target; | 7460 return target; |
| 7457 } | 7461 } |
| 7458 | 7462 |
| 7459 size_t MethodDescriptorProto::ByteSizeLong() const { | 7463 int MethodDescriptorProto::ByteSize() const { |
| 7460 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.MethodDescri
ptorProto) | 7464 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.MethodDescri
ptorProto) |
| 7461 size_t total_size = 0; | 7465 int total_size = 0; |
| 7462 | 7466 |
| 7463 if (_internal_metadata_.have_unknown_fields()) { | |
| 7464 total_size += | |
| 7465 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | |
| 7466 unknown_fields()); | |
| 7467 } | |
| 7468 if (_has_bits_[0 / 32] & 63u) { | 7467 if (_has_bits_[0 / 32] & 63u) { |
| 7469 // optional string name = 1; | 7468 // optional string name = 1; |
| 7470 if (has_name()) { | 7469 if (has_name()) { |
| 7471 total_size += 1 + | 7470 total_size += 1 + |
| 7472 ::google::protobuf::internal::WireFormatLite::StringSize( | 7471 ::google::protobuf::internal::WireFormatLite::StringSize( |
| 7473 this->name()); | 7472 this->name()); |
| 7474 } | 7473 } |
| 7475 | 7474 |
| 7476 // optional string input_type = 2; | 7475 // optional string input_type = 2; |
| 7477 if (has_input_type()) { | 7476 if (has_input_type()) { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 7498 if (has_client_streaming()) { | 7497 if (has_client_streaming()) { |
| 7499 total_size += 1 + 1; | 7498 total_size += 1 + 1; |
| 7500 } | 7499 } |
| 7501 | 7500 |
| 7502 // optional bool server_streaming = 6 [default = false]; | 7501 // optional bool server_streaming = 6 [default = false]; |
| 7503 if (has_server_streaming()) { | 7502 if (has_server_streaming()) { |
| 7504 total_size += 1 + 1; | 7503 total_size += 1 + 1; |
| 7505 } | 7504 } |
| 7506 | 7505 |
| 7507 } | 7506 } |
| 7508 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | 7507 if (_internal_metadata_.have_unknown_fields()) { |
| 7508 total_size += |
| 7509 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 7510 unknown_fields()); |
| 7511 } |
| 7509 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 7512 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 7510 _cached_size_ = cached_size; | 7513 _cached_size_ = total_size; |
| 7511 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 7514 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 7512 return total_size; | 7515 return total_size; |
| 7513 } | 7516 } |
| 7514 | 7517 |
| 7515 void MethodDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { | 7518 void MethodDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
| 7516 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.MethodD
escriptorProto) | 7519 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.MethodD
escriptorProto) |
| 7517 GOOGLE_DCHECK_NE(&from, this); | 7520 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 7518 const MethodDescriptorProto* source = | 7521 const MethodDescriptorProto* source = |
| 7519 ::google::protobuf::internal::DynamicCastToGenerated<const MethodDescripto
rProto>( | 7522 ::google::protobuf::internal::DynamicCastToGenerated<const MethodDescripto
rProto>( |
| 7520 &from); | 7523 &from); |
| 7521 if (source == NULL) { | 7524 if (source == NULL) { |
| 7522 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.M
ethodDescriptorProto) | 7525 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.M
ethodDescriptorProto) |
| 7523 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 7526 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 7524 } else { | 7527 } else { |
| 7525 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.MethodDescriptorProto) | 7528 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.MethodDescriptorProto) |
| 7526 MergeFrom(*source); | 7529 MergeFrom(*source); |
| 7527 } | 7530 } |
| 7528 } | 7531 } |
| 7529 | 7532 |
| 7530 void MethodDescriptorProto::MergeFrom(const MethodDescriptorProto& from) { | 7533 void MethodDescriptorProto::MergeFrom(const MethodDescriptorProto& from) { |
| 7531 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Meth
odDescriptorProto) | 7534 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Meth
odDescriptorProto) |
| 7532 GOOGLE_DCHECK_NE(&from, this); | 7535 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 7533 _internal_metadata_.MergeFrom(from._internal_metadata_); | 7536 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 7534 if (from._has_bits_[0 / 32] & 63u) { | |
| 7535 if (from.has_name()) { | 7537 if (from.has_name()) { |
| 7536 set_has_name(); | 7538 set_has_name(); |
| 7537 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), from.name_); | 7539 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), from.name_); |
| 7538 } | 7540 } |
| 7539 if (from.has_input_type()) { | 7541 if (from.has_input_type()) { |
| 7540 set_has_input_type(); | 7542 set_has_input_type(); |
| 7541 input_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited(), from.input_type_); | 7543 input_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited(), from.input_type_); |
| 7542 } | 7544 } |
| 7543 if (from.has_output_type()) { | 7545 if (from.has_output_type()) { |
| 7544 set_has_output_type(); | 7546 set_has_output_type(); |
| 7545 output_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited(), from.output_type_); | 7547 output_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited(), from.output_type_); |
| 7546 } | 7548 } |
| 7547 if (from.has_options()) { | 7549 if (from.has_options()) { |
| 7548 mutable_options()->::google::protobuf::MethodOptions::MergeFrom(from.optio
ns()); | 7550 mutable_options()->::google::protobuf::MethodOptions::MergeFrom(from.optio
ns()); |
| 7549 } | 7551 } |
| 7550 if (from.has_client_streaming()) { | 7552 if (from.has_client_streaming()) { |
| 7551 set_client_streaming(from.client_streaming()); | 7553 set_client_streaming(from.client_streaming()); |
| 7552 } | 7554 } |
| 7553 if (from.has_server_streaming()) { | 7555 if (from.has_server_streaming()) { |
| 7554 set_server_streaming(from.server_streaming()); | 7556 set_server_streaming(from.server_streaming()); |
| 7555 } | 7557 } |
| 7556 } | 7558 } |
| 7559 if (from._internal_metadata_.have_unknown_fields()) { |
| 7560 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 7561 } |
| 7557 } | 7562 } |
| 7558 | 7563 |
| 7559 void MethodDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { | 7564 void MethodDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { |
| 7560 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.MethodDe
scriptorProto) | 7565 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.MethodDe
scriptorProto) |
| 7561 if (&from == this) return; | 7566 if (&from == this) return; |
| 7562 Clear(); | 7567 Clear(); |
| 7563 MergeFrom(from); | 7568 MergeFrom(from); |
| 7564 } | 7569 } |
| 7565 | 7570 |
| 7566 void MethodDescriptorProto::CopyFrom(const MethodDescriptorProto& from) { | 7571 void MethodDescriptorProto::CopyFrom(const MethodDescriptorProto& from) { |
| 7567 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Metho
dDescriptorProto) | 7572 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Metho
dDescriptorProto) |
| 7568 if (&from == this) return; | 7573 if (&from == this) return; |
| 7569 Clear(); | 7574 Clear(); |
| 7570 MergeFrom(from); | 7575 MergeFrom(from); |
| 7571 } | 7576 } |
| 7572 | 7577 |
| 7573 bool MethodDescriptorProto::IsInitialized() const { | 7578 bool MethodDescriptorProto::IsInitialized() const { |
| 7579 |
| 7574 if (has_options()) { | 7580 if (has_options()) { |
| 7575 if (!this->options_->IsInitialized()) return false; | 7581 if (!this->options_->IsInitialized()) return false; |
| 7576 } | 7582 } |
| 7577 return true; | 7583 return true; |
| 7578 } | 7584 } |
| 7579 | 7585 |
| 7580 void MethodDescriptorProto::Swap(MethodDescriptorProto* other) { | 7586 void MethodDescriptorProto::Swap(MethodDescriptorProto* other) { |
| 7581 if (other == this) return; | 7587 if (other == this) return; |
| 7582 InternalSwap(other); | 7588 InternalSwap(other); |
| 7583 } | 7589 } |
| 7584 void MethodDescriptorProto::InternalSwap(MethodDescriptorProto* other) { | 7590 void MethodDescriptorProto::InternalSwap(MethodDescriptorProto* other) { |
| 7585 name_.Swap(&other->name_); | 7591 name_.Swap(&other->name_); |
| 7586 input_type_.Swap(&other->input_type_); | 7592 input_type_.Swap(&other->input_type_); |
| 7587 output_type_.Swap(&other->output_type_); | 7593 output_type_.Swap(&other->output_type_); |
| 7588 std::swap(options_, other->options_); | 7594 std::swap(options_, other->options_); |
| 7589 std::swap(client_streaming_, other->client_streaming_); | 7595 std::swap(client_streaming_, other->client_streaming_); |
| 7590 std::swap(server_streaming_, other->server_streaming_); | 7596 std::swap(server_streaming_, other->server_streaming_); |
| 7591 std::swap(_has_bits_[0], other->_has_bits_[0]); | 7597 std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 7592 _internal_metadata_.Swap(&other->_internal_metadata_); | 7598 _internal_metadata_.Swap(&other->_internal_metadata_); |
| 7593 std::swap(_cached_size_, other->_cached_size_); | 7599 std::swap(_cached_size_, other->_cached_size_); |
| 7594 } | 7600 } |
| 7595 | 7601 |
| 7596 ::google::protobuf::Metadata MethodDescriptorProto::GetMetadata() const { | 7602 ::google::protobuf::Metadata MethodDescriptorProto::GetMetadata() const { |
| 7597 protobuf_AssignDescriptorsOnce(); | 7603 protobuf_AssignDescriptorsOnce(); |
| 7598 return file_level_metadata[10]; | 7604 ::google::protobuf::Metadata metadata; |
| 7605 metadata.descriptor = MethodDescriptorProto_descriptor_; |
| 7606 metadata.reflection = MethodDescriptorProto_reflection_; |
| 7607 return metadata; |
| 7599 } | 7608 } |
| 7600 | 7609 |
| 7601 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 7610 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 7602 // MethodDescriptorProto | 7611 // MethodDescriptorProto |
| 7603 | 7612 |
| 7604 // optional string name = 1; | 7613 // optional string name = 1; |
| 7605 bool MethodDescriptorProto::has_name() const { | 7614 bool MethodDescriptorProto::has_name() const { |
| 7606 return (_has_bits_[0] & 0x00000001u) != 0; | 7615 return (_has_bits_[0] & 0x00000001u) != 0; |
| 7607 } | 7616 } |
| 7608 void MethodDescriptorProto::set_has_name() { | 7617 void MethodDescriptorProto::set_has_name() { |
| 7609 _has_bits_[0] |= 0x00000001u; | 7618 _has_bits_[0] |= 0x00000001u; |
| 7610 } | 7619 } |
| 7611 void MethodDescriptorProto::clear_has_name() { | 7620 void MethodDescriptorProto::clear_has_name() { |
| 7612 _has_bits_[0] &= ~0x00000001u; | 7621 _has_bits_[0] &= ~0x00000001u; |
| 7613 } | 7622 } |
| 7614 void MethodDescriptorProto::clear_name() { | 7623 void MethodDescriptorProto::clear_name() { |
| 7615 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); | 7624 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); |
| 7616 clear_has_name(); | 7625 clear_has_name(); |
| 7617 } | 7626 } |
| 7618 const ::std::string& MethodDescriptorProto::name() const { | 7627 const ::std::string& MethodDescriptorProto::name() const { |
| 7619 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.na
me) | 7628 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.na
me) |
| 7620 return name_.GetNoArena(); | 7629 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited()); |
| 7621 } | 7630 } |
| 7622 void MethodDescriptorProto::set_name(const ::std::string& value) { | 7631 void MethodDescriptorProto::set_name(const ::std::string& value) { |
| 7623 set_has_name(); | 7632 set_has_name(); |
| 7624 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); | 7633 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); |
| 7625 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.na
me) | 7634 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.na
me) |
| 7626 } | 7635 } |
| 7627 void MethodDescriptorProto::set_name(const char* value) { | 7636 void MethodDescriptorProto::set_name(const char* value) { |
| 7628 set_has_name(); | 7637 set_has_name(); |
| 7629 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); | 7638 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); |
| 7630 // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorPro
to.name) | 7639 // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorPro
to.name) |
| 7631 } | 7640 } |
| 7632 void MethodDescriptorProto::set_name(const char* value, size_t size) { | 7641 void MethodDescriptorProto::set_name(const char* value, size_t size) { |
| 7633 set_has_name(); | 7642 set_has_name(); |
| 7634 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), | 7643 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7635 ::std::string(reinterpret_cast<const char*>(value), size)); | 7644 ::std::string(reinterpret_cast<const char*>(value), size)); |
| 7636 // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptor
Proto.name) | 7645 // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptor
Proto.name) |
| 7637 } | 7646 } |
| 7638 ::std::string* MethodDescriptorProto::mutable_name() { | 7647 ::std::string* MethodDescriptorProto::mutable_name() { |
| 7639 set_has_name(); | 7648 set_has_name(); |
| 7640 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProt
o.name) | 7649 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProt
o.name) |
| 7641 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 7650 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
| 7642 } | 7651 } |
| 7643 ::std::string* MethodDescriptorProto::release_name() { | 7652 ::std::string* MethodDescriptorProto::release_name() { |
| 7644 // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProt
o.name) | 7653 // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProt
o.name) |
| 7645 clear_has_name(); | 7654 clear_has_name(); |
| 7646 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 7655 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
| 7647 } | 7656 } |
| 7648 void MethodDescriptorProto::set_allocated_name(::std::string* name) { | 7657 void MethodDescriptorProto::set_allocated_name(::std::string* name) { |
| 7649 if (name != NULL) { | 7658 if (name != NULL) { |
| 7650 set_has_name(); | 7659 set_has_name(); |
| 7651 } else { | 7660 } else { |
| 7652 clear_has_name(); | 7661 clear_has_name(); |
| 7653 } | 7662 } |
| 7654 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), name); | 7663 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), name); |
| 7655 // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescript
orProto.name) | 7664 // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescript
orProto.name) |
| 7656 } | 7665 } |
| 7657 | 7666 |
| 7658 // optional string input_type = 2; | 7667 // optional string input_type = 2; |
| 7659 bool MethodDescriptorProto::has_input_type() const { | 7668 bool MethodDescriptorProto::has_input_type() const { |
| 7660 return (_has_bits_[0] & 0x00000002u) != 0; | 7669 return (_has_bits_[0] & 0x00000002u) != 0; |
| 7661 } | 7670 } |
| 7662 void MethodDescriptorProto::set_has_input_type() { | 7671 void MethodDescriptorProto::set_has_input_type() { |
| 7663 _has_bits_[0] |= 0x00000002u; | 7672 _has_bits_[0] |= 0x00000002u; |
| 7664 } | 7673 } |
| 7665 void MethodDescriptorProto::clear_has_input_type() { | 7674 void MethodDescriptorProto::clear_has_input_type() { |
| 7666 _has_bits_[0] &= ~0x00000002u; | 7675 _has_bits_[0] &= ~0x00000002u; |
| 7667 } | 7676 } |
| 7668 void MethodDescriptorProto::clear_input_type() { | 7677 void MethodDescriptorProto::clear_input_type() { |
| 7669 input_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringA
lreadyInited()); | 7678 input_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringA
lreadyInited()); |
| 7670 clear_has_input_type(); | 7679 clear_has_input_type(); |
| 7671 } | 7680 } |
| 7672 const ::std::string& MethodDescriptorProto::input_type() const { | 7681 const ::std::string& MethodDescriptorProto::input_type() const { |
| 7673 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.in
put_type) | 7682 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.in
put_type) |
| 7674 return input_type_.GetNoArena(); | 7683 return input_type_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); |
| 7675 } | 7684 } |
| 7676 void MethodDescriptorProto::set_input_type(const ::std::string& value) { | 7685 void MethodDescriptorProto::set_input_type(const ::std::string& value) { |
| 7677 set_has_input_type(); | 7686 set_has_input_type(); |
| 7678 input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted(), value); | 7687 input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted(), value); |
| 7679 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.in
put_type) | 7688 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.in
put_type) |
| 7680 } | 7689 } |
| 7681 void MethodDescriptorProto::set_input_type(const char* value) { | 7690 void MethodDescriptorProto::set_input_type(const char* value) { |
| 7682 set_has_input_type(); | 7691 set_has_input_type(); |
| 7683 input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted(), ::std::string(value)); | 7692 input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted(), ::std::string(value)); |
| 7684 // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorPro
to.input_type) | 7693 // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorPro
to.input_type) |
| 7685 } | 7694 } |
| 7686 void MethodDescriptorProto::set_input_type(const char* value, size_t size) { | 7695 void MethodDescriptorProto::set_input_type(const char* value, size_t size) { |
| 7687 set_has_input_type(); | 7696 set_has_input_type(); |
| 7688 input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted(), | 7697 input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted(), |
| 7689 ::std::string(reinterpret_cast<const char*>(value), size)); | 7698 ::std::string(reinterpret_cast<const char*>(value), size)); |
| 7690 // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptor
Proto.input_type) | 7699 // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptor
Proto.input_type) |
| 7691 } | 7700 } |
| 7692 ::std::string* MethodDescriptorProto::mutable_input_type() { | 7701 ::std::string* MethodDescriptorProto::mutable_input_type() { |
| 7693 set_has_input_type(); | 7702 set_has_input_type(); |
| 7694 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProt
o.input_type) | 7703 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProt
o.input_type) |
| 7695 return input_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); | 7704 return input_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); |
| 7696 } | 7705 } |
| 7697 ::std::string* MethodDescriptorProto::release_input_type() { | 7706 ::std::string* MethodDescriptorProto::release_input_type() { |
| 7698 // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProt
o.input_type) | 7707 // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProt
o.input_type) |
| 7699 clear_has_input_type(); | 7708 clear_has_input_type(); |
| 7700 return input_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); | 7709 return input_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); |
| 7701 } | 7710 } |
| 7702 void MethodDescriptorProto::set_allocated_input_type(::std::string* input_type)
{ | 7711 void MethodDescriptorProto::set_allocated_input_type(::std::string* input_type)
{ |
| 7703 if (input_type != NULL) { | 7712 if (input_type != NULL) { |
| 7704 set_has_input_type(); | 7713 set_has_input_type(); |
| 7705 } else { | 7714 } else { |
| 7706 clear_has_input_type(); | 7715 clear_has_input_type(); |
| 7707 } | 7716 } |
| 7708 input_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringA
lreadyInited(), input_type); | 7717 input_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringA
lreadyInited(), input_type); |
| 7709 // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescript
orProto.input_type) | 7718 // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescript
orProto.input_type) |
| 7710 } | 7719 } |
| 7711 | 7720 |
| 7712 // optional string output_type = 3; | 7721 // optional string output_type = 3; |
| 7713 bool MethodDescriptorProto::has_output_type() const { | 7722 bool MethodDescriptorProto::has_output_type() const { |
| 7714 return (_has_bits_[0] & 0x00000004u) != 0; | 7723 return (_has_bits_[0] & 0x00000004u) != 0; |
| 7715 } | 7724 } |
| 7716 void MethodDescriptorProto::set_has_output_type() { | 7725 void MethodDescriptorProto::set_has_output_type() { |
| 7717 _has_bits_[0] |= 0x00000004u; | 7726 _has_bits_[0] |= 0x00000004u; |
| 7718 } | 7727 } |
| 7719 void MethodDescriptorProto::clear_has_output_type() { | 7728 void MethodDescriptorProto::clear_has_output_type() { |
| 7720 _has_bits_[0] &= ~0x00000004u; | 7729 _has_bits_[0] &= ~0x00000004u; |
| 7721 } | 7730 } |
| 7722 void MethodDescriptorProto::clear_output_type() { | 7731 void MethodDescriptorProto::clear_output_type() { |
| 7723 output_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); | 7732 output_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); |
| 7724 clear_has_output_type(); | 7733 clear_has_output_type(); |
| 7725 } | 7734 } |
| 7726 const ::std::string& MethodDescriptorProto::output_type() const { | 7735 const ::std::string& MethodDescriptorProto::output_type() const { |
| 7727 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.ou
tput_type) | 7736 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.ou
tput_type) |
| 7728 return output_type_.GetNoArena(); | 7737 return output_type_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); |
| 7729 } | 7738 } |
| 7730 void MethodDescriptorProto::set_output_type(const ::std::string& value) { | 7739 void MethodDescriptorProto::set_output_type(const ::std::string& value) { |
| 7731 set_has_output_type(); | 7740 set_has_output_type(); |
| 7732 output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited(), value); | 7741 output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited(), value); |
| 7733 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.ou
tput_type) | 7742 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.ou
tput_type) |
| 7734 } | 7743 } |
| 7735 void MethodDescriptorProto::set_output_type(const char* value) { | 7744 void MethodDescriptorProto::set_output_type(const char* value) { |
| 7736 set_has_output_type(); | 7745 set_has_output_type(); |
| 7737 output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited(), ::std::string(value)); | 7746 output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited(), ::std::string(value)); |
| 7738 // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorPro
to.output_type) | 7747 // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorPro
to.output_type) |
| 7739 } | 7748 } |
| 7740 void MethodDescriptorProto::set_output_type(const char* value, size_t size) { | 7749 void MethodDescriptorProto::set_output_type(const char* value, size_t size) { |
| 7741 set_has_output_type(); | 7750 set_has_output_type(); |
| 7742 output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited(), | 7751 output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited(), |
| 7743 ::std::string(reinterpret_cast<const char*>(value), size)); | 7752 ::std::string(reinterpret_cast<const char*>(value), size)); |
| 7744 // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptor
Proto.output_type) | 7753 // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptor
Proto.output_type) |
| 7745 } | 7754 } |
| 7746 ::std::string* MethodDescriptorProto::mutable_output_type() { | 7755 ::std::string* MethodDescriptorProto::mutable_output_type() { |
| 7747 set_has_output_type(); | 7756 set_has_output_type(); |
| 7748 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProt
o.output_type) | 7757 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProt
o.output_type) |
| 7749 return output_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); | 7758 return output_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); |
| 7750 } | 7759 } |
| 7751 ::std::string* MethodDescriptorProto::release_output_type() { | 7760 ::std::string* MethodDescriptorProto::release_output_type() { |
| 7752 // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProt
o.output_type) | 7761 // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProt
o.output_type) |
| 7753 clear_has_output_type(); | 7762 clear_has_output_type(); |
| 7754 return output_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); | 7763 return output_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); |
| 7755 } | 7764 } |
| 7756 void MethodDescriptorProto::set_allocated_output_type(::std::string* output_type
) { | 7765 void MethodDescriptorProto::set_allocated_output_type(::std::string* output_typ
e) { |
| 7757 if (output_type != NULL) { | 7766 if (output_type != NULL) { |
| 7758 set_has_output_type(); | 7767 set_has_output_type(); |
| 7759 } else { | 7768 } else { |
| 7760 clear_has_output_type(); | 7769 clear_has_output_type(); |
| 7761 } | 7770 } |
| 7762 output_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited(), output_type); | 7771 output_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited(), output_type); |
| 7763 // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescript
orProto.output_type) | 7772 // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescript
orProto.output_type) |
| 7764 } | 7773 } |
| 7765 | 7774 |
| 7766 // optional .google.protobuf.MethodOptions options = 4; | 7775 // optional .google.protobuf.MethodOptions options = 4; |
| 7767 bool MethodDescriptorProto::has_options() const { | 7776 bool MethodDescriptorProto::has_options() const { |
| 7768 return (_has_bits_[0] & 0x00000008u) != 0; | 7777 return (_has_bits_[0] & 0x00000008u) != 0; |
| 7769 } | 7778 } |
| 7770 void MethodDescriptorProto::set_has_options() { | 7779 void MethodDescriptorProto::set_has_options() { |
| 7771 _has_bits_[0] |= 0x00000008u; | 7780 _has_bits_[0] |= 0x00000008u; |
| 7772 } | 7781 } |
| 7773 void MethodDescriptorProto::clear_has_options() { | 7782 void MethodDescriptorProto::clear_has_options() { |
| 7774 _has_bits_[0] &= ~0x00000008u; | 7783 _has_bits_[0] &= ~0x00000008u; |
| 7775 } | 7784 } |
| 7776 void MethodDescriptorProto::clear_options() { | 7785 void MethodDescriptorProto::clear_options() { |
| 7777 if (options_ != NULL) options_->::google::protobuf::MethodOptions::Clear(); | 7786 if (options_ != NULL) options_->::google::protobuf::MethodOptions::Clear(); |
| 7778 clear_has_options(); | 7787 clear_has_options(); |
| 7779 } | 7788 } |
| 7780 const ::google::protobuf::MethodOptions& MethodDescriptorProto::options() const
{ | 7789 const ::google::protobuf::MethodOptions& MethodDescriptorProto::options() const
{ |
| 7781 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.op
tions) | 7790 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.op
tions) |
| 7782 return options_ != NULL ? *options_ | 7791 return options_ != NULL ? *options_ : *default_instance_->options_; |
| 7783 : *::google::protobuf::MethodOptions::internal_default_
instance(); | |
| 7784 } | 7792 } |
| 7785 ::google::protobuf::MethodOptions* MethodDescriptorProto::mutable_options() { | 7793 ::google::protobuf::MethodOptions* MethodDescriptorProto::mutable_options() { |
| 7786 set_has_options(); | 7794 set_has_options(); |
| 7787 if (options_ == NULL) { | 7795 if (options_ == NULL) { |
| 7788 options_ = new ::google::protobuf::MethodOptions; | 7796 options_ = new ::google::protobuf::MethodOptions; |
| 7789 } | 7797 } |
| 7790 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProt
o.options) | 7798 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProt
o.options) |
| 7791 return options_; | 7799 return options_; |
| 7792 } | 7800 } |
| 7793 ::google::protobuf::MethodOptions* MethodDescriptorProto::release_options() { | 7801 ::google::protobuf::MethodOptions* MethodDescriptorProto::release_options() { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 7815 void MethodDescriptorProto::set_has_client_streaming() { | 7823 void MethodDescriptorProto::set_has_client_streaming() { |
| 7816 _has_bits_[0] |= 0x00000010u; | 7824 _has_bits_[0] |= 0x00000010u; |
| 7817 } | 7825 } |
| 7818 void MethodDescriptorProto::clear_has_client_streaming() { | 7826 void MethodDescriptorProto::clear_has_client_streaming() { |
| 7819 _has_bits_[0] &= ~0x00000010u; | 7827 _has_bits_[0] &= ~0x00000010u; |
| 7820 } | 7828 } |
| 7821 void MethodDescriptorProto::clear_client_streaming() { | 7829 void MethodDescriptorProto::clear_client_streaming() { |
| 7822 client_streaming_ = false; | 7830 client_streaming_ = false; |
| 7823 clear_has_client_streaming(); | 7831 clear_has_client_streaming(); |
| 7824 } | 7832 } |
| 7825 bool MethodDescriptorProto::client_streaming() const { | 7833 bool MethodDescriptorProto::client_streaming() const { |
| 7826 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.cl
ient_streaming) | 7834 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.cl
ient_streaming) |
| 7827 return client_streaming_; | 7835 return client_streaming_; |
| 7828 } | 7836 } |
| 7829 void MethodDescriptorProto::set_client_streaming(bool value) { | 7837 void MethodDescriptorProto::set_client_streaming(bool value) { |
| 7830 set_has_client_streaming(); | 7838 set_has_client_streaming(); |
| 7831 client_streaming_ = value; | 7839 client_streaming_ = value; |
| 7832 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.cl
ient_streaming) | 7840 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.cl
ient_streaming) |
| 7833 } | 7841 } |
| 7834 | 7842 |
| 7835 // optional bool server_streaming = 6 [default = false]; | 7843 // optional bool server_streaming = 6 [default = false]; |
| 7836 bool MethodDescriptorProto::has_server_streaming() const { | 7844 bool MethodDescriptorProto::has_server_streaming() const { |
| 7837 return (_has_bits_[0] & 0x00000020u) != 0; | 7845 return (_has_bits_[0] & 0x00000020u) != 0; |
| 7838 } | 7846 } |
| 7839 void MethodDescriptorProto::set_has_server_streaming() { | 7847 void MethodDescriptorProto::set_has_server_streaming() { |
| 7840 _has_bits_[0] |= 0x00000020u; | 7848 _has_bits_[0] |= 0x00000020u; |
| 7841 } | 7849 } |
| 7842 void MethodDescriptorProto::clear_has_server_streaming() { | 7850 void MethodDescriptorProto::clear_has_server_streaming() { |
| 7843 _has_bits_[0] &= ~0x00000020u; | 7851 _has_bits_[0] &= ~0x00000020u; |
| 7844 } | 7852 } |
| 7845 void MethodDescriptorProto::clear_server_streaming() { | 7853 void MethodDescriptorProto::clear_server_streaming() { |
| 7846 server_streaming_ = false; | 7854 server_streaming_ = false; |
| 7847 clear_has_server_streaming(); | 7855 clear_has_server_streaming(); |
| 7848 } | 7856 } |
| 7849 bool MethodDescriptorProto::server_streaming() const { | 7857 bool MethodDescriptorProto::server_streaming() const { |
| 7850 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.se
rver_streaming) | 7858 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.se
rver_streaming) |
| 7851 return server_streaming_; | 7859 return server_streaming_; |
| 7852 } | 7860 } |
| 7853 void MethodDescriptorProto::set_server_streaming(bool value) { | 7861 void MethodDescriptorProto::set_server_streaming(bool value) { |
| 7854 set_has_server_streaming(); | 7862 set_has_server_streaming(); |
| 7855 server_streaming_ = value; | 7863 server_streaming_ = value; |
| 7856 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.se
rver_streaming) | 7864 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.se
rver_streaming) |
| 7857 } | 7865 } |
| 7858 | 7866 |
| 7859 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 7867 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 7860 | 7868 |
| 7861 // =================================================================== | 7869 // =================================================================== |
| 7862 | 7870 |
| 7871 const ::google::protobuf::EnumDescriptor* FileOptions_OptimizeMode_descriptor()
{ |
| 7872 protobuf_AssignDescriptorsOnce(); |
| 7873 return FileOptions_OptimizeMode_descriptor_; |
| 7874 } |
| 7875 bool FileOptions_OptimizeMode_IsValid(int value) { |
| 7876 switch(value) { |
| 7877 case 1: |
| 7878 case 2: |
| 7879 case 3: |
| 7880 return true; |
| 7881 default: |
| 7882 return false; |
| 7883 } |
| 7884 } |
| 7885 |
| 7886 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7887 const FileOptions_OptimizeMode FileOptions::SPEED; |
| 7888 const FileOptions_OptimizeMode FileOptions::CODE_SIZE; |
| 7889 const FileOptions_OptimizeMode FileOptions::LITE_RUNTIME; |
| 7890 const FileOptions_OptimizeMode FileOptions::OptimizeMode_MIN; |
| 7891 const FileOptions_OptimizeMode FileOptions::OptimizeMode_MAX; |
| 7892 const int FileOptions::OptimizeMode_ARRAYSIZE; |
| 7893 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7863 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 7894 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7864 const int FileOptions::kJavaPackageFieldNumber; | 7895 const int FileOptions::kJavaPackageFieldNumber; |
| 7865 const int FileOptions::kJavaOuterClassnameFieldNumber; | 7896 const int FileOptions::kJavaOuterClassnameFieldNumber; |
| 7866 const int FileOptions::kJavaMultipleFilesFieldNumber; | 7897 const int FileOptions::kJavaMultipleFilesFieldNumber; |
| 7867 const int FileOptions::kJavaGenerateEqualsAndHashFieldNumber; | 7898 const int FileOptions::kJavaGenerateEqualsAndHashFieldNumber; |
| 7868 const int FileOptions::kJavaStringCheckUtf8FieldNumber; | 7899 const int FileOptions::kJavaStringCheckUtf8FieldNumber; |
| 7869 const int FileOptions::kOptimizeForFieldNumber; | 7900 const int FileOptions::kOptimizeForFieldNumber; |
| 7870 const int FileOptions::kGoPackageFieldNumber; | 7901 const int FileOptions::kGoPackageFieldNumber; |
| 7871 const int FileOptions::kCcGenericServicesFieldNumber; | 7902 const int FileOptions::kCcGenericServicesFieldNumber; |
| 7872 const int FileOptions::kJavaGenericServicesFieldNumber; | 7903 const int FileOptions::kJavaGenericServicesFieldNumber; |
| 7873 const int FileOptions::kPyGenericServicesFieldNumber; | 7904 const int FileOptions::kPyGenericServicesFieldNumber; |
| 7874 const int FileOptions::kDeprecatedFieldNumber; | 7905 const int FileOptions::kDeprecatedFieldNumber; |
| 7875 const int FileOptions::kCcEnableArenasFieldNumber; | 7906 const int FileOptions::kCcEnableArenasFieldNumber; |
| 7876 const int FileOptions::kObjcClassPrefixFieldNumber; | 7907 const int FileOptions::kObjcClassPrefixFieldNumber; |
| 7877 const int FileOptions::kCsharpNamespaceFieldNumber; | 7908 const int FileOptions::kCsharpNamespaceFieldNumber; |
| 7878 const int FileOptions::kSwiftPrefixFieldNumber; | |
| 7879 const int FileOptions::kUninterpretedOptionFieldNumber; | 7909 const int FileOptions::kUninterpretedOptionFieldNumber; |
| 7880 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 7910 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7881 | 7911 |
| 7882 FileOptions::FileOptions() | 7912 FileOptions::FileOptions() |
| 7883 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 7913 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 7884 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
| 7885 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
| 7886 } | |
| 7887 SharedCtor(); | 7914 SharedCtor(); |
| 7888 // @@protoc_insertion_point(constructor:google.protobuf.FileOptions) | 7915 // @@protoc_insertion_point(constructor:google.protobuf.FileOptions) |
| 7889 } | 7916 } |
| 7917 |
| 7918 void FileOptions::InitAsDefaultInstance() { |
| 7919 } |
| 7920 |
| 7890 FileOptions::FileOptions(const FileOptions& from) | 7921 FileOptions::FileOptions(const FileOptions& from) |
| 7891 : ::google::protobuf::Message(), | 7922 : ::google::protobuf::Message(), |
| 7892 _internal_metadata_(NULL), | 7923 _internal_metadata_(NULL) { |
| 7893 _has_bits_(from._has_bits_), | 7924 SharedCtor(); |
| 7894 _cached_size_(0), | 7925 MergeFrom(from); |
| 7895 uninterpreted_option_(from.uninterpreted_option_) { | |
| 7896 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 7897 _extensions_.MergeFrom(from._extensions_); | |
| 7898 java_package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); | |
| 7899 if (from.has_java_package()) { | |
| 7900 java_package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited(), from.java_package_); | |
| 7901 } | |
| 7902 java_outer_classname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmpty
StringAlreadyInited()); | |
| 7903 if (from.has_java_outer_classname()) { | |
| 7904 java_outer_classname_.AssignWithDefault(&::google::protobuf::internal::GetEm
ptyStringAlreadyInited(), from.java_outer_classname_); | |
| 7905 } | |
| 7906 go_package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); | |
| 7907 if (from.has_go_package()) { | |
| 7908 go_package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringA
lreadyInited(), from.go_package_); | |
| 7909 } | |
| 7910 objc_class_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited()); | |
| 7911 if (from.has_objc_class_prefix()) { | |
| 7912 objc_class_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmpty
StringAlreadyInited(), from.objc_class_prefix_); | |
| 7913 } | |
| 7914 csharp_namespace_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); | |
| 7915 if (from.has_csharp_namespace()) { | |
| 7916 csharp_namespace_.AssignWithDefault(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited(), from.csharp_namespace_); | |
| 7917 } | |
| 7918 swift_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); | |
| 7919 if (from.has_swift_prefix()) { | |
| 7920 swift_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited(), from.swift_prefix_); | |
| 7921 } | |
| 7922 ::memcpy(&java_multiple_files_, &from.java_multiple_files_, | |
| 7923 reinterpret_cast<char*>(&optimize_for_) - | |
| 7924 reinterpret_cast<char*>(&java_multiple_files_) + sizeof(optimize_for_)); | |
| 7925 // @@protoc_insertion_point(copy_constructor:google.protobuf.FileOptions) | 7926 // @@protoc_insertion_point(copy_constructor:google.protobuf.FileOptions) |
| 7926 } | 7927 } |
| 7927 | 7928 |
| 7928 void FileOptions::SharedCtor() { | 7929 void FileOptions::SharedCtor() { |
| 7930 ::google::protobuf::internal::GetEmptyString(); |
| 7929 _cached_size_ = 0; | 7931 _cached_size_ = 0; |
| 7930 java_package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); | 7932 java_package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); |
| 7931 java_outer_classname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmpty
StringAlreadyInited()); | 7933 java_outer_classname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmpty
StringAlreadyInited()); |
| 7934 java_multiple_files_ = false; |
| 7935 java_generate_equals_and_hash_ = false; |
| 7936 java_string_check_utf8_ = false; |
| 7937 optimize_for_ = 1; |
| 7932 go_package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); | 7938 go_package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); |
| 7939 cc_generic_services_ = false; |
| 7940 java_generic_services_ = false; |
| 7941 py_generic_services_ = false; |
| 7942 deprecated_ = false; |
| 7943 cc_enable_arenas_ = false; |
| 7933 objc_class_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited()); | 7944 objc_class_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited()); |
| 7934 csharp_namespace_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); | 7945 csharp_namespace_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); |
| 7935 swift_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); | 7946 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 7936 ::memset(&java_multiple_files_, 0, reinterpret_cast<char*>(&cc_enable_arenas_)
- | |
| 7937 reinterpret_cast<char*>(&java_multiple_files_) + sizeof(cc_enable_arenas_)); | |
| 7938 optimize_for_ = 1; | |
| 7939 } | 7947 } |
| 7940 | 7948 |
| 7941 FileOptions::~FileOptions() { | 7949 FileOptions::~FileOptions() { |
| 7942 // @@protoc_insertion_point(destructor:google.protobuf.FileOptions) | 7950 // @@protoc_insertion_point(destructor:google.protobuf.FileOptions) |
| 7943 SharedDtor(); | 7951 SharedDtor(); |
| 7944 } | 7952 } |
| 7945 | 7953 |
| 7946 void FileOptions::SharedDtor() { | 7954 void FileOptions::SharedDtor() { |
| 7947 java_package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); | 7955 java_package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); |
| 7948 java_outer_classname_.DestroyNoArena(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited()); | 7956 java_outer_classname_.DestroyNoArena(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited()); |
| 7949 go_package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlread
yInited()); | 7957 go_package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlread
yInited()); |
| 7950 objc_class_prefix_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); | 7958 objc_class_prefix_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); |
| 7951 csharp_namespace_.DestroyNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); | 7959 csharp_namespace_.DestroyNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); |
| 7952 swift_prefix_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); | 7960 if (this != default_instance_) { |
| 7961 } |
| 7953 } | 7962 } |
| 7954 | 7963 |
| 7955 void FileOptions::SetCachedSize(int size) const { | 7964 void FileOptions::SetCachedSize(int size) const { |
| 7956 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 7965 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 7957 _cached_size_ = size; | 7966 _cached_size_ = size; |
| 7958 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 7967 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 7959 } | 7968 } |
| 7960 const ::google::protobuf::Descriptor* FileOptions::descriptor() { | 7969 const ::google::protobuf::Descriptor* FileOptions::descriptor() { |
| 7961 protobuf_AssignDescriptorsOnce(); | 7970 protobuf_AssignDescriptorsOnce(); |
| 7962 return file_level_metadata[11].descriptor; | 7971 return FileOptions_descriptor_; |
| 7963 } | 7972 } |
| 7964 | 7973 |
| 7965 const FileOptions& FileOptions::default_instance() { | 7974 const FileOptions& FileOptions::default_instance() { |
| 7966 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 7975 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
| 7967 return *internal_default_instance(); | 7976 return *default_instance_; |
| 7968 } | 7977 } |
| 7969 | 7978 |
| 7979 FileOptions* FileOptions::default_instance_ = NULL; |
| 7980 |
| 7970 FileOptions* FileOptions::New(::google::protobuf::Arena* arena) const { | 7981 FileOptions* FileOptions::New(::google::protobuf::Arena* arena) const { |
| 7971 FileOptions* n = new FileOptions; | 7982 FileOptions* n = new FileOptions; |
| 7972 if (arena != NULL) { | 7983 if (arena != NULL) { |
| 7973 arena->Own(n); | 7984 arena->Own(n); |
| 7974 } | 7985 } |
| 7975 return n; | 7986 return n; |
| 7976 } | 7987 } |
| 7977 | 7988 |
| 7978 void FileOptions::Clear() { | 7989 void FileOptions::Clear() { |
| 7979 // @@protoc_insertion_point(message_clear_start:google.protobuf.FileOptions) | 7990 // @@protoc_insertion_point(message_clear_start:google.protobuf.FileOptions) |
| 7980 _extensions_.Clear(); | 7991 _extensions_.Clear(); |
| 7981 uninterpreted_option_.Clear(); | 7992 #if defined(__clang__) |
| 7982 if (_has_bits_[0 / 32] & 63u) { | 7993 #define ZR_HELPER_(f) \ |
| 7994 _Pragma("clang diagnostic push") \ |
| 7995 _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ |
| 7996 __builtin_offsetof(FileOptions, f) \ |
| 7997 _Pragma("clang diagnostic pop") |
| 7998 #else |
| 7999 #define ZR_HELPER_(f) reinterpret_cast<char*>(\ |
| 8000 &reinterpret_cast<FileOptions*>(16)->f) |
| 8001 #endif |
| 8002 |
| 8003 #define ZR_(first, last) do {\ |
| 8004 ::memset(&first, 0,\ |
| 8005 ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ |
| 8006 } while (0) |
| 8007 |
| 8008 if (_has_bits_[0 / 32] & 255u) { |
| 8009 ZR_(java_multiple_files_, cc_generic_services_); |
| 7983 if (has_java_package()) { | 8010 if (has_java_package()) { |
| 7984 GOOGLE_DCHECK(!java_package_.IsDefault(&::google::protobuf::internal::GetE
mptyStringAlreadyInited())); | 8011 java_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited()); |
| 7985 (*java_package_.UnsafeRawStringPointer())->clear(); | |
| 7986 } | 8012 } |
| 7987 if (has_java_outer_classname()) { | 8013 if (has_java_outer_classname()) { |
| 7988 GOOGLE_DCHECK(!java_outer_classname_.IsDefault(&::google::protobuf::intern
al::GetEmptyStringAlreadyInited())); | 8014 java_outer_classname_.ClearToEmptyNoArena(&::google::protobuf::internal::G
etEmptyStringAlreadyInited()); |
| 7989 (*java_outer_classname_.UnsafeRawStringPointer())->clear(); | |
| 7990 } | 8015 } |
| 8016 optimize_for_ = 1; |
| 7991 if (has_go_package()) { | 8017 if (has_go_package()) { |
| 7992 GOOGLE_DCHECK(!go_package_.IsDefault(&::google::protobuf::internal::GetEmp
tyStringAlreadyInited())); | 8018 go_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited()); |
| 7993 (*go_package_.UnsafeRawStringPointer())->clear(); | |
| 7994 } | 8019 } |
| 8020 } |
| 8021 if (_has_bits_[8 / 32] & 16128u) { |
| 8022 ZR_(java_generic_services_, cc_enable_arenas_); |
| 7995 if (has_objc_class_prefix()) { | 8023 if (has_objc_class_prefix()) { |
| 7996 GOOGLE_DCHECK(!objc_class_prefix_.IsDefault(&::google::protobuf::internal:
:GetEmptyStringAlreadyInited())); | 8024 objc_class_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetE
mptyStringAlreadyInited()); |
| 7997 (*objc_class_prefix_.UnsafeRawStringPointer())->clear(); | |
| 7998 } | 8025 } |
| 7999 if (has_csharp_namespace()) { | 8026 if (has_csharp_namespace()) { |
| 8000 GOOGLE_DCHECK(!csharp_namespace_.IsDefault(&::google::protobuf::internal::
GetEmptyStringAlreadyInited())); | 8027 csharp_namespace_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEm
ptyStringAlreadyInited()); |
| 8001 (*csharp_namespace_.UnsafeRawStringPointer())->clear(); | |
| 8002 } | |
| 8003 if (has_swift_prefix()) { | |
| 8004 GOOGLE_DCHECK(!swift_prefix_.IsDefault(&::google::protobuf::internal::GetE
mptyStringAlreadyInited())); | |
| 8005 (*swift_prefix_.UnsafeRawStringPointer())->clear(); | |
| 8006 } | 8028 } |
| 8007 } | 8029 } |
| 8008 if (_has_bits_[0 / 32] & 192u) { | 8030 |
| 8009 ::memset(&java_multiple_files_, 0, reinterpret_cast<char*>(&java_generate_eq
uals_and_hash_) - | 8031 #undef ZR_HELPER_ |
| 8010 reinterpret_cast<char*>(&java_multiple_files_) + sizeof(java_generate_equa
ls_and_hash_)); | 8032 #undef ZR_ |
| 8033 |
| 8034 uninterpreted_option_.Clear(); |
| 8035 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 8036 if (_internal_metadata_.have_unknown_fields()) { |
| 8037 mutable_unknown_fields()->Clear(); |
| 8011 } | 8038 } |
| 8012 if (_has_bits_[8 / 32] & 32512u) { | |
| 8013 ::memset(&java_string_check_utf8_, 0, reinterpret_cast<char*>(&cc_enable_are
nas_) - | |
| 8014 reinterpret_cast<char*>(&java_string_check_utf8_) + sizeof(cc_enable_arena
s_)); | |
| 8015 optimize_for_ = 1; | |
| 8016 } | |
| 8017 _has_bits_.Clear(); | |
| 8018 _internal_metadata_.Clear(); | |
| 8019 } | 8039 } |
| 8020 | 8040 |
| 8021 bool FileOptions::MergePartialFromCodedStream( | 8041 bool FileOptions::MergePartialFromCodedStream( |
| 8022 ::google::protobuf::io::CodedInputStream* input) { | 8042 ::google::protobuf::io::CodedInputStream* input) { |
| 8023 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 8043 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 8024 ::google::protobuf::uint32 tag; | 8044 ::google::protobuf::uint32 tag; |
| 8025 // @@protoc_insertion_point(parse_start:google.protobuf.FileOptions) | 8045 // @@protoc_insertion_point(parse_start:google.protobuf.FileOptions) |
| 8026 for (;;) { | 8046 for (;;) { |
| 8027 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(16383u); | 8047 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
16383); |
| 8028 tag = p.first; | 8048 tag = p.first; |
| 8029 if (!p.second) goto handle_unusual; | 8049 if (!p.second) goto handle_unusual; |
| 8030 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 8050 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
| 8031 // optional string java_package = 1; | 8051 // optional string java_package = 1; |
| 8032 case 1: { | 8052 case 1: { |
| 8033 if (tag == 10u) { | 8053 if (tag == 10) { |
| 8034 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 8054 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 8035 input, this->mutable_java_package())); | 8055 input, this->mutable_java_package())); |
| 8036 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 8056 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 8037 this->java_package().data(), this->java_package().length(), | 8057 this->java_package().data(), this->java_package().length(), |
| 8038 ::google::protobuf::internal::WireFormat::PARSE, | 8058 ::google::protobuf::internal::WireFormat::PARSE, |
| 8039 "google.protobuf.FileOptions.java_package"); | 8059 "google.protobuf.FileOptions.java_package"); |
| 8040 } else { | 8060 } else { |
| 8041 goto handle_unusual; | 8061 goto handle_unusual; |
| 8042 } | 8062 } |
| 8063 if (input->ExpectTag(66)) goto parse_java_outer_classname; |
| 8043 break; | 8064 break; |
| 8044 } | 8065 } |
| 8045 | 8066 |
| 8046 // optional string java_outer_classname = 8; | 8067 // optional string java_outer_classname = 8; |
| 8047 case 8: { | 8068 case 8: { |
| 8048 if (tag == 66u) { | 8069 if (tag == 66) { |
| 8070 parse_java_outer_classname: |
| 8049 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 8071 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 8050 input, this->mutable_java_outer_classname())); | 8072 input, this->mutable_java_outer_classname())); |
| 8051 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 8073 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 8052 this->java_outer_classname().data(), this->java_outer_classname().le
ngth(), | 8074 this->java_outer_classname().data(), this->java_outer_classname().le
ngth(), |
| 8053 ::google::protobuf::internal::WireFormat::PARSE, | 8075 ::google::protobuf::internal::WireFormat::PARSE, |
| 8054 "google.protobuf.FileOptions.java_outer_classname"); | 8076 "google.protobuf.FileOptions.java_outer_classname"); |
| 8055 } else { | 8077 } else { |
| 8056 goto handle_unusual; | 8078 goto handle_unusual; |
| 8057 } | 8079 } |
| 8080 if (input->ExpectTag(72)) goto parse_optimize_for; |
| 8058 break; | 8081 break; |
| 8059 } | 8082 } |
| 8060 | 8083 |
| 8061 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [de
fault = SPEED]; | 8084 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [de
fault = SPEED]; |
| 8062 case 9: { | 8085 case 9: { |
| 8063 if (tag == 72u) { | 8086 if (tag == 72) { |
| 8087 parse_optimize_for: |
| 8064 int value; | 8088 int value; |
| 8065 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 8089 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 8066 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>
( | 8090 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>
( |
| 8067 input, &value))); | 8091 input, &value))); |
| 8068 if (::google::protobuf::FileOptions_OptimizeMode_IsValid(value)) { | 8092 if (::google::protobuf::FileOptions_OptimizeMode_IsValid(value)) { |
| 8069 set_optimize_for(static_cast< ::google::protobuf::FileOptions_Optimi
zeMode >(value)); | 8093 set_optimize_for(static_cast< ::google::protobuf::FileOptions_Optimi
zeMode >(value)); |
| 8070 } else { | 8094 } else { |
| 8071 mutable_unknown_fields()->AddVarint(9, value); | 8095 mutable_unknown_fields()->AddVarint(9, value); |
| 8072 } | 8096 } |
| 8073 } else { | 8097 } else { |
| 8074 goto handle_unusual; | 8098 goto handle_unusual; |
| 8075 } | 8099 } |
| 8100 if (input->ExpectTag(80)) goto parse_java_multiple_files; |
| 8076 break; | 8101 break; |
| 8077 } | 8102 } |
| 8078 | 8103 |
| 8079 // optional bool java_multiple_files = 10 [default = false]; | 8104 // optional bool java_multiple_files = 10 [default = false]; |
| 8080 case 10: { | 8105 case 10: { |
| 8081 if (tag == 80u) { | 8106 if (tag == 80) { |
| 8082 set_has_java_multiple_files(); | 8107 parse_java_multiple_files: |
| 8083 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 8108 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 8084 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 8109 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
| 8085 input, &java_multiple_files_))); | 8110 input, &java_multiple_files_))); |
| 8111 set_has_java_multiple_files(); |
| 8086 } else { | 8112 } else { |
| 8087 goto handle_unusual; | 8113 goto handle_unusual; |
| 8088 } | 8114 } |
| 8115 if (input->ExpectTag(90)) goto parse_go_package; |
| 8089 break; | 8116 break; |
| 8090 } | 8117 } |
| 8091 | 8118 |
| 8092 // optional string go_package = 11; | 8119 // optional string go_package = 11; |
| 8093 case 11: { | 8120 case 11: { |
| 8094 if (tag == 90u) { | 8121 if (tag == 90) { |
| 8122 parse_go_package: |
| 8095 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 8123 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 8096 input, this->mutable_go_package())); | 8124 input, this->mutable_go_package())); |
| 8097 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 8125 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 8098 this->go_package().data(), this->go_package().length(), | 8126 this->go_package().data(), this->go_package().length(), |
| 8099 ::google::protobuf::internal::WireFormat::PARSE, | 8127 ::google::protobuf::internal::WireFormat::PARSE, |
| 8100 "google.protobuf.FileOptions.go_package"); | 8128 "google.protobuf.FileOptions.go_package"); |
| 8101 } else { | 8129 } else { |
| 8102 goto handle_unusual; | 8130 goto handle_unusual; |
| 8103 } | 8131 } |
| 8132 if (input->ExpectTag(128)) goto parse_cc_generic_services; |
| 8104 break; | 8133 break; |
| 8105 } | 8134 } |
| 8106 | 8135 |
| 8107 // optional bool cc_generic_services = 16 [default = false]; | 8136 // optional bool cc_generic_services = 16 [default = false]; |
| 8108 case 16: { | 8137 case 16: { |
| 8109 if (tag == 128u) { | 8138 if (tag == 128) { |
| 8110 set_has_cc_generic_services(); | 8139 parse_cc_generic_services: |
| 8111 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 8140 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 8112 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 8141 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
| 8113 input, &cc_generic_services_))); | 8142 input, &cc_generic_services_))); |
| 8143 set_has_cc_generic_services(); |
| 8114 } else { | 8144 } else { |
| 8115 goto handle_unusual; | 8145 goto handle_unusual; |
| 8116 } | 8146 } |
| 8147 if (input->ExpectTag(136)) goto parse_java_generic_services; |
| 8117 break; | 8148 break; |
| 8118 } | 8149 } |
| 8119 | 8150 |
| 8120 // optional bool java_generic_services = 17 [default = false]; | 8151 // optional bool java_generic_services = 17 [default = false]; |
| 8121 case 17: { | 8152 case 17: { |
| 8122 if (tag == 136u) { | 8153 if (tag == 136) { |
| 8123 set_has_java_generic_services(); | 8154 parse_java_generic_services: |
| 8124 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 8155 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 8125 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 8156 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
| 8126 input, &java_generic_services_))); | 8157 input, &java_generic_services_))); |
| 8158 set_has_java_generic_services(); |
| 8127 } else { | 8159 } else { |
| 8128 goto handle_unusual; | 8160 goto handle_unusual; |
| 8129 } | 8161 } |
| 8162 if (input->ExpectTag(144)) goto parse_py_generic_services; |
| 8130 break; | 8163 break; |
| 8131 } | 8164 } |
| 8132 | 8165 |
| 8133 // optional bool py_generic_services = 18 [default = false]; | 8166 // optional bool py_generic_services = 18 [default = false]; |
| 8134 case 18: { | 8167 case 18: { |
| 8135 if (tag == 144u) { | 8168 if (tag == 144) { |
| 8136 set_has_py_generic_services(); | 8169 parse_py_generic_services: |
| 8137 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 8170 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 8138 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 8171 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
| 8139 input, &py_generic_services_))); | 8172 input, &py_generic_services_))); |
| 8173 set_has_py_generic_services(); |
| 8140 } else { | 8174 } else { |
| 8141 goto handle_unusual; | 8175 goto handle_unusual; |
| 8142 } | 8176 } |
| 8177 if (input->ExpectTag(160)) goto parse_java_generate_equals_and_hash; |
| 8143 break; | 8178 break; |
| 8144 } | 8179 } |
| 8145 | 8180 |
| 8146 // optional bool java_generate_equals_and_hash = 20 [deprecated = true]; | 8181 // optional bool java_generate_equals_and_hash = 20 [default = false]; |
| 8147 case 20: { | 8182 case 20: { |
| 8148 if (tag == 160u) { | 8183 if (tag == 160) { |
| 8149 set_has_java_generate_equals_and_hash(); | 8184 parse_java_generate_equals_and_hash: |
| 8150 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 8185 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 8151 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 8186 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
| 8152 input, &java_generate_equals_and_hash_))); | 8187 input, &java_generate_equals_and_hash_))); |
| 8188 set_has_java_generate_equals_and_hash(); |
| 8153 } else { | 8189 } else { |
| 8154 goto handle_unusual; | 8190 goto handle_unusual; |
| 8155 } | 8191 } |
| 8192 if (input->ExpectTag(184)) goto parse_deprecated; |
| 8156 break; | 8193 break; |
| 8157 } | 8194 } |
| 8158 | 8195 |
| 8159 // optional bool deprecated = 23 [default = false]; | 8196 // optional bool deprecated = 23 [default = false]; |
| 8160 case 23: { | 8197 case 23: { |
| 8161 if (tag == 184u) { | 8198 if (tag == 184) { |
| 8162 set_has_deprecated(); | 8199 parse_deprecated: |
| 8163 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 8200 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 8164 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 8201 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
| 8165 input, &deprecated_))); | 8202 input, &deprecated_))); |
| 8203 set_has_deprecated(); |
| 8166 } else { | 8204 } else { |
| 8167 goto handle_unusual; | 8205 goto handle_unusual; |
| 8168 } | 8206 } |
| 8207 if (input->ExpectTag(216)) goto parse_java_string_check_utf8; |
| 8169 break; | 8208 break; |
| 8170 } | 8209 } |
| 8171 | 8210 |
| 8172 // optional bool java_string_check_utf8 = 27 [default = false]; | 8211 // optional bool java_string_check_utf8 = 27 [default = false]; |
| 8173 case 27: { | 8212 case 27: { |
| 8174 if (tag == 216u) { | 8213 if (tag == 216) { |
| 8175 set_has_java_string_check_utf8(); | 8214 parse_java_string_check_utf8: |
| 8176 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 8215 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 8177 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 8216 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
| 8178 input, &java_string_check_utf8_))); | 8217 input, &java_string_check_utf8_))); |
| 8218 set_has_java_string_check_utf8(); |
| 8179 } else { | 8219 } else { |
| 8180 goto handle_unusual; | 8220 goto handle_unusual; |
| 8181 } | 8221 } |
| 8222 if (input->ExpectTag(248)) goto parse_cc_enable_arenas; |
| 8182 break; | 8223 break; |
| 8183 } | 8224 } |
| 8184 | 8225 |
| 8185 // optional bool cc_enable_arenas = 31 [default = false]; | 8226 // optional bool cc_enable_arenas = 31 [default = false]; |
| 8186 case 31: { | 8227 case 31: { |
| 8187 if (tag == 248u) { | 8228 if (tag == 248) { |
| 8188 set_has_cc_enable_arenas(); | 8229 parse_cc_enable_arenas: |
| 8189 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 8230 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 8190 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 8231 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
| 8191 input, &cc_enable_arenas_))); | 8232 input, &cc_enable_arenas_))); |
| 8233 set_has_cc_enable_arenas(); |
| 8192 } else { | 8234 } else { |
| 8193 goto handle_unusual; | 8235 goto handle_unusual; |
| 8194 } | 8236 } |
| 8237 if (input->ExpectTag(290)) goto parse_objc_class_prefix; |
| 8195 break; | 8238 break; |
| 8196 } | 8239 } |
| 8197 | 8240 |
| 8198 // optional string objc_class_prefix = 36; | 8241 // optional string objc_class_prefix = 36; |
| 8199 case 36: { | 8242 case 36: { |
| 8200 if (tag == 290u) { | 8243 if (tag == 290) { |
| 8244 parse_objc_class_prefix: |
| 8201 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 8245 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 8202 input, this->mutable_objc_class_prefix())); | 8246 input, this->mutable_objc_class_prefix())); |
| 8203 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 8247 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 8204 this->objc_class_prefix().data(), this->objc_class_prefix().length()
, | 8248 this->objc_class_prefix().data(), this->objc_class_prefix().length()
, |
| 8205 ::google::protobuf::internal::WireFormat::PARSE, | 8249 ::google::protobuf::internal::WireFormat::PARSE, |
| 8206 "google.protobuf.FileOptions.objc_class_prefix"); | 8250 "google.protobuf.FileOptions.objc_class_prefix"); |
| 8207 } else { | 8251 } else { |
| 8208 goto handle_unusual; | 8252 goto handle_unusual; |
| 8209 } | 8253 } |
| 8254 if (input->ExpectTag(298)) goto parse_csharp_namespace; |
| 8210 break; | 8255 break; |
| 8211 } | 8256 } |
| 8212 | 8257 |
| 8213 // optional string csharp_namespace = 37; | 8258 // optional string csharp_namespace = 37; |
| 8214 case 37: { | 8259 case 37: { |
| 8215 if (tag == 298u) { | 8260 if (tag == 298) { |
| 8261 parse_csharp_namespace: |
| 8216 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 8262 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 8217 input, this->mutable_csharp_namespace())); | 8263 input, this->mutable_csharp_namespace())); |
| 8218 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 8264 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 8219 this->csharp_namespace().data(), this->csharp_namespace().length(), | 8265 this->csharp_namespace().data(), this->csharp_namespace().length(), |
| 8220 ::google::protobuf::internal::WireFormat::PARSE, | 8266 ::google::protobuf::internal::WireFormat::PARSE, |
| 8221 "google.protobuf.FileOptions.csharp_namespace"); | 8267 "google.protobuf.FileOptions.csharp_namespace"); |
| 8222 } else { | 8268 } else { |
| 8223 goto handle_unusual; | 8269 goto handle_unusual; |
| 8224 } | 8270 } |
| 8225 break; | 8271 if (input->ExpectTag(7994)) goto parse_uninterpreted_option; |
| 8226 } | |
| 8227 | |
| 8228 // optional string swift_prefix = 39; | |
| 8229 case 39: { | |
| 8230 if (tag == 314u) { | |
| 8231 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | |
| 8232 input, this->mutable_swift_prefix())); | |
| 8233 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | |
| 8234 this->swift_prefix().data(), this->swift_prefix().length(), | |
| 8235 ::google::protobuf::internal::WireFormat::PARSE, | |
| 8236 "google.protobuf.FileOptions.swift_prefix"); | |
| 8237 } else { | |
| 8238 goto handle_unusual; | |
| 8239 } | |
| 8240 break; | 8272 break; |
| 8241 } | 8273 } |
| 8242 | 8274 |
| 8243 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99
9; | 8275 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99
9; |
| 8244 case 999: { | 8276 case 999: { |
| 8245 if (tag == 7994u) { | 8277 if (tag == 7994) { |
| 8278 parse_uninterpreted_option: |
| 8246 DO_(input->IncrementRecursionDepth()); | 8279 DO_(input->IncrementRecursionDepth()); |
| 8280 parse_loop_uninterpreted_option: |
| 8247 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 8281 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
| 8248 input, add_uninterpreted_option())); | 8282 input, add_uninterpreted_option())); |
| 8249 } else { | 8283 } else { |
| 8250 goto handle_unusual; | 8284 goto handle_unusual; |
| 8251 } | 8285 } |
| 8286 if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option; |
| 8252 input->UnsafeDecrementRecursionDepth(); | 8287 input->UnsafeDecrementRecursionDepth(); |
| 8288 if (input->ExpectAtEnd()) goto success; |
| 8253 break; | 8289 break; |
| 8254 } | 8290 } |
| 8255 | 8291 |
| 8256 default: { | 8292 default: { |
| 8257 handle_unusual: | 8293 handle_unusual: |
| 8258 if (tag == 0 || | 8294 if (tag == 0 || |
| 8259 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 8295 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 8260 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 8296 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 8261 goto success; | 8297 goto success; |
| 8262 } | 8298 } |
| 8263 if ((8000u <= tag)) { | 8299 if ((8000u <= tag)) { |
| 8264 DO_(_extensions_.ParseField(tag, input, internal_default_instance(), | 8300 DO_(_extensions_.ParseField(tag, input, default_instance_, |
| 8265 mutable_unknown_fields())); | 8301 mutable_unknown_fields())); |
| 8266 continue; | 8302 continue; |
| 8267 } | 8303 } |
| 8268 DO_(::google::protobuf::internal::WireFormat::SkipField( | 8304 DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 8269 input, tag, mutable_unknown_fields())); | 8305 input, tag, mutable_unknown_fields())); |
| 8270 break; | 8306 break; |
| 8271 } | 8307 } |
| 8272 } | 8308 } |
| 8273 } | 8309 } |
| 8274 success: | 8310 success: |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8332 // optional bool java_generic_services = 17 [default = false]; | 8368 // optional bool java_generic_services = 17 [default = false]; |
| 8333 if (has_java_generic_services()) { | 8369 if (has_java_generic_services()) { |
| 8334 ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->java_gener
ic_services(), output); | 8370 ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->java_gener
ic_services(), output); |
| 8335 } | 8371 } |
| 8336 | 8372 |
| 8337 // optional bool py_generic_services = 18 [default = false]; | 8373 // optional bool py_generic_services = 18 [default = false]; |
| 8338 if (has_py_generic_services()) { | 8374 if (has_py_generic_services()) { |
| 8339 ::google::protobuf::internal::WireFormatLite::WriteBool(18, this->py_generic
_services(), output); | 8375 ::google::protobuf::internal::WireFormatLite::WriteBool(18, this->py_generic
_services(), output); |
| 8340 } | 8376 } |
| 8341 | 8377 |
| 8342 // optional bool java_generate_equals_and_hash = 20 [deprecated = true]; | 8378 // optional bool java_generate_equals_and_hash = 20 [default = false]; |
| 8343 if (has_java_generate_equals_and_hash()) { | 8379 if (has_java_generate_equals_and_hash()) { |
| 8344 ::google::protobuf::internal::WireFormatLite::WriteBool(20, this->java_gener
ate_equals_and_hash(), output); | 8380 ::google::protobuf::internal::WireFormatLite::WriteBool(20, this->java_gener
ate_equals_and_hash(), output); |
| 8345 } | 8381 } |
| 8346 | 8382 |
| 8347 // optional bool deprecated = 23 [default = false]; | 8383 // optional bool deprecated = 23 [default = false]; |
| 8348 if (has_deprecated()) { | 8384 if (has_deprecated()) { |
| 8349 ::google::protobuf::internal::WireFormatLite::WriteBool(23, this->deprecated
(), output); | 8385 ::google::protobuf::internal::WireFormatLite::WriteBool(23, this->deprecated
(), output); |
| 8350 } | 8386 } |
| 8351 | 8387 |
| 8352 // optional bool java_string_check_utf8 = 27 [default = false]; | 8388 // optional bool java_string_check_utf8 = 27 [default = false]; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 8372 // optional string csharp_namespace = 37; | 8408 // optional string csharp_namespace = 37; |
| 8373 if (has_csharp_namespace()) { | 8409 if (has_csharp_namespace()) { |
| 8374 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 8410 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 8375 this->csharp_namespace().data(), this->csharp_namespace().length(), | 8411 this->csharp_namespace().data(), this->csharp_namespace().length(), |
| 8376 ::google::protobuf::internal::WireFormat::SERIALIZE, | 8412 ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 8377 "google.protobuf.FileOptions.csharp_namespace"); | 8413 "google.protobuf.FileOptions.csharp_namespace"); |
| 8378 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( | 8414 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 8379 37, this->csharp_namespace(), output); | 8415 37, this->csharp_namespace(), output); |
| 8380 } | 8416 } |
| 8381 | 8417 |
| 8382 // optional string swift_prefix = 39; | |
| 8383 if (has_swift_prefix()) { | |
| 8384 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | |
| 8385 this->swift_prefix().data(), this->swift_prefix().length(), | |
| 8386 ::google::protobuf::internal::WireFormat::SERIALIZE, | |
| 8387 "google.protobuf.FileOptions.swift_prefix"); | |
| 8388 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( | |
| 8389 39, this->swift_prefix(), output); | |
| 8390 } | |
| 8391 | |
| 8392 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 8418 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 8393 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { | 8419 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 8394 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 8420 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 8395 999, this->uninterpreted_option(i), output); | 8421 999, this->uninterpreted_option(i), output); |
| 8396 } | 8422 } |
| 8397 | 8423 |
| 8398 // Extension range [1000, 536870912) | 8424 // Extension range [1000, 536870912) |
| 8399 _extensions_.SerializeWithCachedSizes( | 8425 _extensions_.SerializeWithCachedSizes( |
| 8400 1000, 536870912, output); | 8426 1000, 536870912, output); |
| 8401 | 8427 |
| 8402 if (_internal_metadata_.have_unknown_fields()) { | 8428 if (_internal_metadata_.have_unknown_fields()) { |
| 8403 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 8429 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 8404 unknown_fields(), output); | 8430 unknown_fields(), output); |
| 8405 } | 8431 } |
| 8406 // @@protoc_insertion_point(serialize_end:google.protobuf.FileOptions) | 8432 // @@protoc_insertion_point(serialize_end:google.protobuf.FileOptions) |
| 8407 } | 8433 } |
| 8408 | 8434 |
| 8409 ::google::protobuf::uint8* FileOptions::InternalSerializeWithCachedSizesToArray( | 8435 ::google::protobuf::uint8* FileOptions::SerializeWithCachedSizesToArray( |
| 8410 bool deterministic, ::google::protobuf::uint8* target) const { | 8436 ::google::protobuf::uint8* target) const { |
| 8411 (void)deterministic; // Unused | |
| 8412 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileOptio
ns) | 8437 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileOptio
ns) |
| 8413 // optional string java_package = 1; | 8438 // optional string java_package = 1; |
| 8414 if (has_java_package()) { | 8439 if (has_java_package()) { |
| 8415 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 8440 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 8416 this->java_package().data(), this->java_package().length(), | 8441 this->java_package().data(), this->java_package().length(), |
| 8417 ::google::protobuf::internal::WireFormat::SERIALIZE, | 8442 ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 8418 "google.protobuf.FileOptions.java_package"); | 8443 "google.protobuf.FileOptions.java_package"); |
| 8419 target = | 8444 target = |
| 8420 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 8445 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 8421 1, this->java_package(), target); | 8446 1, this->java_package(), target); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8462 // optional bool java_generic_services = 17 [default = false]; | 8487 // optional bool java_generic_services = 17 [default = false]; |
| 8463 if (has_java_generic_services()) { | 8488 if (has_java_generic_services()) { |
| 8464 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17,
this->java_generic_services(), target); | 8489 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17,
this->java_generic_services(), target); |
| 8465 } | 8490 } |
| 8466 | 8491 |
| 8467 // optional bool py_generic_services = 18 [default = false]; | 8492 // optional bool py_generic_services = 18 [default = false]; |
| 8468 if (has_py_generic_services()) { | 8493 if (has_py_generic_services()) { |
| 8469 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(18,
this->py_generic_services(), target); | 8494 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(18,
this->py_generic_services(), target); |
| 8470 } | 8495 } |
| 8471 | 8496 |
| 8472 // optional bool java_generate_equals_and_hash = 20 [deprecated = true]; | 8497 // optional bool java_generate_equals_and_hash = 20 [default = false]; |
| 8473 if (has_java_generate_equals_and_hash()) { | 8498 if (has_java_generate_equals_and_hash()) { |
| 8474 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(20,
this->java_generate_equals_and_hash(), target); | 8499 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(20,
this->java_generate_equals_and_hash(), target); |
| 8475 } | 8500 } |
| 8476 | 8501 |
| 8477 // optional bool deprecated = 23 [default = false]; | 8502 // optional bool deprecated = 23 [default = false]; |
| 8478 if (has_deprecated()) { | 8503 if (has_deprecated()) { |
| 8479 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(23,
this->deprecated(), target); | 8504 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(23,
this->deprecated(), target); |
| 8480 } | 8505 } |
| 8481 | 8506 |
| 8482 // optional bool java_string_check_utf8 = 27 [default = false]; | 8507 // optional bool java_string_check_utf8 = 27 [default = false]; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 8504 if (has_csharp_namespace()) { | 8529 if (has_csharp_namespace()) { |
| 8505 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 8530 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 8506 this->csharp_namespace().data(), this->csharp_namespace().length(), | 8531 this->csharp_namespace().data(), this->csharp_namespace().length(), |
| 8507 ::google::protobuf::internal::WireFormat::SERIALIZE, | 8532 ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 8508 "google.protobuf.FileOptions.csharp_namespace"); | 8533 "google.protobuf.FileOptions.csharp_namespace"); |
| 8509 target = | 8534 target = |
| 8510 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 8535 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 8511 37, this->csharp_namespace(), target); | 8536 37, this->csharp_namespace(), target); |
| 8512 } | 8537 } |
| 8513 | 8538 |
| 8514 // optional string swift_prefix = 39; | |
| 8515 if (has_swift_prefix()) { | |
| 8516 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | |
| 8517 this->swift_prefix().data(), this->swift_prefix().length(), | |
| 8518 ::google::protobuf::internal::WireFormat::SERIALIZE, | |
| 8519 "google.protobuf.FileOptions.swift_prefix"); | |
| 8520 target = | |
| 8521 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | |
| 8522 39, this->swift_prefix(), target); | |
| 8523 } | |
| 8524 | |
| 8525 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 8539 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 8526 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { | 8540 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 8527 target = ::google::protobuf::internal::WireFormatLite:: | 8541 target = ::google::protobuf::internal::WireFormatLite:: |
| 8528 InternalWriteMessageNoVirtualToArray( | 8542 WriteMessageNoVirtualToArray( |
| 8529 999, this->uninterpreted_option(i), false, target); | 8543 999, this->uninterpreted_option(i), target); |
| 8530 } | 8544 } |
| 8531 | 8545 |
| 8532 // Extension range [1000, 536870912) | 8546 // Extension range [1000, 536870912) |
| 8533 target = _extensions_.InternalSerializeWithCachedSizesToArray( | 8547 target = _extensions_.SerializeWithCachedSizesToArray( |
| 8534 1000, 536870912, false, target); | 8548 1000, 536870912, target); |
| 8535 | 8549 |
| 8536 if (_internal_metadata_.have_unknown_fields()) { | 8550 if (_internal_metadata_.have_unknown_fields()) { |
| 8537 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 8551 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
| 8538 unknown_fields(), target); | 8552 unknown_fields(), target); |
| 8539 } | 8553 } |
| 8540 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileOptions
) | 8554 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileOptions
) |
| 8541 return target; | 8555 return target; |
| 8542 } | 8556 } |
| 8543 | 8557 |
| 8544 size_t FileOptions::ByteSizeLong() const { | 8558 int FileOptions::ByteSize() const { |
| 8545 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FileOptions) | 8559 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FileOptions) |
| 8546 size_t total_size = 0; | 8560 int total_size = 0; |
| 8547 | |
| 8548 total_size += _extensions_.ByteSize(); | |
| 8549 | |
| 8550 if (_internal_metadata_.have_unknown_fields()) { | |
| 8551 total_size += | |
| 8552 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | |
| 8553 unknown_fields()); | |
| 8554 } | |
| 8555 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | |
| 8556 { | |
| 8557 unsigned int count = this->uninterpreted_option_size(); | |
| 8558 total_size += 2UL * count; | |
| 8559 for (unsigned int i = 0; i < count; i++) { | |
| 8560 total_size += | |
| 8561 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
| 8562 this->uninterpreted_option(i)); | |
| 8563 } | |
| 8564 } | |
| 8565 | 8561 |
| 8566 if (_has_bits_[0 / 32] & 255u) { | 8562 if (_has_bits_[0 / 32] & 255u) { |
| 8567 // optional string java_package = 1; | 8563 // optional string java_package = 1; |
| 8568 if (has_java_package()) { | 8564 if (has_java_package()) { |
| 8569 total_size += 1 + | 8565 total_size += 1 + |
| 8570 ::google::protobuf::internal::WireFormatLite::StringSize( | 8566 ::google::protobuf::internal::WireFormatLite::StringSize( |
| 8571 this->java_package()); | 8567 this->java_package()); |
| 8572 } | 8568 } |
| 8573 | 8569 |
| 8574 // optional string java_outer_classname = 8; | 8570 // optional string java_outer_classname = 8; |
| 8575 if (has_java_outer_classname()) { | 8571 if (has_java_outer_classname()) { |
| 8576 total_size += 1 + | 8572 total_size += 1 + |
| 8577 ::google::protobuf::internal::WireFormatLite::StringSize( | 8573 ::google::protobuf::internal::WireFormatLite::StringSize( |
| 8578 this->java_outer_classname()); | 8574 this->java_outer_classname()); |
| 8579 } | 8575 } |
| 8580 | 8576 |
| 8577 // optional bool java_multiple_files = 10 [default = false]; |
| 8578 if (has_java_multiple_files()) { |
| 8579 total_size += 1 + 1; |
| 8580 } |
| 8581 |
| 8582 // optional bool java_generate_equals_and_hash = 20 [default = false]; |
| 8583 if (has_java_generate_equals_and_hash()) { |
| 8584 total_size += 2 + 1; |
| 8585 } |
| 8586 |
| 8587 // optional bool java_string_check_utf8 = 27 [default = false]; |
| 8588 if (has_java_string_check_utf8()) { |
| 8589 total_size += 2 + 1; |
| 8590 } |
| 8591 |
| 8592 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [defa
ult = SPEED]; |
| 8593 if (has_optimize_for()) { |
| 8594 total_size += 1 + |
| 8595 ::google::protobuf::internal::WireFormatLite::EnumSize(this->optimize_fo
r()); |
| 8596 } |
| 8597 |
| 8581 // optional string go_package = 11; | 8598 // optional string go_package = 11; |
| 8582 if (has_go_package()) { | 8599 if (has_go_package()) { |
| 8583 total_size += 1 + | 8600 total_size += 1 + |
| 8584 ::google::protobuf::internal::WireFormatLite::StringSize( | 8601 ::google::protobuf::internal::WireFormatLite::StringSize( |
| 8585 this->go_package()); | 8602 this->go_package()); |
| 8586 } | 8603 } |
| 8587 | 8604 |
| 8588 // optional string objc_class_prefix = 36; | |
| 8589 if (has_objc_class_prefix()) { | |
| 8590 total_size += 2 + | |
| 8591 ::google::protobuf::internal::WireFormatLite::StringSize( | |
| 8592 this->objc_class_prefix()); | |
| 8593 } | |
| 8594 | |
| 8595 // optional string csharp_namespace = 37; | |
| 8596 if (has_csharp_namespace()) { | |
| 8597 total_size += 2 + | |
| 8598 ::google::protobuf::internal::WireFormatLite::StringSize( | |
| 8599 this->csharp_namespace()); | |
| 8600 } | |
| 8601 | |
| 8602 // optional string swift_prefix = 39; | |
| 8603 if (has_swift_prefix()) { | |
| 8604 total_size += 2 + | |
| 8605 ::google::protobuf::internal::WireFormatLite::StringSize( | |
| 8606 this->swift_prefix()); | |
| 8607 } | |
| 8608 | |
| 8609 // optional bool java_multiple_files = 10 [default = false]; | |
| 8610 if (has_java_multiple_files()) { | |
| 8611 total_size += 1 + 1; | |
| 8612 } | |
| 8613 | |
| 8614 // optional bool java_generate_equals_and_hash = 20 [deprecated = true]; | |
| 8615 if (has_java_generate_equals_and_hash()) { | |
| 8616 total_size += 2 + 1; | |
| 8617 } | |
| 8618 | |
| 8619 } | |
| 8620 if (_has_bits_[8 / 32] & 32512u) { | |
| 8621 // optional bool java_string_check_utf8 = 27 [default = false]; | |
| 8622 if (has_java_string_check_utf8()) { | |
| 8623 total_size += 2 + 1; | |
| 8624 } | |
| 8625 | |
| 8626 // optional bool cc_generic_services = 16 [default = false]; | 8605 // optional bool cc_generic_services = 16 [default = false]; |
| 8627 if (has_cc_generic_services()) { | 8606 if (has_cc_generic_services()) { |
| 8628 total_size += 2 + 1; | 8607 total_size += 2 + 1; |
| 8629 } | 8608 } |
| 8630 | 8609 |
| 8610 } |
| 8611 if (_has_bits_[8 / 32] & 16128u) { |
| 8631 // optional bool java_generic_services = 17 [default = false]; | 8612 // optional bool java_generic_services = 17 [default = false]; |
| 8632 if (has_java_generic_services()) { | 8613 if (has_java_generic_services()) { |
| 8633 total_size += 2 + 1; | 8614 total_size += 2 + 1; |
| 8634 } | 8615 } |
| 8635 | 8616 |
| 8636 // optional bool py_generic_services = 18 [default = false]; | 8617 // optional bool py_generic_services = 18 [default = false]; |
| 8637 if (has_py_generic_services()) { | 8618 if (has_py_generic_services()) { |
| 8638 total_size += 2 + 1; | 8619 total_size += 2 + 1; |
| 8639 } | 8620 } |
| 8640 | 8621 |
| 8641 // optional bool deprecated = 23 [default = false]; | 8622 // optional bool deprecated = 23 [default = false]; |
| 8642 if (has_deprecated()) { | 8623 if (has_deprecated()) { |
| 8643 total_size += 2 + 1; | 8624 total_size += 2 + 1; |
| 8644 } | 8625 } |
| 8645 | 8626 |
| 8646 // optional bool cc_enable_arenas = 31 [default = false]; | 8627 // optional bool cc_enable_arenas = 31 [default = false]; |
| 8647 if (has_cc_enable_arenas()) { | 8628 if (has_cc_enable_arenas()) { |
| 8648 total_size += 2 + 1; | 8629 total_size += 2 + 1; |
| 8649 } | 8630 } |
| 8650 | 8631 |
| 8651 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [defa
ult = SPEED]; | 8632 // optional string objc_class_prefix = 36; |
| 8652 if (has_optimize_for()) { | 8633 if (has_objc_class_prefix()) { |
| 8653 total_size += 1 + | 8634 total_size += 2 + |
| 8654 ::google::protobuf::internal::WireFormatLite::EnumSize(this->optimize_fo
r()); | 8635 ::google::protobuf::internal::WireFormatLite::StringSize( |
| 8636 this->objc_class_prefix()); |
| 8637 } |
| 8638 |
| 8639 // optional string csharp_namespace = 37; |
| 8640 if (has_csharp_namespace()) { |
| 8641 total_size += 2 + |
| 8642 ::google::protobuf::internal::WireFormatLite::StringSize( |
| 8643 this->csharp_namespace()); |
| 8655 } | 8644 } |
| 8656 | 8645 |
| 8657 } | 8646 } |
| 8658 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | 8647 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 8648 total_size += 2 * this->uninterpreted_option_size(); |
| 8649 for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
| 8650 total_size += |
| 8651 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 8652 this->uninterpreted_option(i)); |
| 8653 } |
| 8654 |
| 8655 total_size += _extensions_.ByteSize(); |
| 8656 |
| 8657 if (_internal_metadata_.have_unknown_fields()) { |
| 8658 total_size += |
| 8659 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 8660 unknown_fields()); |
| 8661 } |
| 8659 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 8662 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 8660 _cached_size_ = cached_size; | 8663 _cached_size_ = total_size; |
| 8661 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 8664 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 8662 return total_size; | 8665 return total_size; |
| 8663 } | 8666 } |
| 8664 | 8667 |
| 8665 void FileOptions::MergeFrom(const ::google::protobuf::Message& from) { | 8668 void FileOptions::MergeFrom(const ::google::protobuf::Message& from) { |
| 8666 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FileOpt
ions) | 8669 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FileOpt
ions) |
| 8667 GOOGLE_DCHECK_NE(&from, this); | 8670 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 8668 const FileOptions* source = | 8671 const FileOptions* source = |
| 8669 ::google::protobuf::internal::DynamicCastToGenerated<const FileOptions>( | 8672 ::google::protobuf::internal::DynamicCastToGenerated<const FileOptions>( |
| 8670 &from); | 8673 &from); |
| 8671 if (source == NULL) { | 8674 if (source == NULL) { |
| 8672 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.F
ileOptions) | 8675 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.F
ileOptions) |
| 8673 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 8676 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 8674 } else { | 8677 } else { |
| 8675 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.FileOptions) | 8678 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.FileOptions) |
| 8676 MergeFrom(*source); | 8679 MergeFrom(*source); |
| 8677 } | 8680 } |
| 8678 } | 8681 } |
| 8679 | 8682 |
| 8680 void FileOptions::MergeFrom(const FileOptions& from) { | 8683 void FileOptions::MergeFrom(const FileOptions& from) { |
| 8681 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.File
Options) | 8684 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.File
Options) |
| 8682 GOOGLE_DCHECK_NE(&from, this); | 8685 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 8683 _extensions_.MergeFrom(from._extensions_); | |
| 8684 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 8685 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); | 8686 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); |
| 8686 if (from._has_bits_[0 / 32] & 255u) { | 8687 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 8687 if (from.has_java_package()) { | 8688 if (from.has_java_package()) { |
| 8688 set_has_java_package(); | 8689 set_has_java_package(); |
| 8689 java_package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited(), from.java_package_); | 8690 java_package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited(), from.java_package_); |
| 8690 } | 8691 } |
| 8691 if (from.has_java_outer_classname()) { | 8692 if (from.has_java_outer_classname()) { |
| 8692 set_has_java_outer_classname(); | 8693 set_has_java_outer_classname(); |
| 8693 java_outer_classname_.AssignWithDefault(&::google::protobuf::internal::Get
EmptyStringAlreadyInited(), from.java_outer_classname_); | 8694 java_outer_classname_.AssignWithDefault(&::google::protobuf::internal::Get
EmptyStringAlreadyInited(), from.java_outer_classname_); |
| 8694 } | 8695 } |
| 8695 if (from.has_go_package()) { | |
| 8696 set_has_go_package(); | |
| 8697 go_package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited(), from.go_package_); | |
| 8698 } | |
| 8699 if (from.has_objc_class_prefix()) { | |
| 8700 set_has_objc_class_prefix(); | |
| 8701 objc_class_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmp
tyStringAlreadyInited(), from.objc_class_prefix_); | |
| 8702 } | |
| 8703 if (from.has_csharp_namespace()) { | |
| 8704 set_has_csharp_namespace(); | |
| 8705 csharp_namespace_.AssignWithDefault(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited(), from.csharp_namespace_); | |
| 8706 } | |
| 8707 if (from.has_swift_prefix()) { | |
| 8708 set_has_swift_prefix(); | |
| 8709 swift_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited(), from.swift_prefix_); | |
| 8710 } | |
| 8711 if (from.has_java_multiple_files()) { | 8696 if (from.has_java_multiple_files()) { |
| 8712 set_java_multiple_files(from.java_multiple_files()); | 8697 set_java_multiple_files(from.java_multiple_files()); |
| 8713 } | 8698 } |
| 8714 if (from.has_java_generate_equals_and_hash()) { | 8699 if (from.has_java_generate_equals_and_hash()) { |
| 8715 set_java_generate_equals_and_hash(from.java_generate_equals_and_hash()); | 8700 set_java_generate_equals_and_hash(from.java_generate_equals_and_hash()); |
| 8716 } | 8701 } |
| 8717 } | |
| 8718 if (from._has_bits_[8 / 32] & 32512u) { | |
| 8719 if (from.has_java_string_check_utf8()) { | 8702 if (from.has_java_string_check_utf8()) { |
| 8720 set_java_string_check_utf8(from.java_string_check_utf8()); | 8703 set_java_string_check_utf8(from.java_string_check_utf8()); |
| 8721 } | 8704 } |
| 8705 if (from.has_optimize_for()) { |
| 8706 set_optimize_for(from.optimize_for()); |
| 8707 } |
| 8708 if (from.has_go_package()) { |
| 8709 set_has_go_package(); |
| 8710 go_package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited(), from.go_package_); |
| 8711 } |
| 8722 if (from.has_cc_generic_services()) { | 8712 if (from.has_cc_generic_services()) { |
| 8723 set_cc_generic_services(from.cc_generic_services()); | 8713 set_cc_generic_services(from.cc_generic_services()); |
| 8724 } | 8714 } |
| 8715 } |
| 8716 if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { |
| 8725 if (from.has_java_generic_services()) { | 8717 if (from.has_java_generic_services()) { |
| 8726 set_java_generic_services(from.java_generic_services()); | 8718 set_java_generic_services(from.java_generic_services()); |
| 8727 } | 8719 } |
| 8728 if (from.has_py_generic_services()) { | 8720 if (from.has_py_generic_services()) { |
| 8729 set_py_generic_services(from.py_generic_services()); | 8721 set_py_generic_services(from.py_generic_services()); |
| 8730 } | 8722 } |
| 8731 if (from.has_deprecated()) { | 8723 if (from.has_deprecated()) { |
| 8732 set_deprecated(from.deprecated()); | 8724 set_deprecated(from.deprecated()); |
| 8733 } | 8725 } |
| 8734 if (from.has_cc_enable_arenas()) { | 8726 if (from.has_cc_enable_arenas()) { |
| 8735 set_cc_enable_arenas(from.cc_enable_arenas()); | 8727 set_cc_enable_arenas(from.cc_enable_arenas()); |
| 8736 } | 8728 } |
| 8737 if (from.has_optimize_for()) { | 8729 if (from.has_objc_class_prefix()) { |
| 8738 set_optimize_for(from.optimize_for()); | 8730 set_has_objc_class_prefix(); |
| 8731 objc_class_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmp
tyStringAlreadyInited(), from.objc_class_prefix_); |
| 8739 } | 8732 } |
| 8733 if (from.has_csharp_namespace()) { |
| 8734 set_has_csharp_namespace(); |
| 8735 csharp_namespace_.AssignWithDefault(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited(), from.csharp_namespace_); |
| 8736 } |
| 8737 } |
| 8738 _extensions_.MergeFrom(from._extensions_); |
| 8739 if (from._internal_metadata_.have_unknown_fields()) { |
| 8740 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 8740 } | 8741 } |
| 8741 } | 8742 } |
| 8742 | 8743 |
| 8743 void FileOptions::CopyFrom(const ::google::protobuf::Message& from) { | 8744 void FileOptions::CopyFrom(const ::google::protobuf::Message& from) { |
| 8744 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FileOpti
ons) | 8745 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FileOpti
ons) |
| 8745 if (&from == this) return; | 8746 if (&from == this) return; |
| 8746 Clear(); | 8747 Clear(); |
| 8747 MergeFrom(from); | 8748 MergeFrom(from); |
| 8748 } | 8749 } |
| 8749 | 8750 |
| 8750 void FileOptions::CopyFrom(const FileOptions& from) { | 8751 void FileOptions::CopyFrom(const FileOptions& from) { |
| 8751 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FileO
ptions) | 8752 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FileO
ptions) |
| 8752 if (&from == this) return; | 8753 if (&from == this) return; |
| 8753 Clear(); | 8754 Clear(); |
| 8754 MergeFrom(from); | 8755 MergeFrom(from); |
| 8755 } | 8756 } |
| 8756 | 8757 |
| 8757 bool FileOptions::IsInitialized() const { | 8758 bool FileOptions::IsInitialized() const { |
| 8758 if (!_extensions_.IsInitialized()) { | |
| 8759 return false; | |
| 8760 } | |
| 8761 | 8759 |
| 8762 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio
n())) return false; | 8760 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio
n())) return false; |
| 8763 return true; | 8761 |
| 8762 if (!_extensions_.IsInitialized()) return false; return true; |
| 8764 } | 8763 } |
| 8765 | 8764 |
| 8766 void FileOptions::Swap(FileOptions* other) { | 8765 void FileOptions::Swap(FileOptions* other) { |
| 8767 if (other == this) return; | 8766 if (other == this) return; |
| 8768 InternalSwap(other); | 8767 InternalSwap(other); |
| 8769 } | 8768 } |
| 8770 void FileOptions::InternalSwap(FileOptions* other) { | 8769 void FileOptions::InternalSwap(FileOptions* other) { |
| 8771 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); | |
| 8772 java_package_.Swap(&other->java_package_); | 8770 java_package_.Swap(&other->java_package_); |
| 8773 java_outer_classname_.Swap(&other->java_outer_classname_); | 8771 java_outer_classname_.Swap(&other->java_outer_classname_); |
| 8774 go_package_.Swap(&other->go_package_); | |
| 8775 objc_class_prefix_.Swap(&other->objc_class_prefix_); | |
| 8776 csharp_namespace_.Swap(&other->csharp_namespace_); | |
| 8777 swift_prefix_.Swap(&other->swift_prefix_); | |
| 8778 std::swap(java_multiple_files_, other->java_multiple_files_); | 8772 std::swap(java_multiple_files_, other->java_multiple_files_); |
| 8779 std::swap(java_generate_equals_and_hash_, other->java_generate_equals_and_hash
_); | 8773 std::swap(java_generate_equals_and_hash_, other->java_generate_equals_and_hash
_); |
| 8780 std::swap(java_string_check_utf8_, other->java_string_check_utf8_); | 8774 std::swap(java_string_check_utf8_, other->java_string_check_utf8_); |
| 8775 std::swap(optimize_for_, other->optimize_for_); |
| 8776 go_package_.Swap(&other->go_package_); |
| 8781 std::swap(cc_generic_services_, other->cc_generic_services_); | 8777 std::swap(cc_generic_services_, other->cc_generic_services_); |
| 8782 std::swap(java_generic_services_, other->java_generic_services_); | 8778 std::swap(java_generic_services_, other->java_generic_services_); |
| 8783 std::swap(py_generic_services_, other->py_generic_services_); | 8779 std::swap(py_generic_services_, other->py_generic_services_); |
| 8784 std::swap(deprecated_, other->deprecated_); | 8780 std::swap(deprecated_, other->deprecated_); |
| 8785 std::swap(cc_enable_arenas_, other->cc_enable_arenas_); | 8781 std::swap(cc_enable_arenas_, other->cc_enable_arenas_); |
| 8786 std::swap(optimize_for_, other->optimize_for_); | 8782 objc_class_prefix_.Swap(&other->objc_class_prefix_); |
| 8783 csharp_namespace_.Swap(&other->csharp_namespace_); |
| 8784 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); |
| 8787 std::swap(_has_bits_[0], other->_has_bits_[0]); | 8785 std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 8788 _internal_metadata_.Swap(&other->_internal_metadata_); | 8786 _internal_metadata_.Swap(&other->_internal_metadata_); |
| 8789 std::swap(_cached_size_, other->_cached_size_); | 8787 std::swap(_cached_size_, other->_cached_size_); |
| 8790 _extensions_.Swap(&other->_extensions_); | 8788 _extensions_.Swap(&other->_extensions_); |
| 8791 } | 8789 } |
| 8792 | 8790 |
| 8793 ::google::protobuf::Metadata FileOptions::GetMetadata() const { | 8791 ::google::protobuf::Metadata FileOptions::GetMetadata() const { |
| 8794 protobuf_AssignDescriptorsOnce(); | 8792 protobuf_AssignDescriptorsOnce(); |
| 8795 return file_level_metadata[11]; | 8793 ::google::protobuf::Metadata metadata; |
| 8794 metadata.descriptor = FileOptions_descriptor_; |
| 8795 metadata.reflection = FileOptions_reflection_; |
| 8796 return metadata; |
| 8796 } | 8797 } |
| 8797 | 8798 |
| 8798 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 8799 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 8799 // FileOptions | 8800 // FileOptions |
| 8800 | 8801 |
| 8801 // optional string java_package = 1; | 8802 // optional string java_package = 1; |
| 8802 bool FileOptions::has_java_package() const { | 8803 bool FileOptions::has_java_package() const { |
| 8803 return (_has_bits_[0] & 0x00000001u) != 0; | 8804 return (_has_bits_[0] & 0x00000001u) != 0; |
| 8804 } | 8805 } |
| 8805 void FileOptions::set_has_java_package() { | 8806 void FileOptions::set_has_java_package() { |
| 8806 _has_bits_[0] |= 0x00000001u; | 8807 _has_bits_[0] |= 0x00000001u; |
| 8807 } | 8808 } |
| 8808 void FileOptions::clear_has_java_package() { | 8809 void FileOptions::clear_has_java_package() { |
| 8809 _has_bits_[0] &= ~0x00000001u; | 8810 _has_bits_[0] &= ~0x00000001u; |
| 8810 } | 8811 } |
| 8811 void FileOptions::clear_java_package() { | 8812 void FileOptions::clear_java_package() { |
| 8812 java_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); | 8813 java_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); |
| 8813 clear_has_java_package(); | 8814 clear_has_java_package(); |
| 8814 } | 8815 } |
| 8815 const ::std::string& FileOptions::java_package() const { | 8816 const ::std::string& FileOptions::java_package() const { |
| 8816 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_package
) | 8817 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_package
) |
| 8817 return java_package_.GetNoArena(); | 8818 return java_package_.GetNoArena(&::google::protobuf::internal::GetEmptyStringA
lreadyInited()); |
| 8818 } | 8819 } |
| 8819 void FileOptions::set_java_package(const ::std::string& value) { | 8820 void FileOptions::set_java_package(const ::std::string& value) { |
| 8820 set_has_java_package(); | 8821 set_has_java_package(); |
| 8821 java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI
nited(), value); | 8822 java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI
nited(), value); |
| 8822 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_package
) | 8823 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_package
) |
| 8823 } | 8824 } |
| 8824 void FileOptions::set_java_package(const char* value) { | 8825 void FileOptions::set_java_package(const char* value) { |
| 8825 set_has_java_package(); | 8826 set_has_java_package(); |
| 8826 java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI
nited(), ::std::string(value)); | 8827 java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI
nited(), ::std::string(value)); |
| 8827 // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.java_pa
ckage) | 8828 // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.java_pa
ckage) |
| 8828 } | 8829 } |
| 8829 void FileOptions::set_java_package(const char* value, size_t size) { | 8830 void FileOptions::set_java_package(const char* value, size_t size) { |
| 8830 set_has_java_package(); | 8831 set_has_java_package(); |
| 8831 java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI
nited(), | 8832 java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI
nited(), |
| 8832 ::std::string(reinterpret_cast<const char*>(value), size)); | 8833 ::std::string(reinterpret_cast<const char*>(value), size)); |
| 8833 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.java
_package) | 8834 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.java
_package) |
| 8834 } | 8835 } |
| 8835 ::std::string* FileOptions::mutable_java_package() { | 8836 ::std::string* FileOptions::mutable_java_package() { |
| 8836 set_has_java_package(); | 8837 set_has_java_package(); |
| 8837 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_pac
kage) | 8838 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_pac
kage) |
| 8838 return java_package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited()); | 8839 return java_package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited()); |
| 8839 } | 8840 } |
| 8840 ::std::string* FileOptions::release_java_package() { | 8841 ::std::string* FileOptions::release_java_package() { |
| 8841 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.java_pac
kage) | 8842 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.java_pac
kage) |
| 8842 clear_has_java_package(); | 8843 clear_has_java_package(); |
| 8843 return java_package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited()); | 8844 return java_package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited()); |
| 8844 } | 8845 } |
| 8845 void FileOptions::set_allocated_java_package(::std::string* java_package) { | 8846 void FileOptions::set_allocated_java_package(::std::string* java_package) { |
| 8846 if (java_package != NULL) { | 8847 if (java_package != NULL) { |
| 8847 set_has_java_package(); | 8848 set_has_java_package(); |
| 8848 } else { | 8849 } else { |
| 8849 clear_has_java_package(); | 8850 clear_has_java_package(); |
| 8850 } | 8851 } |
| 8851 java_package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited(), java_package); | 8852 java_package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited(), java_package); |
| 8852 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.ja
va_package) | 8853 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.ja
va_package) |
| 8853 } | 8854 } |
| 8854 | 8855 |
| 8855 // optional string java_outer_classname = 8; | 8856 // optional string java_outer_classname = 8; |
| 8856 bool FileOptions::has_java_outer_classname() const { | 8857 bool FileOptions::has_java_outer_classname() const { |
| 8857 return (_has_bits_[0] & 0x00000002u) != 0; | 8858 return (_has_bits_[0] & 0x00000002u) != 0; |
| 8858 } | 8859 } |
| 8859 void FileOptions::set_has_java_outer_classname() { | 8860 void FileOptions::set_has_java_outer_classname() { |
| 8860 _has_bits_[0] |= 0x00000002u; | 8861 _has_bits_[0] |= 0x00000002u; |
| 8861 } | 8862 } |
| 8862 void FileOptions::clear_has_java_outer_classname() { | 8863 void FileOptions::clear_has_java_outer_classname() { |
| 8863 _has_bits_[0] &= ~0x00000002u; | 8864 _has_bits_[0] &= ~0x00000002u; |
| 8864 } | 8865 } |
| 8865 void FileOptions::clear_java_outer_classname() { | 8866 void FileOptions::clear_java_outer_classname() { |
| 8866 java_outer_classname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEm
ptyStringAlreadyInited()); | 8867 java_outer_classname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEm
ptyStringAlreadyInited()); |
| 8867 clear_has_java_outer_classname(); | 8868 clear_has_java_outer_classname(); |
| 8868 } | 8869 } |
| 8869 const ::std::string& FileOptions::java_outer_classname() const { | 8870 const ::std::string& FileOptions::java_outer_classname() const { |
| 8870 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_outer_c
lassname) | 8871 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_outer_c
lassname) |
| 8871 return java_outer_classname_.GetNoArena(); | 8872 return java_outer_classname_.GetNoArena(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited()); |
| 8872 } | 8873 } |
| 8873 void FileOptions::set_java_outer_classname(const ::std::string& value) { | 8874 void FileOptions::set_java_outer_classname(const ::std::string& value) { |
| 8874 set_has_java_outer_classname(); | 8875 set_has_java_outer_classname(); |
| 8875 java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited(), value); | 8876 java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited(), value); |
| 8876 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_outer_c
lassname) | 8877 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_outer_c
lassname) |
| 8877 } | 8878 } |
| 8878 void FileOptions::set_java_outer_classname(const char* value) { | 8879 void FileOptions::set_java_outer_classname(const char* value) { |
| 8879 set_has_java_outer_classname(); | 8880 set_has_java_outer_classname(); |
| 8880 java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited(), ::std::string(value)); | 8881 java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited(), ::std::string(value)); |
| 8881 // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.java_ou
ter_classname) | 8882 // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.java_ou
ter_classname) |
| 8882 } | 8883 } |
| 8883 void FileOptions::set_java_outer_classname(const char* value, size_t size) { | 8884 void FileOptions::set_java_outer_classname(const char* value, size_t size) { |
| 8884 set_has_java_outer_classname(); | 8885 set_has_java_outer_classname(); |
| 8885 java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited(), | 8886 java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited(), |
| 8886 ::std::string(reinterpret_cast<const char*>(value), size)); | 8887 ::std::string(reinterpret_cast<const char*>(value), size)); |
| 8887 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.java
_outer_classname) | 8888 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.java
_outer_classname) |
| 8888 } | 8889 } |
| 8889 ::std::string* FileOptions::mutable_java_outer_classname() { | 8890 ::std::string* FileOptions::mutable_java_outer_classname() { |
| 8890 set_has_java_outer_classname(); | 8891 set_has_java_outer_classname(); |
| 8891 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_out
er_classname) | 8892 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_out
er_classname) |
| 8892 return java_outer_classname_.MutableNoArena(&::google::protobuf::internal::Get
EmptyStringAlreadyInited()); | 8893 return java_outer_classname_.MutableNoArena(&::google::protobuf::internal::Get
EmptyStringAlreadyInited()); |
| 8893 } | 8894 } |
| 8894 ::std::string* FileOptions::release_java_outer_classname() { | 8895 ::std::string* FileOptions::release_java_outer_classname() { |
| 8895 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.java_out
er_classname) | 8896 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.java_out
er_classname) |
| 8896 clear_has_java_outer_classname(); | 8897 clear_has_java_outer_classname(); |
| 8897 return java_outer_classname_.ReleaseNoArena(&::google::protobuf::internal::Get
EmptyStringAlreadyInited()); | 8898 return java_outer_classname_.ReleaseNoArena(&::google::protobuf::internal::Get
EmptyStringAlreadyInited()); |
| 8898 } | 8899 } |
| 8899 void FileOptions::set_allocated_java_outer_classname(::std::string* java_outer_c
lassname) { | 8900 void FileOptions::set_allocated_java_outer_classname(::std::string* java_outer_
classname) { |
| 8900 if (java_outer_classname != NULL) { | 8901 if (java_outer_classname != NULL) { |
| 8901 set_has_java_outer_classname(); | 8902 set_has_java_outer_classname(); |
| 8902 } else { | 8903 } else { |
| 8903 clear_has_java_outer_classname(); | 8904 clear_has_java_outer_classname(); |
| 8904 } | 8905 } |
| 8905 java_outer_classname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEm
ptyStringAlreadyInited(), java_outer_classname); | 8906 java_outer_classname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEm
ptyStringAlreadyInited(), java_outer_classname); |
| 8906 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.ja
va_outer_classname) | 8907 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.ja
va_outer_classname) |
| 8907 } | 8908 } |
| 8908 | 8909 |
| 8909 // optional bool java_multiple_files = 10 [default = false]; | 8910 // optional bool java_multiple_files = 10 [default = false]; |
| 8910 bool FileOptions::has_java_multiple_files() const { | 8911 bool FileOptions::has_java_multiple_files() const { |
| 8911 return (_has_bits_[0] & 0x00000040u) != 0; | 8912 return (_has_bits_[0] & 0x00000004u) != 0; |
| 8912 } | 8913 } |
| 8913 void FileOptions::set_has_java_multiple_files() { | 8914 void FileOptions::set_has_java_multiple_files() { |
| 8914 _has_bits_[0] |= 0x00000040u; | 8915 _has_bits_[0] |= 0x00000004u; |
| 8915 } | 8916 } |
| 8916 void FileOptions::clear_has_java_multiple_files() { | 8917 void FileOptions::clear_has_java_multiple_files() { |
| 8917 _has_bits_[0] &= ~0x00000040u; | 8918 _has_bits_[0] &= ~0x00000004u; |
| 8918 } | 8919 } |
| 8919 void FileOptions::clear_java_multiple_files() { | 8920 void FileOptions::clear_java_multiple_files() { |
| 8920 java_multiple_files_ = false; | 8921 java_multiple_files_ = false; |
| 8921 clear_has_java_multiple_files(); | 8922 clear_has_java_multiple_files(); |
| 8922 } | 8923 } |
| 8923 bool FileOptions::java_multiple_files() const { | 8924 bool FileOptions::java_multiple_files() const { |
| 8924 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_multipl
e_files) | 8925 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_multipl
e_files) |
| 8925 return java_multiple_files_; | 8926 return java_multiple_files_; |
| 8926 } | 8927 } |
| 8927 void FileOptions::set_java_multiple_files(bool value) { | 8928 void FileOptions::set_java_multiple_files(bool value) { |
| 8928 set_has_java_multiple_files(); | 8929 set_has_java_multiple_files(); |
| 8929 java_multiple_files_ = value; | 8930 java_multiple_files_ = value; |
| 8930 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_multipl
e_files) | 8931 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_multipl
e_files) |
| 8931 } | 8932 } |
| 8932 | 8933 |
| 8933 // optional bool java_generate_equals_and_hash = 20 [deprecated = true]; | 8934 // optional bool java_generate_equals_and_hash = 20 [default = false]; |
| 8934 bool FileOptions::has_java_generate_equals_and_hash() const { | 8935 bool FileOptions::has_java_generate_equals_and_hash() const { |
| 8935 return (_has_bits_[0] & 0x00000080u) != 0; | 8936 return (_has_bits_[0] & 0x00000008u) != 0; |
| 8936 } | 8937 } |
| 8937 void FileOptions::set_has_java_generate_equals_and_hash() { | 8938 void FileOptions::set_has_java_generate_equals_and_hash() { |
| 8938 _has_bits_[0] |= 0x00000080u; | 8939 _has_bits_[0] |= 0x00000008u; |
| 8939 } | 8940 } |
| 8940 void FileOptions::clear_has_java_generate_equals_and_hash() { | 8941 void FileOptions::clear_has_java_generate_equals_and_hash() { |
| 8941 _has_bits_[0] &= ~0x00000080u; | 8942 _has_bits_[0] &= ~0x00000008u; |
| 8942 } | 8943 } |
| 8943 void FileOptions::clear_java_generate_equals_and_hash() { | 8944 void FileOptions::clear_java_generate_equals_and_hash() { |
| 8944 java_generate_equals_and_hash_ = false; | 8945 java_generate_equals_and_hash_ = false; |
| 8945 clear_has_java_generate_equals_and_hash(); | 8946 clear_has_java_generate_equals_and_hash(); |
| 8946 } | 8947 } |
| 8947 bool FileOptions::java_generate_equals_and_hash() const { | 8948 bool FileOptions::java_generate_equals_and_hash() const { |
| 8948 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generat
e_equals_and_hash) | 8949 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generat
e_equals_and_hash) |
| 8949 return java_generate_equals_and_hash_; | 8950 return java_generate_equals_and_hash_; |
| 8950 } | 8951 } |
| 8951 void FileOptions::set_java_generate_equals_and_hash(bool value) { | 8952 void FileOptions::set_java_generate_equals_and_hash(bool value) { |
| 8952 set_has_java_generate_equals_and_hash(); | 8953 set_has_java_generate_equals_and_hash(); |
| 8953 java_generate_equals_and_hash_ = value; | 8954 java_generate_equals_and_hash_ = value; |
| 8954 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generat
e_equals_and_hash) | 8955 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generat
e_equals_and_hash) |
| 8955 } | 8956 } |
| 8956 | 8957 |
| 8957 // optional bool java_string_check_utf8 = 27 [default = false]; | 8958 // optional bool java_string_check_utf8 = 27 [default = false]; |
| 8958 bool FileOptions::has_java_string_check_utf8() const { | 8959 bool FileOptions::has_java_string_check_utf8() const { |
| 8959 return (_has_bits_[0] & 0x00000100u) != 0; | 8960 return (_has_bits_[0] & 0x00000010u) != 0; |
| 8960 } | 8961 } |
| 8961 void FileOptions::set_has_java_string_check_utf8() { | 8962 void FileOptions::set_has_java_string_check_utf8() { |
| 8962 _has_bits_[0] |= 0x00000100u; | 8963 _has_bits_[0] |= 0x00000010u; |
| 8963 } | 8964 } |
| 8964 void FileOptions::clear_has_java_string_check_utf8() { | 8965 void FileOptions::clear_has_java_string_check_utf8() { |
| 8965 _has_bits_[0] &= ~0x00000100u; | 8966 _has_bits_[0] &= ~0x00000010u; |
| 8966 } | 8967 } |
| 8967 void FileOptions::clear_java_string_check_utf8() { | 8968 void FileOptions::clear_java_string_check_utf8() { |
| 8968 java_string_check_utf8_ = false; | 8969 java_string_check_utf8_ = false; |
| 8969 clear_has_java_string_check_utf8(); | 8970 clear_has_java_string_check_utf8(); |
| 8970 } | 8971 } |
| 8971 bool FileOptions::java_string_check_utf8() const { | 8972 bool FileOptions::java_string_check_utf8() const { |
| 8972 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_string_
check_utf8) | 8973 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_string_
check_utf8) |
| 8973 return java_string_check_utf8_; | 8974 return java_string_check_utf8_; |
| 8974 } | 8975 } |
| 8975 void FileOptions::set_java_string_check_utf8(bool value) { | 8976 void FileOptions::set_java_string_check_utf8(bool value) { |
| 8976 set_has_java_string_check_utf8(); | 8977 set_has_java_string_check_utf8(); |
| 8977 java_string_check_utf8_ = value; | 8978 java_string_check_utf8_ = value; |
| 8978 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_string_
check_utf8) | 8979 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_string_
check_utf8) |
| 8979 } | 8980 } |
| 8980 | 8981 |
| 8981 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default
= SPEED]; | 8982 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default
= SPEED]; |
| 8982 bool FileOptions::has_optimize_for() const { | 8983 bool FileOptions::has_optimize_for() const { |
| 8983 return (_has_bits_[0] & 0x00004000u) != 0; | 8984 return (_has_bits_[0] & 0x00000020u) != 0; |
| 8984 } | 8985 } |
| 8985 void FileOptions::set_has_optimize_for() { | 8986 void FileOptions::set_has_optimize_for() { |
| 8986 _has_bits_[0] |= 0x00004000u; | 8987 _has_bits_[0] |= 0x00000020u; |
| 8987 } | 8988 } |
| 8988 void FileOptions::clear_has_optimize_for() { | 8989 void FileOptions::clear_has_optimize_for() { |
| 8989 _has_bits_[0] &= ~0x00004000u; | 8990 _has_bits_[0] &= ~0x00000020u; |
| 8990 } | 8991 } |
| 8991 void FileOptions::clear_optimize_for() { | 8992 void FileOptions::clear_optimize_for() { |
| 8992 optimize_for_ = 1; | 8993 optimize_for_ = 1; |
| 8993 clear_has_optimize_for(); | 8994 clear_has_optimize_for(); |
| 8994 } | 8995 } |
| 8995 ::google::protobuf::FileOptions_OptimizeMode FileOptions::optimize_for() const { | 8996 ::google::protobuf::FileOptions_OptimizeMode FileOptions::optimize_for() const
{ |
| 8996 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.optimize_for
) | 8997 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.optimize_for
) |
| 8997 return static_cast< ::google::protobuf::FileOptions_OptimizeMode >(optimize_fo
r_); | 8998 return static_cast< ::google::protobuf::FileOptions_OptimizeMode >(optimize_fo
r_); |
| 8998 } | 8999 } |
| 8999 void FileOptions::set_optimize_for(::google::protobuf::FileOptions_OptimizeMode
value) { | 9000 void FileOptions::set_optimize_for(::google::protobuf::FileOptions_OptimizeMode
value) { |
| 9000 assert(::google::protobuf::FileOptions_OptimizeMode_IsValid(value)); | 9001 assert(::google::protobuf::FileOptions_OptimizeMode_IsValid(value)); |
| 9001 set_has_optimize_for(); | 9002 set_has_optimize_for(); |
| 9002 optimize_for_ = value; | 9003 optimize_for_ = value; |
| 9003 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.optimize_for
) | 9004 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.optimize_for
) |
| 9004 } | 9005 } |
| 9005 | 9006 |
| 9006 // optional string go_package = 11; | 9007 // optional string go_package = 11; |
| 9007 bool FileOptions::has_go_package() const { | 9008 bool FileOptions::has_go_package() const { |
| 9008 return (_has_bits_[0] & 0x00000004u) != 0; | 9009 return (_has_bits_[0] & 0x00000040u) != 0; |
| 9009 } | 9010 } |
| 9010 void FileOptions::set_has_go_package() { | 9011 void FileOptions::set_has_go_package() { |
| 9011 _has_bits_[0] |= 0x00000004u; | 9012 _has_bits_[0] |= 0x00000040u; |
| 9012 } | 9013 } |
| 9013 void FileOptions::clear_has_go_package() { | 9014 void FileOptions::clear_has_go_package() { |
| 9014 _has_bits_[0] &= ~0x00000004u; | 9015 _has_bits_[0] &= ~0x00000040u; |
| 9015 } | 9016 } |
| 9016 void FileOptions::clear_go_package() { | 9017 void FileOptions::clear_go_package() { |
| 9017 go_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringA
lreadyInited()); | 9018 go_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringA
lreadyInited()); |
| 9018 clear_has_go_package(); | 9019 clear_has_go_package(); |
| 9019 } | 9020 } |
| 9020 const ::std::string& FileOptions::go_package() const { | 9021 const ::std::string& FileOptions::go_package() const { |
| 9021 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.go_package) | 9022 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.go_package) |
| 9022 return go_package_.GetNoArena(); | 9023 return go_package_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); |
| 9023 } | 9024 } |
| 9024 void FileOptions::set_go_package(const ::std::string& value) { | 9025 void FileOptions::set_go_package(const ::std::string& value) { |
| 9025 set_has_go_package(); | 9026 set_has_go_package(); |
| 9026 go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted(), value); | 9027 go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted(), value); |
| 9027 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.go_package) | 9028 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.go_package) |
| 9028 } | 9029 } |
| 9029 void FileOptions::set_go_package(const char* value) { | 9030 void FileOptions::set_go_package(const char* value) { |
| 9030 set_has_go_package(); | 9031 set_has_go_package(); |
| 9031 go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted(), ::std::string(value)); | 9032 go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted(), ::std::string(value)); |
| 9032 // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.go_pack
age) | 9033 // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.go_pack
age) |
| 9033 } | 9034 } |
| 9034 void FileOptions::set_go_package(const char* value, size_t size) { | 9035 void FileOptions::set_go_package(const char* value, size_t size) { |
| 9035 set_has_go_package(); | 9036 set_has_go_package(); |
| 9036 go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted(), | 9037 go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted(), |
| 9037 ::std::string(reinterpret_cast<const char*>(value), size)); | 9038 ::std::string(reinterpret_cast<const char*>(value), size)); |
| 9038 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.go_p
ackage) | 9039 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.go_p
ackage) |
| 9039 } | 9040 } |
| 9040 ::std::string* FileOptions::mutable_go_package() { | 9041 ::std::string* FileOptions::mutable_go_package() { |
| 9041 set_has_go_package(); | 9042 set_has_go_package(); |
| 9042 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.go_packa
ge) | 9043 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.go_packa
ge) |
| 9043 return go_package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); | 9044 return go_package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); |
| 9044 } | 9045 } |
| 9045 ::std::string* FileOptions::release_go_package() { | 9046 ::std::string* FileOptions::release_go_package() { |
| 9046 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.go_packa
ge) | 9047 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.go_packa
ge) |
| 9047 clear_has_go_package(); | 9048 clear_has_go_package(); |
| 9048 return go_package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); | 9049 return go_package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); |
| 9049 } | 9050 } |
| 9050 void FileOptions::set_allocated_go_package(::std::string* go_package) { | 9051 void FileOptions::set_allocated_go_package(::std::string* go_package) { |
| 9051 if (go_package != NULL) { | 9052 if (go_package != NULL) { |
| 9052 set_has_go_package(); | 9053 set_has_go_package(); |
| 9053 } else { | 9054 } else { |
| 9054 clear_has_go_package(); | 9055 clear_has_go_package(); |
| 9055 } | 9056 } |
| 9056 go_package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringA
lreadyInited(), go_package); | 9057 go_package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringA
lreadyInited(), go_package); |
| 9057 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.go
_package) | 9058 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.go
_package) |
| 9058 } | 9059 } |
| 9059 | 9060 |
| 9060 // optional bool cc_generic_services = 16 [default = false]; | 9061 // optional bool cc_generic_services = 16 [default = false]; |
| 9061 bool FileOptions::has_cc_generic_services() const { | 9062 bool FileOptions::has_cc_generic_services() const { |
| 9062 return (_has_bits_[0] & 0x00000200u) != 0; | 9063 return (_has_bits_[0] & 0x00000080u) != 0; |
| 9063 } | 9064 } |
| 9064 void FileOptions::set_has_cc_generic_services() { | 9065 void FileOptions::set_has_cc_generic_services() { |
| 9065 _has_bits_[0] |= 0x00000200u; | 9066 _has_bits_[0] |= 0x00000080u; |
| 9066 } | 9067 } |
| 9067 void FileOptions::clear_has_cc_generic_services() { | 9068 void FileOptions::clear_has_cc_generic_services() { |
| 9068 _has_bits_[0] &= ~0x00000200u; | 9069 _has_bits_[0] &= ~0x00000080u; |
| 9069 } | 9070 } |
| 9070 void FileOptions::clear_cc_generic_services() { | 9071 void FileOptions::clear_cc_generic_services() { |
| 9071 cc_generic_services_ = false; | 9072 cc_generic_services_ = false; |
| 9072 clear_has_cc_generic_services(); | 9073 clear_has_cc_generic_services(); |
| 9073 } | 9074 } |
| 9074 bool FileOptions::cc_generic_services() const { | 9075 bool FileOptions::cc_generic_services() const { |
| 9075 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_generic_s
ervices) | 9076 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_generic_s
ervices) |
| 9076 return cc_generic_services_; | 9077 return cc_generic_services_; |
| 9077 } | 9078 } |
| 9078 void FileOptions::set_cc_generic_services(bool value) { | 9079 void FileOptions::set_cc_generic_services(bool value) { |
| 9079 set_has_cc_generic_services(); | 9080 set_has_cc_generic_services(); |
| 9080 cc_generic_services_ = value; | 9081 cc_generic_services_ = value; |
| 9081 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.cc_generic_s
ervices) | 9082 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.cc_generic_s
ervices) |
| 9082 } | 9083 } |
| 9083 | 9084 |
| 9084 // optional bool java_generic_services = 17 [default = false]; | 9085 // optional bool java_generic_services = 17 [default = false]; |
| 9085 bool FileOptions::has_java_generic_services() const { | 9086 bool FileOptions::has_java_generic_services() const { |
| 9086 return (_has_bits_[0] & 0x00000400u) != 0; | 9087 return (_has_bits_[0] & 0x00000100u) != 0; |
| 9087 } | 9088 } |
| 9088 void FileOptions::set_has_java_generic_services() { | 9089 void FileOptions::set_has_java_generic_services() { |
| 9089 _has_bits_[0] |= 0x00000400u; | 9090 _has_bits_[0] |= 0x00000100u; |
| 9090 } | 9091 } |
| 9091 void FileOptions::clear_has_java_generic_services() { | 9092 void FileOptions::clear_has_java_generic_services() { |
| 9092 _has_bits_[0] &= ~0x00000400u; | 9093 _has_bits_[0] &= ~0x00000100u; |
| 9093 } | 9094 } |
| 9094 void FileOptions::clear_java_generic_services() { | 9095 void FileOptions::clear_java_generic_services() { |
| 9095 java_generic_services_ = false; | 9096 java_generic_services_ = false; |
| 9096 clear_has_java_generic_services(); | 9097 clear_has_java_generic_services(); |
| 9097 } | 9098 } |
| 9098 bool FileOptions::java_generic_services() const { | 9099 bool FileOptions::java_generic_services() const { |
| 9099 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generic
_services) | 9100 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generic
_services) |
| 9100 return java_generic_services_; | 9101 return java_generic_services_; |
| 9101 } | 9102 } |
| 9102 void FileOptions::set_java_generic_services(bool value) { | 9103 void FileOptions::set_java_generic_services(bool value) { |
| 9103 set_has_java_generic_services(); | 9104 set_has_java_generic_services(); |
| 9104 java_generic_services_ = value; | 9105 java_generic_services_ = value; |
| 9105 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generic
_services) | 9106 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generic
_services) |
| 9106 } | 9107 } |
| 9107 | 9108 |
| 9108 // optional bool py_generic_services = 18 [default = false]; | 9109 // optional bool py_generic_services = 18 [default = false]; |
| 9109 bool FileOptions::has_py_generic_services() const { | 9110 bool FileOptions::has_py_generic_services() const { |
| 9110 return (_has_bits_[0] & 0x00000800u) != 0; | 9111 return (_has_bits_[0] & 0x00000200u) != 0; |
| 9111 } | 9112 } |
| 9112 void FileOptions::set_has_py_generic_services() { | 9113 void FileOptions::set_has_py_generic_services() { |
| 9113 _has_bits_[0] |= 0x00000800u; | 9114 _has_bits_[0] |= 0x00000200u; |
| 9114 } | 9115 } |
| 9115 void FileOptions::clear_has_py_generic_services() { | 9116 void FileOptions::clear_has_py_generic_services() { |
| 9116 _has_bits_[0] &= ~0x00000800u; | 9117 _has_bits_[0] &= ~0x00000200u; |
| 9117 } | 9118 } |
| 9118 void FileOptions::clear_py_generic_services() { | 9119 void FileOptions::clear_py_generic_services() { |
| 9119 py_generic_services_ = false; | 9120 py_generic_services_ = false; |
| 9120 clear_has_py_generic_services(); | 9121 clear_has_py_generic_services(); |
| 9121 } | 9122 } |
| 9122 bool FileOptions::py_generic_services() const { | 9123 bool FileOptions::py_generic_services() const { |
| 9123 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.py_generic_s
ervices) | 9124 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.py_generic_s
ervices) |
| 9124 return py_generic_services_; | 9125 return py_generic_services_; |
| 9125 } | 9126 } |
| 9126 void FileOptions::set_py_generic_services(bool value) { | 9127 void FileOptions::set_py_generic_services(bool value) { |
| 9127 set_has_py_generic_services(); | 9128 set_has_py_generic_services(); |
| 9128 py_generic_services_ = value; | 9129 py_generic_services_ = value; |
| 9129 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.py_generic_s
ervices) | 9130 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.py_generic_s
ervices) |
| 9130 } | 9131 } |
| 9131 | 9132 |
| 9132 // optional bool deprecated = 23 [default = false]; | 9133 // optional bool deprecated = 23 [default = false]; |
| 9133 bool FileOptions::has_deprecated() const { | 9134 bool FileOptions::has_deprecated() const { |
| 9134 return (_has_bits_[0] & 0x00001000u) != 0; | 9135 return (_has_bits_[0] & 0x00000400u) != 0; |
| 9135 } | 9136 } |
| 9136 void FileOptions::set_has_deprecated() { | 9137 void FileOptions::set_has_deprecated() { |
| 9137 _has_bits_[0] |= 0x00001000u; | 9138 _has_bits_[0] |= 0x00000400u; |
| 9138 } | 9139 } |
| 9139 void FileOptions::clear_has_deprecated() { | 9140 void FileOptions::clear_has_deprecated() { |
| 9140 _has_bits_[0] &= ~0x00001000u; | 9141 _has_bits_[0] &= ~0x00000400u; |
| 9141 } | 9142 } |
| 9142 void FileOptions::clear_deprecated() { | 9143 void FileOptions::clear_deprecated() { |
| 9143 deprecated_ = false; | 9144 deprecated_ = false; |
| 9144 clear_has_deprecated(); | 9145 clear_has_deprecated(); |
| 9145 } | 9146 } |
| 9146 bool FileOptions::deprecated() const { | 9147 bool FileOptions::deprecated() const { |
| 9147 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.deprecated) | 9148 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.deprecated) |
| 9148 return deprecated_; | 9149 return deprecated_; |
| 9149 } | 9150 } |
| 9150 void FileOptions::set_deprecated(bool value) { | 9151 void FileOptions::set_deprecated(bool value) { |
| 9151 set_has_deprecated(); | 9152 set_has_deprecated(); |
| 9152 deprecated_ = value; | 9153 deprecated_ = value; |
| 9153 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.deprecated) | 9154 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.deprecated) |
| 9154 } | 9155 } |
| 9155 | 9156 |
| 9156 // optional bool cc_enable_arenas = 31 [default = false]; | 9157 // optional bool cc_enable_arenas = 31 [default = false]; |
| 9157 bool FileOptions::has_cc_enable_arenas() const { | 9158 bool FileOptions::has_cc_enable_arenas() const { |
| 9158 return (_has_bits_[0] & 0x00002000u) != 0; | 9159 return (_has_bits_[0] & 0x00000800u) != 0; |
| 9159 } | 9160 } |
| 9160 void FileOptions::set_has_cc_enable_arenas() { | 9161 void FileOptions::set_has_cc_enable_arenas() { |
| 9161 _has_bits_[0] |= 0x00002000u; | 9162 _has_bits_[0] |= 0x00000800u; |
| 9162 } | 9163 } |
| 9163 void FileOptions::clear_has_cc_enable_arenas() { | 9164 void FileOptions::clear_has_cc_enable_arenas() { |
| 9164 _has_bits_[0] &= ~0x00002000u; | 9165 _has_bits_[0] &= ~0x00000800u; |
| 9165 } | 9166 } |
| 9166 void FileOptions::clear_cc_enable_arenas() { | 9167 void FileOptions::clear_cc_enable_arenas() { |
| 9167 cc_enable_arenas_ = false; | 9168 cc_enable_arenas_ = false; |
| 9168 clear_has_cc_enable_arenas(); | 9169 clear_has_cc_enable_arenas(); |
| 9169 } | 9170 } |
| 9170 bool FileOptions::cc_enable_arenas() const { | 9171 bool FileOptions::cc_enable_arenas() const { |
| 9171 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_enable_ar
enas) | 9172 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_enable_ar
enas) |
| 9172 return cc_enable_arenas_; | 9173 return cc_enable_arenas_; |
| 9173 } | 9174 } |
| 9174 void FileOptions::set_cc_enable_arenas(bool value) { | 9175 void FileOptions::set_cc_enable_arenas(bool value) { |
| 9175 set_has_cc_enable_arenas(); | 9176 set_has_cc_enable_arenas(); |
| 9176 cc_enable_arenas_ = value; | 9177 cc_enable_arenas_ = value; |
| 9177 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.cc_enable_ar
enas) | 9178 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.cc_enable_ar
enas) |
| 9178 } | 9179 } |
| 9179 | 9180 |
| 9180 // optional string objc_class_prefix = 36; | 9181 // optional string objc_class_prefix = 36; |
| 9181 bool FileOptions::has_objc_class_prefix() const { | 9182 bool FileOptions::has_objc_class_prefix() const { |
| 9182 return (_has_bits_[0] & 0x00000008u) != 0; | 9183 return (_has_bits_[0] & 0x00001000u) != 0; |
| 9183 } | 9184 } |
| 9184 void FileOptions::set_has_objc_class_prefix() { | 9185 void FileOptions::set_has_objc_class_prefix() { |
| 9185 _has_bits_[0] |= 0x00000008u; | 9186 _has_bits_[0] |= 0x00001000u; |
| 9186 } | 9187 } |
| 9187 void FileOptions::clear_has_objc_class_prefix() { | 9188 void FileOptions::clear_has_objc_class_prefix() { |
| 9188 _has_bits_[0] &= ~0x00000008u; | 9189 _has_bits_[0] &= ~0x00001000u; |
| 9189 } | 9190 } |
| 9190 void FileOptions::clear_objc_class_prefix() { | 9191 void FileOptions::clear_objc_class_prefix() { |
| 9191 objc_class_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmpty
StringAlreadyInited()); | 9192 objc_class_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmpty
StringAlreadyInited()); |
| 9192 clear_has_objc_class_prefix(); | 9193 clear_has_objc_class_prefix(); |
| 9193 } | 9194 } |
| 9194 const ::std::string& FileOptions::objc_class_prefix() const { | 9195 const ::std::string& FileOptions::objc_class_prefix() const { |
| 9195 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.objc_class_p
refix) | 9196 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.objc_class_p
refix) |
| 9196 return objc_class_prefix_.GetNoArena(); | 9197 return objc_class_prefix_.GetNoArena(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited()); |
| 9197 } | 9198 } |
| 9198 void FileOptions::set_objc_class_prefix(const ::std::string& value) { | 9199 void FileOptions::set_objc_class_prefix(const ::std::string& value) { |
| 9199 set_has_objc_class_prefix(); | 9200 set_has_objc_class_prefix(); |
| 9200 objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited(), value); | 9201 objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited(), value); |
| 9201 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.objc_class_p
refix) | 9202 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.objc_class_p
refix) |
| 9202 } | 9203 } |
| 9203 void FileOptions::set_objc_class_prefix(const char* value) { | 9204 void FileOptions::set_objc_class_prefix(const char* value) { |
| 9204 set_has_objc_class_prefix(); | 9205 set_has_objc_class_prefix(); |
| 9205 objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited(), ::std::string(value)); | 9206 objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited(), ::std::string(value)); |
| 9206 // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.objc_cl
ass_prefix) | 9207 // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.objc_cl
ass_prefix) |
| 9207 } | 9208 } |
| 9208 void FileOptions::set_objc_class_prefix(const char* value, size_t size) { | 9209 void FileOptions::set_objc_class_prefix(const char* value, size_t size) { |
| 9209 set_has_objc_class_prefix(); | 9210 set_has_objc_class_prefix(); |
| 9210 objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited(), | 9211 objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited(), |
| 9211 ::std::string(reinterpret_cast<const char*>(value), size)); | 9212 ::std::string(reinterpret_cast<const char*>(value), size)); |
| 9212 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.objc
_class_prefix) | 9213 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.objc
_class_prefix) |
| 9213 } | 9214 } |
| 9214 ::std::string* FileOptions::mutable_objc_class_prefix() { | 9215 ::std::string* FileOptions::mutable_objc_class_prefix() { |
| 9215 set_has_objc_class_prefix(); | 9216 set_has_objc_class_prefix(); |
| 9216 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.objc_cla
ss_prefix) | 9217 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.objc_cla
ss_prefix) |
| 9217 return objc_class_prefix_.MutableNoArena(&::google::protobuf::internal::GetEmp
tyStringAlreadyInited()); | 9218 return objc_class_prefix_.MutableNoArena(&::google::protobuf::internal::GetEmp
tyStringAlreadyInited()); |
| 9218 } | 9219 } |
| 9219 ::std::string* FileOptions::release_objc_class_prefix() { | 9220 ::std::string* FileOptions::release_objc_class_prefix() { |
| 9220 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.objc_cla
ss_prefix) | 9221 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.objc_cla
ss_prefix) |
| 9221 clear_has_objc_class_prefix(); | 9222 clear_has_objc_class_prefix(); |
| 9222 return objc_class_prefix_.ReleaseNoArena(&::google::protobuf::internal::GetEmp
tyStringAlreadyInited()); | 9223 return objc_class_prefix_.ReleaseNoArena(&::google::protobuf::internal::GetEmp
tyStringAlreadyInited()); |
| 9223 } | 9224 } |
| 9224 void FileOptions::set_allocated_objc_class_prefix(::std::string* objc_class_pref
ix) { | 9225 void FileOptions::set_allocated_objc_class_prefix(::std::string* objc_class_pre
fix) { |
| 9225 if (objc_class_prefix != NULL) { | 9226 if (objc_class_prefix != NULL) { |
| 9226 set_has_objc_class_prefix(); | 9227 set_has_objc_class_prefix(); |
| 9227 } else { | 9228 } else { |
| 9228 clear_has_objc_class_prefix(); | 9229 clear_has_objc_class_prefix(); |
| 9229 } | 9230 } |
| 9230 objc_class_prefix_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmpty
StringAlreadyInited(), objc_class_prefix); | 9231 objc_class_prefix_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmpty
StringAlreadyInited(), objc_class_prefix); |
| 9231 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.ob
jc_class_prefix) | 9232 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.ob
jc_class_prefix) |
| 9232 } | 9233 } |
| 9233 | 9234 |
| 9234 // optional string csharp_namespace = 37; | 9235 // optional string csharp_namespace = 37; |
| 9235 bool FileOptions::has_csharp_namespace() const { | 9236 bool FileOptions::has_csharp_namespace() const { |
| 9236 return (_has_bits_[0] & 0x00000010u) != 0; | 9237 return (_has_bits_[0] & 0x00002000u) != 0; |
| 9237 } | 9238 } |
| 9238 void FileOptions::set_has_csharp_namespace() { | 9239 void FileOptions::set_has_csharp_namespace() { |
| 9239 _has_bits_[0] |= 0x00000010u; | 9240 _has_bits_[0] |= 0x00002000u; |
| 9240 } | 9241 } |
| 9241 void FileOptions::clear_has_csharp_namespace() { | 9242 void FileOptions::clear_has_csharp_namespace() { |
| 9242 _has_bits_[0] &= ~0x00000010u; | 9243 _has_bits_[0] &= ~0x00002000u; |
| 9243 } | 9244 } |
| 9244 void FileOptions::clear_csharp_namespace() { | 9245 void FileOptions::clear_csharp_namespace() { |
| 9245 csharp_namespace_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited()); | 9246 csharp_namespace_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited()); |
| 9246 clear_has_csharp_namespace(); | 9247 clear_has_csharp_namespace(); |
| 9247 } | 9248 } |
| 9248 const ::std::string& FileOptions::csharp_namespace() const { | 9249 const ::std::string& FileOptions::csharp_namespace() const { |
| 9249 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.csharp_names
pace) | 9250 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.csharp_names
pace) |
| 9250 return csharp_namespace_.GetNoArena(); | 9251 return csharp_namespace_.GetNoArena(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited()); |
| 9251 } | 9252 } |
| 9252 void FileOptions::set_csharp_namespace(const ::std::string& value) { | 9253 void FileOptions::set_csharp_namespace(const ::std::string& value) { |
| 9253 set_has_csharp_namespace(); | 9254 set_has_csharp_namespace(); |
| 9254 csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), value); | 9255 csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), value); |
| 9255 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.csharp_names
pace) | 9256 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.csharp_names
pace) |
| 9256 } | 9257 } |
| 9257 void FileOptions::set_csharp_namespace(const char* value) { | 9258 void FileOptions::set_csharp_namespace(const char* value) { |
| 9258 set_has_csharp_namespace(); | 9259 set_has_csharp_namespace(); |
| 9259 csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), ::std::string(value)); | 9260 csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), ::std::string(value)); |
| 9260 // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.csharp_
namespace) | 9261 // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.csharp_
namespace) |
| 9261 } | 9262 } |
| 9262 void FileOptions::set_csharp_namespace(const char* value, size_t size) { | 9263 void FileOptions::set_csharp_namespace(const char* value, size_t size) { |
| 9263 set_has_csharp_namespace(); | 9264 set_has_csharp_namespace(); |
| 9264 csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), | 9265 csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), |
| 9265 ::std::string(reinterpret_cast<const char*>(value), size)); | 9266 ::std::string(reinterpret_cast<const char*>(value), size)); |
| 9266 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.csha
rp_namespace) | 9267 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.csha
rp_namespace) |
| 9267 } | 9268 } |
| 9268 ::std::string* FileOptions::mutable_csharp_namespace() { | 9269 ::std::string* FileOptions::mutable_csharp_namespace() { |
| 9269 set_has_csharp_namespace(); | 9270 set_has_csharp_namespace(); |
| 9270 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.csharp_n
amespace) | 9271 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.csharp_n
amespace) |
| 9271 return csharp_namespace_.MutableNoArena(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited()); | 9272 return csharp_namespace_.MutableNoArena(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited()); |
| 9272 } | 9273 } |
| 9273 ::std::string* FileOptions::release_csharp_namespace() { | 9274 ::std::string* FileOptions::release_csharp_namespace() { |
| 9274 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.csharp_n
amespace) | 9275 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.csharp_n
amespace) |
| 9275 clear_has_csharp_namespace(); | 9276 clear_has_csharp_namespace(); |
| 9276 return csharp_namespace_.ReleaseNoArena(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited()); | 9277 return csharp_namespace_.ReleaseNoArena(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited()); |
| 9277 } | 9278 } |
| 9278 void FileOptions::set_allocated_csharp_namespace(::std::string* csharp_namespace
) { | 9279 void FileOptions::set_allocated_csharp_namespace(::std::string* csharp_namespac
e) { |
| 9279 if (csharp_namespace != NULL) { | 9280 if (csharp_namespace != NULL) { |
| 9280 set_has_csharp_namespace(); | 9281 set_has_csharp_namespace(); |
| 9281 } else { | 9282 } else { |
| 9282 clear_has_csharp_namespace(); | 9283 clear_has_csharp_namespace(); |
| 9283 } | 9284 } |
| 9284 csharp_namespace_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited(), csharp_namespace); | 9285 csharp_namespace_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited(), csharp_namespace); |
| 9285 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.cs
harp_namespace) | 9286 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.cs
harp_namespace) |
| 9286 } | 9287 } |
| 9287 | 9288 |
| 9288 // optional string swift_prefix = 39; | |
| 9289 bool FileOptions::has_swift_prefix() const { | |
| 9290 return (_has_bits_[0] & 0x00000020u) != 0; | |
| 9291 } | |
| 9292 void FileOptions::set_has_swift_prefix() { | |
| 9293 _has_bits_[0] |= 0x00000020u; | |
| 9294 } | |
| 9295 void FileOptions::clear_has_swift_prefix() { | |
| 9296 _has_bits_[0] &= ~0x00000020u; | |
| 9297 } | |
| 9298 void FileOptions::clear_swift_prefix() { | |
| 9299 swift_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); | |
| 9300 clear_has_swift_prefix(); | |
| 9301 } | |
| 9302 const ::std::string& FileOptions::swift_prefix() const { | |
| 9303 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.swift_prefix
) | |
| 9304 return swift_prefix_.GetNoArena(); | |
| 9305 } | |
| 9306 void FileOptions::set_swift_prefix(const ::std::string& value) { | |
| 9307 set_has_swift_prefix(); | |
| 9308 swift_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI
nited(), value); | |
| 9309 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.swift_prefix
) | |
| 9310 } | |
| 9311 void FileOptions::set_swift_prefix(const char* value) { | |
| 9312 set_has_swift_prefix(); | |
| 9313 swift_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI
nited(), ::std::string(value)); | |
| 9314 // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.swift_p
refix) | |
| 9315 } | |
| 9316 void FileOptions::set_swift_prefix(const char* value, size_t size) { | |
| 9317 set_has_swift_prefix(); | |
| 9318 swift_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI
nited(), | |
| 9319 ::std::string(reinterpret_cast<const char*>(value), size)); | |
| 9320 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.swif
t_prefix) | |
| 9321 } | |
| 9322 ::std::string* FileOptions::mutable_swift_prefix() { | |
| 9323 set_has_swift_prefix(); | |
| 9324 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.swift_pr
efix) | |
| 9325 return swift_prefix_.MutableNoArena(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited()); | |
| 9326 } | |
| 9327 ::std::string* FileOptions::release_swift_prefix() { | |
| 9328 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.swift_pr
efix) | |
| 9329 clear_has_swift_prefix(); | |
| 9330 return swift_prefix_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited()); | |
| 9331 } | |
| 9332 void FileOptions::set_allocated_swift_prefix(::std::string* swift_prefix) { | |
| 9333 if (swift_prefix != NULL) { | |
| 9334 set_has_swift_prefix(); | |
| 9335 } else { | |
| 9336 clear_has_swift_prefix(); | |
| 9337 } | |
| 9338 swift_prefix_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited(), swift_prefix); | |
| 9339 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.sw
ift_prefix) | |
| 9340 } | |
| 9341 | |
| 9342 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 9289 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 9343 int FileOptions::uninterpreted_option_size() const { | 9290 int FileOptions::uninterpreted_option_size() const { |
| 9344 return uninterpreted_option_.size(); | 9291 return uninterpreted_option_.size(); |
| 9345 } | 9292 } |
| 9346 void FileOptions::clear_uninterpreted_option() { | 9293 void FileOptions::clear_uninterpreted_option() { |
| 9347 uninterpreted_option_.Clear(); | 9294 uninterpreted_option_.Clear(); |
| 9348 } | 9295 } |
| 9349 const ::google::protobuf::UninterpretedOption& FileOptions::uninterpreted_option
(int index) const { | 9296 const ::google::protobuf::UninterpretedOption& FileOptions::uninterpreted_option
(int index) const { |
| 9350 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.uninterprete
d_option) | 9297 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.uninterprete
d_option) |
| 9351 return uninterpreted_option_.Get(index); | 9298 return uninterpreted_option_.Get(index); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 9376 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 9323 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 9377 const int MessageOptions::kMessageSetWireFormatFieldNumber; | 9324 const int MessageOptions::kMessageSetWireFormatFieldNumber; |
| 9378 const int MessageOptions::kNoStandardDescriptorAccessorFieldNumber; | 9325 const int MessageOptions::kNoStandardDescriptorAccessorFieldNumber; |
| 9379 const int MessageOptions::kDeprecatedFieldNumber; | 9326 const int MessageOptions::kDeprecatedFieldNumber; |
| 9380 const int MessageOptions::kMapEntryFieldNumber; | 9327 const int MessageOptions::kMapEntryFieldNumber; |
| 9381 const int MessageOptions::kUninterpretedOptionFieldNumber; | 9328 const int MessageOptions::kUninterpretedOptionFieldNumber; |
| 9382 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 9329 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 9383 | 9330 |
| 9384 MessageOptions::MessageOptions() | 9331 MessageOptions::MessageOptions() |
| 9385 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 9332 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 9386 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
| 9387 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
| 9388 } | |
| 9389 SharedCtor(); | 9333 SharedCtor(); |
| 9390 // @@protoc_insertion_point(constructor:google.protobuf.MessageOptions) | 9334 // @@protoc_insertion_point(constructor:google.protobuf.MessageOptions) |
| 9391 } | 9335 } |
| 9336 |
| 9337 void MessageOptions::InitAsDefaultInstance() { |
| 9338 } |
| 9339 |
| 9392 MessageOptions::MessageOptions(const MessageOptions& from) | 9340 MessageOptions::MessageOptions(const MessageOptions& from) |
| 9393 : ::google::protobuf::Message(), | 9341 : ::google::protobuf::Message(), |
| 9394 _internal_metadata_(NULL), | 9342 _internal_metadata_(NULL) { |
| 9395 _has_bits_(from._has_bits_), | 9343 SharedCtor(); |
| 9396 _cached_size_(0), | 9344 MergeFrom(from); |
| 9397 uninterpreted_option_(from.uninterpreted_option_) { | |
| 9398 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 9399 _extensions_.MergeFrom(from._extensions_); | |
| 9400 ::memcpy(&message_set_wire_format_, &from.message_set_wire_format_, | |
| 9401 reinterpret_cast<char*>(&map_entry_) - | |
| 9402 reinterpret_cast<char*>(&message_set_wire_format_) + sizeof(map_entry_)); | |
| 9403 // @@protoc_insertion_point(copy_constructor:google.protobuf.MessageOptions) | 9345 // @@protoc_insertion_point(copy_constructor:google.protobuf.MessageOptions) |
| 9404 } | 9346 } |
| 9405 | 9347 |
| 9406 void MessageOptions::SharedCtor() { | 9348 void MessageOptions::SharedCtor() { |
| 9407 _cached_size_ = 0; | 9349 _cached_size_ = 0; |
| 9408 ::memset(&message_set_wire_format_, 0, reinterpret_cast<char*>(&map_entry_) - | 9350 message_set_wire_format_ = false; |
| 9409 reinterpret_cast<char*>(&message_set_wire_format_) + sizeof(map_entry_)); | 9351 no_standard_descriptor_accessor_ = false; |
| 9352 deprecated_ = false; |
| 9353 map_entry_ = false; |
| 9354 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 9410 } | 9355 } |
| 9411 | 9356 |
| 9412 MessageOptions::~MessageOptions() { | 9357 MessageOptions::~MessageOptions() { |
| 9413 // @@protoc_insertion_point(destructor:google.protobuf.MessageOptions) | 9358 // @@protoc_insertion_point(destructor:google.protobuf.MessageOptions) |
| 9414 SharedDtor(); | 9359 SharedDtor(); |
| 9415 } | 9360 } |
| 9416 | 9361 |
| 9417 void MessageOptions::SharedDtor() { | 9362 void MessageOptions::SharedDtor() { |
| 9363 if (this != default_instance_) { |
| 9364 } |
| 9418 } | 9365 } |
| 9419 | 9366 |
| 9420 void MessageOptions::SetCachedSize(int size) const { | 9367 void MessageOptions::SetCachedSize(int size) const { |
| 9421 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 9368 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 9422 _cached_size_ = size; | 9369 _cached_size_ = size; |
| 9423 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 9370 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 9424 } | 9371 } |
| 9425 const ::google::protobuf::Descriptor* MessageOptions::descriptor() { | 9372 const ::google::protobuf::Descriptor* MessageOptions::descriptor() { |
| 9426 protobuf_AssignDescriptorsOnce(); | 9373 protobuf_AssignDescriptorsOnce(); |
| 9427 return file_level_metadata[12].descriptor; | 9374 return MessageOptions_descriptor_; |
| 9428 } | 9375 } |
| 9429 | 9376 |
| 9430 const MessageOptions& MessageOptions::default_instance() { | 9377 const MessageOptions& MessageOptions::default_instance() { |
| 9431 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 9378 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
| 9432 return *internal_default_instance(); | 9379 return *default_instance_; |
| 9433 } | 9380 } |
| 9434 | 9381 |
| 9382 MessageOptions* MessageOptions::default_instance_ = NULL; |
| 9383 |
| 9435 MessageOptions* MessageOptions::New(::google::protobuf::Arena* arena) const { | 9384 MessageOptions* MessageOptions::New(::google::protobuf::Arena* arena) const { |
| 9436 MessageOptions* n = new MessageOptions; | 9385 MessageOptions* n = new MessageOptions; |
| 9437 if (arena != NULL) { | 9386 if (arena != NULL) { |
| 9438 arena->Own(n); | 9387 arena->Own(n); |
| 9439 } | 9388 } |
| 9440 return n; | 9389 return n; |
| 9441 } | 9390 } |
| 9442 | 9391 |
| 9443 void MessageOptions::Clear() { | 9392 void MessageOptions::Clear() { |
| 9444 // @@protoc_insertion_point(message_clear_start:google.protobuf.MessageOptions) | 9393 // @@protoc_insertion_point(message_clear_start:google.protobuf.MessageOptions) |
| 9445 _extensions_.Clear(); | 9394 _extensions_.Clear(); |
| 9395 #if defined(__clang__) |
| 9396 #define ZR_HELPER_(f) \ |
| 9397 _Pragma("clang diagnostic push") \ |
| 9398 _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ |
| 9399 __builtin_offsetof(MessageOptions, f) \ |
| 9400 _Pragma("clang diagnostic pop") |
| 9401 #else |
| 9402 #define ZR_HELPER_(f) reinterpret_cast<char*>(\ |
| 9403 &reinterpret_cast<MessageOptions*>(16)->f) |
| 9404 #endif |
| 9405 |
| 9406 #define ZR_(first, last) do {\ |
| 9407 ::memset(&first, 0,\ |
| 9408 ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ |
| 9409 } while (0) |
| 9410 |
| 9411 ZR_(message_set_wire_format_, map_entry_); |
| 9412 |
| 9413 #undef ZR_HELPER_ |
| 9414 #undef ZR_ |
| 9415 |
| 9446 uninterpreted_option_.Clear(); | 9416 uninterpreted_option_.Clear(); |
| 9447 if (_has_bits_[0 / 32] & 15u) { | 9417 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 9448 ::memset(&message_set_wire_format_, 0, reinterpret_cast<char*>(&map_entry_)
- | 9418 if (_internal_metadata_.have_unknown_fields()) { |
| 9449 reinterpret_cast<char*>(&message_set_wire_format_) + sizeof(map_entry_)); | 9419 mutable_unknown_fields()->Clear(); |
| 9450 } | 9420 } |
| 9451 _has_bits_.Clear(); | |
| 9452 _internal_metadata_.Clear(); | |
| 9453 } | 9421 } |
| 9454 | 9422 |
| 9455 bool MessageOptions::MergePartialFromCodedStream( | 9423 bool MessageOptions::MergePartialFromCodedStream( |
| 9456 ::google::protobuf::io::CodedInputStream* input) { | 9424 ::google::protobuf::io::CodedInputStream* input) { |
| 9457 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 9425 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 9458 ::google::protobuf::uint32 tag; | 9426 ::google::protobuf::uint32 tag; |
| 9459 // @@protoc_insertion_point(parse_start:google.protobuf.MessageOptions) | 9427 // @@protoc_insertion_point(parse_start:google.protobuf.MessageOptions) |
| 9460 for (;;) { | 9428 for (;;) { |
| 9461 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(16383u); | 9429 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
16383); |
| 9462 tag = p.first; | 9430 tag = p.first; |
| 9463 if (!p.second) goto handle_unusual; | 9431 if (!p.second) goto handle_unusual; |
| 9464 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 9432 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
| 9465 // optional bool message_set_wire_format = 1 [default = false]; | 9433 // optional bool message_set_wire_format = 1 [default = false]; |
| 9466 case 1: { | 9434 case 1: { |
| 9467 if (tag == 8u) { | 9435 if (tag == 8) { |
| 9468 set_has_message_set_wire_format(); | |
| 9469 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 9436 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 9470 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 9437 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
| 9471 input, &message_set_wire_format_))); | 9438 input, &message_set_wire_format_))); |
| 9439 set_has_message_set_wire_format(); |
| 9472 } else { | 9440 } else { |
| 9473 goto handle_unusual; | 9441 goto handle_unusual; |
| 9474 } | 9442 } |
| 9443 if (input->ExpectTag(16)) goto parse_no_standard_descriptor_accessor; |
| 9475 break; | 9444 break; |
| 9476 } | 9445 } |
| 9477 | 9446 |
| 9478 // optional bool no_standard_descriptor_accessor = 2 [default = false]; | 9447 // optional bool no_standard_descriptor_accessor = 2 [default = false]; |
| 9479 case 2: { | 9448 case 2: { |
| 9480 if (tag == 16u) { | 9449 if (tag == 16) { |
| 9481 set_has_no_standard_descriptor_accessor(); | 9450 parse_no_standard_descriptor_accessor: |
| 9482 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 9451 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 9483 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 9452 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
| 9484 input, &no_standard_descriptor_accessor_))); | 9453 input, &no_standard_descriptor_accessor_))); |
| 9454 set_has_no_standard_descriptor_accessor(); |
| 9485 } else { | 9455 } else { |
| 9486 goto handle_unusual; | 9456 goto handle_unusual; |
| 9487 } | 9457 } |
| 9458 if (input->ExpectTag(24)) goto parse_deprecated; |
| 9488 break; | 9459 break; |
| 9489 } | 9460 } |
| 9490 | 9461 |
| 9491 // optional bool deprecated = 3 [default = false]; | 9462 // optional bool deprecated = 3 [default = false]; |
| 9492 case 3: { | 9463 case 3: { |
| 9493 if (tag == 24u) { | 9464 if (tag == 24) { |
| 9494 set_has_deprecated(); | 9465 parse_deprecated: |
| 9495 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 9466 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 9496 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 9467 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
| 9497 input, &deprecated_))); | 9468 input, &deprecated_))); |
| 9469 set_has_deprecated(); |
| 9498 } else { | 9470 } else { |
| 9499 goto handle_unusual; | 9471 goto handle_unusual; |
| 9500 } | 9472 } |
| 9473 if (input->ExpectTag(56)) goto parse_map_entry; |
| 9501 break; | 9474 break; |
| 9502 } | 9475 } |
| 9503 | 9476 |
| 9504 // optional bool map_entry = 7; | 9477 // optional bool map_entry = 7; |
| 9505 case 7: { | 9478 case 7: { |
| 9506 if (tag == 56u) { | 9479 if (tag == 56) { |
| 9507 set_has_map_entry(); | 9480 parse_map_entry: |
| 9508 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 9481 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 9509 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 9482 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
| 9510 input, &map_entry_))); | 9483 input, &map_entry_))); |
| 9484 set_has_map_entry(); |
| 9511 } else { | 9485 } else { |
| 9512 goto handle_unusual; | 9486 goto handle_unusual; |
| 9513 } | 9487 } |
| 9488 if (input->ExpectTag(7994)) goto parse_uninterpreted_option; |
| 9514 break; | 9489 break; |
| 9515 } | 9490 } |
| 9516 | 9491 |
| 9517 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99
9; | 9492 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99
9; |
| 9518 case 999: { | 9493 case 999: { |
| 9519 if (tag == 7994u) { | 9494 if (tag == 7994) { |
| 9495 parse_uninterpreted_option: |
| 9520 DO_(input->IncrementRecursionDepth()); | 9496 DO_(input->IncrementRecursionDepth()); |
| 9497 parse_loop_uninterpreted_option: |
| 9521 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 9498 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
| 9522 input, add_uninterpreted_option())); | 9499 input, add_uninterpreted_option())); |
| 9523 } else { | 9500 } else { |
| 9524 goto handle_unusual; | 9501 goto handle_unusual; |
| 9525 } | 9502 } |
| 9503 if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option; |
| 9526 input->UnsafeDecrementRecursionDepth(); | 9504 input->UnsafeDecrementRecursionDepth(); |
| 9505 if (input->ExpectAtEnd()) goto success; |
| 9527 break; | 9506 break; |
| 9528 } | 9507 } |
| 9529 | 9508 |
| 9530 default: { | 9509 default: { |
| 9531 handle_unusual: | 9510 handle_unusual: |
| 9532 if (tag == 0 || | 9511 if (tag == 0 || |
| 9533 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 9512 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 9534 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 9513 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 9535 goto success; | 9514 goto success; |
| 9536 } | 9515 } |
| 9537 if ((8000u <= tag)) { | 9516 if ((8000u <= tag)) { |
| 9538 DO_(_extensions_.ParseField(tag, input, internal_default_instance(), | 9517 DO_(_extensions_.ParseField(tag, input, default_instance_, |
| 9539 mutable_unknown_fields())); | 9518 mutable_unknown_fields())); |
| 9540 continue; | 9519 continue; |
| 9541 } | 9520 } |
| 9542 DO_(::google::protobuf::internal::WireFormat::SkipField( | 9521 DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 9543 input, tag, mutable_unknown_fields())); | 9522 input, tag, mutable_unknown_fields())); |
| 9544 break; | 9523 break; |
| 9545 } | 9524 } |
| 9546 } | 9525 } |
| 9547 } | 9526 } |
| 9548 success: | 9527 success: |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9587 _extensions_.SerializeWithCachedSizes( | 9566 _extensions_.SerializeWithCachedSizes( |
| 9588 1000, 536870912, output); | 9567 1000, 536870912, output); |
| 9589 | 9568 |
| 9590 if (_internal_metadata_.have_unknown_fields()) { | 9569 if (_internal_metadata_.have_unknown_fields()) { |
| 9591 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 9570 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 9592 unknown_fields(), output); | 9571 unknown_fields(), output); |
| 9593 } | 9572 } |
| 9594 // @@protoc_insertion_point(serialize_end:google.protobuf.MessageOptions) | 9573 // @@protoc_insertion_point(serialize_end:google.protobuf.MessageOptions) |
| 9595 } | 9574 } |
| 9596 | 9575 |
| 9597 ::google::protobuf::uint8* MessageOptions::InternalSerializeWithCachedSizesToArr
ay( | 9576 ::google::protobuf::uint8* MessageOptions::SerializeWithCachedSizesToArray( |
| 9598 bool deterministic, ::google::protobuf::uint8* target) const { | 9577 ::google::protobuf::uint8* target) const { |
| 9599 (void)deterministic; // Unused | |
| 9600 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MessageOp
tions) | 9578 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MessageOp
tions) |
| 9601 // optional bool message_set_wire_format = 1 [default = false]; | 9579 // optional bool message_set_wire_format = 1 [default = false]; |
| 9602 if (has_message_set_wire_format()) { | 9580 if (has_message_set_wire_format()) { |
| 9603 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, t
his->message_set_wire_format(), target); | 9581 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, t
his->message_set_wire_format(), target); |
| 9604 } | 9582 } |
| 9605 | 9583 |
| 9606 // optional bool no_standard_descriptor_accessor = 2 [default = false]; | 9584 // optional bool no_standard_descriptor_accessor = 2 [default = false]; |
| 9607 if (has_no_standard_descriptor_accessor()) { | 9585 if (has_no_standard_descriptor_accessor()) { |
| 9608 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, t
his->no_standard_descriptor_accessor(), target); | 9586 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, t
his->no_standard_descriptor_accessor(), target); |
| 9609 } | 9587 } |
| 9610 | 9588 |
| 9611 // optional bool deprecated = 3 [default = false]; | 9589 // optional bool deprecated = 3 [default = false]; |
| 9612 if (has_deprecated()) { | 9590 if (has_deprecated()) { |
| 9613 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, t
his->deprecated(), target); | 9591 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, t
his->deprecated(), target); |
| 9614 } | 9592 } |
| 9615 | 9593 |
| 9616 // optional bool map_entry = 7; | 9594 // optional bool map_entry = 7; |
| 9617 if (has_map_entry()) { | 9595 if (has_map_entry()) { |
| 9618 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, t
his->map_entry(), target); | 9596 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, t
his->map_entry(), target); |
| 9619 } | 9597 } |
| 9620 | 9598 |
| 9621 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 9599 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 9622 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { | 9600 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 9623 target = ::google::protobuf::internal::WireFormatLite:: | 9601 target = ::google::protobuf::internal::WireFormatLite:: |
| 9624 InternalWriteMessageNoVirtualToArray( | 9602 WriteMessageNoVirtualToArray( |
| 9625 999, this->uninterpreted_option(i), false, target); | 9603 999, this->uninterpreted_option(i), target); |
| 9626 } | 9604 } |
| 9627 | 9605 |
| 9628 // Extension range [1000, 536870912) | 9606 // Extension range [1000, 536870912) |
| 9629 target = _extensions_.InternalSerializeWithCachedSizesToArray( | 9607 target = _extensions_.SerializeWithCachedSizesToArray( |
| 9630 1000, 536870912, false, target); | 9608 1000, 536870912, target); |
| 9631 | 9609 |
| 9632 if (_internal_metadata_.have_unknown_fields()) { | 9610 if (_internal_metadata_.have_unknown_fields()) { |
| 9633 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 9611 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
| 9634 unknown_fields(), target); | 9612 unknown_fields(), target); |
| 9635 } | 9613 } |
| 9636 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MessageOpti
ons) | 9614 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MessageOpti
ons) |
| 9637 return target; | 9615 return target; |
| 9638 } | 9616 } |
| 9639 | 9617 |
| 9640 size_t MessageOptions::ByteSizeLong() const { | 9618 int MessageOptions::ByteSize() const { |
| 9641 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.MessageOptio
ns) | 9619 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.MessageOptio
ns) |
| 9642 size_t total_size = 0; | 9620 int total_size = 0; |
| 9643 | |
| 9644 total_size += _extensions_.ByteSize(); | |
| 9645 | |
| 9646 if (_internal_metadata_.have_unknown_fields()) { | |
| 9647 total_size += | |
| 9648 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | |
| 9649 unknown_fields()); | |
| 9650 } | |
| 9651 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | |
| 9652 { | |
| 9653 unsigned int count = this->uninterpreted_option_size(); | |
| 9654 total_size += 2UL * count; | |
| 9655 for (unsigned int i = 0; i < count; i++) { | |
| 9656 total_size += | |
| 9657 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
| 9658 this->uninterpreted_option(i)); | |
| 9659 } | |
| 9660 } | |
| 9661 | 9621 |
| 9662 if (_has_bits_[0 / 32] & 15u) { | 9622 if (_has_bits_[0 / 32] & 15u) { |
| 9663 // optional bool message_set_wire_format = 1 [default = false]; | 9623 // optional bool message_set_wire_format = 1 [default = false]; |
| 9664 if (has_message_set_wire_format()) { | 9624 if (has_message_set_wire_format()) { |
| 9665 total_size += 1 + 1; | 9625 total_size += 1 + 1; |
| 9666 } | 9626 } |
| 9667 | 9627 |
| 9668 // optional bool no_standard_descriptor_accessor = 2 [default = false]; | 9628 // optional bool no_standard_descriptor_accessor = 2 [default = false]; |
| 9669 if (has_no_standard_descriptor_accessor()) { | 9629 if (has_no_standard_descriptor_accessor()) { |
| 9670 total_size += 1 + 1; | 9630 total_size += 1 + 1; |
| 9671 } | 9631 } |
| 9672 | 9632 |
| 9673 // optional bool deprecated = 3 [default = false]; | 9633 // optional bool deprecated = 3 [default = false]; |
| 9674 if (has_deprecated()) { | 9634 if (has_deprecated()) { |
| 9675 total_size += 1 + 1; | 9635 total_size += 1 + 1; |
| 9676 } | 9636 } |
| 9677 | 9637 |
| 9678 // optional bool map_entry = 7; | 9638 // optional bool map_entry = 7; |
| 9679 if (has_map_entry()) { | 9639 if (has_map_entry()) { |
| 9680 total_size += 1 + 1; | 9640 total_size += 1 + 1; |
| 9681 } | 9641 } |
| 9682 | 9642 |
| 9683 } | 9643 } |
| 9684 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | 9644 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 9645 total_size += 2 * this->uninterpreted_option_size(); |
| 9646 for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
| 9647 total_size += |
| 9648 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 9649 this->uninterpreted_option(i)); |
| 9650 } |
| 9651 |
| 9652 total_size += _extensions_.ByteSize(); |
| 9653 |
| 9654 if (_internal_metadata_.have_unknown_fields()) { |
| 9655 total_size += |
| 9656 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 9657 unknown_fields()); |
| 9658 } |
| 9685 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 9659 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 9686 _cached_size_ = cached_size; | 9660 _cached_size_ = total_size; |
| 9687 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 9661 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 9688 return total_size; | 9662 return total_size; |
| 9689 } | 9663 } |
| 9690 | 9664 |
| 9691 void MessageOptions::MergeFrom(const ::google::protobuf::Message& from) { | 9665 void MessageOptions::MergeFrom(const ::google::protobuf::Message& from) { |
| 9692 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Message
Options) | 9666 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Message
Options) |
| 9693 GOOGLE_DCHECK_NE(&from, this); | 9667 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 9694 const MessageOptions* source = | 9668 const MessageOptions* source = |
| 9695 ::google::protobuf::internal::DynamicCastToGenerated<const MessageOptions>
( | 9669 ::google::protobuf::internal::DynamicCastToGenerated<const MessageOptions>
( |
| 9696 &from); | 9670 &from); |
| 9697 if (source == NULL) { | 9671 if (source == NULL) { |
| 9698 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.M
essageOptions) | 9672 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.M
essageOptions) |
| 9699 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 9673 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 9700 } else { | 9674 } else { |
| 9701 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.MessageOptions) | 9675 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.MessageOptions) |
| 9702 MergeFrom(*source); | 9676 MergeFrom(*source); |
| 9703 } | 9677 } |
| 9704 } | 9678 } |
| 9705 | 9679 |
| 9706 void MessageOptions::MergeFrom(const MessageOptions& from) { | 9680 void MessageOptions::MergeFrom(const MessageOptions& from) { |
| 9707 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Mess
ageOptions) | 9681 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Mess
ageOptions) |
| 9708 GOOGLE_DCHECK_NE(&from, this); | 9682 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 9709 _extensions_.MergeFrom(from._extensions_); | |
| 9710 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 9711 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); | 9683 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); |
| 9712 if (from._has_bits_[0 / 32] & 15u) { | 9684 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 9713 if (from.has_message_set_wire_format()) { | 9685 if (from.has_message_set_wire_format()) { |
| 9714 set_message_set_wire_format(from.message_set_wire_format()); | 9686 set_message_set_wire_format(from.message_set_wire_format()); |
| 9715 } | 9687 } |
| 9716 if (from.has_no_standard_descriptor_accessor()) { | 9688 if (from.has_no_standard_descriptor_accessor()) { |
| 9717 set_no_standard_descriptor_accessor(from.no_standard_descriptor_accessor()
); | 9689 set_no_standard_descriptor_accessor(from.no_standard_descriptor_accessor()
); |
| 9718 } | 9690 } |
| 9719 if (from.has_deprecated()) { | 9691 if (from.has_deprecated()) { |
| 9720 set_deprecated(from.deprecated()); | 9692 set_deprecated(from.deprecated()); |
| 9721 } | 9693 } |
| 9722 if (from.has_map_entry()) { | 9694 if (from.has_map_entry()) { |
| 9723 set_map_entry(from.map_entry()); | 9695 set_map_entry(from.map_entry()); |
| 9724 } | 9696 } |
| 9725 } | 9697 } |
| 9698 _extensions_.MergeFrom(from._extensions_); |
| 9699 if (from._internal_metadata_.have_unknown_fields()) { |
| 9700 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 9701 } |
| 9726 } | 9702 } |
| 9727 | 9703 |
| 9728 void MessageOptions::CopyFrom(const ::google::protobuf::Message& from) { | 9704 void MessageOptions::CopyFrom(const ::google::protobuf::Message& from) { |
| 9729 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.MessageO
ptions) | 9705 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.MessageO
ptions) |
| 9730 if (&from == this) return; | 9706 if (&from == this) return; |
| 9731 Clear(); | 9707 Clear(); |
| 9732 MergeFrom(from); | 9708 MergeFrom(from); |
| 9733 } | 9709 } |
| 9734 | 9710 |
| 9735 void MessageOptions::CopyFrom(const MessageOptions& from) { | 9711 void MessageOptions::CopyFrom(const MessageOptions& from) { |
| 9736 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Messa
geOptions) | 9712 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Messa
geOptions) |
| 9737 if (&from == this) return; | 9713 if (&from == this) return; |
| 9738 Clear(); | 9714 Clear(); |
| 9739 MergeFrom(from); | 9715 MergeFrom(from); |
| 9740 } | 9716 } |
| 9741 | 9717 |
| 9742 bool MessageOptions::IsInitialized() const { | 9718 bool MessageOptions::IsInitialized() const { |
| 9743 if (!_extensions_.IsInitialized()) { | |
| 9744 return false; | |
| 9745 } | |
| 9746 | 9719 |
| 9747 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio
n())) return false; | 9720 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio
n())) return false; |
| 9748 return true; | 9721 |
| 9722 if (!_extensions_.IsInitialized()) return false; return true; |
| 9749 } | 9723 } |
| 9750 | 9724 |
| 9751 void MessageOptions::Swap(MessageOptions* other) { | 9725 void MessageOptions::Swap(MessageOptions* other) { |
| 9752 if (other == this) return; | 9726 if (other == this) return; |
| 9753 InternalSwap(other); | 9727 InternalSwap(other); |
| 9754 } | 9728 } |
| 9755 void MessageOptions::InternalSwap(MessageOptions* other) { | 9729 void MessageOptions::InternalSwap(MessageOptions* other) { |
| 9756 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); | |
| 9757 std::swap(message_set_wire_format_, other->message_set_wire_format_); | 9730 std::swap(message_set_wire_format_, other->message_set_wire_format_); |
| 9758 std::swap(no_standard_descriptor_accessor_, other->no_standard_descriptor_acce
ssor_); | 9731 std::swap(no_standard_descriptor_accessor_, other->no_standard_descriptor_acce
ssor_); |
| 9759 std::swap(deprecated_, other->deprecated_); | 9732 std::swap(deprecated_, other->deprecated_); |
| 9760 std::swap(map_entry_, other->map_entry_); | 9733 std::swap(map_entry_, other->map_entry_); |
| 9734 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); |
| 9761 std::swap(_has_bits_[0], other->_has_bits_[0]); | 9735 std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 9762 _internal_metadata_.Swap(&other->_internal_metadata_); | 9736 _internal_metadata_.Swap(&other->_internal_metadata_); |
| 9763 std::swap(_cached_size_, other->_cached_size_); | 9737 std::swap(_cached_size_, other->_cached_size_); |
| 9764 _extensions_.Swap(&other->_extensions_); | 9738 _extensions_.Swap(&other->_extensions_); |
| 9765 } | 9739 } |
| 9766 | 9740 |
| 9767 ::google::protobuf::Metadata MessageOptions::GetMetadata() const { | 9741 ::google::protobuf::Metadata MessageOptions::GetMetadata() const { |
| 9768 protobuf_AssignDescriptorsOnce(); | 9742 protobuf_AssignDescriptorsOnce(); |
| 9769 return file_level_metadata[12]; | 9743 ::google::protobuf::Metadata metadata; |
| 9744 metadata.descriptor = MessageOptions_descriptor_; |
| 9745 metadata.reflection = MessageOptions_reflection_; |
| 9746 return metadata; |
| 9770 } | 9747 } |
| 9771 | 9748 |
| 9772 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 9749 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 9773 // MessageOptions | 9750 // MessageOptions |
| 9774 | 9751 |
| 9775 // optional bool message_set_wire_format = 1 [default = false]; | 9752 // optional bool message_set_wire_format = 1 [default = false]; |
| 9776 bool MessageOptions::has_message_set_wire_format() const { | 9753 bool MessageOptions::has_message_set_wire_format() const { |
| 9777 return (_has_bits_[0] & 0x00000001u) != 0; | 9754 return (_has_bits_[0] & 0x00000001u) != 0; |
| 9778 } | 9755 } |
| 9779 void MessageOptions::set_has_message_set_wire_format() { | 9756 void MessageOptions::set_has_message_set_wire_format() { |
| 9780 _has_bits_[0] |= 0x00000001u; | 9757 _has_bits_[0] |= 0x00000001u; |
| 9781 } | 9758 } |
| 9782 void MessageOptions::clear_has_message_set_wire_format() { | 9759 void MessageOptions::clear_has_message_set_wire_format() { |
| 9783 _has_bits_[0] &= ~0x00000001u; | 9760 _has_bits_[0] &= ~0x00000001u; |
| 9784 } | 9761 } |
| 9785 void MessageOptions::clear_message_set_wire_format() { | 9762 void MessageOptions::clear_message_set_wire_format() { |
| 9786 message_set_wire_format_ = false; | 9763 message_set_wire_format_ = false; |
| 9787 clear_has_message_set_wire_format(); | 9764 clear_has_message_set_wire_format(); |
| 9788 } | 9765 } |
| 9789 bool MessageOptions::message_set_wire_format() const { | 9766 bool MessageOptions::message_set_wire_format() const { |
| 9790 // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.message_s
et_wire_format) | 9767 // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.message_s
et_wire_format) |
| 9791 return message_set_wire_format_; | 9768 return message_set_wire_format_; |
| 9792 } | 9769 } |
| 9793 void MessageOptions::set_message_set_wire_format(bool value) { | 9770 void MessageOptions::set_message_set_wire_format(bool value) { |
| 9794 set_has_message_set_wire_format(); | 9771 set_has_message_set_wire_format(); |
| 9795 message_set_wire_format_ = value; | 9772 message_set_wire_format_ = value; |
| 9796 // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.message_s
et_wire_format) | 9773 // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.message_s
et_wire_format) |
| 9797 } | 9774 } |
| 9798 | 9775 |
| 9799 // optional bool no_standard_descriptor_accessor = 2 [default = false]; | 9776 // optional bool no_standard_descriptor_accessor = 2 [default = false]; |
| 9800 bool MessageOptions::has_no_standard_descriptor_accessor() const { | 9777 bool MessageOptions::has_no_standard_descriptor_accessor() const { |
| 9801 return (_has_bits_[0] & 0x00000002u) != 0; | 9778 return (_has_bits_[0] & 0x00000002u) != 0; |
| 9802 } | 9779 } |
| 9803 void MessageOptions::set_has_no_standard_descriptor_accessor() { | 9780 void MessageOptions::set_has_no_standard_descriptor_accessor() { |
| 9804 _has_bits_[0] |= 0x00000002u; | 9781 _has_bits_[0] |= 0x00000002u; |
| 9805 } | 9782 } |
| 9806 void MessageOptions::clear_has_no_standard_descriptor_accessor() { | 9783 void MessageOptions::clear_has_no_standard_descriptor_accessor() { |
| 9807 _has_bits_[0] &= ~0x00000002u; | 9784 _has_bits_[0] &= ~0x00000002u; |
| 9808 } | 9785 } |
| 9809 void MessageOptions::clear_no_standard_descriptor_accessor() { | 9786 void MessageOptions::clear_no_standard_descriptor_accessor() { |
| 9810 no_standard_descriptor_accessor_ = false; | 9787 no_standard_descriptor_accessor_ = false; |
| 9811 clear_has_no_standard_descriptor_accessor(); | 9788 clear_has_no_standard_descriptor_accessor(); |
| 9812 } | 9789 } |
| 9813 bool MessageOptions::no_standard_descriptor_accessor() const { | 9790 bool MessageOptions::no_standard_descriptor_accessor() const { |
| 9814 // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.no_standa
rd_descriptor_accessor) | 9791 // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.no_standa
rd_descriptor_accessor) |
| 9815 return no_standard_descriptor_accessor_; | 9792 return no_standard_descriptor_accessor_; |
| 9816 } | 9793 } |
| 9817 void MessageOptions::set_no_standard_descriptor_accessor(bool value) { | 9794 void MessageOptions::set_no_standard_descriptor_accessor(bool value) { |
| 9818 set_has_no_standard_descriptor_accessor(); | 9795 set_has_no_standard_descriptor_accessor(); |
| 9819 no_standard_descriptor_accessor_ = value; | 9796 no_standard_descriptor_accessor_ = value; |
| 9820 // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.no_standa
rd_descriptor_accessor) | 9797 // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.no_standa
rd_descriptor_accessor) |
| 9821 } | 9798 } |
| 9822 | 9799 |
| 9823 // optional bool deprecated = 3 [default = false]; | 9800 // optional bool deprecated = 3 [default = false]; |
| 9824 bool MessageOptions::has_deprecated() const { | 9801 bool MessageOptions::has_deprecated() const { |
| 9825 return (_has_bits_[0] & 0x00000004u) != 0; | 9802 return (_has_bits_[0] & 0x00000004u) != 0; |
| 9826 } | 9803 } |
| 9827 void MessageOptions::set_has_deprecated() { | 9804 void MessageOptions::set_has_deprecated() { |
| 9828 _has_bits_[0] |= 0x00000004u; | 9805 _has_bits_[0] |= 0x00000004u; |
| 9829 } | 9806 } |
| 9830 void MessageOptions::clear_has_deprecated() { | 9807 void MessageOptions::clear_has_deprecated() { |
| 9831 _has_bits_[0] &= ~0x00000004u; | 9808 _has_bits_[0] &= ~0x00000004u; |
| 9832 } | 9809 } |
| 9833 void MessageOptions::clear_deprecated() { | 9810 void MessageOptions::clear_deprecated() { |
| 9834 deprecated_ = false; | 9811 deprecated_ = false; |
| 9835 clear_has_deprecated(); | 9812 clear_has_deprecated(); |
| 9836 } | 9813 } |
| 9837 bool MessageOptions::deprecated() const { | 9814 bool MessageOptions::deprecated() const { |
| 9838 // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.deprecate
d) | 9815 // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.deprecate
d) |
| 9839 return deprecated_; | 9816 return deprecated_; |
| 9840 } | 9817 } |
| 9841 void MessageOptions::set_deprecated(bool value) { | 9818 void MessageOptions::set_deprecated(bool value) { |
| 9842 set_has_deprecated(); | 9819 set_has_deprecated(); |
| 9843 deprecated_ = value; | 9820 deprecated_ = value; |
| 9844 // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.deprecate
d) | 9821 // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.deprecate
d) |
| 9845 } | 9822 } |
| 9846 | 9823 |
| 9847 // optional bool map_entry = 7; | 9824 // optional bool map_entry = 7; |
| 9848 bool MessageOptions::has_map_entry() const { | 9825 bool MessageOptions::has_map_entry() const { |
| 9849 return (_has_bits_[0] & 0x00000008u) != 0; | 9826 return (_has_bits_[0] & 0x00000008u) != 0; |
| 9850 } | 9827 } |
| 9851 void MessageOptions::set_has_map_entry() { | 9828 void MessageOptions::set_has_map_entry() { |
| 9852 _has_bits_[0] |= 0x00000008u; | 9829 _has_bits_[0] |= 0x00000008u; |
| 9853 } | 9830 } |
| 9854 void MessageOptions::clear_has_map_entry() { | 9831 void MessageOptions::clear_has_map_entry() { |
| 9855 _has_bits_[0] &= ~0x00000008u; | 9832 _has_bits_[0] &= ~0x00000008u; |
| 9856 } | 9833 } |
| 9857 void MessageOptions::clear_map_entry() { | 9834 void MessageOptions::clear_map_entry() { |
| 9858 map_entry_ = false; | 9835 map_entry_ = false; |
| 9859 clear_has_map_entry(); | 9836 clear_has_map_entry(); |
| 9860 } | 9837 } |
| 9861 bool MessageOptions::map_entry() const { | 9838 bool MessageOptions::map_entry() const { |
| 9862 // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.map_entry
) | 9839 // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.map_entry
) |
| 9863 return map_entry_; | 9840 return map_entry_; |
| 9864 } | 9841 } |
| 9865 void MessageOptions::set_map_entry(bool value) { | 9842 void MessageOptions::set_map_entry(bool value) { |
| 9866 set_has_map_entry(); | 9843 set_has_map_entry(); |
| 9867 map_entry_ = value; | 9844 map_entry_ = value; |
| 9868 // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.map_entry
) | 9845 // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.map_entry
) |
| 9869 } | 9846 } |
| 9870 | 9847 |
| 9871 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 9848 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 9872 int MessageOptions::uninterpreted_option_size() const { | 9849 int MessageOptions::uninterpreted_option_size() const { |
| 9873 return uninterpreted_option_.size(); | 9850 return uninterpreted_option_.size(); |
| 9874 } | 9851 } |
| 9875 void MessageOptions::clear_uninterpreted_option() { | 9852 void MessageOptions::clear_uninterpreted_option() { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 9895 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt
ion >& | 9872 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt
ion >& |
| 9896 MessageOptions::uninterpreted_option() const { | 9873 MessageOptions::uninterpreted_option() const { |
| 9897 // @@protoc_insertion_point(field_list:google.protobuf.MessageOptions.uninterp
reted_option) | 9874 // @@protoc_insertion_point(field_list:google.protobuf.MessageOptions.uninterp
reted_option) |
| 9898 return uninterpreted_option_; | 9875 return uninterpreted_option_; |
| 9899 } | 9876 } |
| 9900 | 9877 |
| 9901 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 9878 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 9902 | 9879 |
| 9903 // =================================================================== | 9880 // =================================================================== |
| 9904 | 9881 |
| 9882 const ::google::protobuf::EnumDescriptor* FieldOptions_CType_descriptor() { |
| 9883 protobuf_AssignDescriptorsOnce(); |
| 9884 return FieldOptions_CType_descriptor_; |
| 9885 } |
| 9886 bool FieldOptions_CType_IsValid(int value) { |
| 9887 switch(value) { |
| 9888 case 0: |
| 9889 case 1: |
| 9890 case 2: |
| 9891 return true; |
| 9892 default: |
| 9893 return false; |
| 9894 } |
| 9895 } |
| 9896 |
| 9897 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 9898 const FieldOptions_CType FieldOptions::STRING; |
| 9899 const FieldOptions_CType FieldOptions::CORD; |
| 9900 const FieldOptions_CType FieldOptions::STRING_PIECE; |
| 9901 const FieldOptions_CType FieldOptions::CType_MIN; |
| 9902 const FieldOptions_CType FieldOptions::CType_MAX; |
| 9903 const int FieldOptions::CType_ARRAYSIZE; |
| 9904 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 9905 const ::google::protobuf::EnumDescriptor* FieldOptions_JSType_descriptor() { |
| 9906 protobuf_AssignDescriptorsOnce(); |
| 9907 return FieldOptions_JSType_descriptor_; |
| 9908 } |
| 9909 bool FieldOptions_JSType_IsValid(int value) { |
| 9910 switch(value) { |
| 9911 case 0: |
| 9912 case 1: |
| 9913 case 2: |
| 9914 return true; |
| 9915 default: |
| 9916 return false; |
| 9917 } |
| 9918 } |
| 9919 |
| 9920 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 9921 const FieldOptions_JSType FieldOptions::JS_NORMAL; |
| 9922 const FieldOptions_JSType FieldOptions::JS_STRING; |
| 9923 const FieldOptions_JSType FieldOptions::JS_NUMBER; |
| 9924 const FieldOptions_JSType FieldOptions::JSType_MIN; |
| 9925 const FieldOptions_JSType FieldOptions::JSType_MAX; |
| 9926 const int FieldOptions::JSType_ARRAYSIZE; |
| 9927 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 9905 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 9928 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 9906 const int FieldOptions::kCtypeFieldNumber; | 9929 const int FieldOptions::kCtypeFieldNumber; |
| 9907 const int FieldOptions::kPackedFieldNumber; | 9930 const int FieldOptions::kPackedFieldNumber; |
| 9908 const int FieldOptions::kJstypeFieldNumber; | 9931 const int FieldOptions::kJstypeFieldNumber; |
| 9909 const int FieldOptions::kLazyFieldNumber; | 9932 const int FieldOptions::kLazyFieldNumber; |
| 9910 const int FieldOptions::kDeprecatedFieldNumber; | 9933 const int FieldOptions::kDeprecatedFieldNumber; |
| 9911 const int FieldOptions::kWeakFieldNumber; | 9934 const int FieldOptions::kWeakFieldNumber; |
| 9912 const int FieldOptions::kUninterpretedOptionFieldNumber; | 9935 const int FieldOptions::kUninterpretedOptionFieldNumber; |
| 9913 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 9936 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 9914 | 9937 |
| 9915 FieldOptions::FieldOptions() | 9938 FieldOptions::FieldOptions() |
| 9916 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 9939 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 9917 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
| 9918 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
| 9919 } | |
| 9920 SharedCtor(); | 9940 SharedCtor(); |
| 9921 // @@protoc_insertion_point(constructor:google.protobuf.FieldOptions) | 9941 // @@protoc_insertion_point(constructor:google.protobuf.FieldOptions) |
| 9922 } | 9942 } |
| 9943 |
| 9944 void FieldOptions::InitAsDefaultInstance() { |
| 9945 } |
| 9946 |
| 9923 FieldOptions::FieldOptions(const FieldOptions& from) | 9947 FieldOptions::FieldOptions(const FieldOptions& from) |
| 9924 : ::google::protobuf::Message(), | 9948 : ::google::protobuf::Message(), |
| 9925 _internal_metadata_(NULL), | 9949 _internal_metadata_(NULL) { |
| 9926 _has_bits_(from._has_bits_), | 9950 SharedCtor(); |
| 9927 _cached_size_(0), | 9951 MergeFrom(from); |
| 9928 uninterpreted_option_(from.uninterpreted_option_) { | |
| 9929 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 9930 _extensions_.MergeFrom(from._extensions_); | |
| 9931 ::memcpy(&ctype_, &from.ctype_, | |
| 9932 reinterpret_cast<char*>(&weak_) - | |
| 9933 reinterpret_cast<char*>(&ctype_) + sizeof(weak_)); | |
| 9934 // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldOptions) | 9952 // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldOptions) |
| 9935 } | 9953 } |
| 9936 | 9954 |
| 9937 void FieldOptions::SharedCtor() { | 9955 void FieldOptions::SharedCtor() { |
| 9938 _cached_size_ = 0; | 9956 _cached_size_ = 0; |
| 9939 ::memset(&ctype_, 0, reinterpret_cast<char*>(&weak_) - | 9957 ctype_ = 0; |
| 9940 reinterpret_cast<char*>(&ctype_) + sizeof(weak_)); | 9958 packed_ = false; |
| 9959 jstype_ = 0; |
| 9960 lazy_ = false; |
| 9961 deprecated_ = false; |
| 9962 weak_ = false; |
| 9963 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 9941 } | 9964 } |
| 9942 | 9965 |
| 9943 FieldOptions::~FieldOptions() { | 9966 FieldOptions::~FieldOptions() { |
| 9944 // @@protoc_insertion_point(destructor:google.protobuf.FieldOptions) | 9967 // @@protoc_insertion_point(destructor:google.protobuf.FieldOptions) |
| 9945 SharedDtor(); | 9968 SharedDtor(); |
| 9946 } | 9969 } |
| 9947 | 9970 |
| 9948 void FieldOptions::SharedDtor() { | 9971 void FieldOptions::SharedDtor() { |
| 9972 if (this != default_instance_) { |
| 9973 } |
| 9949 } | 9974 } |
| 9950 | 9975 |
| 9951 void FieldOptions::SetCachedSize(int size) const { | 9976 void FieldOptions::SetCachedSize(int size) const { |
| 9952 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 9977 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 9953 _cached_size_ = size; | 9978 _cached_size_ = size; |
| 9954 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 9979 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 9955 } | 9980 } |
| 9956 const ::google::protobuf::Descriptor* FieldOptions::descriptor() { | 9981 const ::google::protobuf::Descriptor* FieldOptions::descriptor() { |
| 9957 protobuf_AssignDescriptorsOnce(); | 9982 protobuf_AssignDescriptorsOnce(); |
| 9958 return file_level_metadata[13].descriptor; | 9983 return FieldOptions_descriptor_; |
| 9959 } | 9984 } |
| 9960 | 9985 |
| 9961 const FieldOptions& FieldOptions::default_instance() { | 9986 const FieldOptions& FieldOptions::default_instance() { |
| 9962 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 9987 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
| 9963 return *internal_default_instance(); | 9988 return *default_instance_; |
| 9964 } | 9989 } |
| 9965 | 9990 |
| 9991 FieldOptions* FieldOptions::default_instance_ = NULL; |
| 9992 |
| 9966 FieldOptions* FieldOptions::New(::google::protobuf::Arena* arena) const { | 9993 FieldOptions* FieldOptions::New(::google::protobuf::Arena* arena) const { |
| 9967 FieldOptions* n = new FieldOptions; | 9994 FieldOptions* n = new FieldOptions; |
| 9968 if (arena != NULL) { | 9995 if (arena != NULL) { |
| 9969 arena->Own(n); | 9996 arena->Own(n); |
| 9970 } | 9997 } |
| 9971 return n; | 9998 return n; |
| 9972 } | 9999 } |
| 9973 | 10000 |
| 9974 void FieldOptions::Clear() { | 10001 void FieldOptions::Clear() { |
| 9975 // @@protoc_insertion_point(message_clear_start:google.protobuf.FieldOptions) | 10002 // @@protoc_insertion_point(message_clear_start:google.protobuf.FieldOptions) |
| 9976 _extensions_.Clear(); | 10003 _extensions_.Clear(); |
| 10004 #if defined(__clang__) |
| 10005 #define ZR_HELPER_(f) \ |
| 10006 _Pragma("clang diagnostic push") \ |
| 10007 _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ |
| 10008 __builtin_offsetof(FieldOptions, f) \ |
| 10009 _Pragma("clang diagnostic pop") |
| 10010 #else |
| 10011 #define ZR_HELPER_(f) reinterpret_cast<char*>(\ |
| 10012 &reinterpret_cast<FieldOptions*>(16)->f) |
| 10013 #endif |
| 10014 |
| 10015 #define ZR_(first, last) do {\ |
| 10016 ::memset(&first, 0,\ |
| 10017 ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ |
| 10018 } while (0) |
| 10019 |
| 10020 if (_has_bits_[0 / 32] & 63u) { |
| 10021 ZR_(ctype_, jstype_); |
| 10022 ZR_(packed_, weak_); |
| 10023 } |
| 10024 |
| 10025 #undef ZR_HELPER_ |
| 10026 #undef ZR_ |
| 10027 |
| 9977 uninterpreted_option_.Clear(); | 10028 uninterpreted_option_.Clear(); |
| 9978 if (_has_bits_[0 / 32] & 63u) { | 10029 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 9979 ::memset(&ctype_, 0, reinterpret_cast<char*>(&weak_) - | 10030 if (_internal_metadata_.have_unknown_fields()) { |
| 9980 reinterpret_cast<char*>(&ctype_) + sizeof(weak_)); | 10031 mutable_unknown_fields()->Clear(); |
| 9981 } | 10032 } |
| 9982 _has_bits_.Clear(); | |
| 9983 _internal_metadata_.Clear(); | |
| 9984 } | 10033 } |
| 9985 | 10034 |
| 9986 bool FieldOptions::MergePartialFromCodedStream( | 10035 bool FieldOptions::MergePartialFromCodedStream( |
| 9987 ::google::protobuf::io::CodedInputStream* input) { | 10036 ::google::protobuf::io::CodedInputStream* input) { |
| 9988 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 10037 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 9989 ::google::protobuf::uint32 tag; | 10038 ::google::protobuf::uint32 tag; |
| 9990 // @@protoc_insertion_point(parse_start:google.protobuf.FieldOptions) | 10039 // @@protoc_insertion_point(parse_start:google.protobuf.FieldOptions) |
| 9991 for (;;) { | 10040 for (;;) { |
| 9992 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(16383u); | 10041 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
16383); |
| 9993 tag = p.first; | 10042 tag = p.first; |
| 9994 if (!p.second) goto handle_unusual; | 10043 if (!p.second) goto handle_unusual; |
| 9995 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 10044 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
| 9996 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRIN
G]; | 10045 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRIN
G]; |
| 9997 case 1: { | 10046 case 1: { |
| 9998 if (tag == 8u) { | 10047 if (tag == 8) { |
| 9999 int value; | 10048 int value; |
| 10000 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 10049 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 10001 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>
( | 10050 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>
( |
| 10002 input, &value))); | 10051 input, &value))); |
| 10003 if (::google::protobuf::FieldOptions_CType_IsValid(value)) { | 10052 if (::google::protobuf::FieldOptions_CType_IsValid(value)) { |
| 10004 set_ctype(static_cast< ::google::protobuf::FieldOptions_CType >(valu
e)); | 10053 set_ctype(static_cast< ::google::protobuf::FieldOptions_CType >(valu
e)); |
| 10005 } else { | 10054 } else { |
| 10006 mutable_unknown_fields()->AddVarint(1, value); | 10055 mutable_unknown_fields()->AddVarint(1, value); |
| 10007 } | 10056 } |
| 10008 } else { | 10057 } else { |
| 10009 goto handle_unusual; | 10058 goto handle_unusual; |
| 10010 } | 10059 } |
| 10060 if (input->ExpectTag(16)) goto parse_packed; |
| 10011 break; | 10061 break; |
| 10012 } | 10062 } |
| 10013 | 10063 |
| 10014 // optional bool packed = 2; | 10064 // optional bool packed = 2; |
| 10015 case 2: { | 10065 case 2: { |
| 10016 if (tag == 16u) { | 10066 if (tag == 16) { |
| 10017 set_has_packed(); | 10067 parse_packed: |
| 10018 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 10068 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 10019 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 10069 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
| 10020 input, &packed_))); | 10070 input, &packed_))); |
| 10071 set_has_packed(); |
| 10021 } else { | 10072 } else { |
| 10022 goto handle_unusual; | 10073 goto handle_unusual; |
| 10023 } | 10074 } |
| 10075 if (input->ExpectTag(24)) goto parse_deprecated; |
| 10024 break; | 10076 break; |
| 10025 } | 10077 } |
| 10026 | 10078 |
| 10027 // optional bool deprecated = 3 [default = false]; | 10079 // optional bool deprecated = 3 [default = false]; |
| 10028 case 3: { | 10080 case 3: { |
| 10029 if (tag == 24u) { | 10081 if (tag == 24) { |
| 10030 set_has_deprecated(); | 10082 parse_deprecated: |
| 10031 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 10083 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 10032 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 10084 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
| 10033 input, &deprecated_))); | 10085 input, &deprecated_))); |
| 10086 set_has_deprecated(); |
| 10034 } else { | 10087 } else { |
| 10035 goto handle_unusual; | 10088 goto handle_unusual; |
| 10036 } | 10089 } |
| 10090 if (input->ExpectTag(40)) goto parse_lazy; |
| 10037 break; | 10091 break; |
| 10038 } | 10092 } |
| 10039 | 10093 |
| 10040 // optional bool lazy = 5 [default = false]; | 10094 // optional bool lazy = 5 [default = false]; |
| 10041 case 5: { | 10095 case 5: { |
| 10042 if (tag == 40u) { | 10096 if (tag == 40) { |
| 10043 set_has_lazy(); | 10097 parse_lazy: |
| 10044 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 10098 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 10045 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 10099 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
| 10046 input, &lazy_))); | 10100 input, &lazy_))); |
| 10101 set_has_lazy(); |
| 10047 } else { | 10102 } else { |
| 10048 goto handle_unusual; | 10103 goto handle_unusual; |
| 10049 } | 10104 } |
| 10105 if (input->ExpectTag(48)) goto parse_jstype; |
| 10050 break; | 10106 break; |
| 10051 } | 10107 } |
| 10052 | 10108 |
| 10053 // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_
NORMAL]; | 10109 // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_
NORMAL]; |
| 10054 case 6: { | 10110 case 6: { |
| 10055 if (tag == 48u) { | 10111 if (tag == 48) { |
| 10112 parse_jstype: |
| 10056 int value; | 10113 int value; |
| 10057 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 10114 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 10058 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>
( | 10115 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>
( |
| 10059 input, &value))); | 10116 input, &value))); |
| 10060 if (::google::protobuf::FieldOptions_JSType_IsValid(value)) { | 10117 if (::google::protobuf::FieldOptions_JSType_IsValid(value)) { |
| 10061 set_jstype(static_cast< ::google::protobuf::FieldOptions_JSType >(va
lue)); | 10118 set_jstype(static_cast< ::google::protobuf::FieldOptions_JSType >(va
lue)); |
| 10062 } else { | 10119 } else { |
| 10063 mutable_unknown_fields()->AddVarint(6, value); | 10120 mutable_unknown_fields()->AddVarint(6, value); |
| 10064 } | 10121 } |
| 10065 } else { | 10122 } else { |
| 10066 goto handle_unusual; | 10123 goto handle_unusual; |
| 10067 } | 10124 } |
| 10125 if (input->ExpectTag(80)) goto parse_weak; |
| 10068 break; | 10126 break; |
| 10069 } | 10127 } |
| 10070 | 10128 |
| 10071 // optional bool weak = 10 [default = false]; | 10129 // optional bool weak = 10 [default = false]; |
| 10072 case 10: { | 10130 case 10: { |
| 10073 if (tag == 80u) { | 10131 if (tag == 80) { |
| 10074 set_has_weak(); | 10132 parse_weak: |
| 10075 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 10133 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 10076 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 10134 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
| 10077 input, &weak_))); | 10135 input, &weak_))); |
| 10136 set_has_weak(); |
| 10078 } else { | 10137 } else { |
| 10079 goto handle_unusual; | 10138 goto handle_unusual; |
| 10080 } | 10139 } |
| 10140 if (input->ExpectTag(7994)) goto parse_uninterpreted_option; |
| 10081 break; | 10141 break; |
| 10082 } | 10142 } |
| 10083 | 10143 |
| 10084 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99
9; | 10144 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99
9; |
| 10085 case 999: { | 10145 case 999: { |
| 10086 if (tag == 7994u) { | 10146 if (tag == 7994) { |
| 10147 parse_uninterpreted_option: |
| 10087 DO_(input->IncrementRecursionDepth()); | 10148 DO_(input->IncrementRecursionDepth()); |
| 10149 parse_loop_uninterpreted_option: |
| 10088 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 10150 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
| 10089 input, add_uninterpreted_option())); | 10151 input, add_uninterpreted_option())); |
| 10090 } else { | 10152 } else { |
| 10091 goto handle_unusual; | 10153 goto handle_unusual; |
| 10092 } | 10154 } |
| 10155 if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option; |
| 10093 input->UnsafeDecrementRecursionDepth(); | 10156 input->UnsafeDecrementRecursionDepth(); |
| 10157 if (input->ExpectAtEnd()) goto success; |
| 10094 break; | 10158 break; |
| 10095 } | 10159 } |
| 10096 | 10160 |
| 10097 default: { | 10161 default: { |
| 10098 handle_unusual: | 10162 handle_unusual: |
| 10099 if (tag == 0 || | 10163 if (tag == 0 || |
| 10100 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 10164 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 10101 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 10165 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 10102 goto success; | 10166 goto success; |
| 10103 } | 10167 } |
| 10104 if ((8000u <= tag)) { | 10168 if ((8000u <= tag)) { |
| 10105 DO_(_extensions_.ParseField(tag, input, internal_default_instance(), | 10169 DO_(_extensions_.ParseField(tag, input, default_instance_, |
| 10106 mutable_unknown_fields())); | 10170 mutable_unknown_fields())); |
| 10107 continue; | 10171 continue; |
| 10108 } | 10172 } |
| 10109 DO_(::google::protobuf::internal::WireFormat::SkipField( | 10173 DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 10110 input, tag, mutable_unknown_fields())); | 10174 input, tag, mutable_unknown_fields())); |
| 10111 break; | 10175 break; |
| 10112 } | 10176 } |
| 10113 } | 10177 } |
| 10114 } | 10178 } |
| 10115 success: | 10179 success: |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10166 _extensions_.SerializeWithCachedSizes( | 10230 _extensions_.SerializeWithCachedSizes( |
| 10167 1000, 536870912, output); | 10231 1000, 536870912, output); |
| 10168 | 10232 |
| 10169 if (_internal_metadata_.have_unknown_fields()) { | 10233 if (_internal_metadata_.have_unknown_fields()) { |
| 10170 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 10234 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 10171 unknown_fields(), output); | 10235 unknown_fields(), output); |
| 10172 } | 10236 } |
| 10173 // @@protoc_insertion_point(serialize_end:google.protobuf.FieldOptions) | 10237 // @@protoc_insertion_point(serialize_end:google.protobuf.FieldOptions) |
| 10174 } | 10238 } |
| 10175 | 10239 |
| 10176 ::google::protobuf::uint8* FieldOptions::InternalSerializeWithCachedSizesToArray
( | 10240 ::google::protobuf::uint8* FieldOptions::SerializeWithCachedSizesToArray( |
| 10177 bool deterministic, ::google::protobuf::uint8* target) const { | 10241 ::google::protobuf::uint8* target) const { |
| 10178 (void)deterministic; // Unused | |
| 10179 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldOpti
ons) | 10242 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldOpti
ons) |
| 10180 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; | 10243 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; |
| 10181 if (has_ctype()) { | 10244 if (has_ctype()) { |
| 10182 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( | 10245 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 10183 1, this->ctype(), target); | 10246 1, this->ctype(), target); |
| 10184 } | 10247 } |
| 10185 | 10248 |
| 10186 // optional bool packed = 2; | 10249 // optional bool packed = 2; |
| 10187 if (has_packed()) { | 10250 if (has_packed()) { |
| 10188 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, t
his->packed(), target); | 10251 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, t
his->packed(), target); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 10205 } | 10268 } |
| 10206 | 10269 |
| 10207 // optional bool weak = 10 [default = false]; | 10270 // optional bool weak = 10 [default = false]; |
| 10208 if (has_weak()) { | 10271 if (has_weak()) { |
| 10209 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10,
this->weak(), target); | 10272 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10,
this->weak(), target); |
| 10210 } | 10273 } |
| 10211 | 10274 |
| 10212 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 10275 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 10213 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { | 10276 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 10214 target = ::google::protobuf::internal::WireFormatLite:: | 10277 target = ::google::protobuf::internal::WireFormatLite:: |
| 10215 InternalWriteMessageNoVirtualToArray( | 10278 WriteMessageNoVirtualToArray( |
| 10216 999, this->uninterpreted_option(i), false, target); | 10279 999, this->uninterpreted_option(i), target); |
| 10217 } | 10280 } |
| 10218 | 10281 |
| 10219 // Extension range [1000, 536870912) | 10282 // Extension range [1000, 536870912) |
| 10220 target = _extensions_.InternalSerializeWithCachedSizesToArray( | 10283 target = _extensions_.SerializeWithCachedSizesToArray( |
| 10221 1000, 536870912, false, target); | 10284 1000, 536870912, target); |
| 10222 | 10285 |
| 10223 if (_internal_metadata_.have_unknown_fields()) { | 10286 if (_internal_metadata_.have_unknown_fields()) { |
| 10224 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 10287 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
| 10225 unknown_fields(), target); | 10288 unknown_fields(), target); |
| 10226 } | 10289 } |
| 10227 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FieldOption
s) | 10290 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FieldOption
s) |
| 10228 return target; | 10291 return target; |
| 10229 } | 10292 } |
| 10230 | 10293 |
| 10231 size_t FieldOptions::ByteSizeLong() const { | 10294 int FieldOptions::ByteSize() const { |
| 10232 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FieldOptions
) | 10295 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FieldOptions
) |
| 10233 size_t total_size = 0; | 10296 int total_size = 0; |
| 10234 | |
| 10235 total_size += _extensions_.ByteSize(); | |
| 10236 | |
| 10237 if (_internal_metadata_.have_unknown_fields()) { | |
| 10238 total_size += | |
| 10239 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | |
| 10240 unknown_fields()); | |
| 10241 } | |
| 10242 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | |
| 10243 { | |
| 10244 unsigned int count = this->uninterpreted_option_size(); | |
| 10245 total_size += 2UL * count; | |
| 10246 for (unsigned int i = 0; i < count; i++) { | |
| 10247 total_size += | |
| 10248 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
| 10249 this->uninterpreted_option(i)); | |
| 10250 } | |
| 10251 } | |
| 10252 | 10297 |
| 10253 if (_has_bits_[0 / 32] & 63u) { | 10298 if (_has_bits_[0 / 32] & 63u) { |
| 10254 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]
; | 10299 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]
; |
| 10255 if (has_ctype()) { | 10300 if (has_ctype()) { |
| 10256 total_size += 1 + | 10301 total_size += 1 + |
| 10257 ::google::protobuf::internal::WireFormatLite::EnumSize(this->ctype()); | 10302 ::google::protobuf::internal::WireFormatLite::EnumSize(this->ctype()); |
| 10258 } | 10303 } |
| 10259 | 10304 |
| 10305 // optional bool packed = 2; |
| 10306 if (has_packed()) { |
| 10307 total_size += 1 + 1; |
| 10308 } |
| 10309 |
| 10260 // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NO
RMAL]; | 10310 // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NO
RMAL]; |
| 10261 if (has_jstype()) { | 10311 if (has_jstype()) { |
| 10262 total_size += 1 + | 10312 total_size += 1 + |
| 10263 ::google::protobuf::internal::WireFormatLite::EnumSize(this->jstype()); | 10313 ::google::protobuf::internal::WireFormatLite::EnumSize(this->jstype()); |
| 10264 } | 10314 } |
| 10265 | 10315 |
| 10266 // optional bool packed = 2; | |
| 10267 if (has_packed()) { | |
| 10268 total_size += 1 + 1; | |
| 10269 } | |
| 10270 | |
| 10271 // optional bool lazy = 5 [default = false]; | 10316 // optional bool lazy = 5 [default = false]; |
| 10272 if (has_lazy()) { | 10317 if (has_lazy()) { |
| 10273 total_size += 1 + 1; | 10318 total_size += 1 + 1; |
| 10274 } | 10319 } |
| 10275 | 10320 |
| 10276 // optional bool deprecated = 3 [default = false]; | 10321 // optional bool deprecated = 3 [default = false]; |
| 10277 if (has_deprecated()) { | 10322 if (has_deprecated()) { |
| 10278 total_size += 1 + 1; | 10323 total_size += 1 + 1; |
| 10279 } | 10324 } |
| 10280 | 10325 |
| 10281 // optional bool weak = 10 [default = false]; | 10326 // optional bool weak = 10 [default = false]; |
| 10282 if (has_weak()) { | 10327 if (has_weak()) { |
| 10283 total_size += 1 + 1; | 10328 total_size += 1 + 1; |
| 10284 } | 10329 } |
| 10285 | 10330 |
| 10286 } | 10331 } |
| 10287 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | 10332 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 10333 total_size += 2 * this->uninterpreted_option_size(); |
| 10334 for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
| 10335 total_size += |
| 10336 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 10337 this->uninterpreted_option(i)); |
| 10338 } |
| 10339 |
| 10340 total_size += _extensions_.ByteSize(); |
| 10341 |
| 10342 if (_internal_metadata_.have_unknown_fields()) { |
| 10343 total_size += |
| 10344 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 10345 unknown_fields()); |
| 10346 } |
| 10288 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 10347 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 10289 _cached_size_ = cached_size; | 10348 _cached_size_ = total_size; |
| 10290 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 10349 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 10291 return total_size; | 10350 return total_size; |
| 10292 } | 10351 } |
| 10293 | 10352 |
| 10294 void FieldOptions::MergeFrom(const ::google::protobuf::Message& from) { | 10353 void FieldOptions::MergeFrom(const ::google::protobuf::Message& from) { |
| 10295 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FieldOp
tions) | 10354 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FieldOp
tions) |
| 10296 GOOGLE_DCHECK_NE(&from, this); | 10355 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 10297 const FieldOptions* source = | 10356 const FieldOptions* source = |
| 10298 ::google::protobuf::internal::DynamicCastToGenerated<const FieldOptions>( | 10357 ::google::protobuf::internal::DynamicCastToGenerated<const FieldOptions>( |
| 10299 &from); | 10358 &from); |
| 10300 if (source == NULL) { | 10359 if (source == NULL) { |
| 10301 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.F
ieldOptions) | 10360 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.F
ieldOptions) |
| 10302 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 10361 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 10303 } else { | 10362 } else { |
| 10304 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.FieldOptions) | 10363 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.FieldOptions) |
| 10305 MergeFrom(*source); | 10364 MergeFrom(*source); |
| 10306 } | 10365 } |
| 10307 } | 10366 } |
| 10308 | 10367 |
| 10309 void FieldOptions::MergeFrom(const FieldOptions& from) { | 10368 void FieldOptions::MergeFrom(const FieldOptions& from) { |
| 10310 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Fiel
dOptions) | 10369 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Fiel
dOptions) |
| 10311 GOOGLE_DCHECK_NE(&from, this); | 10370 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 10312 _extensions_.MergeFrom(from._extensions_); | |
| 10313 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 10314 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); | 10371 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); |
| 10315 if (from._has_bits_[0 / 32] & 63u) { | 10372 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 10316 if (from.has_ctype()) { | 10373 if (from.has_ctype()) { |
| 10317 set_ctype(from.ctype()); | 10374 set_ctype(from.ctype()); |
| 10318 } | 10375 } |
| 10376 if (from.has_packed()) { |
| 10377 set_packed(from.packed()); |
| 10378 } |
| 10319 if (from.has_jstype()) { | 10379 if (from.has_jstype()) { |
| 10320 set_jstype(from.jstype()); | 10380 set_jstype(from.jstype()); |
| 10321 } | 10381 } |
| 10322 if (from.has_packed()) { | |
| 10323 set_packed(from.packed()); | |
| 10324 } | |
| 10325 if (from.has_lazy()) { | 10382 if (from.has_lazy()) { |
| 10326 set_lazy(from.lazy()); | 10383 set_lazy(from.lazy()); |
| 10327 } | 10384 } |
| 10328 if (from.has_deprecated()) { | 10385 if (from.has_deprecated()) { |
| 10329 set_deprecated(from.deprecated()); | 10386 set_deprecated(from.deprecated()); |
| 10330 } | 10387 } |
| 10331 if (from.has_weak()) { | 10388 if (from.has_weak()) { |
| 10332 set_weak(from.weak()); | 10389 set_weak(from.weak()); |
| 10333 } | 10390 } |
| 10334 } | 10391 } |
| 10392 _extensions_.MergeFrom(from._extensions_); |
| 10393 if (from._internal_metadata_.have_unknown_fields()) { |
| 10394 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 10395 } |
| 10335 } | 10396 } |
| 10336 | 10397 |
| 10337 void FieldOptions::CopyFrom(const ::google::protobuf::Message& from) { | 10398 void FieldOptions::CopyFrom(const ::google::protobuf::Message& from) { |
| 10338 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FieldOpt
ions) | 10399 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FieldOpt
ions) |
| 10339 if (&from == this) return; | 10400 if (&from == this) return; |
| 10340 Clear(); | 10401 Clear(); |
| 10341 MergeFrom(from); | 10402 MergeFrom(from); |
| 10342 } | 10403 } |
| 10343 | 10404 |
| 10344 void FieldOptions::CopyFrom(const FieldOptions& from) { | 10405 void FieldOptions::CopyFrom(const FieldOptions& from) { |
| 10345 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Field
Options) | 10406 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Field
Options) |
| 10346 if (&from == this) return; | 10407 if (&from == this) return; |
| 10347 Clear(); | 10408 Clear(); |
| 10348 MergeFrom(from); | 10409 MergeFrom(from); |
| 10349 } | 10410 } |
| 10350 | 10411 |
| 10351 bool FieldOptions::IsInitialized() const { | 10412 bool FieldOptions::IsInitialized() const { |
| 10352 if (!_extensions_.IsInitialized()) { | |
| 10353 return false; | |
| 10354 } | |
| 10355 | 10413 |
| 10356 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio
n())) return false; | 10414 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio
n())) return false; |
| 10357 return true; | 10415 |
| 10416 if (!_extensions_.IsInitialized()) return false; return true; |
| 10358 } | 10417 } |
| 10359 | 10418 |
| 10360 void FieldOptions::Swap(FieldOptions* other) { | 10419 void FieldOptions::Swap(FieldOptions* other) { |
| 10361 if (other == this) return; | 10420 if (other == this) return; |
| 10362 InternalSwap(other); | 10421 InternalSwap(other); |
| 10363 } | 10422 } |
| 10364 void FieldOptions::InternalSwap(FieldOptions* other) { | 10423 void FieldOptions::InternalSwap(FieldOptions* other) { |
| 10365 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); | |
| 10366 std::swap(ctype_, other->ctype_); | 10424 std::swap(ctype_, other->ctype_); |
| 10425 std::swap(packed_, other->packed_); |
| 10367 std::swap(jstype_, other->jstype_); | 10426 std::swap(jstype_, other->jstype_); |
| 10368 std::swap(packed_, other->packed_); | |
| 10369 std::swap(lazy_, other->lazy_); | 10427 std::swap(lazy_, other->lazy_); |
| 10370 std::swap(deprecated_, other->deprecated_); | 10428 std::swap(deprecated_, other->deprecated_); |
| 10371 std::swap(weak_, other->weak_); | 10429 std::swap(weak_, other->weak_); |
| 10430 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); |
| 10372 std::swap(_has_bits_[0], other->_has_bits_[0]); | 10431 std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 10373 _internal_metadata_.Swap(&other->_internal_metadata_); | 10432 _internal_metadata_.Swap(&other->_internal_metadata_); |
| 10374 std::swap(_cached_size_, other->_cached_size_); | 10433 std::swap(_cached_size_, other->_cached_size_); |
| 10375 _extensions_.Swap(&other->_extensions_); | 10434 _extensions_.Swap(&other->_extensions_); |
| 10376 } | 10435 } |
| 10377 | 10436 |
| 10378 ::google::protobuf::Metadata FieldOptions::GetMetadata() const { | 10437 ::google::protobuf::Metadata FieldOptions::GetMetadata() const { |
| 10379 protobuf_AssignDescriptorsOnce(); | 10438 protobuf_AssignDescriptorsOnce(); |
| 10380 return file_level_metadata[13]; | 10439 ::google::protobuf::Metadata metadata; |
| 10440 metadata.descriptor = FieldOptions_descriptor_; |
| 10441 metadata.reflection = FieldOptions_reflection_; |
| 10442 return metadata; |
| 10381 } | 10443 } |
| 10382 | 10444 |
| 10383 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 10445 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 10384 // FieldOptions | 10446 // FieldOptions |
| 10385 | 10447 |
| 10386 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; | 10448 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; |
| 10387 bool FieldOptions::has_ctype() const { | 10449 bool FieldOptions::has_ctype() const { |
| 10388 return (_has_bits_[0] & 0x00000001u) != 0; | 10450 return (_has_bits_[0] & 0x00000001u) != 0; |
| 10389 } | 10451 } |
| 10390 void FieldOptions::set_has_ctype() { | 10452 void FieldOptions::set_has_ctype() { |
| 10391 _has_bits_[0] |= 0x00000001u; | 10453 _has_bits_[0] |= 0x00000001u; |
| 10392 } | 10454 } |
| 10393 void FieldOptions::clear_has_ctype() { | 10455 void FieldOptions::clear_has_ctype() { |
| 10394 _has_bits_[0] &= ~0x00000001u; | 10456 _has_bits_[0] &= ~0x00000001u; |
| 10395 } | 10457 } |
| 10396 void FieldOptions::clear_ctype() { | 10458 void FieldOptions::clear_ctype() { |
| 10397 ctype_ = 0; | 10459 ctype_ = 0; |
| 10398 clear_has_ctype(); | 10460 clear_has_ctype(); |
| 10399 } | 10461 } |
| 10400 ::google::protobuf::FieldOptions_CType FieldOptions::ctype() const { | 10462 ::google::protobuf::FieldOptions_CType FieldOptions::ctype() const { |
| 10401 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.ctype) | 10463 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.ctype) |
| 10402 return static_cast< ::google::protobuf::FieldOptions_CType >(ctype_); | 10464 return static_cast< ::google::protobuf::FieldOptions_CType >(ctype_); |
| 10403 } | 10465 } |
| 10404 void FieldOptions::set_ctype(::google::protobuf::FieldOptions_CType value) { | 10466 void FieldOptions::set_ctype(::google::protobuf::FieldOptions_CType value) { |
| 10405 assert(::google::protobuf::FieldOptions_CType_IsValid(value)); | 10467 assert(::google::protobuf::FieldOptions_CType_IsValid(value)); |
| 10406 set_has_ctype(); | 10468 set_has_ctype(); |
| 10407 ctype_ = value; | 10469 ctype_ = value; |
| 10408 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.ctype) | 10470 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.ctype) |
| 10409 } | 10471 } |
| 10410 | 10472 |
| 10411 // optional bool packed = 2; | 10473 // optional bool packed = 2; |
| 10412 bool FieldOptions::has_packed() const { | 10474 bool FieldOptions::has_packed() const { |
| 10413 return (_has_bits_[0] & 0x00000004u) != 0; | 10475 return (_has_bits_[0] & 0x00000002u) != 0; |
| 10414 } | 10476 } |
| 10415 void FieldOptions::set_has_packed() { | 10477 void FieldOptions::set_has_packed() { |
| 10416 _has_bits_[0] |= 0x00000004u; | 10478 _has_bits_[0] |= 0x00000002u; |
| 10417 } | 10479 } |
| 10418 void FieldOptions::clear_has_packed() { | 10480 void FieldOptions::clear_has_packed() { |
| 10419 _has_bits_[0] &= ~0x00000004u; | 10481 _has_bits_[0] &= ~0x00000002u; |
| 10420 } | 10482 } |
| 10421 void FieldOptions::clear_packed() { | 10483 void FieldOptions::clear_packed() { |
| 10422 packed_ = false; | 10484 packed_ = false; |
| 10423 clear_has_packed(); | 10485 clear_has_packed(); |
| 10424 } | 10486 } |
| 10425 bool FieldOptions::packed() const { | 10487 bool FieldOptions::packed() const { |
| 10426 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.packed) | 10488 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.packed) |
| 10427 return packed_; | 10489 return packed_; |
| 10428 } | 10490 } |
| 10429 void FieldOptions::set_packed(bool value) { | 10491 void FieldOptions::set_packed(bool value) { |
| 10430 set_has_packed(); | 10492 set_has_packed(); |
| 10431 packed_ = value; | 10493 packed_ = value; |
| 10432 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.packed) | 10494 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.packed) |
| 10433 } | 10495 } |
| 10434 | 10496 |
| 10435 // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL
]; | 10497 // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL
]; |
| 10436 bool FieldOptions::has_jstype() const { | 10498 bool FieldOptions::has_jstype() const { |
| 10437 return (_has_bits_[0] & 0x00000002u) != 0; | 10499 return (_has_bits_[0] & 0x00000004u) != 0; |
| 10438 } | 10500 } |
| 10439 void FieldOptions::set_has_jstype() { | 10501 void FieldOptions::set_has_jstype() { |
| 10440 _has_bits_[0] |= 0x00000002u; | 10502 _has_bits_[0] |= 0x00000004u; |
| 10441 } | 10503 } |
| 10442 void FieldOptions::clear_has_jstype() { | 10504 void FieldOptions::clear_has_jstype() { |
| 10443 _has_bits_[0] &= ~0x00000002u; | 10505 _has_bits_[0] &= ~0x00000004u; |
| 10444 } | 10506 } |
| 10445 void FieldOptions::clear_jstype() { | 10507 void FieldOptions::clear_jstype() { |
| 10446 jstype_ = 0; | 10508 jstype_ = 0; |
| 10447 clear_has_jstype(); | 10509 clear_has_jstype(); |
| 10448 } | 10510 } |
| 10449 ::google::protobuf::FieldOptions_JSType FieldOptions::jstype() const { | 10511 ::google::protobuf::FieldOptions_JSType FieldOptions::jstype() const { |
| 10450 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.jstype) | 10512 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.jstype) |
| 10451 return static_cast< ::google::protobuf::FieldOptions_JSType >(jstype_); | 10513 return static_cast< ::google::protobuf::FieldOptions_JSType >(jstype_); |
| 10452 } | 10514 } |
| 10453 void FieldOptions::set_jstype(::google::protobuf::FieldOptions_JSType value) { | 10515 void FieldOptions::set_jstype(::google::protobuf::FieldOptions_JSType value) { |
| 10454 assert(::google::protobuf::FieldOptions_JSType_IsValid(value)); | 10516 assert(::google::protobuf::FieldOptions_JSType_IsValid(value)); |
| 10455 set_has_jstype(); | 10517 set_has_jstype(); |
| 10456 jstype_ = value; | 10518 jstype_ = value; |
| 10457 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.jstype) | 10519 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.jstype) |
| 10458 } | 10520 } |
| 10459 | 10521 |
| 10460 // optional bool lazy = 5 [default = false]; | 10522 // optional bool lazy = 5 [default = false]; |
| 10461 bool FieldOptions::has_lazy() const { | 10523 bool FieldOptions::has_lazy() const { |
| 10462 return (_has_bits_[0] & 0x00000008u) != 0; | 10524 return (_has_bits_[0] & 0x00000008u) != 0; |
| 10463 } | 10525 } |
| 10464 void FieldOptions::set_has_lazy() { | 10526 void FieldOptions::set_has_lazy() { |
| 10465 _has_bits_[0] |= 0x00000008u; | 10527 _has_bits_[0] |= 0x00000008u; |
| 10466 } | 10528 } |
| 10467 void FieldOptions::clear_has_lazy() { | 10529 void FieldOptions::clear_has_lazy() { |
| 10468 _has_bits_[0] &= ~0x00000008u; | 10530 _has_bits_[0] &= ~0x00000008u; |
| 10469 } | 10531 } |
| 10470 void FieldOptions::clear_lazy() { | 10532 void FieldOptions::clear_lazy() { |
| 10471 lazy_ = false; | 10533 lazy_ = false; |
| 10472 clear_has_lazy(); | 10534 clear_has_lazy(); |
| 10473 } | 10535 } |
| 10474 bool FieldOptions::lazy() const { | 10536 bool FieldOptions::lazy() const { |
| 10475 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.lazy) | 10537 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.lazy) |
| 10476 return lazy_; | 10538 return lazy_; |
| 10477 } | 10539 } |
| 10478 void FieldOptions::set_lazy(bool value) { | 10540 void FieldOptions::set_lazy(bool value) { |
| 10479 set_has_lazy(); | 10541 set_has_lazy(); |
| 10480 lazy_ = value; | 10542 lazy_ = value; |
| 10481 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.lazy) | 10543 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.lazy) |
| 10482 } | 10544 } |
| 10483 | 10545 |
| 10484 // optional bool deprecated = 3 [default = false]; | 10546 // optional bool deprecated = 3 [default = false]; |
| 10485 bool FieldOptions::has_deprecated() const { | 10547 bool FieldOptions::has_deprecated() const { |
| 10486 return (_has_bits_[0] & 0x00000010u) != 0; | 10548 return (_has_bits_[0] & 0x00000010u) != 0; |
| 10487 } | 10549 } |
| 10488 void FieldOptions::set_has_deprecated() { | 10550 void FieldOptions::set_has_deprecated() { |
| 10489 _has_bits_[0] |= 0x00000010u; | 10551 _has_bits_[0] |= 0x00000010u; |
| 10490 } | 10552 } |
| 10491 void FieldOptions::clear_has_deprecated() { | 10553 void FieldOptions::clear_has_deprecated() { |
| 10492 _has_bits_[0] &= ~0x00000010u; | 10554 _has_bits_[0] &= ~0x00000010u; |
| 10493 } | 10555 } |
| 10494 void FieldOptions::clear_deprecated() { | 10556 void FieldOptions::clear_deprecated() { |
| 10495 deprecated_ = false; | 10557 deprecated_ = false; |
| 10496 clear_has_deprecated(); | 10558 clear_has_deprecated(); |
| 10497 } | 10559 } |
| 10498 bool FieldOptions::deprecated() const { | 10560 bool FieldOptions::deprecated() const { |
| 10499 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.deprecated) | 10561 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.deprecated) |
| 10500 return deprecated_; | 10562 return deprecated_; |
| 10501 } | 10563 } |
| 10502 void FieldOptions::set_deprecated(bool value) { | 10564 void FieldOptions::set_deprecated(bool value) { |
| 10503 set_has_deprecated(); | 10565 set_has_deprecated(); |
| 10504 deprecated_ = value; | 10566 deprecated_ = value; |
| 10505 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.deprecated) | 10567 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.deprecated) |
| 10506 } | 10568 } |
| 10507 | 10569 |
| 10508 // optional bool weak = 10 [default = false]; | 10570 // optional bool weak = 10 [default = false]; |
| 10509 bool FieldOptions::has_weak() const { | 10571 bool FieldOptions::has_weak() const { |
| 10510 return (_has_bits_[0] & 0x00000020u) != 0; | 10572 return (_has_bits_[0] & 0x00000020u) != 0; |
| 10511 } | 10573 } |
| 10512 void FieldOptions::set_has_weak() { | 10574 void FieldOptions::set_has_weak() { |
| 10513 _has_bits_[0] |= 0x00000020u; | 10575 _has_bits_[0] |= 0x00000020u; |
| 10514 } | 10576 } |
| 10515 void FieldOptions::clear_has_weak() { | 10577 void FieldOptions::clear_has_weak() { |
| 10516 _has_bits_[0] &= ~0x00000020u; | 10578 _has_bits_[0] &= ~0x00000020u; |
| 10517 } | 10579 } |
| 10518 void FieldOptions::clear_weak() { | 10580 void FieldOptions::clear_weak() { |
| 10519 weak_ = false; | 10581 weak_ = false; |
| 10520 clear_has_weak(); | 10582 clear_has_weak(); |
| 10521 } | 10583 } |
| 10522 bool FieldOptions::weak() const { | 10584 bool FieldOptions::weak() const { |
| 10523 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.weak) | 10585 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.weak) |
| 10524 return weak_; | 10586 return weak_; |
| 10525 } | 10587 } |
| 10526 void FieldOptions::set_weak(bool value) { | 10588 void FieldOptions::set_weak(bool value) { |
| 10527 set_has_weak(); | 10589 set_has_weak(); |
| 10528 weak_ = value; | 10590 weak_ = value; |
| 10529 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.weak) | 10591 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.weak) |
| 10530 } | 10592 } |
| 10531 | 10593 |
| 10532 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 10594 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 10533 int FieldOptions::uninterpreted_option_size() const { | 10595 int FieldOptions::uninterpreted_option_size() const { |
| 10534 return uninterpreted_option_.size(); | 10596 return uninterpreted_option_.size(); |
| 10535 } | 10597 } |
| 10536 void FieldOptions::clear_uninterpreted_option() { | 10598 void FieldOptions::clear_uninterpreted_option() { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 10557 FieldOptions::uninterpreted_option() const { | 10619 FieldOptions::uninterpreted_option() const { |
| 10558 // @@protoc_insertion_point(field_list:google.protobuf.FieldOptions.uninterpre
ted_option) | 10620 // @@protoc_insertion_point(field_list:google.protobuf.FieldOptions.uninterpre
ted_option) |
| 10559 return uninterpreted_option_; | 10621 return uninterpreted_option_; |
| 10560 } | 10622 } |
| 10561 | 10623 |
| 10562 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 10624 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 10563 | 10625 |
| 10564 // =================================================================== | 10626 // =================================================================== |
| 10565 | 10627 |
| 10566 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 10628 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 10567 const int OneofOptions::kUninterpretedOptionFieldNumber; | 10629 const int EnumOptions::kAllowAliasFieldNumber; |
| 10630 const int EnumOptions::kDeprecatedFieldNumber; |
| 10631 const int EnumOptions::kUninterpretedOptionFieldNumber; |
| 10568 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 10632 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 10569 | 10633 |
| 10570 OneofOptions::OneofOptions() | 10634 EnumOptions::EnumOptions() |
| 10571 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 10635 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 10572 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
| 10573 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
| 10574 } | |
| 10575 SharedCtor(); | 10636 SharedCtor(); |
| 10576 // @@protoc_insertion_point(constructor:google.protobuf.OneofOptions) | 10637 // @@protoc_insertion_point(constructor:google.protobuf.EnumOptions) |
| 10577 } | |
| 10578 OneofOptions::OneofOptions(const OneofOptions& from) | |
| 10579 : ::google::protobuf::Message(), | |
| 10580 _internal_metadata_(NULL), | |
| 10581 _has_bits_(from._has_bits_), | |
| 10582 _cached_size_(0), | |
| 10583 uninterpreted_option_(from.uninterpreted_option_) { | |
| 10584 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 10585 _extensions_.MergeFrom(from._extensions_); | |
| 10586 // @@protoc_insertion_point(copy_constructor:google.protobuf.OneofOptions) | |
| 10587 } | 10638 } |
| 10588 | 10639 |
| 10589 void OneofOptions::SharedCtor() { | 10640 void EnumOptions::InitAsDefaultInstance() { |
| 10590 _cached_size_ = 0; | |
| 10591 } | 10641 } |
| 10592 | 10642 |
| 10593 OneofOptions::~OneofOptions() { | 10643 EnumOptions::EnumOptions(const EnumOptions& from) |
| 10594 // @@protoc_insertion_point(destructor:google.protobuf.OneofOptions) | 10644 : ::google::protobuf::Message(), |
| 10645 _internal_metadata_(NULL) { |
| 10646 SharedCtor(); |
| 10647 MergeFrom(from); |
| 10648 // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumOptions) |
| 10649 } |
| 10650 |
| 10651 void EnumOptions::SharedCtor() { |
| 10652 _cached_size_ = 0; |
| 10653 allow_alias_ = false; |
| 10654 deprecated_ = false; |
| 10655 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 10656 } |
| 10657 |
| 10658 EnumOptions::~EnumOptions() { |
| 10659 // @@protoc_insertion_point(destructor:google.protobuf.EnumOptions) |
| 10595 SharedDtor(); | 10660 SharedDtor(); |
| 10596 } | 10661 } |
| 10597 | 10662 |
| 10598 void OneofOptions::SharedDtor() { | 10663 void EnumOptions::SharedDtor() { |
| 10664 if (this != default_instance_) { |
| 10665 } |
| 10599 } | 10666 } |
| 10600 | 10667 |
| 10601 void OneofOptions::SetCachedSize(int size) const { | 10668 void EnumOptions::SetCachedSize(int size) const { |
| 10602 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 10669 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 10603 _cached_size_ = size; | 10670 _cached_size_ = size; |
| 10604 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 10671 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 10605 } | 10672 } |
| 10606 const ::google::protobuf::Descriptor* OneofOptions::descriptor() { | 10673 const ::google::protobuf::Descriptor* EnumOptions::descriptor() { |
| 10607 protobuf_AssignDescriptorsOnce(); | 10674 protobuf_AssignDescriptorsOnce(); |
| 10608 return file_level_metadata[14].descriptor; | 10675 return EnumOptions_descriptor_; |
| 10609 } | 10676 } |
| 10610 | 10677 |
| 10611 const OneofOptions& OneofOptions::default_instance() { | 10678 const EnumOptions& EnumOptions::default_instance() { |
| 10612 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 10679 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
| 10613 return *internal_default_instance(); | 10680 return *default_instance_; |
| 10614 } | 10681 } |
| 10615 | 10682 |
| 10616 OneofOptions* OneofOptions::New(::google::protobuf::Arena* arena) const { | 10683 EnumOptions* EnumOptions::default_instance_ = NULL; |
| 10617 OneofOptions* n = new OneofOptions; | 10684 |
| 10685 EnumOptions* EnumOptions::New(::google::protobuf::Arena* arena) const { |
| 10686 EnumOptions* n = new EnumOptions; |
| 10618 if (arena != NULL) { | 10687 if (arena != NULL) { |
| 10619 arena->Own(n); | 10688 arena->Own(n); |
| 10620 } | 10689 } |
| 10621 return n; | 10690 return n; |
| 10622 } | 10691 } |
| 10623 | 10692 |
| 10624 void OneofOptions::Clear() { | 10693 void EnumOptions::Clear() { |
| 10625 // @@protoc_insertion_point(message_clear_start:google.protobuf.OneofOptions) | 10694 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumOptions) |
| 10626 _extensions_.Clear(); | 10695 _extensions_.Clear(); |
| 10696 #if defined(__clang__) |
| 10697 #define ZR_HELPER_(f) \ |
| 10698 _Pragma("clang diagnostic push") \ |
| 10699 _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ |
| 10700 __builtin_offsetof(EnumOptions, f) \ |
| 10701 _Pragma("clang diagnostic pop") |
| 10702 #else |
| 10703 #define ZR_HELPER_(f) reinterpret_cast<char*>(\ |
| 10704 &reinterpret_cast<EnumOptions*>(16)->f) |
| 10705 #endif |
| 10706 |
| 10707 #define ZR_(first, last) do {\ |
| 10708 ::memset(&first, 0,\ |
| 10709 ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ |
| 10710 } while (0) |
| 10711 |
| 10712 ZR_(allow_alias_, deprecated_); |
| 10713 |
| 10714 #undef ZR_HELPER_ |
| 10715 #undef ZR_ |
| 10716 |
| 10627 uninterpreted_option_.Clear(); | 10717 uninterpreted_option_.Clear(); |
| 10628 _has_bits_.Clear(); | 10718 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 10629 _internal_metadata_.Clear(); | 10719 if (_internal_metadata_.have_unknown_fields()) { |
| 10720 mutable_unknown_fields()->Clear(); |
| 10721 } |
| 10630 } | 10722 } |
| 10631 | 10723 |
| 10632 bool OneofOptions::MergePartialFromCodedStream( | 10724 bool EnumOptions::MergePartialFromCodedStream( |
| 10633 ::google::protobuf::io::CodedInputStream* input) { | 10725 ::google::protobuf::io::CodedInputStream* input) { |
| 10634 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 10726 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 10635 ::google::protobuf::uint32 tag; | 10727 ::google::protobuf::uint32 tag; |
| 10636 // @@protoc_insertion_point(parse_start:google.protobuf.OneofOptions) | 10728 // @@protoc_insertion_point(parse_start:google.protobuf.EnumOptions) |
| 10637 for (;;) { | 10729 for (;;) { |
| 10638 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(16383u); | 10730 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
16383); |
| 10639 tag = p.first; | 10731 tag = p.first; |
| 10640 if (!p.second) goto handle_unusual; | 10732 if (!p.second) goto handle_unusual; |
| 10641 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 10733 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
| 10734 // optional bool allow_alias = 2; |
| 10735 case 2: { |
| 10736 if (tag == 16) { |
| 10737 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 10738 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
| 10739 input, &allow_alias_))); |
| 10740 set_has_allow_alias(); |
| 10741 } else { |
| 10742 goto handle_unusual; |
| 10743 } |
| 10744 if (input->ExpectTag(24)) goto parse_deprecated; |
| 10745 break; |
| 10746 } |
| 10747 |
| 10748 // optional bool deprecated = 3 [default = false]; |
| 10749 case 3: { |
| 10750 if (tag == 24) { |
| 10751 parse_deprecated: |
| 10752 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 10753 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
| 10754 input, &deprecated_))); |
| 10755 set_has_deprecated(); |
| 10756 } else { |
| 10757 goto handle_unusual; |
| 10758 } |
| 10759 if (input->ExpectTag(7994)) goto parse_uninterpreted_option; |
| 10760 break; |
| 10761 } |
| 10762 |
| 10642 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99
9; | 10763 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99
9; |
| 10643 case 999: { | 10764 case 999: { |
| 10644 if (tag == 7994u) { | 10765 if (tag == 7994) { |
| 10766 parse_uninterpreted_option: |
| 10645 DO_(input->IncrementRecursionDepth()); | 10767 DO_(input->IncrementRecursionDepth()); |
| 10768 parse_loop_uninterpreted_option: |
| 10646 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 10769 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
| 10647 input, add_uninterpreted_option())); | 10770 input, add_uninterpreted_option())); |
| 10648 } else { | 10771 } else { |
| 10649 goto handle_unusual; | 10772 goto handle_unusual; |
| 10650 } | 10773 } |
| 10774 if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option; |
| 10651 input->UnsafeDecrementRecursionDepth(); | 10775 input->UnsafeDecrementRecursionDepth(); |
| 10776 if (input->ExpectAtEnd()) goto success; |
| 10652 break; | 10777 break; |
| 10653 } | 10778 } |
| 10654 | 10779 |
| 10655 default: { | 10780 default: { |
| 10656 handle_unusual: | 10781 handle_unusual: |
| 10657 if (tag == 0 || | 10782 if (tag == 0 || |
| 10658 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 10783 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 10659 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 10784 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 10660 goto success; | 10785 goto success; |
| 10661 } | 10786 } |
| 10662 if ((8000u <= tag)) { | 10787 if ((8000u <= tag)) { |
| 10663 DO_(_extensions_.ParseField(tag, input, internal_default_instance(), | 10788 DO_(_extensions_.ParseField(tag, input, default_instance_, |
| 10664 mutable_unknown_fields())); | 10789 mutable_unknown_fields())); |
| 10665 continue; | 10790 continue; |
| 10666 } | 10791 } |
| 10667 DO_(::google::protobuf::internal::WireFormat::SkipField( | 10792 DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 10668 input, tag, mutable_unknown_fields())); | 10793 input, tag, mutable_unknown_fields())); |
| 10669 break; | 10794 break; |
| 10670 } | 10795 } |
| 10671 } | 10796 } |
| 10672 } | 10797 } |
| 10673 success: | 10798 success: |
| 10674 // @@protoc_insertion_point(parse_success:google.protobuf.OneofOptions) | 10799 // @@protoc_insertion_point(parse_success:google.protobuf.EnumOptions) |
| 10675 return true; | 10800 return true; |
| 10676 failure: | 10801 failure: |
| 10677 // @@protoc_insertion_point(parse_failure:google.protobuf.OneofOptions) | 10802 // @@protoc_insertion_point(parse_failure:google.protobuf.EnumOptions) |
| 10678 return false; | 10803 return false; |
| 10679 #undef DO_ | 10804 #undef DO_ |
| 10680 } | 10805 } |
| 10681 | 10806 |
| 10682 void OneofOptions::SerializeWithCachedSizes( | 10807 void EnumOptions::SerializeWithCachedSizes( |
| 10683 ::google::protobuf::io::CodedOutputStream* output) const { | 10808 ::google::protobuf::io::CodedOutputStream* output) const { |
| 10684 // @@protoc_insertion_point(serialize_start:google.protobuf.OneofOptions) | 10809 // @@protoc_insertion_point(serialize_start:google.protobuf.EnumOptions) |
| 10810 // optional bool allow_alias = 2; |
| 10811 if (has_allow_alias()) { |
| 10812 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->allow_alias
(), output); |
| 10813 } |
| 10814 |
| 10815 // optional bool deprecated = 3 [default = false]; |
| 10816 if (has_deprecated()) { |
| 10817 ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->deprecated(
), output); |
| 10818 } |
| 10819 |
| 10685 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 10820 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 10686 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { | 10821 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 10687 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 10822 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 10688 999, this->uninterpreted_option(i), output); | 10823 999, this->uninterpreted_option(i), output); |
| 10689 } | 10824 } |
| 10690 | 10825 |
| 10691 // Extension range [1000, 536870912) | 10826 // Extension range [1000, 536870912) |
| 10692 _extensions_.SerializeWithCachedSizes( | 10827 _extensions_.SerializeWithCachedSizes( |
| 10693 1000, 536870912, output); | 10828 1000, 536870912, output); |
| 10694 | 10829 |
| 10695 if (_internal_metadata_.have_unknown_fields()) { | 10830 if (_internal_metadata_.have_unknown_fields()) { |
| 10696 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 10831 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 10697 unknown_fields(), output); | 10832 unknown_fields(), output); |
| 10698 } | 10833 } |
| 10699 // @@protoc_insertion_point(serialize_end:google.protobuf.OneofOptions) | 10834 // @@protoc_insertion_point(serialize_end:google.protobuf.EnumOptions) |
| 10700 } | 10835 } |
| 10701 | 10836 |
| 10702 ::google::protobuf::uint8* OneofOptions::InternalSerializeWithCachedSizesToArray
( | 10837 ::google::protobuf::uint8* EnumOptions::SerializeWithCachedSizesToArray( |
| 10703 bool deterministic, ::google::protobuf::uint8* target) const { | 10838 ::google::protobuf::uint8* target) const { |
| 10704 (void)deterministic; // Unused | 10839 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumOptio
ns) |
| 10705 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.OneofOpti
ons) | 10840 // optional bool allow_alias = 2; |
| 10841 if (has_allow_alias()) { |
| 10842 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, t
his->allow_alias(), target); |
| 10843 } |
| 10844 |
| 10845 // optional bool deprecated = 3 [default = false]; |
| 10846 if (has_deprecated()) { |
| 10847 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, t
his->deprecated(), target); |
| 10848 } |
| 10849 |
| 10706 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 10850 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 10707 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { | 10851 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 10708 target = ::google::protobuf::internal::WireFormatLite:: | 10852 target = ::google::protobuf::internal::WireFormatLite:: |
| 10709 InternalWriteMessageNoVirtualToArray( | 10853 WriteMessageNoVirtualToArray( |
| 10710 999, this->uninterpreted_option(i), false, target); | 10854 999, this->uninterpreted_option(i), target); |
| 10711 } | 10855 } |
| 10712 | 10856 |
| 10713 // Extension range [1000, 536870912) | 10857 // Extension range [1000, 536870912) |
| 10714 target = _extensions_.InternalSerializeWithCachedSizesToArray( | 10858 target = _extensions_.SerializeWithCachedSizesToArray( |
| 10715 1000, 536870912, false, target); | 10859 1000, 536870912, target); |
| 10716 | 10860 |
| 10717 if (_internal_metadata_.have_unknown_fields()) { | 10861 if (_internal_metadata_.have_unknown_fields()) { |
| 10718 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 10862 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
| 10719 unknown_fields(), target); | 10863 unknown_fields(), target); |
| 10720 } | 10864 } |
| 10721 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.OneofOption
s) | 10865 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumOptions
) |
| 10722 return target; | 10866 return target; |
| 10723 } | 10867 } |
| 10724 | 10868 |
| 10725 size_t OneofOptions::ByteSizeLong() const { | 10869 int EnumOptions::ByteSize() const { |
| 10726 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.OneofOptions
) | 10870 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumOptions) |
| 10727 size_t total_size = 0; | 10871 int total_size = 0; |
| 10872 |
| 10873 if (_has_bits_[0 / 32] & 3u) { |
| 10874 // optional bool allow_alias = 2; |
| 10875 if (has_allow_alias()) { |
| 10876 total_size += 1 + 1; |
| 10877 } |
| 10878 |
| 10879 // optional bool deprecated = 3 [default = false]; |
| 10880 if (has_deprecated()) { |
| 10881 total_size += 1 + 1; |
| 10882 } |
| 10883 |
| 10884 } |
| 10885 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 10886 total_size += 2 * this->uninterpreted_option_size(); |
| 10887 for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
| 10888 total_size += |
| 10889 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 10890 this->uninterpreted_option(i)); |
| 10891 } |
| 10728 | 10892 |
| 10729 total_size += _extensions_.ByteSize(); | 10893 total_size += _extensions_.ByteSize(); |
| 10730 | 10894 |
| 10731 if (_internal_metadata_.have_unknown_fields()) { | 10895 if (_internal_metadata_.have_unknown_fields()) { |
| 10732 total_size += | 10896 total_size += |
| 10733 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | 10897 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 10734 unknown_fields()); | 10898 unknown_fields()); |
| 10735 } | 10899 } |
| 10736 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | |
| 10737 { | |
| 10738 unsigned int count = this->uninterpreted_option_size(); | |
| 10739 total_size += 2UL * count; | |
| 10740 for (unsigned int i = 0; i < count; i++) { | |
| 10741 total_size += | |
| 10742 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
| 10743 this->uninterpreted_option(i)); | |
| 10744 } | |
| 10745 } | |
| 10746 | |
| 10747 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | |
| 10748 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 10900 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 10749 _cached_size_ = cached_size; | 10901 _cached_size_ = total_size; |
| 10750 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 10902 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 10751 return total_size; | 10903 return total_size; |
| 10752 } | 10904 } |
| 10753 | 10905 |
| 10754 void OneofOptions::MergeFrom(const ::google::protobuf::Message& from) { | 10906 void EnumOptions::MergeFrom(const ::google::protobuf::Message& from) { |
| 10755 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.OneofOp
tions) | 10907 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumOpt
ions) |
| 10756 GOOGLE_DCHECK_NE(&from, this); | 10908 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 10757 const OneofOptions* source = | 10909 const EnumOptions* source = |
| 10758 ::google::protobuf::internal::DynamicCastToGenerated<const OneofOptions>( | 10910 ::google::protobuf::internal::DynamicCastToGenerated<const EnumOptions>( |
| 10759 &from); | 10911 &from); |
| 10760 if (source == NULL) { | 10912 if (source == NULL) { |
| 10761 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.O
neofOptions) | 10913 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.E
numOptions) |
| 10762 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 10914 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 10763 } else { | 10915 } else { |
| 10764 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.OneofOptions) | 10916 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.EnumOptions) |
| 10765 MergeFrom(*source); | 10917 MergeFrom(*source); |
| 10766 } | 10918 } |
| 10767 } | 10919 } |
| 10768 | 10920 |
| 10769 void OneofOptions::MergeFrom(const OneofOptions& from) { | 10921 void EnumOptions::MergeFrom(const EnumOptions& from) { |
| 10770 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Oneo
fOptions) | 10922 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Enum
Options) |
| 10771 GOOGLE_DCHECK_NE(&from, this); | 10923 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 10924 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); |
| 10925 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 10926 if (from.has_allow_alias()) { |
| 10927 set_allow_alias(from.allow_alias()); |
| 10928 } |
| 10929 if (from.has_deprecated()) { |
| 10930 set_deprecated(from.deprecated()); |
| 10931 } |
| 10932 } |
| 10772 _extensions_.MergeFrom(from._extensions_); | 10933 _extensions_.MergeFrom(from._extensions_); |
| 10773 _internal_metadata_.MergeFrom(from._internal_metadata_); | 10934 if (from._internal_metadata_.have_unknown_fields()) { |
| 10774 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); | 10935 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 10936 } |
| 10775 } | 10937 } |
| 10776 | 10938 |
| 10777 void OneofOptions::CopyFrom(const ::google::protobuf::Message& from) { | 10939 void EnumOptions::CopyFrom(const ::google::protobuf::Message& from) { |
| 10778 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.OneofOpt
ions) | 10940 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumOpti
ons) |
| 10779 if (&from == this) return; | 10941 if (&from == this) return; |
| 10780 Clear(); | 10942 Clear(); |
| 10781 MergeFrom(from); | 10943 MergeFrom(from); |
| 10782 } | 10944 } |
| 10783 | 10945 |
| 10784 void OneofOptions::CopyFrom(const OneofOptions& from) { | 10946 void EnumOptions::CopyFrom(const EnumOptions& from) { |
| 10785 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Oneof
Options) | 10947 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumO
ptions) |
| 10786 if (&from == this) return; | 10948 if (&from == this) return; |
| 10787 Clear(); | 10949 Clear(); |
| 10788 MergeFrom(from); | 10950 MergeFrom(from); |
| 10789 } | 10951 } |
| 10790 | 10952 |
| 10791 bool OneofOptions::IsInitialized() const { | 10953 bool EnumOptions::IsInitialized() const { |
| 10792 if (!_extensions_.IsInitialized()) { | |
| 10793 return false; | |
| 10794 } | |
| 10795 | 10954 |
| 10796 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio
n())) return false; | 10955 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio
n())) return false; |
| 10797 return true; | 10956 |
| 10957 if (!_extensions_.IsInitialized()) return false; return true; |
| 10798 } | 10958 } |
| 10799 | 10959 |
| 10800 void OneofOptions::Swap(OneofOptions* other) { | 10960 void EnumOptions::Swap(EnumOptions* other) { |
| 10801 if (other == this) return; | 10961 if (other == this) return; |
| 10802 InternalSwap(other); | 10962 InternalSwap(other); |
| 10803 } | 10963 } |
| 10804 void OneofOptions::InternalSwap(OneofOptions* other) { | 10964 void EnumOptions::InternalSwap(EnumOptions* other) { |
| 10965 std::swap(allow_alias_, other->allow_alias_); |
| 10966 std::swap(deprecated_, other->deprecated_); |
| 10805 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); | 10967 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); |
| 10806 std::swap(_has_bits_[0], other->_has_bits_[0]); | 10968 std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 10807 _internal_metadata_.Swap(&other->_internal_metadata_); | 10969 _internal_metadata_.Swap(&other->_internal_metadata_); |
| 10808 std::swap(_cached_size_, other->_cached_size_); | 10970 std::swap(_cached_size_, other->_cached_size_); |
| 10809 _extensions_.Swap(&other->_extensions_); | 10971 _extensions_.Swap(&other->_extensions_); |
| 10810 } | 10972 } |
| 10811 | 10973 |
| 10812 ::google::protobuf::Metadata OneofOptions::GetMetadata() const { | 10974 ::google::protobuf::Metadata EnumOptions::GetMetadata() const { |
| 10813 protobuf_AssignDescriptorsOnce(); | 10975 protobuf_AssignDescriptorsOnce(); |
| 10814 return file_level_metadata[14]; | 10976 ::google::protobuf::Metadata metadata; |
| 10977 metadata.descriptor = EnumOptions_descriptor_; |
| 10978 metadata.reflection = EnumOptions_reflection_; |
| 10979 return metadata; |
| 10815 } | 10980 } |
| 10816 | 10981 |
| 10817 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 10982 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 10818 // OneofOptions | 10983 // EnumOptions |
| 10984 |
| 10985 // optional bool allow_alias = 2; |
| 10986 bool EnumOptions::has_allow_alias() const { |
| 10987 return (_has_bits_[0] & 0x00000001u) != 0; |
| 10988 } |
| 10989 void EnumOptions::set_has_allow_alias() { |
| 10990 _has_bits_[0] |= 0x00000001u; |
| 10991 } |
| 10992 void EnumOptions::clear_has_allow_alias() { |
| 10993 _has_bits_[0] &= ~0x00000001u; |
| 10994 } |
| 10995 void EnumOptions::clear_allow_alias() { |
| 10996 allow_alias_ = false; |
| 10997 clear_has_allow_alias(); |
| 10998 } |
| 10999 bool EnumOptions::allow_alias() const { |
| 11000 // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.allow_alias) |
| 11001 return allow_alias_; |
| 11002 } |
| 11003 void EnumOptions::set_allow_alias(bool value) { |
| 11004 set_has_allow_alias(); |
| 11005 allow_alias_ = value; |
| 11006 // @@protoc_insertion_point(field_set:google.protobuf.EnumOptions.allow_alias) |
| 11007 } |
| 11008 |
| 11009 // optional bool deprecated = 3 [default = false]; |
| 11010 bool EnumOptions::has_deprecated() const { |
| 11011 return (_has_bits_[0] & 0x00000002u) != 0; |
| 11012 } |
| 11013 void EnumOptions::set_has_deprecated() { |
| 11014 _has_bits_[0] |= 0x00000002u; |
| 11015 } |
| 11016 void EnumOptions::clear_has_deprecated() { |
| 11017 _has_bits_[0] &= ~0x00000002u; |
| 11018 } |
| 11019 void EnumOptions::clear_deprecated() { |
| 11020 deprecated_ = false; |
| 11021 clear_has_deprecated(); |
| 11022 } |
| 11023 bool EnumOptions::deprecated() const { |
| 11024 // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.deprecated) |
| 11025 return deprecated_; |
| 11026 } |
| 11027 void EnumOptions::set_deprecated(bool value) { |
| 11028 set_has_deprecated(); |
| 11029 deprecated_ = value; |
| 11030 // @@protoc_insertion_point(field_set:google.protobuf.EnumOptions.deprecated) |
| 11031 } |
| 10819 | 11032 |
| 10820 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 11033 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 10821 int OneofOptions::uninterpreted_option_size() const { | 11034 int EnumOptions::uninterpreted_option_size() const { |
| 10822 return uninterpreted_option_.size(); | 11035 return uninterpreted_option_.size(); |
| 10823 } | 11036 } |
| 10824 void OneofOptions::clear_uninterpreted_option() { | 11037 void EnumOptions::clear_uninterpreted_option() { |
| 10825 uninterpreted_option_.Clear(); | 11038 uninterpreted_option_.Clear(); |
| 10826 } | 11039 } |
| 10827 const ::google::protobuf::UninterpretedOption& OneofOptions::uninterpreted_optio
n(int index) const { | 11040 const ::google::protobuf::UninterpretedOption& EnumOptions::uninterpreted_option
(int index) const { |
| 10828 // @@protoc_insertion_point(field_get:google.protobuf.OneofOptions.uninterpret
ed_option) | 11041 // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.uninterprete
d_option) |
| 10829 return uninterpreted_option_.Get(index); | 11042 return uninterpreted_option_.Get(index); |
| 10830 } | 11043 } |
| 10831 ::google::protobuf::UninterpretedOption* OneofOptions::mutable_uninterpreted_opt
ion(int index) { | 11044 ::google::protobuf::UninterpretedOption* EnumOptions::mutable_uninterpreted_opti
on(int index) { |
| 10832 // @@protoc_insertion_point(field_mutable:google.protobuf.OneofOptions.uninter
preted_option) | 11045 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumOptions.uninterp
reted_option) |
| 10833 return uninterpreted_option_.Mutable(index); | 11046 return uninterpreted_option_.Mutable(index); |
| 10834 } | 11047 } |
| 10835 ::google::protobuf::UninterpretedOption* OneofOptions::add_uninterpreted_option(
) { | 11048 ::google::protobuf::UninterpretedOption* EnumOptions::add_uninterpreted_option()
{ |
| 10836 // @@protoc_insertion_point(field_add:google.protobuf.OneofOptions.uninterpret
ed_option) | 11049 // @@protoc_insertion_point(field_add:google.protobuf.EnumOptions.uninterprete
d_option) |
| 10837 return uninterpreted_option_.Add(); | 11050 return uninterpreted_option_.Add(); |
| 10838 } | 11051 } |
| 10839 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* | 11052 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
| 10840 OneofOptions::mutable_uninterpreted_option() { | 11053 EnumOptions::mutable_uninterpreted_option() { |
| 10841 // @@protoc_insertion_point(field_mutable_list:google.protobuf.OneofOptions.un
interpreted_option) | 11054 // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumOptions.uni
nterpreted_option) |
| 10842 return &uninterpreted_option_; | 11055 return &uninterpreted_option_; |
| 10843 } | 11056 } |
| 10844 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt
ion >& | 11057 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt
ion >& |
| 10845 OneofOptions::uninterpreted_option() const { | 11058 EnumOptions::uninterpreted_option() const { |
| 10846 // @@protoc_insertion_point(field_list:google.protobuf.OneofOptions.uninterpre
ted_option) | 11059 // @@protoc_insertion_point(field_list:google.protobuf.EnumOptions.uninterpret
ed_option) |
| 10847 return uninterpreted_option_; | 11060 return uninterpreted_option_; |
| 10848 } | 11061 } |
| 10849 | 11062 |
| 10850 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 11063 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 10851 | 11064 |
| 10852 // =================================================================== | 11065 // =================================================================== |
| 10853 | 11066 |
| 10854 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 11067 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 10855 const int EnumOptions::kAllowAliasFieldNumber; | 11068 const int EnumValueOptions::kDeprecatedFieldNumber; |
| 10856 const int EnumOptions::kDeprecatedFieldNumber; | 11069 const int EnumValueOptions::kUninterpretedOptionFieldNumber; |
| 10857 const int EnumOptions::kUninterpretedOptionFieldNumber; | |
| 10858 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 11070 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 10859 | 11071 |
| 10860 EnumOptions::EnumOptions() | 11072 EnumValueOptions::EnumValueOptions() |
| 10861 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 11073 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 10862 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
| 10863 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
| 10864 } | |
| 10865 SharedCtor(); | 11074 SharedCtor(); |
| 10866 // @@protoc_insertion_point(constructor:google.protobuf.EnumOptions) | 11075 // @@protoc_insertion_point(constructor:google.protobuf.EnumValueOptions) |
| 10867 } | |
| 10868 EnumOptions::EnumOptions(const EnumOptions& from) | |
| 10869 : ::google::protobuf::Message(), | |
| 10870 _internal_metadata_(NULL), | |
| 10871 _has_bits_(from._has_bits_), | |
| 10872 _cached_size_(0), | |
| 10873 uninterpreted_option_(from.uninterpreted_option_) { | |
| 10874 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 10875 _extensions_.MergeFrom(from._extensions_); | |
| 10876 ::memcpy(&allow_alias_, &from.allow_alias_, | |
| 10877 reinterpret_cast<char*>(&deprecated_) - | |
| 10878 reinterpret_cast<char*>(&allow_alias_) + sizeof(deprecated_)); | |
| 10879 // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumOptions) | |
| 10880 } | 11076 } |
| 10881 | 11077 |
| 10882 void EnumOptions::SharedCtor() { | 11078 void EnumValueOptions::InitAsDefaultInstance() { |
| 10883 _cached_size_ = 0; | |
| 10884 ::memset(&allow_alias_, 0, reinterpret_cast<char*>(&deprecated_) - | |
| 10885 reinterpret_cast<char*>(&allow_alias_) + sizeof(deprecated_)); | |
| 10886 } | 11079 } |
| 10887 | 11080 |
| 10888 EnumOptions::~EnumOptions() { | 11081 EnumValueOptions::EnumValueOptions(const EnumValueOptions& from) |
| 10889 // @@protoc_insertion_point(destructor:google.protobuf.EnumOptions) | 11082 : ::google::protobuf::Message(), |
| 11083 _internal_metadata_(NULL) { |
| 11084 SharedCtor(); |
| 11085 MergeFrom(from); |
| 11086 // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValueOptions) |
| 11087 } |
| 11088 |
| 11089 void EnumValueOptions::SharedCtor() { |
| 11090 _cached_size_ = 0; |
| 11091 deprecated_ = false; |
| 11092 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 11093 } |
| 11094 |
| 11095 EnumValueOptions::~EnumValueOptions() { |
| 11096 // @@protoc_insertion_point(destructor:google.protobuf.EnumValueOptions) |
| 10890 SharedDtor(); | 11097 SharedDtor(); |
| 10891 } | 11098 } |
| 10892 | 11099 |
| 10893 void EnumOptions::SharedDtor() { | 11100 void EnumValueOptions::SharedDtor() { |
| 11101 if (this != default_instance_) { |
| 11102 } |
| 10894 } | 11103 } |
| 10895 | 11104 |
| 10896 void EnumOptions::SetCachedSize(int size) const { | 11105 void EnumValueOptions::SetCachedSize(int size) const { |
| 10897 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 11106 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 10898 _cached_size_ = size; | 11107 _cached_size_ = size; |
| 10899 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 11108 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 10900 } | 11109 } |
| 10901 const ::google::protobuf::Descriptor* EnumOptions::descriptor() { | 11110 const ::google::protobuf::Descriptor* EnumValueOptions::descriptor() { |
| 10902 protobuf_AssignDescriptorsOnce(); | 11111 protobuf_AssignDescriptorsOnce(); |
| 10903 return file_level_metadata[15].descriptor; | 11112 return EnumValueOptions_descriptor_; |
| 10904 } | 11113 } |
| 10905 | 11114 |
| 10906 const EnumOptions& EnumOptions::default_instance() { | 11115 const EnumValueOptions& EnumValueOptions::default_instance() { |
| 10907 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 11116 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
| 10908 return *internal_default_instance(); | 11117 return *default_instance_; |
| 10909 } | 11118 } |
| 10910 | 11119 |
| 10911 EnumOptions* EnumOptions::New(::google::protobuf::Arena* arena) const { | 11120 EnumValueOptions* EnumValueOptions::default_instance_ = NULL; |
| 10912 EnumOptions* n = new EnumOptions; | 11121 |
| 11122 EnumValueOptions* EnumValueOptions::New(::google::protobuf::Arena* arena) const
{ |
| 11123 EnumValueOptions* n = new EnumValueOptions; |
| 10913 if (arena != NULL) { | 11124 if (arena != NULL) { |
| 10914 arena->Own(n); | 11125 arena->Own(n); |
| 10915 } | 11126 } |
| 10916 return n; | 11127 return n; |
| 10917 } | 11128 } |
| 10918 | 11129 |
| 10919 void EnumOptions::Clear() { | 11130 void EnumValueOptions::Clear() { |
| 10920 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumOptions) | 11131 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumValueOptions
) |
| 10921 _extensions_.Clear(); | 11132 _extensions_.Clear(); |
| 11133 deprecated_ = false; |
| 10922 uninterpreted_option_.Clear(); | 11134 uninterpreted_option_.Clear(); |
| 10923 if (_has_bits_[0 / 32] & 3u) { | 11135 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 10924 ::memset(&allow_alias_, 0, reinterpret_cast<char*>(&deprecated_) - | 11136 if (_internal_metadata_.have_unknown_fields()) { |
| 10925 reinterpret_cast<char*>(&allow_alias_) + sizeof(deprecated_)); | 11137 mutable_unknown_fields()->Clear(); |
| 10926 } | 11138 } |
| 10927 _has_bits_.Clear(); | |
| 10928 _internal_metadata_.Clear(); | |
| 10929 } | 11139 } |
| 10930 | 11140 |
| 10931 bool EnumOptions::MergePartialFromCodedStream( | 11141 bool EnumValueOptions::MergePartialFromCodedStream( |
| 10932 ::google::protobuf::io::CodedInputStream* input) { | 11142 ::google::protobuf::io::CodedInputStream* input) { |
| 10933 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 11143 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 10934 ::google::protobuf::uint32 tag; | 11144 ::google::protobuf::uint32 tag; |
| 10935 // @@protoc_insertion_point(parse_start:google.protobuf.EnumOptions) | 11145 // @@protoc_insertion_point(parse_start:google.protobuf.EnumValueOptions) |
| 10936 for (;;) { | 11146 for (;;) { |
| 10937 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(16383u); | 11147 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
16383); |
| 10938 tag = p.first; | 11148 tag = p.first; |
| 10939 if (!p.second) goto handle_unusual; | 11149 if (!p.second) goto handle_unusual; |
| 10940 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 11150 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
| 10941 // optional bool allow_alias = 2; | 11151 // optional bool deprecated = 1 [default = false]; |
| 10942 case 2: { | 11152 case 1: { |
| 10943 if (tag == 16u) { | 11153 if (tag == 8) { |
| 10944 set_has_allow_alias(); | |
| 10945 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 11154 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 10946 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 11155 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
| 10947 input, &allow_alias_))); | 11156 input, &deprecated_))); |
| 11157 set_has_deprecated(); |
| 10948 } else { | 11158 } else { |
| 10949 goto handle_unusual; | 11159 goto handle_unusual; |
| 10950 } | 11160 } |
| 10951 break; | 11161 if (input->ExpectTag(7994)) goto parse_uninterpreted_option; |
| 10952 } | |
| 10953 | |
| 10954 // optional bool deprecated = 3 [default = false]; | |
| 10955 case 3: { | |
| 10956 if (tag == 24u) { | |
| 10957 set_has_deprecated(); | |
| 10958 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | |
| 10959 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | |
| 10960 input, &deprecated_))); | |
| 10961 } else { | |
| 10962 goto handle_unusual; | |
| 10963 } | |
| 10964 break; | 11162 break; |
| 10965 } | 11163 } |
| 10966 | 11164 |
| 10967 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99
9; | 11165 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99
9; |
| 10968 case 999: { | 11166 case 999: { |
| 10969 if (tag == 7994u) { | 11167 if (tag == 7994) { |
| 11168 parse_uninterpreted_option: |
| 10970 DO_(input->IncrementRecursionDepth()); | 11169 DO_(input->IncrementRecursionDepth()); |
| 11170 parse_loop_uninterpreted_option: |
| 10971 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 11171 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
| 10972 input, add_uninterpreted_option())); | 11172 input, add_uninterpreted_option())); |
| 10973 } else { | 11173 } else { |
| 10974 goto handle_unusual; | 11174 goto handle_unusual; |
| 10975 } | 11175 } |
| 11176 if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option; |
| 10976 input->UnsafeDecrementRecursionDepth(); | 11177 input->UnsafeDecrementRecursionDepth(); |
| 11178 if (input->ExpectAtEnd()) goto success; |
| 10977 break; | 11179 break; |
| 10978 } | 11180 } |
| 10979 | 11181 |
| 10980 default: { | 11182 default: { |
| 10981 handle_unusual: | 11183 handle_unusual: |
| 10982 if (tag == 0 || | 11184 if (tag == 0 || |
| 10983 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 11185 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 10984 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 11186 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 10985 goto success; | 11187 goto success; |
| 10986 } | 11188 } |
| 10987 if ((8000u <= tag)) { | 11189 if ((8000u <= tag)) { |
| 10988 DO_(_extensions_.ParseField(tag, input, internal_default_instance(), | 11190 DO_(_extensions_.ParseField(tag, input, default_instance_, |
| 10989 mutable_unknown_fields())); | 11191 mutable_unknown_fields())); |
| 10990 continue; | 11192 continue; |
| 10991 } | 11193 } |
| 10992 DO_(::google::protobuf::internal::WireFormat::SkipField( | 11194 DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 10993 input, tag, mutable_unknown_fields())); | 11195 input, tag, mutable_unknown_fields())); |
| 10994 break; | 11196 break; |
| 10995 } | 11197 } |
| 10996 } | 11198 } |
| 10997 } | 11199 } |
| 10998 success: | 11200 success: |
| 10999 // @@protoc_insertion_point(parse_success:google.protobuf.EnumOptions) | 11201 // @@protoc_insertion_point(parse_success:google.protobuf.EnumValueOptions) |
| 11000 return true; | 11202 return true; |
| 11001 failure: | 11203 failure: |
| 11002 // @@protoc_insertion_point(parse_failure:google.protobuf.EnumOptions) | 11204 // @@protoc_insertion_point(parse_failure:google.protobuf.EnumValueOptions) |
| 11003 return false; | 11205 return false; |
| 11004 #undef DO_ | 11206 #undef DO_ |
| 11005 } | 11207 } |
| 11006 | 11208 |
| 11007 void EnumOptions::SerializeWithCachedSizes( | 11209 void EnumValueOptions::SerializeWithCachedSizes( |
| 11008 ::google::protobuf::io::CodedOutputStream* output) const { | 11210 ::google::protobuf::io::CodedOutputStream* output) const { |
| 11009 // @@protoc_insertion_point(serialize_start:google.protobuf.EnumOptions) | 11211 // @@protoc_insertion_point(serialize_start:google.protobuf.EnumValueOptions) |
| 11010 // optional bool allow_alias = 2; | 11212 // optional bool deprecated = 1 [default = false]; |
| 11011 if (has_allow_alias()) { | |
| 11012 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->allow_alias
(), output); | |
| 11013 } | |
| 11014 | |
| 11015 // optional bool deprecated = 3 [default = false]; | |
| 11016 if (has_deprecated()) { | 11213 if (has_deprecated()) { |
| 11017 ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->deprecated(
), output); | 11214 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->deprecated(
), output); |
| 11018 } | 11215 } |
| 11019 | 11216 |
| 11020 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 11217 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 11021 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { | 11218 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 11022 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 11219 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 11023 999, this->uninterpreted_option(i), output); | 11220 999, this->uninterpreted_option(i), output); |
| 11024 } | 11221 } |
| 11025 | 11222 |
| 11026 // Extension range [1000, 536870912) | 11223 // Extension range [1000, 536870912) |
| 11027 _extensions_.SerializeWithCachedSizes( | 11224 _extensions_.SerializeWithCachedSizes( |
| 11028 1000, 536870912, output); | 11225 1000, 536870912, output); |
| 11029 | 11226 |
| 11030 if (_internal_metadata_.have_unknown_fields()) { | 11227 if (_internal_metadata_.have_unknown_fields()) { |
| 11031 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 11228 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 11032 unknown_fields(), output); | 11229 unknown_fields(), output); |
| 11033 } | 11230 } |
| 11034 // @@protoc_insertion_point(serialize_end:google.protobuf.EnumOptions) | 11231 // @@protoc_insertion_point(serialize_end:google.protobuf.EnumValueOptions) |
| 11035 } | 11232 } |
| 11036 | 11233 |
| 11037 ::google::protobuf::uint8* EnumOptions::InternalSerializeWithCachedSizesToArray( | 11234 ::google::protobuf::uint8* EnumValueOptions::SerializeWithCachedSizesToArray( |
| 11038 bool deterministic, ::google::protobuf::uint8* target) const { | 11235 ::google::protobuf::uint8* target) const { |
| 11039 (void)deterministic; // Unused | 11236 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValue
Options) |
| 11040 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumOptio
ns) | 11237 // optional bool deprecated = 1 [default = false]; |
| 11041 // optional bool allow_alias = 2; | |
| 11042 if (has_allow_alias()) { | |
| 11043 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, t
his->allow_alias(), target); | |
| 11044 } | |
| 11045 | |
| 11046 // optional bool deprecated = 3 [default = false]; | |
| 11047 if (has_deprecated()) { | 11238 if (has_deprecated()) { |
| 11048 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, t
his->deprecated(), target); | 11239 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, t
his->deprecated(), target); |
| 11049 } | 11240 } |
| 11050 | 11241 |
| 11051 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 11242 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 11052 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { | 11243 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 11053 target = ::google::protobuf::internal::WireFormatLite:: | 11244 target = ::google::protobuf::internal::WireFormatLite:: |
| 11054 InternalWriteMessageNoVirtualToArray( | 11245 WriteMessageNoVirtualToArray( |
| 11055 999, this->uninterpreted_option(i), false, target); | 11246 999, this->uninterpreted_option(i), target); |
| 11056 } | 11247 } |
| 11057 | 11248 |
| 11058 // Extension range [1000, 536870912) | 11249 // Extension range [1000, 536870912) |
| 11059 target = _extensions_.InternalSerializeWithCachedSizesToArray( | 11250 target = _extensions_.SerializeWithCachedSizesToArray( |
| 11060 1000, 536870912, false, target); | 11251 1000, 536870912, target); |
| 11061 | 11252 |
| 11062 if (_internal_metadata_.have_unknown_fields()) { | 11253 if (_internal_metadata_.have_unknown_fields()) { |
| 11063 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 11254 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
| 11064 unknown_fields(), target); | 11255 unknown_fields(), target); |
| 11065 } | 11256 } |
| 11066 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumOptions
) | 11257 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumValueOp
tions) |
| 11067 return target; | 11258 return target; |
| 11068 } | 11259 } |
| 11069 | 11260 |
| 11070 size_t EnumOptions::ByteSizeLong() const { | 11261 int EnumValueOptions::ByteSize() const { |
| 11071 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumOptions) | 11262 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumValueOpt
ions) |
| 11072 size_t total_size = 0; | 11263 int total_size = 0; |
| 11264 |
| 11265 // optional bool deprecated = 1 [default = false]; |
| 11266 if (has_deprecated()) { |
| 11267 total_size += 1 + 1; |
| 11268 } |
| 11269 |
| 11270 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 11271 total_size += 2 * this->uninterpreted_option_size(); |
| 11272 for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
| 11273 total_size += |
| 11274 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 11275 this->uninterpreted_option(i)); |
| 11276 } |
| 11073 | 11277 |
| 11074 total_size += _extensions_.ByteSize(); | 11278 total_size += _extensions_.ByteSize(); |
| 11075 | 11279 |
| 11076 if (_internal_metadata_.have_unknown_fields()) { | 11280 if (_internal_metadata_.have_unknown_fields()) { |
| 11077 total_size += | 11281 total_size += |
| 11078 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | 11282 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 11079 unknown_fields()); | 11283 unknown_fields()); |
| 11080 } | 11284 } |
| 11081 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | |
| 11082 { | |
| 11083 unsigned int count = this->uninterpreted_option_size(); | |
| 11084 total_size += 2UL * count; | |
| 11085 for (unsigned int i = 0; i < count; i++) { | |
| 11086 total_size += | |
| 11087 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
| 11088 this->uninterpreted_option(i)); | |
| 11089 } | |
| 11090 } | |
| 11091 | |
| 11092 if (_has_bits_[0 / 32] & 3u) { | |
| 11093 // optional bool allow_alias = 2; | |
| 11094 if (has_allow_alias()) { | |
| 11095 total_size += 1 + 1; | |
| 11096 } | |
| 11097 | |
| 11098 // optional bool deprecated = 3 [default = false]; | |
| 11099 if (has_deprecated()) { | |
| 11100 total_size += 1 + 1; | |
| 11101 } | |
| 11102 | |
| 11103 } | |
| 11104 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | |
| 11105 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 11285 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 11106 _cached_size_ = cached_size; | 11286 _cached_size_ = total_size; |
| 11107 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 11287 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 11108 return total_size; | 11288 return total_size; |
| 11109 } | 11289 } |
| 11110 | 11290 |
| 11111 void EnumOptions::MergeFrom(const ::google::protobuf::Message& from) { | 11291 void EnumValueOptions::MergeFrom(const ::google::protobuf::Message& from) { |
| 11112 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumOpt
ions) | 11292 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumVal
ueOptions) |
| 11113 GOOGLE_DCHECK_NE(&from, this); | 11293 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 11114 const EnumOptions* source = | 11294 const EnumValueOptions* source = |
| 11115 ::google::protobuf::internal::DynamicCastToGenerated<const EnumOptions>( | 11295 ::google::protobuf::internal::DynamicCastToGenerated<const EnumValueOption
s>( |
| 11116 &from); | 11296 &from); |
| 11117 if (source == NULL) { | 11297 if (source == NULL) { |
| 11118 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.E
numOptions) | 11298 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.E
numValueOptions) |
| 11119 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 11299 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 11120 } else { | 11300 } else { |
| 11121 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.EnumOptions) | 11301 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.EnumValueOptions) |
| 11122 MergeFrom(*source); | 11302 MergeFrom(*source); |
| 11123 } | 11303 } |
| 11124 } | 11304 } |
| 11125 | 11305 |
| 11126 void EnumOptions::MergeFrom(const EnumOptions& from) { | 11306 void EnumValueOptions::MergeFrom(const EnumValueOptions& from) { |
| 11127 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Enum
Options) | 11307 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Enum
ValueOptions) |
| 11128 GOOGLE_DCHECK_NE(&from, this); | 11308 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 11129 _extensions_.MergeFrom(from._extensions_); | |
| 11130 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 11131 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); | 11309 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); |
| 11132 if (from._has_bits_[0 / 32] & 3u) { | 11310 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 11133 if (from.has_allow_alias()) { | |
| 11134 set_allow_alias(from.allow_alias()); | |
| 11135 } | |
| 11136 if (from.has_deprecated()) { | 11311 if (from.has_deprecated()) { |
| 11137 set_deprecated(from.deprecated()); | 11312 set_deprecated(from.deprecated()); |
| 11138 } | 11313 } |
| 11139 } | 11314 } |
| 11315 _extensions_.MergeFrom(from._extensions_); |
| 11316 if (from._internal_metadata_.have_unknown_fields()) { |
| 11317 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 11318 } |
| 11140 } | 11319 } |
| 11141 | 11320 |
| 11142 void EnumOptions::CopyFrom(const ::google::protobuf::Message& from) { | 11321 void EnumValueOptions::CopyFrom(const ::google::protobuf::Message& from) { |
| 11143 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumOpti
ons) | 11322 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumValu
eOptions) |
| 11144 if (&from == this) return; | 11323 if (&from == this) return; |
| 11145 Clear(); | 11324 Clear(); |
| 11146 MergeFrom(from); | 11325 MergeFrom(from); |
| 11147 } | 11326 } |
| 11148 | 11327 |
| 11149 void EnumOptions::CopyFrom(const EnumOptions& from) { | 11328 void EnumValueOptions::CopyFrom(const EnumValueOptions& from) { |
| 11150 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumO
ptions) | 11329 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumV
alueOptions) |
| 11151 if (&from == this) return; | 11330 if (&from == this) return; |
| 11152 Clear(); | 11331 Clear(); |
| 11153 MergeFrom(from); | 11332 MergeFrom(from); |
| 11154 } | 11333 } |
| 11155 | 11334 |
| 11156 bool EnumOptions::IsInitialized() const { | 11335 bool EnumValueOptions::IsInitialized() const { |
| 11157 if (!_extensions_.IsInitialized()) { | |
| 11158 return false; | |
| 11159 } | |
| 11160 | 11336 |
| 11161 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio
n())) return false; | 11337 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio
n())) return false; |
| 11162 return true; | 11338 |
| 11339 if (!_extensions_.IsInitialized()) return false; return true; |
| 11163 } | 11340 } |
| 11164 | 11341 |
| 11165 void EnumOptions::Swap(EnumOptions* other) { | 11342 void EnumValueOptions::Swap(EnumValueOptions* other) { |
| 11166 if (other == this) return; | 11343 if (other == this) return; |
| 11167 InternalSwap(other); | 11344 InternalSwap(other); |
| 11168 } | 11345 } |
| 11169 void EnumOptions::InternalSwap(EnumOptions* other) { | 11346 void EnumValueOptions::InternalSwap(EnumValueOptions* other) { |
| 11347 std::swap(deprecated_, other->deprecated_); |
| 11170 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); | 11348 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); |
| 11171 std::swap(allow_alias_, other->allow_alias_); | |
| 11172 std::swap(deprecated_, other->deprecated_); | |
| 11173 std::swap(_has_bits_[0], other->_has_bits_[0]); | 11349 std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 11174 _internal_metadata_.Swap(&other->_internal_metadata_); | 11350 _internal_metadata_.Swap(&other->_internal_metadata_); |
| 11175 std::swap(_cached_size_, other->_cached_size_); | 11351 std::swap(_cached_size_, other->_cached_size_); |
| 11176 _extensions_.Swap(&other->_extensions_); | 11352 _extensions_.Swap(&other->_extensions_); |
| 11177 } | 11353 } |
| 11178 | 11354 |
| 11179 ::google::protobuf::Metadata EnumOptions::GetMetadata() const { | 11355 ::google::protobuf::Metadata EnumValueOptions::GetMetadata() const { |
| 11180 protobuf_AssignDescriptorsOnce(); | 11356 protobuf_AssignDescriptorsOnce(); |
| 11181 return file_level_metadata[15]; | 11357 ::google::protobuf::Metadata metadata; |
| 11358 metadata.descriptor = EnumValueOptions_descriptor_; |
| 11359 metadata.reflection = EnumValueOptions_reflection_; |
| 11360 return metadata; |
| 11182 } | 11361 } |
| 11183 | 11362 |
| 11184 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 11363 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 11185 // EnumOptions | 11364 // EnumValueOptions |
| 11186 | 11365 |
| 11187 // optional bool allow_alias = 2; | 11366 // optional bool deprecated = 1 [default = false]; |
| 11188 bool EnumOptions::has_allow_alias() const { | 11367 bool EnumValueOptions::has_deprecated() const { |
| 11189 return (_has_bits_[0] & 0x00000001u) != 0; | 11368 return (_has_bits_[0] & 0x00000001u) != 0; |
| 11190 } | 11369 } |
| 11191 void EnumOptions::set_has_allow_alias() { | 11370 void EnumValueOptions::set_has_deprecated() { |
| 11192 _has_bits_[0] |= 0x00000001u; | 11371 _has_bits_[0] |= 0x00000001u; |
| 11193 } | 11372 } |
| 11194 void EnumOptions::clear_has_allow_alias() { | 11373 void EnumValueOptions::clear_has_deprecated() { |
| 11195 _has_bits_[0] &= ~0x00000001u; | 11374 _has_bits_[0] &= ~0x00000001u; |
| 11196 } | 11375 } |
| 11197 void EnumOptions::clear_allow_alias() { | 11376 void EnumValueOptions::clear_deprecated() { |
| 11198 allow_alias_ = false; | |
| 11199 clear_has_allow_alias(); | |
| 11200 } | |
| 11201 bool EnumOptions::allow_alias() const { | |
| 11202 // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.allow_alias) | |
| 11203 return allow_alias_; | |
| 11204 } | |
| 11205 void EnumOptions::set_allow_alias(bool value) { | |
| 11206 set_has_allow_alias(); | |
| 11207 allow_alias_ = value; | |
| 11208 // @@protoc_insertion_point(field_set:google.protobuf.EnumOptions.allow_alias) | |
| 11209 } | |
| 11210 | |
| 11211 // optional bool deprecated = 3 [default = false]; | |
| 11212 bool EnumOptions::has_deprecated() const { | |
| 11213 return (_has_bits_[0] & 0x00000002u) != 0; | |
| 11214 } | |
| 11215 void EnumOptions::set_has_deprecated() { | |
| 11216 _has_bits_[0] |= 0x00000002u; | |
| 11217 } | |
| 11218 void EnumOptions::clear_has_deprecated() { | |
| 11219 _has_bits_[0] &= ~0x00000002u; | |
| 11220 } | |
| 11221 void EnumOptions::clear_deprecated() { | |
| 11222 deprecated_ = false; | 11377 deprecated_ = false; |
| 11223 clear_has_deprecated(); | 11378 clear_has_deprecated(); |
| 11224 } | 11379 } |
| 11225 bool EnumOptions::deprecated() const { | 11380 bool EnumValueOptions::deprecated() const { |
| 11226 // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.deprecated) | 11381 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.depreca
ted) |
| 11227 return deprecated_; | 11382 return deprecated_; |
| 11228 } | 11383 } |
| 11229 void EnumOptions::set_deprecated(bool value) { | 11384 void EnumValueOptions::set_deprecated(bool value) { |
| 11230 set_has_deprecated(); | 11385 set_has_deprecated(); |
| 11231 deprecated_ = value; | 11386 deprecated_ = value; |
| 11232 // @@protoc_insertion_point(field_set:google.protobuf.EnumOptions.deprecated) | 11387 // @@protoc_insertion_point(field_set:google.protobuf.EnumValueOptions.depreca
ted) |
| 11233 } | 11388 } |
| 11234 | 11389 |
| 11235 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 11390 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 11236 int EnumOptions::uninterpreted_option_size() const { | 11391 int EnumValueOptions::uninterpreted_option_size() const { |
| 11237 return uninterpreted_option_.size(); | 11392 return uninterpreted_option_.size(); |
| 11238 } | 11393 } |
| 11239 void EnumOptions::clear_uninterpreted_option() { | 11394 void EnumValueOptions::clear_uninterpreted_option() { |
| 11240 uninterpreted_option_.Clear(); | 11395 uninterpreted_option_.Clear(); |
| 11241 } | 11396 } |
| 11242 const ::google::protobuf::UninterpretedOption& EnumOptions::uninterpreted_option
(int index) const { | 11397 const ::google::protobuf::UninterpretedOption& EnumValueOptions::uninterpreted_o
ption(int index) const { |
| 11243 // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.uninterprete
d_option) | 11398 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.uninter
preted_option) |
| 11244 return uninterpreted_option_.Get(index); | 11399 return uninterpreted_option_.Get(index); |
| 11245 } | 11400 } |
| 11246 ::google::protobuf::UninterpretedOption* EnumOptions::mutable_uninterpreted_opti
on(int index) { | 11401 ::google::protobuf::UninterpretedOption* EnumValueOptions::mutable_uninterpreted
_option(int index) { |
| 11247 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumOptions.uninterp
reted_option) | 11402 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueOptions.uni
nterpreted_option) |
| 11248 return uninterpreted_option_.Mutable(index); | 11403 return uninterpreted_option_.Mutable(index); |
| 11249 } | 11404 } |
| 11250 ::google::protobuf::UninterpretedOption* EnumOptions::add_uninterpreted_option()
{ | 11405 ::google::protobuf::UninterpretedOption* EnumValueOptions::add_uninterpreted_opt
ion() { |
| 11251 // @@protoc_insertion_point(field_add:google.protobuf.EnumOptions.uninterprete
d_option) | 11406 // @@protoc_insertion_point(field_add:google.protobuf.EnumValueOptions.uninter
preted_option) |
| 11252 return uninterpreted_option_.Add(); | 11407 return uninterpreted_option_.Add(); |
| 11253 } | 11408 } |
| 11254 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* | 11409 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
| 11255 EnumOptions::mutable_uninterpreted_option() { | 11410 EnumValueOptions::mutable_uninterpreted_option() { |
| 11256 // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumOptions.uni
nterpreted_option) | 11411 // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumValueOption
s.uninterpreted_option) |
| 11257 return &uninterpreted_option_; | 11412 return &uninterpreted_option_; |
| 11258 } | 11413 } |
| 11259 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt
ion >& | 11414 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt
ion >& |
| 11260 EnumOptions::uninterpreted_option() const { | 11415 EnumValueOptions::uninterpreted_option() const { |
| 11261 // @@protoc_insertion_point(field_list:google.protobuf.EnumOptions.uninterpret
ed_option) | 11416 // @@protoc_insertion_point(field_list:google.protobuf.EnumValueOptions.uninte
rpreted_option) |
| 11262 return uninterpreted_option_; | 11417 return uninterpreted_option_; |
| 11263 } | 11418 } |
| 11264 | 11419 |
| 11265 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 11420 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 11266 | 11421 |
| 11267 // =================================================================== | 11422 // =================================================================== |
| 11268 | 11423 |
| 11269 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 11424 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 11270 const int EnumValueOptions::kDeprecatedFieldNumber; | 11425 const int ServiceOptions::kDeprecatedFieldNumber; |
| 11271 const int EnumValueOptions::kUninterpretedOptionFieldNumber; | 11426 const int ServiceOptions::kUninterpretedOptionFieldNumber; |
| 11272 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 11427 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 11273 | 11428 |
| 11274 EnumValueOptions::EnumValueOptions() | 11429 ServiceOptions::ServiceOptions() |
| 11275 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 11430 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 11276 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
| 11277 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
| 11278 } | |
| 11279 SharedCtor(); | 11431 SharedCtor(); |
| 11280 // @@protoc_insertion_point(constructor:google.protobuf.EnumValueOptions) | 11432 // @@protoc_insertion_point(constructor:google.protobuf.ServiceOptions) |
| 11281 } | |
| 11282 EnumValueOptions::EnumValueOptions(const EnumValueOptions& from) | |
| 11283 : ::google::protobuf::Message(), | |
| 11284 _internal_metadata_(NULL), | |
| 11285 _has_bits_(from._has_bits_), | |
| 11286 _cached_size_(0), | |
| 11287 uninterpreted_option_(from.uninterpreted_option_) { | |
| 11288 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 11289 _extensions_.MergeFrom(from._extensions_); | |
| 11290 deprecated_ = from.deprecated_; | |
| 11291 // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValueOptions) | |
| 11292 } | 11433 } |
| 11293 | 11434 |
| 11294 void EnumValueOptions::SharedCtor() { | 11435 void ServiceOptions::InitAsDefaultInstance() { |
| 11436 } |
| 11437 |
| 11438 ServiceOptions::ServiceOptions(const ServiceOptions& from) |
| 11439 : ::google::protobuf::Message(), |
| 11440 _internal_metadata_(NULL) { |
| 11441 SharedCtor(); |
| 11442 MergeFrom(from); |
| 11443 // @@protoc_insertion_point(copy_constructor:google.protobuf.ServiceOptions) |
| 11444 } |
| 11445 |
| 11446 void ServiceOptions::SharedCtor() { |
| 11295 _cached_size_ = 0; | 11447 _cached_size_ = 0; |
| 11296 deprecated_ = false; | 11448 deprecated_ = false; |
| 11449 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 11297 } | 11450 } |
| 11298 | 11451 |
| 11299 EnumValueOptions::~EnumValueOptions() { | 11452 ServiceOptions::~ServiceOptions() { |
| 11300 // @@protoc_insertion_point(destructor:google.protobuf.EnumValueOptions) | 11453 // @@protoc_insertion_point(destructor:google.protobuf.ServiceOptions) |
| 11301 SharedDtor(); | 11454 SharedDtor(); |
| 11302 } | 11455 } |
| 11303 | 11456 |
| 11304 void EnumValueOptions::SharedDtor() { | 11457 void ServiceOptions::SharedDtor() { |
| 11458 if (this != default_instance_) { |
| 11459 } |
| 11305 } | 11460 } |
| 11306 | 11461 |
| 11307 void EnumValueOptions::SetCachedSize(int size) const { | 11462 void ServiceOptions::SetCachedSize(int size) const { |
| 11308 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 11463 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 11309 _cached_size_ = size; | 11464 _cached_size_ = size; |
| 11310 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 11465 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 11311 } | 11466 } |
| 11312 const ::google::protobuf::Descriptor* EnumValueOptions::descriptor() { | 11467 const ::google::protobuf::Descriptor* ServiceOptions::descriptor() { |
| 11313 protobuf_AssignDescriptorsOnce(); | 11468 protobuf_AssignDescriptorsOnce(); |
| 11314 return file_level_metadata[16].descriptor; | 11469 return ServiceOptions_descriptor_; |
| 11315 } | 11470 } |
| 11316 | 11471 |
| 11317 const EnumValueOptions& EnumValueOptions::default_instance() { | 11472 const ServiceOptions& ServiceOptions::default_instance() { |
| 11318 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 11473 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
| 11319 return *internal_default_instance(); | 11474 return *default_instance_; |
| 11320 } | 11475 } |
| 11321 | 11476 |
| 11322 EnumValueOptions* EnumValueOptions::New(::google::protobuf::Arena* arena) const
{ | 11477 ServiceOptions* ServiceOptions::default_instance_ = NULL; |
| 11323 EnumValueOptions* n = new EnumValueOptions; | 11478 |
| 11479 ServiceOptions* ServiceOptions::New(::google::protobuf::Arena* arena) const { |
| 11480 ServiceOptions* n = new ServiceOptions; |
| 11324 if (arena != NULL) { | 11481 if (arena != NULL) { |
| 11325 arena->Own(n); | 11482 arena->Own(n); |
| 11326 } | 11483 } |
| 11327 return n; | 11484 return n; |
| 11328 } | 11485 } |
| 11329 | 11486 |
| 11330 void EnumValueOptions::Clear() { | 11487 void ServiceOptions::Clear() { |
| 11331 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumValueOptions
) | 11488 // @@protoc_insertion_point(message_clear_start:google.protobuf.ServiceOptions) |
| 11332 _extensions_.Clear(); | 11489 _extensions_.Clear(); |
| 11490 deprecated_ = false; |
| 11333 uninterpreted_option_.Clear(); | 11491 uninterpreted_option_.Clear(); |
| 11334 deprecated_ = false; | 11492 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 11335 _has_bits_.Clear(); | 11493 if (_internal_metadata_.have_unknown_fields()) { |
| 11336 _internal_metadata_.Clear(); | 11494 mutable_unknown_fields()->Clear(); |
| 11495 } |
| 11337 } | 11496 } |
| 11338 | 11497 |
| 11339 bool EnumValueOptions::MergePartialFromCodedStream( | 11498 bool ServiceOptions::MergePartialFromCodedStream( |
| 11340 ::google::protobuf::io::CodedInputStream* input) { | 11499 ::google::protobuf::io::CodedInputStream* input) { |
| 11341 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 11500 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 11342 ::google::protobuf::uint32 tag; | 11501 ::google::protobuf::uint32 tag; |
| 11343 // @@protoc_insertion_point(parse_start:google.protobuf.EnumValueOptions) | 11502 // @@protoc_insertion_point(parse_start:google.protobuf.ServiceOptions) |
| 11344 for (;;) { | 11503 for (;;) { |
| 11345 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(16383u); | 11504 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
16383); |
| 11346 tag = p.first; | 11505 tag = p.first; |
| 11347 if (!p.second) goto handle_unusual; | 11506 if (!p.second) goto handle_unusual; |
| 11348 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 11507 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
| 11349 // optional bool deprecated = 1 [default = false]; | 11508 // optional bool deprecated = 33 [default = false]; |
| 11350 case 1: { | 11509 case 33: { |
| 11351 if (tag == 8u) { | 11510 if (tag == 264) { |
| 11352 set_has_deprecated(); | |
| 11353 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 11511 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 11354 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 11512 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
| 11355 input, &deprecated_))); | 11513 input, &deprecated_))); |
| 11514 set_has_deprecated(); |
| 11356 } else { | 11515 } else { |
| 11357 goto handle_unusual; | 11516 goto handle_unusual; |
| 11358 } | 11517 } |
| 11518 if (input->ExpectTag(7994)) goto parse_uninterpreted_option; |
| 11359 break; | 11519 break; |
| 11360 } | 11520 } |
| 11361 | 11521 |
| 11362 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99
9; | 11522 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99
9; |
| 11363 case 999: { | 11523 case 999: { |
| 11364 if (tag == 7994u) { | 11524 if (tag == 7994) { |
| 11525 parse_uninterpreted_option: |
| 11365 DO_(input->IncrementRecursionDepth()); | 11526 DO_(input->IncrementRecursionDepth()); |
| 11527 parse_loop_uninterpreted_option: |
| 11366 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 11528 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
| 11367 input, add_uninterpreted_option())); | 11529 input, add_uninterpreted_option())); |
| 11368 } else { | 11530 } else { |
| 11369 goto handle_unusual; | 11531 goto handle_unusual; |
| 11370 } | 11532 } |
| 11533 if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option; |
| 11371 input->UnsafeDecrementRecursionDepth(); | 11534 input->UnsafeDecrementRecursionDepth(); |
| 11535 if (input->ExpectAtEnd()) goto success; |
| 11372 break; | 11536 break; |
| 11373 } | 11537 } |
| 11374 | 11538 |
| 11375 default: { | 11539 default: { |
| 11376 handle_unusual: | 11540 handle_unusual: |
| 11377 if (tag == 0 || | 11541 if (tag == 0 || |
| 11378 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 11542 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 11379 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 11543 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 11380 goto success; | 11544 goto success; |
| 11381 } | 11545 } |
| 11382 if ((8000u <= tag)) { | 11546 if ((8000u <= tag)) { |
| 11383 DO_(_extensions_.ParseField(tag, input, internal_default_instance(), | 11547 DO_(_extensions_.ParseField(tag, input, default_instance_, |
| 11384 mutable_unknown_fields())); | 11548 mutable_unknown_fields())); |
| 11385 continue; | 11549 continue; |
| 11386 } | 11550 } |
| 11387 DO_(::google::protobuf::internal::WireFormat::SkipField( | 11551 DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 11388 input, tag, mutable_unknown_fields())); | 11552 input, tag, mutable_unknown_fields())); |
| 11389 break; | 11553 break; |
| 11390 } | 11554 } |
| 11391 } | 11555 } |
| 11392 } | 11556 } |
| 11393 success: | 11557 success: |
| 11394 // @@protoc_insertion_point(parse_success:google.protobuf.EnumValueOptions) | 11558 // @@protoc_insertion_point(parse_success:google.protobuf.ServiceOptions) |
| 11395 return true; | 11559 return true; |
| 11396 failure: | 11560 failure: |
| 11397 // @@protoc_insertion_point(parse_failure:google.protobuf.EnumValueOptions) | 11561 // @@protoc_insertion_point(parse_failure:google.protobuf.ServiceOptions) |
| 11398 return false; | 11562 return false; |
| 11399 #undef DO_ | 11563 #undef DO_ |
| 11400 } | 11564 } |
| 11401 | 11565 |
| 11402 void EnumValueOptions::SerializeWithCachedSizes( | 11566 void ServiceOptions::SerializeWithCachedSizes( |
| 11403 ::google::protobuf::io::CodedOutputStream* output) const { | 11567 ::google::protobuf::io::CodedOutputStream* output) const { |
| 11404 // @@protoc_insertion_point(serialize_start:google.protobuf.EnumValueOptions) | 11568 // @@protoc_insertion_point(serialize_start:google.protobuf.ServiceOptions) |
| 11405 // optional bool deprecated = 1 [default = false]; | 11569 // optional bool deprecated = 33 [default = false]; |
| 11406 if (has_deprecated()) { | 11570 if (has_deprecated()) { |
| 11407 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->deprecated(
), output); | 11571 ::google::protobuf::internal::WireFormatLite::WriteBool(33, this->deprecated
(), output); |
| 11408 } | 11572 } |
| 11409 | 11573 |
| 11410 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 11574 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 11411 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { | 11575 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 11412 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 11576 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 11413 999, this->uninterpreted_option(i), output); | 11577 999, this->uninterpreted_option(i), output); |
| 11414 } | 11578 } |
| 11415 | 11579 |
| 11416 // Extension range [1000, 536870912) | 11580 // Extension range [1000, 536870912) |
| 11417 _extensions_.SerializeWithCachedSizes( | 11581 _extensions_.SerializeWithCachedSizes( |
| 11418 1000, 536870912, output); | 11582 1000, 536870912, output); |
| 11419 | 11583 |
| 11420 if (_internal_metadata_.have_unknown_fields()) { | 11584 if (_internal_metadata_.have_unknown_fields()) { |
| 11421 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 11585 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 11422 unknown_fields(), output); | 11586 unknown_fields(), output); |
| 11423 } | 11587 } |
| 11424 // @@protoc_insertion_point(serialize_end:google.protobuf.EnumValueOptions) | 11588 // @@protoc_insertion_point(serialize_end:google.protobuf.ServiceOptions) |
| 11425 } | 11589 } |
| 11426 | 11590 |
| 11427 ::google::protobuf::uint8* EnumValueOptions::InternalSerializeWithCachedSizesToA
rray( | 11591 ::google::protobuf::uint8* ServiceOptions::SerializeWithCachedSizesToArray( |
| 11428 bool deterministic, ::google::protobuf::uint8* target) const { | 11592 ::google::protobuf::uint8* target) const { |
| 11429 (void)deterministic; // Unused | 11593 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ServiceOp
tions) |
| 11430 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValue
Options) | 11594 // optional bool deprecated = 33 [default = false]; |
| 11431 // optional bool deprecated = 1 [default = false]; | |
| 11432 if (has_deprecated()) { | 11595 if (has_deprecated()) { |
| 11433 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, t
his->deprecated(), target); | 11596 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(33,
this->deprecated(), target); |
| 11434 } | 11597 } |
| 11435 | 11598 |
| 11436 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 11599 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 11437 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { | 11600 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 11438 target = ::google::protobuf::internal::WireFormatLite:: | 11601 target = ::google::protobuf::internal::WireFormatLite:: |
| 11439 InternalWriteMessageNoVirtualToArray( | 11602 WriteMessageNoVirtualToArray( |
| 11440 999, this->uninterpreted_option(i), false, target); | 11603 999, this->uninterpreted_option(i), target); |
| 11441 } | 11604 } |
| 11442 | 11605 |
| 11443 // Extension range [1000, 536870912) | 11606 // Extension range [1000, 536870912) |
| 11444 target = _extensions_.InternalSerializeWithCachedSizesToArray( | 11607 target = _extensions_.SerializeWithCachedSizesToArray( |
| 11445 1000, 536870912, false, target); | 11608 1000, 536870912, target); |
| 11446 | 11609 |
| 11447 if (_internal_metadata_.have_unknown_fields()) { | 11610 if (_internal_metadata_.have_unknown_fields()) { |
| 11448 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 11611 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
| 11449 unknown_fields(), target); | 11612 unknown_fields(), target); |
| 11450 } | 11613 } |
| 11451 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumValueOp
tions) | 11614 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ServiceOpti
ons) |
| 11452 return target; | 11615 return target; |
| 11453 } | 11616 } |
| 11454 | 11617 |
| 11455 size_t EnumValueOptions::ByteSizeLong() const { | 11618 int ServiceOptions::ByteSize() const { |
| 11456 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumValueOpt
ions) | 11619 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.ServiceOptio
ns) |
| 11457 size_t total_size = 0; | 11620 int total_size = 0; |
| 11621 |
| 11622 // optional bool deprecated = 33 [default = false]; |
| 11623 if (has_deprecated()) { |
| 11624 total_size += 2 + 1; |
| 11625 } |
| 11626 |
| 11627 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 11628 total_size += 2 * this->uninterpreted_option_size(); |
| 11629 for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
| 11630 total_size += |
| 11631 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 11632 this->uninterpreted_option(i)); |
| 11633 } |
| 11458 | 11634 |
| 11459 total_size += _extensions_.ByteSize(); | 11635 total_size += _extensions_.ByteSize(); |
| 11460 | 11636 |
| 11461 if (_internal_metadata_.have_unknown_fields()) { | 11637 if (_internal_metadata_.have_unknown_fields()) { |
| 11462 total_size += | 11638 total_size += |
| 11463 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | 11639 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 11464 unknown_fields()); | 11640 unknown_fields()); |
| 11465 } | 11641 } |
| 11466 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | |
| 11467 { | |
| 11468 unsigned int count = this->uninterpreted_option_size(); | |
| 11469 total_size += 2UL * count; | |
| 11470 for (unsigned int i = 0; i < count; i++) { | |
| 11471 total_size += | |
| 11472 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
| 11473 this->uninterpreted_option(i)); | |
| 11474 } | |
| 11475 } | |
| 11476 | |
| 11477 // optional bool deprecated = 1 [default = false]; | |
| 11478 if (has_deprecated()) { | |
| 11479 total_size += 1 + 1; | |
| 11480 } | |
| 11481 | |
| 11482 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | |
| 11483 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 11642 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 11484 _cached_size_ = cached_size; | 11643 _cached_size_ = total_size; |
| 11485 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 11644 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 11486 return total_size; | 11645 return total_size; |
| 11487 } | 11646 } |
| 11488 | 11647 |
| 11489 void EnumValueOptions::MergeFrom(const ::google::protobuf::Message& from) { | 11648 void ServiceOptions::MergeFrom(const ::google::protobuf::Message& from) { |
| 11490 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumVal
ueOptions) | 11649 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Service
Options) |
| 11491 GOOGLE_DCHECK_NE(&from, this); | 11650 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 11492 const EnumValueOptions* source = | 11651 const ServiceOptions* source = |
| 11493 ::google::protobuf::internal::DynamicCastToGenerated<const EnumValueOption
s>( | 11652 ::google::protobuf::internal::DynamicCastToGenerated<const ServiceOptions>
( |
| 11494 &from); | 11653 &from); |
| 11495 if (source == NULL) { | 11654 if (source == NULL) { |
| 11496 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.E
numValueOptions) | 11655 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.S
erviceOptions) |
| 11497 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 11656 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 11498 } else { | 11657 } else { |
| 11499 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.EnumValueOptions) | 11658 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.ServiceOptions) |
| 11500 MergeFrom(*source); | 11659 MergeFrom(*source); |
| 11501 } | 11660 } |
| 11502 } | 11661 } |
| 11503 | 11662 |
| 11504 void EnumValueOptions::MergeFrom(const EnumValueOptions& from) { | 11663 void ServiceOptions::MergeFrom(const ServiceOptions& from) { |
| 11505 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Enum
ValueOptions) | 11664 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Serv
iceOptions) |
| 11506 GOOGLE_DCHECK_NE(&from, this); | 11665 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 11666 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); |
| 11667 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 11668 if (from.has_deprecated()) { |
| 11669 set_deprecated(from.deprecated()); |
| 11670 } |
| 11671 } |
| 11507 _extensions_.MergeFrom(from._extensions_); | 11672 _extensions_.MergeFrom(from._extensions_); |
| 11508 _internal_metadata_.MergeFrom(from._internal_metadata_); | 11673 if (from._internal_metadata_.have_unknown_fields()) { |
| 11509 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); | 11674 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 11510 if (from.has_deprecated()) { | |
| 11511 set_deprecated(from.deprecated()); | |
| 11512 } | 11675 } |
| 11513 } | 11676 } |
| 11514 | 11677 |
| 11515 void EnumValueOptions::CopyFrom(const ::google::protobuf::Message& from) { | 11678 void ServiceOptions::CopyFrom(const ::google::protobuf::Message& from) { |
| 11516 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumValu
eOptions) | 11679 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.ServiceO
ptions) |
| 11517 if (&from == this) return; | 11680 if (&from == this) return; |
| 11518 Clear(); | 11681 Clear(); |
| 11519 MergeFrom(from); | 11682 MergeFrom(from); |
| 11520 } | 11683 } |
| 11521 | 11684 |
| 11522 void EnumValueOptions::CopyFrom(const EnumValueOptions& from) { | 11685 void ServiceOptions::CopyFrom(const ServiceOptions& from) { |
| 11523 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumV
alueOptions) | 11686 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Servi
ceOptions) |
| 11524 if (&from == this) return; | 11687 if (&from == this) return; |
| 11525 Clear(); | 11688 Clear(); |
| 11526 MergeFrom(from); | 11689 MergeFrom(from); |
| 11527 } | 11690 } |
| 11528 | 11691 |
| 11529 bool EnumValueOptions::IsInitialized() const { | 11692 bool ServiceOptions::IsInitialized() const { |
| 11530 if (!_extensions_.IsInitialized()) { | |
| 11531 return false; | |
| 11532 } | |
| 11533 | 11693 |
| 11534 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio
n())) return false; | 11694 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio
n())) return false; |
| 11535 return true; | 11695 |
| 11696 if (!_extensions_.IsInitialized()) return false; return true; |
| 11536 } | 11697 } |
| 11537 | 11698 |
| 11538 void EnumValueOptions::Swap(EnumValueOptions* other) { | 11699 void ServiceOptions::Swap(ServiceOptions* other) { |
| 11539 if (other == this) return; | 11700 if (other == this) return; |
| 11540 InternalSwap(other); | 11701 InternalSwap(other); |
| 11541 } | 11702 } |
| 11542 void EnumValueOptions::InternalSwap(EnumValueOptions* other) { | 11703 void ServiceOptions::InternalSwap(ServiceOptions* other) { |
| 11704 std::swap(deprecated_, other->deprecated_); |
| 11543 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); | 11705 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); |
| 11544 std::swap(deprecated_, other->deprecated_); | |
| 11545 std::swap(_has_bits_[0], other->_has_bits_[0]); | 11706 std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 11546 _internal_metadata_.Swap(&other->_internal_metadata_); | 11707 _internal_metadata_.Swap(&other->_internal_metadata_); |
| 11547 std::swap(_cached_size_, other->_cached_size_); | 11708 std::swap(_cached_size_, other->_cached_size_); |
| 11548 _extensions_.Swap(&other->_extensions_); | 11709 _extensions_.Swap(&other->_extensions_); |
| 11549 } | 11710 } |
| 11550 | 11711 |
| 11551 ::google::protobuf::Metadata EnumValueOptions::GetMetadata() const { | 11712 ::google::protobuf::Metadata ServiceOptions::GetMetadata() const { |
| 11552 protobuf_AssignDescriptorsOnce(); | 11713 protobuf_AssignDescriptorsOnce(); |
| 11553 return file_level_metadata[16]; | 11714 ::google::protobuf::Metadata metadata; |
| 11715 metadata.descriptor = ServiceOptions_descriptor_; |
| 11716 metadata.reflection = ServiceOptions_reflection_; |
| 11717 return metadata; |
| 11554 } | 11718 } |
| 11555 | 11719 |
| 11556 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 11720 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 11557 // EnumValueOptions | 11721 // ServiceOptions |
| 11558 | 11722 |
| 11559 // optional bool deprecated = 1 [default = false]; | 11723 // optional bool deprecated = 33 [default = false]; |
| 11560 bool EnumValueOptions::has_deprecated() const { | 11724 bool ServiceOptions::has_deprecated() const { |
| 11561 return (_has_bits_[0] & 0x00000001u) != 0; | 11725 return (_has_bits_[0] & 0x00000001u) != 0; |
| 11562 } | 11726 } |
| 11563 void EnumValueOptions::set_has_deprecated() { | 11727 void ServiceOptions::set_has_deprecated() { |
| 11564 _has_bits_[0] |= 0x00000001u; | 11728 _has_bits_[0] |= 0x00000001u; |
| 11565 } | 11729 } |
| 11566 void EnumValueOptions::clear_has_deprecated() { | 11730 void ServiceOptions::clear_has_deprecated() { |
| 11567 _has_bits_[0] &= ~0x00000001u; | 11731 _has_bits_[0] &= ~0x00000001u; |
| 11568 } | 11732 } |
| 11569 void EnumValueOptions::clear_deprecated() { | 11733 void ServiceOptions::clear_deprecated() { |
| 11570 deprecated_ = false; | 11734 deprecated_ = false; |
| 11571 clear_has_deprecated(); | 11735 clear_has_deprecated(); |
| 11572 } | 11736 } |
| 11573 bool EnumValueOptions::deprecated() const { | 11737 bool ServiceOptions::deprecated() const { |
| 11574 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.depreca
ted) | 11738 // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.deprecate
d) |
| 11575 return deprecated_; | 11739 return deprecated_; |
| 11576 } | 11740 } |
| 11577 void EnumValueOptions::set_deprecated(bool value) { | 11741 void ServiceOptions::set_deprecated(bool value) { |
| 11578 set_has_deprecated(); | 11742 set_has_deprecated(); |
| 11579 deprecated_ = value; | 11743 deprecated_ = value; |
| 11580 // @@protoc_insertion_point(field_set:google.protobuf.EnumValueOptions.depreca
ted) | 11744 // @@protoc_insertion_point(field_set:google.protobuf.ServiceOptions.deprecate
d) |
| 11581 } | 11745 } |
| 11582 | 11746 |
| 11583 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 11747 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 11584 int EnumValueOptions::uninterpreted_option_size() const { | 11748 int ServiceOptions::uninterpreted_option_size() const { |
| 11585 return uninterpreted_option_.size(); | 11749 return uninterpreted_option_.size(); |
| 11586 } | 11750 } |
| 11587 void EnumValueOptions::clear_uninterpreted_option() { | 11751 void ServiceOptions::clear_uninterpreted_option() { |
| 11588 uninterpreted_option_.Clear(); | 11752 uninterpreted_option_.Clear(); |
| 11589 } | 11753 } |
| 11590 const ::google::protobuf::UninterpretedOption& EnumValueOptions::uninterpreted_o
ption(int index) const { | 11754 const ::google::protobuf::UninterpretedOption& ServiceOptions::uninterpreted_opt
ion(int index) const { |
| 11591 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.uninter
preted_option) | 11755 // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.uninterpr
eted_option) |
| 11592 return uninterpreted_option_.Get(index); | 11756 return uninterpreted_option_.Get(index); |
| 11593 } | 11757 } |
| 11594 ::google::protobuf::UninterpretedOption* EnumValueOptions::mutable_uninterpreted
_option(int index) { | 11758 ::google::protobuf::UninterpretedOption* ServiceOptions::mutable_uninterpreted_o
ption(int index) { |
| 11595 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueOptions.uni
nterpreted_option) | 11759 // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceOptions.unint
erpreted_option) |
| 11596 return uninterpreted_option_.Mutable(index); | 11760 return uninterpreted_option_.Mutable(index); |
| 11597 } | 11761 } |
| 11598 ::google::protobuf::UninterpretedOption* EnumValueOptions::add_uninterpreted_opt
ion() { | 11762 ::google::protobuf::UninterpretedOption* ServiceOptions::add_uninterpreted_optio
n() { |
| 11599 // @@protoc_insertion_point(field_add:google.protobuf.EnumValueOptions.uninter
preted_option) | 11763 // @@protoc_insertion_point(field_add:google.protobuf.ServiceOptions.uninterpr
eted_option) |
| 11600 return uninterpreted_option_.Add(); | 11764 return uninterpreted_option_.Add(); |
| 11601 } | 11765 } |
| 11602 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* | 11766 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
| 11603 EnumValueOptions::mutable_uninterpreted_option() { | 11767 ServiceOptions::mutable_uninterpreted_option() { |
| 11604 // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumValueOption
s.uninterpreted_option) | 11768 // @@protoc_insertion_point(field_mutable_list:google.protobuf.ServiceOptions.
uninterpreted_option) |
| 11605 return &uninterpreted_option_; | 11769 return &uninterpreted_option_; |
| 11606 } | 11770 } |
| 11607 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt
ion >& | 11771 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt
ion >& |
| 11608 EnumValueOptions::uninterpreted_option() const { | 11772 ServiceOptions::uninterpreted_option() const { |
| 11609 // @@protoc_insertion_point(field_list:google.protobuf.EnumValueOptions.uninte
rpreted_option) | 11773 // @@protoc_insertion_point(field_list:google.protobuf.ServiceOptions.uninterp
reted_option) |
| 11610 return uninterpreted_option_; | 11774 return uninterpreted_option_; |
| 11611 } | 11775 } |
| 11612 | 11776 |
| 11613 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 11777 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 11614 | 11778 |
| 11615 // =================================================================== | 11779 // =================================================================== |
| 11616 | 11780 |
| 11617 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 11781 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 11618 const int ServiceOptions::kDeprecatedFieldNumber; | 11782 const int MethodOptions::kDeprecatedFieldNumber; |
| 11619 const int ServiceOptions::kUninterpretedOptionFieldNumber; | 11783 const int MethodOptions::kUninterpretedOptionFieldNumber; |
| 11620 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 11784 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 11621 | 11785 |
| 11622 ServiceOptions::ServiceOptions() | 11786 MethodOptions::MethodOptions() |
| 11623 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 11787 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 11624 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
| 11625 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
| 11626 } | |
| 11627 SharedCtor(); | 11788 SharedCtor(); |
| 11628 // @@protoc_insertion_point(constructor:google.protobuf.ServiceOptions) | 11789 // @@protoc_insertion_point(constructor:google.protobuf.MethodOptions) |
| 11629 } | |
| 11630 ServiceOptions::ServiceOptions(const ServiceOptions& from) | |
| 11631 : ::google::protobuf::Message(), | |
| 11632 _internal_metadata_(NULL), | |
| 11633 _has_bits_(from._has_bits_), | |
| 11634 _cached_size_(0), | |
| 11635 uninterpreted_option_(from.uninterpreted_option_) { | |
| 11636 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 11637 _extensions_.MergeFrom(from._extensions_); | |
| 11638 deprecated_ = from.deprecated_; | |
| 11639 // @@protoc_insertion_point(copy_constructor:google.protobuf.ServiceOptions) | |
| 11640 } | 11790 } |
| 11641 | 11791 |
| 11642 void ServiceOptions::SharedCtor() { | 11792 void MethodOptions::InitAsDefaultInstance() { |
| 11793 } |
| 11794 |
| 11795 MethodOptions::MethodOptions(const MethodOptions& from) |
| 11796 : ::google::protobuf::Message(), |
| 11797 _internal_metadata_(NULL) { |
| 11798 SharedCtor(); |
| 11799 MergeFrom(from); |
| 11800 // @@protoc_insertion_point(copy_constructor:google.protobuf.MethodOptions) |
| 11801 } |
| 11802 |
| 11803 void MethodOptions::SharedCtor() { |
| 11643 _cached_size_ = 0; | 11804 _cached_size_ = 0; |
| 11644 deprecated_ = false; | 11805 deprecated_ = false; |
| 11806 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 11645 } | 11807 } |
| 11646 | 11808 |
| 11647 ServiceOptions::~ServiceOptions() { | 11809 MethodOptions::~MethodOptions() { |
| 11648 // @@protoc_insertion_point(destructor:google.protobuf.ServiceOptions) | 11810 // @@protoc_insertion_point(destructor:google.protobuf.MethodOptions) |
| 11649 SharedDtor(); | 11811 SharedDtor(); |
| 11650 } | 11812 } |
| 11651 | 11813 |
| 11652 void ServiceOptions::SharedDtor() { | 11814 void MethodOptions::SharedDtor() { |
| 11815 if (this != default_instance_) { |
| 11816 } |
| 11653 } | 11817 } |
| 11654 | 11818 |
| 11655 void ServiceOptions::SetCachedSize(int size) const { | 11819 void MethodOptions::SetCachedSize(int size) const { |
| 11656 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 11820 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 11657 _cached_size_ = size; | 11821 _cached_size_ = size; |
| 11658 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 11822 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 11659 } | 11823 } |
| 11660 const ::google::protobuf::Descriptor* ServiceOptions::descriptor() { | 11824 const ::google::protobuf::Descriptor* MethodOptions::descriptor() { |
| 11661 protobuf_AssignDescriptorsOnce(); | 11825 protobuf_AssignDescriptorsOnce(); |
| 11662 return file_level_metadata[17].descriptor; | 11826 return MethodOptions_descriptor_; |
| 11663 } | 11827 } |
| 11664 | 11828 |
| 11665 const ServiceOptions& ServiceOptions::default_instance() { | 11829 const MethodOptions& MethodOptions::default_instance() { |
| 11666 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 11830 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
| 11667 return *internal_default_instance(); | 11831 return *default_instance_; |
| 11668 } | 11832 } |
| 11669 | 11833 |
| 11670 ServiceOptions* ServiceOptions::New(::google::protobuf::Arena* arena) const { | 11834 MethodOptions* MethodOptions::default_instance_ = NULL; |
| 11671 ServiceOptions* n = new ServiceOptions; | 11835 |
| 11836 MethodOptions* MethodOptions::New(::google::protobuf::Arena* arena) const { |
| 11837 MethodOptions* n = new MethodOptions; |
| 11672 if (arena != NULL) { | 11838 if (arena != NULL) { |
| 11673 arena->Own(n); | 11839 arena->Own(n); |
| 11674 } | 11840 } |
| 11675 return n; | 11841 return n; |
| 11676 } | 11842 } |
| 11677 | 11843 |
| 11678 void ServiceOptions::Clear() { | 11844 void MethodOptions::Clear() { |
| 11679 // @@protoc_insertion_point(message_clear_start:google.protobuf.ServiceOptions) | 11845 // @@protoc_insertion_point(message_clear_start:google.protobuf.MethodOptions) |
| 11680 _extensions_.Clear(); | 11846 _extensions_.Clear(); |
| 11847 deprecated_ = false; |
| 11681 uninterpreted_option_.Clear(); | 11848 uninterpreted_option_.Clear(); |
| 11682 deprecated_ = false; | 11849 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 11683 _has_bits_.Clear(); | 11850 if (_internal_metadata_.have_unknown_fields()) { |
| 11684 _internal_metadata_.Clear(); | 11851 mutable_unknown_fields()->Clear(); |
| 11852 } |
| 11685 } | 11853 } |
| 11686 | 11854 |
| 11687 bool ServiceOptions::MergePartialFromCodedStream( | 11855 bool MethodOptions::MergePartialFromCodedStream( |
| 11688 ::google::protobuf::io::CodedInputStream* input) { | 11856 ::google::protobuf::io::CodedInputStream* input) { |
| 11689 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 11857 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 11690 ::google::protobuf::uint32 tag; | 11858 ::google::protobuf::uint32 tag; |
| 11691 // @@protoc_insertion_point(parse_start:google.protobuf.ServiceOptions) | 11859 // @@protoc_insertion_point(parse_start:google.protobuf.MethodOptions) |
| 11692 for (;;) { | 11860 for (;;) { |
| 11693 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(16383u); | 11861 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
16383); |
| 11694 tag = p.first; | 11862 tag = p.first; |
| 11695 if (!p.second) goto handle_unusual; | 11863 if (!p.second) goto handle_unusual; |
| 11696 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 11864 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
| 11697 // optional bool deprecated = 33 [default = false]; | 11865 // optional bool deprecated = 33 [default = false]; |
| 11698 case 33: { | 11866 case 33: { |
| 11699 if (tag == 264u) { | 11867 if (tag == 264) { |
| 11700 set_has_deprecated(); | |
| 11701 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 11868 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 11702 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 11869 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
| 11703 input, &deprecated_))); | 11870 input, &deprecated_))); |
| 11871 set_has_deprecated(); |
| 11704 } else { | 11872 } else { |
| 11705 goto handle_unusual; | 11873 goto handle_unusual; |
| 11706 } | 11874 } |
| 11875 if (input->ExpectTag(7994)) goto parse_uninterpreted_option; |
| 11707 break; | 11876 break; |
| 11708 } | 11877 } |
| 11709 | 11878 |
| 11710 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99
9; | 11879 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99
9; |
| 11711 case 999: { | 11880 case 999: { |
| 11712 if (tag == 7994u) { | 11881 if (tag == 7994) { |
| 11882 parse_uninterpreted_option: |
| 11713 DO_(input->IncrementRecursionDepth()); | 11883 DO_(input->IncrementRecursionDepth()); |
| 11884 parse_loop_uninterpreted_option: |
| 11714 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 11885 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
| 11715 input, add_uninterpreted_option())); | 11886 input, add_uninterpreted_option())); |
| 11716 } else { | 11887 } else { |
| 11717 goto handle_unusual; | 11888 goto handle_unusual; |
| 11718 } | 11889 } |
| 11890 if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option; |
| 11719 input->UnsafeDecrementRecursionDepth(); | 11891 input->UnsafeDecrementRecursionDepth(); |
| 11892 if (input->ExpectAtEnd()) goto success; |
| 11720 break; | 11893 break; |
| 11721 } | 11894 } |
| 11722 | 11895 |
| 11723 default: { | 11896 default: { |
| 11724 handle_unusual: | 11897 handle_unusual: |
| 11725 if (tag == 0 || | 11898 if (tag == 0 || |
| 11726 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 11899 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 11727 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 11900 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 11728 goto success; | 11901 goto success; |
| 11729 } | 11902 } |
| 11730 if ((8000u <= tag)) { | 11903 if ((8000u <= tag)) { |
| 11731 DO_(_extensions_.ParseField(tag, input, internal_default_instance(), | 11904 DO_(_extensions_.ParseField(tag, input, default_instance_, |
| 11732 mutable_unknown_fields())); | 11905 mutable_unknown_fields())); |
| 11733 continue; | 11906 continue; |
| 11734 } | 11907 } |
| 11735 DO_(::google::protobuf::internal::WireFormat::SkipField( | 11908 DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 11736 input, tag, mutable_unknown_fields())); | 11909 input, tag, mutable_unknown_fields())); |
| 11737 break; | 11910 break; |
| 11738 } | 11911 } |
| 11739 } | 11912 } |
| 11740 } | 11913 } |
| 11741 success: | 11914 success: |
| 11742 // @@protoc_insertion_point(parse_success:google.protobuf.ServiceOptions) | 11915 // @@protoc_insertion_point(parse_success:google.protobuf.MethodOptions) |
| 11743 return true; | 11916 return true; |
| 11744 failure: | 11917 failure: |
| 11745 // @@protoc_insertion_point(parse_failure:google.protobuf.ServiceOptions) | 11918 // @@protoc_insertion_point(parse_failure:google.protobuf.MethodOptions) |
| 11746 return false; | 11919 return false; |
| 11747 #undef DO_ | 11920 #undef DO_ |
| 11748 } | 11921 } |
| 11749 | 11922 |
| 11750 void ServiceOptions::SerializeWithCachedSizes( | 11923 void MethodOptions::SerializeWithCachedSizes( |
| 11751 ::google::protobuf::io::CodedOutputStream* output) const { | 11924 ::google::protobuf::io::CodedOutputStream* output) const { |
| 11752 // @@protoc_insertion_point(serialize_start:google.protobuf.ServiceOptions) | 11925 // @@protoc_insertion_point(serialize_start:google.protobuf.MethodOptions) |
| 11753 // optional bool deprecated = 33 [default = false]; | 11926 // optional bool deprecated = 33 [default = false]; |
| 11754 if (has_deprecated()) { | 11927 if (has_deprecated()) { |
| 11755 ::google::protobuf::internal::WireFormatLite::WriteBool(33, this->deprecated
(), output); | 11928 ::google::protobuf::internal::WireFormatLite::WriteBool(33, this->deprecated
(), output); |
| 11756 } | 11929 } |
| 11757 | 11930 |
| 11758 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 11931 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 11759 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { | 11932 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 11760 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 11933 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 11761 999, this->uninterpreted_option(i), output); | 11934 999, this->uninterpreted_option(i), output); |
| 11762 } | 11935 } |
| 11763 | 11936 |
| 11764 // Extension range [1000, 536870912) | 11937 // Extension range [1000, 536870912) |
| 11765 _extensions_.SerializeWithCachedSizes( | 11938 _extensions_.SerializeWithCachedSizes( |
| 11766 1000, 536870912, output); | 11939 1000, 536870912, output); |
| 11767 | 11940 |
| 11768 if (_internal_metadata_.have_unknown_fields()) { | 11941 if (_internal_metadata_.have_unknown_fields()) { |
| 11769 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 11942 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 11770 unknown_fields(), output); | 11943 unknown_fields(), output); |
| 11771 } | 11944 } |
| 11772 // @@protoc_insertion_point(serialize_end:google.protobuf.ServiceOptions) | 11945 // @@protoc_insertion_point(serialize_end:google.protobuf.MethodOptions) |
| 11773 } | 11946 } |
| 11774 | 11947 |
| 11775 ::google::protobuf::uint8* ServiceOptions::InternalSerializeWithCachedSizesToArr
ay( | 11948 ::google::protobuf::uint8* MethodOptions::SerializeWithCachedSizesToArray( |
| 11776 bool deterministic, ::google::protobuf::uint8* target) const { | 11949 ::google::protobuf::uint8* target) const { |
| 11777 (void)deterministic; // Unused | 11950 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MethodOpt
ions) |
| 11778 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ServiceOp
tions) | |
| 11779 // optional bool deprecated = 33 [default = false]; | 11951 // optional bool deprecated = 33 [default = false]; |
| 11780 if (has_deprecated()) { | 11952 if (has_deprecated()) { |
| 11781 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(33,
this->deprecated(), target); | 11953 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(33,
this->deprecated(), target); |
| 11782 } | 11954 } |
| 11783 | 11955 |
| 11784 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 11956 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 11785 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { | 11957 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 11786 target = ::google::protobuf::internal::WireFormatLite:: | 11958 target = ::google::protobuf::internal::WireFormatLite:: |
| 11787 InternalWriteMessageNoVirtualToArray( | 11959 WriteMessageNoVirtualToArray( |
| 11788 999, this->uninterpreted_option(i), false, target); | 11960 999, this->uninterpreted_option(i), target); |
| 11789 } | 11961 } |
| 11790 | 11962 |
| 11791 // Extension range [1000, 536870912) | 11963 // Extension range [1000, 536870912) |
| 11792 target = _extensions_.InternalSerializeWithCachedSizesToArray( | 11964 target = _extensions_.SerializeWithCachedSizesToArray( |
| 11793 1000, 536870912, false, target); | 11965 1000, 536870912, target); |
| 11794 | 11966 |
| 11795 if (_internal_metadata_.have_unknown_fields()) { | 11967 if (_internal_metadata_.have_unknown_fields()) { |
| 11796 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 11968 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
| 11797 unknown_fields(), target); | 11969 unknown_fields(), target); |
| 11798 } | 11970 } |
| 11799 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ServiceOpti
ons) | 11971 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MethodOptio
ns) |
| 11800 return target; | 11972 return target; |
| 11801 } | 11973 } |
| 11802 | 11974 |
| 11803 size_t ServiceOptions::ByteSizeLong() const { | 11975 int MethodOptions::ByteSize() const { |
| 11804 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.ServiceOptio
ns) | 11976 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.MethodOption
s) |
| 11805 size_t total_size = 0; | 11977 int total_size = 0; |
| 11978 |
| 11979 // optional bool deprecated = 33 [default = false]; |
| 11980 if (has_deprecated()) { |
| 11981 total_size += 2 + 1; |
| 11982 } |
| 11983 |
| 11984 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 11985 total_size += 2 * this->uninterpreted_option_size(); |
| 11986 for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
| 11987 total_size += |
| 11988 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 11989 this->uninterpreted_option(i)); |
| 11990 } |
| 11806 | 11991 |
| 11807 total_size += _extensions_.ByteSize(); | 11992 total_size += _extensions_.ByteSize(); |
| 11808 | 11993 |
| 11809 if (_internal_metadata_.have_unknown_fields()) { | 11994 if (_internal_metadata_.have_unknown_fields()) { |
| 11810 total_size += | 11995 total_size += |
| 11811 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | 11996 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 11812 unknown_fields()); | 11997 unknown_fields()); |
| 11813 } | 11998 } |
| 11814 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | |
| 11815 { | |
| 11816 unsigned int count = this->uninterpreted_option_size(); | |
| 11817 total_size += 2UL * count; | |
| 11818 for (unsigned int i = 0; i < count; i++) { | |
| 11819 total_size += | |
| 11820 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
| 11821 this->uninterpreted_option(i)); | |
| 11822 } | |
| 11823 } | |
| 11824 | |
| 11825 // optional bool deprecated = 33 [default = false]; | |
| 11826 if (has_deprecated()) { | |
| 11827 total_size += 2 + 1; | |
| 11828 } | |
| 11829 | |
| 11830 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | |
| 11831 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 11999 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 11832 _cached_size_ = cached_size; | 12000 _cached_size_ = total_size; |
| 11833 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 12001 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 11834 return total_size; | 12002 return total_size; |
| 11835 } | 12003 } |
| 11836 | 12004 |
| 11837 void ServiceOptions::MergeFrom(const ::google::protobuf::Message& from) { | 12005 void MethodOptions::MergeFrom(const ::google::protobuf::Message& from) { |
| 11838 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Service
Options) | 12006 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.MethodO
ptions) |
| 11839 GOOGLE_DCHECK_NE(&from, this); | 12007 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 11840 const ServiceOptions* source = | 12008 const MethodOptions* source = |
| 11841 ::google::protobuf::internal::DynamicCastToGenerated<const ServiceOptions>
( | 12009 ::google::protobuf::internal::DynamicCastToGenerated<const MethodOptions>( |
| 11842 &from); | 12010 &from); |
| 11843 if (source == NULL) { | 12011 if (source == NULL) { |
| 11844 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.S
erviceOptions) | 12012 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.M
ethodOptions) |
| 11845 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 12013 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 11846 } else { | 12014 } else { |
| 11847 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.ServiceOptions) | 12015 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.MethodOptions) |
| 11848 MergeFrom(*source); | 12016 MergeFrom(*source); |
| 11849 } | 12017 } |
| 11850 } | 12018 } |
| 11851 | 12019 |
| 11852 void ServiceOptions::MergeFrom(const ServiceOptions& from) { | 12020 void MethodOptions::MergeFrom(const MethodOptions& from) { |
| 11853 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Serv
iceOptions) | 12021 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Meth
odOptions) |
| 11854 GOOGLE_DCHECK_NE(&from, this); | 12022 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 12023 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); |
| 12024 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 12025 if (from.has_deprecated()) { |
| 12026 set_deprecated(from.deprecated()); |
| 12027 } |
| 12028 } |
| 11855 _extensions_.MergeFrom(from._extensions_); | 12029 _extensions_.MergeFrom(from._extensions_); |
| 11856 _internal_metadata_.MergeFrom(from._internal_metadata_); | 12030 if (from._internal_metadata_.have_unknown_fields()) { |
| 11857 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); | 12031 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 11858 if (from.has_deprecated()) { | |
| 11859 set_deprecated(from.deprecated()); | |
| 11860 } | 12032 } |
| 11861 } | 12033 } |
| 11862 | 12034 |
| 11863 void ServiceOptions::CopyFrom(const ::google::protobuf::Message& from) { | 12035 void MethodOptions::CopyFrom(const ::google::protobuf::Message& from) { |
| 11864 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.ServiceO
ptions) | 12036 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.MethodOp
tions) |
| 11865 if (&from == this) return; | 12037 if (&from == this) return; |
| 11866 Clear(); | 12038 Clear(); |
| 11867 MergeFrom(from); | 12039 MergeFrom(from); |
| 11868 } | 12040 } |
| 11869 | 12041 |
| 11870 void ServiceOptions::CopyFrom(const ServiceOptions& from) { | 12042 void MethodOptions::CopyFrom(const MethodOptions& from) { |
| 11871 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Servi
ceOptions) | 12043 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Metho
dOptions) |
| 11872 if (&from == this) return; | 12044 if (&from == this) return; |
| 11873 Clear(); | 12045 Clear(); |
| 11874 MergeFrom(from); | 12046 MergeFrom(from); |
| 11875 } | 12047 } |
| 11876 | 12048 |
| 11877 bool ServiceOptions::IsInitialized() const { | 12049 bool MethodOptions::IsInitialized() const { |
| 11878 if (!_extensions_.IsInitialized()) { | |
| 11879 return false; | |
| 11880 } | |
| 11881 | 12050 |
| 11882 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio
n())) return false; | 12051 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio
n())) return false; |
| 11883 return true; | 12052 |
| 12053 if (!_extensions_.IsInitialized()) return false; return true; |
| 11884 } | 12054 } |
| 11885 | 12055 |
| 11886 void ServiceOptions::Swap(ServiceOptions* other) { | 12056 void MethodOptions::Swap(MethodOptions* other) { |
| 11887 if (other == this) return; | 12057 if (other == this) return; |
| 11888 InternalSwap(other); | 12058 InternalSwap(other); |
| 11889 } | 12059 } |
| 11890 void ServiceOptions::InternalSwap(ServiceOptions* other) { | 12060 void MethodOptions::InternalSwap(MethodOptions* other) { |
| 12061 std::swap(deprecated_, other->deprecated_); |
| 11891 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); | 12062 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); |
| 11892 std::swap(deprecated_, other->deprecated_); | |
| 11893 std::swap(_has_bits_[0], other->_has_bits_[0]); | 12063 std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 11894 _internal_metadata_.Swap(&other->_internal_metadata_); | 12064 _internal_metadata_.Swap(&other->_internal_metadata_); |
| 11895 std::swap(_cached_size_, other->_cached_size_); | 12065 std::swap(_cached_size_, other->_cached_size_); |
| 11896 _extensions_.Swap(&other->_extensions_); | 12066 _extensions_.Swap(&other->_extensions_); |
| 11897 } | 12067 } |
| 11898 | 12068 |
| 11899 ::google::protobuf::Metadata ServiceOptions::GetMetadata() const { | 12069 ::google::protobuf::Metadata MethodOptions::GetMetadata() const { |
| 11900 protobuf_AssignDescriptorsOnce(); | 12070 protobuf_AssignDescriptorsOnce(); |
| 11901 return file_level_metadata[17]; | 12071 ::google::protobuf::Metadata metadata; |
| 12072 metadata.descriptor = MethodOptions_descriptor_; |
| 12073 metadata.reflection = MethodOptions_reflection_; |
| 12074 return metadata; |
| 11902 } | 12075 } |
| 11903 | 12076 |
| 11904 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 12077 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 11905 // ServiceOptions | 12078 // MethodOptions |
| 11906 | 12079 |
| 11907 // optional bool deprecated = 33 [default = false]; | 12080 // optional bool deprecated = 33 [default = false]; |
| 11908 bool ServiceOptions::has_deprecated() const { | 12081 bool MethodOptions::has_deprecated() const { |
| 11909 return (_has_bits_[0] & 0x00000001u) != 0; | 12082 return (_has_bits_[0] & 0x00000001u) != 0; |
| 11910 } | 12083 } |
| 11911 void ServiceOptions::set_has_deprecated() { | 12084 void MethodOptions::set_has_deprecated() { |
| 11912 _has_bits_[0] |= 0x00000001u; | 12085 _has_bits_[0] |= 0x00000001u; |
| 11913 } | 12086 } |
| 11914 void ServiceOptions::clear_has_deprecated() { | 12087 void MethodOptions::clear_has_deprecated() { |
| 11915 _has_bits_[0] &= ~0x00000001u; | 12088 _has_bits_[0] &= ~0x00000001u; |
| 11916 } | 12089 } |
| 11917 void ServiceOptions::clear_deprecated() { | 12090 void MethodOptions::clear_deprecated() { |
| 11918 deprecated_ = false; | 12091 deprecated_ = false; |
| 11919 clear_has_deprecated(); | 12092 clear_has_deprecated(); |
| 11920 } | 12093 } |
| 11921 bool ServiceOptions::deprecated() const { | 12094 bool MethodOptions::deprecated() const { |
| 11922 // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.deprecate
d) | 12095 // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.deprecated
) |
| 11923 return deprecated_; | 12096 return deprecated_; |
| 11924 } | 12097 } |
| 11925 void ServiceOptions::set_deprecated(bool value) { | 12098 void MethodOptions::set_deprecated(bool value) { |
| 11926 set_has_deprecated(); | 12099 set_has_deprecated(); |
| 11927 deprecated_ = value; | 12100 deprecated_ = value; |
| 11928 // @@protoc_insertion_point(field_set:google.protobuf.ServiceOptions.deprecate
d) | 12101 // @@protoc_insertion_point(field_set:google.protobuf.MethodOptions.deprecated
) |
| 11929 } | 12102 } |
| 11930 | 12103 |
| 11931 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 12104 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 11932 int ServiceOptions::uninterpreted_option_size() const { | 12105 int MethodOptions::uninterpreted_option_size() const { |
| 11933 return uninterpreted_option_.size(); | 12106 return uninterpreted_option_.size(); |
| 11934 } | 12107 } |
| 11935 void ServiceOptions::clear_uninterpreted_option() { | 12108 void MethodOptions::clear_uninterpreted_option() { |
| 11936 uninterpreted_option_.Clear(); | 12109 uninterpreted_option_.Clear(); |
| 11937 } | 12110 } |
| 11938 const ::google::protobuf::UninterpretedOption& ServiceOptions::uninterpreted_opt
ion(int index) const { | 12111 const ::google::protobuf::UninterpretedOption& MethodOptions::uninterpreted_opti
on(int index) const { |
| 11939 // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.uninterpr
eted_option) | 12112 // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.uninterpre
ted_option) |
| 11940 return uninterpreted_option_.Get(index); | 12113 return uninterpreted_option_.Get(index); |
| 11941 } | 12114 } |
| 11942 ::google::protobuf::UninterpretedOption* ServiceOptions::mutable_uninterpreted_o
ption(int index) { | 12115 ::google::protobuf::UninterpretedOption* MethodOptions::mutable_uninterpreted_op
tion(int index) { |
| 11943 // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceOptions.unint
erpreted_option) | 12116 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodOptions.uninte
rpreted_option) |
| 11944 return uninterpreted_option_.Mutable(index); | 12117 return uninterpreted_option_.Mutable(index); |
| 11945 } | 12118 } |
| 11946 ::google::protobuf::UninterpretedOption* ServiceOptions::add_uninterpreted_optio
n() { | 12119 ::google::protobuf::UninterpretedOption* MethodOptions::add_uninterpreted_option
() { |
| 11947 // @@protoc_insertion_point(field_add:google.protobuf.ServiceOptions.uninterpr
eted_option) | 12120 // @@protoc_insertion_point(field_add:google.protobuf.MethodOptions.uninterpre
ted_option) |
| 11948 return uninterpreted_option_.Add(); | 12121 return uninterpreted_option_.Add(); |
| 11949 } | 12122 } |
| 11950 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* | 12123 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
| 11951 ServiceOptions::mutable_uninterpreted_option() { | 12124 MethodOptions::mutable_uninterpreted_option() { |
| 11952 // @@protoc_insertion_point(field_mutable_list:google.protobuf.ServiceOptions.
uninterpreted_option) | 12125 // @@protoc_insertion_point(field_mutable_list:google.protobuf.MethodOptions.u
ninterpreted_option) |
| 11953 return &uninterpreted_option_; | 12126 return &uninterpreted_option_; |
| 11954 } | 12127 } |
| 11955 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt
ion >& | 12128 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt
ion >& |
| 11956 ServiceOptions::uninterpreted_option() const { | 12129 MethodOptions::uninterpreted_option() const { |
| 11957 // @@protoc_insertion_point(field_list:google.protobuf.ServiceOptions.uninterp
reted_option) | 12130 // @@protoc_insertion_point(field_list:google.protobuf.MethodOptions.uninterpr
eted_option) |
| 11958 return uninterpreted_option_; | 12131 return uninterpreted_option_; |
| 11959 } | 12132 } |
| 11960 | 12133 |
| 11961 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 12134 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 11962 | 12135 |
| 11963 // =================================================================== | 12136 // =================================================================== |
| 11964 | 12137 |
| 11965 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 12138 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 11966 const int MethodOptions::kDeprecatedFieldNumber; | 12139 const int UninterpretedOption_NamePart::kNamePartFieldNumber; |
| 11967 const int MethodOptions::kIdempotencyLevelFieldNumber; | 12140 const int UninterpretedOption_NamePart::kIsExtensionFieldNumber; |
| 11968 const int MethodOptions::kUninterpretedOptionFieldNumber; | |
| 11969 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 12141 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 11970 | 12142 |
| 11971 MethodOptions::MethodOptions() | 12143 UninterpretedOption_NamePart::UninterpretedOption_NamePart() |
| 11972 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 12144 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 11973 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
| 11974 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
| 11975 } | |
| 11976 SharedCtor(); | 12145 SharedCtor(); |
| 11977 // @@protoc_insertion_point(constructor:google.protobuf.MethodOptions) | 12146 // @@protoc_insertion_point(constructor:google.protobuf.UninterpretedOption.Na
mePart) |
| 11978 } | |
| 11979 MethodOptions::MethodOptions(const MethodOptions& from) | |
| 11980 : ::google::protobuf::Message(), | |
| 11981 _internal_metadata_(NULL), | |
| 11982 _has_bits_(from._has_bits_), | |
| 11983 _cached_size_(0), | |
| 11984 uninterpreted_option_(from.uninterpreted_option_) { | |
| 11985 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 11986 _extensions_.MergeFrom(from._extensions_); | |
| 11987 ::memcpy(&deprecated_, &from.deprecated_, | |
| 11988 reinterpret_cast<char*>(&idempotency_level_) - | |
| 11989 reinterpret_cast<char*>(&deprecated_) + sizeof(idempotency_level_)); | |
| 11990 // @@protoc_insertion_point(copy_constructor:google.protobuf.MethodOptions) | |
| 11991 } | 12147 } |
| 11992 | 12148 |
| 11993 void MethodOptions::SharedCtor() { | 12149 void UninterpretedOption_NamePart::InitAsDefaultInstance() { |
| 11994 _cached_size_ = 0; | |
| 11995 ::memset(&deprecated_, 0, reinterpret_cast<char*>(&idempotency_level_) - | |
| 11996 reinterpret_cast<char*>(&deprecated_) + sizeof(idempotency_level_)); | |
| 11997 } | 12150 } |
| 11998 | 12151 |
| 11999 MethodOptions::~MethodOptions() { | 12152 UninterpretedOption_NamePart::UninterpretedOption_NamePart(const UninterpretedOp
tion_NamePart& from) |
| 12000 // @@protoc_insertion_point(destructor:google.protobuf.MethodOptions) | 12153 : ::google::protobuf::Message(), |
| 12154 _internal_metadata_(NULL) { |
| 12155 SharedCtor(); |
| 12156 MergeFrom(from); |
| 12157 // @@protoc_insertion_point(copy_constructor:google.protobuf.UninterpretedOpti
on.NamePart) |
| 12158 } |
| 12159 |
| 12160 void UninterpretedOption_NamePart::SharedCtor() { |
| 12161 ::google::protobuf::internal::GetEmptyString(); |
| 12162 _cached_size_ = 0; |
| 12163 name_part_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
| 12164 is_extension_ = false; |
| 12165 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 12166 } |
| 12167 |
| 12168 UninterpretedOption_NamePart::~UninterpretedOption_NamePart() { |
| 12169 // @@protoc_insertion_point(destructor:google.protobuf.UninterpretedOption.Nam
ePart) |
| 12001 SharedDtor(); | 12170 SharedDtor(); |
| 12002 } | 12171 } |
| 12003 | 12172 |
| 12004 void MethodOptions::SharedDtor() { | 12173 void UninterpretedOption_NamePart::SharedDtor() { |
| 12174 name_part_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); |
| 12175 if (this != default_instance_) { |
| 12176 } |
| 12005 } | 12177 } |
| 12006 | 12178 |
| 12007 void MethodOptions::SetCachedSize(int size) const { | 12179 void UninterpretedOption_NamePart::SetCachedSize(int size) const { |
| 12008 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 12180 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 12009 _cached_size_ = size; | 12181 _cached_size_ = size; |
| 12010 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 12182 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 12011 } | 12183 } |
| 12012 const ::google::protobuf::Descriptor* MethodOptions::descriptor() { | 12184 const ::google::protobuf::Descriptor* UninterpretedOption_NamePart::descriptor()
{ |
| 12013 protobuf_AssignDescriptorsOnce(); | 12185 protobuf_AssignDescriptorsOnce(); |
| 12014 return file_level_metadata[18].descriptor; | 12186 return UninterpretedOption_NamePart_descriptor_; |
| 12015 } | 12187 } |
| 12016 | 12188 |
| 12017 const MethodOptions& MethodOptions::default_instance() { | 12189 const UninterpretedOption_NamePart& UninterpretedOption_NamePart::default_instan
ce() { |
| 12018 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 12190 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
| 12019 return *internal_default_instance(); | 12191 return *default_instance_; |
| 12020 } | 12192 } |
| 12021 | 12193 |
| 12022 MethodOptions* MethodOptions::New(::google::protobuf::Arena* arena) const { | 12194 UninterpretedOption_NamePart* UninterpretedOption_NamePart::default_instance_ =
NULL; |
| 12023 MethodOptions* n = new MethodOptions; | 12195 |
| 12196 UninterpretedOption_NamePart* UninterpretedOption_NamePart::New(::google::protob
uf::Arena* arena) const { |
| 12197 UninterpretedOption_NamePart* n = new UninterpretedOption_NamePart; |
| 12024 if (arena != NULL) { | 12198 if (arena != NULL) { |
| 12025 arena->Own(n); | 12199 arena->Own(n); |
| 12026 } | 12200 } |
| 12027 return n; | 12201 return n; |
| 12028 } | 12202 } |
| 12029 | 12203 |
| 12030 void MethodOptions::Clear() { | 12204 void UninterpretedOption_NamePart::Clear() { |
| 12031 // @@protoc_insertion_point(message_clear_start:google.protobuf.MethodOptions) | 12205 // @@protoc_insertion_point(message_clear_start:google.protobuf.UninterpretedOpt
ion.NamePart) |
| 12032 _extensions_.Clear(); | |
| 12033 uninterpreted_option_.Clear(); | |
| 12034 if (_has_bits_[0 / 32] & 3u) { | 12206 if (_has_bits_[0 / 32] & 3u) { |
| 12035 ::memset(&deprecated_, 0, reinterpret_cast<char*>(&idempotency_level_) - | 12207 if (has_name_part()) { |
| 12036 reinterpret_cast<char*>(&deprecated_) + sizeof(idempotency_level_)); | 12208 name_part_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); |
| 12209 } |
| 12210 is_extension_ = false; |
| 12037 } | 12211 } |
| 12038 _has_bits_.Clear(); | 12212 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 12039 _internal_metadata_.Clear(); | 12213 if (_internal_metadata_.have_unknown_fields()) { |
| 12214 mutable_unknown_fields()->Clear(); |
| 12215 } |
| 12040 } | 12216 } |
| 12041 | 12217 |
| 12042 bool MethodOptions::MergePartialFromCodedStream( | 12218 bool UninterpretedOption_NamePart::MergePartialFromCodedStream( |
| 12043 ::google::protobuf::io::CodedInputStream* input) { | 12219 ::google::protobuf::io::CodedInputStream* input) { |
| 12044 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 12220 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 12045 ::google::protobuf::uint32 tag; | 12221 ::google::protobuf::uint32 tag; |
| 12046 // @@protoc_insertion_point(parse_start:google.protobuf.MethodOptions) | 12222 // @@protoc_insertion_point(parse_start:google.protobuf.UninterpretedOption.Na
mePart) |
| 12047 for (;;) { | 12223 for (;;) { |
| 12048 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(16383u); | 12224 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
| 12049 tag = p.first; | 12225 tag = p.first; |
| 12050 if (!p.second) goto handle_unusual; | 12226 if (!p.second) goto handle_unusual; |
| 12051 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 12227 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
| 12052 // optional bool deprecated = 33 [default = false]; | 12228 // required string name_part = 1; |
| 12053 case 33: { | 12229 case 1: { |
| 12054 if (tag == 264u) { | 12230 if (tag == 10) { |
| 12055 set_has_deprecated(); | 12231 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 12056 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 12232 input, this->mutable_name_part())); |
| 12057 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 12233 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 12058 input, &deprecated_))); | 12234 this->name_part().data(), this->name_part().length(), |
| 12235 ::google::protobuf::internal::WireFormat::PARSE, |
| 12236 "google.protobuf.UninterpretedOption.NamePart.name_part"); |
| 12059 } else { | 12237 } else { |
| 12060 goto handle_unusual; | 12238 goto handle_unusual; |
| 12061 } | 12239 } |
| 12240 if (input->ExpectTag(16)) goto parse_is_extension; |
| 12062 break; | 12241 break; |
| 12063 } | 12242 } |
| 12064 | 12243 |
| 12065 // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_le
vel = 34 [default = IDEMPOTENCY_UNKNOWN]; | 12244 // required bool is_extension = 2; |
| 12066 case 34: { | 12245 case 2: { |
| 12067 if (tag == 272u) { | 12246 if (tag == 16) { |
| 12068 int value; | 12247 parse_is_extension: |
| 12069 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 12248 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 12070 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>
( | 12249 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
| 12071 input, &value))); | 12250 input, &is_extension_))); |
| 12072 if (::google::protobuf::MethodOptions_IdempotencyLevel_IsValid(value))
{ | 12251 set_has_is_extension(); |
| 12073 set_idempotency_level(static_cast< ::google::protobuf::MethodOptions
_IdempotencyLevel >(value)); | |
| 12074 } else { | |
| 12075 mutable_unknown_fields()->AddVarint(34, value); | |
| 12076 } | |
| 12077 } else { | 12252 } else { |
| 12078 goto handle_unusual; | 12253 goto handle_unusual; |
| 12079 } | 12254 } |
| 12255 if (input->ExpectAtEnd()) goto success; |
| 12080 break; | 12256 break; |
| 12081 } | 12257 } |
| 12082 | 12258 |
| 12083 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99
9; | |
| 12084 case 999: { | |
| 12085 if (tag == 7994u) { | |
| 12086 DO_(input->IncrementRecursionDepth()); | |
| 12087 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | |
| 12088 input, add_uninterpreted_option())); | |
| 12089 } else { | |
| 12090 goto handle_unusual; | |
| 12091 } | |
| 12092 input->UnsafeDecrementRecursionDepth(); | |
| 12093 break; | |
| 12094 } | |
| 12095 | |
| 12096 default: { | 12259 default: { |
| 12097 handle_unusual: | 12260 handle_unusual: |
| 12098 if (tag == 0 || | 12261 if (tag == 0 || |
| 12099 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 12262 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 12100 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 12263 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 12101 goto success; | 12264 goto success; |
| 12102 } | 12265 } |
| 12103 if ((8000u <= tag)) { | |
| 12104 DO_(_extensions_.ParseField(tag, input, internal_default_instance(), | |
| 12105 mutable_unknown_fields())); | |
| 12106 continue; | |
| 12107 } | |
| 12108 DO_(::google::protobuf::internal::WireFormat::SkipField( | 12266 DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 12109 input, tag, mutable_unknown_fields())); | 12267 input, tag, mutable_unknown_fields())); |
| 12110 break; | 12268 break; |
| 12111 } | 12269 } |
| 12112 } | 12270 } |
| 12113 } | 12271 } |
| 12114 success: | 12272 success: |
| 12115 // @@protoc_insertion_point(parse_success:google.protobuf.MethodOptions) | |
| 12116 return true; | |
| 12117 failure: | |
| 12118 // @@protoc_insertion_point(parse_failure:google.protobuf.MethodOptions) | |
| 12119 return false; | |
| 12120 #undef DO_ | |
| 12121 } | |
| 12122 | |
| 12123 void MethodOptions::SerializeWithCachedSizes( | |
| 12124 ::google::protobuf::io::CodedOutputStream* output) const { | |
| 12125 // @@protoc_insertion_point(serialize_start:google.protobuf.MethodOptions) | |
| 12126 // optional bool deprecated = 33 [default = false]; | |
| 12127 if (has_deprecated()) { | |
| 12128 ::google::protobuf::internal::WireFormatLite::WriteBool(33, this->deprecated
(), output); | |
| 12129 } | |
| 12130 | |
| 12131 // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level
= 34 [default = IDEMPOTENCY_UNKNOWN]; | |
| 12132 if (has_idempotency_level()) { | |
| 12133 ::google::protobuf::internal::WireFormatLite::WriteEnum( | |
| 12134 34, this->idempotency_level(), output); | |
| 12135 } | |
| 12136 | |
| 12137 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | |
| 12138 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { | |
| 12139 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | |
| 12140 999, this->uninterpreted_option(i), output); | |
| 12141 } | |
| 12142 | |
| 12143 // Extension range [1000, 536870912) | |
| 12144 _extensions_.SerializeWithCachedSizes( | |
| 12145 1000, 536870912, output); | |
| 12146 | |
| 12147 if (_internal_metadata_.have_unknown_fields()) { | |
| 12148 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | |
| 12149 unknown_fields(), output); | |
| 12150 } | |
| 12151 // @@protoc_insertion_point(serialize_end:google.protobuf.MethodOptions) | |
| 12152 } | |
| 12153 | |
| 12154 ::google::protobuf::uint8* MethodOptions::InternalSerializeWithCachedSizesToArra
y( | |
| 12155 bool deterministic, ::google::protobuf::uint8* target) const { | |
| 12156 (void)deterministic; // Unused | |
| 12157 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MethodOpt
ions) | |
| 12158 // optional bool deprecated = 33 [default = false]; | |
| 12159 if (has_deprecated()) { | |
| 12160 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(33,
this->deprecated(), target); | |
| 12161 } | |
| 12162 | |
| 12163 // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level
= 34 [default = IDEMPOTENCY_UNKNOWN]; | |
| 12164 if (has_idempotency_level()) { | |
| 12165 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( | |
| 12166 34, this->idempotency_level(), target); | |
| 12167 } | |
| 12168 | |
| 12169 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | |
| 12170 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { | |
| 12171 target = ::google::protobuf::internal::WireFormatLite:: | |
| 12172 InternalWriteMessageNoVirtualToArray( | |
| 12173 999, this->uninterpreted_option(i), false, target); | |
| 12174 } | |
| 12175 | |
| 12176 // Extension range [1000, 536870912) | |
| 12177 target = _extensions_.InternalSerializeWithCachedSizesToArray( | |
| 12178 1000, 536870912, false, target); | |
| 12179 | |
| 12180 if (_internal_metadata_.have_unknown_fields()) { | |
| 12181 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | |
| 12182 unknown_fields(), target); | |
| 12183 } | |
| 12184 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MethodOptio
ns) | |
| 12185 return target; | |
| 12186 } | |
| 12187 | |
| 12188 size_t MethodOptions::ByteSizeLong() const { | |
| 12189 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.MethodOption
s) | |
| 12190 size_t total_size = 0; | |
| 12191 | |
| 12192 total_size += _extensions_.ByteSize(); | |
| 12193 | |
| 12194 if (_internal_metadata_.have_unknown_fields()) { | |
| 12195 total_size += | |
| 12196 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | |
| 12197 unknown_fields()); | |
| 12198 } | |
| 12199 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | |
| 12200 { | |
| 12201 unsigned int count = this->uninterpreted_option_size(); | |
| 12202 total_size += 2UL * count; | |
| 12203 for (unsigned int i = 0; i < count; i++) { | |
| 12204 total_size += | |
| 12205 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
| 12206 this->uninterpreted_option(i)); | |
| 12207 } | |
| 12208 } | |
| 12209 | |
| 12210 if (_has_bits_[0 / 32] & 3u) { | |
| 12211 // optional bool deprecated = 33 [default = false]; | |
| 12212 if (has_deprecated()) { | |
| 12213 total_size += 2 + 1; | |
| 12214 } | |
| 12215 | |
| 12216 // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_leve
l = 34 [default = IDEMPOTENCY_UNKNOWN]; | |
| 12217 if (has_idempotency_level()) { | |
| 12218 total_size += 2 + | |
| 12219 ::google::protobuf::internal::WireFormatLite::EnumSize(this->idempotency
_level()); | |
| 12220 } | |
| 12221 | |
| 12222 } | |
| 12223 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | |
| 12224 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | |
| 12225 _cached_size_ = cached_size; | |
| 12226 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | |
| 12227 return total_size; | |
| 12228 } | |
| 12229 | |
| 12230 void MethodOptions::MergeFrom(const ::google::protobuf::Message& from) { | |
| 12231 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.MethodO
ptions) | |
| 12232 GOOGLE_DCHECK_NE(&from, this); | |
| 12233 const MethodOptions* source = | |
| 12234 ::google::protobuf::internal::DynamicCastToGenerated<const MethodOptions>( | |
| 12235 &from); | |
| 12236 if (source == NULL) { | |
| 12237 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.M
ethodOptions) | |
| 12238 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | |
| 12239 } else { | |
| 12240 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.MethodOptions) | |
| 12241 MergeFrom(*source); | |
| 12242 } | |
| 12243 } | |
| 12244 | |
| 12245 void MethodOptions::MergeFrom(const MethodOptions& from) { | |
| 12246 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Meth
odOptions) | |
| 12247 GOOGLE_DCHECK_NE(&from, this); | |
| 12248 _extensions_.MergeFrom(from._extensions_); | |
| 12249 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 12250 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); | |
| 12251 if (from._has_bits_[0 / 32] & 3u) { | |
| 12252 if (from.has_deprecated()) { | |
| 12253 set_deprecated(from.deprecated()); | |
| 12254 } | |
| 12255 if (from.has_idempotency_level()) { | |
| 12256 set_idempotency_level(from.idempotency_level()); | |
| 12257 } | |
| 12258 } | |
| 12259 } | |
| 12260 | |
| 12261 void MethodOptions::CopyFrom(const ::google::protobuf::Message& from) { | |
| 12262 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.MethodOp
tions) | |
| 12263 if (&from == this) return; | |
| 12264 Clear(); | |
| 12265 MergeFrom(from); | |
| 12266 } | |
| 12267 | |
| 12268 void MethodOptions::CopyFrom(const MethodOptions& from) { | |
| 12269 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Metho
dOptions) | |
| 12270 if (&from == this) return; | |
| 12271 Clear(); | |
| 12272 MergeFrom(from); | |
| 12273 } | |
| 12274 | |
| 12275 bool MethodOptions::IsInitialized() const { | |
| 12276 if (!_extensions_.IsInitialized()) { | |
| 12277 return false; | |
| 12278 } | |
| 12279 | |
| 12280 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio
n())) return false; | |
| 12281 return true; | |
| 12282 } | |
| 12283 | |
| 12284 void MethodOptions::Swap(MethodOptions* other) { | |
| 12285 if (other == this) return; | |
| 12286 InternalSwap(other); | |
| 12287 } | |
| 12288 void MethodOptions::InternalSwap(MethodOptions* other) { | |
| 12289 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); | |
| 12290 std::swap(deprecated_, other->deprecated_); | |
| 12291 std::swap(idempotency_level_, other->idempotency_level_); | |
| 12292 std::swap(_has_bits_[0], other->_has_bits_[0]); | |
| 12293 _internal_metadata_.Swap(&other->_internal_metadata_); | |
| 12294 std::swap(_cached_size_, other->_cached_size_); | |
| 12295 _extensions_.Swap(&other->_extensions_); | |
| 12296 } | |
| 12297 | |
| 12298 ::google::protobuf::Metadata MethodOptions::GetMetadata() const { | |
| 12299 protobuf_AssignDescriptorsOnce(); | |
| 12300 return file_level_metadata[18]; | |
| 12301 } | |
| 12302 | |
| 12303 #if PROTOBUF_INLINE_NOT_IN_HEADERS | |
| 12304 // MethodOptions | |
| 12305 | |
| 12306 // optional bool deprecated = 33 [default = false]; | |
| 12307 bool MethodOptions::has_deprecated() const { | |
| 12308 return (_has_bits_[0] & 0x00000001u) != 0; | |
| 12309 } | |
| 12310 void MethodOptions::set_has_deprecated() { | |
| 12311 _has_bits_[0] |= 0x00000001u; | |
| 12312 } | |
| 12313 void MethodOptions::clear_has_deprecated() { | |
| 12314 _has_bits_[0] &= ~0x00000001u; | |
| 12315 } | |
| 12316 void MethodOptions::clear_deprecated() { | |
| 12317 deprecated_ = false; | |
| 12318 clear_has_deprecated(); | |
| 12319 } | |
| 12320 bool MethodOptions::deprecated() const { | |
| 12321 // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.deprecated
) | |
| 12322 return deprecated_; | |
| 12323 } | |
| 12324 void MethodOptions::set_deprecated(bool value) { | |
| 12325 set_has_deprecated(); | |
| 12326 deprecated_ = value; | |
| 12327 // @@protoc_insertion_point(field_set:google.protobuf.MethodOptions.deprecated
) | |
| 12328 } | |
| 12329 | |
| 12330 // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level =
34 [default = IDEMPOTENCY_UNKNOWN]; | |
| 12331 bool MethodOptions::has_idempotency_level() const { | |
| 12332 return (_has_bits_[0] & 0x00000002u) != 0; | |
| 12333 } | |
| 12334 void MethodOptions::set_has_idempotency_level() { | |
| 12335 _has_bits_[0] |= 0x00000002u; | |
| 12336 } | |
| 12337 void MethodOptions::clear_has_idempotency_level() { | |
| 12338 _has_bits_[0] &= ~0x00000002u; | |
| 12339 } | |
| 12340 void MethodOptions::clear_idempotency_level() { | |
| 12341 idempotency_level_ = 0; | |
| 12342 clear_has_idempotency_level(); | |
| 12343 } | |
| 12344 ::google::protobuf::MethodOptions_IdempotencyLevel MethodOptions::idempotency_le
vel() const { | |
| 12345 // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.idempotenc
y_level) | |
| 12346 return static_cast< ::google::protobuf::MethodOptions_IdempotencyLevel >(idemp
otency_level_); | |
| 12347 } | |
| 12348 void MethodOptions::set_idempotency_level(::google::protobuf::MethodOptions_Idem
potencyLevel value) { | |
| 12349 assert(::google::protobuf::MethodOptions_IdempotencyLevel_IsValid(value)); | |
| 12350 set_has_idempotency_level(); | |
| 12351 idempotency_level_ = value; | |
| 12352 // @@protoc_insertion_point(field_set:google.protobuf.MethodOptions.idempotenc
y_level) | |
| 12353 } | |
| 12354 | |
| 12355 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | |
| 12356 int MethodOptions::uninterpreted_option_size() const { | |
| 12357 return uninterpreted_option_.size(); | |
| 12358 } | |
| 12359 void MethodOptions::clear_uninterpreted_option() { | |
| 12360 uninterpreted_option_.Clear(); | |
| 12361 } | |
| 12362 const ::google::protobuf::UninterpretedOption& MethodOptions::uninterpreted_opti
on(int index) const { | |
| 12363 // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.uninterpre
ted_option) | |
| 12364 return uninterpreted_option_.Get(index); | |
| 12365 } | |
| 12366 ::google::protobuf::UninterpretedOption* MethodOptions::mutable_uninterpreted_op
tion(int index) { | |
| 12367 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodOptions.uninte
rpreted_option) | |
| 12368 return uninterpreted_option_.Mutable(index); | |
| 12369 } | |
| 12370 ::google::protobuf::UninterpretedOption* MethodOptions::add_uninterpreted_option
() { | |
| 12371 // @@protoc_insertion_point(field_add:google.protobuf.MethodOptions.uninterpre
ted_option) | |
| 12372 return uninterpreted_option_.Add(); | |
| 12373 } | |
| 12374 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* | |
| 12375 MethodOptions::mutable_uninterpreted_option() { | |
| 12376 // @@protoc_insertion_point(field_mutable_list:google.protobuf.MethodOptions.u
ninterpreted_option) | |
| 12377 return &uninterpreted_option_; | |
| 12378 } | |
| 12379 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt
ion >& | |
| 12380 MethodOptions::uninterpreted_option() const { | |
| 12381 // @@protoc_insertion_point(field_list:google.protobuf.MethodOptions.uninterpr
eted_option) | |
| 12382 return uninterpreted_option_; | |
| 12383 } | |
| 12384 | |
| 12385 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | |
| 12386 | |
| 12387 // =================================================================== | |
| 12388 | |
| 12389 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | |
| 12390 const int UninterpretedOption_NamePart::kNamePartFieldNumber; | |
| 12391 const int UninterpretedOption_NamePart::kIsExtensionFieldNumber; | |
| 12392 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | |
| 12393 | |
| 12394 UninterpretedOption_NamePart::UninterpretedOption_NamePart() | |
| 12395 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | |
| 12396 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
| 12397 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
| 12398 } | |
| 12399 SharedCtor(); | |
| 12400 // @@protoc_insertion_point(constructor:google.protobuf.UninterpretedOption.Na
mePart) | |
| 12401 } | |
| 12402 UninterpretedOption_NamePart::UninterpretedOption_NamePart(const UninterpretedOp
tion_NamePart& from) | |
| 12403 : ::google::protobuf::Message(), | |
| 12404 _internal_metadata_(NULL), | |
| 12405 _has_bits_(from._has_bits_), | |
| 12406 _cached_size_(0) { | |
| 12407 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 12408 name_part_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | |
| 12409 if (from.has_name_part()) { | |
| 12410 name_part_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAl
readyInited(), from.name_part_); | |
| 12411 } | |
| 12412 is_extension_ = from.is_extension_; | |
| 12413 // @@protoc_insertion_point(copy_constructor:google.protobuf.UninterpretedOpti
on.NamePart) | |
| 12414 } | |
| 12415 | |
| 12416 void UninterpretedOption_NamePart::SharedCtor() { | |
| 12417 _cached_size_ = 0; | |
| 12418 name_part_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | |
| 12419 is_extension_ = false; | |
| 12420 } | |
| 12421 | |
| 12422 UninterpretedOption_NamePart::~UninterpretedOption_NamePart() { | |
| 12423 // @@protoc_insertion_point(destructor:google.protobuf.UninterpretedOption.Nam
ePart) | |
| 12424 SharedDtor(); | |
| 12425 } | |
| 12426 | |
| 12427 void UninterpretedOption_NamePart::SharedDtor() { | |
| 12428 name_part_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); | |
| 12429 } | |
| 12430 | |
| 12431 void UninterpretedOption_NamePart::SetCachedSize(int size) const { | |
| 12432 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | |
| 12433 _cached_size_ = size; | |
| 12434 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | |
| 12435 } | |
| 12436 const ::google::protobuf::Descriptor* UninterpretedOption_NamePart::descriptor()
{ | |
| 12437 protobuf_AssignDescriptorsOnce(); | |
| 12438 return file_level_metadata[19].descriptor; | |
| 12439 } | |
| 12440 | |
| 12441 const UninterpretedOption_NamePart& UninterpretedOption_NamePart::default_instan
ce() { | |
| 12442 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
| 12443 return *internal_default_instance(); | |
| 12444 } | |
| 12445 | |
| 12446 UninterpretedOption_NamePart* UninterpretedOption_NamePart::New(::google::protob
uf::Arena* arena) const { | |
| 12447 UninterpretedOption_NamePart* n = new UninterpretedOption_NamePart; | |
| 12448 if (arena != NULL) { | |
| 12449 arena->Own(n); | |
| 12450 } | |
| 12451 return n; | |
| 12452 } | |
| 12453 | |
| 12454 void UninterpretedOption_NamePart::Clear() { | |
| 12455 // @@protoc_insertion_point(message_clear_start:google.protobuf.UninterpretedOpt
ion.NamePart) | |
| 12456 if (has_name_part()) { | |
| 12457 GOOGLE_DCHECK(!name_part_.IsDefault(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited())); | |
| 12458 (*name_part_.UnsafeRawStringPointer())->clear(); | |
| 12459 } | |
| 12460 is_extension_ = false; | |
| 12461 _has_bits_.Clear(); | |
| 12462 _internal_metadata_.Clear(); | |
| 12463 } | |
| 12464 | |
| 12465 bool UninterpretedOption_NamePart::MergePartialFromCodedStream( | |
| 12466 ::google::protobuf::io::CodedInputStream* input) { | |
| 12467 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | |
| 12468 ::google::protobuf::uint32 tag; | |
| 12469 // @@protoc_insertion_point(parse_start:google.protobuf.UninterpretedOption.Na
mePart) | |
| 12470 for (;;) { | |
| 12471 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | |
| 12472 tag = p.first; | |
| 12473 if (!p.second) goto handle_unusual; | |
| 12474 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | |
| 12475 // required string name_part = 1; | |
| 12476 case 1: { | |
| 12477 if (tag == 10u) { | |
| 12478 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | |
| 12479 input, this->mutable_name_part())); | |
| 12480 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | |
| 12481 this->name_part().data(), this->name_part().length(), | |
| 12482 ::google::protobuf::internal::WireFormat::PARSE, | |
| 12483 "google.protobuf.UninterpretedOption.NamePart.name_part"); | |
| 12484 } else { | |
| 12485 goto handle_unusual; | |
| 12486 } | |
| 12487 break; | |
| 12488 } | |
| 12489 | |
| 12490 // required bool is_extension = 2; | |
| 12491 case 2: { | |
| 12492 if (tag == 16u) { | |
| 12493 set_has_is_extension(); | |
| 12494 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | |
| 12495 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | |
| 12496 input, &is_extension_))); | |
| 12497 } else { | |
| 12498 goto handle_unusual; | |
| 12499 } | |
| 12500 break; | |
| 12501 } | |
| 12502 | |
| 12503 default: { | |
| 12504 handle_unusual: | |
| 12505 if (tag == 0 || | |
| 12506 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | |
| 12507 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | |
| 12508 goto success; | |
| 12509 } | |
| 12510 DO_(::google::protobuf::internal::WireFormat::SkipField( | |
| 12511 input, tag, mutable_unknown_fields())); | |
| 12512 break; | |
| 12513 } | |
| 12514 } | |
| 12515 } | |
| 12516 success: | |
| 12517 // @@protoc_insertion_point(parse_success:google.protobuf.UninterpretedOption.
NamePart) | 12273 // @@protoc_insertion_point(parse_success:google.protobuf.UninterpretedOption.
NamePart) |
| 12518 return true; | 12274 return true; |
| 12519 failure: | 12275 failure: |
| 12520 // @@protoc_insertion_point(parse_failure:google.protobuf.UninterpretedOption.
NamePart) | 12276 // @@protoc_insertion_point(parse_failure:google.protobuf.UninterpretedOption.
NamePart) |
| 12521 return false; | 12277 return false; |
| 12522 #undef DO_ | 12278 #undef DO_ |
| 12523 } | 12279 } |
| 12524 | 12280 |
| 12525 void UninterpretedOption_NamePart::SerializeWithCachedSizes( | 12281 void UninterpretedOption_NamePart::SerializeWithCachedSizes( |
| 12526 ::google::protobuf::io::CodedOutputStream* output) const { | 12282 ::google::protobuf::io::CodedOutputStream* output) const { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 12540 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_extensio
n(), output); | 12296 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_extensio
n(), output); |
| 12541 } | 12297 } |
| 12542 | 12298 |
| 12543 if (_internal_metadata_.have_unknown_fields()) { | 12299 if (_internal_metadata_.have_unknown_fields()) { |
| 12544 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 12300 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 12545 unknown_fields(), output); | 12301 unknown_fields(), output); |
| 12546 } | 12302 } |
| 12547 // @@protoc_insertion_point(serialize_end:google.protobuf.UninterpretedOption.
NamePart) | 12303 // @@protoc_insertion_point(serialize_end:google.protobuf.UninterpretedOption.
NamePart) |
| 12548 } | 12304 } |
| 12549 | 12305 |
| 12550 ::google::protobuf::uint8* UninterpretedOption_NamePart::InternalSerializeWithCa
chedSizesToArray( | 12306 ::google::protobuf::uint8* UninterpretedOption_NamePart::SerializeWithCachedSize
sToArray( |
| 12551 bool deterministic, ::google::protobuf::uint8* target) const { | 12307 ::google::protobuf::uint8* target) const { |
| 12552 (void)deterministic; // Unused | |
| 12553 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Uninterpr
etedOption.NamePart) | 12308 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Uninterpr
etedOption.NamePart) |
| 12554 // required string name_part = 1; | 12309 // required string name_part = 1; |
| 12555 if (has_name_part()) { | 12310 if (has_name_part()) { |
| 12556 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 12311 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 12557 this->name_part().data(), this->name_part().length(), | 12312 this->name_part().data(), this->name_part().length(), |
| 12558 ::google::protobuf::internal::WireFormat::SERIALIZE, | 12313 ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 12559 "google.protobuf.UninterpretedOption.NamePart.name_part"); | 12314 "google.protobuf.UninterpretedOption.NamePart.name_part"); |
| 12560 target = | 12315 target = |
| 12561 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 12316 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 12562 1, this->name_part(), target); | 12317 1, this->name_part(), target); |
| 12563 } | 12318 } |
| 12564 | 12319 |
| 12565 // required bool is_extension = 2; | 12320 // required bool is_extension = 2; |
| 12566 if (has_is_extension()) { | 12321 if (has_is_extension()) { |
| 12567 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, t
his->is_extension(), target); | 12322 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, t
his->is_extension(), target); |
| 12568 } | 12323 } |
| 12569 | 12324 |
| 12570 if (_internal_metadata_.have_unknown_fields()) { | 12325 if (_internal_metadata_.have_unknown_fields()) { |
| 12571 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 12326 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
| 12572 unknown_fields(), target); | 12327 unknown_fields(), target); |
| 12573 } | 12328 } |
| 12574 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Uninterpret
edOption.NamePart) | 12329 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Uninterpret
edOption.NamePart) |
| 12575 return target; | 12330 return target; |
| 12576 } | 12331 } |
| 12577 | 12332 |
| 12578 size_t UninterpretedOption_NamePart::RequiredFieldsByteSizeFallback() const { | 12333 int UninterpretedOption_NamePart::RequiredFieldsByteSizeFallback() const { |
| 12579 // @@protoc_insertion_point(required_fields_byte_size_fallback_start:google.prot
obuf.UninterpretedOption.NamePart) | 12334 // @@protoc_insertion_point(required_fields_byte_size_fallback_start:google.prot
obuf.UninterpretedOption.NamePart) |
| 12580 size_t total_size = 0; | 12335 int total_size = 0; |
| 12581 | 12336 |
| 12582 if (has_name_part()) { | 12337 if (has_name_part()) { |
| 12583 // required string name_part = 1; | 12338 // required string name_part = 1; |
| 12584 total_size += 1 + | 12339 total_size += 1 + |
| 12585 ::google::protobuf::internal::WireFormatLite::StringSize( | 12340 ::google::protobuf::internal::WireFormatLite::StringSize( |
| 12586 this->name_part()); | 12341 this->name_part()); |
| 12587 } | 12342 } |
| 12588 | 12343 |
| 12589 if (has_is_extension()) { | 12344 if (has_is_extension()) { |
| 12590 // required bool is_extension = 2; | 12345 // required bool is_extension = 2; |
| 12591 total_size += 1 + 1; | 12346 total_size += 1 + 1; |
| 12592 } | 12347 } |
| 12593 | 12348 |
| 12594 return total_size; | 12349 return total_size; |
| 12595 } | 12350 } |
| 12596 size_t UninterpretedOption_NamePart::ByteSizeLong() const { | 12351 int UninterpretedOption_NamePart::ByteSize() const { |
| 12597 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Uninterprete
dOption.NamePart) | 12352 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Uninterprete
dOption.NamePart) |
| 12598 size_t total_size = 0; | 12353 int total_size = 0; |
| 12599 | 12354 |
| 12600 if (_internal_metadata_.have_unknown_fields()) { | |
| 12601 total_size += | |
| 12602 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | |
| 12603 unknown_fields()); | |
| 12604 } | |
| 12605 if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required field
s are present. | 12355 if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required field
s are present. |
| 12606 // required string name_part = 1; | 12356 // required string name_part = 1; |
| 12607 total_size += 1 + | 12357 total_size += 1 + |
| 12608 ::google::protobuf::internal::WireFormatLite::StringSize( | 12358 ::google::protobuf::internal::WireFormatLite::StringSize( |
| 12609 this->name_part()); | 12359 this->name_part()); |
| 12610 | 12360 |
| 12611 // required bool is_extension = 2; | 12361 // required bool is_extension = 2; |
| 12612 total_size += 1 + 1; | 12362 total_size += 1 + 1; |
| 12613 | 12363 |
| 12614 } else { | 12364 } else { |
| 12615 total_size += RequiredFieldsByteSizeFallback(); | 12365 total_size += RequiredFieldsByteSizeFallback(); |
| 12616 } | 12366 } |
| 12617 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | 12367 if (_internal_metadata_.have_unknown_fields()) { |
| 12368 total_size += |
| 12369 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 12370 unknown_fields()); |
| 12371 } |
| 12618 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 12372 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 12619 _cached_size_ = cached_size; | 12373 _cached_size_ = total_size; |
| 12620 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 12374 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 12621 return total_size; | 12375 return total_size; |
| 12622 } | 12376 } |
| 12623 | 12377 |
| 12624 void UninterpretedOption_NamePart::MergeFrom(const ::google::protobuf::Message&
from) { | 12378 void UninterpretedOption_NamePart::MergeFrom(const ::google::protobuf::Message&
from) { |
| 12625 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Uninter
pretedOption.NamePart) | 12379 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Uninter
pretedOption.NamePart) |
| 12626 GOOGLE_DCHECK_NE(&from, this); | 12380 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 12627 const UninterpretedOption_NamePart* source = | 12381 const UninterpretedOption_NamePart* source = |
| 12628 ::google::protobuf::internal::DynamicCastToGenerated<const UninterpretedOp
tion_NamePart>( | 12382 ::google::protobuf::internal::DynamicCastToGenerated<const UninterpretedOp
tion_NamePart>( |
| 12629 &from); | 12383 &from); |
| 12630 if (source == NULL) { | 12384 if (source == NULL) { |
| 12631 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.U
ninterpretedOption.NamePart) | 12385 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.U
ninterpretedOption.NamePart) |
| 12632 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 12386 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 12633 } else { | 12387 } else { |
| 12634 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.UninterpretedOption.NamePart) | 12388 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.UninterpretedOption.NamePart) |
| 12635 MergeFrom(*source); | 12389 MergeFrom(*source); |
| 12636 } | 12390 } |
| 12637 } | 12391 } |
| 12638 | 12392 |
| 12639 void UninterpretedOption_NamePart::MergeFrom(const UninterpretedOption_NamePart&
from) { | 12393 void UninterpretedOption_NamePart::MergeFrom(const UninterpretedOption_NamePart&
from) { |
| 12640 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Unin
terpretedOption.NamePart) | 12394 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Unin
terpretedOption.NamePart) |
| 12641 GOOGLE_DCHECK_NE(&from, this); | 12395 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 12642 _internal_metadata_.MergeFrom(from._internal_metadata_); | 12396 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 12643 if (from._has_bits_[0 / 32] & 3u) { | |
| 12644 if (from.has_name_part()) { | 12397 if (from.has_name_part()) { |
| 12645 set_has_name_part(); | 12398 set_has_name_part(); |
| 12646 name_part_.AssignWithDefault(&::google::protobuf::internal::GetEmptyString
AlreadyInited(), from.name_part_); | 12399 name_part_.AssignWithDefault(&::google::protobuf::internal::GetEmptyString
AlreadyInited(), from.name_part_); |
| 12647 } | 12400 } |
| 12648 if (from.has_is_extension()) { | 12401 if (from.has_is_extension()) { |
| 12649 set_is_extension(from.is_extension()); | 12402 set_is_extension(from.is_extension()); |
| 12650 } | 12403 } |
| 12651 } | 12404 } |
| 12405 if (from._internal_metadata_.have_unknown_fields()) { |
| 12406 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 12407 } |
| 12652 } | 12408 } |
| 12653 | 12409 |
| 12654 void UninterpretedOption_NamePart::CopyFrom(const ::google::protobuf::Message& f
rom) { | 12410 void UninterpretedOption_NamePart::CopyFrom(const ::google::protobuf::Message& f
rom) { |
| 12655 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Uninterp
retedOption.NamePart) | 12411 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Uninterp
retedOption.NamePart) |
| 12656 if (&from == this) return; | 12412 if (&from == this) return; |
| 12657 Clear(); | 12413 Clear(); |
| 12658 MergeFrom(from); | 12414 MergeFrom(from); |
| 12659 } | 12415 } |
| 12660 | 12416 |
| 12661 void UninterpretedOption_NamePart::CopyFrom(const UninterpretedOption_NamePart&
from) { | 12417 void UninterpretedOption_NamePart::CopyFrom(const UninterpretedOption_NamePart&
from) { |
| 12662 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Unint
erpretedOption.NamePart) | 12418 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Unint
erpretedOption.NamePart) |
| 12663 if (&from == this) return; | 12419 if (&from == this) return; |
| 12664 Clear(); | 12420 Clear(); |
| 12665 MergeFrom(from); | 12421 MergeFrom(from); |
| 12666 } | 12422 } |
| 12667 | 12423 |
| 12668 bool UninterpretedOption_NamePart::IsInitialized() const { | 12424 bool UninterpretedOption_NamePart::IsInitialized() const { |
| 12669 if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; | 12425 if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; |
| 12426 |
| 12670 return true; | 12427 return true; |
| 12671 } | 12428 } |
| 12672 | 12429 |
| 12673 void UninterpretedOption_NamePart::Swap(UninterpretedOption_NamePart* other) { | 12430 void UninterpretedOption_NamePart::Swap(UninterpretedOption_NamePart* other) { |
| 12674 if (other == this) return; | 12431 if (other == this) return; |
| 12675 InternalSwap(other); | 12432 InternalSwap(other); |
| 12676 } | 12433 } |
| 12677 void UninterpretedOption_NamePart::InternalSwap(UninterpretedOption_NamePart* ot
her) { | 12434 void UninterpretedOption_NamePart::InternalSwap(UninterpretedOption_NamePart* ot
her) { |
| 12678 name_part_.Swap(&other->name_part_); | 12435 name_part_.Swap(&other->name_part_); |
| 12679 std::swap(is_extension_, other->is_extension_); | 12436 std::swap(is_extension_, other->is_extension_); |
| 12680 std::swap(_has_bits_[0], other->_has_bits_[0]); | 12437 std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 12681 _internal_metadata_.Swap(&other->_internal_metadata_); | 12438 _internal_metadata_.Swap(&other->_internal_metadata_); |
| 12682 std::swap(_cached_size_, other->_cached_size_); | 12439 std::swap(_cached_size_, other->_cached_size_); |
| 12683 } | 12440 } |
| 12684 | 12441 |
| 12685 ::google::protobuf::Metadata UninterpretedOption_NamePart::GetMetadata() const { | 12442 ::google::protobuf::Metadata UninterpretedOption_NamePart::GetMetadata() const { |
| 12686 protobuf_AssignDescriptorsOnce(); | 12443 protobuf_AssignDescriptorsOnce(); |
| 12687 return file_level_metadata[19]; | 12444 ::google::protobuf::Metadata metadata; |
| 12445 metadata.descriptor = UninterpretedOption_NamePart_descriptor_; |
| 12446 metadata.reflection = UninterpretedOption_NamePart_reflection_; |
| 12447 return metadata; |
| 12688 } | 12448 } |
| 12689 | 12449 |
| 12690 #if PROTOBUF_INLINE_NOT_IN_HEADERS | |
| 12691 // UninterpretedOption_NamePart | |
| 12692 | 12450 |
| 12693 // required string name_part = 1; | 12451 // ------------------------------------------------------------------- |
| 12694 bool UninterpretedOption_NamePart::has_name_part() const { | |
| 12695 return (_has_bits_[0] & 0x00000001u) != 0; | |
| 12696 } | |
| 12697 void UninterpretedOption_NamePart::set_has_name_part() { | |
| 12698 _has_bits_[0] |= 0x00000001u; | |
| 12699 } | |
| 12700 void UninterpretedOption_NamePart::clear_has_name_part() { | |
| 12701 _has_bits_[0] &= ~0x00000001u; | |
| 12702 } | |
| 12703 void UninterpretedOption_NamePart::clear_name_part() { | |
| 12704 name_part_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); | |
| 12705 clear_has_name_part(); | |
| 12706 } | |
| 12707 const ::std::string& UninterpretedOption_NamePart::name_part() const { | |
| 12708 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.Name
Part.name_part) | |
| 12709 return name_part_.GetNoArena(); | |
| 12710 } | |
| 12711 void UninterpretedOption_NamePart::set_name_part(const ::std::string& value) { | |
| 12712 set_has_name_part(); | |
| 12713 name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), value); | |
| 12714 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.Name
Part.name_part) | |
| 12715 } | |
| 12716 void UninterpretedOption_NamePart::set_name_part(const char* value) { | |
| 12717 set_has_name_part(); | |
| 12718 name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), ::std::string(value)); | |
| 12719 // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption
.NamePart.name_part) | |
| 12720 } | |
| 12721 void UninterpretedOption_NamePart::set_name_part(const char* value, size_t size)
{ | |
| 12722 set_has_name_part(); | |
| 12723 name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), | |
| 12724 ::std::string(reinterpret_cast<const char*>(value), size)); | |
| 12725 // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOpt
ion.NamePart.name_part) | |
| 12726 } | |
| 12727 ::std::string* UninterpretedOption_NamePart::mutable_name_part() { | |
| 12728 set_has_name_part(); | |
| 12729 // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.
NamePart.name_part) | |
| 12730 return name_part_.MutableNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); | |
| 12731 } | |
| 12732 ::std::string* UninterpretedOption_NamePart::release_name_part() { | |
| 12733 // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.
NamePart.name_part) | |
| 12734 clear_has_name_part(); | |
| 12735 return name_part_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); | |
| 12736 } | |
| 12737 void UninterpretedOption_NamePart::set_allocated_name_part(::std::string* name_p
art) { | |
| 12738 if (name_part != NULL) { | |
| 12739 set_has_name_part(); | |
| 12740 } else { | |
| 12741 clear_has_name_part(); | |
| 12742 } | |
| 12743 name_part_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited(), name_part); | |
| 12744 // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedO
ption.NamePart.name_part) | |
| 12745 } | |
| 12746 | |
| 12747 // required bool is_extension = 2; | |
| 12748 bool UninterpretedOption_NamePart::has_is_extension() const { | |
| 12749 return (_has_bits_[0] & 0x00000002u) != 0; | |
| 12750 } | |
| 12751 void UninterpretedOption_NamePart::set_has_is_extension() { | |
| 12752 _has_bits_[0] |= 0x00000002u; | |
| 12753 } | |
| 12754 void UninterpretedOption_NamePart::clear_has_is_extension() { | |
| 12755 _has_bits_[0] &= ~0x00000002u; | |
| 12756 } | |
| 12757 void UninterpretedOption_NamePart::clear_is_extension() { | |
| 12758 is_extension_ = false; | |
| 12759 clear_has_is_extension(); | |
| 12760 } | |
| 12761 bool UninterpretedOption_NamePart::is_extension() const { | |
| 12762 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.Name
Part.is_extension) | |
| 12763 return is_extension_; | |
| 12764 } | |
| 12765 void UninterpretedOption_NamePart::set_is_extension(bool value) { | |
| 12766 set_has_is_extension(); | |
| 12767 is_extension_ = value; | |
| 12768 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.Name
Part.is_extension) | |
| 12769 } | |
| 12770 | |
| 12771 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | |
| 12772 | |
| 12773 // =================================================================== | |
| 12774 | 12452 |
| 12775 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 12453 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 12776 const int UninterpretedOption::kNameFieldNumber; | 12454 const int UninterpretedOption::kNameFieldNumber; |
| 12777 const int UninterpretedOption::kIdentifierValueFieldNumber; | 12455 const int UninterpretedOption::kIdentifierValueFieldNumber; |
| 12778 const int UninterpretedOption::kPositiveIntValueFieldNumber; | 12456 const int UninterpretedOption::kPositiveIntValueFieldNumber; |
| 12779 const int UninterpretedOption::kNegativeIntValueFieldNumber; | 12457 const int UninterpretedOption::kNegativeIntValueFieldNumber; |
| 12780 const int UninterpretedOption::kDoubleValueFieldNumber; | 12458 const int UninterpretedOption::kDoubleValueFieldNumber; |
| 12781 const int UninterpretedOption::kStringValueFieldNumber; | 12459 const int UninterpretedOption::kStringValueFieldNumber; |
| 12782 const int UninterpretedOption::kAggregateValueFieldNumber; | 12460 const int UninterpretedOption::kAggregateValueFieldNumber; |
| 12783 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 12461 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 12784 | 12462 |
| 12785 UninterpretedOption::UninterpretedOption() | 12463 UninterpretedOption::UninterpretedOption() |
| 12786 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 12464 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 12787 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
| 12788 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
| 12789 } | |
| 12790 SharedCtor(); | 12465 SharedCtor(); |
| 12791 // @@protoc_insertion_point(constructor:google.protobuf.UninterpretedOption) | 12466 // @@protoc_insertion_point(constructor:google.protobuf.UninterpretedOption) |
| 12792 } | 12467 } |
| 12468 |
| 12469 void UninterpretedOption::InitAsDefaultInstance() { |
| 12470 } |
| 12471 |
| 12793 UninterpretedOption::UninterpretedOption(const UninterpretedOption& from) | 12472 UninterpretedOption::UninterpretedOption(const UninterpretedOption& from) |
| 12794 : ::google::protobuf::Message(), | 12473 : ::google::protobuf::Message(), |
| 12795 _internal_metadata_(NULL), | 12474 _internal_metadata_(NULL) { |
| 12796 _has_bits_(from._has_bits_), | 12475 SharedCtor(); |
| 12797 _cached_size_(0), | 12476 MergeFrom(from); |
| 12798 name_(from.name_) { | |
| 12799 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 12800 identifier_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); | |
| 12801 if (from.has_identifier_value()) { | |
| 12802 identifier_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited(), from.identifier_value_); | |
| 12803 } | |
| 12804 string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); | |
| 12805 if (from.has_string_value()) { | |
| 12806 string_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited(), from.string_value_); | |
| 12807 } | |
| 12808 aggregate_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); | |
| 12809 if (from.has_aggregate_value()) { | |
| 12810 aggregate_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited(), from.aggregate_value_); | |
| 12811 } | |
| 12812 ::memcpy(&positive_int_value_, &from.positive_int_value_, | |
| 12813 reinterpret_cast<char*>(&double_value_) - | |
| 12814 reinterpret_cast<char*>(&positive_int_value_) + sizeof(double_value_)); | |
| 12815 // @@protoc_insertion_point(copy_constructor:google.protobuf.UninterpretedOpti
on) | 12477 // @@protoc_insertion_point(copy_constructor:google.protobuf.UninterpretedOpti
on) |
| 12816 } | 12478 } |
| 12817 | 12479 |
| 12818 void UninterpretedOption::SharedCtor() { | 12480 void UninterpretedOption::SharedCtor() { |
| 12481 ::google::protobuf::internal::GetEmptyString(); |
| 12819 _cached_size_ = 0; | 12482 _cached_size_ = 0; |
| 12820 identifier_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); | 12483 identifier_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); |
| 12484 positive_int_value_ = GOOGLE_ULONGLONG(0); |
| 12485 negative_int_value_ = GOOGLE_LONGLONG(0); |
| 12486 double_value_ = 0; |
| 12821 string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); | 12487 string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); |
| 12822 aggregate_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); | 12488 aggregate_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); |
| 12823 ::memset(&positive_int_value_, 0, reinterpret_cast<char*>(&double_value_) - | 12489 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 12824 reinterpret_cast<char*>(&positive_int_value_) + sizeof(double_value_)); | |
| 12825 } | 12490 } |
| 12826 | 12491 |
| 12827 UninterpretedOption::~UninterpretedOption() { | 12492 UninterpretedOption::~UninterpretedOption() { |
| 12828 // @@protoc_insertion_point(destructor:google.protobuf.UninterpretedOption) | 12493 // @@protoc_insertion_point(destructor:google.protobuf.UninterpretedOption) |
| 12829 SharedDtor(); | 12494 SharedDtor(); |
| 12830 } | 12495 } |
| 12831 | 12496 |
| 12832 void UninterpretedOption::SharedDtor() { | 12497 void UninterpretedOption::SharedDtor() { |
| 12833 identifier_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); | 12498 identifier_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); |
| 12834 string_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); | 12499 string_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); |
| 12835 aggregate_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringA
lreadyInited()); | 12500 aggregate_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringA
lreadyInited()); |
| 12501 if (this != default_instance_) { |
| 12502 } |
| 12836 } | 12503 } |
| 12837 | 12504 |
| 12838 void UninterpretedOption::SetCachedSize(int size) const { | 12505 void UninterpretedOption::SetCachedSize(int size) const { |
| 12839 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 12506 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 12840 _cached_size_ = size; | 12507 _cached_size_ = size; |
| 12841 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 12508 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 12842 } | 12509 } |
| 12843 const ::google::protobuf::Descriptor* UninterpretedOption::descriptor() { | 12510 const ::google::protobuf::Descriptor* UninterpretedOption::descriptor() { |
| 12844 protobuf_AssignDescriptorsOnce(); | 12511 protobuf_AssignDescriptorsOnce(); |
| 12845 return file_level_metadata[20].descriptor; | 12512 return UninterpretedOption_descriptor_; |
| 12846 } | 12513 } |
| 12847 | 12514 |
| 12848 const UninterpretedOption& UninterpretedOption::default_instance() { | 12515 const UninterpretedOption& UninterpretedOption::default_instance() { |
| 12849 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 12516 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
| 12850 return *internal_default_instance(); | 12517 return *default_instance_; |
| 12851 } | 12518 } |
| 12852 | 12519 |
| 12520 UninterpretedOption* UninterpretedOption::default_instance_ = NULL; |
| 12521 |
| 12853 UninterpretedOption* UninterpretedOption::New(::google::protobuf::Arena* arena)
const { | 12522 UninterpretedOption* UninterpretedOption::New(::google::protobuf::Arena* arena)
const { |
| 12854 UninterpretedOption* n = new UninterpretedOption; | 12523 UninterpretedOption* n = new UninterpretedOption; |
| 12855 if (arena != NULL) { | 12524 if (arena != NULL) { |
| 12856 arena->Own(n); | 12525 arena->Own(n); |
| 12857 } | 12526 } |
| 12858 return n; | 12527 return n; |
| 12859 } | 12528 } |
| 12860 | 12529 |
| 12861 void UninterpretedOption::Clear() { | 12530 void UninterpretedOption::Clear() { |
| 12862 // @@protoc_insertion_point(message_clear_start:google.protobuf.UninterpretedOpt
ion) | 12531 // @@protoc_insertion_point(message_clear_start:google.protobuf.UninterpretedOpt
ion) |
| 12863 name_.Clear(); | 12532 #if defined(__clang__) |
| 12864 if (_has_bits_[0 / 32] & 7u) { | 12533 #define ZR_HELPER_(f) \ |
| 12534 _Pragma("clang diagnostic push") \ |
| 12535 _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ |
| 12536 __builtin_offsetof(UninterpretedOption, f) \ |
| 12537 _Pragma("clang diagnostic pop") |
| 12538 #else |
| 12539 #define ZR_HELPER_(f) reinterpret_cast<char*>(\ |
| 12540 &reinterpret_cast<UninterpretedOption*>(16)->f) |
| 12541 #endif |
| 12542 |
| 12543 #define ZR_(first, last) do {\ |
| 12544 ::memset(&first, 0,\ |
| 12545 ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ |
| 12546 } while (0) |
| 12547 |
| 12548 if (_has_bits_[0 / 32] & 126u) { |
| 12549 ZR_(positive_int_value_, double_value_); |
| 12865 if (has_identifier_value()) { | 12550 if (has_identifier_value()) { |
| 12866 GOOGLE_DCHECK(!identifier_value_.IsDefault(&::google::protobuf::internal::
GetEmptyStringAlreadyInited())); | 12551 identifier_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEm
ptyStringAlreadyInited()); |
| 12867 (*identifier_value_.UnsafeRawStringPointer())->clear(); | |
| 12868 } | 12552 } |
| 12869 if (has_string_value()) { | 12553 if (has_string_value()) { |
| 12870 GOOGLE_DCHECK(!string_value_.IsDefault(&::google::protobuf::internal::GetE
mptyStringAlreadyInited())); | 12554 string_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited()); |
| 12871 (*string_value_.UnsafeRawStringPointer())->clear(); | |
| 12872 } | 12555 } |
| 12873 if (has_aggregate_value()) { | 12556 if (has_aggregate_value()) { |
| 12874 GOOGLE_DCHECK(!aggregate_value_.IsDefault(&::google::protobuf::internal::G
etEmptyStringAlreadyInited())); | 12557 aggregate_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmp
tyStringAlreadyInited()); |
| 12875 (*aggregate_value_.UnsafeRawStringPointer())->clear(); | |
| 12876 } | 12558 } |
| 12877 } | 12559 } |
| 12878 if (_has_bits_[0 / 32] & 56u) { | 12560 |
| 12879 ::memset(&positive_int_value_, 0, reinterpret_cast<char*>(&double_value_) - | 12561 #undef ZR_HELPER_ |
| 12880 reinterpret_cast<char*>(&positive_int_value_) + sizeof(double_value_)); | 12562 #undef ZR_ |
| 12563 |
| 12564 name_.Clear(); |
| 12565 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 12566 if (_internal_metadata_.have_unknown_fields()) { |
| 12567 mutable_unknown_fields()->Clear(); |
| 12881 } | 12568 } |
| 12882 _has_bits_.Clear(); | |
| 12883 _internal_metadata_.Clear(); | |
| 12884 } | 12569 } |
| 12885 | 12570 |
| 12886 bool UninterpretedOption::MergePartialFromCodedStream( | 12571 bool UninterpretedOption::MergePartialFromCodedStream( |
| 12887 ::google::protobuf::io::CodedInputStream* input) { | 12572 ::google::protobuf::io::CodedInputStream* input) { |
| 12888 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 12573 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 12889 ::google::protobuf::uint32 tag; | 12574 ::google::protobuf::uint32 tag; |
| 12890 // @@protoc_insertion_point(parse_start:google.protobuf.UninterpretedOption) | 12575 // @@protoc_insertion_point(parse_start:google.protobuf.UninterpretedOption) |
| 12891 for (;;) { | 12576 for (;;) { |
| 12892 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 12577 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
| 12893 tag = p.first; | 12578 tag = p.first; |
| 12894 if (!p.second) goto handle_unusual; | 12579 if (!p.second) goto handle_unusual; |
| 12895 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 12580 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
| 12896 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; | 12581 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; |
| 12897 case 2: { | 12582 case 2: { |
| 12898 if (tag == 18u) { | 12583 if (tag == 18) { |
| 12899 DO_(input->IncrementRecursionDepth()); | 12584 DO_(input->IncrementRecursionDepth()); |
| 12585 parse_loop_name: |
| 12900 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 12586 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
| 12901 input, add_name())); | 12587 input, add_name())); |
| 12902 } else { | 12588 } else { |
| 12903 goto handle_unusual; | 12589 goto handle_unusual; |
| 12904 } | 12590 } |
| 12591 if (input->ExpectTag(18)) goto parse_loop_name; |
| 12905 input->UnsafeDecrementRecursionDepth(); | 12592 input->UnsafeDecrementRecursionDepth(); |
| 12593 if (input->ExpectTag(26)) goto parse_identifier_value; |
| 12906 break; | 12594 break; |
| 12907 } | 12595 } |
| 12908 | 12596 |
| 12909 // optional string identifier_value = 3; | 12597 // optional string identifier_value = 3; |
| 12910 case 3: { | 12598 case 3: { |
| 12911 if (tag == 26u) { | 12599 if (tag == 26) { |
| 12600 parse_identifier_value: |
| 12912 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 12601 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 12913 input, this->mutable_identifier_value())); | 12602 input, this->mutable_identifier_value())); |
| 12914 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 12603 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 12915 this->identifier_value().data(), this->identifier_value().length(), | 12604 this->identifier_value().data(), this->identifier_value().length(), |
| 12916 ::google::protobuf::internal::WireFormat::PARSE, | 12605 ::google::protobuf::internal::WireFormat::PARSE, |
| 12917 "google.protobuf.UninterpretedOption.identifier_value"); | 12606 "google.protobuf.UninterpretedOption.identifier_value"); |
| 12918 } else { | 12607 } else { |
| 12919 goto handle_unusual; | 12608 goto handle_unusual; |
| 12920 } | 12609 } |
| 12610 if (input->ExpectTag(32)) goto parse_positive_int_value; |
| 12921 break; | 12611 break; |
| 12922 } | 12612 } |
| 12923 | 12613 |
| 12924 // optional uint64 positive_int_value = 4; | 12614 // optional uint64 positive_int_value = 4; |
| 12925 case 4: { | 12615 case 4: { |
| 12926 if (tag == 32u) { | 12616 if (tag == 32) { |
| 12927 set_has_positive_int_value(); | 12617 parse_positive_int_value: |
| 12928 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 12618 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 12929 ::google::protobuf::uint64, ::google::protobuf::internal::Wir
eFormatLite::TYPE_UINT64>( | 12619 ::google::protobuf::uint64, ::google::protobuf::internal::Wir
eFormatLite::TYPE_UINT64>( |
| 12930 input, &positive_int_value_))); | 12620 input, &positive_int_value_))); |
| 12621 set_has_positive_int_value(); |
| 12931 } else { | 12622 } else { |
| 12932 goto handle_unusual; | 12623 goto handle_unusual; |
| 12933 } | 12624 } |
| 12625 if (input->ExpectTag(40)) goto parse_negative_int_value; |
| 12934 break; | 12626 break; |
| 12935 } | 12627 } |
| 12936 | 12628 |
| 12937 // optional int64 negative_int_value = 5; | 12629 // optional int64 negative_int_value = 5; |
| 12938 case 5: { | 12630 case 5: { |
| 12939 if (tag == 40u) { | 12631 if (tag == 40) { |
| 12940 set_has_negative_int_value(); | 12632 parse_negative_int_value: |
| 12941 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 12633 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 12942 ::google::protobuf::int64, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT64>( | 12634 ::google::protobuf::int64, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT64>( |
| 12943 input, &negative_int_value_))); | 12635 input, &negative_int_value_))); |
| 12636 set_has_negative_int_value(); |
| 12944 } else { | 12637 } else { |
| 12945 goto handle_unusual; | 12638 goto handle_unusual; |
| 12946 } | 12639 } |
| 12640 if (input->ExpectTag(49)) goto parse_double_value; |
| 12947 break; | 12641 break; |
| 12948 } | 12642 } |
| 12949 | 12643 |
| 12950 // optional double double_value = 6; | 12644 // optional double double_value = 6; |
| 12951 case 6: { | 12645 case 6: { |
| 12952 if (tag == 49u) { | 12646 if (tag == 49) { |
| 12953 set_has_double_value(); | 12647 parse_double_value: |
| 12954 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 12648 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 12955 double, ::google::protobuf::internal::WireFormatLite::TYPE_DO
UBLE>( | 12649 double, ::google::protobuf::internal::WireFormatLite::TYPE_DO
UBLE>( |
| 12956 input, &double_value_))); | 12650 input, &double_value_))); |
| 12651 set_has_double_value(); |
| 12957 } else { | 12652 } else { |
| 12958 goto handle_unusual; | 12653 goto handle_unusual; |
| 12959 } | 12654 } |
| 12655 if (input->ExpectTag(58)) goto parse_string_value; |
| 12960 break; | 12656 break; |
| 12961 } | 12657 } |
| 12962 | 12658 |
| 12963 // optional bytes string_value = 7; | 12659 // optional bytes string_value = 7; |
| 12964 case 7: { | 12660 case 7: { |
| 12965 if (tag == 58u) { | 12661 if (tag == 58) { |
| 12662 parse_string_value: |
| 12966 DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( | 12663 DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
| 12967 input, this->mutable_string_value())); | 12664 input, this->mutable_string_value())); |
| 12968 } else { | 12665 } else { |
| 12969 goto handle_unusual; | 12666 goto handle_unusual; |
| 12970 } | 12667 } |
| 12668 if (input->ExpectTag(66)) goto parse_aggregate_value; |
| 12971 break; | 12669 break; |
| 12972 } | 12670 } |
| 12973 | 12671 |
| 12974 // optional string aggregate_value = 8; | 12672 // optional string aggregate_value = 8; |
| 12975 case 8: { | 12673 case 8: { |
| 12976 if (tag == 66u) { | 12674 if (tag == 66) { |
| 12675 parse_aggregate_value: |
| 12977 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 12676 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 12978 input, this->mutable_aggregate_value())); | 12677 input, this->mutable_aggregate_value())); |
| 12979 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 12678 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 12980 this->aggregate_value().data(), this->aggregate_value().length(), | 12679 this->aggregate_value().data(), this->aggregate_value().length(), |
| 12981 ::google::protobuf::internal::WireFormat::PARSE, | 12680 ::google::protobuf::internal::WireFormat::PARSE, |
| 12982 "google.protobuf.UninterpretedOption.aggregate_value"); | 12681 "google.protobuf.UninterpretedOption.aggregate_value"); |
| 12983 } else { | 12682 } else { |
| 12984 goto handle_unusual; | 12683 goto handle_unusual; |
| 12985 } | 12684 } |
| 12685 if (input->ExpectAtEnd()) goto success; |
| 12986 break; | 12686 break; |
| 12987 } | 12687 } |
| 12988 | 12688 |
| 12989 default: { | 12689 default: { |
| 12990 handle_unusual: | 12690 handle_unusual: |
| 12991 if (tag == 0 || | 12691 if (tag == 0 || |
| 12992 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 12692 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 12993 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 12693 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 12994 goto success; | 12694 goto success; |
| 12995 } | 12695 } |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13058 8, this->aggregate_value(), output); | 12758 8, this->aggregate_value(), output); |
| 13059 } | 12759 } |
| 13060 | 12760 |
| 13061 if (_internal_metadata_.have_unknown_fields()) { | 12761 if (_internal_metadata_.have_unknown_fields()) { |
| 13062 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 12762 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 13063 unknown_fields(), output); | 12763 unknown_fields(), output); |
| 13064 } | 12764 } |
| 13065 // @@protoc_insertion_point(serialize_end:google.protobuf.UninterpretedOption) | 12765 // @@protoc_insertion_point(serialize_end:google.protobuf.UninterpretedOption) |
| 13066 } | 12766 } |
| 13067 | 12767 |
| 13068 ::google::protobuf::uint8* UninterpretedOption::InternalSerializeWithCachedSizes
ToArray( | 12768 ::google::protobuf::uint8* UninterpretedOption::SerializeWithCachedSizesToArray( |
| 13069 bool deterministic, ::google::protobuf::uint8* target) const { | 12769 ::google::protobuf::uint8* target) const { |
| 13070 (void)deterministic; // Unused | |
| 13071 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Uninterpr
etedOption) | 12770 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Uninterpr
etedOption) |
| 13072 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; | 12771 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; |
| 13073 for (unsigned int i = 0, n = this->name_size(); i < n; i++) { | 12772 for (unsigned int i = 0, n = this->name_size(); i < n; i++) { |
| 13074 target = ::google::protobuf::internal::WireFormatLite:: | 12773 target = ::google::protobuf::internal::WireFormatLite:: |
| 13075 InternalWriteMessageNoVirtualToArray( | 12774 WriteMessageNoVirtualToArray( |
| 13076 2, this->name(i), false, target); | 12775 2, this->name(i), target); |
| 13077 } | 12776 } |
| 13078 | 12777 |
| 13079 // optional string identifier_value = 3; | 12778 // optional string identifier_value = 3; |
| 13080 if (has_identifier_value()) { | 12779 if (has_identifier_value()) { |
| 13081 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 12780 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 13082 this->identifier_value().data(), this->identifier_value().length(), | 12781 this->identifier_value().data(), this->identifier_value().length(), |
| 13083 ::google::protobuf::internal::WireFormat::SERIALIZE, | 12782 ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 13084 "google.protobuf.UninterpretedOption.identifier_value"); | 12783 "google.protobuf.UninterpretedOption.identifier_value"); |
| 13085 target = | 12784 target = |
| 13086 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 12785 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13121 } | 12820 } |
| 13122 | 12821 |
| 13123 if (_internal_metadata_.have_unknown_fields()) { | 12822 if (_internal_metadata_.have_unknown_fields()) { |
| 13124 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 12823 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
| 13125 unknown_fields(), target); | 12824 unknown_fields(), target); |
| 13126 } | 12825 } |
| 13127 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Uninterpret
edOption) | 12826 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Uninterpret
edOption) |
| 13128 return target; | 12827 return target; |
| 13129 } | 12828 } |
| 13130 | 12829 |
| 13131 size_t UninterpretedOption::ByteSizeLong() const { | 12830 int UninterpretedOption::ByteSize() const { |
| 13132 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Uninterprete
dOption) | 12831 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Uninterprete
dOption) |
| 13133 size_t total_size = 0; | 12832 int total_size = 0; |
| 13134 | 12833 |
| 13135 if (_internal_metadata_.have_unknown_fields()) { | 12834 if (_has_bits_[1 / 32] & 126u) { |
| 13136 total_size += | |
| 13137 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | |
| 13138 unknown_fields()); | |
| 13139 } | |
| 13140 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; | |
| 13141 { | |
| 13142 unsigned int count = this->name_size(); | |
| 13143 total_size += 1UL * count; | |
| 13144 for (unsigned int i = 0; i < count; i++) { | |
| 13145 total_size += | |
| 13146 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
| 13147 this->name(i)); | |
| 13148 } | |
| 13149 } | |
| 13150 | |
| 13151 if (_has_bits_[0 / 32] & 63u) { | |
| 13152 // optional string identifier_value = 3; | 12835 // optional string identifier_value = 3; |
| 13153 if (has_identifier_value()) { | 12836 if (has_identifier_value()) { |
| 13154 total_size += 1 + | 12837 total_size += 1 + |
| 13155 ::google::protobuf::internal::WireFormatLite::StringSize( | 12838 ::google::protobuf::internal::WireFormatLite::StringSize( |
| 13156 this->identifier_value()); | 12839 this->identifier_value()); |
| 13157 } | 12840 } |
| 13158 | 12841 |
| 13159 // optional bytes string_value = 7; | |
| 13160 if (has_string_value()) { | |
| 13161 total_size += 1 + | |
| 13162 ::google::protobuf::internal::WireFormatLite::BytesSize( | |
| 13163 this->string_value()); | |
| 13164 } | |
| 13165 | |
| 13166 // optional string aggregate_value = 8; | |
| 13167 if (has_aggregate_value()) { | |
| 13168 total_size += 1 + | |
| 13169 ::google::protobuf::internal::WireFormatLite::StringSize( | |
| 13170 this->aggregate_value()); | |
| 13171 } | |
| 13172 | |
| 13173 // optional uint64 positive_int_value = 4; | 12842 // optional uint64 positive_int_value = 4; |
| 13174 if (has_positive_int_value()) { | 12843 if (has_positive_int_value()) { |
| 13175 total_size += 1 + | 12844 total_size += 1 + |
| 13176 ::google::protobuf::internal::WireFormatLite::UInt64Size( | 12845 ::google::protobuf::internal::WireFormatLite::UInt64Size( |
| 13177 this->positive_int_value()); | 12846 this->positive_int_value()); |
| 13178 } | 12847 } |
| 13179 | 12848 |
| 13180 // optional int64 negative_int_value = 5; | 12849 // optional int64 negative_int_value = 5; |
| 13181 if (has_negative_int_value()) { | 12850 if (has_negative_int_value()) { |
| 13182 total_size += 1 + | 12851 total_size += 1 + |
| 13183 ::google::protobuf::internal::WireFormatLite::Int64Size( | 12852 ::google::protobuf::internal::WireFormatLite::Int64Size( |
| 13184 this->negative_int_value()); | 12853 this->negative_int_value()); |
| 13185 } | 12854 } |
| 13186 | 12855 |
| 13187 // optional double double_value = 6; | 12856 // optional double double_value = 6; |
| 13188 if (has_double_value()) { | 12857 if (has_double_value()) { |
| 13189 total_size += 1 + 8; | 12858 total_size += 1 + 8; |
| 13190 } | 12859 } |
| 13191 | 12860 |
| 12861 // optional bytes string_value = 7; |
| 12862 if (has_string_value()) { |
| 12863 total_size += 1 + |
| 12864 ::google::protobuf::internal::WireFormatLite::BytesSize( |
| 12865 this->string_value()); |
| 12866 } |
| 12867 |
| 12868 // optional string aggregate_value = 8; |
| 12869 if (has_aggregate_value()) { |
| 12870 total_size += 1 + |
| 12871 ::google::protobuf::internal::WireFormatLite::StringSize( |
| 12872 this->aggregate_value()); |
| 12873 } |
| 12874 |
| 13192 } | 12875 } |
| 13193 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | 12876 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; |
| 12877 total_size += 1 * this->name_size(); |
| 12878 for (int i = 0; i < this->name_size(); i++) { |
| 12879 total_size += |
| 12880 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 12881 this->name(i)); |
| 12882 } |
| 12883 |
| 12884 if (_internal_metadata_.have_unknown_fields()) { |
| 12885 total_size += |
| 12886 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 12887 unknown_fields()); |
| 12888 } |
| 13194 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 12889 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 13195 _cached_size_ = cached_size; | 12890 _cached_size_ = total_size; |
| 13196 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 12891 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 13197 return total_size; | 12892 return total_size; |
| 13198 } | 12893 } |
| 13199 | 12894 |
| 13200 void UninterpretedOption::MergeFrom(const ::google::protobuf::Message& from) { | 12895 void UninterpretedOption::MergeFrom(const ::google::protobuf::Message& from) { |
| 13201 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Uninter
pretedOption) | 12896 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Uninter
pretedOption) |
| 13202 GOOGLE_DCHECK_NE(&from, this); | 12897 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 13203 const UninterpretedOption* source = | 12898 const UninterpretedOption* source = |
| 13204 ::google::protobuf::internal::DynamicCastToGenerated<const UninterpretedOp
tion>( | 12899 ::google::protobuf::internal::DynamicCastToGenerated<const UninterpretedOp
tion>( |
| 13205 &from); | 12900 &from); |
| 13206 if (source == NULL) { | 12901 if (source == NULL) { |
| 13207 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.U
ninterpretedOption) | 12902 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.U
ninterpretedOption) |
| 13208 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 12903 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 13209 } else { | 12904 } else { |
| 13210 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.UninterpretedOption) | 12905 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.UninterpretedOption) |
| 13211 MergeFrom(*source); | 12906 MergeFrom(*source); |
| 13212 } | 12907 } |
| 13213 } | 12908 } |
| 13214 | 12909 |
| 13215 void UninterpretedOption::MergeFrom(const UninterpretedOption& from) { | 12910 void UninterpretedOption::MergeFrom(const UninterpretedOption& from) { |
| 13216 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Unin
terpretedOption) | 12911 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Unin
terpretedOption) |
| 13217 GOOGLE_DCHECK_NE(&from, this); | 12912 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 13218 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 13219 name_.MergeFrom(from.name_); | 12913 name_.MergeFrom(from.name_); |
| 13220 if (from._has_bits_[0 / 32] & 63u) { | 12914 if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { |
| 13221 if (from.has_identifier_value()) { | 12915 if (from.has_identifier_value()) { |
| 13222 set_has_identifier_value(); | 12916 set_has_identifier_value(); |
| 13223 identifier_value_.AssignWithDefault(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited(), from.identifier_value_); | 12917 identifier_value_.AssignWithDefault(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited(), from.identifier_value_); |
| 13224 } | 12918 } |
| 13225 if (from.has_string_value()) { | |
| 13226 set_has_string_value(); | |
| 13227 string_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited(), from.string_value_); | |
| 13228 } | |
| 13229 if (from.has_aggregate_value()) { | |
| 13230 set_has_aggregate_value(); | |
| 13231 aggregate_value_.AssignWithDefault(&::google::protobuf::internal::GetEmpty
StringAlreadyInited(), from.aggregate_value_); | |
| 13232 } | |
| 13233 if (from.has_positive_int_value()) { | 12919 if (from.has_positive_int_value()) { |
| 13234 set_positive_int_value(from.positive_int_value()); | 12920 set_positive_int_value(from.positive_int_value()); |
| 13235 } | 12921 } |
| 13236 if (from.has_negative_int_value()) { | 12922 if (from.has_negative_int_value()) { |
| 13237 set_negative_int_value(from.negative_int_value()); | 12923 set_negative_int_value(from.negative_int_value()); |
| 13238 } | 12924 } |
| 13239 if (from.has_double_value()) { | 12925 if (from.has_double_value()) { |
| 13240 set_double_value(from.double_value()); | 12926 set_double_value(from.double_value()); |
| 13241 } | 12927 } |
| 12928 if (from.has_string_value()) { |
| 12929 set_has_string_value(); |
| 12930 string_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited(), from.string_value_); |
| 12931 } |
| 12932 if (from.has_aggregate_value()) { |
| 12933 set_has_aggregate_value(); |
| 12934 aggregate_value_.AssignWithDefault(&::google::protobuf::internal::GetEmpty
StringAlreadyInited(), from.aggregate_value_); |
| 12935 } |
| 12936 } |
| 12937 if (from._internal_metadata_.have_unknown_fields()) { |
| 12938 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 13242 } | 12939 } |
| 13243 } | 12940 } |
| 13244 | 12941 |
| 13245 void UninterpretedOption::CopyFrom(const ::google::protobuf::Message& from) { | 12942 void UninterpretedOption::CopyFrom(const ::google::protobuf::Message& from) { |
| 13246 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Uninterp
retedOption) | 12943 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Uninterp
retedOption) |
| 13247 if (&from == this) return; | 12944 if (&from == this) return; |
| 13248 Clear(); | 12945 Clear(); |
| 13249 MergeFrom(from); | 12946 MergeFrom(from); |
| 13250 } | 12947 } |
| 13251 | 12948 |
| 13252 void UninterpretedOption::CopyFrom(const UninterpretedOption& from) { | 12949 void UninterpretedOption::CopyFrom(const UninterpretedOption& from) { |
| 13253 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Unint
erpretedOption) | 12950 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Unint
erpretedOption) |
| 13254 if (&from == this) return; | 12951 if (&from == this) return; |
| 13255 Clear(); | 12952 Clear(); |
| 13256 MergeFrom(from); | 12953 MergeFrom(from); |
| 13257 } | 12954 } |
| 13258 | 12955 |
| 13259 bool UninterpretedOption::IsInitialized() const { | 12956 bool UninterpretedOption::IsInitialized() const { |
| 12957 |
| 13260 if (!::google::protobuf::internal::AllAreInitialized(this->name())) return fal
se; | 12958 if (!::google::protobuf::internal::AllAreInitialized(this->name())) return fal
se; |
| 13261 return true; | 12959 return true; |
| 13262 } | 12960 } |
| 13263 | 12961 |
| 13264 void UninterpretedOption::Swap(UninterpretedOption* other) { | 12962 void UninterpretedOption::Swap(UninterpretedOption* other) { |
| 13265 if (other == this) return; | 12963 if (other == this) return; |
| 13266 InternalSwap(other); | 12964 InternalSwap(other); |
| 13267 } | 12965 } |
| 13268 void UninterpretedOption::InternalSwap(UninterpretedOption* other) { | 12966 void UninterpretedOption::InternalSwap(UninterpretedOption* other) { |
| 13269 name_.UnsafeArenaSwap(&other->name_); | 12967 name_.UnsafeArenaSwap(&other->name_); |
| 13270 identifier_value_.Swap(&other->identifier_value_); | 12968 identifier_value_.Swap(&other->identifier_value_); |
| 13271 string_value_.Swap(&other->string_value_); | |
| 13272 aggregate_value_.Swap(&other->aggregate_value_); | |
| 13273 std::swap(positive_int_value_, other->positive_int_value_); | 12969 std::swap(positive_int_value_, other->positive_int_value_); |
| 13274 std::swap(negative_int_value_, other->negative_int_value_); | 12970 std::swap(negative_int_value_, other->negative_int_value_); |
| 13275 std::swap(double_value_, other->double_value_); | 12971 std::swap(double_value_, other->double_value_); |
| 12972 string_value_.Swap(&other->string_value_); |
| 12973 aggregate_value_.Swap(&other->aggregate_value_); |
| 13276 std::swap(_has_bits_[0], other->_has_bits_[0]); | 12974 std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 13277 _internal_metadata_.Swap(&other->_internal_metadata_); | 12975 _internal_metadata_.Swap(&other->_internal_metadata_); |
| 13278 std::swap(_cached_size_, other->_cached_size_); | 12976 std::swap(_cached_size_, other->_cached_size_); |
| 13279 } | 12977 } |
| 13280 | 12978 |
| 13281 ::google::protobuf::Metadata UninterpretedOption::GetMetadata() const { | 12979 ::google::protobuf::Metadata UninterpretedOption::GetMetadata() const { |
| 13282 protobuf_AssignDescriptorsOnce(); | 12980 protobuf_AssignDescriptorsOnce(); |
| 13283 return file_level_metadata[20]; | 12981 ::google::protobuf::Metadata metadata; |
| 12982 metadata.descriptor = UninterpretedOption_descriptor_; |
| 12983 metadata.reflection = UninterpretedOption_reflection_; |
| 12984 return metadata; |
| 13284 } | 12985 } |
| 13285 | 12986 |
| 13286 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 12987 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 12988 // UninterpretedOption_NamePart |
| 12989 |
| 12990 // required string name_part = 1; |
| 12991 bool UninterpretedOption_NamePart::has_name_part() const { |
| 12992 return (_has_bits_[0] & 0x00000001u) != 0; |
| 12993 } |
| 12994 void UninterpretedOption_NamePart::set_has_name_part() { |
| 12995 _has_bits_[0] |= 0x00000001u; |
| 12996 } |
| 12997 void UninterpretedOption_NamePart::clear_has_name_part() { |
| 12998 _has_bits_[0] &= ~0x00000001u; |
| 12999 } |
| 13000 void UninterpretedOption_NamePart::clear_name_part() { |
| 13001 name_part_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); |
| 13002 clear_has_name_part(); |
| 13003 } |
| 13004 const ::std::string& UninterpretedOption_NamePart::name_part() const { |
| 13005 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.Name
Part.name_part) |
| 13006 return name_part_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); |
| 13007 } |
| 13008 void UninterpretedOption_NamePart::set_name_part(const ::std::string& value) { |
| 13009 set_has_name_part(); |
| 13010 name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), value); |
| 13011 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.Name
Part.name_part) |
| 13012 } |
| 13013 void UninterpretedOption_NamePart::set_name_part(const char* value) { |
| 13014 set_has_name_part(); |
| 13015 name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), ::std::string(value)); |
| 13016 // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption
.NamePart.name_part) |
| 13017 } |
| 13018 void UninterpretedOption_NamePart::set_name_part(const char* value, size_t size
) { |
| 13019 set_has_name_part(); |
| 13020 name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), |
| 13021 ::std::string(reinterpret_cast<const char*>(value), size)); |
| 13022 // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOpt
ion.NamePart.name_part) |
| 13023 } |
| 13024 ::std::string* UninterpretedOption_NamePart::mutable_name_part() { |
| 13025 set_has_name_part(); |
| 13026 // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.
NamePart.name_part) |
| 13027 return name_part_.MutableNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); |
| 13028 } |
| 13029 ::std::string* UninterpretedOption_NamePart::release_name_part() { |
| 13030 // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.
NamePart.name_part) |
| 13031 clear_has_name_part(); |
| 13032 return name_part_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); |
| 13033 } |
| 13034 void UninterpretedOption_NamePart::set_allocated_name_part(::std::string* name_
part) { |
| 13035 if (name_part != NULL) { |
| 13036 set_has_name_part(); |
| 13037 } else { |
| 13038 clear_has_name_part(); |
| 13039 } |
| 13040 name_part_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited(), name_part); |
| 13041 // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedO
ption.NamePart.name_part) |
| 13042 } |
| 13043 |
| 13044 // required bool is_extension = 2; |
| 13045 bool UninterpretedOption_NamePart::has_is_extension() const { |
| 13046 return (_has_bits_[0] & 0x00000002u) != 0; |
| 13047 } |
| 13048 void UninterpretedOption_NamePart::set_has_is_extension() { |
| 13049 _has_bits_[0] |= 0x00000002u; |
| 13050 } |
| 13051 void UninterpretedOption_NamePart::clear_has_is_extension() { |
| 13052 _has_bits_[0] &= ~0x00000002u; |
| 13053 } |
| 13054 void UninterpretedOption_NamePart::clear_is_extension() { |
| 13055 is_extension_ = false; |
| 13056 clear_has_is_extension(); |
| 13057 } |
| 13058 bool UninterpretedOption_NamePart::is_extension() const { |
| 13059 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.Name
Part.is_extension) |
| 13060 return is_extension_; |
| 13061 } |
| 13062 void UninterpretedOption_NamePart::set_is_extension(bool value) { |
| 13063 set_has_is_extension(); |
| 13064 is_extension_ = value; |
| 13065 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.Name
Part.is_extension) |
| 13066 } |
| 13067 |
| 13068 // ------------------------------------------------------------------- |
| 13069 |
| 13287 // UninterpretedOption | 13070 // UninterpretedOption |
| 13288 | 13071 |
| 13289 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; | 13072 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; |
| 13290 int UninterpretedOption::name_size() const { | 13073 int UninterpretedOption::name_size() const { |
| 13291 return name_.size(); | 13074 return name_.size(); |
| 13292 } | 13075 } |
| 13293 void UninterpretedOption::clear_name() { | 13076 void UninterpretedOption::clear_name() { |
| 13294 name_.Clear(); | 13077 name_.Clear(); |
| 13295 } | 13078 } |
| 13296 const ::google::protobuf::UninterpretedOption_NamePart& UninterpretedOption::nam
e(int index) const { | 13079 const ::google::protobuf::UninterpretedOption_NamePart& UninterpretedOption::nam
e(int index) const { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 13311 return &name_; | 13094 return &name_; |
| 13312 } | 13095 } |
| 13313 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt
ion_NamePart >& | 13096 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt
ion_NamePart >& |
| 13314 UninterpretedOption::name() const { | 13097 UninterpretedOption::name() const { |
| 13315 // @@protoc_insertion_point(field_list:google.protobuf.UninterpretedOption.nam
e) | 13098 // @@protoc_insertion_point(field_list:google.protobuf.UninterpretedOption.nam
e) |
| 13316 return name_; | 13099 return name_; |
| 13317 } | 13100 } |
| 13318 | 13101 |
| 13319 // optional string identifier_value = 3; | 13102 // optional string identifier_value = 3; |
| 13320 bool UninterpretedOption::has_identifier_value() const { | 13103 bool UninterpretedOption::has_identifier_value() const { |
| 13321 return (_has_bits_[0] & 0x00000001u) != 0; | 13104 return (_has_bits_[0] & 0x00000002u) != 0; |
| 13322 } | 13105 } |
| 13323 void UninterpretedOption::set_has_identifier_value() { | 13106 void UninterpretedOption::set_has_identifier_value() { |
| 13324 _has_bits_[0] |= 0x00000001u; | 13107 _has_bits_[0] |= 0x00000002u; |
| 13325 } | 13108 } |
| 13326 void UninterpretedOption::clear_has_identifier_value() { | 13109 void UninterpretedOption::clear_has_identifier_value() { |
| 13327 _has_bits_[0] &= ~0x00000001u; | 13110 _has_bits_[0] &= ~0x00000002u; |
| 13328 } | 13111 } |
| 13329 void UninterpretedOption::clear_identifier_value() { | 13112 void UninterpretedOption::clear_identifier_value() { |
| 13330 identifier_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited()); | 13113 identifier_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited()); |
| 13331 clear_has_identifier_value(); | 13114 clear_has_identifier_value(); |
| 13332 } | 13115 } |
| 13333 const ::std::string& UninterpretedOption::identifier_value() const { | 13116 const ::std::string& UninterpretedOption::identifier_value() const { |
| 13334 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.iden
tifier_value) | 13117 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.iden
tifier_value) |
| 13335 return identifier_value_.GetNoArena(); | 13118 return identifier_value_.GetNoArena(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited()); |
| 13336 } | 13119 } |
| 13337 void UninterpretedOption::set_identifier_value(const ::std::string& value) { | 13120 void UninterpretedOption::set_identifier_value(const ::std::string& value) { |
| 13338 set_has_identifier_value(); | 13121 set_has_identifier_value(); |
| 13339 identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), value); | 13122 identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), value); |
| 13340 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.iden
tifier_value) | 13123 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.iden
tifier_value) |
| 13341 } | 13124 } |
| 13342 void UninterpretedOption::set_identifier_value(const char* value) { | 13125 void UninterpretedOption::set_identifier_value(const char* value) { |
| 13343 set_has_identifier_value(); | 13126 set_has_identifier_value(); |
| 13344 identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), ::std::string(value)); | 13127 identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), ::std::string(value)); |
| 13345 // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption
.identifier_value) | 13128 // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption
.identifier_value) |
| 13346 } | 13129 } |
| 13347 void UninterpretedOption::set_identifier_value(const char* value, size_t size) { | 13130 void UninterpretedOption::set_identifier_value(const char* value, size_t size)
{ |
| 13348 set_has_identifier_value(); | 13131 set_has_identifier_value(); |
| 13349 identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), | 13132 identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), |
| 13350 ::std::string(reinterpret_cast<const char*>(value), size)); | 13133 ::std::string(reinterpret_cast<const char*>(value), size)); |
| 13351 // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOpt
ion.identifier_value) | 13134 // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOpt
ion.identifier_value) |
| 13352 } | 13135 } |
| 13353 ::std::string* UninterpretedOption::mutable_identifier_value() { | 13136 ::std::string* UninterpretedOption::mutable_identifier_value() { |
| 13354 set_has_identifier_value(); | 13137 set_has_identifier_value(); |
| 13355 // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.
identifier_value) | 13138 // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.
identifier_value) |
| 13356 return identifier_value_.MutableNoArena(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited()); | 13139 return identifier_value_.MutableNoArena(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited()); |
| 13357 } | 13140 } |
| 13358 ::std::string* UninterpretedOption::release_identifier_value() { | 13141 ::std::string* UninterpretedOption::release_identifier_value() { |
| 13359 // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.
identifier_value) | 13142 // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.
identifier_value) |
| 13360 clear_has_identifier_value(); | 13143 clear_has_identifier_value(); |
| 13361 return identifier_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited()); | 13144 return identifier_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited()); |
| 13362 } | 13145 } |
| 13363 void UninterpretedOption::set_allocated_identifier_value(::std::string* identifi
er_value) { | 13146 void UninterpretedOption::set_allocated_identifier_value(::std::string* identif
ier_value) { |
| 13364 if (identifier_value != NULL) { | 13147 if (identifier_value != NULL) { |
| 13365 set_has_identifier_value(); | 13148 set_has_identifier_value(); |
| 13366 } else { | 13149 } else { |
| 13367 clear_has_identifier_value(); | 13150 clear_has_identifier_value(); |
| 13368 } | 13151 } |
| 13369 identifier_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited(), identifier_value); | 13152 identifier_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited(), identifier_value); |
| 13370 // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedO
ption.identifier_value) | 13153 // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedO
ption.identifier_value) |
| 13371 } | 13154 } |
| 13372 | 13155 |
| 13373 // optional uint64 positive_int_value = 4; | 13156 // optional uint64 positive_int_value = 4; |
| 13374 bool UninterpretedOption::has_positive_int_value() const { | 13157 bool UninterpretedOption::has_positive_int_value() const { |
| 13375 return (_has_bits_[0] & 0x00000008u) != 0; | 13158 return (_has_bits_[0] & 0x00000004u) != 0; |
| 13376 } | 13159 } |
| 13377 void UninterpretedOption::set_has_positive_int_value() { | 13160 void UninterpretedOption::set_has_positive_int_value() { |
| 13378 _has_bits_[0] |= 0x00000008u; | 13161 _has_bits_[0] |= 0x00000004u; |
| 13379 } | 13162 } |
| 13380 void UninterpretedOption::clear_has_positive_int_value() { | 13163 void UninterpretedOption::clear_has_positive_int_value() { |
| 13381 _has_bits_[0] &= ~0x00000008u; | 13164 _has_bits_[0] &= ~0x00000004u; |
| 13382 } | 13165 } |
| 13383 void UninterpretedOption::clear_positive_int_value() { | 13166 void UninterpretedOption::clear_positive_int_value() { |
| 13384 positive_int_value_ = GOOGLE_ULONGLONG(0); | 13167 positive_int_value_ = GOOGLE_ULONGLONG(0); |
| 13385 clear_has_positive_int_value(); | 13168 clear_has_positive_int_value(); |
| 13386 } | 13169 } |
| 13387 ::google::protobuf::uint64 UninterpretedOption::positive_int_value() const { | 13170 ::google::protobuf::uint64 UninterpretedOption::positive_int_value() const { |
| 13388 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.posi
tive_int_value) | 13171 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.posi
tive_int_value) |
| 13389 return positive_int_value_; | 13172 return positive_int_value_; |
| 13390 } | 13173 } |
| 13391 void UninterpretedOption::set_positive_int_value(::google::protobuf::uint64 valu
e) { | 13174 void UninterpretedOption::set_positive_int_value(::google::protobuf::uint64 val
ue) { |
| 13392 set_has_positive_int_value(); | 13175 set_has_positive_int_value(); |
| 13393 positive_int_value_ = value; | 13176 positive_int_value_ = value; |
| 13394 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.posi
tive_int_value) | 13177 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.posi
tive_int_value) |
| 13395 } | 13178 } |
| 13396 | 13179 |
| 13397 // optional int64 negative_int_value = 5; | 13180 // optional int64 negative_int_value = 5; |
| 13398 bool UninterpretedOption::has_negative_int_value() const { | 13181 bool UninterpretedOption::has_negative_int_value() const { |
| 13399 return (_has_bits_[0] & 0x00000010u) != 0; | 13182 return (_has_bits_[0] & 0x00000008u) != 0; |
| 13400 } | 13183 } |
| 13401 void UninterpretedOption::set_has_negative_int_value() { | 13184 void UninterpretedOption::set_has_negative_int_value() { |
| 13402 _has_bits_[0] |= 0x00000010u; | 13185 _has_bits_[0] |= 0x00000008u; |
| 13403 } | 13186 } |
| 13404 void UninterpretedOption::clear_has_negative_int_value() { | 13187 void UninterpretedOption::clear_has_negative_int_value() { |
| 13405 _has_bits_[0] &= ~0x00000010u; | 13188 _has_bits_[0] &= ~0x00000008u; |
| 13406 } | 13189 } |
| 13407 void UninterpretedOption::clear_negative_int_value() { | 13190 void UninterpretedOption::clear_negative_int_value() { |
| 13408 negative_int_value_ = GOOGLE_LONGLONG(0); | 13191 negative_int_value_ = GOOGLE_LONGLONG(0); |
| 13409 clear_has_negative_int_value(); | 13192 clear_has_negative_int_value(); |
| 13410 } | 13193 } |
| 13411 ::google::protobuf::int64 UninterpretedOption::negative_int_value() const { | 13194 ::google::protobuf::int64 UninterpretedOption::negative_int_value() const { |
| 13412 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.nega
tive_int_value) | 13195 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.nega
tive_int_value) |
| 13413 return negative_int_value_; | 13196 return negative_int_value_; |
| 13414 } | 13197 } |
| 13415 void UninterpretedOption::set_negative_int_value(::google::protobuf::int64 value
) { | 13198 void UninterpretedOption::set_negative_int_value(::google::protobuf::int64 valu
e) { |
| 13416 set_has_negative_int_value(); | 13199 set_has_negative_int_value(); |
| 13417 negative_int_value_ = value; | 13200 negative_int_value_ = value; |
| 13418 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.nega
tive_int_value) | 13201 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.nega
tive_int_value) |
| 13419 } | 13202 } |
| 13420 | 13203 |
| 13421 // optional double double_value = 6; | 13204 // optional double double_value = 6; |
| 13422 bool UninterpretedOption::has_double_value() const { | 13205 bool UninterpretedOption::has_double_value() const { |
| 13423 return (_has_bits_[0] & 0x00000020u) != 0; | 13206 return (_has_bits_[0] & 0x00000010u) != 0; |
| 13424 } | 13207 } |
| 13425 void UninterpretedOption::set_has_double_value() { | 13208 void UninterpretedOption::set_has_double_value() { |
| 13426 _has_bits_[0] |= 0x00000020u; | 13209 _has_bits_[0] |= 0x00000010u; |
| 13427 } | 13210 } |
| 13428 void UninterpretedOption::clear_has_double_value() { | 13211 void UninterpretedOption::clear_has_double_value() { |
| 13429 _has_bits_[0] &= ~0x00000020u; | 13212 _has_bits_[0] &= ~0x00000010u; |
| 13430 } | 13213 } |
| 13431 void UninterpretedOption::clear_double_value() { | 13214 void UninterpretedOption::clear_double_value() { |
| 13432 double_value_ = 0; | 13215 double_value_ = 0; |
| 13433 clear_has_double_value(); | 13216 clear_has_double_value(); |
| 13434 } | 13217 } |
| 13435 double UninterpretedOption::double_value() const { | 13218 double UninterpretedOption::double_value() const { |
| 13436 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.doub
le_value) | 13219 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.doub
le_value) |
| 13437 return double_value_; | 13220 return double_value_; |
| 13438 } | 13221 } |
| 13439 void UninterpretedOption::set_double_value(double value) { | 13222 void UninterpretedOption::set_double_value(double value) { |
| 13440 set_has_double_value(); | 13223 set_has_double_value(); |
| 13441 double_value_ = value; | 13224 double_value_ = value; |
| 13442 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.doub
le_value) | 13225 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.doub
le_value) |
| 13443 } | 13226 } |
| 13444 | 13227 |
| 13445 // optional bytes string_value = 7; | 13228 // optional bytes string_value = 7; |
| 13446 bool UninterpretedOption::has_string_value() const { | 13229 bool UninterpretedOption::has_string_value() const { |
| 13447 return (_has_bits_[0] & 0x00000002u) != 0; | 13230 return (_has_bits_[0] & 0x00000020u) != 0; |
| 13448 } | 13231 } |
| 13449 void UninterpretedOption::set_has_string_value() { | 13232 void UninterpretedOption::set_has_string_value() { |
| 13450 _has_bits_[0] |= 0x00000002u; | 13233 _has_bits_[0] |= 0x00000020u; |
| 13451 } | 13234 } |
| 13452 void UninterpretedOption::clear_has_string_value() { | 13235 void UninterpretedOption::clear_has_string_value() { |
| 13453 _has_bits_[0] &= ~0x00000002u; | 13236 _has_bits_[0] &= ~0x00000020u; |
| 13454 } | 13237 } |
| 13455 void UninterpretedOption::clear_string_value() { | 13238 void UninterpretedOption::clear_string_value() { |
| 13456 string_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); | 13239 string_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); |
| 13457 clear_has_string_value(); | 13240 clear_has_string_value(); |
| 13458 } | 13241 } |
| 13459 const ::std::string& UninterpretedOption::string_value() const { | 13242 const ::std::string& UninterpretedOption::string_value() const { |
| 13460 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.stri
ng_value) | 13243 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.stri
ng_value) |
| 13461 return string_value_.GetNoArena(); | 13244 return string_value_.GetNoArena(&::google::protobuf::internal::GetEmptyStringA
lreadyInited()); |
| 13462 } | 13245 } |
| 13463 void UninterpretedOption::set_string_value(const ::std::string& value) { | 13246 void UninterpretedOption::set_string_value(const ::std::string& value) { |
| 13464 set_has_string_value(); | 13247 set_has_string_value(); |
| 13465 string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI
nited(), value); | 13248 string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI
nited(), value); |
| 13466 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.stri
ng_value) | 13249 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.stri
ng_value) |
| 13467 } | 13250 } |
| 13468 void UninterpretedOption::set_string_value(const char* value) { | 13251 void UninterpretedOption::set_string_value(const char* value) { |
| 13469 set_has_string_value(); | 13252 set_has_string_value(); |
| 13470 string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI
nited(), ::std::string(value)); | 13253 string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI
nited(), ::std::string(value)); |
| 13471 // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption
.string_value) | 13254 // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption
.string_value) |
| 13472 } | 13255 } |
| 13473 void UninterpretedOption::set_string_value(const void* value, size_t size) { | 13256 void UninterpretedOption::set_string_value(const void* value, size_t size) { |
| 13474 set_has_string_value(); | 13257 set_has_string_value(); |
| 13475 string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI
nited(), | 13258 string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI
nited(), |
| 13476 ::std::string(reinterpret_cast<const char*>(value), size)); | 13259 ::std::string(reinterpret_cast<const char*>(value), size)); |
| 13477 // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOpt
ion.string_value) | 13260 // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOpt
ion.string_value) |
| 13478 } | 13261 } |
| 13479 ::std::string* UninterpretedOption::mutable_string_value() { | 13262 ::std::string* UninterpretedOption::mutable_string_value() { |
| 13480 set_has_string_value(); | 13263 set_has_string_value(); |
| 13481 // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.
string_value) | 13264 // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.
string_value) |
| 13482 return string_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited()); | 13265 return string_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited()); |
| 13483 } | 13266 } |
| 13484 ::std::string* UninterpretedOption::release_string_value() { | 13267 ::std::string* UninterpretedOption::release_string_value() { |
| 13485 // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.
string_value) | 13268 // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.
string_value) |
| 13486 clear_has_string_value(); | 13269 clear_has_string_value(); |
| 13487 return string_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited()); | 13270 return string_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited()); |
| 13488 } | 13271 } |
| 13489 void UninterpretedOption::set_allocated_string_value(::std::string* string_value
) { | 13272 void UninterpretedOption::set_allocated_string_value(::std::string* string_valu
e) { |
| 13490 if (string_value != NULL) { | 13273 if (string_value != NULL) { |
| 13491 set_has_string_value(); | 13274 set_has_string_value(); |
| 13492 } else { | 13275 } else { |
| 13493 clear_has_string_value(); | 13276 clear_has_string_value(); |
| 13494 } | 13277 } |
| 13495 string_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited(), string_value); | 13278 string_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited(), string_value); |
| 13496 // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedO
ption.string_value) | 13279 // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedO
ption.string_value) |
| 13497 } | 13280 } |
| 13498 | 13281 |
| 13499 // optional string aggregate_value = 8; | 13282 // optional string aggregate_value = 8; |
| 13500 bool UninterpretedOption::has_aggregate_value() const { | 13283 bool UninterpretedOption::has_aggregate_value() const { |
| 13501 return (_has_bits_[0] & 0x00000004u) != 0; | 13284 return (_has_bits_[0] & 0x00000040u) != 0; |
| 13502 } | 13285 } |
| 13503 void UninterpretedOption::set_has_aggregate_value() { | 13286 void UninterpretedOption::set_has_aggregate_value() { |
| 13504 _has_bits_[0] |= 0x00000004u; | 13287 _has_bits_[0] |= 0x00000040u; |
| 13505 } | 13288 } |
| 13506 void UninterpretedOption::clear_has_aggregate_value() { | 13289 void UninterpretedOption::clear_has_aggregate_value() { |
| 13507 _has_bits_[0] &= ~0x00000004u; | 13290 _has_bits_[0] &= ~0x00000040u; |
| 13508 } | 13291 } |
| 13509 void UninterpretedOption::clear_aggregate_value() { | 13292 void UninterpretedOption::clear_aggregate_value() { |
| 13510 aggregate_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited()); | 13293 aggregate_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited()); |
| 13511 clear_has_aggregate_value(); | 13294 clear_has_aggregate_value(); |
| 13512 } | 13295 } |
| 13513 const ::std::string& UninterpretedOption::aggregate_value() const { | 13296 const ::std::string& UninterpretedOption::aggregate_value() const { |
| 13514 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.aggr
egate_value) | 13297 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.aggr
egate_value) |
| 13515 return aggregate_value_.GetNoArena(); | 13298 return aggregate_value_.GetNoArena(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); |
| 13516 } | 13299 } |
| 13517 void UninterpretedOption::set_aggregate_value(const ::std::string& value) { | 13300 void UninterpretedOption::set_aggregate_value(const ::std::string& value) { |
| 13518 set_has_aggregate_value(); | 13301 set_has_aggregate_value(); |
| 13519 aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), value); | 13302 aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), value); |
| 13520 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.aggr
egate_value) | 13303 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.aggr
egate_value) |
| 13521 } | 13304 } |
| 13522 void UninterpretedOption::set_aggregate_value(const char* value) { | 13305 void UninterpretedOption::set_aggregate_value(const char* value) { |
| 13523 set_has_aggregate_value(); | 13306 set_has_aggregate_value(); |
| 13524 aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), ::std::string(value)); | 13307 aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), ::std::string(value)); |
| 13525 // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption
.aggregate_value) | 13308 // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption
.aggregate_value) |
| 13526 } | 13309 } |
| 13527 void UninterpretedOption::set_aggregate_value(const char* value, size_t size) { | 13310 void UninterpretedOption::set_aggregate_value(const char* value, size_t size) { |
| 13528 set_has_aggregate_value(); | 13311 set_has_aggregate_value(); |
| 13529 aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), | 13312 aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), |
| 13530 ::std::string(reinterpret_cast<const char*>(value), size)); | 13313 ::std::string(reinterpret_cast<const char*>(value), size)); |
| 13531 // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOpt
ion.aggregate_value) | 13314 // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOpt
ion.aggregate_value) |
| 13532 } | 13315 } |
| 13533 ::std::string* UninterpretedOption::mutable_aggregate_value() { | 13316 ::std::string* UninterpretedOption::mutable_aggregate_value() { |
| 13534 set_has_aggregate_value(); | 13317 set_has_aggregate_value(); |
| 13535 // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.
aggregate_value) | 13318 // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.
aggregate_value) |
| 13536 return aggregate_value_.MutableNoArena(&::google::protobuf::internal::GetEmpty
StringAlreadyInited()); | 13319 return aggregate_value_.MutableNoArena(&::google::protobuf::internal::GetEmpty
StringAlreadyInited()); |
| 13537 } | 13320 } |
| 13538 ::std::string* UninterpretedOption::release_aggregate_value() { | 13321 ::std::string* UninterpretedOption::release_aggregate_value() { |
| 13539 // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.
aggregate_value) | 13322 // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.
aggregate_value) |
| 13540 clear_has_aggregate_value(); | 13323 clear_has_aggregate_value(); |
| 13541 return aggregate_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmpty
StringAlreadyInited()); | 13324 return aggregate_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmpty
StringAlreadyInited()); |
| 13542 } | 13325 } |
| 13543 void UninterpretedOption::set_allocated_aggregate_value(::std::string* aggregate
_value) { | 13326 void UninterpretedOption::set_allocated_aggregate_value(::std::string* aggregat
e_value) { |
| 13544 if (aggregate_value != NULL) { | 13327 if (aggregate_value != NULL) { |
| 13545 set_has_aggregate_value(); | 13328 set_has_aggregate_value(); |
| 13546 } else { | 13329 } else { |
| 13547 clear_has_aggregate_value(); | 13330 clear_has_aggregate_value(); |
| 13548 } | 13331 } |
| 13549 aggregate_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited(), aggregate_value); | 13332 aggregate_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited(), aggregate_value); |
| 13550 // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedO
ption.aggregate_value) | 13333 // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedO
ption.aggregate_value) |
| 13551 } | 13334 } |
| 13552 | 13335 |
| 13553 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 13336 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 13554 | 13337 |
| 13555 // =================================================================== | 13338 // =================================================================== |
| 13556 | 13339 |
| 13557 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 13340 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 13558 const int SourceCodeInfo_Location::kPathFieldNumber; | 13341 const int SourceCodeInfo_Location::kPathFieldNumber; |
| 13559 const int SourceCodeInfo_Location::kSpanFieldNumber; | 13342 const int SourceCodeInfo_Location::kSpanFieldNumber; |
| 13560 const int SourceCodeInfo_Location::kLeadingCommentsFieldNumber; | 13343 const int SourceCodeInfo_Location::kLeadingCommentsFieldNumber; |
| 13561 const int SourceCodeInfo_Location::kTrailingCommentsFieldNumber; | 13344 const int SourceCodeInfo_Location::kTrailingCommentsFieldNumber; |
| 13562 const int SourceCodeInfo_Location::kLeadingDetachedCommentsFieldNumber; | 13345 const int SourceCodeInfo_Location::kLeadingDetachedCommentsFieldNumber; |
| 13563 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 13346 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 13564 | 13347 |
| 13565 SourceCodeInfo_Location::SourceCodeInfo_Location() | 13348 SourceCodeInfo_Location::SourceCodeInfo_Location() |
| 13566 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 13349 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 13567 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
| 13568 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
| 13569 } | |
| 13570 SharedCtor(); | 13350 SharedCtor(); |
| 13571 // @@protoc_insertion_point(constructor:google.protobuf.SourceCodeInfo.Locatio
n) | 13351 // @@protoc_insertion_point(constructor:google.protobuf.SourceCodeInfo.Locatio
n) |
| 13572 } | 13352 } |
| 13353 |
| 13354 void SourceCodeInfo_Location::InitAsDefaultInstance() { |
| 13355 } |
| 13356 |
| 13573 SourceCodeInfo_Location::SourceCodeInfo_Location(const SourceCodeInfo_Location&
from) | 13357 SourceCodeInfo_Location::SourceCodeInfo_Location(const SourceCodeInfo_Location&
from) |
| 13574 : ::google::protobuf::Message(), | 13358 : ::google::protobuf::Message(), |
| 13575 _internal_metadata_(NULL), | 13359 _internal_metadata_(NULL) { |
| 13576 _has_bits_(from._has_bits_), | 13360 SharedCtor(); |
| 13577 _cached_size_(0), | 13361 MergeFrom(from); |
| 13578 path_(from.path_), | |
| 13579 span_(from.span_), | |
| 13580 leading_detached_comments_(from.leading_detached_comments_) { | |
| 13581 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 13582 leading_comments_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); | |
| 13583 if (from.has_leading_comments()) { | |
| 13584 leading_comments_.AssignWithDefault(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited(), from.leading_comments_); | |
| 13585 } | |
| 13586 trailing_comments_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited()); | |
| 13587 if (from.has_trailing_comments()) { | |
| 13588 trailing_comments_.AssignWithDefault(&::google::protobuf::internal::GetEmpty
StringAlreadyInited(), from.trailing_comments_); | |
| 13589 } | |
| 13590 // @@protoc_insertion_point(copy_constructor:google.protobuf.SourceCodeInfo.Lo
cation) | 13362 // @@protoc_insertion_point(copy_constructor:google.protobuf.SourceCodeInfo.Lo
cation) |
| 13591 } | 13363 } |
| 13592 | 13364 |
| 13593 void SourceCodeInfo_Location::SharedCtor() { | 13365 void SourceCodeInfo_Location::SharedCtor() { |
| 13366 ::google::protobuf::internal::GetEmptyString(); |
| 13594 _cached_size_ = 0; | 13367 _cached_size_ = 0; |
| 13595 leading_comments_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); | 13368 leading_comments_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); |
| 13596 trailing_comments_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited()); | 13369 trailing_comments_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited()); |
| 13370 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 13597 } | 13371 } |
| 13598 | 13372 |
| 13599 SourceCodeInfo_Location::~SourceCodeInfo_Location() { | 13373 SourceCodeInfo_Location::~SourceCodeInfo_Location() { |
| 13600 // @@protoc_insertion_point(destructor:google.protobuf.SourceCodeInfo.Location
) | 13374 // @@protoc_insertion_point(destructor:google.protobuf.SourceCodeInfo.Location
) |
| 13601 SharedDtor(); | 13375 SharedDtor(); |
| 13602 } | 13376 } |
| 13603 | 13377 |
| 13604 void SourceCodeInfo_Location::SharedDtor() { | 13378 void SourceCodeInfo_Location::SharedDtor() { |
| 13605 leading_comments_.DestroyNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); | 13379 leading_comments_.DestroyNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); |
| 13606 trailing_comments_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); | 13380 trailing_comments_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); |
| 13381 if (this != default_instance_) { |
| 13382 } |
| 13607 } | 13383 } |
| 13608 | 13384 |
| 13609 void SourceCodeInfo_Location::SetCachedSize(int size) const { | 13385 void SourceCodeInfo_Location::SetCachedSize(int size) const { |
| 13610 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 13386 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 13611 _cached_size_ = size; | 13387 _cached_size_ = size; |
| 13612 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 13388 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 13613 } | 13389 } |
| 13614 const ::google::protobuf::Descriptor* SourceCodeInfo_Location::descriptor() { | 13390 const ::google::protobuf::Descriptor* SourceCodeInfo_Location::descriptor() { |
| 13615 protobuf_AssignDescriptorsOnce(); | 13391 protobuf_AssignDescriptorsOnce(); |
| 13616 return file_level_metadata[21].descriptor; | 13392 return SourceCodeInfo_Location_descriptor_; |
| 13617 } | 13393 } |
| 13618 | 13394 |
| 13619 const SourceCodeInfo_Location& SourceCodeInfo_Location::default_instance() { | 13395 const SourceCodeInfo_Location& SourceCodeInfo_Location::default_instance() { |
| 13620 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 13396 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
| 13621 return *internal_default_instance(); | 13397 return *default_instance_; |
| 13622 } | 13398 } |
| 13623 | 13399 |
| 13400 SourceCodeInfo_Location* SourceCodeInfo_Location::default_instance_ = NULL; |
| 13401 |
| 13624 SourceCodeInfo_Location* SourceCodeInfo_Location::New(::google::protobuf::Arena*
arena) const { | 13402 SourceCodeInfo_Location* SourceCodeInfo_Location::New(::google::protobuf::Arena*
arena) const { |
| 13625 SourceCodeInfo_Location* n = new SourceCodeInfo_Location; | 13403 SourceCodeInfo_Location* n = new SourceCodeInfo_Location; |
| 13626 if (arena != NULL) { | 13404 if (arena != NULL) { |
| 13627 arena->Own(n); | 13405 arena->Own(n); |
| 13628 } | 13406 } |
| 13629 return n; | 13407 return n; |
| 13630 } | 13408 } |
| 13631 | 13409 |
| 13632 void SourceCodeInfo_Location::Clear() { | 13410 void SourceCodeInfo_Location::Clear() { |
| 13633 // @@protoc_insertion_point(message_clear_start:google.protobuf.SourceCodeInfo.L
ocation) | 13411 // @@protoc_insertion_point(message_clear_start:google.protobuf.SourceCodeInfo.L
ocation) |
| 13412 if (_has_bits_[0 / 32] & 12u) { |
| 13413 if (has_leading_comments()) { |
| 13414 leading_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEm
ptyStringAlreadyInited()); |
| 13415 } |
| 13416 if (has_trailing_comments()) { |
| 13417 trailing_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetE
mptyStringAlreadyInited()); |
| 13418 } |
| 13419 } |
| 13634 path_.Clear(); | 13420 path_.Clear(); |
| 13635 span_.Clear(); | 13421 span_.Clear(); |
| 13636 leading_detached_comments_.Clear(); | 13422 leading_detached_comments_.Clear(); |
| 13637 if (_has_bits_[0 / 32] & 3u) { | 13423 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 13638 if (has_leading_comments()) { | 13424 if (_internal_metadata_.have_unknown_fields()) { |
| 13639 GOOGLE_DCHECK(!leading_comments_.IsDefault(&::google::protobuf::internal::
GetEmptyStringAlreadyInited())); | 13425 mutable_unknown_fields()->Clear(); |
| 13640 (*leading_comments_.UnsafeRawStringPointer())->clear(); | |
| 13641 } | |
| 13642 if (has_trailing_comments()) { | |
| 13643 GOOGLE_DCHECK(!trailing_comments_.IsDefault(&::google::protobuf::internal:
:GetEmptyStringAlreadyInited())); | |
| 13644 (*trailing_comments_.UnsafeRawStringPointer())->clear(); | |
| 13645 } | |
| 13646 } | 13426 } |
| 13647 _has_bits_.Clear(); | |
| 13648 _internal_metadata_.Clear(); | |
| 13649 } | 13427 } |
| 13650 | 13428 |
| 13651 bool SourceCodeInfo_Location::MergePartialFromCodedStream( | 13429 bool SourceCodeInfo_Location::MergePartialFromCodedStream( |
| 13652 ::google::protobuf::io::CodedInputStream* input) { | 13430 ::google::protobuf::io::CodedInputStream* input) { |
| 13653 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 13431 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 13654 ::google::protobuf::uint32 tag; | 13432 ::google::protobuf::uint32 tag; |
| 13655 // @@protoc_insertion_point(parse_start:google.protobuf.SourceCodeInfo.Locatio
n) | 13433 // @@protoc_insertion_point(parse_start:google.protobuf.SourceCodeInfo.Locatio
n) |
| 13656 for (;;) { | 13434 for (;;) { |
| 13657 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 13435 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
| 13658 tag = p.first; | 13436 tag = p.first; |
| 13659 if (!p.second) goto handle_unusual; | 13437 if (!p.second) goto handle_unusual; |
| 13660 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 13438 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
| 13661 // repeated int32 path = 1 [packed = true]; | 13439 // repeated int32 path = 1 [packed = true]; |
| 13662 case 1: { | 13440 case 1: { |
| 13663 if (tag == 10u) { | 13441 if (tag == 10) { |
| 13664 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive
< | 13442 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive
< |
| 13665 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 13443 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
| 13666 input, this->mutable_path()))); | 13444 input, this->mutable_path()))); |
| 13667 } else if (tag == 8u) { | 13445 } else if (tag == 8) { |
| 13668 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimiti
veNoInline< | 13446 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimiti
veNoInline< |
| 13669 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 13447 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
| 13670 1, 10u, input, this->mutable_path()))); | 13448 1, 10, input, this->mutable_path()))); |
| 13671 } else { | 13449 } else { |
| 13672 goto handle_unusual; | 13450 goto handle_unusual; |
| 13673 } | 13451 } |
| 13452 if (input->ExpectTag(18)) goto parse_span; |
| 13674 break; | 13453 break; |
| 13675 } | 13454 } |
| 13676 | 13455 |
| 13677 // repeated int32 span = 2 [packed = true]; | 13456 // repeated int32 span = 2 [packed = true]; |
| 13678 case 2: { | 13457 case 2: { |
| 13679 if (tag == 18u) { | 13458 if (tag == 18) { |
| 13459 parse_span: |
| 13680 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive
< | 13460 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive
< |
| 13681 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 13461 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
| 13682 input, this->mutable_span()))); | 13462 input, this->mutable_span()))); |
| 13683 } else if (tag == 16u) { | 13463 } else if (tag == 16) { |
| 13684 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimiti
veNoInline< | 13464 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimiti
veNoInline< |
| 13685 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 13465 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
| 13686 1, 18u, input, this->mutable_span()))); | 13466 1, 18, input, this->mutable_span()))); |
| 13687 } else { | 13467 } else { |
| 13688 goto handle_unusual; | 13468 goto handle_unusual; |
| 13689 } | 13469 } |
| 13470 if (input->ExpectTag(26)) goto parse_leading_comments; |
| 13690 break; | 13471 break; |
| 13691 } | 13472 } |
| 13692 | 13473 |
| 13693 // optional string leading_comments = 3; | 13474 // optional string leading_comments = 3; |
| 13694 case 3: { | 13475 case 3: { |
| 13695 if (tag == 26u) { | 13476 if (tag == 26) { |
| 13477 parse_leading_comments: |
| 13696 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 13478 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 13697 input, this->mutable_leading_comments())); | 13479 input, this->mutable_leading_comments())); |
| 13698 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 13480 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 13699 this->leading_comments().data(), this->leading_comments().length(), | 13481 this->leading_comments().data(), this->leading_comments().length(), |
| 13700 ::google::protobuf::internal::WireFormat::PARSE, | 13482 ::google::protobuf::internal::WireFormat::PARSE, |
| 13701 "google.protobuf.SourceCodeInfo.Location.leading_comments"); | 13483 "google.protobuf.SourceCodeInfo.Location.leading_comments"); |
| 13702 } else { | 13484 } else { |
| 13703 goto handle_unusual; | 13485 goto handle_unusual; |
| 13704 } | 13486 } |
| 13487 if (input->ExpectTag(34)) goto parse_trailing_comments; |
| 13705 break; | 13488 break; |
| 13706 } | 13489 } |
| 13707 | 13490 |
| 13708 // optional string trailing_comments = 4; | 13491 // optional string trailing_comments = 4; |
| 13709 case 4: { | 13492 case 4: { |
| 13710 if (tag == 34u) { | 13493 if (tag == 34) { |
| 13494 parse_trailing_comments: |
| 13711 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 13495 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 13712 input, this->mutable_trailing_comments())); | 13496 input, this->mutable_trailing_comments())); |
| 13713 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 13497 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 13714 this->trailing_comments().data(), this->trailing_comments().length()
, | 13498 this->trailing_comments().data(), this->trailing_comments().length()
, |
| 13715 ::google::protobuf::internal::WireFormat::PARSE, | 13499 ::google::protobuf::internal::WireFormat::PARSE, |
| 13716 "google.protobuf.SourceCodeInfo.Location.trailing_comments"); | 13500 "google.protobuf.SourceCodeInfo.Location.trailing_comments"); |
| 13717 } else { | 13501 } else { |
| 13718 goto handle_unusual; | 13502 goto handle_unusual; |
| 13719 } | 13503 } |
| 13504 if (input->ExpectTag(50)) goto parse_leading_detached_comments; |
| 13720 break; | 13505 break; |
| 13721 } | 13506 } |
| 13722 | 13507 |
| 13723 // repeated string leading_detached_comments = 6; | 13508 // repeated string leading_detached_comments = 6; |
| 13724 case 6: { | 13509 case 6: { |
| 13725 if (tag == 50u) { | 13510 if (tag == 50) { |
| 13511 parse_leading_detached_comments: |
| 13726 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 13512 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 13727 input, this->add_leading_detached_comments())); | 13513 input, this->add_leading_detached_comments())); |
| 13728 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 13514 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 13729 this->leading_detached_comments(this->leading_detached_comments_size
() - 1).data(), | 13515 this->leading_detached_comments(this->leading_detached_comments_size
() - 1).data(), |
| 13730 this->leading_detached_comments(this->leading_detached_comments_size
() - 1).length(), | 13516 this->leading_detached_comments(this->leading_detached_comments_size
() - 1).length(), |
| 13731 ::google::protobuf::internal::WireFormat::PARSE, | 13517 ::google::protobuf::internal::WireFormat::PARSE, |
| 13732 "google.protobuf.SourceCodeInfo.Location.leading_detached_comments")
; | 13518 "google.protobuf.SourceCodeInfo.Location.leading_detached_comments")
; |
| 13733 } else { | 13519 } else { |
| 13734 goto handle_unusual; | 13520 goto handle_unusual; |
| 13735 } | 13521 } |
| 13522 if (input->ExpectTag(50)) goto parse_leading_detached_comments; |
| 13523 if (input->ExpectAtEnd()) goto success; |
| 13736 break; | 13524 break; |
| 13737 } | 13525 } |
| 13738 | 13526 |
| 13739 default: { | 13527 default: { |
| 13740 handle_unusual: | 13528 handle_unusual: |
| 13741 if (tag == 0 || | 13529 if (tag == 0 || |
| 13742 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 13530 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 13743 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 13531 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 13744 goto success; | 13532 goto success; |
| 13745 } | 13533 } |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13811 6, this->leading_detached_comments(i), output); | 13599 6, this->leading_detached_comments(i), output); |
| 13812 } | 13600 } |
| 13813 | 13601 |
| 13814 if (_internal_metadata_.have_unknown_fields()) { | 13602 if (_internal_metadata_.have_unknown_fields()) { |
| 13815 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 13603 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 13816 unknown_fields(), output); | 13604 unknown_fields(), output); |
| 13817 } | 13605 } |
| 13818 // @@protoc_insertion_point(serialize_end:google.protobuf.SourceCodeInfo.Locat
ion) | 13606 // @@protoc_insertion_point(serialize_end:google.protobuf.SourceCodeInfo.Locat
ion) |
| 13819 } | 13607 } |
| 13820 | 13608 |
| 13821 ::google::protobuf::uint8* SourceCodeInfo_Location::InternalSerializeWithCachedS
izesToArray( | 13609 ::google::protobuf::uint8* SourceCodeInfo_Location::SerializeWithCachedSizesToAr
ray( |
| 13822 bool deterministic, ::google::protobuf::uint8* target) const { | 13610 ::google::protobuf::uint8* target) const { |
| 13823 (void)deterministic; // Unused | |
| 13824 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.SourceCod
eInfo.Location) | 13611 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.SourceCod
eInfo.Location) |
| 13825 // repeated int32 path = 1 [packed = true]; | 13612 // repeated int32 path = 1 [packed = true]; |
| 13826 if (this->path_size() > 0) { | 13613 if (this->path_size() > 0) { |
| 13827 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( | 13614 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 13828 1, | 13615 1, |
| 13829 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, | 13616 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| 13830 target); | 13617 target); |
| 13831 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( | 13618 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| 13832 _path_cached_byte_size_, target); | 13619 _path_cached_byte_size_, target); |
| 13833 } | 13620 } |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13883 } | 13670 } |
| 13884 | 13671 |
| 13885 if (_internal_metadata_.have_unknown_fields()) { | 13672 if (_internal_metadata_.have_unknown_fields()) { |
| 13886 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 13673 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
| 13887 unknown_fields(), target); | 13674 unknown_fields(), target); |
| 13888 } | 13675 } |
| 13889 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.SourceCodeI
nfo.Location) | 13676 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.SourceCodeI
nfo.Location) |
| 13890 return target; | 13677 return target; |
| 13891 } | 13678 } |
| 13892 | 13679 |
| 13893 size_t SourceCodeInfo_Location::ByteSizeLong() const { | 13680 int SourceCodeInfo_Location::ByteSize() const { |
| 13894 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.SourceCodeIn
fo.Location) | 13681 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.SourceCodeIn
fo.Location) |
| 13895 size_t total_size = 0; | 13682 int total_size = 0; |
| 13896 | 13683 |
| 13897 if (_internal_metadata_.have_unknown_fields()) { | 13684 if (_has_bits_[2 / 32] & 12u) { |
| 13898 total_size += | 13685 // optional string leading_comments = 3; |
| 13899 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | 13686 if (has_leading_comments()) { |
| 13900 unknown_fields()); | 13687 total_size += 1 + |
| 13688 ::google::protobuf::internal::WireFormatLite::StringSize( |
| 13689 this->leading_comments()); |
| 13690 } |
| 13691 |
| 13692 // optional string trailing_comments = 4; |
| 13693 if (has_trailing_comments()) { |
| 13694 total_size += 1 + |
| 13695 ::google::protobuf::internal::WireFormatLite::StringSize( |
| 13696 this->trailing_comments()); |
| 13697 } |
| 13698 |
| 13901 } | 13699 } |
| 13902 // repeated int32 path = 1 [packed = true]; | 13700 // repeated int32 path = 1 [packed = true]; |
| 13903 { | 13701 { |
| 13904 size_t data_size = 0; | 13702 int data_size = 0; |
| 13905 unsigned int count = this->path_size(); | 13703 for (int i = 0; i < this->path_size(); i++) { |
| 13906 for (unsigned int i = 0; i < count; i++) { | |
| 13907 data_size += ::google::protobuf::internal::WireFormatLite:: | 13704 data_size += ::google::protobuf::internal::WireFormatLite:: |
| 13908 Int32Size(this->path(i)); | 13705 Int32Size(this->path(i)); |
| 13909 } | 13706 } |
| 13910 if (data_size > 0) { | 13707 if (data_size > 0) { |
| 13911 total_size += 1 + | 13708 total_size += 1 + |
| 13912 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); | 13709 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
| 13913 } | 13710 } |
| 13914 int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); | |
| 13915 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 13711 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 13916 _path_cached_byte_size_ = cached_size; | 13712 _path_cached_byte_size_ = data_size; |
| 13917 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 13713 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 13918 total_size += data_size; | 13714 total_size += data_size; |
| 13919 } | 13715 } |
| 13920 | 13716 |
| 13921 // repeated int32 span = 2 [packed = true]; | 13717 // repeated int32 span = 2 [packed = true]; |
| 13922 { | 13718 { |
| 13923 size_t data_size = 0; | 13719 int data_size = 0; |
| 13924 unsigned int count = this->span_size(); | 13720 for (int i = 0; i < this->span_size(); i++) { |
| 13925 for (unsigned int i = 0; i < count; i++) { | |
| 13926 data_size += ::google::protobuf::internal::WireFormatLite:: | 13721 data_size += ::google::protobuf::internal::WireFormatLite:: |
| 13927 Int32Size(this->span(i)); | 13722 Int32Size(this->span(i)); |
| 13928 } | 13723 } |
| 13929 if (data_size > 0) { | 13724 if (data_size > 0) { |
| 13930 total_size += 1 + | 13725 total_size += 1 + |
| 13931 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); | 13726 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
| 13932 } | 13727 } |
| 13933 int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); | |
| 13934 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 13728 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 13935 _span_cached_byte_size_ = cached_size; | 13729 _span_cached_byte_size_ = data_size; |
| 13936 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 13730 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 13937 total_size += data_size; | 13731 total_size += data_size; |
| 13938 } | 13732 } |
| 13939 | 13733 |
| 13940 // repeated string leading_detached_comments = 6; | 13734 // repeated string leading_detached_comments = 6; |
| 13941 total_size += 1 * | 13735 total_size += 1 * this->leading_detached_comments_size(); |
| 13942 ::google::protobuf::internal::FromIntSize(this->leading_detached_comments_
size()); | |
| 13943 for (int i = 0; i < this->leading_detached_comments_size(); i++) { | 13736 for (int i = 0; i < this->leading_detached_comments_size(); i++) { |
| 13944 total_size += ::google::protobuf::internal::WireFormatLite::StringSize( | 13737 total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
| 13945 this->leading_detached_comments(i)); | 13738 this->leading_detached_comments(i)); |
| 13946 } | 13739 } |
| 13947 | 13740 |
| 13948 if (_has_bits_[0 / 32] & 3u) { | 13741 if (_internal_metadata_.have_unknown_fields()) { |
| 13949 // optional string leading_comments = 3; | 13742 total_size += |
| 13950 if (has_leading_comments()) { | 13743 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 13951 total_size += 1 + | 13744 unknown_fields()); |
| 13952 ::google::protobuf::internal::WireFormatLite::StringSize( | |
| 13953 this->leading_comments()); | |
| 13954 } | |
| 13955 | |
| 13956 // optional string trailing_comments = 4; | |
| 13957 if (has_trailing_comments()) { | |
| 13958 total_size += 1 + | |
| 13959 ::google::protobuf::internal::WireFormatLite::StringSize( | |
| 13960 this->trailing_comments()); | |
| 13961 } | |
| 13962 | |
| 13963 } | 13745 } |
| 13964 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | |
| 13965 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 13746 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 13966 _cached_size_ = cached_size; | 13747 _cached_size_ = total_size; |
| 13967 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 13748 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 13968 return total_size; | 13749 return total_size; |
| 13969 } | 13750 } |
| 13970 | 13751 |
| 13971 void SourceCodeInfo_Location::MergeFrom(const ::google::protobuf::Message& from)
{ | 13752 void SourceCodeInfo_Location::MergeFrom(const ::google::protobuf::Message& from)
{ |
| 13972 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.SourceC
odeInfo.Location) | 13753 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.SourceC
odeInfo.Location) |
| 13973 GOOGLE_DCHECK_NE(&from, this); | 13754 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 13974 const SourceCodeInfo_Location* source = | 13755 const SourceCodeInfo_Location* source = |
| 13975 ::google::protobuf::internal::DynamicCastToGenerated<const SourceCodeInfo_
Location>( | 13756 ::google::protobuf::internal::DynamicCastToGenerated<const SourceCodeInfo_
Location>( |
| 13976 &from); | 13757 &from); |
| 13977 if (source == NULL) { | 13758 if (source == NULL) { |
| 13978 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.S
ourceCodeInfo.Location) | 13759 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.S
ourceCodeInfo.Location) |
| 13979 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 13760 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 13980 } else { | 13761 } else { |
| 13981 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.SourceCodeInfo.Location) | 13762 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.SourceCodeInfo.Location) |
| 13982 MergeFrom(*source); | 13763 MergeFrom(*source); |
| 13983 } | 13764 } |
| 13984 } | 13765 } |
| 13985 | 13766 |
| 13986 void SourceCodeInfo_Location::MergeFrom(const SourceCodeInfo_Location& from) { | 13767 void SourceCodeInfo_Location::MergeFrom(const SourceCodeInfo_Location& from) { |
| 13987 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Sour
ceCodeInfo.Location) | 13768 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Sour
ceCodeInfo.Location) |
| 13988 GOOGLE_DCHECK_NE(&from, this); | 13769 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 13989 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 13990 path_.MergeFrom(from.path_); | 13770 path_.MergeFrom(from.path_); |
| 13991 span_.MergeFrom(from.span_); | 13771 span_.MergeFrom(from.span_); |
| 13992 leading_detached_comments_.MergeFrom(from.leading_detached_comments_); | 13772 leading_detached_comments_.MergeFrom(from.leading_detached_comments_); |
| 13993 if (from._has_bits_[0 / 32] & 3u) { | 13773 if (from._has_bits_[2 / 32] & (0xffu << (2 % 32))) { |
| 13994 if (from.has_leading_comments()) { | 13774 if (from.has_leading_comments()) { |
| 13995 set_has_leading_comments(); | 13775 set_has_leading_comments(); |
| 13996 leading_comments_.AssignWithDefault(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited(), from.leading_comments_); | 13776 leading_comments_.AssignWithDefault(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited(), from.leading_comments_); |
| 13997 } | 13777 } |
| 13998 if (from.has_trailing_comments()) { | 13778 if (from.has_trailing_comments()) { |
| 13999 set_has_trailing_comments(); | 13779 set_has_trailing_comments(); |
| 14000 trailing_comments_.AssignWithDefault(&::google::protobuf::internal::GetEmp
tyStringAlreadyInited(), from.trailing_comments_); | 13780 trailing_comments_.AssignWithDefault(&::google::protobuf::internal::GetEmp
tyStringAlreadyInited(), from.trailing_comments_); |
| 14001 } | 13781 } |
| 14002 } | 13782 } |
| 13783 if (from._internal_metadata_.have_unknown_fields()) { |
| 13784 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 13785 } |
| 14003 } | 13786 } |
| 14004 | 13787 |
| 14005 void SourceCodeInfo_Location::CopyFrom(const ::google::protobuf::Message& from)
{ | 13788 void SourceCodeInfo_Location::CopyFrom(const ::google::protobuf::Message& from)
{ |
| 14006 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.SourceCo
deInfo.Location) | 13789 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.SourceCo
deInfo.Location) |
| 14007 if (&from == this) return; | 13790 if (&from == this) return; |
| 14008 Clear(); | 13791 Clear(); |
| 14009 MergeFrom(from); | 13792 MergeFrom(from); |
| 14010 } | 13793 } |
| 14011 | 13794 |
| 14012 void SourceCodeInfo_Location::CopyFrom(const SourceCodeInfo_Location& from) { | 13795 void SourceCodeInfo_Location::CopyFrom(const SourceCodeInfo_Location& from) { |
| 14013 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Sourc
eCodeInfo.Location) | 13796 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Sourc
eCodeInfo.Location) |
| 14014 if (&from == this) return; | 13797 if (&from == this) return; |
| 14015 Clear(); | 13798 Clear(); |
| 14016 MergeFrom(from); | 13799 MergeFrom(from); |
| 14017 } | 13800 } |
| 14018 | 13801 |
| 14019 bool SourceCodeInfo_Location::IsInitialized() const { | 13802 bool SourceCodeInfo_Location::IsInitialized() const { |
| 13803 |
| 14020 return true; | 13804 return true; |
| 14021 } | 13805 } |
| 14022 | 13806 |
| 14023 void SourceCodeInfo_Location::Swap(SourceCodeInfo_Location* other) { | 13807 void SourceCodeInfo_Location::Swap(SourceCodeInfo_Location* other) { |
| 14024 if (other == this) return; | 13808 if (other == this) return; |
| 14025 InternalSwap(other); | 13809 InternalSwap(other); |
| 14026 } | 13810 } |
| 14027 void SourceCodeInfo_Location::InternalSwap(SourceCodeInfo_Location* other) { | 13811 void SourceCodeInfo_Location::InternalSwap(SourceCodeInfo_Location* other) { |
| 14028 path_.UnsafeArenaSwap(&other->path_); | 13812 path_.UnsafeArenaSwap(&other->path_); |
| 14029 span_.UnsafeArenaSwap(&other->span_); | 13813 span_.UnsafeArenaSwap(&other->span_); |
| 14030 leading_detached_comments_.UnsafeArenaSwap(&other->leading_detached_comments_)
; | |
| 14031 leading_comments_.Swap(&other->leading_comments_); | 13814 leading_comments_.Swap(&other->leading_comments_); |
| 14032 trailing_comments_.Swap(&other->trailing_comments_); | 13815 trailing_comments_.Swap(&other->trailing_comments_); |
| 13816 leading_detached_comments_.UnsafeArenaSwap(&other->leading_detached_comments_)
; |
| 14033 std::swap(_has_bits_[0], other->_has_bits_[0]); | 13817 std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 14034 _internal_metadata_.Swap(&other->_internal_metadata_); | 13818 _internal_metadata_.Swap(&other->_internal_metadata_); |
| 14035 std::swap(_cached_size_, other->_cached_size_); | 13819 std::swap(_cached_size_, other->_cached_size_); |
| 14036 } | 13820 } |
| 14037 | 13821 |
| 14038 ::google::protobuf::Metadata SourceCodeInfo_Location::GetMetadata() const { | 13822 ::google::protobuf::Metadata SourceCodeInfo_Location::GetMetadata() const { |
| 14039 protobuf_AssignDescriptorsOnce(); | 13823 protobuf_AssignDescriptorsOnce(); |
| 14040 return file_level_metadata[21]; | 13824 ::google::protobuf::Metadata metadata; |
| 13825 metadata.descriptor = SourceCodeInfo_Location_descriptor_; |
| 13826 metadata.reflection = SourceCodeInfo_Location_reflection_; |
| 13827 return metadata; |
| 13828 } |
| 13829 |
| 13830 |
| 13831 // ------------------------------------------------------------------- |
| 13832 |
| 13833 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 13834 const int SourceCodeInfo::kLocationFieldNumber; |
| 13835 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 13836 |
| 13837 SourceCodeInfo::SourceCodeInfo() |
| 13838 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 13839 SharedCtor(); |
| 13840 // @@protoc_insertion_point(constructor:google.protobuf.SourceCodeInfo) |
| 13841 } |
| 13842 |
| 13843 void SourceCodeInfo::InitAsDefaultInstance() { |
| 13844 } |
| 13845 |
| 13846 SourceCodeInfo::SourceCodeInfo(const SourceCodeInfo& from) |
| 13847 : ::google::protobuf::Message(), |
| 13848 _internal_metadata_(NULL) { |
| 13849 SharedCtor(); |
| 13850 MergeFrom(from); |
| 13851 // @@protoc_insertion_point(copy_constructor:google.protobuf.SourceCodeInfo) |
| 13852 } |
| 13853 |
| 13854 void SourceCodeInfo::SharedCtor() { |
| 13855 _cached_size_ = 0; |
| 13856 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 13857 } |
| 13858 |
| 13859 SourceCodeInfo::~SourceCodeInfo() { |
| 13860 // @@protoc_insertion_point(destructor:google.protobuf.SourceCodeInfo) |
| 13861 SharedDtor(); |
| 13862 } |
| 13863 |
| 13864 void SourceCodeInfo::SharedDtor() { |
| 13865 if (this != default_instance_) { |
| 13866 } |
| 13867 } |
| 13868 |
| 13869 void SourceCodeInfo::SetCachedSize(int size) const { |
| 13870 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 13871 _cached_size_ = size; |
| 13872 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 13873 } |
| 13874 const ::google::protobuf::Descriptor* SourceCodeInfo::descriptor() { |
| 13875 protobuf_AssignDescriptorsOnce(); |
| 13876 return SourceCodeInfo_descriptor_; |
| 13877 } |
| 13878 |
| 13879 const SourceCodeInfo& SourceCodeInfo::default_instance() { |
| 13880 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
| 13881 return *default_instance_; |
| 13882 } |
| 13883 |
| 13884 SourceCodeInfo* SourceCodeInfo::default_instance_ = NULL; |
| 13885 |
| 13886 SourceCodeInfo* SourceCodeInfo::New(::google::protobuf::Arena* arena) const { |
| 13887 SourceCodeInfo* n = new SourceCodeInfo; |
| 13888 if (arena != NULL) { |
| 13889 arena->Own(n); |
| 13890 } |
| 13891 return n; |
| 13892 } |
| 13893 |
| 13894 void SourceCodeInfo::Clear() { |
| 13895 // @@protoc_insertion_point(message_clear_start:google.protobuf.SourceCodeInfo) |
| 13896 location_.Clear(); |
| 13897 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 13898 if (_internal_metadata_.have_unknown_fields()) { |
| 13899 mutable_unknown_fields()->Clear(); |
| 13900 } |
| 13901 } |
| 13902 |
| 13903 bool SourceCodeInfo::MergePartialFromCodedStream( |
| 13904 ::google::protobuf::io::CodedInputStream* input) { |
| 13905 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 13906 ::google::protobuf::uint32 tag; |
| 13907 // @@protoc_insertion_point(parse_start:google.protobuf.SourceCodeInfo) |
| 13908 for (;;) { |
| 13909 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
| 13910 tag = p.first; |
| 13911 if (!p.second) goto handle_unusual; |
| 13912 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
| 13913 // repeated .google.protobuf.SourceCodeInfo.Location location = 1; |
| 13914 case 1: { |
| 13915 if (tag == 10) { |
| 13916 DO_(input->IncrementRecursionDepth()); |
| 13917 parse_loop_location: |
| 13918 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
| 13919 input, add_location())); |
| 13920 } else { |
| 13921 goto handle_unusual; |
| 13922 } |
| 13923 if (input->ExpectTag(10)) goto parse_loop_location; |
| 13924 input->UnsafeDecrementRecursionDepth(); |
| 13925 if (input->ExpectAtEnd()) goto success; |
| 13926 break; |
| 13927 } |
| 13928 |
| 13929 default: { |
| 13930 handle_unusual: |
| 13931 if (tag == 0 || |
| 13932 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 13933 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 13934 goto success; |
| 13935 } |
| 13936 DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 13937 input, tag, mutable_unknown_fields())); |
| 13938 break; |
| 13939 } |
| 13940 } |
| 13941 } |
| 13942 success: |
| 13943 // @@protoc_insertion_point(parse_success:google.protobuf.SourceCodeInfo) |
| 13944 return true; |
| 13945 failure: |
| 13946 // @@protoc_insertion_point(parse_failure:google.protobuf.SourceCodeInfo) |
| 13947 return false; |
| 13948 #undef DO_ |
| 13949 } |
| 13950 |
| 13951 void SourceCodeInfo::SerializeWithCachedSizes( |
| 13952 ::google::protobuf::io::CodedOutputStream* output) const { |
| 13953 // @@protoc_insertion_point(serialize_start:google.protobuf.SourceCodeInfo) |
| 13954 // repeated .google.protobuf.SourceCodeInfo.Location location = 1; |
| 13955 for (unsigned int i = 0, n = this->location_size(); i < n; i++) { |
| 13956 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 13957 1, this->location(i), output); |
| 13958 } |
| 13959 |
| 13960 if (_internal_metadata_.have_unknown_fields()) { |
| 13961 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 13962 unknown_fields(), output); |
| 13963 } |
| 13964 // @@protoc_insertion_point(serialize_end:google.protobuf.SourceCodeInfo) |
| 13965 } |
| 13966 |
| 13967 ::google::protobuf::uint8* SourceCodeInfo::SerializeWithCachedSizesToArray( |
| 13968 ::google::protobuf::uint8* target) const { |
| 13969 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.SourceCod
eInfo) |
| 13970 // repeated .google.protobuf.SourceCodeInfo.Location location = 1; |
| 13971 for (unsigned int i = 0, n = this->location_size(); i < n; i++) { |
| 13972 target = ::google::protobuf::internal::WireFormatLite:: |
| 13973 WriteMessageNoVirtualToArray( |
| 13974 1, this->location(i), target); |
| 13975 } |
| 13976 |
| 13977 if (_internal_metadata_.have_unknown_fields()) { |
| 13978 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
| 13979 unknown_fields(), target); |
| 13980 } |
| 13981 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.SourceCodeI
nfo) |
| 13982 return target; |
| 13983 } |
| 13984 |
| 13985 int SourceCodeInfo::ByteSize() const { |
| 13986 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.SourceCodeIn
fo) |
| 13987 int total_size = 0; |
| 13988 |
| 13989 // repeated .google.protobuf.SourceCodeInfo.Location location = 1; |
| 13990 total_size += 1 * this->location_size(); |
| 13991 for (int i = 0; i < this->location_size(); i++) { |
| 13992 total_size += |
| 13993 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 13994 this->location(i)); |
| 13995 } |
| 13996 |
| 13997 if (_internal_metadata_.have_unknown_fields()) { |
| 13998 total_size += |
| 13999 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 14000 unknown_fields()); |
| 14001 } |
| 14002 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 14003 _cached_size_ = total_size; |
| 14004 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 14005 return total_size; |
| 14006 } |
| 14007 |
| 14008 void SourceCodeInfo::MergeFrom(const ::google::protobuf::Message& from) { |
| 14009 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.SourceC
odeInfo) |
| 14010 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 14011 const SourceCodeInfo* source = |
| 14012 ::google::protobuf::internal::DynamicCastToGenerated<const SourceCodeInfo>
( |
| 14013 &from); |
| 14014 if (source == NULL) { |
| 14015 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.S
ourceCodeInfo) |
| 14016 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 14017 } else { |
| 14018 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.SourceCodeInfo) |
| 14019 MergeFrom(*source); |
| 14020 } |
| 14021 } |
| 14022 |
| 14023 void SourceCodeInfo::MergeFrom(const SourceCodeInfo& from) { |
| 14024 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Sour
ceCodeInfo) |
| 14025 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 14026 location_.MergeFrom(from.location_); |
| 14027 if (from._internal_metadata_.have_unknown_fields()) { |
| 14028 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 14029 } |
| 14030 } |
| 14031 |
| 14032 void SourceCodeInfo::CopyFrom(const ::google::protobuf::Message& from) { |
| 14033 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.SourceCo
deInfo) |
| 14034 if (&from == this) return; |
| 14035 Clear(); |
| 14036 MergeFrom(from); |
| 14037 } |
| 14038 |
| 14039 void SourceCodeInfo::CopyFrom(const SourceCodeInfo& from) { |
| 14040 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Sourc
eCodeInfo) |
| 14041 if (&from == this) return; |
| 14042 Clear(); |
| 14043 MergeFrom(from); |
| 14044 } |
| 14045 |
| 14046 bool SourceCodeInfo::IsInitialized() const { |
| 14047 |
| 14048 return true; |
| 14049 } |
| 14050 |
| 14051 void SourceCodeInfo::Swap(SourceCodeInfo* other) { |
| 14052 if (other == this) return; |
| 14053 InternalSwap(other); |
| 14054 } |
| 14055 void SourceCodeInfo::InternalSwap(SourceCodeInfo* other) { |
| 14056 location_.UnsafeArenaSwap(&other->location_); |
| 14057 std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 14058 _internal_metadata_.Swap(&other->_internal_metadata_); |
| 14059 std::swap(_cached_size_, other->_cached_size_); |
| 14060 } |
| 14061 |
| 14062 ::google::protobuf::Metadata SourceCodeInfo::GetMetadata() const { |
| 14063 protobuf_AssignDescriptorsOnce(); |
| 14064 ::google::protobuf::Metadata metadata; |
| 14065 metadata.descriptor = SourceCodeInfo_descriptor_; |
| 14066 metadata.reflection = SourceCodeInfo_reflection_; |
| 14067 return metadata; |
| 14041 } | 14068 } |
| 14042 | 14069 |
| 14043 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 14070 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 14044 // SourceCodeInfo_Location | 14071 // SourceCodeInfo_Location |
| 14045 | 14072 |
| 14046 // repeated int32 path = 1 [packed = true]; | 14073 // repeated int32 path = 1 [packed = true]; |
| 14047 int SourceCodeInfo_Location::path_size() const { | 14074 int SourceCodeInfo_Location::path_size() const { |
| 14048 return path_.size(); | 14075 return path_.size(); |
| 14049 } | 14076 } |
| 14050 void SourceCodeInfo_Location::clear_path() { | 14077 void SourceCodeInfo_Location::clear_path() { |
| 14051 path_.Clear(); | 14078 path_.Clear(); |
| 14052 } | 14079 } |
| 14053 ::google::protobuf::int32 SourceCodeInfo_Location::path(int index) const { | 14080 ::google::protobuf::int32 SourceCodeInfo_Location::path(int index) const { |
| 14054 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.
path) | 14081 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.
path) |
| 14055 return path_.Get(index); | 14082 return path_.Get(index); |
| 14056 } | 14083 } |
| 14057 void SourceCodeInfo_Location::set_path(int index, ::google::protobuf::int32 valu
e) { | 14084 void SourceCodeInfo_Location::set_path(int index, ::google::protobuf::int32 val
ue) { |
| 14058 path_.Set(index, value); | 14085 path_.Set(index, value); |
| 14059 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.
path) | 14086 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.
path) |
| 14060 } | 14087 } |
| 14061 void SourceCodeInfo_Location::add_path(::google::protobuf::int32 value) { | 14088 void SourceCodeInfo_Location::add_path(::google::protobuf::int32 value) { |
| 14062 path_.Add(value); | 14089 path_.Add(value); |
| 14063 // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.
path) | 14090 // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.
path) |
| 14064 } | 14091 } |
| 14065 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& | 14092 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& |
| 14066 SourceCodeInfo_Location::path() const { | 14093 SourceCodeInfo_Location::path() const { |
| 14067 // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location
.path) | 14094 // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location
.path) |
| 14068 return path_; | 14095 return path_; |
| 14069 } | 14096 } |
| 14070 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* | 14097 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* |
| 14071 SourceCodeInfo_Location::mutable_path() { | 14098 SourceCodeInfo_Location::mutable_path() { |
| 14072 // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.
Location.path) | 14099 // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.
Location.path) |
| 14073 return &path_; | 14100 return &path_; |
| 14074 } | 14101 } |
| 14075 | 14102 |
| 14076 // repeated int32 span = 2 [packed = true]; | 14103 // repeated int32 span = 2 [packed = true]; |
| 14077 int SourceCodeInfo_Location::span_size() const { | 14104 int SourceCodeInfo_Location::span_size() const { |
| 14078 return span_.size(); | 14105 return span_.size(); |
| 14079 } | 14106 } |
| 14080 void SourceCodeInfo_Location::clear_span() { | 14107 void SourceCodeInfo_Location::clear_span() { |
| 14081 span_.Clear(); | 14108 span_.Clear(); |
| 14082 } | 14109 } |
| 14083 ::google::protobuf::int32 SourceCodeInfo_Location::span(int index) const { | 14110 ::google::protobuf::int32 SourceCodeInfo_Location::span(int index) const { |
| 14084 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.
span) | 14111 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.
span) |
| 14085 return span_.Get(index); | 14112 return span_.Get(index); |
| 14086 } | 14113 } |
| 14087 void SourceCodeInfo_Location::set_span(int index, ::google::protobuf::int32 valu
e) { | 14114 void SourceCodeInfo_Location::set_span(int index, ::google::protobuf::int32 val
ue) { |
| 14088 span_.Set(index, value); | 14115 span_.Set(index, value); |
| 14089 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.
span) | 14116 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.
span) |
| 14090 } | 14117 } |
| 14091 void SourceCodeInfo_Location::add_span(::google::protobuf::int32 value) { | 14118 void SourceCodeInfo_Location::add_span(::google::protobuf::int32 value) { |
| 14092 span_.Add(value); | 14119 span_.Add(value); |
| 14093 // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.
span) | 14120 // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.
span) |
| 14094 } | 14121 } |
| 14095 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& | 14122 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& |
| 14096 SourceCodeInfo_Location::span() const { | 14123 SourceCodeInfo_Location::span() const { |
| 14097 // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location
.span) | 14124 // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location
.span) |
| 14098 return span_; | 14125 return span_; |
| 14099 } | 14126 } |
| 14100 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* | 14127 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* |
| 14101 SourceCodeInfo_Location::mutable_span() { | 14128 SourceCodeInfo_Location::mutable_span() { |
| 14102 // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.
Location.span) | 14129 // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.
Location.span) |
| 14103 return &span_; | 14130 return &span_; |
| 14104 } | 14131 } |
| 14105 | 14132 |
| 14106 // optional string leading_comments = 3; | 14133 // optional string leading_comments = 3; |
| 14107 bool SourceCodeInfo_Location::has_leading_comments() const { | 14134 bool SourceCodeInfo_Location::has_leading_comments() const { |
| 14108 return (_has_bits_[0] & 0x00000001u) != 0; | 14135 return (_has_bits_[0] & 0x00000004u) != 0; |
| 14109 } | 14136 } |
| 14110 void SourceCodeInfo_Location::set_has_leading_comments() { | 14137 void SourceCodeInfo_Location::set_has_leading_comments() { |
| 14111 _has_bits_[0] |= 0x00000001u; | 14138 _has_bits_[0] |= 0x00000004u; |
| 14112 } | 14139 } |
| 14113 void SourceCodeInfo_Location::clear_has_leading_comments() { | 14140 void SourceCodeInfo_Location::clear_has_leading_comments() { |
| 14114 _has_bits_[0] &= ~0x00000001u; | 14141 _has_bits_[0] &= ~0x00000004u; |
| 14115 } | 14142 } |
| 14116 void SourceCodeInfo_Location::clear_leading_comments() { | 14143 void SourceCodeInfo_Location::clear_leading_comments() { |
| 14117 leading_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited()); | 14144 leading_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited()); |
| 14118 clear_has_leading_comments(); | 14145 clear_has_leading_comments(); |
| 14119 } | 14146 } |
| 14120 const ::std::string& SourceCodeInfo_Location::leading_comments() const { | 14147 const ::std::string& SourceCodeInfo_Location::leading_comments() const { |
| 14121 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.
leading_comments) | 14148 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.
leading_comments) |
| 14122 return leading_comments_.GetNoArena(); | 14149 return leading_comments_.GetNoArena(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited()); |
| 14123 } | 14150 } |
| 14124 void SourceCodeInfo_Location::set_leading_comments(const ::std::string& value) { | 14151 void SourceCodeInfo_Location::set_leading_comments(const ::std::string& value)
{ |
| 14125 set_has_leading_comments(); | 14152 set_has_leading_comments(); |
| 14126 leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), value); | 14153 leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), value); |
| 14127 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.
leading_comments) | 14154 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.
leading_comments) |
| 14128 } | 14155 } |
| 14129 void SourceCodeInfo_Location::set_leading_comments(const char* value) { | 14156 void SourceCodeInfo_Location::set_leading_comments(const char* value) { |
| 14130 set_has_leading_comments(); | 14157 set_has_leading_comments(); |
| 14131 leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), ::std::string(value)); | 14158 leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), ::std::string(value)); |
| 14132 // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Loca
tion.leading_comments) | 14159 // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Loca
tion.leading_comments) |
| 14133 } | 14160 } |
| 14134 void SourceCodeInfo_Location::set_leading_comments(const char* value, size_t siz
e) { | 14161 void SourceCodeInfo_Location::set_leading_comments(const char* value, size_t si
ze) { |
| 14135 set_has_leading_comments(); | 14162 set_has_leading_comments(); |
| 14136 leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), | 14163 leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), |
| 14137 ::std::string(reinterpret_cast<const char*>(value), size)); | 14164 ::std::string(reinterpret_cast<const char*>(value), size)); |
| 14138 // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.L
ocation.leading_comments) | 14165 // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.L
ocation.leading_comments) |
| 14139 } | 14166 } |
| 14140 ::std::string* SourceCodeInfo_Location::mutable_leading_comments() { | 14167 ::std::string* SourceCodeInfo_Location::mutable_leading_comments() { |
| 14141 set_has_leading_comments(); | 14168 set_has_leading_comments(); |
| 14142 // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Locat
ion.leading_comments) | 14169 // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Locat
ion.leading_comments) |
| 14143 return leading_comments_.MutableNoArena(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited()); | 14170 return leading_comments_.MutableNoArena(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited()); |
| 14144 } | 14171 } |
| 14145 ::std::string* SourceCodeInfo_Location::release_leading_comments() { | 14172 ::std::string* SourceCodeInfo_Location::release_leading_comments() { |
| 14146 // @@protoc_insertion_point(field_release:google.protobuf.SourceCodeInfo.Locat
ion.leading_comments) | 14173 // @@protoc_insertion_point(field_release:google.protobuf.SourceCodeInfo.Locat
ion.leading_comments) |
| 14147 clear_has_leading_comments(); | 14174 clear_has_leading_comments(); |
| 14148 return leading_comments_.ReleaseNoArena(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited()); | 14175 return leading_comments_.ReleaseNoArena(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited()); |
| 14149 } | 14176 } |
| 14150 void SourceCodeInfo_Location::set_allocated_leading_comments(::std::string* lead
ing_comments) { | 14177 void SourceCodeInfo_Location::set_allocated_leading_comments(::std::string* lea
ding_comments) { |
| 14151 if (leading_comments != NULL) { | 14178 if (leading_comments != NULL) { |
| 14152 set_has_leading_comments(); | 14179 set_has_leading_comments(); |
| 14153 } else { | 14180 } else { |
| 14154 clear_has_leading_comments(); | 14181 clear_has_leading_comments(); |
| 14155 } | 14182 } |
| 14156 leading_comments_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited(), leading_comments); | 14183 leading_comments_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited(), leading_comments); |
| 14157 // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceCodeInfo
.Location.leading_comments) | 14184 // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceCodeInfo
.Location.leading_comments) |
| 14158 } | 14185 } |
| 14159 | 14186 |
| 14160 // optional string trailing_comments = 4; | 14187 // optional string trailing_comments = 4; |
| 14161 bool SourceCodeInfo_Location::has_trailing_comments() const { | 14188 bool SourceCodeInfo_Location::has_trailing_comments() const { |
| 14162 return (_has_bits_[0] & 0x00000002u) != 0; | 14189 return (_has_bits_[0] & 0x00000008u) != 0; |
| 14163 } | 14190 } |
| 14164 void SourceCodeInfo_Location::set_has_trailing_comments() { | 14191 void SourceCodeInfo_Location::set_has_trailing_comments() { |
| 14165 _has_bits_[0] |= 0x00000002u; | 14192 _has_bits_[0] |= 0x00000008u; |
| 14166 } | 14193 } |
| 14167 void SourceCodeInfo_Location::clear_has_trailing_comments() { | 14194 void SourceCodeInfo_Location::clear_has_trailing_comments() { |
| 14168 _has_bits_[0] &= ~0x00000002u; | 14195 _has_bits_[0] &= ~0x00000008u; |
| 14169 } | 14196 } |
| 14170 void SourceCodeInfo_Location::clear_trailing_comments() { | 14197 void SourceCodeInfo_Location::clear_trailing_comments() { |
| 14171 trailing_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmpty
StringAlreadyInited()); | 14198 trailing_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmpty
StringAlreadyInited()); |
| 14172 clear_has_trailing_comments(); | 14199 clear_has_trailing_comments(); |
| 14173 } | 14200 } |
| 14174 const ::std::string& SourceCodeInfo_Location::trailing_comments() const { | 14201 const ::std::string& SourceCodeInfo_Location::trailing_comments() const { |
| 14175 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.
trailing_comments) | 14202 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.
trailing_comments) |
| 14176 return trailing_comments_.GetNoArena(); | 14203 return trailing_comments_.GetNoArena(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited()); |
| 14177 } | 14204 } |
| 14178 void SourceCodeInfo_Location::set_trailing_comments(const ::std::string& value)
{ | 14205 void SourceCodeInfo_Location::set_trailing_comments(const ::std::string& value)
{ |
| 14179 set_has_trailing_comments(); | 14206 set_has_trailing_comments(); |
| 14180 trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited(), value); | 14207 trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited(), value); |
| 14181 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.
trailing_comments) | 14208 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.
trailing_comments) |
| 14182 } | 14209 } |
| 14183 void SourceCodeInfo_Location::set_trailing_comments(const char* value) { | 14210 void SourceCodeInfo_Location::set_trailing_comments(const char* value) { |
| 14184 set_has_trailing_comments(); | 14211 set_has_trailing_comments(); |
| 14185 trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited(), ::std::string(value)); | 14212 trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited(), ::std::string(value)); |
| 14186 // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Loca
tion.trailing_comments) | 14213 // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Loca
tion.trailing_comments) |
| 14187 } | 14214 } |
| 14188 void SourceCodeInfo_Location::set_trailing_comments(const char* value, size_t si
ze) { | 14215 void SourceCodeInfo_Location::set_trailing_comments(const char* value, size_t s
ize) { |
| 14189 set_has_trailing_comments(); | 14216 set_has_trailing_comments(); |
| 14190 trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited(), | 14217 trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited(), |
| 14191 ::std::string(reinterpret_cast<const char*>(value), size)); | 14218 ::std::string(reinterpret_cast<const char*>(value), size)); |
| 14192 // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.L
ocation.trailing_comments) | 14219 // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.L
ocation.trailing_comments) |
| 14193 } | 14220 } |
| 14194 ::std::string* SourceCodeInfo_Location::mutable_trailing_comments() { | 14221 ::std::string* SourceCodeInfo_Location::mutable_trailing_comments() { |
| 14195 set_has_trailing_comments(); | 14222 set_has_trailing_comments(); |
| 14196 // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Locat
ion.trailing_comments) | 14223 // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Locat
ion.trailing_comments) |
| 14197 return trailing_comments_.MutableNoArena(&::google::protobuf::internal::GetEmp
tyStringAlreadyInited()); | 14224 return trailing_comments_.MutableNoArena(&::google::protobuf::internal::GetEmp
tyStringAlreadyInited()); |
| 14198 } | 14225 } |
| 14199 ::std::string* SourceCodeInfo_Location::release_trailing_comments() { | 14226 ::std::string* SourceCodeInfo_Location::release_trailing_comments() { |
| 14200 // @@protoc_insertion_point(field_release:google.protobuf.SourceCodeInfo.Locat
ion.trailing_comments) | 14227 // @@protoc_insertion_point(field_release:google.protobuf.SourceCodeInfo.Locat
ion.trailing_comments) |
| 14201 clear_has_trailing_comments(); | 14228 clear_has_trailing_comments(); |
| 14202 return trailing_comments_.ReleaseNoArena(&::google::protobuf::internal::GetEmp
tyStringAlreadyInited()); | 14229 return trailing_comments_.ReleaseNoArena(&::google::protobuf::internal::GetEmp
tyStringAlreadyInited()); |
| 14203 } | 14230 } |
| 14204 void SourceCodeInfo_Location::set_allocated_trailing_comments(::std::string* tra
iling_comments) { | 14231 void SourceCodeInfo_Location::set_allocated_trailing_comments(::std::string* tr
ailing_comments) { |
| 14205 if (trailing_comments != NULL) { | 14232 if (trailing_comments != NULL) { |
| 14206 set_has_trailing_comments(); | 14233 set_has_trailing_comments(); |
| 14207 } else { | 14234 } else { |
| 14208 clear_has_trailing_comments(); | 14235 clear_has_trailing_comments(); |
| 14209 } | 14236 } |
| 14210 trailing_comments_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmpty
StringAlreadyInited(), trailing_comments); | 14237 trailing_comments_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmpty
StringAlreadyInited(), trailing_comments); |
| 14211 // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceCodeInfo
.Location.trailing_comments) | 14238 // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceCodeInfo
.Location.trailing_comments) |
| 14212 } | 14239 } |
| 14213 | 14240 |
| 14214 // repeated string leading_detached_comments = 6; | 14241 // repeated string leading_detached_comments = 6; |
| 14215 int SourceCodeInfo_Location::leading_detached_comments_size() const { | 14242 int SourceCodeInfo_Location::leading_detached_comments_size() const { |
| 14216 return leading_detached_comments_.size(); | 14243 return leading_detached_comments_.size(); |
| 14217 } | 14244 } |
| 14218 void SourceCodeInfo_Location::clear_leading_detached_comments() { | 14245 void SourceCodeInfo_Location::clear_leading_detached_comments() { |
| 14219 leading_detached_comments_.Clear(); | 14246 leading_detached_comments_.Clear(); |
| 14220 } | 14247 } |
| 14221 const ::std::string& SourceCodeInfo_Location::leading_detached_comments(int inde
x) const { | 14248 const ::std::string& SourceCodeInfo_Location::leading_detached_comments(int ind
ex) const { |
| 14222 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.
leading_detached_comments) | 14249 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.
leading_detached_comments) |
| 14223 return leading_detached_comments_.Get(index); | 14250 return leading_detached_comments_.Get(index); |
| 14224 } | 14251 } |
| 14225 ::std::string* SourceCodeInfo_Location::mutable_leading_detached_comments(int in
dex) { | 14252 ::std::string* SourceCodeInfo_Location::mutable_leading_detached_comments(int i
ndex) { |
| 14226 // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Locat
ion.leading_detached_comments) | 14253 // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Locat
ion.leading_detached_comments) |
| 14227 return leading_detached_comments_.Mutable(index); | 14254 return leading_detached_comments_.Mutable(index); |
| 14228 } | 14255 } |
| 14229 void SourceCodeInfo_Location::set_leading_detached_comments(int index, const ::s
td::string& value) { | 14256 void SourceCodeInfo_Location::set_leading_detached_comments(int index, const ::
std::string& value) { |
| 14230 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.
leading_detached_comments) | 14257 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.
leading_detached_comments) |
| 14231 leading_detached_comments_.Mutable(index)->assign(value); | 14258 leading_detached_comments_.Mutable(index)->assign(value); |
| 14232 } | 14259 } |
| 14233 void SourceCodeInfo_Location::set_leading_detached_comments(int index, const cha
r* value) { | 14260 void SourceCodeInfo_Location::set_leading_detached_comments(int index, const ch
ar* value) { |
| 14234 leading_detached_comments_.Mutable(index)->assign(value); | 14261 leading_detached_comments_.Mutable(index)->assign(value); |
| 14235 // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Loca
tion.leading_detached_comments) | 14262 // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Loca
tion.leading_detached_comments) |
| 14236 } | 14263 } |
| 14237 void SourceCodeInfo_Location::set_leading_detached_comments(int index, const cha
r* value, size_t size) { | 14264 void SourceCodeInfo_Location::set_leading_detached_comments(int index, const ch
ar* value, size_t size) { |
| 14238 leading_detached_comments_.Mutable(index)->assign( | 14265 leading_detached_comments_.Mutable(index)->assign( |
| 14239 reinterpret_cast<const char*>(value), size); | 14266 reinterpret_cast<const char*>(value), size); |
| 14240 // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.L
ocation.leading_detached_comments) | 14267 // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.L
ocation.leading_detached_comments) |
| 14241 } | 14268 } |
| 14242 ::std::string* SourceCodeInfo_Location::add_leading_detached_comments() { | 14269 ::std::string* SourceCodeInfo_Location::add_leading_detached_comments() { |
| 14243 // @@protoc_insertion_point(field_add_mutable:google.protobuf.SourceCodeInfo.L
ocation.leading_detached_comments) | 14270 // @@protoc_insertion_point(field_add_mutable:google.protobuf.SourceCodeInfo.L
ocation.leading_detached_comments) |
| 14244 return leading_detached_comments_.Add(); | 14271 return leading_detached_comments_.Add(); |
| 14245 } | 14272 } |
| 14246 void SourceCodeInfo_Location::add_leading_detached_comments(const ::std::string&
value) { | 14273 void SourceCodeInfo_Location::add_leading_detached_comments(const ::std::string
& value) { |
| 14247 leading_detached_comments_.Add()->assign(value); | 14274 leading_detached_comments_.Add()->assign(value); |
| 14248 // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.
leading_detached_comments) | 14275 // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.
leading_detached_comments) |
| 14249 } | 14276 } |
| 14250 void SourceCodeInfo_Location::add_leading_detached_comments(const char* value) { | 14277 void SourceCodeInfo_Location::add_leading_detached_comments(const char* value)
{ |
| 14251 leading_detached_comments_.Add()->assign(value); | 14278 leading_detached_comments_.Add()->assign(value); |
| 14252 // @@protoc_insertion_point(field_add_char:google.protobuf.SourceCodeInfo.Loca
tion.leading_detached_comments) | 14279 // @@protoc_insertion_point(field_add_char:google.protobuf.SourceCodeInfo.Loca
tion.leading_detached_comments) |
| 14253 } | 14280 } |
| 14254 void SourceCodeInfo_Location::add_leading_detached_comments(const char* value, s
ize_t size) { | 14281 void SourceCodeInfo_Location::add_leading_detached_comments(const char* value,
size_t size) { |
| 14255 leading_detached_comments_.Add()->assign(reinterpret_cast<const char*>(value),
size); | 14282 leading_detached_comments_.Add()->assign(reinterpret_cast<const char*>(value),
size); |
| 14256 // @@protoc_insertion_point(field_add_pointer:google.protobuf.SourceCodeInfo.L
ocation.leading_detached_comments) | 14283 // @@protoc_insertion_point(field_add_pointer:google.protobuf.SourceCodeInfo.L
ocation.leading_detached_comments) |
| 14257 } | 14284 } |
| 14258 const ::google::protobuf::RepeatedPtrField< ::std::string>& | 14285 const ::google::protobuf::RepeatedPtrField< ::std::string>& |
| 14259 SourceCodeInfo_Location::leading_detached_comments() const { | 14286 SourceCodeInfo_Location::leading_detached_comments() const { |
| 14260 // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location
.leading_detached_comments) | 14287 // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location
.leading_detached_comments) |
| 14261 return leading_detached_comments_; | 14288 return leading_detached_comments_; |
| 14262 } | 14289 } |
| 14263 ::google::protobuf::RepeatedPtrField< ::std::string>* | 14290 ::google::protobuf::RepeatedPtrField< ::std::string>* |
| 14264 SourceCodeInfo_Location::mutable_leading_detached_comments() { | 14291 SourceCodeInfo_Location::mutable_leading_detached_comments() { |
| 14265 // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.
Location.leading_detached_comments) | 14292 // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.
Location.leading_detached_comments) |
| 14266 return &leading_detached_comments_; | 14293 return &leading_detached_comments_; |
| 14267 } | 14294 } |
| 14268 | 14295 |
| 14269 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 14296 // ------------------------------------------------------------------- |
| 14270 | 14297 |
| 14271 // =================================================================== | |
| 14272 | |
| 14273 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | |
| 14274 const int SourceCodeInfo::kLocationFieldNumber; | |
| 14275 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | |
| 14276 | |
| 14277 SourceCodeInfo::SourceCodeInfo() | |
| 14278 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | |
| 14279 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
| 14280 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
| 14281 } | |
| 14282 SharedCtor(); | |
| 14283 // @@protoc_insertion_point(constructor:google.protobuf.SourceCodeInfo) | |
| 14284 } | |
| 14285 SourceCodeInfo::SourceCodeInfo(const SourceCodeInfo& from) | |
| 14286 : ::google::protobuf::Message(), | |
| 14287 _internal_metadata_(NULL), | |
| 14288 _has_bits_(from._has_bits_), | |
| 14289 _cached_size_(0), | |
| 14290 location_(from.location_) { | |
| 14291 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 14292 // @@protoc_insertion_point(copy_constructor:google.protobuf.SourceCodeInfo) | |
| 14293 } | |
| 14294 | |
| 14295 void SourceCodeInfo::SharedCtor() { | |
| 14296 _cached_size_ = 0; | |
| 14297 } | |
| 14298 | |
| 14299 SourceCodeInfo::~SourceCodeInfo() { | |
| 14300 // @@protoc_insertion_point(destructor:google.protobuf.SourceCodeInfo) | |
| 14301 SharedDtor(); | |
| 14302 } | |
| 14303 | |
| 14304 void SourceCodeInfo::SharedDtor() { | |
| 14305 } | |
| 14306 | |
| 14307 void SourceCodeInfo::SetCachedSize(int size) const { | |
| 14308 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | |
| 14309 _cached_size_ = size; | |
| 14310 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | |
| 14311 } | |
| 14312 const ::google::protobuf::Descriptor* SourceCodeInfo::descriptor() { | |
| 14313 protobuf_AssignDescriptorsOnce(); | |
| 14314 return file_level_metadata[22].descriptor; | |
| 14315 } | |
| 14316 | |
| 14317 const SourceCodeInfo& SourceCodeInfo::default_instance() { | |
| 14318 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
| 14319 return *internal_default_instance(); | |
| 14320 } | |
| 14321 | |
| 14322 SourceCodeInfo* SourceCodeInfo::New(::google::protobuf::Arena* arena) const { | |
| 14323 SourceCodeInfo* n = new SourceCodeInfo; | |
| 14324 if (arena != NULL) { | |
| 14325 arena->Own(n); | |
| 14326 } | |
| 14327 return n; | |
| 14328 } | |
| 14329 | |
| 14330 void SourceCodeInfo::Clear() { | |
| 14331 // @@protoc_insertion_point(message_clear_start:google.protobuf.SourceCodeInfo) | |
| 14332 location_.Clear(); | |
| 14333 _has_bits_.Clear(); | |
| 14334 _internal_metadata_.Clear(); | |
| 14335 } | |
| 14336 | |
| 14337 bool SourceCodeInfo::MergePartialFromCodedStream( | |
| 14338 ::google::protobuf::io::CodedInputStream* input) { | |
| 14339 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | |
| 14340 ::google::protobuf::uint32 tag; | |
| 14341 // @@protoc_insertion_point(parse_start:google.protobuf.SourceCodeInfo) | |
| 14342 for (;;) { | |
| 14343 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | |
| 14344 tag = p.first; | |
| 14345 if (!p.second) goto handle_unusual; | |
| 14346 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | |
| 14347 // repeated .google.protobuf.SourceCodeInfo.Location location = 1; | |
| 14348 case 1: { | |
| 14349 if (tag == 10u) { | |
| 14350 DO_(input->IncrementRecursionDepth()); | |
| 14351 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | |
| 14352 input, add_location())); | |
| 14353 } else { | |
| 14354 goto handle_unusual; | |
| 14355 } | |
| 14356 input->UnsafeDecrementRecursionDepth(); | |
| 14357 break; | |
| 14358 } | |
| 14359 | |
| 14360 default: { | |
| 14361 handle_unusual: | |
| 14362 if (tag == 0 || | |
| 14363 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | |
| 14364 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | |
| 14365 goto success; | |
| 14366 } | |
| 14367 DO_(::google::protobuf::internal::WireFormat::SkipField( | |
| 14368 input, tag, mutable_unknown_fields())); | |
| 14369 break; | |
| 14370 } | |
| 14371 } | |
| 14372 } | |
| 14373 success: | |
| 14374 // @@protoc_insertion_point(parse_success:google.protobuf.SourceCodeInfo) | |
| 14375 return true; | |
| 14376 failure: | |
| 14377 // @@protoc_insertion_point(parse_failure:google.protobuf.SourceCodeInfo) | |
| 14378 return false; | |
| 14379 #undef DO_ | |
| 14380 } | |
| 14381 | |
| 14382 void SourceCodeInfo::SerializeWithCachedSizes( | |
| 14383 ::google::protobuf::io::CodedOutputStream* output) const { | |
| 14384 // @@protoc_insertion_point(serialize_start:google.protobuf.SourceCodeInfo) | |
| 14385 // repeated .google.protobuf.SourceCodeInfo.Location location = 1; | |
| 14386 for (unsigned int i = 0, n = this->location_size(); i < n; i++) { | |
| 14387 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | |
| 14388 1, this->location(i), output); | |
| 14389 } | |
| 14390 | |
| 14391 if (_internal_metadata_.have_unknown_fields()) { | |
| 14392 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | |
| 14393 unknown_fields(), output); | |
| 14394 } | |
| 14395 // @@protoc_insertion_point(serialize_end:google.protobuf.SourceCodeInfo) | |
| 14396 } | |
| 14397 | |
| 14398 ::google::protobuf::uint8* SourceCodeInfo::InternalSerializeWithCachedSizesToArr
ay( | |
| 14399 bool deterministic, ::google::protobuf::uint8* target) const { | |
| 14400 (void)deterministic; // Unused | |
| 14401 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.SourceCod
eInfo) | |
| 14402 // repeated .google.protobuf.SourceCodeInfo.Location location = 1; | |
| 14403 for (unsigned int i = 0, n = this->location_size(); i < n; i++) { | |
| 14404 target = ::google::protobuf::internal::WireFormatLite:: | |
| 14405 InternalWriteMessageNoVirtualToArray( | |
| 14406 1, this->location(i), false, target); | |
| 14407 } | |
| 14408 | |
| 14409 if (_internal_metadata_.have_unknown_fields()) { | |
| 14410 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | |
| 14411 unknown_fields(), target); | |
| 14412 } | |
| 14413 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.SourceCodeI
nfo) | |
| 14414 return target; | |
| 14415 } | |
| 14416 | |
| 14417 size_t SourceCodeInfo::ByteSizeLong() const { | |
| 14418 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.SourceCodeIn
fo) | |
| 14419 size_t total_size = 0; | |
| 14420 | |
| 14421 if (_internal_metadata_.have_unknown_fields()) { | |
| 14422 total_size += | |
| 14423 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | |
| 14424 unknown_fields()); | |
| 14425 } | |
| 14426 // repeated .google.protobuf.SourceCodeInfo.Location location = 1; | |
| 14427 { | |
| 14428 unsigned int count = this->location_size(); | |
| 14429 total_size += 1UL * count; | |
| 14430 for (unsigned int i = 0; i < count; i++) { | |
| 14431 total_size += | |
| 14432 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
| 14433 this->location(i)); | |
| 14434 } | |
| 14435 } | |
| 14436 | |
| 14437 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | |
| 14438 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | |
| 14439 _cached_size_ = cached_size; | |
| 14440 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | |
| 14441 return total_size; | |
| 14442 } | |
| 14443 | |
| 14444 void SourceCodeInfo::MergeFrom(const ::google::protobuf::Message& from) { | |
| 14445 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.SourceC
odeInfo) | |
| 14446 GOOGLE_DCHECK_NE(&from, this); | |
| 14447 const SourceCodeInfo* source = | |
| 14448 ::google::protobuf::internal::DynamicCastToGenerated<const SourceCodeInfo>
( | |
| 14449 &from); | |
| 14450 if (source == NULL) { | |
| 14451 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.S
ourceCodeInfo) | |
| 14452 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | |
| 14453 } else { | |
| 14454 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.SourceCodeInfo) | |
| 14455 MergeFrom(*source); | |
| 14456 } | |
| 14457 } | |
| 14458 | |
| 14459 void SourceCodeInfo::MergeFrom(const SourceCodeInfo& from) { | |
| 14460 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Sour
ceCodeInfo) | |
| 14461 GOOGLE_DCHECK_NE(&from, this); | |
| 14462 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 14463 location_.MergeFrom(from.location_); | |
| 14464 } | |
| 14465 | |
| 14466 void SourceCodeInfo::CopyFrom(const ::google::protobuf::Message& from) { | |
| 14467 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.SourceCo
deInfo) | |
| 14468 if (&from == this) return; | |
| 14469 Clear(); | |
| 14470 MergeFrom(from); | |
| 14471 } | |
| 14472 | |
| 14473 void SourceCodeInfo::CopyFrom(const SourceCodeInfo& from) { | |
| 14474 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Sourc
eCodeInfo) | |
| 14475 if (&from == this) return; | |
| 14476 Clear(); | |
| 14477 MergeFrom(from); | |
| 14478 } | |
| 14479 | |
| 14480 bool SourceCodeInfo::IsInitialized() const { | |
| 14481 return true; | |
| 14482 } | |
| 14483 | |
| 14484 void SourceCodeInfo::Swap(SourceCodeInfo* other) { | |
| 14485 if (other == this) return; | |
| 14486 InternalSwap(other); | |
| 14487 } | |
| 14488 void SourceCodeInfo::InternalSwap(SourceCodeInfo* other) { | |
| 14489 location_.UnsafeArenaSwap(&other->location_); | |
| 14490 std::swap(_has_bits_[0], other->_has_bits_[0]); | |
| 14491 _internal_metadata_.Swap(&other->_internal_metadata_); | |
| 14492 std::swap(_cached_size_, other->_cached_size_); | |
| 14493 } | |
| 14494 | |
| 14495 ::google::protobuf::Metadata SourceCodeInfo::GetMetadata() const { | |
| 14496 protobuf_AssignDescriptorsOnce(); | |
| 14497 return file_level_metadata[22]; | |
| 14498 } | |
| 14499 | |
| 14500 #if PROTOBUF_INLINE_NOT_IN_HEADERS | |
| 14501 // SourceCodeInfo | 14298 // SourceCodeInfo |
| 14502 | 14299 |
| 14503 // repeated .google.protobuf.SourceCodeInfo.Location location = 1; | 14300 // repeated .google.protobuf.SourceCodeInfo.Location location = 1; |
| 14504 int SourceCodeInfo::location_size() const { | 14301 int SourceCodeInfo::location_size() const { |
| 14505 return location_.size(); | 14302 return location_.size(); |
| 14506 } | 14303 } |
| 14507 void SourceCodeInfo::clear_location() { | 14304 void SourceCodeInfo::clear_location() { |
| 14508 location_.Clear(); | 14305 location_.Clear(); |
| 14509 } | 14306 } |
| 14510 const ::google::protobuf::SourceCodeInfo_Location& SourceCodeInfo::location(int
index) const { | 14307 const ::google::protobuf::SourceCodeInfo_Location& SourceCodeInfo::location(int
index) const { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 14536 | 14333 |
| 14537 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 14334 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 14538 const int GeneratedCodeInfo_Annotation::kPathFieldNumber; | 14335 const int GeneratedCodeInfo_Annotation::kPathFieldNumber; |
| 14539 const int GeneratedCodeInfo_Annotation::kSourceFileFieldNumber; | 14336 const int GeneratedCodeInfo_Annotation::kSourceFileFieldNumber; |
| 14540 const int GeneratedCodeInfo_Annotation::kBeginFieldNumber; | 14337 const int GeneratedCodeInfo_Annotation::kBeginFieldNumber; |
| 14541 const int GeneratedCodeInfo_Annotation::kEndFieldNumber; | 14338 const int GeneratedCodeInfo_Annotation::kEndFieldNumber; |
| 14542 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 14339 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 14543 | 14340 |
| 14544 GeneratedCodeInfo_Annotation::GeneratedCodeInfo_Annotation() | 14341 GeneratedCodeInfo_Annotation::GeneratedCodeInfo_Annotation() |
| 14545 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 14342 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 14546 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
| 14547 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
| 14548 } | |
| 14549 SharedCtor(); | 14343 SharedCtor(); |
| 14550 // @@protoc_insertion_point(constructor:google.protobuf.GeneratedCodeInfo.Anno
tation) | 14344 // @@protoc_insertion_point(constructor:google.protobuf.GeneratedCodeInfo.Anno
tation) |
| 14551 } | 14345 } |
| 14346 |
| 14347 void GeneratedCodeInfo_Annotation::InitAsDefaultInstance() { |
| 14348 } |
| 14349 |
| 14552 GeneratedCodeInfo_Annotation::GeneratedCodeInfo_Annotation(const GeneratedCodeIn
fo_Annotation& from) | 14350 GeneratedCodeInfo_Annotation::GeneratedCodeInfo_Annotation(const GeneratedCodeIn
fo_Annotation& from) |
| 14553 : ::google::protobuf::Message(), | 14351 : ::google::protobuf::Message(), |
| 14554 _internal_metadata_(NULL), | 14352 _internal_metadata_(NULL) { |
| 14555 _has_bits_(from._has_bits_), | 14353 SharedCtor(); |
| 14556 _cached_size_(0), | 14354 MergeFrom(from); |
| 14557 path_(from.path_) { | |
| 14558 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 14559 source_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); | |
| 14560 if (from.has_source_file()) { | |
| 14561 source_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyString
AlreadyInited(), from.source_file_); | |
| 14562 } | |
| 14563 ::memcpy(&begin_, &from.begin_, | |
| 14564 reinterpret_cast<char*>(&end_) - | |
| 14565 reinterpret_cast<char*>(&begin_) + sizeof(end_)); | |
| 14566 // @@protoc_insertion_point(copy_constructor:google.protobuf.GeneratedCodeInfo
.Annotation) | 14355 // @@protoc_insertion_point(copy_constructor:google.protobuf.GeneratedCodeInfo
.Annotation) |
| 14567 } | 14356 } |
| 14568 | 14357 |
| 14569 void GeneratedCodeInfo_Annotation::SharedCtor() { | 14358 void GeneratedCodeInfo_Annotation::SharedCtor() { |
| 14359 ::google::protobuf::internal::GetEmptyString(); |
| 14570 _cached_size_ = 0; | 14360 _cached_size_ = 0; |
| 14571 source_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); | 14361 source_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); |
| 14572 ::memset(&begin_, 0, reinterpret_cast<char*>(&end_) - | 14362 begin_ = 0; |
| 14573 reinterpret_cast<char*>(&begin_) + sizeof(end_)); | 14363 end_ = 0; |
| 14364 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 14574 } | 14365 } |
| 14575 | 14366 |
| 14576 GeneratedCodeInfo_Annotation::~GeneratedCodeInfo_Annotation() { | 14367 GeneratedCodeInfo_Annotation::~GeneratedCodeInfo_Annotation() { |
| 14577 // @@protoc_insertion_point(destructor:google.protobuf.GeneratedCodeInfo.Annot
ation) | 14368 // @@protoc_insertion_point(destructor:google.protobuf.GeneratedCodeInfo.Annot
ation) |
| 14578 SharedDtor(); | 14369 SharedDtor(); |
| 14579 } | 14370 } |
| 14580 | 14371 |
| 14581 void GeneratedCodeInfo_Annotation::SharedDtor() { | 14372 void GeneratedCodeInfo_Annotation::SharedDtor() { |
| 14582 source_file_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 14373 source_file_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
| 14374 if (this != default_instance_) { |
| 14375 } |
| 14583 } | 14376 } |
| 14584 | 14377 |
| 14585 void GeneratedCodeInfo_Annotation::SetCachedSize(int size) const { | 14378 void GeneratedCodeInfo_Annotation::SetCachedSize(int size) const { |
| 14586 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 14379 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 14587 _cached_size_ = size; | 14380 _cached_size_ = size; |
| 14588 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 14381 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 14589 } | 14382 } |
| 14590 const ::google::protobuf::Descriptor* GeneratedCodeInfo_Annotation::descriptor()
{ | 14383 const ::google::protobuf::Descriptor* GeneratedCodeInfo_Annotation::descriptor()
{ |
| 14591 protobuf_AssignDescriptorsOnce(); | 14384 protobuf_AssignDescriptorsOnce(); |
| 14592 return file_level_metadata[23].descriptor; | 14385 return GeneratedCodeInfo_Annotation_descriptor_; |
| 14593 } | 14386 } |
| 14594 | 14387 |
| 14595 const GeneratedCodeInfo_Annotation& GeneratedCodeInfo_Annotation::default_instan
ce() { | 14388 const GeneratedCodeInfo_Annotation& GeneratedCodeInfo_Annotation::default_instan
ce() { |
| 14596 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 14389 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
| 14597 return *internal_default_instance(); | 14390 return *default_instance_; |
| 14598 } | 14391 } |
| 14599 | 14392 |
| 14393 GeneratedCodeInfo_Annotation* GeneratedCodeInfo_Annotation::default_instance_ =
NULL; |
| 14394 |
| 14600 GeneratedCodeInfo_Annotation* GeneratedCodeInfo_Annotation::New(::google::protob
uf::Arena* arena) const { | 14395 GeneratedCodeInfo_Annotation* GeneratedCodeInfo_Annotation::New(::google::protob
uf::Arena* arena) const { |
| 14601 GeneratedCodeInfo_Annotation* n = new GeneratedCodeInfo_Annotation; | 14396 GeneratedCodeInfo_Annotation* n = new GeneratedCodeInfo_Annotation; |
| 14602 if (arena != NULL) { | 14397 if (arena != NULL) { |
| 14603 arena->Own(n); | 14398 arena->Own(n); |
| 14604 } | 14399 } |
| 14605 return n; | 14400 return n; |
| 14606 } | 14401 } |
| 14607 | 14402 |
| 14608 void GeneratedCodeInfo_Annotation::Clear() { | 14403 void GeneratedCodeInfo_Annotation::Clear() { |
| 14609 // @@protoc_insertion_point(message_clear_start:google.protobuf.GeneratedCodeInf
o.Annotation) | 14404 // @@protoc_insertion_point(message_clear_start:google.protobuf.GeneratedCodeInf
o.Annotation) |
| 14405 #if defined(__clang__) |
| 14406 #define ZR_HELPER_(f) \ |
| 14407 _Pragma("clang diagnostic push") \ |
| 14408 _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ |
| 14409 __builtin_offsetof(GeneratedCodeInfo_Annotation, f) \ |
| 14410 _Pragma("clang diagnostic pop") |
| 14411 #else |
| 14412 #define ZR_HELPER_(f) reinterpret_cast<char*>(\ |
| 14413 &reinterpret_cast<GeneratedCodeInfo_Annotation*>(16)->f) |
| 14414 #endif |
| 14415 |
| 14416 #define ZR_(first, last) do {\ |
| 14417 ::memset(&first, 0,\ |
| 14418 ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ |
| 14419 } while (0) |
| 14420 |
| 14421 if (_has_bits_[0 / 32] & 14u) { |
| 14422 ZR_(begin_, end_); |
| 14423 if (has_source_file()) { |
| 14424 source_file_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited()); |
| 14425 } |
| 14426 } |
| 14427 |
| 14428 #undef ZR_HELPER_ |
| 14429 #undef ZR_ |
| 14430 |
| 14610 path_.Clear(); | 14431 path_.Clear(); |
| 14611 if (has_source_file()) { | 14432 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 14612 GOOGLE_DCHECK(!source_file_.IsDefault(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited())); | 14433 if (_internal_metadata_.have_unknown_fields()) { |
| 14613 (*source_file_.UnsafeRawStringPointer())->clear(); | 14434 mutable_unknown_fields()->Clear(); |
| 14614 } | 14435 } |
| 14615 if (_has_bits_[0 / 32] & 6u) { | |
| 14616 ::memset(&begin_, 0, reinterpret_cast<char*>(&end_) - | |
| 14617 reinterpret_cast<char*>(&begin_) + sizeof(end_)); | |
| 14618 } | |
| 14619 _has_bits_.Clear(); | |
| 14620 _internal_metadata_.Clear(); | |
| 14621 } | 14436 } |
| 14622 | 14437 |
| 14623 bool GeneratedCodeInfo_Annotation::MergePartialFromCodedStream( | 14438 bool GeneratedCodeInfo_Annotation::MergePartialFromCodedStream( |
| 14624 ::google::protobuf::io::CodedInputStream* input) { | 14439 ::google::protobuf::io::CodedInputStream* input) { |
| 14625 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 14440 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 14626 ::google::protobuf::uint32 tag; | 14441 ::google::protobuf::uint32 tag; |
| 14627 // @@protoc_insertion_point(parse_start:google.protobuf.GeneratedCodeInfo.Anno
tation) | 14442 // @@protoc_insertion_point(parse_start:google.protobuf.GeneratedCodeInfo.Anno
tation) |
| 14628 for (;;) { | 14443 for (;;) { |
| 14629 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 14444 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
| 14630 tag = p.first; | 14445 tag = p.first; |
| 14631 if (!p.second) goto handle_unusual; | 14446 if (!p.second) goto handle_unusual; |
| 14632 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 14447 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
| 14633 // repeated int32 path = 1 [packed = true]; | 14448 // repeated int32 path = 1 [packed = true]; |
| 14634 case 1: { | 14449 case 1: { |
| 14635 if (tag == 10u) { | 14450 if (tag == 10) { |
| 14636 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive
< | 14451 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive
< |
| 14637 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 14452 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
| 14638 input, this->mutable_path()))); | 14453 input, this->mutable_path()))); |
| 14639 } else if (tag == 8u) { | 14454 } else if (tag == 8) { |
| 14640 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimiti
veNoInline< | 14455 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimiti
veNoInline< |
| 14641 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 14456 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
| 14642 1, 10u, input, this->mutable_path()))); | 14457 1, 10, input, this->mutable_path()))); |
| 14643 } else { | 14458 } else { |
| 14644 goto handle_unusual; | 14459 goto handle_unusual; |
| 14645 } | 14460 } |
| 14461 if (input->ExpectTag(18)) goto parse_source_file; |
| 14646 break; | 14462 break; |
| 14647 } | 14463 } |
| 14648 | 14464 |
| 14649 // optional string source_file = 2; | 14465 // optional string source_file = 2; |
| 14650 case 2: { | 14466 case 2: { |
| 14651 if (tag == 18u) { | 14467 if (tag == 18) { |
| 14468 parse_source_file: |
| 14652 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 14469 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 14653 input, this->mutable_source_file())); | 14470 input, this->mutable_source_file())); |
| 14654 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 14471 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 14655 this->source_file().data(), this->source_file().length(), | 14472 this->source_file().data(), this->source_file().length(), |
| 14656 ::google::protobuf::internal::WireFormat::PARSE, | 14473 ::google::protobuf::internal::WireFormat::PARSE, |
| 14657 "google.protobuf.GeneratedCodeInfo.Annotation.source_file"); | 14474 "google.protobuf.GeneratedCodeInfo.Annotation.source_file"); |
| 14658 } else { | 14475 } else { |
| 14659 goto handle_unusual; | 14476 goto handle_unusual; |
| 14660 } | 14477 } |
| 14478 if (input->ExpectTag(24)) goto parse_begin; |
| 14661 break; | 14479 break; |
| 14662 } | 14480 } |
| 14663 | 14481 |
| 14664 // optional int32 begin = 3; | 14482 // optional int32 begin = 3; |
| 14665 case 3: { | 14483 case 3: { |
| 14666 if (tag == 24u) { | 14484 if (tag == 24) { |
| 14667 set_has_begin(); | 14485 parse_begin: |
| 14668 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 14486 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 14669 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 14487 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
| 14670 input, &begin_))); | 14488 input, &begin_))); |
| 14489 set_has_begin(); |
| 14671 } else { | 14490 } else { |
| 14672 goto handle_unusual; | 14491 goto handle_unusual; |
| 14673 } | 14492 } |
| 14493 if (input->ExpectTag(32)) goto parse_end; |
| 14674 break; | 14494 break; |
| 14675 } | 14495 } |
| 14676 | 14496 |
| 14677 // optional int32 end = 4; | 14497 // optional int32 end = 4; |
| 14678 case 4: { | 14498 case 4: { |
| 14679 if (tag == 32u) { | 14499 if (tag == 32) { |
| 14680 set_has_end(); | 14500 parse_end: |
| 14681 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 14501 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 14682 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 14502 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
| 14683 input, &end_))); | 14503 input, &end_))); |
| 14504 set_has_end(); |
| 14684 } else { | 14505 } else { |
| 14685 goto handle_unusual; | 14506 goto handle_unusual; |
| 14686 } | 14507 } |
| 14508 if (input->ExpectAtEnd()) goto success; |
| 14687 break; | 14509 break; |
| 14688 } | 14510 } |
| 14689 | 14511 |
| 14690 default: { | 14512 default: { |
| 14691 handle_unusual: | 14513 handle_unusual: |
| 14692 if (tag == 0 || | 14514 if (tag == 0 || |
| 14693 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 14515 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 14694 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 14516 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 14695 goto success; | 14517 goto success; |
| 14696 } | 14518 } |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14742 ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->end(), out
put); | 14564 ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->end(), out
put); |
| 14743 } | 14565 } |
| 14744 | 14566 |
| 14745 if (_internal_metadata_.have_unknown_fields()) { | 14567 if (_internal_metadata_.have_unknown_fields()) { |
| 14746 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 14568 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 14747 unknown_fields(), output); | 14569 unknown_fields(), output); |
| 14748 } | 14570 } |
| 14749 // @@protoc_insertion_point(serialize_end:google.protobuf.GeneratedCodeInfo.An
notation) | 14571 // @@protoc_insertion_point(serialize_end:google.protobuf.GeneratedCodeInfo.An
notation) |
| 14750 } | 14572 } |
| 14751 | 14573 |
| 14752 ::google::protobuf::uint8* GeneratedCodeInfo_Annotation::InternalSerializeWithCa
chedSizesToArray( | 14574 ::google::protobuf::uint8* GeneratedCodeInfo_Annotation::SerializeWithCachedSize
sToArray( |
| 14753 bool deterministic, ::google::protobuf::uint8* target) const { | 14575 ::google::protobuf::uint8* target) const { |
| 14754 (void)deterministic; // Unused | |
| 14755 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Generated
CodeInfo.Annotation) | 14576 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Generated
CodeInfo.Annotation) |
| 14756 // repeated int32 path = 1 [packed = true]; | 14577 // repeated int32 path = 1 [packed = true]; |
| 14757 if (this->path_size() > 0) { | 14578 if (this->path_size() > 0) { |
| 14758 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( | 14579 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 14759 1, | 14580 1, |
| 14760 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, | 14581 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| 14761 target); | 14582 target); |
| 14762 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( | 14583 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| 14763 _path_cached_byte_size_, target); | 14584 _path_cached_byte_size_, target); |
| 14764 } | 14585 } |
| (...skipping 24 matching lines...) Expand all Loading... |
| 14789 } | 14610 } |
| 14790 | 14611 |
| 14791 if (_internal_metadata_.have_unknown_fields()) { | 14612 if (_internal_metadata_.have_unknown_fields()) { |
| 14792 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 14613 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
| 14793 unknown_fields(), target); | 14614 unknown_fields(), target); |
| 14794 } | 14615 } |
| 14795 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.GeneratedCo
deInfo.Annotation) | 14616 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.GeneratedCo
deInfo.Annotation) |
| 14796 return target; | 14617 return target; |
| 14797 } | 14618 } |
| 14798 | 14619 |
| 14799 size_t GeneratedCodeInfo_Annotation::ByteSizeLong() const { | 14620 int GeneratedCodeInfo_Annotation::ByteSize() const { |
| 14800 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.GeneratedCod
eInfo.Annotation) | 14621 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.GeneratedCod
eInfo.Annotation) |
| 14801 size_t total_size = 0; | 14622 int total_size = 0; |
| 14802 | 14623 |
| 14803 if (_internal_metadata_.have_unknown_fields()) { | 14624 if (_has_bits_[1 / 32] & 14u) { |
| 14804 total_size += | |
| 14805 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | |
| 14806 unknown_fields()); | |
| 14807 } | |
| 14808 // repeated int32 path = 1 [packed = true]; | |
| 14809 { | |
| 14810 size_t data_size = 0; | |
| 14811 unsigned int count = this->path_size(); | |
| 14812 for (unsigned int i = 0; i < count; i++) { | |
| 14813 data_size += ::google::protobuf::internal::WireFormatLite:: | |
| 14814 Int32Size(this->path(i)); | |
| 14815 } | |
| 14816 if (data_size > 0) { | |
| 14817 total_size += 1 + | |
| 14818 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); | |
| 14819 } | |
| 14820 int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); | |
| 14821 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | |
| 14822 _path_cached_byte_size_ = cached_size; | |
| 14823 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | |
| 14824 total_size += data_size; | |
| 14825 } | |
| 14826 | |
| 14827 if (_has_bits_[0 / 32] & 7u) { | |
| 14828 // optional string source_file = 2; | 14625 // optional string source_file = 2; |
| 14829 if (has_source_file()) { | 14626 if (has_source_file()) { |
| 14830 total_size += 1 + | 14627 total_size += 1 + |
| 14831 ::google::protobuf::internal::WireFormatLite::StringSize( | 14628 ::google::protobuf::internal::WireFormatLite::StringSize( |
| 14832 this->source_file()); | 14629 this->source_file()); |
| 14833 } | 14630 } |
| 14834 | 14631 |
| 14835 // optional int32 begin = 3; | 14632 // optional int32 begin = 3; |
| 14836 if (has_begin()) { | 14633 if (has_begin()) { |
| 14837 total_size += 1 + | 14634 total_size += 1 + |
| 14838 ::google::protobuf::internal::WireFormatLite::Int32Size( | 14635 ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 14839 this->begin()); | 14636 this->begin()); |
| 14840 } | 14637 } |
| 14841 | 14638 |
| 14842 // optional int32 end = 4; | 14639 // optional int32 end = 4; |
| 14843 if (has_end()) { | 14640 if (has_end()) { |
| 14844 total_size += 1 + | 14641 total_size += 1 + |
| 14845 ::google::protobuf::internal::WireFormatLite::Int32Size( | 14642 ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 14846 this->end()); | 14643 this->end()); |
| 14847 } | 14644 } |
| 14848 | 14645 |
| 14849 } | 14646 } |
| 14850 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | 14647 // repeated int32 path = 1 [packed = true]; |
| 14648 { |
| 14649 int data_size = 0; |
| 14650 for (int i = 0; i < this->path_size(); i++) { |
| 14651 data_size += ::google::protobuf::internal::WireFormatLite:: |
| 14652 Int32Size(this->path(i)); |
| 14653 } |
| 14654 if (data_size > 0) { |
| 14655 total_size += 1 + |
| 14656 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
| 14657 } |
| 14658 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 14659 _path_cached_byte_size_ = data_size; |
| 14660 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 14661 total_size += data_size; |
| 14662 } |
| 14663 |
| 14664 if (_internal_metadata_.have_unknown_fields()) { |
| 14665 total_size += |
| 14666 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 14667 unknown_fields()); |
| 14668 } |
| 14851 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 14669 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 14852 _cached_size_ = cached_size; | 14670 _cached_size_ = total_size; |
| 14853 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 14671 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 14854 return total_size; | 14672 return total_size; |
| 14855 } | 14673 } |
| 14856 | 14674 |
| 14857 void GeneratedCodeInfo_Annotation::MergeFrom(const ::google::protobuf::Message&
from) { | 14675 void GeneratedCodeInfo_Annotation::MergeFrom(const ::google::protobuf::Message&
from) { |
| 14858 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Generat
edCodeInfo.Annotation) | 14676 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Generat
edCodeInfo.Annotation) |
| 14859 GOOGLE_DCHECK_NE(&from, this); | 14677 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 14860 const GeneratedCodeInfo_Annotation* source = | 14678 const GeneratedCodeInfo_Annotation* source = |
| 14861 ::google::protobuf::internal::DynamicCastToGenerated<const GeneratedCodeIn
fo_Annotation>( | 14679 ::google::protobuf::internal::DynamicCastToGenerated<const GeneratedCodeIn
fo_Annotation>( |
| 14862 &from); | 14680 &from); |
| 14863 if (source == NULL) { | 14681 if (source == NULL) { |
| 14864 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.G
eneratedCodeInfo.Annotation) | 14682 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.G
eneratedCodeInfo.Annotation) |
| 14865 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 14683 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 14866 } else { | 14684 } else { |
| 14867 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.GeneratedCodeInfo.Annotation) | 14685 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.GeneratedCodeInfo.Annotation) |
| 14868 MergeFrom(*source); | 14686 MergeFrom(*source); |
| 14869 } | 14687 } |
| 14870 } | 14688 } |
| 14871 | 14689 |
| 14872 void GeneratedCodeInfo_Annotation::MergeFrom(const GeneratedCodeInfo_Annotation&
from) { | 14690 void GeneratedCodeInfo_Annotation::MergeFrom(const GeneratedCodeInfo_Annotation&
from) { |
| 14873 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Gene
ratedCodeInfo.Annotation) | 14691 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Gene
ratedCodeInfo.Annotation) |
| 14874 GOOGLE_DCHECK_NE(&from, this); | 14692 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 14875 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 14876 path_.MergeFrom(from.path_); | 14693 path_.MergeFrom(from.path_); |
| 14877 if (from._has_bits_[0 / 32] & 7u) { | 14694 if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { |
| 14878 if (from.has_source_file()) { | 14695 if (from.has_source_file()) { |
| 14879 set_has_source_file(); | 14696 set_has_source_file(); |
| 14880 source_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited(), from.source_file_); | 14697 source_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited(), from.source_file_); |
| 14881 } | 14698 } |
| 14882 if (from.has_begin()) { | 14699 if (from.has_begin()) { |
| 14883 set_begin(from.begin()); | 14700 set_begin(from.begin()); |
| 14884 } | 14701 } |
| 14885 if (from.has_end()) { | 14702 if (from.has_end()) { |
| 14886 set_end(from.end()); | 14703 set_end(from.end()); |
| 14887 } | 14704 } |
| 14888 } | 14705 } |
| 14706 if (from._internal_metadata_.have_unknown_fields()) { |
| 14707 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 14708 } |
| 14889 } | 14709 } |
| 14890 | 14710 |
| 14891 void GeneratedCodeInfo_Annotation::CopyFrom(const ::google::protobuf::Message& f
rom) { | 14711 void GeneratedCodeInfo_Annotation::CopyFrom(const ::google::protobuf::Message& f
rom) { |
| 14892 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Generate
dCodeInfo.Annotation) | 14712 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Generate
dCodeInfo.Annotation) |
| 14893 if (&from == this) return; | 14713 if (&from == this) return; |
| 14894 Clear(); | 14714 Clear(); |
| 14895 MergeFrom(from); | 14715 MergeFrom(from); |
| 14896 } | 14716 } |
| 14897 | 14717 |
| 14898 void GeneratedCodeInfo_Annotation::CopyFrom(const GeneratedCodeInfo_Annotation&
from) { | 14718 void GeneratedCodeInfo_Annotation::CopyFrom(const GeneratedCodeInfo_Annotation&
from) { |
| 14899 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Gener
atedCodeInfo.Annotation) | 14719 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Gener
atedCodeInfo.Annotation) |
| 14900 if (&from == this) return; | 14720 if (&from == this) return; |
| 14901 Clear(); | 14721 Clear(); |
| 14902 MergeFrom(from); | 14722 MergeFrom(from); |
| 14903 } | 14723 } |
| 14904 | 14724 |
| 14905 bool GeneratedCodeInfo_Annotation::IsInitialized() const { | 14725 bool GeneratedCodeInfo_Annotation::IsInitialized() const { |
| 14726 |
| 14906 return true; | 14727 return true; |
| 14907 } | 14728 } |
| 14908 | 14729 |
| 14909 void GeneratedCodeInfo_Annotation::Swap(GeneratedCodeInfo_Annotation* other) { | 14730 void GeneratedCodeInfo_Annotation::Swap(GeneratedCodeInfo_Annotation* other) { |
| 14910 if (other == this) return; | 14731 if (other == this) return; |
| 14911 InternalSwap(other); | 14732 InternalSwap(other); |
| 14912 } | 14733 } |
| 14913 void GeneratedCodeInfo_Annotation::InternalSwap(GeneratedCodeInfo_Annotation* ot
her) { | 14734 void GeneratedCodeInfo_Annotation::InternalSwap(GeneratedCodeInfo_Annotation* ot
her) { |
| 14914 path_.UnsafeArenaSwap(&other->path_); | 14735 path_.UnsafeArenaSwap(&other->path_); |
| 14915 source_file_.Swap(&other->source_file_); | 14736 source_file_.Swap(&other->source_file_); |
| 14916 std::swap(begin_, other->begin_); | 14737 std::swap(begin_, other->begin_); |
| 14917 std::swap(end_, other->end_); | 14738 std::swap(end_, other->end_); |
| 14918 std::swap(_has_bits_[0], other->_has_bits_[0]); | 14739 std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 14919 _internal_metadata_.Swap(&other->_internal_metadata_); | 14740 _internal_metadata_.Swap(&other->_internal_metadata_); |
| 14920 std::swap(_cached_size_, other->_cached_size_); | 14741 std::swap(_cached_size_, other->_cached_size_); |
| 14921 } | 14742 } |
| 14922 | 14743 |
| 14923 ::google::protobuf::Metadata GeneratedCodeInfo_Annotation::GetMetadata() const { | 14744 ::google::protobuf::Metadata GeneratedCodeInfo_Annotation::GetMetadata() const { |
| 14924 protobuf_AssignDescriptorsOnce(); | 14745 protobuf_AssignDescriptorsOnce(); |
| 14925 return file_level_metadata[23]; | 14746 ::google::protobuf::Metadata metadata; |
| 14747 metadata.descriptor = GeneratedCodeInfo_Annotation_descriptor_; |
| 14748 metadata.reflection = GeneratedCodeInfo_Annotation_reflection_; |
| 14749 return metadata; |
| 14926 } | 14750 } |
| 14927 | 14751 |
| 14928 #if PROTOBUF_INLINE_NOT_IN_HEADERS | |
| 14929 // GeneratedCodeInfo_Annotation | |
| 14930 | 14752 |
| 14931 // repeated int32 path = 1 [packed = true]; | 14753 // ------------------------------------------------------------------- |
| 14932 int GeneratedCodeInfo_Annotation::path_size() const { | |
| 14933 return path_.size(); | |
| 14934 } | |
| 14935 void GeneratedCodeInfo_Annotation::clear_path() { | |
| 14936 path_.Clear(); | |
| 14937 } | |
| 14938 ::google::protobuf::int32 GeneratedCodeInfo_Annotation::path(int index) const { | |
| 14939 // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annota
tion.path) | |
| 14940 return path_.Get(index); | |
| 14941 } | |
| 14942 void GeneratedCodeInfo_Annotation::set_path(int index, ::google::protobuf::int32
value) { | |
| 14943 path_.Set(index, value); | |
| 14944 // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annota
tion.path) | |
| 14945 } | |
| 14946 void GeneratedCodeInfo_Annotation::add_path(::google::protobuf::int32 value) { | |
| 14947 path_.Add(value); | |
| 14948 // @@protoc_insertion_point(field_add:google.protobuf.GeneratedCodeInfo.Annota
tion.path) | |
| 14949 } | |
| 14950 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& | |
| 14951 GeneratedCodeInfo_Annotation::path() const { | |
| 14952 // @@protoc_insertion_point(field_list:google.protobuf.GeneratedCodeInfo.Annot
ation.path) | |
| 14953 return path_; | |
| 14954 } | |
| 14955 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* | |
| 14956 GeneratedCodeInfo_Annotation::mutable_path() { | |
| 14957 // @@protoc_insertion_point(field_mutable_list:google.protobuf.GeneratedCodeIn
fo.Annotation.path) | |
| 14958 return &path_; | |
| 14959 } | |
| 14960 | |
| 14961 // optional string source_file = 2; | |
| 14962 bool GeneratedCodeInfo_Annotation::has_source_file() const { | |
| 14963 return (_has_bits_[0] & 0x00000001u) != 0; | |
| 14964 } | |
| 14965 void GeneratedCodeInfo_Annotation::set_has_source_file() { | |
| 14966 _has_bits_[0] |= 0x00000001u; | |
| 14967 } | |
| 14968 void GeneratedCodeInfo_Annotation::clear_has_source_file() { | |
| 14969 _has_bits_[0] &= ~0x00000001u; | |
| 14970 } | |
| 14971 void GeneratedCodeInfo_Annotation::clear_source_file() { | |
| 14972 source_file_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); | |
| 14973 clear_has_source_file(); | |
| 14974 } | |
| 14975 const ::std::string& GeneratedCodeInfo_Annotation::source_file() const { | |
| 14976 // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annota
tion.source_file) | |
| 14977 return source_file_.GetNoArena(); | |
| 14978 } | |
| 14979 void GeneratedCodeInfo_Annotation::set_source_file(const ::std::string& value) { | |
| 14980 set_has_source_file(); | |
| 14981 source_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited(), value); | |
| 14982 // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annota
tion.source_file) | |
| 14983 } | |
| 14984 void GeneratedCodeInfo_Annotation::set_source_file(const char* value) { | |
| 14985 set_has_source_file(); | |
| 14986 source_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited(), ::std::string(value)); | |
| 14987 // @@protoc_insertion_point(field_set_char:google.protobuf.GeneratedCodeInfo.A
nnotation.source_file) | |
| 14988 } | |
| 14989 void GeneratedCodeInfo_Annotation::set_source_file(const char* value, size_t siz
e) { | |
| 14990 set_has_source_file(); | |
| 14991 source_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited(), | |
| 14992 ::std::string(reinterpret_cast<const char*>(value), size)); | |
| 14993 // @@protoc_insertion_point(field_set_pointer:google.protobuf.GeneratedCodeInf
o.Annotation.source_file) | |
| 14994 } | |
| 14995 ::std::string* GeneratedCodeInfo_Annotation::mutable_source_file() { | |
| 14996 set_has_source_file(); | |
| 14997 // @@protoc_insertion_point(field_mutable:google.protobuf.GeneratedCodeInfo.An
notation.source_file) | |
| 14998 return source_file_.MutableNoArena(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); | |
| 14999 } | |
| 15000 ::std::string* GeneratedCodeInfo_Annotation::release_source_file() { | |
| 15001 // @@protoc_insertion_point(field_release:google.protobuf.GeneratedCodeInfo.An
notation.source_file) | |
| 15002 clear_has_source_file(); | |
| 15003 return source_file_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); | |
| 15004 } | |
| 15005 void GeneratedCodeInfo_Annotation::set_allocated_source_file(::std::string* sour
ce_file) { | |
| 15006 if (source_file != NULL) { | |
| 15007 set_has_source_file(); | |
| 15008 } else { | |
| 15009 clear_has_source_file(); | |
| 15010 } | |
| 15011 source_file_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited(), source_file); | |
| 15012 // @@protoc_insertion_point(field_set_allocated:google.protobuf.GeneratedCodeI
nfo.Annotation.source_file) | |
| 15013 } | |
| 15014 | |
| 15015 // optional int32 begin = 3; | |
| 15016 bool GeneratedCodeInfo_Annotation::has_begin() const { | |
| 15017 return (_has_bits_[0] & 0x00000002u) != 0; | |
| 15018 } | |
| 15019 void GeneratedCodeInfo_Annotation::set_has_begin() { | |
| 15020 _has_bits_[0] |= 0x00000002u; | |
| 15021 } | |
| 15022 void GeneratedCodeInfo_Annotation::clear_has_begin() { | |
| 15023 _has_bits_[0] &= ~0x00000002u; | |
| 15024 } | |
| 15025 void GeneratedCodeInfo_Annotation::clear_begin() { | |
| 15026 begin_ = 0; | |
| 15027 clear_has_begin(); | |
| 15028 } | |
| 15029 ::google::protobuf::int32 GeneratedCodeInfo_Annotation::begin() const { | |
| 15030 // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annota
tion.begin) | |
| 15031 return begin_; | |
| 15032 } | |
| 15033 void GeneratedCodeInfo_Annotation::set_begin(::google::protobuf::int32 value) { | |
| 15034 set_has_begin(); | |
| 15035 begin_ = value; | |
| 15036 // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annota
tion.begin) | |
| 15037 } | |
| 15038 | |
| 15039 // optional int32 end = 4; | |
| 15040 bool GeneratedCodeInfo_Annotation::has_end() const { | |
| 15041 return (_has_bits_[0] & 0x00000004u) != 0; | |
| 15042 } | |
| 15043 void GeneratedCodeInfo_Annotation::set_has_end() { | |
| 15044 _has_bits_[0] |= 0x00000004u; | |
| 15045 } | |
| 15046 void GeneratedCodeInfo_Annotation::clear_has_end() { | |
| 15047 _has_bits_[0] &= ~0x00000004u; | |
| 15048 } | |
| 15049 void GeneratedCodeInfo_Annotation::clear_end() { | |
| 15050 end_ = 0; | |
| 15051 clear_has_end(); | |
| 15052 } | |
| 15053 ::google::protobuf::int32 GeneratedCodeInfo_Annotation::end() const { | |
| 15054 // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annota
tion.end) | |
| 15055 return end_; | |
| 15056 } | |
| 15057 void GeneratedCodeInfo_Annotation::set_end(::google::protobuf::int32 value) { | |
| 15058 set_has_end(); | |
| 15059 end_ = value; | |
| 15060 // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annota
tion.end) | |
| 15061 } | |
| 15062 | |
| 15063 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | |
| 15064 | |
| 15065 // =================================================================== | |
| 15066 | 14754 |
| 15067 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 14755 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 15068 const int GeneratedCodeInfo::kAnnotationFieldNumber; | 14756 const int GeneratedCodeInfo::kAnnotationFieldNumber; |
| 15069 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 14757 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 15070 | 14758 |
| 15071 GeneratedCodeInfo::GeneratedCodeInfo() | 14759 GeneratedCodeInfo::GeneratedCodeInfo() |
| 15072 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 14760 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 15073 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
| 15074 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
| 15075 } | |
| 15076 SharedCtor(); | 14761 SharedCtor(); |
| 15077 // @@protoc_insertion_point(constructor:google.protobuf.GeneratedCodeInfo) | 14762 // @@protoc_insertion_point(constructor:google.protobuf.GeneratedCodeInfo) |
| 15078 } | 14763 } |
| 14764 |
| 14765 void GeneratedCodeInfo::InitAsDefaultInstance() { |
| 14766 } |
| 14767 |
| 15079 GeneratedCodeInfo::GeneratedCodeInfo(const GeneratedCodeInfo& from) | 14768 GeneratedCodeInfo::GeneratedCodeInfo(const GeneratedCodeInfo& from) |
| 15080 : ::google::protobuf::Message(), | 14769 : ::google::protobuf::Message(), |
| 15081 _internal_metadata_(NULL), | 14770 _internal_metadata_(NULL) { |
| 15082 _has_bits_(from._has_bits_), | 14771 SharedCtor(); |
| 15083 _cached_size_(0), | 14772 MergeFrom(from); |
| 15084 annotation_(from.annotation_) { | |
| 15085 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 15086 // @@protoc_insertion_point(copy_constructor:google.protobuf.GeneratedCodeInfo
) | 14773 // @@protoc_insertion_point(copy_constructor:google.protobuf.GeneratedCodeInfo
) |
| 15087 } | 14774 } |
| 15088 | 14775 |
| 15089 void GeneratedCodeInfo::SharedCtor() { | 14776 void GeneratedCodeInfo::SharedCtor() { |
| 15090 _cached_size_ = 0; | 14777 _cached_size_ = 0; |
| 14778 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 15091 } | 14779 } |
| 15092 | 14780 |
| 15093 GeneratedCodeInfo::~GeneratedCodeInfo() { | 14781 GeneratedCodeInfo::~GeneratedCodeInfo() { |
| 15094 // @@protoc_insertion_point(destructor:google.protobuf.GeneratedCodeInfo) | 14782 // @@protoc_insertion_point(destructor:google.protobuf.GeneratedCodeInfo) |
| 15095 SharedDtor(); | 14783 SharedDtor(); |
| 15096 } | 14784 } |
| 15097 | 14785 |
| 15098 void GeneratedCodeInfo::SharedDtor() { | 14786 void GeneratedCodeInfo::SharedDtor() { |
| 14787 if (this != default_instance_) { |
| 14788 } |
| 15099 } | 14789 } |
| 15100 | 14790 |
| 15101 void GeneratedCodeInfo::SetCachedSize(int size) const { | 14791 void GeneratedCodeInfo::SetCachedSize(int size) const { |
| 15102 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 14792 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 15103 _cached_size_ = size; | 14793 _cached_size_ = size; |
| 15104 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 14794 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 15105 } | 14795 } |
| 15106 const ::google::protobuf::Descriptor* GeneratedCodeInfo::descriptor() { | 14796 const ::google::protobuf::Descriptor* GeneratedCodeInfo::descriptor() { |
| 15107 protobuf_AssignDescriptorsOnce(); | 14797 protobuf_AssignDescriptorsOnce(); |
| 15108 return file_level_metadata[24].descriptor; | 14798 return GeneratedCodeInfo_descriptor_; |
| 15109 } | 14799 } |
| 15110 | 14800 |
| 15111 const GeneratedCodeInfo& GeneratedCodeInfo::default_instance() { | 14801 const GeneratedCodeInfo& GeneratedCodeInfo::default_instance() { |
| 15112 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 14802 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
| 15113 return *internal_default_instance(); | 14803 return *default_instance_; |
| 15114 } | 14804 } |
| 15115 | 14805 |
| 14806 GeneratedCodeInfo* GeneratedCodeInfo::default_instance_ = NULL; |
| 14807 |
| 15116 GeneratedCodeInfo* GeneratedCodeInfo::New(::google::protobuf::Arena* arena) cons
t { | 14808 GeneratedCodeInfo* GeneratedCodeInfo::New(::google::protobuf::Arena* arena) cons
t { |
| 15117 GeneratedCodeInfo* n = new GeneratedCodeInfo; | 14809 GeneratedCodeInfo* n = new GeneratedCodeInfo; |
| 15118 if (arena != NULL) { | 14810 if (arena != NULL) { |
| 15119 arena->Own(n); | 14811 arena->Own(n); |
| 15120 } | 14812 } |
| 15121 return n; | 14813 return n; |
| 15122 } | 14814 } |
| 15123 | 14815 |
| 15124 void GeneratedCodeInfo::Clear() { | 14816 void GeneratedCodeInfo::Clear() { |
| 15125 // @@protoc_insertion_point(message_clear_start:google.protobuf.GeneratedCodeInf
o) | 14817 // @@protoc_insertion_point(message_clear_start:google.protobuf.GeneratedCodeInf
o) |
| 15126 annotation_.Clear(); | 14818 annotation_.Clear(); |
| 15127 _has_bits_.Clear(); | 14819 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 15128 _internal_metadata_.Clear(); | 14820 if (_internal_metadata_.have_unknown_fields()) { |
| 14821 mutable_unknown_fields()->Clear(); |
| 14822 } |
| 15129 } | 14823 } |
| 15130 | 14824 |
| 15131 bool GeneratedCodeInfo::MergePartialFromCodedStream( | 14825 bool GeneratedCodeInfo::MergePartialFromCodedStream( |
| 15132 ::google::protobuf::io::CodedInputStream* input) { | 14826 ::google::protobuf::io::CodedInputStream* input) { |
| 15133 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 14827 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 15134 ::google::protobuf::uint32 tag; | 14828 ::google::protobuf::uint32 tag; |
| 15135 // @@protoc_insertion_point(parse_start:google.protobuf.GeneratedCodeInfo) | 14829 // @@protoc_insertion_point(parse_start:google.protobuf.GeneratedCodeInfo) |
| 15136 for (;;) { | 14830 for (;;) { |
| 15137 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 14831 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
| 15138 tag = p.first; | 14832 tag = p.first; |
| 15139 if (!p.second) goto handle_unusual; | 14833 if (!p.second) goto handle_unusual; |
| 15140 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 14834 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
| 15141 // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; | 14835 // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; |
| 15142 case 1: { | 14836 case 1: { |
| 15143 if (tag == 10u) { | 14837 if (tag == 10) { |
| 15144 DO_(input->IncrementRecursionDepth()); | 14838 DO_(input->IncrementRecursionDepth()); |
| 14839 parse_loop_annotation: |
| 15145 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 14840 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
| 15146 input, add_annotation())); | 14841 input, add_annotation())); |
| 15147 } else { | 14842 } else { |
| 15148 goto handle_unusual; | 14843 goto handle_unusual; |
| 15149 } | 14844 } |
| 14845 if (input->ExpectTag(10)) goto parse_loop_annotation; |
| 15150 input->UnsafeDecrementRecursionDepth(); | 14846 input->UnsafeDecrementRecursionDepth(); |
| 14847 if (input->ExpectAtEnd()) goto success; |
| 15151 break; | 14848 break; |
| 15152 } | 14849 } |
| 15153 | 14850 |
| 15154 default: { | 14851 default: { |
| 15155 handle_unusual: | 14852 handle_unusual: |
| 15156 if (tag == 0 || | 14853 if (tag == 0 || |
| 15157 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 14854 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 15158 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 14855 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 15159 goto success; | 14856 goto success; |
| 15160 } | 14857 } |
| (...skipping 21 matching lines...) Expand all Loading... |
| 15182 1, this->annotation(i), output); | 14879 1, this->annotation(i), output); |
| 15183 } | 14880 } |
| 15184 | 14881 |
| 15185 if (_internal_metadata_.have_unknown_fields()) { | 14882 if (_internal_metadata_.have_unknown_fields()) { |
| 15186 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 14883 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 15187 unknown_fields(), output); | 14884 unknown_fields(), output); |
| 15188 } | 14885 } |
| 15189 // @@protoc_insertion_point(serialize_end:google.protobuf.GeneratedCodeInfo) | 14886 // @@protoc_insertion_point(serialize_end:google.protobuf.GeneratedCodeInfo) |
| 15190 } | 14887 } |
| 15191 | 14888 |
| 15192 ::google::protobuf::uint8* GeneratedCodeInfo::InternalSerializeWithCachedSizesTo
Array( | 14889 ::google::protobuf::uint8* GeneratedCodeInfo::SerializeWithCachedSizesToArray( |
| 15193 bool deterministic, ::google::protobuf::uint8* target) const { | 14890 ::google::protobuf::uint8* target) const { |
| 15194 (void)deterministic; // Unused | |
| 15195 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Generated
CodeInfo) | 14891 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Generated
CodeInfo) |
| 15196 // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; | 14892 // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; |
| 15197 for (unsigned int i = 0, n = this->annotation_size(); i < n; i++) { | 14893 for (unsigned int i = 0, n = this->annotation_size(); i < n; i++) { |
| 15198 target = ::google::protobuf::internal::WireFormatLite:: | 14894 target = ::google::protobuf::internal::WireFormatLite:: |
| 15199 InternalWriteMessageNoVirtualToArray( | 14895 WriteMessageNoVirtualToArray( |
| 15200 1, this->annotation(i), false, target); | 14896 1, this->annotation(i), target); |
| 15201 } | 14897 } |
| 15202 | 14898 |
| 15203 if (_internal_metadata_.have_unknown_fields()) { | 14899 if (_internal_metadata_.have_unknown_fields()) { |
| 15204 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 14900 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
| 15205 unknown_fields(), target); | 14901 unknown_fields(), target); |
| 15206 } | 14902 } |
| 15207 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.GeneratedCo
deInfo) | 14903 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.GeneratedCo
deInfo) |
| 15208 return target; | 14904 return target; |
| 15209 } | 14905 } |
| 15210 | 14906 |
| 15211 size_t GeneratedCodeInfo::ByteSizeLong() const { | 14907 int GeneratedCodeInfo::ByteSize() const { |
| 15212 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.GeneratedCod
eInfo) | 14908 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.GeneratedCod
eInfo) |
| 15213 size_t total_size = 0; | 14909 int total_size = 0; |
| 14910 |
| 14911 // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; |
| 14912 total_size += 1 * this->annotation_size(); |
| 14913 for (int i = 0; i < this->annotation_size(); i++) { |
| 14914 total_size += |
| 14915 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 14916 this->annotation(i)); |
| 14917 } |
| 15214 | 14918 |
| 15215 if (_internal_metadata_.have_unknown_fields()) { | 14919 if (_internal_metadata_.have_unknown_fields()) { |
| 15216 total_size += | 14920 total_size += |
| 15217 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | 14921 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 15218 unknown_fields()); | 14922 unknown_fields()); |
| 15219 } | 14923 } |
| 15220 // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; | |
| 15221 { | |
| 15222 unsigned int count = this->annotation_size(); | |
| 15223 total_size += 1UL * count; | |
| 15224 for (unsigned int i = 0; i < count; i++) { | |
| 15225 total_size += | |
| 15226 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
| 15227 this->annotation(i)); | |
| 15228 } | |
| 15229 } | |
| 15230 | |
| 15231 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | |
| 15232 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 14924 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 15233 _cached_size_ = cached_size; | 14925 _cached_size_ = total_size; |
| 15234 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 14926 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 15235 return total_size; | 14927 return total_size; |
| 15236 } | 14928 } |
| 15237 | 14929 |
| 15238 void GeneratedCodeInfo::MergeFrom(const ::google::protobuf::Message& from) { | 14930 void GeneratedCodeInfo::MergeFrom(const ::google::protobuf::Message& from) { |
| 15239 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Generat
edCodeInfo) | 14931 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Generat
edCodeInfo) |
| 15240 GOOGLE_DCHECK_NE(&from, this); | 14932 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 15241 const GeneratedCodeInfo* source = | 14933 const GeneratedCodeInfo* source = |
| 15242 ::google::protobuf::internal::DynamicCastToGenerated<const GeneratedCodeIn
fo>( | 14934 ::google::protobuf::internal::DynamicCastToGenerated<const GeneratedCodeIn
fo>( |
| 15243 &from); | 14935 &from); |
| 15244 if (source == NULL) { | 14936 if (source == NULL) { |
| 15245 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.G
eneratedCodeInfo) | 14937 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.G
eneratedCodeInfo) |
| 15246 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 14938 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 15247 } else { | 14939 } else { |
| 15248 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.GeneratedCodeInfo) | 14940 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.GeneratedCodeInfo) |
| 15249 MergeFrom(*source); | 14941 MergeFrom(*source); |
| 15250 } | 14942 } |
| 15251 } | 14943 } |
| 15252 | 14944 |
| 15253 void GeneratedCodeInfo::MergeFrom(const GeneratedCodeInfo& from) { | 14945 void GeneratedCodeInfo::MergeFrom(const GeneratedCodeInfo& from) { |
| 15254 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Gene
ratedCodeInfo) | 14946 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Gene
ratedCodeInfo) |
| 15255 GOOGLE_DCHECK_NE(&from, this); | 14947 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 15256 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 15257 annotation_.MergeFrom(from.annotation_); | 14948 annotation_.MergeFrom(from.annotation_); |
| 14949 if (from._internal_metadata_.have_unknown_fields()) { |
| 14950 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 14951 } |
| 15258 } | 14952 } |
| 15259 | 14953 |
| 15260 void GeneratedCodeInfo::CopyFrom(const ::google::protobuf::Message& from) { | 14954 void GeneratedCodeInfo::CopyFrom(const ::google::protobuf::Message& from) { |
| 15261 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Generate
dCodeInfo) | 14955 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Generate
dCodeInfo) |
| 15262 if (&from == this) return; | 14956 if (&from == this) return; |
| 15263 Clear(); | 14957 Clear(); |
| 15264 MergeFrom(from); | 14958 MergeFrom(from); |
| 15265 } | 14959 } |
| 15266 | 14960 |
| 15267 void GeneratedCodeInfo::CopyFrom(const GeneratedCodeInfo& from) { | 14961 void GeneratedCodeInfo::CopyFrom(const GeneratedCodeInfo& from) { |
| 15268 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Gener
atedCodeInfo) | 14962 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Gener
atedCodeInfo) |
| 15269 if (&from == this) return; | 14963 if (&from == this) return; |
| 15270 Clear(); | 14964 Clear(); |
| 15271 MergeFrom(from); | 14965 MergeFrom(from); |
| 15272 } | 14966 } |
| 15273 | 14967 |
| 15274 bool GeneratedCodeInfo::IsInitialized() const { | 14968 bool GeneratedCodeInfo::IsInitialized() const { |
| 14969 |
| 15275 return true; | 14970 return true; |
| 15276 } | 14971 } |
| 15277 | 14972 |
| 15278 void GeneratedCodeInfo::Swap(GeneratedCodeInfo* other) { | 14973 void GeneratedCodeInfo::Swap(GeneratedCodeInfo* other) { |
| 15279 if (other == this) return; | 14974 if (other == this) return; |
| 15280 InternalSwap(other); | 14975 InternalSwap(other); |
| 15281 } | 14976 } |
| 15282 void GeneratedCodeInfo::InternalSwap(GeneratedCodeInfo* other) { | 14977 void GeneratedCodeInfo::InternalSwap(GeneratedCodeInfo* other) { |
| 15283 annotation_.UnsafeArenaSwap(&other->annotation_); | 14978 annotation_.UnsafeArenaSwap(&other->annotation_); |
| 15284 std::swap(_has_bits_[0], other->_has_bits_[0]); | 14979 std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 15285 _internal_metadata_.Swap(&other->_internal_metadata_); | 14980 _internal_metadata_.Swap(&other->_internal_metadata_); |
| 15286 std::swap(_cached_size_, other->_cached_size_); | 14981 std::swap(_cached_size_, other->_cached_size_); |
| 15287 } | 14982 } |
| 15288 | 14983 |
| 15289 ::google::protobuf::Metadata GeneratedCodeInfo::GetMetadata() const { | 14984 ::google::protobuf::Metadata GeneratedCodeInfo::GetMetadata() const { |
| 15290 protobuf_AssignDescriptorsOnce(); | 14985 protobuf_AssignDescriptorsOnce(); |
| 15291 return file_level_metadata[24]; | 14986 ::google::protobuf::Metadata metadata; |
| 14987 metadata.descriptor = GeneratedCodeInfo_descriptor_; |
| 14988 metadata.reflection = GeneratedCodeInfo_reflection_; |
| 14989 return metadata; |
| 15292 } | 14990 } |
| 15293 | 14991 |
| 15294 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 14992 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 14993 // GeneratedCodeInfo_Annotation |
| 14994 |
| 14995 // repeated int32 path = 1 [packed = true]; |
| 14996 int GeneratedCodeInfo_Annotation::path_size() const { |
| 14997 return path_.size(); |
| 14998 } |
| 14999 void GeneratedCodeInfo_Annotation::clear_path() { |
| 15000 path_.Clear(); |
| 15001 } |
| 15002 ::google::protobuf::int32 GeneratedCodeInfo_Annotation::path(int index) const { |
| 15003 // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annota
tion.path) |
| 15004 return path_.Get(index); |
| 15005 } |
| 15006 void GeneratedCodeInfo_Annotation::set_path(int index, ::google::protobuf::int3
2 value) { |
| 15007 path_.Set(index, value); |
| 15008 // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annota
tion.path) |
| 15009 } |
| 15010 void GeneratedCodeInfo_Annotation::add_path(::google::protobuf::int32 value) { |
| 15011 path_.Add(value); |
| 15012 // @@protoc_insertion_point(field_add:google.protobuf.GeneratedCodeInfo.Annota
tion.path) |
| 15013 } |
| 15014 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& |
| 15015 GeneratedCodeInfo_Annotation::path() const { |
| 15016 // @@protoc_insertion_point(field_list:google.protobuf.GeneratedCodeInfo.Annot
ation.path) |
| 15017 return path_; |
| 15018 } |
| 15019 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* |
| 15020 GeneratedCodeInfo_Annotation::mutable_path() { |
| 15021 // @@protoc_insertion_point(field_mutable_list:google.protobuf.GeneratedCodeIn
fo.Annotation.path) |
| 15022 return &path_; |
| 15023 } |
| 15024 |
| 15025 // optional string source_file = 2; |
| 15026 bool GeneratedCodeInfo_Annotation::has_source_file() const { |
| 15027 return (_has_bits_[0] & 0x00000002u) != 0; |
| 15028 } |
| 15029 void GeneratedCodeInfo_Annotation::set_has_source_file() { |
| 15030 _has_bits_[0] |= 0x00000002u; |
| 15031 } |
| 15032 void GeneratedCodeInfo_Annotation::clear_has_source_file() { |
| 15033 _has_bits_[0] &= ~0x00000002u; |
| 15034 } |
| 15035 void GeneratedCodeInfo_Annotation::clear_source_file() { |
| 15036 source_file_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); |
| 15037 clear_has_source_file(); |
| 15038 } |
| 15039 const ::std::string& GeneratedCodeInfo_Annotation::source_file() const { |
| 15040 // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annota
tion.source_file) |
| 15041 return source_file_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); |
| 15042 } |
| 15043 void GeneratedCodeInfo_Annotation::set_source_file(const ::std::string& value)
{ |
| 15044 set_has_source_file(); |
| 15045 source_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited(), value); |
| 15046 // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annota
tion.source_file) |
| 15047 } |
| 15048 void GeneratedCodeInfo_Annotation::set_source_file(const char* value) { |
| 15049 set_has_source_file(); |
| 15050 source_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited(), ::std::string(value)); |
| 15051 // @@protoc_insertion_point(field_set_char:google.protobuf.GeneratedCodeInfo.A
nnotation.source_file) |
| 15052 } |
| 15053 void GeneratedCodeInfo_Annotation::set_source_file(const char* value, size_t si
ze) { |
| 15054 set_has_source_file(); |
| 15055 source_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited(), |
| 15056 ::std::string(reinterpret_cast<const char*>(value), size)); |
| 15057 // @@protoc_insertion_point(field_set_pointer:google.protobuf.GeneratedCodeInf
o.Annotation.source_file) |
| 15058 } |
| 15059 ::std::string* GeneratedCodeInfo_Annotation::mutable_source_file() { |
| 15060 set_has_source_file(); |
| 15061 // @@protoc_insertion_point(field_mutable:google.protobuf.GeneratedCodeInfo.An
notation.source_file) |
| 15062 return source_file_.MutableNoArena(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); |
| 15063 } |
| 15064 ::std::string* GeneratedCodeInfo_Annotation::release_source_file() { |
| 15065 // @@protoc_insertion_point(field_release:google.protobuf.GeneratedCodeInfo.An
notation.source_file) |
| 15066 clear_has_source_file(); |
| 15067 return source_file_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); |
| 15068 } |
| 15069 void GeneratedCodeInfo_Annotation::set_allocated_source_file(::std::string* sou
rce_file) { |
| 15070 if (source_file != NULL) { |
| 15071 set_has_source_file(); |
| 15072 } else { |
| 15073 clear_has_source_file(); |
| 15074 } |
| 15075 source_file_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited(), source_file); |
| 15076 // @@protoc_insertion_point(field_set_allocated:google.protobuf.GeneratedCodeI
nfo.Annotation.source_file) |
| 15077 } |
| 15078 |
| 15079 // optional int32 begin = 3; |
| 15080 bool GeneratedCodeInfo_Annotation::has_begin() const { |
| 15081 return (_has_bits_[0] & 0x00000004u) != 0; |
| 15082 } |
| 15083 void GeneratedCodeInfo_Annotation::set_has_begin() { |
| 15084 _has_bits_[0] |= 0x00000004u; |
| 15085 } |
| 15086 void GeneratedCodeInfo_Annotation::clear_has_begin() { |
| 15087 _has_bits_[0] &= ~0x00000004u; |
| 15088 } |
| 15089 void GeneratedCodeInfo_Annotation::clear_begin() { |
| 15090 begin_ = 0; |
| 15091 clear_has_begin(); |
| 15092 } |
| 15093 ::google::protobuf::int32 GeneratedCodeInfo_Annotation::begin() const { |
| 15094 // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annota
tion.begin) |
| 15095 return begin_; |
| 15096 } |
| 15097 void GeneratedCodeInfo_Annotation::set_begin(::google::protobuf::int32 value) { |
| 15098 set_has_begin(); |
| 15099 begin_ = value; |
| 15100 // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annota
tion.begin) |
| 15101 } |
| 15102 |
| 15103 // optional int32 end = 4; |
| 15104 bool GeneratedCodeInfo_Annotation::has_end() const { |
| 15105 return (_has_bits_[0] & 0x00000008u) != 0; |
| 15106 } |
| 15107 void GeneratedCodeInfo_Annotation::set_has_end() { |
| 15108 _has_bits_[0] |= 0x00000008u; |
| 15109 } |
| 15110 void GeneratedCodeInfo_Annotation::clear_has_end() { |
| 15111 _has_bits_[0] &= ~0x00000008u; |
| 15112 } |
| 15113 void GeneratedCodeInfo_Annotation::clear_end() { |
| 15114 end_ = 0; |
| 15115 clear_has_end(); |
| 15116 } |
| 15117 ::google::protobuf::int32 GeneratedCodeInfo_Annotation::end() const { |
| 15118 // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annota
tion.end) |
| 15119 return end_; |
| 15120 } |
| 15121 void GeneratedCodeInfo_Annotation::set_end(::google::protobuf::int32 value) { |
| 15122 set_has_end(); |
| 15123 end_ = value; |
| 15124 // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annota
tion.end) |
| 15125 } |
| 15126 |
| 15127 // ------------------------------------------------------------------- |
| 15128 |
| 15295 // GeneratedCodeInfo | 15129 // GeneratedCodeInfo |
| 15296 | 15130 |
| 15297 // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; | 15131 // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; |
| 15298 int GeneratedCodeInfo::annotation_size() const { | 15132 int GeneratedCodeInfo::annotation_size() const { |
| 15299 return annotation_.size(); | 15133 return annotation_.size(); |
| 15300 } | 15134 } |
| 15301 void GeneratedCodeInfo::clear_annotation() { | 15135 void GeneratedCodeInfo::clear_annotation() { |
| 15302 annotation_.Clear(); | 15136 annotation_.Clear(); |
| 15303 } | 15137 } |
| 15304 const ::google::protobuf::GeneratedCodeInfo_Annotation& GeneratedCodeInfo::annot
ation(int index) const { | 15138 const ::google::protobuf::GeneratedCodeInfo_Annotation& GeneratedCodeInfo::annot
ation(int index) const { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 15325 } | 15159 } |
| 15326 | 15160 |
| 15327 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 15161 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 15328 | 15162 |
| 15329 // @@protoc_insertion_point(namespace_scope) | 15163 // @@protoc_insertion_point(namespace_scope) |
| 15330 | 15164 |
| 15331 } // namespace protobuf | 15165 } // namespace protobuf |
| 15332 } // namespace google | 15166 } // namespace google |
| 15333 | 15167 |
| 15334 // @@protoc_insertion_point(global_scope) | 15168 // @@protoc_insertion_point(global_scope) |
| OLD | NEW |