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 #if LANG_CXX11 | 1962 void FileDescriptorProto::set_name(const char* value) { |
2005 void FileDescriptorProto::set_name(::std::string&& value) { | |
2006 set_has_name(); | |
2007 name_.SetNoArena( | |
2008 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va
lue)); | |
2009 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileDescriptorPro
to.name) | |
2010 } | |
2011 #endif | |
2012 void FileDescriptorProto::set_name(const char* value) { | |
2013 set_has_name(); | 1963 set_has_name(); |
2014 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); | 1964 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); |
2015 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto
.name) | 1965 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto
.name) |
2016 } | 1966 } |
2017 void FileDescriptorProto::set_name(const char* value, size_t size) { | 1967 void FileDescriptorProto::set_name(const char* value, size_t size) { |
2018 set_has_name(); | 1968 set_has_name(); |
2019 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), | 1969 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
2020 ::std::string(reinterpret_cast<const char*>(value), size)); | 1970 ::std::string(reinterpret_cast<const char*>(value), size)); |
2021 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorPr
oto.name) | 1971 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorPr
oto.name) |
2022 } | 1972 } |
2023 ::std::string* FileDescriptorProto::mutable_name() { | 1973 ::std::string* FileDescriptorProto::mutable_name() { |
2024 set_has_name(); | 1974 set_has_name(); |
2025 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.
name) | 1975 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.
name) |
2026 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 1976 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
2027 } | 1977 } |
2028 ::std::string* FileDescriptorProto::release_name() { | 1978 ::std::string* FileDescriptorProto::release_name() { |
2029 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.
name) | 1979 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.
name) |
2030 clear_has_name(); | 1980 clear_has_name(); |
2031 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 1981 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
2032 } | 1982 } |
2033 void FileDescriptorProto::set_allocated_name(::std::string* name) { | 1983 void FileDescriptorProto::set_allocated_name(::std::string* name) { |
2034 if (name != NULL) { | 1984 if (name != NULL) { |
2035 set_has_name(); | 1985 set_has_name(); |
2036 } else { | 1986 } else { |
2037 clear_has_name(); | 1987 clear_has_name(); |
2038 } | 1988 } |
2039 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), name); | 1989 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), name); |
2040 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptor
Proto.name) | 1990 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptor
Proto.name) |
2041 } | 1991 } |
2042 | 1992 |
2043 // optional string package = 2; | 1993 // optional string package = 2; |
2044 bool FileDescriptorProto::has_package() const { | 1994 bool FileDescriptorProto::has_package() const { |
2045 return (_has_bits_[0] & 0x00000002u) != 0; | 1995 return (_has_bits_[0] & 0x00000002u) != 0; |
2046 } | 1996 } |
2047 void FileDescriptorProto::set_has_package() { | 1997 void FileDescriptorProto::set_has_package() { |
2048 _has_bits_[0] |= 0x00000002u; | 1998 _has_bits_[0] |= 0x00000002u; |
2049 } | 1999 } |
2050 void FileDescriptorProto::clear_has_package() { | 2000 void FileDescriptorProto::clear_has_package() { |
2051 _has_bits_[0] &= ~0x00000002u; | 2001 _has_bits_[0] &= ~0x00000002u; |
2052 } | 2002 } |
2053 void FileDescriptorProto::clear_package() { | 2003 void FileDescriptorProto::clear_package() { |
2054 package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); | 2004 package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); |
2055 clear_has_package(); | 2005 clear_has_package(); |
2056 } | 2006 } |
2057 const ::std::string& FileDescriptorProto::package() const { | 2007 const ::std::string& FileDescriptorProto::package() const { |
2058 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.pack
age) | 2008 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.pack
age) |
2059 return package_.GetNoArena(); | 2009 return package_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlread
yInited()); |
2060 } | 2010 } |
2061 void FileDescriptorProto::set_package(const ::std::string& value) { | 2011 void FileDescriptorProto::set_package(const ::std::string& value) { |
2062 set_has_package(); | 2012 set_has_package(); |
2063 package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), value); | 2013 package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), value); |
2064 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.pack
age) | 2014 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.pack
age) |
2065 } | 2015 } |
2066 #if LANG_CXX11 | 2016 void FileDescriptorProto::set_package(const char* value) { |
2067 void FileDescriptorProto::set_package(::std::string&& value) { | |
2068 set_has_package(); | |
2069 package_.SetNoArena( | |
2070 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va
lue)); | |
2071 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileDescriptorPro
to.package) | |
2072 } | |
2073 #endif | |
2074 void FileDescriptorProto::set_package(const char* value) { | |
2075 set_has_package(); | 2017 set_has_package(); |
2076 package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), ::std::string(value)); | 2018 package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), ::std::string(value)); |
2077 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto
.package) | 2019 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto
.package) |
2078 } | 2020 } |
2079 void FileDescriptorProto::set_package(const char* value, size_t size) { | 2021 void FileDescriptorProto::set_package(const char* value, size_t size) { |
2080 set_has_package(); | 2022 set_has_package(); |
2081 package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), | 2023 package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), |
2082 ::std::string(reinterpret_cast<const char*>(value), size)); | 2024 ::std::string(reinterpret_cast<const char*>(value), size)); |
2083 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorPr
oto.package) | 2025 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorPr
oto.package) |
2084 } | 2026 } |
2085 ::std::string* FileDescriptorProto::mutable_package() { | 2027 ::std::string* FileDescriptorProto::mutable_package() { |
2086 set_has_package(); | 2028 set_has_package(); |
2087 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.
package) | 2029 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.
package) |
2088 return package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); | 2030 return package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); |
2089 } | 2031 } |
2090 ::std::string* FileDescriptorProto::release_package() { | 2032 ::std::string* FileDescriptorProto::release_package() { |
2091 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.
package) | 2033 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.
package) |
2092 clear_has_package(); | 2034 clear_has_package(); |
2093 return package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); | 2035 return package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); |
2094 } | 2036 } |
2095 void FileDescriptorProto::set_allocated_package(::std::string* package) { | 2037 void FileDescriptorProto::set_allocated_package(::std::string* package) { |
2096 if (package != NULL) { | 2038 if (package != NULL) { |
2097 set_has_package(); | 2039 set_has_package(); |
2098 } else { | 2040 } else { |
2099 clear_has_package(); | 2041 clear_has_package(); |
2100 } | 2042 } |
2101 package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), package); | 2043 package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), package); |
2102 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptor
Proto.package) | 2044 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptor
Proto.package) |
2103 } | 2045 } |
2104 | 2046 |
2105 // repeated string dependency = 3; | 2047 // repeated string dependency = 3; |
2106 int FileDescriptorProto::dependency_size() const { | 2048 int FileDescriptorProto::dependency_size() const { |
2107 return dependency_.size(); | 2049 return dependency_.size(); |
2108 } | 2050 } |
2109 void FileDescriptorProto::clear_dependency() { | 2051 void FileDescriptorProto::clear_dependency() { |
2110 dependency_.Clear(); | 2052 dependency_.Clear(); |
2111 } | 2053 } |
2112 const ::std::string& FileDescriptorProto::dependency(int index) const { | 2054 const ::std::string& FileDescriptorProto::dependency(int index) const { |
2113 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.depe
ndency) | 2055 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.depe
ndency) |
2114 return dependency_.Get(index); | 2056 return dependency_.Get(index); |
2115 } | 2057 } |
2116 ::std::string* FileDescriptorProto::mutable_dependency(int index) { | 2058 ::std::string* FileDescriptorProto::mutable_dependency(int index) { |
2117 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.
dependency) | 2059 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.
dependency) |
2118 return dependency_.Mutable(index); | 2060 return dependency_.Mutable(index); |
2119 } | 2061 } |
2120 void FileDescriptorProto::set_dependency(int index, const ::std::string& value)
{ | 2062 void FileDescriptorProto::set_dependency(int index, const ::std::string& value)
{ |
2121 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.depe
ndency) | 2063 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.depe
ndency) |
2122 dependency_.Mutable(index)->assign(value); | 2064 dependency_.Mutable(index)->assign(value); |
2123 } | 2065 } |
2124 void FileDescriptorProto::set_dependency(int index, const char* value) { | 2066 void FileDescriptorProto::set_dependency(int index, const char* value) { |
2125 dependency_.Mutable(index)->assign(value); | 2067 dependency_.Mutable(index)->assign(value); |
2126 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto
.dependency) | 2068 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto
.dependency) |
2127 } | 2069 } |
2128 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) { |
2129 dependency_.Mutable(index)->assign( | 2071 dependency_.Mutable(index)->assign( |
2130 reinterpret_cast<const char*>(value), size); | 2072 reinterpret_cast<const char*>(value), size); |
2131 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorPr
oto.dependency) | 2073 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorPr
oto.dependency) |
2132 } | 2074 } |
2133 ::std::string* FileDescriptorProto::add_dependency() { | 2075 ::std::string* FileDescriptorProto::add_dependency() { |
2134 // @@protoc_insertion_point(field_add_mutable:google.protobuf.FileDescriptorPr
oto.dependency) | 2076 // @@protoc_insertion_point(field_add_mutable:google.protobuf.FileDescriptorPr
oto.dependency) |
2135 return dependency_.Add(); | 2077 return dependency_.Add(); |
2136 } | 2078 } |
2137 void FileDescriptorProto::add_dependency(const ::std::string& value) { | 2079 void FileDescriptorProto::add_dependency(const ::std::string& value) { |
2138 dependency_.Add()->assign(value); | 2080 dependency_.Add()->assign(value); |
2139 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.depe
ndency) | 2081 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.depe
ndency) |
2140 } | 2082 } |
2141 void FileDescriptorProto::add_dependency(const char* value) { | 2083 void FileDescriptorProto::add_dependency(const char* value) { |
2142 dependency_.Add()->assign(value); | 2084 dependency_.Add()->assign(value); |
2143 // @@protoc_insertion_point(field_add_char:google.protobuf.FileDescriptorProto
.dependency) | 2085 // @@protoc_insertion_point(field_add_char:google.protobuf.FileDescriptorProto
.dependency) |
2144 } | 2086 } |
2145 void FileDescriptorProto::add_dependency(const char* value, size_t size) { | 2087 void FileDescriptorProto::add_dependency(const char* value, size_t size) { |
2146 dependency_.Add()->assign(reinterpret_cast<const char*>(value), size); | 2088 dependency_.Add()->assign(reinterpret_cast<const char*>(value), size); |
2147 // @@protoc_insertion_point(field_add_pointer:google.protobuf.FileDescriptorPr
oto.dependency) | 2089 // @@protoc_insertion_point(field_add_pointer:google.protobuf.FileDescriptorPr
oto.dependency) |
2148 } | 2090 } |
2149 const ::google::protobuf::RepeatedPtrField< ::std::string>& | 2091 const ::google::protobuf::RepeatedPtrField< ::std::string>& |
2150 FileDescriptorProto::dependency() const { | 2092 FileDescriptorProto::dependency() const { |
2151 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.dep
endency) | 2093 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.dep
endency) |
2152 return dependency_; | 2094 return dependency_; |
2153 } | 2095 } |
2154 ::google::protobuf::RepeatedPtrField< ::std::string>* | 2096 ::google::protobuf::RepeatedPtrField< ::std::string>* |
2155 FileDescriptorProto::mutable_dependency() { | 2097 FileDescriptorProto::mutable_dependency() { |
2156 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorP
roto.dependency) | 2098 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorP
roto.dependency) |
2157 return &dependency_; | 2099 return &dependency_; |
2158 } | 2100 } |
2159 | 2101 |
2160 // repeated int32 public_dependency = 10; | 2102 // repeated int32 public_dependency = 10; |
2161 int FileDescriptorProto::public_dependency_size() const { | 2103 int FileDescriptorProto::public_dependency_size() const { |
2162 return public_dependency_.size(); | 2104 return public_dependency_.size(); |
2163 } | 2105 } |
2164 void FileDescriptorProto::clear_public_dependency() { | 2106 void FileDescriptorProto::clear_public_dependency() { |
2165 public_dependency_.Clear(); | 2107 public_dependency_.Clear(); |
2166 } | 2108 } |
2167 ::google::protobuf::int32 FileDescriptorProto::public_dependency(int index) cons
t { | 2109 ::google::protobuf::int32 FileDescriptorProto::public_dependency(int index) con
st { |
2168 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.publ
ic_dependency) | 2110 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.publ
ic_dependency) |
2169 return public_dependency_.Get(index); | 2111 return public_dependency_.Get(index); |
2170 } | 2112 } |
2171 void FileDescriptorProto::set_public_dependency(int index, ::google::protobuf::i
nt32 value) { | 2113 void FileDescriptorProto::set_public_dependency(int index, ::google::protobuf::
int32 value) { |
2172 public_dependency_.Set(index, value); | 2114 public_dependency_.Set(index, value); |
2173 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.publ
ic_dependency) | 2115 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.publ
ic_dependency) |
2174 } | 2116 } |
2175 void FileDescriptorProto::add_public_dependency(::google::protobuf::int32 value)
{ | 2117 void FileDescriptorProto::add_public_dependency(::google::protobuf::int32 value
) { |
2176 public_dependency_.Add(value); | 2118 public_dependency_.Add(value); |
2177 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.publ
ic_dependency) | 2119 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.publ
ic_dependency) |
2178 } | 2120 } |
2179 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& | 2121 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& |
2180 FileDescriptorProto::public_dependency() const { | 2122 FileDescriptorProto::public_dependency() const { |
2181 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.pub
lic_dependency) | 2123 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.pub
lic_dependency) |
2182 return public_dependency_; | 2124 return public_dependency_; |
2183 } | 2125 } |
2184 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* | 2126 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* |
2185 FileDescriptorProto::mutable_public_dependency() { | 2127 FileDescriptorProto::mutable_public_dependency() { |
2186 // @@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) |
2187 return &public_dependency_; | 2129 return &public_dependency_; |
2188 } | 2130 } |
2189 | 2131 |
2190 // repeated int32 weak_dependency = 11; | 2132 // repeated int32 weak_dependency = 11; |
2191 int FileDescriptorProto::weak_dependency_size() const { | 2133 int FileDescriptorProto::weak_dependency_size() const { |
2192 return weak_dependency_.size(); | 2134 return weak_dependency_.size(); |
2193 } | 2135 } |
2194 void FileDescriptorProto::clear_weak_dependency() { | 2136 void FileDescriptorProto::clear_weak_dependency() { |
2195 weak_dependency_.Clear(); | 2137 weak_dependency_.Clear(); |
2196 } | 2138 } |
2197 ::google::protobuf::int32 FileDescriptorProto::weak_dependency(int index) const
{ | 2139 ::google::protobuf::int32 FileDescriptorProto::weak_dependency(int index) const
{ |
2198 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.weak
_dependency) | 2140 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.weak
_dependency) |
2199 return weak_dependency_.Get(index); | 2141 return weak_dependency_.Get(index); |
2200 } | 2142 } |
2201 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) { |
2202 weak_dependency_.Set(index, value); | 2144 weak_dependency_.Set(index, value); |
2203 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.weak
_dependency) | 2145 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.weak
_dependency) |
2204 } | 2146 } |
2205 void FileDescriptorProto::add_weak_dependency(::google::protobuf::int32 value) { | 2147 void FileDescriptorProto::add_weak_dependency(::google::protobuf::int32 value)
{ |
2206 weak_dependency_.Add(value); | 2148 weak_dependency_.Add(value); |
2207 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.weak
_dependency) | 2149 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.weak
_dependency) |
2208 } | 2150 } |
2209 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& | 2151 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& |
2210 FileDescriptorProto::weak_dependency() const { | 2152 FileDescriptorProto::weak_dependency() const { |
2211 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.wea
k_dependency) | 2153 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.wea
k_dependency) |
2212 return weak_dependency_; | 2154 return weak_dependency_; |
2213 } | 2155 } |
2214 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* | 2156 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* |
2215 FileDescriptorProto::mutable_weak_dependency() { | 2157 FileDescriptorProto::mutable_weak_dependency() { |
2216 // @@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) |
2217 return &weak_dependency_; | 2159 return &weak_dependency_; |
2218 } | 2160 } |
2219 | 2161 |
2220 // repeated .google.protobuf.DescriptorProto message_type = 4; | 2162 // repeated .google.protobuf.DescriptorProto message_type = 4; |
2221 int FileDescriptorProto::message_type_size() const { | 2163 int FileDescriptorProto::message_type_size() const { |
2222 return message_type_.size(); | 2164 return message_type_.size(); |
2223 } | 2165 } |
2224 void FileDescriptorProto::clear_message_type() { | 2166 void FileDescriptorProto::clear_message_type() { |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2332 return &extension_; | 2274 return &extension_; |
2333 } | 2275 } |
2334 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorP
roto >& | 2276 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorP
roto >& |
2335 FileDescriptorProto::extension() const { | 2277 FileDescriptorProto::extension() const { |
2336 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.ext
ension) | 2278 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.ext
ension) |
2337 return extension_; | 2279 return extension_; |
2338 } | 2280 } |
2339 | 2281 |
2340 // optional .google.protobuf.FileOptions options = 8; | 2282 // optional .google.protobuf.FileOptions options = 8; |
2341 bool FileDescriptorProto::has_options() const { | 2283 bool FileDescriptorProto::has_options() const { |
2342 return (_has_bits_[0] & 0x00000008u) != 0; | 2284 return (_has_bits_[0] & 0x00000200u) != 0; |
2343 } | 2285 } |
2344 void FileDescriptorProto::set_has_options() { | 2286 void FileDescriptorProto::set_has_options() { |
2345 _has_bits_[0] |= 0x00000008u; | 2287 _has_bits_[0] |= 0x00000200u; |
2346 } | 2288 } |
2347 void FileDescriptorProto::clear_has_options() { | 2289 void FileDescriptorProto::clear_has_options() { |
2348 _has_bits_[0] &= ~0x00000008u; | 2290 _has_bits_[0] &= ~0x00000200u; |
2349 } | 2291 } |
2350 void FileDescriptorProto::clear_options() { | 2292 void FileDescriptorProto::clear_options() { |
2351 if (options_ != NULL) options_->::google::protobuf::FileOptions::Clear(); | 2293 if (options_ != NULL) options_->::google::protobuf::FileOptions::Clear(); |
2352 clear_has_options(); | 2294 clear_has_options(); |
2353 } | 2295 } |
2354 const ::google::protobuf::FileOptions& FileDescriptorProto::options() const { | 2296 const ::google::protobuf::FileOptions& FileDescriptorProto::options() const { |
2355 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.opti
ons) | 2297 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.opti
ons) |
2356 return options_ != NULL ? *options_ | 2298 return options_ != NULL ? *options_ : *default_instance_->options_; |
2357 : *::google::protobuf::FileOptions::internal_default_in
stance(); | |
2358 } | 2299 } |
2359 ::google::protobuf::FileOptions* FileDescriptorProto::mutable_options() { | 2300 ::google::protobuf::FileOptions* FileDescriptorProto::mutable_options() { |
2360 set_has_options(); | 2301 set_has_options(); |
2361 if (options_ == NULL) { | 2302 if (options_ == NULL) { |
2362 options_ = new ::google::protobuf::FileOptions; | 2303 options_ = new ::google::protobuf::FileOptions; |
2363 } | 2304 } |
2364 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.
options) | 2305 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.
options) |
2365 return options_; | 2306 return options_; |
2366 } | 2307 } |
2367 ::google::protobuf::FileOptions* FileDescriptorProto::release_options() { | 2308 ::google::protobuf::FileOptions* FileDescriptorProto::release_options() { |
2368 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.
options) | 2309 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.
options) |
2369 clear_has_options(); | 2310 clear_has_options(); |
2370 ::google::protobuf::FileOptions* temp = options_; | 2311 ::google::protobuf::FileOptions* temp = options_; |
2371 options_ = NULL; | 2312 options_ = NULL; |
2372 return temp; | 2313 return temp; |
2373 } | 2314 } |
2374 void FileDescriptorProto::set_allocated_options(::google::protobuf::FileOptions*
options) { | 2315 void FileDescriptorProto::set_allocated_options(::google::protobuf::FileOptions*
options) { |
2375 delete options_; | 2316 delete options_; |
2376 options_ = options; | 2317 options_ = options; |
2377 if (options) { | 2318 if (options) { |
2378 set_has_options(); | 2319 set_has_options(); |
2379 } else { | 2320 } else { |
2380 clear_has_options(); | 2321 clear_has_options(); |
2381 } | 2322 } |
2382 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptor
Proto.options) | 2323 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptor
Proto.options) |
2383 } | 2324 } |
2384 | 2325 |
2385 // optional .google.protobuf.SourceCodeInfo source_code_info = 9; | 2326 // optional .google.protobuf.SourceCodeInfo source_code_info = 9; |
2386 bool FileDescriptorProto::has_source_code_info() const { | 2327 bool FileDescriptorProto::has_source_code_info() const { |
2387 return (_has_bits_[0] & 0x00000010u) != 0; | 2328 return (_has_bits_[0] & 0x00000400u) != 0; |
2388 } | 2329 } |
2389 void FileDescriptorProto::set_has_source_code_info() { | 2330 void FileDescriptorProto::set_has_source_code_info() { |
2390 _has_bits_[0] |= 0x00000010u; | 2331 _has_bits_[0] |= 0x00000400u; |
2391 } | 2332 } |
2392 void FileDescriptorProto::clear_has_source_code_info() { | 2333 void FileDescriptorProto::clear_has_source_code_info() { |
2393 _has_bits_[0] &= ~0x00000010u; | 2334 _has_bits_[0] &= ~0x00000400u; |
2394 } | 2335 } |
2395 void FileDescriptorProto::clear_source_code_info() { | 2336 void FileDescriptorProto::clear_source_code_info() { |
2396 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(); |
2397 clear_has_source_code_info(); | 2338 clear_has_source_code_info(); |
2398 } | 2339 } |
2399 const ::google::protobuf::SourceCodeInfo& FileDescriptorProto::source_code_info(
) const { | 2340 const ::google::protobuf::SourceCodeInfo& FileDescriptorProto::source_code_info(
) const { |
2400 // @@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) |
2401 return source_code_info_ != NULL ? *source_code_info_ | 2342 return source_code_info_ != NULL ? *source_code_info_ : *default_instance_->so
urce_code_info_; |
2402 : *::google::protobuf::SourceCodeInfo::internal_default
_instance(); | |
2403 } | 2343 } |
2404 ::google::protobuf::SourceCodeInfo* FileDescriptorProto::mutable_source_code_inf
o() { | 2344 ::google::protobuf::SourceCodeInfo* FileDescriptorProto::mutable_source_code_inf
o() { |
2405 set_has_source_code_info(); | 2345 set_has_source_code_info(); |
2406 if (source_code_info_ == NULL) { | 2346 if (source_code_info_ == NULL) { |
2407 source_code_info_ = new ::google::protobuf::SourceCodeInfo; | 2347 source_code_info_ = new ::google::protobuf::SourceCodeInfo; |
2408 } | 2348 } |
2409 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.
source_code_info) | 2349 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.
source_code_info) |
2410 return source_code_info_; | 2350 return source_code_info_; |
2411 } | 2351 } |
2412 ::google::protobuf::SourceCodeInfo* FileDescriptorProto::release_source_code_inf
o() { | 2352 ::google::protobuf::SourceCodeInfo* FileDescriptorProto::release_source_code_inf
o() { |
2413 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.
source_code_info) | 2353 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.
source_code_info) |
2414 clear_has_source_code_info(); | 2354 clear_has_source_code_info(); |
2415 ::google::protobuf::SourceCodeInfo* temp = source_code_info_; | 2355 ::google::protobuf::SourceCodeInfo* temp = source_code_info_; |
2416 source_code_info_ = NULL; | 2356 source_code_info_ = NULL; |
2417 return temp; | 2357 return temp; |
2418 } | 2358 } |
2419 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) { |
2420 delete source_code_info_; | 2360 delete source_code_info_; |
2421 source_code_info_ = source_code_info; | 2361 source_code_info_ = source_code_info; |
2422 if (source_code_info) { | 2362 if (source_code_info) { |
2423 set_has_source_code_info(); | 2363 set_has_source_code_info(); |
2424 } else { | 2364 } else { |
2425 clear_has_source_code_info(); | 2365 clear_has_source_code_info(); |
2426 } | 2366 } |
2427 // @@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) |
2428 } | 2368 } |
2429 | 2369 |
2430 // optional string syntax = 12; | 2370 // optional string syntax = 12; |
2431 bool FileDescriptorProto::has_syntax() const { | 2371 bool FileDescriptorProto::has_syntax() const { |
2432 return (_has_bits_[0] & 0x00000004u) != 0; | 2372 return (_has_bits_[0] & 0x00000800u) != 0; |
2433 } | 2373 } |
2434 void FileDescriptorProto::set_has_syntax() { | 2374 void FileDescriptorProto::set_has_syntax() { |
2435 _has_bits_[0] |= 0x00000004u; | 2375 _has_bits_[0] |= 0x00000800u; |
2436 } | 2376 } |
2437 void FileDescriptorProto::clear_has_syntax() { | 2377 void FileDescriptorProto::clear_has_syntax() { |
2438 _has_bits_[0] &= ~0x00000004u; | 2378 _has_bits_[0] &= ~0x00000800u; |
2439 } | 2379 } |
2440 void FileDescriptorProto::clear_syntax() { | 2380 void FileDescriptorProto::clear_syntax() { |
2441 syntax_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 2381 syntax_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
2442 clear_has_syntax(); | 2382 clear_has_syntax(); |
2443 } | 2383 } |
2444 const ::std::string& FileDescriptorProto::syntax() const { | 2384 const ::std::string& FileDescriptorProto::syntax() const { |
2445 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.synt
ax) | 2385 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.synt
ax) |
2446 return syntax_.GetNoArena(); | 2386 return syntax_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); |
2447 } | 2387 } |
2448 void FileDescriptorProto::set_syntax(const ::std::string& value) { | 2388 void FileDescriptorProto::set_syntax(const ::std::string& value) { |
2449 set_has_syntax(); | 2389 set_has_syntax(); |
2450 syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(
), value); | 2390 syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(
), value); |
2451 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.synt
ax) | 2391 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.synt
ax) |
2452 } | 2392 } |
2453 #if LANG_CXX11 | 2393 void FileDescriptorProto::set_syntax(const char* value) { |
2454 void FileDescriptorProto::set_syntax(::std::string&& value) { | |
2455 set_has_syntax(); | |
2456 syntax_.SetNoArena( | |
2457 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va
lue)); | |
2458 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileDescriptorPro
to.syntax) | |
2459 } | |
2460 #endif | |
2461 void FileDescriptorProto::set_syntax(const char* value) { | |
2462 set_has_syntax(); | 2394 set_has_syntax(); |
2463 syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(
), ::std::string(value)); | 2395 syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(
), ::std::string(value)); |
2464 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto
.syntax) | 2396 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto
.syntax) |
2465 } | 2397 } |
2466 void FileDescriptorProto::set_syntax(const char* value, size_t size) { | 2398 void FileDescriptorProto::set_syntax(const char* value, size_t size) { |
2467 set_has_syntax(); | 2399 set_has_syntax(); |
2468 syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(
), | 2400 syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(
), |
2469 ::std::string(reinterpret_cast<const char*>(value), size)); | 2401 ::std::string(reinterpret_cast<const char*>(value), size)); |
2470 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorPr
oto.syntax) | 2402 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorPr
oto.syntax) |
2471 } | 2403 } |
2472 ::std::string* FileDescriptorProto::mutable_syntax() { | 2404 ::std::string* FileDescriptorProto::mutable_syntax() { |
2473 set_has_syntax(); | 2405 set_has_syntax(); |
2474 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.
syntax) | 2406 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.
syntax) |
2475 return syntax_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); | 2407 return syntax_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); |
2476 } | 2408 } |
2477 ::std::string* FileDescriptorProto::release_syntax() { | 2409 ::std::string* FileDescriptorProto::release_syntax() { |
2478 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.
syntax) | 2410 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.
syntax) |
2479 clear_has_syntax(); | 2411 clear_has_syntax(); |
2480 return syntax_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); | 2412 return syntax_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); |
2481 } | 2413 } |
2482 void FileDescriptorProto::set_allocated_syntax(::std::string* syntax) { | 2414 void FileDescriptorProto::set_allocated_syntax(::std::string* syntax) { |
2483 if (syntax != NULL) { | 2415 if (syntax != NULL) { |
2484 set_has_syntax(); | 2416 set_has_syntax(); |
2485 } else { | 2417 } else { |
2486 clear_has_syntax(); | 2418 clear_has_syntax(); |
2487 } | 2419 } |
2488 syntax_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), syntax); | 2420 syntax_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), syntax); |
2489 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptor
Proto.syntax) | 2421 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptor
Proto.syntax) |
2490 } | 2422 } |
2491 | 2423 |
2492 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 2424 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
2493 | 2425 |
2494 // =================================================================== | 2426 // =================================================================== |
2495 | 2427 |
2496 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 2428 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
2497 const int DescriptorProto_ExtensionRange::kStartFieldNumber; | 2429 const int DescriptorProto_ExtensionRange::kStartFieldNumber; |
2498 const int DescriptorProto_ExtensionRange::kEndFieldNumber; | 2430 const int DescriptorProto_ExtensionRange::kEndFieldNumber; |
2499 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 2431 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
2500 | 2432 |
2501 DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange() | 2433 DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange() |
2502 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 2434 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
2503 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
2504 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
2505 } | |
2506 SharedCtor(); | 2435 SharedCtor(); |
2507 // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto.Extens
ionRange) | 2436 // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto.Extens
ionRange) |
2508 } | 2437 } |
| 2438 |
| 2439 void DescriptorProto_ExtensionRange::InitAsDefaultInstance() { |
| 2440 } |
| 2441 |
2509 DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange(const DescriptorP
roto_ExtensionRange& from) | 2442 DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange(const DescriptorP
roto_ExtensionRange& from) |
2510 : ::google::protobuf::Message(), | 2443 : ::google::protobuf::Message(), |
2511 _internal_metadata_(NULL), | 2444 _internal_metadata_(NULL) { |
2512 _has_bits_(from._has_bits_), | 2445 SharedCtor(); |
2513 _cached_size_(0) { | 2446 MergeFrom(from); |
2514 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
2515 ::memcpy(&start_, &from.start_, | |
2516 reinterpret_cast<char*>(&end_) - | |
2517 reinterpret_cast<char*>(&start_) + sizeof(end_)); | |
2518 // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto.E
xtensionRange) | 2447 // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto.E
xtensionRange) |
2519 } | 2448 } |
2520 | 2449 |
2521 void DescriptorProto_ExtensionRange::SharedCtor() { | 2450 void DescriptorProto_ExtensionRange::SharedCtor() { |
2522 _cached_size_ = 0; | 2451 _cached_size_ = 0; |
2523 ::memset(&start_, 0, reinterpret_cast<char*>(&end_) - | 2452 start_ = 0; |
2524 reinterpret_cast<char*>(&start_) + sizeof(end_)); | 2453 end_ = 0; |
| 2454 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
2525 } | 2455 } |
2526 | 2456 |
2527 DescriptorProto_ExtensionRange::~DescriptorProto_ExtensionRange() { | 2457 DescriptorProto_ExtensionRange::~DescriptorProto_ExtensionRange() { |
2528 // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto.Extensi
onRange) | 2458 // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto.Extensi
onRange) |
2529 SharedDtor(); | 2459 SharedDtor(); |
2530 } | 2460 } |
2531 | 2461 |
2532 void DescriptorProto_ExtensionRange::SharedDtor() { | 2462 void DescriptorProto_ExtensionRange::SharedDtor() { |
| 2463 if (this != default_instance_) { |
| 2464 } |
2533 } | 2465 } |
2534 | 2466 |
2535 void DescriptorProto_ExtensionRange::SetCachedSize(int size) const { | 2467 void DescriptorProto_ExtensionRange::SetCachedSize(int size) const { |
2536 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 2468 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2537 _cached_size_ = size; | 2469 _cached_size_ = size; |
2538 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 2470 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2539 } | 2471 } |
2540 const ::google::protobuf::Descriptor* DescriptorProto_ExtensionRange::descriptor
() { | 2472 const ::google::protobuf::Descriptor* DescriptorProto_ExtensionRange::descriptor
() { |
2541 protobuf_AssignDescriptorsOnce(); | 2473 protobuf_AssignDescriptorsOnce(); |
2542 return file_level_metadata[2].descriptor; | 2474 return DescriptorProto_ExtensionRange_descriptor_; |
2543 } | 2475 } |
2544 | 2476 |
2545 const DescriptorProto_ExtensionRange& DescriptorProto_ExtensionRange::default_in
stance() { | 2477 const DescriptorProto_ExtensionRange& DescriptorProto_ExtensionRange::default_in
stance() { |
2546 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 2478 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
2547 return *internal_default_instance(); | 2479 return *default_instance_; |
2548 } | 2480 } |
2549 | 2481 |
| 2482 DescriptorProto_ExtensionRange* DescriptorProto_ExtensionRange::default_instance
_ = NULL; |
| 2483 |
2550 DescriptorProto_ExtensionRange* DescriptorProto_ExtensionRange::New(::google::pr
otobuf::Arena* arena) const { | 2484 DescriptorProto_ExtensionRange* DescriptorProto_ExtensionRange::New(::google::pr
otobuf::Arena* arena) const { |
2551 DescriptorProto_ExtensionRange* n = new DescriptorProto_ExtensionRange; | 2485 DescriptorProto_ExtensionRange* n = new DescriptorProto_ExtensionRange; |
2552 if (arena != NULL) { | 2486 if (arena != NULL) { |
2553 arena->Own(n); | 2487 arena->Own(n); |
2554 } | 2488 } |
2555 return n; | 2489 return n; |
2556 } | 2490 } |
2557 | 2491 |
2558 void DescriptorProto_ExtensionRange::Clear() { | 2492 void DescriptorProto_ExtensionRange::Clear() { |
2559 // @@protoc_insertion_point(message_clear_start:google.protobuf.DescriptorProto.
ExtensionRange) | 2493 // @@protoc_insertion_point(message_clear_start:google.protobuf.DescriptorProto.
ExtensionRange) |
2560 if (_has_bits_[0 / 32] & 3u) { | 2494 #if defined(__clang__) |
2561 ::memset(&start_, 0, reinterpret_cast<char*>(&end_) - | 2495 #define ZR_HELPER_(f) \ |
2562 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(); |
2563 } | 2518 } |
2564 _has_bits_.Clear(); | |
2565 _internal_metadata_.Clear(); | |
2566 } | 2519 } |
2567 | 2520 |
2568 bool DescriptorProto_ExtensionRange::MergePartialFromCodedStream( | 2521 bool DescriptorProto_ExtensionRange::MergePartialFromCodedStream( |
2569 ::google::protobuf::io::CodedInputStream* input) { | 2522 ::google::protobuf::io::CodedInputStream* input) { |
2570 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 2523 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
2571 ::google::protobuf::uint32 tag; | 2524 ::google::protobuf::uint32 tag; |
2572 // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto.Extens
ionRange) | 2525 // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto.Extens
ionRange) |
2573 for (;;) { | 2526 for (;;) { |
2574 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 2527 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
2575 tag = p.first; | 2528 tag = p.first; |
2576 if (!p.second) goto handle_unusual; | 2529 if (!p.second) goto handle_unusual; |
2577 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 2530 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
2578 // optional int32 start = 1; | 2531 // optional int32 start = 1; |
2579 case 1: { | 2532 case 1: { |
2580 if (tag == 8u) { | 2533 if (tag == 8) { |
2581 set_has_start(); | |
2582 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 2534 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2583 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 2535 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
2584 input, &start_))); | 2536 input, &start_))); |
| 2537 set_has_start(); |
2585 } else { | 2538 } else { |
2586 goto handle_unusual; | 2539 goto handle_unusual; |
2587 } | 2540 } |
| 2541 if (input->ExpectTag(16)) goto parse_end; |
2588 break; | 2542 break; |
2589 } | 2543 } |
2590 | 2544 |
2591 // optional int32 end = 2; | 2545 // optional int32 end = 2; |
2592 case 2: { | 2546 case 2: { |
2593 if (tag == 16u) { | 2547 if (tag == 16) { |
2594 set_has_end(); | 2548 parse_end: |
2595 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 2549 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2596 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 2550 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
2597 input, &end_))); | 2551 input, &end_))); |
| 2552 set_has_end(); |
2598 } else { | 2553 } else { |
2599 goto handle_unusual; | 2554 goto handle_unusual; |
2600 } | 2555 } |
| 2556 if (input->ExpectAtEnd()) goto success; |
2601 break; | 2557 break; |
2602 } | 2558 } |
2603 | 2559 |
2604 default: { | 2560 default: { |
2605 handle_unusual: | 2561 handle_unusual: |
2606 if (tag == 0 || | 2562 if (tag == 0 || |
2607 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 2563 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
2608 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 2564 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
2609 goto success; | 2565 goto success; |
2610 } | 2566 } |
(...skipping 25 matching lines...) Expand all Loading... |
2636 ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end(), out
put); | 2592 ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end(), out
put); |
2637 } | 2593 } |
2638 | 2594 |
2639 if (_internal_metadata_.have_unknown_fields()) { | 2595 if (_internal_metadata_.have_unknown_fields()) { |
2640 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 2596 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
2641 unknown_fields(), output); | 2597 unknown_fields(), output); |
2642 } | 2598 } |
2643 // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto.Exte
nsionRange) | 2599 // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto.Exte
nsionRange) |
2644 } | 2600 } |
2645 | 2601 |
2646 ::google::protobuf::uint8* DescriptorProto_ExtensionRange::InternalSerializeWith
CachedSizesToArray( | 2602 ::google::protobuf::uint8* DescriptorProto_ExtensionRange::SerializeWithCachedSi
zesToArray( |
2647 bool deterministic, ::google::protobuf::uint8* target) const { | 2603 ::google::protobuf::uint8* target) const { |
2648 (void)deterministic; // Unused | |
2649 // @@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) |
2650 // optional int32 start = 1; | 2605 // optional int32 start = 1; |
2651 if (has_start()) { | 2606 if (has_start()) { |
2652 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1,
this->start(), target); | 2607 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1,
this->start(), target); |
2653 } | 2608 } |
2654 | 2609 |
2655 // optional int32 end = 2; | 2610 // optional int32 end = 2; |
2656 if (has_end()) { | 2611 if (has_end()) { |
2657 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2,
this->end(), target); | 2612 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2,
this->end(), target); |
2658 } | 2613 } |
2659 | 2614 |
2660 if (_internal_metadata_.have_unknown_fields()) { | 2615 if (_internal_metadata_.have_unknown_fields()) { |
2661 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 2616 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
2662 unknown_fields(), target); | 2617 unknown_fields(), target); |
2663 } | 2618 } |
2664 // @@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) |
2665 return target; | 2620 return target; |
2666 } | 2621 } |
2667 | 2622 |
2668 size_t DescriptorProto_ExtensionRange::ByteSizeLong() const { | 2623 int DescriptorProto_ExtensionRange::ByteSize() const { |
2669 // @@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) |
2670 size_t total_size = 0; | 2625 int total_size = 0; |
2671 | 2626 |
2672 if (_internal_metadata_.have_unknown_fields()) { | |
2673 total_size += | |
2674 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | |
2675 unknown_fields()); | |
2676 } | |
2677 if (_has_bits_[0 / 32] & 3u) { | 2627 if (_has_bits_[0 / 32] & 3u) { |
2678 // optional int32 start = 1; | 2628 // optional int32 start = 1; |
2679 if (has_start()) { | 2629 if (has_start()) { |
2680 total_size += 1 + | 2630 total_size += 1 + |
2681 ::google::protobuf::internal::WireFormatLite::Int32Size( | 2631 ::google::protobuf::internal::WireFormatLite::Int32Size( |
2682 this->start()); | 2632 this->start()); |
2683 } | 2633 } |
2684 | 2634 |
2685 // optional int32 end = 2; | 2635 // optional int32 end = 2; |
2686 if (has_end()) { | 2636 if (has_end()) { |
2687 total_size += 1 + | 2637 total_size += 1 + |
2688 ::google::protobuf::internal::WireFormatLite::Int32Size( | 2638 ::google::protobuf::internal::WireFormatLite::Int32Size( |
2689 this->end()); | 2639 this->end()); |
2690 } | 2640 } |
2691 | 2641 |
2692 } | 2642 } |
2693 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 } |
2694 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 2648 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2695 _cached_size_ = cached_size; | 2649 _cached_size_ = total_size; |
2696 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 2650 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2697 return total_size; | 2651 return total_size; |
2698 } | 2652 } |
2699 | 2653 |
2700 void DescriptorProto_ExtensionRange::MergeFrom(const ::google::protobuf::Message
& from) { | 2654 void DescriptorProto_ExtensionRange::MergeFrom(const ::google::protobuf::Message
& from) { |
2701 // @@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) |
2702 GOOGLE_DCHECK_NE(&from, this); | 2656 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
2703 const DescriptorProto_ExtensionRange* source = | 2657 const DescriptorProto_ExtensionRange* source = |
2704 ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto
_ExtensionRange>( | 2658 ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto
_ExtensionRange>( |
2705 &from); | 2659 &from); |
2706 if (source == NULL) { | 2660 if (source == NULL) { |
2707 // @@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) |
2708 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 2662 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
2709 } else { | 2663 } else { |
2710 // @@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) |
2711 MergeFrom(*source); | 2665 MergeFrom(*source); |
2712 } | 2666 } |
2713 } | 2667 } |
2714 | 2668 |
2715 void DescriptorProto_ExtensionRange::MergeFrom(const DescriptorProto_ExtensionRa
nge& from) { | 2669 void DescriptorProto_ExtensionRange::MergeFrom(const DescriptorProto_ExtensionRa
nge& from) { |
2716 // @@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) |
2717 GOOGLE_DCHECK_NE(&from, this); | 2671 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
2718 _internal_metadata_.MergeFrom(from._internal_metadata_); | 2672 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
2719 if (from._has_bits_[0 / 32] & 3u) { | |
2720 if (from.has_start()) { | 2673 if (from.has_start()) { |
2721 set_start(from.start()); | 2674 set_start(from.start()); |
2722 } | 2675 } |
2723 if (from.has_end()) { | 2676 if (from.has_end()) { |
2724 set_end(from.end()); | 2677 set_end(from.end()); |
2725 } | 2678 } |
2726 } | 2679 } |
| 2680 if (from._internal_metadata_.have_unknown_fields()) { |
| 2681 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 2682 } |
2727 } | 2683 } |
2728 | 2684 |
2729 void DescriptorProto_ExtensionRange::CopyFrom(const ::google::protobuf::Message&
from) { | 2685 void DescriptorProto_ExtensionRange::CopyFrom(const ::google::protobuf::Message&
from) { |
2730 // @@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) |
2731 if (&from == this) return; | 2687 if (&from == this) return; |
2732 Clear(); | 2688 Clear(); |
2733 MergeFrom(from); | 2689 MergeFrom(from); |
2734 } | 2690 } |
2735 | 2691 |
2736 void DescriptorProto_ExtensionRange::CopyFrom(const DescriptorProto_ExtensionRan
ge& from) { | 2692 void DescriptorProto_ExtensionRange::CopyFrom(const DescriptorProto_ExtensionRan
ge& from) { |
2737 // @@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) |
2738 if (&from == this) return; | 2694 if (&from == this) return; |
2739 Clear(); | 2695 Clear(); |
2740 MergeFrom(from); | 2696 MergeFrom(from); |
2741 } | 2697 } |
2742 | 2698 |
2743 bool DescriptorProto_ExtensionRange::IsInitialized() const { | 2699 bool DescriptorProto_ExtensionRange::IsInitialized() const { |
| 2700 |
2744 return true; | 2701 return true; |
2745 } | 2702 } |
2746 | 2703 |
2747 void DescriptorProto_ExtensionRange::Swap(DescriptorProto_ExtensionRange* other)
{ | 2704 void DescriptorProto_ExtensionRange::Swap(DescriptorProto_ExtensionRange* other)
{ |
2748 if (other == this) return; | 2705 if (other == this) return; |
2749 InternalSwap(other); | 2706 InternalSwap(other); |
2750 } | 2707 } |
2751 void DescriptorProto_ExtensionRange::InternalSwap(DescriptorProto_ExtensionRange
* other) { | 2708 void DescriptorProto_ExtensionRange::InternalSwap(DescriptorProto_ExtensionRange
* other) { |
2752 std::swap(start_, other->start_); | 2709 std::swap(start_, other->start_); |
2753 std::swap(end_, other->end_); | 2710 std::swap(end_, other->end_); |
2754 std::swap(_has_bits_[0], other->_has_bits_[0]); | 2711 std::swap(_has_bits_[0], other->_has_bits_[0]); |
2755 _internal_metadata_.Swap(&other->_internal_metadata_); | 2712 _internal_metadata_.Swap(&other->_internal_metadata_); |
2756 std::swap(_cached_size_, other->_cached_size_); | 2713 std::swap(_cached_size_, other->_cached_size_); |
2757 } | 2714 } |
2758 | 2715 |
2759 ::google::protobuf::Metadata DescriptorProto_ExtensionRange::GetMetadata() const
{ | 2716 ::google::protobuf::Metadata DescriptorProto_ExtensionRange::GetMetadata() const
{ |
2760 protobuf_AssignDescriptorsOnce(); | 2717 protobuf_AssignDescriptorsOnce(); |
2761 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; |
2762 } | 2722 } |
2763 | 2723 |
2764 #if PROTOBUF_INLINE_NOT_IN_HEADERS | |
2765 // DescriptorProto_ExtensionRange | |
2766 | 2724 |
2767 // optional int32 start = 1; | 2725 // ------------------------------------------------------------------- |
2768 bool DescriptorProto_ExtensionRange::has_start() const { | |
2769 return (_has_bits_[0] & 0x00000001u) != 0; | |
2770 } | |
2771 void DescriptorProto_ExtensionRange::set_has_start() { | |
2772 _has_bits_[0] |= 0x00000001u; | |
2773 } | |
2774 void DescriptorProto_ExtensionRange::clear_has_start() { | |
2775 _has_bits_[0] &= ~0x00000001u; | |
2776 } | |
2777 void DescriptorProto_ExtensionRange::clear_start() { | |
2778 start_ = 0; | |
2779 clear_has_start(); | |
2780 } | |
2781 ::google::protobuf::int32 DescriptorProto_ExtensionRange::start() const { | |
2782 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.Extensio
nRange.start) | |
2783 return start_; | |
2784 } | |
2785 void DescriptorProto_ExtensionRange::set_start(::google::protobuf::int32 value)
{ | |
2786 set_has_start(); | |
2787 start_ = value; | |
2788 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.Extensio
nRange.start) | |
2789 } | |
2790 | |
2791 // optional int32 end = 2; | |
2792 bool DescriptorProto_ExtensionRange::has_end() const { | |
2793 return (_has_bits_[0] & 0x00000002u) != 0; | |
2794 } | |
2795 void DescriptorProto_ExtensionRange::set_has_end() { | |
2796 _has_bits_[0] |= 0x00000002u; | |
2797 } | |
2798 void DescriptorProto_ExtensionRange::clear_has_end() { | |
2799 _has_bits_[0] &= ~0x00000002u; | |
2800 } | |
2801 void DescriptorProto_ExtensionRange::clear_end() { | |
2802 end_ = 0; | |
2803 clear_has_end(); | |
2804 } | |
2805 ::google::protobuf::int32 DescriptorProto_ExtensionRange::end() const { | |
2806 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.Extensio
nRange.end) | |
2807 return end_; | |
2808 } | |
2809 void DescriptorProto_ExtensionRange::set_end(::google::protobuf::int32 value) { | |
2810 set_has_end(); | |
2811 end_ = value; | |
2812 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.Extensio
nRange.end) | |
2813 } | |
2814 | |
2815 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | |
2816 | |
2817 // =================================================================== | |
2818 | 2726 |
2819 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 2727 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
2820 const int DescriptorProto_ReservedRange::kStartFieldNumber; | 2728 const int DescriptorProto_ReservedRange::kStartFieldNumber; |
2821 const int DescriptorProto_ReservedRange::kEndFieldNumber; | 2729 const int DescriptorProto_ReservedRange::kEndFieldNumber; |
2822 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 2730 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
2823 | 2731 |
2824 DescriptorProto_ReservedRange::DescriptorProto_ReservedRange() | 2732 DescriptorProto_ReservedRange::DescriptorProto_ReservedRange() |
2825 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 2733 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
2826 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
2827 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
2828 } | |
2829 SharedCtor(); | 2734 SharedCtor(); |
2830 // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto.Reserv
edRange) | 2735 // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto.Reserv
edRange) |
2831 } | 2736 } |
| 2737 |
| 2738 void DescriptorProto_ReservedRange::InitAsDefaultInstance() { |
| 2739 } |
| 2740 |
2832 DescriptorProto_ReservedRange::DescriptorProto_ReservedRange(const DescriptorPro
to_ReservedRange& from) | 2741 DescriptorProto_ReservedRange::DescriptorProto_ReservedRange(const DescriptorPro
to_ReservedRange& from) |
2833 : ::google::protobuf::Message(), | 2742 : ::google::protobuf::Message(), |
2834 _internal_metadata_(NULL), | 2743 _internal_metadata_(NULL) { |
2835 _has_bits_(from._has_bits_), | 2744 SharedCtor(); |
2836 _cached_size_(0) { | 2745 MergeFrom(from); |
2837 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
2838 ::memcpy(&start_, &from.start_, | |
2839 reinterpret_cast<char*>(&end_) - | |
2840 reinterpret_cast<char*>(&start_) + sizeof(end_)); | |
2841 // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto.R
eservedRange) | 2746 // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto.R
eservedRange) |
2842 } | 2747 } |
2843 | 2748 |
2844 void DescriptorProto_ReservedRange::SharedCtor() { | 2749 void DescriptorProto_ReservedRange::SharedCtor() { |
2845 _cached_size_ = 0; | 2750 _cached_size_ = 0; |
2846 ::memset(&start_, 0, reinterpret_cast<char*>(&end_) - | 2751 start_ = 0; |
2847 reinterpret_cast<char*>(&start_) + sizeof(end_)); | 2752 end_ = 0; |
| 2753 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
2848 } | 2754 } |
2849 | 2755 |
2850 DescriptorProto_ReservedRange::~DescriptorProto_ReservedRange() { | 2756 DescriptorProto_ReservedRange::~DescriptorProto_ReservedRange() { |
2851 // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto.Reserve
dRange) | 2757 // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto.Reserve
dRange) |
2852 SharedDtor(); | 2758 SharedDtor(); |
2853 } | 2759 } |
2854 | 2760 |
2855 void DescriptorProto_ReservedRange::SharedDtor() { | 2761 void DescriptorProto_ReservedRange::SharedDtor() { |
| 2762 if (this != default_instance_) { |
| 2763 } |
2856 } | 2764 } |
2857 | 2765 |
2858 void DescriptorProto_ReservedRange::SetCachedSize(int size) const { | 2766 void DescriptorProto_ReservedRange::SetCachedSize(int size) const { |
2859 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 2767 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2860 _cached_size_ = size; | 2768 _cached_size_ = size; |
2861 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 2769 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2862 } | 2770 } |
2863 const ::google::protobuf::Descriptor* DescriptorProto_ReservedRange::descriptor(
) { | 2771 const ::google::protobuf::Descriptor* DescriptorProto_ReservedRange::descriptor(
) { |
2864 protobuf_AssignDescriptorsOnce(); | 2772 protobuf_AssignDescriptorsOnce(); |
2865 return file_level_metadata[3].descriptor; | 2773 return DescriptorProto_ReservedRange_descriptor_; |
2866 } | 2774 } |
2867 | 2775 |
2868 const DescriptorProto_ReservedRange& DescriptorProto_ReservedRange::default_inst
ance() { | 2776 const DescriptorProto_ReservedRange& DescriptorProto_ReservedRange::default_inst
ance() { |
2869 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 2777 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
2870 return *internal_default_instance(); | 2778 return *default_instance_; |
2871 } | 2779 } |
2872 | 2780 |
| 2781 DescriptorProto_ReservedRange* DescriptorProto_ReservedRange::default_instance_
= NULL; |
| 2782 |
2873 DescriptorProto_ReservedRange* DescriptorProto_ReservedRange::New(::google::prot
obuf::Arena* arena) const { | 2783 DescriptorProto_ReservedRange* DescriptorProto_ReservedRange::New(::google::prot
obuf::Arena* arena) const { |
2874 DescriptorProto_ReservedRange* n = new DescriptorProto_ReservedRange; | 2784 DescriptorProto_ReservedRange* n = new DescriptorProto_ReservedRange; |
2875 if (arena != NULL) { | 2785 if (arena != NULL) { |
2876 arena->Own(n); | 2786 arena->Own(n); |
2877 } | 2787 } |
2878 return n; | 2788 return n; |
2879 } | 2789 } |
2880 | 2790 |
2881 void DescriptorProto_ReservedRange::Clear() { | 2791 void DescriptorProto_ReservedRange::Clear() { |
2882 // @@protoc_insertion_point(message_clear_start:google.protobuf.DescriptorProto.
ReservedRange) | 2792 // @@protoc_insertion_point(message_clear_start:google.protobuf.DescriptorProto.
ReservedRange) |
2883 if (_has_bits_[0 / 32] & 3u) { | 2793 #if defined(__clang__) |
2884 ::memset(&start_, 0, reinterpret_cast<char*>(&end_) - | 2794 #define ZR_HELPER_(f) \ |
2885 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(); |
2886 } | 2817 } |
2887 _has_bits_.Clear(); | |
2888 _internal_metadata_.Clear(); | |
2889 } | 2818 } |
2890 | 2819 |
2891 bool DescriptorProto_ReservedRange::MergePartialFromCodedStream( | 2820 bool DescriptorProto_ReservedRange::MergePartialFromCodedStream( |
2892 ::google::protobuf::io::CodedInputStream* input) { | 2821 ::google::protobuf::io::CodedInputStream* input) { |
2893 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 2822 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
2894 ::google::protobuf::uint32 tag; | 2823 ::google::protobuf::uint32 tag; |
2895 // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto.Reserv
edRange) | 2824 // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto.Reserv
edRange) |
2896 for (;;) { | 2825 for (;;) { |
2897 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 2826 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
2898 tag = p.first; | 2827 tag = p.first; |
2899 if (!p.second) goto handle_unusual; | 2828 if (!p.second) goto handle_unusual; |
2900 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 2829 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
2901 // optional int32 start = 1; | 2830 // optional int32 start = 1; |
2902 case 1: { | 2831 case 1: { |
2903 if (tag == 8u) { | 2832 if (tag == 8) { |
2904 set_has_start(); | |
2905 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 2833 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2906 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 2834 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
2907 input, &start_))); | 2835 input, &start_))); |
| 2836 set_has_start(); |
2908 } else { | 2837 } else { |
2909 goto handle_unusual; | 2838 goto handle_unusual; |
2910 } | 2839 } |
| 2840 if (input->ExpectTag(16)) goto parse_end; |
2911 break; | 2841 break; |
2912 } | 2842 } |
2913 | 2843 |
2914 // optional int32 end = 2; | 2844 // optional int32 end = 2; |
2915 case 2: { | 2845 case 2: { |
2916 if (tag == 16u) { | 2846 if (tag == 16) { |
2917 set_has_end(); | 2847 parse_end: |
2918 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 2848 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2919 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 2849 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
2920 input, &end_))); | 2850 input, &end_))); |
| 2851 set_has_end(); |
2921 } else { | 2852 } else { |
2922 goto handle_unusual; | 2853 goto handle_unusual; |
2923 } | 2854 } |
| 2855 if (input->ExpectAtEnd()) goto success; |
2924 break; | 2856 break; |
2925 } | 2857 } |
2926 | 2858 |
2927 default: { | 2859 default: { |
2928 handle_unusual: | 2860 handle_unusual: |
2929 if (tag == 0 || | 2861 if (tag == 0 || |
2930 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 2862 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
2931 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 2863 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
2932 goto success; | 2864 goto success; |
2933 } | 2865 } |
(...skipping 25 matching lines...) Expand all Loading... |
2959 ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end(), out
put); | 2891 ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end(), out
put); |
2960 } | 2892 } |
2961 | 2893 |
2962 if (_internal_metadata_.have_unknown_fields()) { | 2894 if (_internal_metadata_.have_unknown_fields()) { |
2963 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 2895 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
2964 unknown_fields(), output); | 2896 unknown_fields(), output); |
2965 } | 2897 } |
2966 // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto.Rese
rvedRange) | 2898 // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto.Rese
rvedRange) |
2967 } | 2899 } |
2968 | 2900 |
2969 ::google::protobuf::uint8* DescriptorProto_ReservedRange::InternalSerializeWithC
achedSizesToArray( | 2901 ::google::protobuf::uint8* DescriptorProto_ReservedRange::SerializeWithCachedSiz
esToArray( |
2970 bool deterministic, ::google::protobuf::uint8* target) const { | 2902 ::google::protobuf::uint8* target) const { |
2971 (void)deterministic; // Unused | |
2972 // @@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) |
2973 // optional int32 start = 1; | 2904 // optional int32 start = 1; |
2974 if (has_start()) { | 2905 if (has_start()) { |
2975 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1,
this->start(), target); | 2906 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1,
this->start(), target); |
2976 } | 2907 } |
2977 | 2908 |
2978 // optional int32 end = 2; | 2909 // optional int32 end = 2; |
2979 if (has_end()) { | 2910 if (has_end()) { |
2980 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2,
this->end(), target); | 2911 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2,
this->end(), target); |
2981 } | 2912 } |
2982 | 2913 |
2983 if (_internal_metadata_.have_unknown_fields()) { | 2914 if (_internal_metadata_.have_unknown_fields()) { |
2984 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 2915 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
2985 unknown_fields(), target); | 2916 unknown_fields(), target); |
2986 } | 2917 } |
2987 // @@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) |
2988 return target; | 2919 return target; |
2989 } | 2920 } |
2990 | 2921 |
2991 size_t DescriptorProto_ReservedRange::ByteSizeLong() const { | 2922 int DescriptorProto_ReservedRange::ByteSize() const { |
2992 // @@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) |
2993 size_t total_size = 0; | 2924 int total_size = 0; |
2994 | 2925 |
2995 if (_internal_metadata_.have_unknown_fields()) { | |
2996 total_size += | |
2997 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | |
2998 unknown_fields()); | |
2999 } | |
3000 if (_has_bits_[0 / 32] & 3u) { | 2926 if (_has_bits_[0 / 32] & 3u) { |
3001 // optional int32 start = 1; | 2927 // optional int32 start = 1; |
3002 if (has_start()) { | 2928 if (has_start()) { |
3003 total_size += 1 + | 2929 total_size += 1 + |
3004 ::google::protobuf::internal::WireFormatLite::Int32Size( | 2930 ::google::protobuf::internal::WireFormatLite::Int32Size( |
3005 this->start()); | 2931 this->start()); |
3006 } | 2932 } |
3007 | 2933 |
3008 // optional int32 end = 2; | 2934 // optional int32 end = 2; |
3009 if (has_end()) { | 2935 if (has_end()) { |
3010 total_size += 1 + | 2936 total_size += 1 + |
3011 ::google::protobuf::internal::WireFormatLite::Int32Size( | 2937 ::google::protobuf::internal::WireFormatLite::Int32Size( |
3012 this->end()); | 2938 this->end()); |
3013 } | 2939 } |
3014 | 2940 |
3015 } | 2941 } |
3016 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 } |
3017 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 2947 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3018 _cached_size_ = cached_size; | 2948 _cached_size_ = total_size; |
3019 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 2949 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3020 return total_size; | 2950 return total_size; |
3021 } | 2951 } |
3022 | 2952 |
3023 void DescriptorProto_ReservedRange::MergeFrom(const ::google::protobuf::Message&
from) { | 2953 void DescriptorProto_ReservedRange::MergeFrom(const ::google::protobuf::Message&
from) { |
3024 // @@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) |
3025 GOOGLE_DCHECK_NE(&from, this); | 2955 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
3026 const DescriptorProto_ReservedRange* source = | 2956 const DescriptorProto_ReservedRange* source = |
3027 ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto
_ReservedRange>( | 2957 ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto
_ReservedRange>( |
3028 &from); | 2958 &from); |
3029 if (source == NULL) { | 2959 if (source == NULL) { |
3030 // @@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) |
3031 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 2961 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
3032 } else { | 2962 } else { |
3033 // @@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) |
3034 MergeFrom(*source); | 2964 MergeFrom(*source); |
3035 } | 2965 } |
3036 } | 2966 } |
3037 | 2967 |
3038 void DescriptorProto_ReservedRange::MergeFrom(const DescriptorProto_ReservedRang
e& from) { | 2968 void DescriptorProto_ReservedRange::MergeFrom(const DescriptorProto_ReservedRang
e& from) { |
3039 // @@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) |
3040 GOOGLE_DCHECK_NE(&from, this); | 2970 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
3041 _internal_metadata_.MergeFrom(from._internal_metadata_); | 2971 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
3042 if (from._has_bits_[0 / 32] & 3u) { | |
3043 if (from.has_start()) { | 2972 if (from.has_start()) { |
3044 set_start(from.start()); | 2973 set_start(from.start()); |
3045 } | 2974 } |
3046 if (from.has_end()) { | 2975 if (from.has_end()) { |
3047 set_end(from.end()); | 2976 set_end(from.end()); |
3048 } | 2977 } |
3049 } | 2978 } |
| 2979 if (from._internal_metadata_.have_unknown_fields()) { |
| 2980 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 2981 } |
3050 } | 2982 } |
3051 | 2983 |
3052 void DescriptorProto_ReservedRange::CopyFrom(const ::google::protobuf::Message&
from) { | 2984 void DescriptorProto_ReservedRange::CopyFrom(const ::google::protobuf::Message&
from) { |
3053 // @@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) |
3054 if (&from == this) return; | 2986 if (&from == this) return; |
3055 Clear(); | 2987 Clear(); |
3056 MergeFrom(from); | 2988 MergeFrom(from); |
3057 } | 2989 } |
3058 | 2990 |
3059 void DescriptorProto_ReservedRange::CopyFrom(const DescriptorProto_ReservedRange
& from) { | 2991 void DescriptorProto_ReservedRange::CopyFrom(const DescriptorProto_ReservedRange
& from) { |
3060 // @@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) |
3061 if (&from == this) return; | 2993 if (&from == this) return; |
3062 Clear(); | 2994 Clear(); |
3063 MergeFrom(from); | 2995 MergeFrom(from); |
3064 } | 2996 } |
3065 | 2997 |
3066 bool DescriptorProto_ReservedRange::IsInitialized() const { | 2998 bool DescriptorProto_ReservedRange::IsInitialized() const { |
| 2999 |
3067 return true; | 3000 return true; |
3068 } | 3001 } |
3069 | 3002 |
3070 void DescriptorProto_ReservedRange::Swap(DescriptorProto_ReservedRange* other) { | 3003 void DescriptorProto_ReservedRange::Swap(DescriptorProto_ReservedRange* other) { |
3071 if (other == this) return; | 3004 if (other == this) return; |
3072 InternalSwap(other); | 3005 InternalSwap(other); |
3073 } | 3006 } |
3074 void DescriptorProto_ReservedRange::InternalSwap(DescriptorProto_ReservedRange*
other) { | 3007 void DescriptorProto_ReservedRange::InternalSwap(DescriptorProto_ReservedRange*
other) { |
3075 std::swap(start_, other->start_); | 3008 std::swap(start_, other->start_); |
3076 std::swap(end_, other->end_); | 3009 std::swap(end_, other->end_); |
3077 std::swap(_has_bits_[0], other->_has_bits_[0]); | 3010 std::swap(_has_bits_[0], other->_has_bits_[0]); |
3078 _internal_metadata_.Swap(&other->_internal_metadata_); | 3011 _internal_metadata_.Swap(&other->_internal_metadata_); |
3079 std::swap(_cached_size_, other->_cached_size_); | 3012 std::swap(_cached_size_, other->_cached_size_); |
3080 } | 3013 } |
3081 | 3014 |
3082 ::google::protobuf::Metadata DescriptorProto_ReservedRange::GetMetadata() const
{ | 3015 ::google::protobuf::Metadata DescriptorProto_ReservedRange::GetMetadata() const
{ |
3083 protobuf_AssignDescriptorsOnce(); | 3016 protobuf_AssignDescriptorsOnce(); |
3084 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; |
3085 } | 3021 } |
3086 | 3022 |
3087 #if PROTOBUF_INLINE_NOT_IN_HEADERS | |
3088 // DescriptorProto_ReservedRange | |
3089 | 3023 |
3090 // optional int32 start = 1; | 3024 // ------------------------------------------------------------------- |
3091 bool DescriptorProto_ReservedRange::has_start() const { | |
3092 return (_has_bits_[0] & 0x00000001u) != 0; | |
3093 } | |
3094 void DescriptorProto_ReservedRange::set_has_start() { | |
3095 _has_bits_[0] |= 0x00000001u; | |
3096 } | |
3097 void DescriptorProto_ReservedRange::clear_has_start() { | |
3098 _has_bits_[0] &= ~0x00000001u; | |
3099 } | |
3100 void DescriptorProto_ReservedRange::clear_start() { | |
3101 start_ = 0; | |
3102 clear_has_start(); | |
3103 } | |
3104 ::google::protobuf::int32 DescriptorProto_ReservedRange::start() const { | |
3105 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.Reserved
Range.start) | |
3106 return start_; | |
3107 } | |
3108 void DescriptorProto_ReservedRange::set_start(::google::protobuf::int32 value) { | |
3109 set_has_start(); | |
3110 start_ = value; | |
3111 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.Reserved
Range.start) | |
3112 } | |
3113 | |
3114 // optional int32 end = 2; | |
3115 bool DescriptorProto_ReservedRange::has_end() const { | |
3116 return (_has_bits_[0] & 0x00000002u) != 0; | |
3117 } | |
3118 void DescriptorProto_ReservedRange::set_has_end() { | |
3119 _has_bits_[0] |= 0x00000002u; | |
3120 } | |
3121 void DescriptorProto_ReservedRange::clear_has_end() { | |
3122 _has_bits_[0] &= ~0x00000002u; | |
3123 } | |
3124 void DescriptorProto_ReservedRange::clear_end() { | |
3125 end_ = 0; | |
3126 clear_has_end(); | |
3127 } | |
3128 ::google::protobuf::int32 DescriptorProto_ReservedRange::end() const { | |
3129 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.Reserved
Range.end) | |
3130 return end_; | |
3131 } | |
3132 void DescriptorProto_ReservedRange::set_end(::google::protobuf::int32 value) { | |
3133 set_has_end(); | |
3134 end_ = value; | |
3135 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.Reserved
Range.end) | |
3136 } | |
3137 | |
3138 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | |
3139 | |
3140 // =================================================================== | |
3141 | 3025 |
3142 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 3026 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
3143 const int DescriptorProto::kNameFieldNumber; | 3027 const int DescriptorProto::kNameFieldNumber; |
3144 const int DescriptorProto::kFieldFieldNumber; | 3028 const int DescriptorProto::kFieldFieldNumber; |
3145 const int DescriptorProto::kExtensionFieldNumber; | 3029 const int DescriptorProto::kExtensionFieldNumber; |
3146 const int DescriptorProto::kNestedTypeFieldNumber; | 3030 const int DescriptorProto::kNestedTypeFieldNumber; |
3147 const int DescriptorProto::kEnumTypeFieldNumber; | 3031 const int DescriptorProto::kEnumTypeFieldNumber; |
3148 const int DescriptorProto::kExtensionRangeFieldNumber; | 3032 const int DescriptorProto::kExtensionRangeFieldNumber; |
3149 const int DescriptorProto::kOneofDeclFieldNumber; | 3033 const int DescriptorProto::kOneofDeclFieldNumber; |
3150 const int DescriptorProto::kOptionsFieldNumber; | 3034 const int DescriptorProto::kOptionsFieldNumber; |
3151 const int DescriptorProto::kReservedRangeFieldNumber; | 3035 const int DescriptorProto::kReservedRangeFieldNumber; |
3152 const int DescriptorProto::kReservedNameFieldNumber; | 3036 const int DescriptorProto::kReservedNameFieldNumber; |
3153 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 3037 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
3154 | 3038 |
3155 DescriptorProto::DescriptorProto() | 3039 DescriptorProto::DescriptorProto() |
3156 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 3040 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
3157 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
3158 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
3159 } | |
3160 SharedCtor(); | 3041 SharedCtor(); |
3161 // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto) | 3042 // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto) |
3162 } | 3043 } |
| 3044 |
| 3045 void DescriptorProto::InitAsDefaultInstance() { |
| 3046 options_ = const_cast< ::google::protobuf::MessageOptions*>(&::google::protobu
f::MessageOptions::default_instance()); |
| 3047 } |
| 3048 |
3163 DescriptorProto::DescriptorProto(const DescriptorProto& from) | 3049 DescriptorProto::DescriptorProto(const DescriptorProto& from) |
3164 : ::google::protobuf::Message(), | 3050 : ::google::protobuf::Message(), |
3165 _internal_metadata_(NULL), | 3051 _internal_metadata_(NULL) { |
3166 _has_bits_(from._has_bits_), | 3052 SharedCtor(); |
3167 _cached_size_(0), | 3053 MergeFrom(from); |
3168 field_(from.field_), | |
3169 extension_(from.extension_), | |
3170 nested_type_(from.nested_type_), | |
3171 enum_type_(from.enum_type_), | |
3172 extension_range_(from.extension_range_), | |
3173 oneof_decl_(from.oneof_decl_), | |
3174 reserved_range_(from.reserved_range_), | |
3175 reserved_name_(from.reserved_name_) { | |
3176 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
3177 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); | |
3178 if (from.has_name()) { | |
3179 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), from.name_); | |
3180 } | |
3181 if (from.has_options()) { | |
3182 options_ = new ::google::protobuf::MessageOptions(*from.options_); | |
3183 } else { | |
3184 options_ = NULL; | |
3185 } | |
3186 // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto) | 3054 // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto) |
3187 } | 3055 } |
3188 | 3056 |
3189 void DescriptorProto::SharedCtor() { | 3057 void DescriptorProto::SharedCtor() { |
| 3058 ::google::protobuf::internal::GetEmptyString(); |
3190 _cached_size_ = 0; | 3059 _cached_size_ = 0; |
3191 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); | 3060 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); |
3192 options_ = NULL; | 3061 options_ = NULL; |
| 3062 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
3193 } | 3063 } |
3194 | 3064 |
3195 DescriptorProto::~DescriptorProto() { | 3065 DescriptorProto::~DescriptorProto() { |
3196 // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto) | 3066 // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto) |
3197 SharedDtor(); | 3067 SharedDtor(); |
3198 } | 3068 } |
3199 | 3069 |
3200 void DescriptorProto::SharedDtor() { | 3070 void DescriptorProto::SharedDtor() { |
3201 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d()); | 3071 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d()); |
3202 if (this != internal_default_instance()) { | 3072 if (this != default_instance_) { |
3203 delete options_; | 3073 delete options_; |
3204 } | 3074 } |
3205 } | 3075 } |
3206 | 3076 |
3207 void DescriptorProto::SetCachedSize(int size) const { | 3077 void DescriptorProto::SetCachedSize(int size) const { |
3208 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 3078 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3209 _cached_size_ = size; | 3079 _cached_size_ = size; |
3210 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 3080 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3211 } | 3081 } |
3212 const ::google::protobuf::Descriptor* DescriptorProto::descriptor() { | 3082 const ::google::protobuf::Descriptor* DescriptorProto::descriptor() { |
3213 protobuf_AssignDescriptorsOnce(); | 3083 protobuf_AssignDescriptorsOnce(); |
3214 return file_level_metadata[4].descriptor; | 3084 return DescriptorProto_descriptor_; |
3215 } | 3085 } |
3216 | 3086 |
3217 const DescriptorProto& DescriptorProto::default_instance() { | 3087 const DescriptorProto& DescriptorProto::default_instance() { |
3218 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 3088 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
3219 return *internal_default_instance(); | 3089 return *default_instance_; |
3220 } | 3090 } |
3221 | 3091 |
| 3092 DescriptorProto* DescriptorProto::default_instance_ = NULL; |
| 3093 |
3222 DescriptorProto* DescriptorProto::New(::google::protobuf::Arena* arena) const { | 3094 DescriptorProto* DescriptorProto::New(::google::protobuf::Arena* arena) const { |
3223 DescriptorProto* n = new DescriptorProto; | 3095 DescriptorProto* n = new DescriptorProto; |
3224 if (arena != NULL) { | 3096 if (arena != NULL) { |
3225 arena->Own(n); | 3097 arena->Own(n); |
3226 } | 3098 } |
3227 return n; | 3099 return n; |
3228 } | 3100 } |
3229 | 3101 |
3230 void DescriptorProto::Clear() { | 3102 void DescriptorProto::Clear() { |
3231 // @@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 } |
3232 field_.Clear(); | 3112 field_.Clear(); |
3233 extension_.Clear(); | 3113 extension_.Clear(); |
3234 nested_type_.Clear(); | 3114 nested_type_.Clear(); |
3235 enum_type_.Clear(); | 3115 enum_type_.Clear(); |
3236 extension_range_.Clear(); | 3116 extension_range_.Clear(); |
3237 oneof_decl_.Clear(); | 3117 oneof_decl_.Clear(); |
3238 reserved_range_.Clear(); | 3118 reserved_range_.Clear(); |
3239 reserved_name_.Clear(); | 3119 reserved_name_.Clear(); |
3240 if (_has_bits_[0 / 32] & 3u) { | 3120 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
3241 if (has_name()) { | 3121 if (_internal_metadata_.have_unknown_fields()) { |
3242 GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited())); | 3122 mutable_unknown_fields()->Clear(); |
3243 (*name_.UnsafeRawStringPointer())->clear(); | |
3244 } | |
3245 if (has_options()) { | |
3246 GOOGLE_DCHECK(options_ != NULL); | |
3247 options_->::google::protobuf::MessageOptions::Clear(); | |
3248 } | |
3249 } | 3123 } |
3250 _has_bits_.Clear(); | |
3251 _internal_metadata_.Clear(); | |
3252 } | 3124 } |
3253 | 3125 |
3254 bool DescriptorProto::MergePartialFromCodedStream( | 3126 bool DescriptorProto::MergePartialFromCodedStream( |
3255 ::google::protobuf::io::CodedInputStream* input) { | 3127 ::google::protobuf::io::CodedInputStream* input) { |
3256 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 3128 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
3257 ::google::protobuf::uint32 tag; | 3129 ::google::protobuf::uint32 tag; |
3258 // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto) | 3130 // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto) |
3259 for (;;) { | 3131 for (;;) { |
3260 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 3132 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
3261 tag = p.first; | 3133 tag = p.first; |
3262 if (!p.second) goto handle_unusual; | 3134 if (!p.second) goto handle_unusual; |
3263 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 3135 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
3264 // optional string name = 1; | 3136 // optional string name = 1; |
3265 case 1: { | 3137 case 1: { |
3266 if (tag == 10u) { | 3138 if (tag == 10) { |
3267 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 3139 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
3268 input, this->mutable_name())); | 3140 input, this->mutable_name())); |
3269 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 3141 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
3270 this->name().data(), this->name().length(), | 3142 this->name().data(), this->name().length(), |
3271 ::google::protobuf::internal::WireFormat::PARSE, | 3143 ::google::protobuf::internal::WireFormat::PARSE, |
3272 "google.protobuf.DescriptorProto.name"); | 3144 "google.protobuf.DescriptorProto.name"); |
3273 } else { | 3145 } else { |
3274 goto handle_unusual; | 3146 goto handle_unusual; |
3275 } | 3147 } |
| 3148 if (input->ExpectTag(18)) goto parse_field; |
3276 break; | 3149 break; |
3277 } | 3150 } |
3278 | 3151 |
3279 // repeated .google.protobuf.FieldDescriptorProto field = 2; | 3152 // repeated .google.protobuf.FieldDescriptorProto field = 2; |
3280 case 2: { | 3153 case 2: { |
3281 if (tag == 18u) { | 3154 if (tag == 18) { |
| 3155 parse_field: |
3282 DO_(input->IncrementRecursionDepth()); | 3156 DO_(input->IncrementRecursionDepth()); |
| 3157 parse_loop_field: |
3283 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 3158 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
3284 input, add_field())); | 3159 input, add_field())); |
3285 } else { | 3160 } else { |
3286 goto handle_unusual; | 3161 goto handle_unusual; |
3287 } | 3162 } |
| 3163 if (input->ExpectTag(18)) goto parse_loop_field; |
| 3164 if (input->ExpectTag(26)) goto parse_loop_nested_type; |
3288 input->UnsafeDecrementRecursionDepth(); | 3165 input->UnsafeDecrementRecursionDepth(); |
3289 break; | 3166 break; |
3290 } | 3167 } |
3291 | 3168 |
3292 // repeated .google.protobuf.DescriptorProto nested_type = 3; | 3169 // repeated .google.protobuf.DescriptorProto nested_type = 3; |
3293 case 3: { | 3170 case 3: { |
3294 if (tag == 26u) { | 3171 if (tag == 26) { |
3295 DO_(input->IncrementRecursionDepth()); | 3172 DO_(input->IncrementRecursionDepth()); |
| 3173 parse_loop_nested_type: |
3296 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 3174 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
3297 input, add_nested_type())); | 3175 input, add_nested_type())); |
3298 } else { | 3176 } else { |
3299 goto handle_unusual; | 3177 goto handle_unusual; |
3300 } | 3178 } |
| 3179 if (input->ExpectTag(26)) goto parse_loop_nested_type; |
| 3180 if (input->ExpectTag(34)) goto parse_loop_enum_type; |
3301 input->UnsafeDecrementRecursionDepth(); | 3181 input->UnsafeDecrementRecursionDepth(); |
3302 break; | 3182 break; |
3303 } | 3183 } |
3304 | 3184 |
3305 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; | 3185 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; |
3306 case 4: { | 3186 case 4: { |
3307 if (tag == 34u) { | 3187 if (tag == 34) { |
3308 DO_(input->IncrementRecursionDepth()); | 3188 DO_(input->IncrementRecursionDepth()); |
| 3189 parse_loop_enum_type: |
3309 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 3190 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
3310 input, add_enum_type())); | 3191 input, add_enum_type())); |
3311 } else { | 3192 } else { |
3312 goto handle_unusual; | 3193 goto handle_unusual; |
3313 } | 3194 } |
| 3195 if (input->ExpectTag(34)) goto parse_loop_enum_type; |
| 3196 if (input->ExpectTag(42)) goto parse_loop_extension_range; |
3314 input->UnsafeDecrementRecursionDepth(); | 3197 input->UnsafeDecrementRecursionDepth(); |
3315 break; | 3198 break; |
3316 } | 3199 } |
3317 | 3200 |
3318 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_rang
e = 5; | 3201 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_rang
e = 5; |
3319 case 5: { | 3202 case 5: { |
3320 if (tag == 42u) { | 3203 if (tag == 42) { |
3321 DO_(input->IncrementRecursionDepth()); | 3204 DO_(input->IncrementRecursionDepth()); |
| 3205 parse_loop_extension_range: |
3322 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 3206 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
3323 input, add_extension_range())); | 3207 input, add_extension_range())); |
3324 } else { | 3208 } else { |
3325 goto handle_unusual; | 3209 goto handle_unusual; |
3326 } | 3210 } |
| 3211 if (input->ExpectTag(42)) goto parse_loop_extension_range; |
| 3212 if (input->ExpectTag(50)) goto parse_loop_extension; |
3327 input->UnsafeDecrementRecursionDepth(); | 3213 input->UnsafeDecrementRecursionDepth(); |
3328 break; | 3214 break; |
3329 } | 3215 } |
3330 | 3216 |
3331 // repeated .google.protobuf.FieldDescriptorProto extension = 6; | 3217 // repeated .google.protobuf.FieldDescriptorProto extension = 6; |
3332 case 6: { | 3218 case 6: { |
3333 if (tag == 50u) { | 3219 if (tag == 50) { |
3334 DO_(input->IncrementRecursionDepth()); | 3220 DO_(input->IncrementRecursionDepth()); |
| 3221 parse_loop_extension: |
3335 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 3222 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
3336 input, add_extension())); | 3223 input, add_extension())); |
3337 } else { | 3224 } else { |
3338 goto handle_unusual; | 3225 goto handle_unusual; |
3339 } | 3226 } |
| 3227 if (input->ExpectTag(50)) goto parse_loop_extension; |
3340 input->UnsafeDecrementRecursionDepth(); | 3228 input->UnsafeDecrementRecursionDepth(); |
| 3229 if (input->ExpectTag(58)) goto parse_options; |
3341 break; | 3230 break; |
3342 } | 3231 } |
3343 | 3232 |
3344 // optional .google.protobuf.MessageOptions options = 7; | 3233 // optional .google.protobuf.MessageOptions options = 7; |
3345 case 7: { | 3234 case 7: { |
3346 if (tag == 58u) { | 3235 if (tag == 58) { |
| 3236 parse_options: |
3347 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 3237 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
3348 input, mutable_options())); | 3238 input, mutable_options())); |
3349 } else { | 3239 } else { |
3350 goto handle_unusual; | 3240 goto handle_unusual; |
3351 } | 3241 } |
| 3242 if (input->ExpectTag(66)) goto parse_oneof_decl; |
3352 break; | 3243 break; |
3353 } | 3244 } |
3354 | 3245 |
3355 // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; | 3246 // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; |
3356 case 8: { | 3247 case 8: { |
3357 if (tag == 66u) { | 3248 if (tag == 66) { |
| 3249 parse_oneof_decl: |
3358 DO_(input->IncrementRecursionDepth()); | 3250 DO_(input->IncrementRecursionDepth()); |
| 3251 parse_loop_oneof_decl: |
3359 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 3252 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
3360 input, add_oneof_decl())); | 3253 input, add_oneof_decl())); |
3361 } else { | 3254 } else { |
3362 goto handle_unusual; | 3255 goto handle_unusual; |
3363 } | 3256 } |
| 3257 if (input->ExpectTag(66)) goto parse_loop_oneof_decl; |
| 3258 if (input->ExpectTag(74)) goto parse_loop_reserved_range; |
3364 input->UnsafeDecrementRecursionDepth(); | 3259 input->UnsafeDecrementRecursionDepth(); |
3365 break; | 3260 break; |
3366 } | 3261 } |
3367 | 3262 |
3368 // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range
= 9; | 3263 // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range
= 9; |
3369 case 9: { | 3264 case 9: { |
3370 if (tag == 74u) { | 3265 if (tag == 74) { |
3371 DO_(input->IncrementRecursionDepth()); | 3266 DO_(input->IncrementRecursionDepth()); |
| 3267 parse_loop_reserved_range: |
3372 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 3268 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
3373 input, add_reserved_range())); | 3269 input, add_reserved_range())); |
3374 } else { | 3270 } else { |
3375 goto handle_unusual; | 3271 goto handle_unusual; |
3376 } | 3272 } |
| 3273 if (input->ExpectTag(74)) goto parse_loop_reserved_range; |
3377 input->UnsafeDecrementRecursionDepth(); | 3274 input->UnsafeDecrementRecursionDepth(); |
| 3275 if (input->ExpectTag(82)) goto parse_reserved_name; |
3378 break; | 3276 break; |
3379 } | 3277 } |
3380 | 3278 |
3381 // repeated string reserved_name = 10; | 3279 // repeated string reserved_name = 10; |
3382 case 10: { | 3280 case 10: { |
3383 if (tag == 82u) { | 3281 if (tag == 82) { |
| 3282 parse_reserved_name: |
3384 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 3283 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
3385 input, this->add_reserved_name())); | 3284 input, this->add_reserved_name())); |
3386 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 3285 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
3387 this->reserved_name(this->reserved_name_size() - 1).data(), | 3286 this->reserved_name(this->reserved_name_size() - 1).data(), |
3388 this->reserved_name(this->reserved_name_size() - 1).length(), | 3287 this->reserved_name(this->reserved_name_size() - 1).length(), |
3389 ::google::protobuf::internal::WireFormat::PARSE, | 3288 ::google::protobuf::internal::WireFormat::PARSE, |
3390 "google.protobuf.DescriptorProto.reserved_name"); | 3289 "google.protobuf.DescriptorProto.reserved_name"); |
3391 } else { | 3290 } else { |
3392 goto handle_unusual; | 3291 goto handle_unusual; |
3393 } | 3292 } |
| 3293 if (input->ExpectTag(82)) goto parse_reserved_name; |
| 3294 if (input->ExpectAtEnd()) goto success; |
3394 break; | 3295 break; |
3395 } | 3296 } |
3396 | 3297 |
3397 default: { | 3298 default: { |
3398 handle_unusual: | 3299 handle_unusual: |
3399 if (tag == 0 || | 3300 if (tag == 0 || |
3400 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 3301 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
3401 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 3302 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
3402 goto success; | 3303 goto success; |
3403 } | 3304 } |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3487 10, this->reserved_name(i), output); | 3388 10, this->reserved_name(i), output); |
3488 } | 3389 } |
3489 | 3390 |
3490 if (_internal_metadata_.have_unknown_fields()) { | 3391 if (_internal_metadata_.have_unknown_fields()) { |
3491 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 3392 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
3492 unknown_fields(), output); | 3393 unknown_fields(), output); |
3493 } | 3394 } |
3494 // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto) | 3395 // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto) |
3495 } | 3396 } |
3496 | 3397 |
3497 ::google::protobuf::uint8* DescriptorProto::InternalSerializeWithCachedSizesToAr
ray( | 3398 ::google::protobuf::uint8* DescriptorProto::SerializeWithCachedSizesToArray( |
3498 bool deterministic, ::google::protobuf::uint8* target) const { | 3399 ::google::protobuf::uint8* target) const { |
3499 (void)deterministic; // Unused | |
3500 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Descripto
rProto) | 3400 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Descripto
rProto) |
3501 // optional string name = 1; | 3401 // optional string name = 1; |
3502 if (has_name()) { | 3402 if (has_name()) { |
3503 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 3403 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
3504 this->name().data(), this->name().length(), | 3404 this->name().data(), this->name().length(), |
3505 ::google::protobuf::internal::WireFormat::SERIALIZE, | 3405 ::google::protobuf::internal::WireFormat::SERIALIZE, |
3506 "google.protobuf.DescriptorProto.name"); | 3406 "google.protobuf.DescriptorProto.name"); |
3507 target = | 3407 target = |
3508 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 3408 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
3509 1, this->name(), target); | 3409 1, this->name(), target); |
3510 } | 3410 } |
3511 | 3411 |
3512 // repeated .google.protobuf.FieldDescriptorProto field = 2; | 3412 // repeated .google.protobuf.FieldDescriptorProto field = 2; |
3513 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++) { |
3514 target = ::google::protobuf::internal::WireFormatLite:: | 3414 target = ::google::protobuf::internal::WireFormatLite:: |
3515 InternalWriteMessageNoVirtualToArray( | 3415 WriteMessageNoVirtualToArray( |
3516 2, this->field(i), false, target); | 3416 2, this->field(i), target); |
3517 } | 3417 } |
3518 | 3418 |
3519 // repeated .google.protobuf.DescriptorProto nested_type = 3; | 3419 // repeated .google.protobuf.DescriptorProto nested_type = 3; |
3520 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++) { |
3521 target = ::google::protobuf::internal::WireFormatLite:: | 3421 target = ::google::protobuf::internal::WireFormatLite:: |
3522 InternalWriteMessageNoVirtualToArray( | 3422 WriteMessageNoVirtualToArray( |
3523 3, this->nested_type(i), false, target); | 3423 3, this->nested_type(i), target); |
3524 } | 3424 } |
3525 | 3425 |
3526 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; | 3426 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; |
3527 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++) { |
3528 target = ::google::protobuf::internal::WireFormatLite:: | 3428 target = ::google::protobuf::internal::WireFormatLite:: |
3529 InternalWriteMessageNoVirtualToArray( | 3429 WriteMessageNoVirtualToArray( |
3530 4, this->enum_type(i), false, target); | 3430 4, this->enum_type(i), target); |
3531 } | 3431 } |
3532 | 3432 |
3533 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range =
5; | 3433 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range =
5; |
3534 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++) { |
3535 target = ::google::protobuf::internal::WireFormatLite:: | 3435 target = ::google::protobuf::internal::WireFormatLite:: |
3536 InternalWriteMessageNoVirtualToArray( | 3436 WriteMessageNoVirtualToArray( |
3537 5, this->extension_range(i), false, target); | 3437 5, this->extension_range(i), target); |
3538 } | 3438 } |
3539 | 3439 |
3540 // repeated .google.protobuf.FieldDescriptorProto extension = 6; | 3440 // repeated .google.protobuf.FieldDescriptorProto extension = 6; |
3541 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++) { |
3542 target = ::google::protobuf::internal::WireFormatLite:: | 3442 target = ::google::protobuf::internal::WireFormatLite:: |
3543 InternalWriteMessageNoVirtualToArray( | 3443 WriteMessageNoVirtualToArray( |
3544 6, this->extension(i), false, target); | 3444 6, this->extension(i), target); |
3545 } | 3445 } |
3546 | 3446 |
3547 // optional .google.protobuf.MessageOptions options = 7; | 3447 // optional .google.protobuf.MessageOptions options = 7; |
3548 if (has_options()) { | 3448 if (has_options()) { |
3549 target = ::google::protobuf::internal::WireFormatLite:: | 3449 target = ::google::protobuf::internal::WireFormatLite:: |
3550 InternalWriteMessageNoVirtualToArray( | 3450 WriteMessageNoVirtualToArray( |
3551 7, *this->options_, false, target); | 3451 7, *this->options_, target); |
3552 } | 3452 } |
3553 | 3453 |
3554 // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; | 3454 // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; |
3555 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++) { |
3556 target = ::google::protobuf::internal::WireFormatLite:: | 3456 target = ::google::protobuf::internal::WireFormatLite:: |
3557 InternalWriteMessageNoVirtualToArray( | 3457 WriteMessageNoVirtualToArray( |
3558 8, this->oneof_decl(i), false, target); | 3458 8, this->oneof_decl(i), target); |
3559 } | 3459 } |
3560 | 3460 |
3561 // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; | 3461 // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; |
3562 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++) { |
3563 target = ::google::protobuf::internal::WireFormatLite:: | 3463 target = ::google::protobuf::internal::WireFormatLite:: |
3564 InternalWriteMessageNoVirtualToArray( | 3464 WriteMessageNoVirtualToArray( |
3565 9, this->reserved_range(i), false, target); | 3465 9, this->reserved_range(i), target); |
3566 } | 3466 } |
3567 | 3467 |
3568 // repeated string reserved_name = 10; | 3468 // repeated string reserved_name = 10; |
3569 for (int i = 0; i < this->reserved_name_size(); i++) { | 3469 for (int i = 0; i < this->reserved_name_size(); i++) { |
3570 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 3470 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
3571 this->reserved_name(i).data(), this->reserved_name(i).length(), | 3471 this->reserved_name(i).data(), this->reserved_name(i).length(), |
3572 ::google::protobuf::internal::WireFormat::SERIALIZE, | 3472 ::google::protobuf::internal::WireFormat::SERIALIZE, |
3573 "google.protobuf.DescriptorProto.reserved_name"); | 3473 "google.protobuf.DescriptorProto.reserved_name"); |
3574 target = ::google::protobuf::internal::WireFormatLite:: | 3474 target = ::google::protobuf::internal::WireFormatLite:: |
3575 WriteStringToArray(10, this->reserved_name(i), target); | 3475 WriteStringToArray(10, this->reserved_name(i), target); |
3576 } | 3476 } |
3577 | 3477 |
3578 if (_internal_metadata_.have_unknown_fields()) { | 3478 if (_internal_metadata_.have_unknown_fields()) { |
3579 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 3479 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
3580 unknown_fields(), target); | 3480 unknown_fields(), target); |
3581 } | 3481 } |
3582 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorP
roto) | 3482 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorP
roto) |
3583 return target; | 3483 return target; |
3584 } | 3484 } |
3585 | 3485 |
3586 size_t DescriptorProto::ByteSizeLong() const { | 3486 int DescriptorProto::ByteSize() const { |
3587 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DescriptorPr
oto) | 3487 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DescriptorPr
oto) |
3588 size_t total_size = 0; | 3488 int total_size = 0; |
3589 | 3489 |
3590 if (_internal_metadata_.have_unknown_fields()) { | 3490 if (_has_bits_[0 / 32] & 129u) { |
3591 total_size += | |
3592 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | |
3593 unknown_fields()); | |
3594 } | |
3595 // repeated .google.protobuf.FieldDescriptorProto field = 2; | |
3596 { | |
3597 unsigned int count = this->field_size(); | |
3598 total_size += 1UL * count; | |
3599 for (unsigned int i = 0; i < count; i++) { | |
3600 total_size += | |
3601 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
3602 this->field(i)); | |
3603 } | |
3604 } | |
3605 | |
3606 // repeated .google.protobuf.FieldDescriptorProto extension = 6; | |
3607 { | |
3608 unsigned int count = this->extension_size(); | |
3609 total_size += 1UL * count; | |
3610 for (unsigned int i = 0; i < count; i++) { | |
3611 total_size += | |
3612 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
3613 this->extension(i)); | |
3614 } | |
3615 } | |
3616 | |
3617 // repeated .google.protobuf.DescriptorProto nested_type = 3; | |
3618 { | |
3619 unsigned int count = this->nested_type_size(); | |
3620 total_size += 1UL * count; | |
3621 for (unsigned int i = 0; i < count; i++) { | |
3622 total_size += | |
3623 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
3624 this->nested_type(i)); | |
3625 } | |
3626 } | |
3627 | |
3628 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; | |
3629 { | |
3630 unsigned int count = this->enum_type_size(); | |
3631 total_size += 1UL * count; | |
3632 for (unsigned int i = 0; i < count; i++) { | |
3633 total_size += | |
3634 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
3635 this->enum_type(i)); | |
3636 } | |
3637 } | |
3638 | |
3639 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range =
5; | |
3640 { | |
3641 unsigned int count = this->extension_range_size(); | |
3642 total_size += 1UL * count; | |
3643 for (unsigned int i = 0; i < count; i++) { | |
3644 total_size += | |
3645 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
3646 this->extension_range(i)); | |
3647 } | |
3648 } | |
3649 | |
3650 // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; | |
3651 { | |
3652 unsigned int count = this->oneof_decl_size(); | |
3653 total_size += 1UL * count; | |
3654 for (unsigned int i = 0; i < count; i++) { | |
3655 total_size += | |
3656 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
3657 this->oneof_decl(i)); | |
3658 } | |
3659 } | |
3660 | |
3661 // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; | |
3662 { | |
3663 unsigned int count = this->reserved_range_size(); | |
3664 total_size += 1UL * count; | |
3665 for (unsigned int i = 0; i < count; i++) { | |
3666 total_size += | |
3667 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
3668 this->reserved_range(i)); | |
3669 } | |
3670 } | |
3671 | |
3672 // repeated string reserved_name = 10; | |
3673 total_size += 1 * | |
3674 ::google::protobuf::internal::FromIntSize(this->reserved_name_size()); | |
3675 for (int i = 0; i < this->reserved_name_size(); i++) { | |
3676 total_size += ::google::protobuf::internal::WireFormatLite::StringSize( | |
3677 this->reserved_name(i)); | |
3678 } | |
3679 | |
3680 if (_has_bits_[0 / 32] & 3u) { | |
3681 // optional string name = 1; | 3491 // optional string name = 1; |
3682 if (has_name()) { | 3492 if (has_name()) { |
3683 total_size += 1 + | 3493 total_size += 1 + |
3684 ::google::protobuf::internal::WireFormatLite::StringSize( | 3494 ::google::protobuf::internal::WireFormatLite::StringSize( |
3685 this->name()); | 3495 this->name()); |
3686 } | 3496 } |
3687 | 3497 |
3688 // optional .google.protobuf.MessageOptions options = 7; | 3498 // optional .google.protobuf.MessageOptions options = 7; |
3689 if (has_options()) { | 3499 if (has_options()) { |
3690 total_size += 1 + | 3500 total_size += 1 + |
3691 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | 3501 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
3692 *this->options_); | 3502 *this->options_); |
3693 } | 3503 } |
3694 | 3504 |
3695 } | 3505 } |
3696 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 } |
3697 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 3574 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3698 _cached_size_ = cached_size; | 3575 _cached_size_ = total_size; |
3699 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 3576 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3700 return total_size; | 3577 return total_size; |
3701 } | 3578 } |
3702 | 3579 |
3703 void DescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { | 3580 void DescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
3704 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Descrip
torProto) | 3581 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Descrip
torProto) |
3705 GOOGLE_DCHECK_NE(&from, this); | 3582 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
3706 const DescriptorProto* source = | 3583 const DescriptorProto* source = |
3707 ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto
>( | 3584 ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto
>( |
3708 &from); | 3585 &from); |
3709 if (source == NULL) { | 3586 if (source == NULL) { |
3710 // @@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) |
3711 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 3588 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
3712 } else { | 3589 } else { |
3713 // @@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) |
3714 MergeFrom(*source); | 3591 MergeFrom(*source); |
3715 } | 3592 } |
3716 } | 3593 } |
3717 | 3594 |
3718 void DescriptorProto::MergeFrom(const DescriptorProto& from) { | 3595 void DescriptorProto::MergeFrom(const DescriptorProto& from) { |
3719 // @@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) |
3720 GOOGLE_DCHECK_NE(&from, this); | 3597 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
3721 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
3722 field_.MergeFrom(from.field_); | 3598 field_.MergeFrom(from.field_); |
3723 extension_.MergeFrom(from.extension_); | 3599 extension_.MergeFrom(from.extension_); |
3724 nested_type_.MergeFrom(from.nested_type_); | 3600 nested_type_.MergeFrom(from.nested_type_); |
3725 enum_type_.MergeFrom(from.enum_type_); | 3601 enum_type_.MergeFrom(from.enum_type_); |
3726 extension_range_.MergeFrom(from.extension_range_); | 3602 extension_range_.MergeFrom(from.extension_range_); |
3727 oneof_decl_.MergeFrom(from.oneof_decl_); | 3603 oneof_decl_.MergeFrom(from.oneof_decl_); |
3728 reserved_range_.MergeFrom(from.reserved_range_); | 3604 reserved_range_.MergeFrom(from.reserved_range_); |
3729 reserved_name_.MergeFrom(from.reserved_name_); | 3605 reserved_name_.MergeFrom(from.reserved_name_); |
3730 if (from._has_bits_[0 / 32] & 3u) { | 3606 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
3731 if (from.has_name()) { | 3607 if (from.has_name()) { |
3732 set_has_name(); | 3608 set_has_name(); |
3733 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), from.name_); | 3609 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), from.name_); |
3734 } | 3610 } |
3735 if (from.has_options()) { | 3611 if (from.has_options()) { |
3736 mutable_options()->::google::protobuf::MessageOptions::MergeFrom(from.opti
ons()); | 3612 mutable_options()->::google::protobuf::MessageOptions::MergeFrom(from.opti
ons()); |
3737 } | 3613 } |
3738 } | 3614 } |
| 3615 if (from._internal_metadata_.have_unknown_fields()) { |
| 3616 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 3617 } |
3739 } | 3618 } |
3740 | 3619 |
3741 void DescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { | 3620 void DescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { |
3742 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Descript
orProto) | 3621 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Descript
orProto) |
3743 if (&from == this) return; | 3622 if (&from == this) return; |
3744 Clear(); | 3623 Clear(); |
3745 MergeFrom(from); | 3624 MergeFrom(from); |
3746 } | 3625 } |
3747 | 3626 |
3748 void DescriptorProto::CopyFrom(const DescriptorProto& from) { | 3627 void DescriptorProto::CopyFrom(const DescriptorProto& from) { |
3749 // @@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) |
3750 if (&from == this) return; | 3629 if (&from == this) return; |
3751 Clear(); | 3630 Clear(); |
3752 MergeFrom(from); | 3631 MergeFrom(from); |
3753 } | 3632 } |
3754 | 3633 |
3755 bool DescriptorProto::IsInitialized() const { | 3634 bool DescriptorProto::IsInitialized() const { |
| 3635 |
3756 if (!::google::protobuf::internal::AllAreInitialized(this->field())) return fa
lse; | 3636 if (!::google::protobuf::internal::AllAreInitialized(this->field())) return fa
lse; |
3757 if (!::google::protobuf::internal::AllAreInitialized(this->extension())) retur
n false; | 3637 if (!::google::protobuf::internal::AllAreInitialized(this->extension())) retur
n false; |
3758 if (!::google::protobuf::internal::AllAreInitialized(this->nested_type())) ret
urn false; | 3638 if (!::google::protobuf::internal::AllAreInitialized(this->nested_type())) ret
urn false; |
3759 if (!::google::protobuf::internal::AllAreInitialized(this->enum_type())) retur
n false; | 3639 if (!::google::protobuf::internal::AllAreInitialized(this->enum_type())) retur
n false; |
3760 if (!::google::protobuf::internal::AllAreInitialized(this->oneof_decl())) retu
rn false; | |
3761 if (has_options()) { | 3640 if (has_options()) { |
3762 if (!this->options_->IsInitialized()) return false; | 3641 if (!this->options_->IsInitialized()) return false; |
3763 } | 3642 } |
3764 return true; | 3643 return true; |
3765 } | 3644 } |
3766 | 3645 |
3767 void DescriptorProto::Swap(DescriptorProto* other) { | 3646 void DescriptorProto::Swap(DescriptorProto* other) { |
3768 if (other == this) return; | 3647 if (other == this) return; |
3769 InternalSwap(other); | 3648 InternalSwap(other); |
3770 } | 3649 } |
3771 void DescriptorProto::InternalSwap(DescriptorProto* other) { | 3650 void DescriptorProto::InternalSwap(DescriptorProto* other) { |
| 3651 name_.Swap(&other->name_); |
3772 field_.UnsafeArenaSwap(&other->field_); | 3652 field_.UnsafeArenaSwap(&other->field_); |
3773 extension_.UnsafeArenaSwap(&other->extension_); | 3653 extension_.UnsafeArenaSwap(&other->extension_); |
3774 nested_type_.UnsafeArenaSwap(&other->nested_type_); | 3654 nested_type_.UnsafeArenaSwap(&other->nested_type_); |
3775 enum_type_.UnsafeArenaSwap(&other->enum_type_); | 3655 enum_type_.UnsafeArenaSwap(&other->enum_type_); |
3776 extension_range_.UnsafeArenaSwap(&other->extension_range_); | 3656 extension_range_.UnsafeArenaSwap(&other->extension_range_); |
3777 oneof_decl_.UnsafeArenaSwap(&other->oneof_decl_); | 3657 oneof_decl_.UnsafeArenaSwap(&other->oneof_decl_); |
| 3658 std::swap(options_, other->options_); |
3778 reserved_range_.UnsafeArenaSwap(&other->reserved_range_); | 3659 reserved_range_.UnsafeArenaSwap(&other->reserved_range_); |
3779 reserved_name_.UnsafeArenaSwap(&other->reserved_name_); | 3660 reserved_name_.UnsafeArenaSwap(&other->reserved_name_); |
3780 name_.Swap(&other->name_); | |
3781 std::swap(options_, other->options_); | |
3782 std::swap(_has_bits_[0], other->_has_bits_[0]); | 3661 std::swap(_has_bits_[0], other->_has_bits_[0]); |
3783 _internal_metadata_.Swap(&other->_internal_metadata_); | 3662 _internal_metadata_.Swap(&other->_internal_metadata_); |
3784 std::swap(_cached_size_, other->_cached_size_); | 3663 std::swap(_cached_size_, other->_cached_size_); |
3785 } | 3664 } |
3786 | 3665 |
3787 ::google::protobuf::Metadata DescriptorProto::GetMetadata() const { | 3666 ::google::protobuf::Metadata DescriptorProto::GetMetadata() const { |
3788 protobuf_AssignDescriptorsOnce(); | 3667 protobuf_AssignDescriptorsOnce(); |
3789 return file_level_metadata[4]; | 3668 ::google::protobuf::Metadata metadata; |
| 3669 metadata.descriptor = DescriptorProto_descriptor_; |
| 3670 metadata.reflection = DescriptorProto_reflection_; |
| 3671 return metadata; |
3790 } | 3672 } |
3791 | 3673 |
3792 #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 |
3793 // DescriptorProto | 3779 // DescriptorProto |
3794 | 3780 |
3795 // optional string name = 1; | 3781 // optional string name = 1; |
3796 bool DescriptorProto::has_name() const { | 3782 bool DescriptorProto::has_name() const { |
3797 return (_has_bits_[0] & 0x00000001u) != 0; | 3783 return (_has_bits_[0] & 0x00000001u) != 0; |
3798 } | 3784 } |
3799 void DescriptorProto::set_has_name() { | 3785 void DescriptorProto::set_has_name() { |
3800 _has_bits_[0] |= 0x00000001u; | 3786 _has_bits_[0] |= 0x00000001u; |
3801 } | 3787 } |
3802 void DescriptorProto::clear_has_name() { | 3788 void DescriptorProto::clear_has_name() { |
3803 _has_bits_[0] &= ~0x00000001u; | 3789 _has_bits_[0] &= ~0x00000001u; |
3804 } | 3790 } |
3805 void DescriptorProto::clear_name() { | 3791 void DescriptorProto::clear_name() { |
3806 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); | 3792 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); |
3807 clear_has_name(); | 3793 clear_has_name(); |
3808 } | 3794 } |
3809 const ::std::string& DescriptorProto::name() const { | 3795 const ::std::string& DescriptorProto::name() const { |
3810 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.name) | 3796 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.name) |
3811 return name_.GetNoArena(); | 3797 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited()); |
3812 } | 3798 } |
3813 void DescriptorProto::set_name(const ::std::string& value) { | 3799 void DescriptorProto::set_name(const ::std::string& value) { |
3814 set_has_name(); | 3800 set_has_name(); |
3815 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); | 3801 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); |
3816 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.name) | 3802 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.name) |
3817 } | 3803 } |
3818 #if LANG_CXX11 | 3804 void DescriptorProto::set_name(const char* value) { |
3819 void DescriptorProto::set_name(::std::string&& value) { | |
3820 set_has_name(); | |
3821 name_.SetNoArena( | |
3822 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va
lue)); | |
3823 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.DescriptorProto.n
ame) | |
3824 } | |
3825 #endif | |
3826 void DescriptorProto::set_name(const char* value) { | |
3827 set_has_name(); | 3805 set_has_name(); |
3828 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); | 3806 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); |
3829 // @@protoc_insertion_point(field_set_char:google.protobuf.DescriptorProto.nam
e) | 3807 // @@protoc_insertion_point(field_set_char:google.protobuf.DescriptorProto.nam
e) |
3830 } | 3808 } |
3831 void DescriptorProto::set_name(const char* value, size_t size) { | 3809 void DescriptorProto::set_name(const char* value, size_t size) { |
3832 set_has_name(); | 3810 set_has_name(); |
3833 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), | 3811 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
3834 ::std::string(reinterpret_cast<const char*>(value), size)); | 3812 ::std::string(reinterpret_cast<const char*>(value), size)); |
3835 // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto.
name) | 3813 // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto.
name) |
3836 } | 3814 } |
3837 ::std::string* DescriptorProto::mutable_name() { | 3815 ::std::string* DescriptorProto::mutable_name() { |
3838 set_has_name(); | 3816 set_has_name(); |
3839 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.name
) | 3817 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.name
) |
3840 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 3818 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
3841 } | 3819 } |
3842 ::std::string* DescriptorProto::release_name() { | 3820 ::std::string* DescriptorProto::release_name() { |
3843 // @@protoc_insertion_point(field_release:google.protobuf.DescriptorProto.name
) | 3821 // @@protoc_insertion_point(field_release:google.protobuf.DescriptorProto.name
) |
3844 clear_has_name(); | 3822 clear_has_name(); |
3845 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 3823 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
3846 } | 3824 } |
3847 void DescriptorProto::set_allocated_name(::std::string* name) { | 3825 void DescriptorProto::set_allocated_name(::std::string* name) { |
3848 if (name != NULL) { | 3826 if (name != NULL) { |
3849 set_has_name(); | 3827 set_has_name(); |
3850 } else { | 3828 } else { |
3851 clear_has_name(); | 3829 clear_has_name(); |
3852 } | 3830 } |
3853 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), name); | 3831 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), name); |
3854 // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProt
o.name) | 3832 // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProt
o.name) |
3855 } | 3833 } |
3856 | 3834 |
3857 // 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... |
4029 return &oneof_decl_; | 4007 return &oneof_decl_; |
4030 } | 4008 } |
4031 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorP
roto >& | 4009 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorP
roto >& |
4032 DescriptorProto::oneof_decl() const { | 4010 DescriptorProto::oneof_decl() const { |
4033 // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.oneof_d
ecl) | 4011 // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.oneof_d
ecl) |
4034 return oneof_decl_; | 4012 return oneof_decl_; |
4035 } | 4013 } |
4036 | 4014 |
4037 // optional .google.protobuf.MessageOptions options = 7; | 4015 // optional .google.protobuf.MessageOptions options = 7; |
4038 bool DescriptorProto::has_options() const { | 4016 bool DescriptorProto::has_options() const { |
4039 return (_has_bits_[0] & 0x00000002u) != 0; | 4017 return (_has_bits_[0] & 0x00000080u) != 0; |
4040 } | 4018 } |
4041 void DescriptorProto::set_has_options() { | 4019 void DescriptorProto::set_has_options() { |
4042 _has_bits_[0] |= 0x00000002u; | 4020 _has_bits_[0] |= 0x00000080u; |
4043 } | 4021 } |
4044 void DescriptorProto::clear_has_options() { | 4022 void DescriptorProto::clear_has_options() { |
4045 _has_bits_[0] &= ~0x00000002u; | 4023 _has_bits_[0] &= ~0x00000080u; |
4046 } | 4024 } |
4047 void DescriptorProto::clear_options() { | 4025 void DescriptorProto::clear_options() { |
4048 if (options_ != NULL) options_->::google::protobuf::MessageOptions::Clear(); | 4026 if (options_ != NULL) options_->::google::protobuf::MessageOptions::Clear(); |
4049 clear_has_options(); | 4027 clear_has_options(); |
4050 } | 4028 } |
4051 const ::google::protobuf::MessageOptions& DescriptorProto::options() const { | 4029 const ::google::protobuf::MessageOptions& DescriptorProto::options() const { |
4052 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.options) | 4030 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.options) |
4053 return options_ != NULL ? *options_ | 4031 return options_ != NULL ? *options_ : *default_instance_->options_; |
4054 : *::google::protobuf::MessageOptions::internal_default
_instance(); | |
4055 } | 4032 } |
4056 ::google::protobuf::MessageOptions* DescriptorProto::mutable_options() { | 4033 ::google::protobuf::MessageOptions* DescriptorProto::mutable_options() { |
4057 set_has_options(); | 4034 set_has_options(); |
4058 if (options_ == NULL) { | 4035 if (options_ == NULL) { |
4059 options_ = new ::google::protobuf::MessageOptions; | 4036 options_ = new ::google::protobuf::MessageOptions; |
4060 } | 4037 } |
4061 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.opti
ons) | 4038 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.opti
ons) |
4062 return options_; | 4039 return options_; |
4063 } | 4040 } |
4064 ::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... |
4109 return reserved_range_; | 4086 return reserved_range_; |
4110 } | 4087 } |
4111 | 4088 |
4112 // repeated string reserved_name = 10; | 4089 // repeated string reserved_name = 10; |
4113 int DescriptorProto::reserved_name_size() const { | 4090 int DescriptorProto::reserved_name_size() const { |
4114 return reserved_name_.size(); | 4091 return reserved_name_.size(); |
4115 } | 4092 } |
4116 void DescriptorProto::clear_reserved_name() { | 4093 void DescriptorProto::clear_reserved_name() { |
4117 reserved_name_.Clear(); | 4094 reserved_name_.Clear(); |
4118 } | 4095 } |
4119 const ::std::string& DescriptorProto::reserved_name(int index) const { | 4096 const ::std::string& DescriptorProto::reserved_name(int index) const { |
4120 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.reserved
_name) | 4097 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.reserved
_name) |
4121 return reserved_name_.Get(index); | 4098 return reserved_name_.Get(index); |
4122 } | 4099 } |
4123 ::std::string* DescriptorProto::mutable_reserved_name(int index) { | 4100 ::std::string* DescriptorProto::mutable_reserved_name(int index) { |
4124 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.rese
rved_name) | 4101 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.rese
rved_name) |
4125 return reserved_name_.Mutable(index); | 4102 return reserved_name_.Mutable(index); |
4126 } | 4103 } |
4127 void DescriptorProto::set_reserved_name(int index, const ::std::string& value) { | 4104 void DescriptorProto::set_reserved_name(int index, const ::std::string& value)
{ |
4128 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.reserved
_name) | 4105 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.reserved
_name) |
4129 reserved_name_.Mutable(index)->assign(value); | 4106 reserved_name_.Mutable(index)->assign(value); |
4130 } | 4107 } |
4131 void DescriptorProto::set_reserved_name(int index, const char* value) { | 4108 void DescriptorProto::set_reserved_name(int index, const char* value) { |
4132 reserved_name_.Mutable(index)->assign(value); | 4109 reserved_name_.Mutable(index)->assign(value); |
4133 // @@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) |
4134 } | 4111 } |
4135 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) { |
4136 reserved_name_.Mutable(index)->assign( | 4113 reserved_name_.Mutable(index)->assign( |
4137 reinterpret_cast<const char*>(value), size); | 4114 reinterpret_cast<const char*>(value), size); |
4138 // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto.
reserved_name) | 4115 // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto.
reserved_name) |
4139 } | 4116 } |
4140 ::std::string* DescriptorProto::add_reserved_name() { | 4117 ::std::string* DescriptorProto::add_reserved_name() { |
4141 // @@protoc_insertion_point(field_add_mutable:google.protobuf.DescriptorProto.
reserved_name) | 4118 // @@protoc_insertion_point(field_add_mutable:google.protobuf.DescriptorProto.
reserved_name) |
4142 return reserved_name_.Add(); | 4119 return reserved_name_.Add(); |
4143 } | 4120 } |
4144 void DescriptorProto::add_reserved_name(const ::std::string& value) { | 4121 void DescriptorProto::add_reserved_name(const ::std::string& value) { |
4145 reserved_name_.Add()->assign(value); | 4122 reserved_name_.Add()->assign(value); |
4146 // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved
_name) | 4123 // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved
_name) |
4147 } | 4124 } |
4148 void DescriptorProto::add_reserved_name(const char* value) { | 4125 void DescriptorProto::add_reserved_name(const char* value) { |
4149 reserved_name_.Add()->assign(value); | 4126 reserved_name_.Add()->assign(value); |
4150 // @@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) |
4151 } | 4128 } |
4152 void DescriptorProto::add_reserved_name(const char* value, size_t size) { | 4129 void DescriptorProto::add_reserved_name(const char* value, size_t size) { |
4153 reserved_name_.Add()->assign(reinterpret_cast<const char*>(value), size); | 4130 reserved_name_.Add()->assign(reinterpret_cast<const char*>(value), size); |
4154 // @@protoc_insertion_point(field_add_pointer:google.protobuf.DescriptorProto.
reserved_name) | 4131 // @@protoc_insertion_point(field_add_pointer:google.protobuf.DescriptorProto.
reserved_name) |
4155 } | 4132 } |
4156 const ::google::protobuf::RepeatedPtrField< ::std::string>& | 4133 const ::google::protobuf::RepeatedPtrField< ::std::string>& |
4157 DescriptorProto::reserved_name() const { | 4134 DescriptorProto::reserved_name() const { |
4158 // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.reserve
d_name) | 4135 // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.reserve
d_name) |
4159 return reserved_name_; | 4136 return reserved_name_; |
4160 } | 4137 } |
4161 ::google::protobuf::RepeatedPtrField< ::std::string>* | 4138 ::google::protobuf::RepeatedPtrField< ::std::string>* |
4162 DescriptorProto::mutable_reserved_name() { | 4139 DescriptorProto::mutable_reserved_name() { |
4163 // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto
.reserved_name) | 4140 // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto
.reserved_name) |
4164 return &reserved_name_; | 4141 return &reserved_name_; |
4165 } | 4142 } |
4166 | 4143 |
4167 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 4144 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
4168 | 4145 |
4169 // =================================================================== | 4146 // =================================================================== |
4170 | 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 |
4171 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 4224 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
4172 const int FieldDescriptorProto::kNameFieldNumber; | 4225 const int FieldDescriptorProto::kNameFieldNumber; |
4173 const int FieldDescriptorProto::kNumberFieldNumber; | 4226 const int FieldDescriptorProto::kNumberFieldNumber; |
4174 const int FieldDescriptorProto::kLabelFieldNumber; | 4227 const int FieldDescriptorProto::kLabelFieldNumber; |
4175 const int FieldDescriptorProto::kTypeFieldNumber; | 4228 const int FieldDescriptorProto::kTypeFieldNumber; |
4176 const int FieldDescriptorProto::kTypeNameFieldNumber; | 4229 const int FieldDescriptorProto::kTypeNameFieldNumber; |
4177 const int FieldDescriptorProto::kExtendeeFieldNumber; | 4230 const int FieldDescriptorProto::kExtendeeFieldNumber; |
4178 const int FieldDescriptorProto::kDefaultValueFieldNumber; | 4231 const int FieldDescriptorProto::kDefaultValueFieldNumber; |
4179 const int FieldDescriptorProto::kOneofIndexFieldNumber; | 4232 const int FieldDescriptorProto::kOneofIndexFieldNumber; |
4180 const int FieldDescriptorProto::kJsonNameFieldNumber; | 4233 const int FieldDescriptorProto::kJsonNameFieldNumber; |
4181 const int FieldDescriptorProto::kOptionsFieldNumber; | 4234 const int FieldDescriptorProto::kOptionsFieldNumber; |
4182 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 4235 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
4183 | 4236 |
4184 FieldDescriptorProto::FieldDescriptorProto() | 4237 FieldDescriptorProto::FieldDescriptorProto() |
4185 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 4238 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
4186 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
4187 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
4188 } | |
4189 SharedCtor(); | 4239 SharedCtor(); |
4190 // @@protoc_insertion_point(constructor:google.protobuf.FieldDescriptorProto) | 4240 // @@protoc_insertion_point(constructor:google.protobuf.FieldDescriptorProto) |
4191 } | 4241 } |
| 4242 |
| 4243 void FieldDescriptorProto::InitAsDefaultInstance() { |
| 4244 options_ = const_cast< ::google::protobuf::FieldOptions*>(&::google::protobuf:
:FieldOptions::default_instance()); |
| 4245 } |
| 4246 |
4192 FieldDescriptorProto::FieldDescriptorProto(const FieldDescriptorProto& from) | 4247 FieldDescriptorProto::FieldDescriptorProto(const FieldDescriptorProto& from) |
4193 : ::google::protobuf::Message(), | 4248 : ::google::protobuf::Message(), |
4194 _internal_metadata_(NULL), | 4249 _internal_metadata_(NULL) { |
4195 _has_bits_(from._has_bits_), | 4250 SharedCtor(); |
4196 _cached_size_(0) { | 4251 MergeFrom(from); |
4197 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
4198 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); | |
4199 if (from.has_name()) { | |
4200 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), from.name_); | |
4201 } | |
4202 type_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | |
4203 if (from.has_type_name()) { | |
4204 type_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAl
readyInited(), from.type_name_); | |
4205 } | |
4206 extendee_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlread
yInited()); | |
4207 if (from.has_extendee()) { | |
4208 extendee_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited(), from.extendee_); | |
4209 } | |
4210 default_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringA
lreadyInited()); | |
4211 if (from.has_default_value()) { | |
4212 default_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited(), from.default_value_); | |
4213 } | |
4214 json_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | |
4215 if (from.has_json_name()) { | |
4216 json_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAl
readyInited(), from.json_name_); | |
4217 } | |
4218 if (from.has_options()) { | |
4219 options_ = new ::google::protobuf::FieldOptions(*from.options_); | |
4220 } else { | |
4221 options_ = NULL; | |
4222 } | |
4223 ::memcpy(&number_, &from.number_, | |
4224 reinterpret_cast<char*>(&type_) - | |
4225 reinterpret_cast<char*>(&number_) + sizeof(type_)); | |
4226 // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldDescriptorPr
oto) | 4252 // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldDescriptorPr
oto) |
4227 } | 4253 } |
4228 | 4254 |
4229 void FieldDescriptorProto::SharedCtor() { | 4255 void FieldDescriptorProto::SharedCtor() { |
| 4256 ::google::protobuf::internal::GetEmptyString(); |
4230 _cached_size_ = 0; | 4257 _cached_size_ = 0; |
4231 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); | 4258 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); |
| 4259 number_ = 0; |
| 4260 label_ = 1; |
| 4261 type_ = 1; |
4232 type_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 4262 type_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
4233 extendee_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlread
yInited()); | 4263 extendee_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlread
yInited()); |
4234 default_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringA
lreadyInited()); | 4264 default_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringA
lreadyInited()); |
| 4265 oneof_index_ = 0; |
4235 json_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 4266 json_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
4236 ::memset(&options_, 0, reinterpret_cast<char*>(&oneof_index_) - | 4267 options_ = NULL; |
4237 reinterpret_cast<char*>(&options_) + sizeof(oneof_index_)); | 4268 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
4238 label_ = 1; | |
4239 type_ = 1; | |
4240 } | 4269 } |
4241 | 4270 |
4242 FieldDescriptorProto::~FieldDescriptorProto() { | 4271 FieldDescriptorProto::~FieldDescriptorProto() { |
4243 // @@protoc_insertion_point(destructor:google.protobuf.FieldDescriptorProto) | 4272 // @@protoc_insertion_point(destructor:google.protobuf.FieldDescriptorProto) |
4244 SharedDtor(); | 4273 SharedDtor(); |
4245 } | 4274 } |
4246 | 4275 |
4247 void FieldDescriptorProto::SharedDtor() { | 4276 void FieldDescriptorProto::SharedDtor() { |
4248 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d()); | 4277 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d()); |
4249 type_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); | 4278 type_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); |
4250 extendee_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI
nited()); | 4279 extendee_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI
nited()); |
4251 default_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); | 4280 default_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); |
4252 json_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); | 4281 json_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); |
4253 if (this != internal_default_instance()) { | 4282 if (this != default_instance_) { |
4254 delete options_; | 4283 delete options_; |
4255 } | 4284 } |
4256 } | 4285 } |
4257 | 4286 |
4258 void FieldDescriptorProto::SetCachedSize(int size) const { | 4287 void FieldDescriptorProto::SetCachedSize(int size) const { |
4259 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 4288 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4260 _cached_size_ = size; | 4289 _cached_size_ = size; |
4261 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 4290 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4262 } | 4291 } |
4263 const ::google::protobuf::Descriptor* FieldDescriptorProto::descriptor() { | 4292 const ::google::protobuf::Descriptor* FieldDescriptorProto::descriptor() { |
4264 protobuf_AssignDescriptorsOnce(); | 4293 protobuf_AssignDescriptorsOnce(); |
4265 return file_level_metadata[5].descriptor; | 4294 return FieldDescriptorProto_descriptor_; |
4266 } | 4295 } |
4267 | 4296 |
4268 const FieldDescriptorProto& FieldDescriptorProto::default_instance() { | 4297 const FieldDescriptorProto& FieldDescriptorProto::default_instance() { |
4269 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 4298 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
4270 return *internal_default_instance(); | 4299 return *default_instance_; |
4271 } | 4300 } |
4272 | 4301 |
| 4302 FieldDescriptorProto* FieldDescriptorProto::default_instance_ = NULL; |
| 4303 |
4273 FieldDescriptorProto* FieldDescriptorProto::New(::google::protobuf::Arena* arena
) const { | 4304 FieldDescriptorProto* FieldDescriptorProto::New(::google::protobuf::Arena* arena
) const { |
4274 FieldDescriptorProto* n = new FieldDescriptorProto; | 4305 FieldDescriptorProto* n = new FieldDescriptorProto; |
4275 if (arena != NULL) { | 4306 if (arena != NULL) { |
4276 arena->Own(n); | 4307 arena->Own(n); |
4277 } | 4308 } |
4278 return n; | 4309 return n; |
4279 } | 4310 } |
4280 | 4311 |
4281 void FieldDescriptorProto::Clear() { | 4312 void FieldDescriptorProto::Clear() { |
4282 // @@protoc_insertion_point(message_clear_start:google.protobuf.FieldDescriptorP
roto) | 4313 // @@protoc_insertion_point(message_clear_start:google.protobuf.FieldDescriptorP
roto) |
4283 if (_has_bits_[0 / 32] & 63u) { | 4314 if (_has_bits_[0 / 32] & 255u) { |
4284 if (has_name()) { | 4315 if (has_name()) { |
4285 GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited())); | 4316 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); |
4286 (*name_.UnsafeRawStringPointer())->clear(); | |
4287 } | 4317 } |
| 4318 number_ = 0; |
| 4319 label_ = 1; |
| 4320 type_ = 1; |
4288 if (has_type_name()) { | 4321 if (has_type_name()) { |
4289 GOOGLE_DCHECK(!type_name_.IsDefault(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited())); | 4322 type_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); |
4290 (*type_name_.UnsafeRawStringPointer())->clear(); | |
4291 } | 4323 } |
4292 if (has_extendee()) { | 4324 if (has_extendee()) { |
4293 GOOGLE_DCHECK(!extendee_.IsDefault(&::google::protobuf::internal::GetEmpty
StringAlreadyInited())); | 4325 extendee_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); |
4294 (*extendee_.UnsafeRawStringPointer())->clear(); | |
4295 } | 4326 } |
4296 if (has_default_value()) { | 4327 if (has_default_value()) { |
4297 GOOGLE_DCHECK(!default_value_.IsDefault(&::google::protobuf::internal::Get
EmptyStringAlreadyInited())); | 4328 default_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmpty
StringAlreadyInited()); |
4298 (*default_value_.UnsafeRawStringPointer())->clear(); | |
4299 } | 4329 } |
| 4330 oneof_index_ = 0; |
| 4331 } |
| 4332 if (_has_bits_[8 / 32] & 768u) { |
4300 if (has_json_name()) { | 4333 if (has_json_name()) { |
4301 GOOGLE_DCHECK(!json_name_.IsDefault(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited())); | 4334 json_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); |
4302 (*json_name_.UnsafeRawStringPointer())->clear(); | |
4303 } | 4335 } |
4304 if (has_options()) { | 4336 if (has_options()) { |
4305 GOOGLE_DCHECK(options_ != NULL); | 4337 if (options_ != NULL) options_->::google::protobuf::FieldOptions::Clear(); |
4306 options_->::google::protobuf::FieldOptions::Clear(); | |
4307 } | 4338 } |
4308 } | 4339 } |
4309 if (_has_bits_[0 / 32] & 192u) { | 4340 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
4310 ::memset(&number_, 0, reinterpret_cast<char*>(&oneof_index_) - | 4341 if (_internal_metadata_.have_unknown_fields()) { |
4311 reinterpret_cast<char*>(&number_) + sizeof(oneof_index_)); | 4342 mutable_unknown_fields()->Clear(); |
4312 } | 4343 } |
4313 if (_has_bits_[8 / 32] & 768u) { | |
4314 label_ = 1; | |
4315 type_ = 1; | |
4316 } | |
4317 _has_bits_.Clear(); | |
4318 _internal_metadata_.Clear(); | |
4319 } | 4344 } |
4320 | 4345 |
4321 bool FieldDescriptorProto::MergePartialFromCodedStream( | 4346 bool FieldDescriptorProto::MergePartialFromCodedStream( |
4322 ::google::protobuf::io::CodedInputStream* input) { | 4347 ::google::protobuf::io::CodedInputStream* input) { |
4323 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 4348 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
4324 ::google::protobuf::uint32 tag; | 4349 ::google::protobuf::uint32 tag; |
4325 // @@protoc_insertion_point(parse_start:google.protobuf.FieldDescriptorProto) | 4350 // @@protoc_insertion_point(parse_start:google.protobuf.FieldDescriptorProto) |
4326 for (;;) { | 4351 for (;;) { |
4327 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 4352 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
4328 tag = p.first; | 4353 tag = p.first; |
4329 if (!p.second) goto handle_unusual; | 4354 if (!p.second) goto handle_unusual; |
4330 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 4355 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
4331 // optional string name = 1; | 4356 // optional string name = 1; |
4332 case 1: { | 4357 case 1: { |
4333 if (tag == 10u) { | 4358 if (tag == 10) { |
4334 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 4359 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
4335 input, this->mutable_name())); | 4360 input, this->mutable_name())); |
4336 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 4361 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
4337 this->name().data(), this->name().length(), | 4362 this->name().data(), this->name().length(), |
4338 ::google::protobuf::internal::WireFormat::PARSE, | 4363 ::google::protobuf::internal::WireFormat::PARSE, |
4339 "google.protobuf.FieldDescriptorProto.name"); | 4364 "google.protobuf.FieldDescriptorProto.name"); |
4340 } else { | 4365 } else { |
4341 goto handle_unusual; | 4366 goto handle_unusual; |
4342 } | 4367 } |
| 4368 if (input->ExpectTag(18)) goto parse_extendee; |
4343 break; | 4369 break; |
4344 } | 4370 } |
4345 | 4371 |
4346 // optional string extendee = 2; | 4372 // optional string extendee = 2; |
4347 case 2: { | 4373 case 2: { |
4348 if (tag == 18u) { | 4374 if (tag == 18) { |
| 4375 parse_extendee: |
4349 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 4376 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
4350 input, this->mutable_extendee())); | 4377 input, this->mutable_extendee())); |
4351 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 4378 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
4352 this->extendee().data(), this->extendee().length(), | 4379 this->extendee().data(), this->extendee().length(), |
4353 ::google::protobuf::internal::WireFormat::PARSE, | 4380 ::google::protobuf::internal::WireFormat::PARSE, |
4354 "google.protobuf.FieldDescriptorProto.extendee"); | 4381 "google.protobuf.FieldDescriptorProto.extendee"); |
4355 } else { | 4382 } else { |
4356 goto handle_unusual; | 4383 goto handle_unusual; |
4357 } | 4384 } |
| 4385 if (input->ExpectTag(24)) goto parse_number; |
4358 break; | 4386 break; |
4359 } | 4387 } |
4360 | 4388 |
4361 // optional int32 number = 3; | 4389 // optional int32 number = 3; |
4362 case 3: { | 4390 case 3: { |
4363 if (tag == 24u) { | 4391 if (tag == 24) { |
4364 set_has_number(); | 4392 parse_number: |
4365 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 4393 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4366 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 4394 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
4367 input, &number_))); | 4395 input, &number_))); |
| 4396 set_has_number(); |
4368 } else { | 4397 } else { |
4369 goto handle_unusual; | 4398 goto handle_unusual; |
4370 } | 4399 } |
| 4400 if (input->ExpectTag(32)) goto parse_label; |
4371 break; | 4401 break; |
4372 } | 4402 } |
4373 | 4403 |
4374 // optional .google.protobuf.FieldDescriptorProto.Label label = 4; | 4404 // optional .google.protobuf.FieldDescriptorProto.Label label = 4; |
4375 case 4: { | 4405 case 4: { |
4376 if (tag == 32u) { | 4406 if (tag == 32) { |
| 4407 parse_label: |
4377 int value; | 4408 int value; |
4378 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 4409 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4379 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>
( | 4410 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>
( |
4380 input, &value))); | 4411 input, &value))); |
4381 if (::google::protobuf::FieldDescriptorProto_Label_IsValid(value)) { | 4412 if (::google::protobuf::FieldDescriptorProto_Label_IsValid(value)) { |
4382 set_label(static_cast< ::google::protobuf::FieldDescriptorProto_Labe
l >(value)); | 4413 set_label(static_cast< ::google::protobuf::FieldDescriptorProto_Labe
l >(value)); |
4383 } else { | 4414 } else { |
4384 mutable_unknown_fields()->AddVarint(4, value); | 4415 mutable_unknown_fields()->AddVarint(4, value); |
4385 } | 4416 } |
4386 } else { | 4417 } else { |
4387 goto handle_unusual; | 4418 goto handle_unusual; |
4388 } | 4419 } |
| 4420 if (input->ExpectTag(40)) goto parse_type; |
4389 break; | 4421 break; |
4390 } | 4422 } |
4391 | 4423 |
4392 // optional .google.protobuf.FieldDescriptorProto.Type type = 5; | 4424 // optional .google.protobuf.FieldDescriptorProto.Type type = 5; |
4393 case 5: { | 4425 case 5: { |
4394 if (tag == 40u) { | 4426 if (tag == 40) { |
| 4427 parse_type: |
4395 int value; | 4428 int value; |
4396 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 4429 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4397 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>
( | 4430 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>
( |
4398 input, &value))); | 4431 input, &value))); |
4399 if (::google::protobuf::FieldDescriptorProto_Type_IsValid(value)) { | 4432 if (::google::protobuf::FieldDescriptorProto_Type_IsValid(value)) { |
4400 set_type(static_cast< ::google::protobuf::FieldDescriptorProto_Type
>(value)); | 4433 set_type(static_cast< ::google::protobuf::FieldDescriptorProto_Type
>(value)); |
4401 } else { | 4434 } else { |
4402 mutable_unknown_fields()->AddVarint(5, value); | 4435 mutable_unknown_fields()->AddVarint(5, value); |
4403 } | 4436 } |
4404 } else { | 4437 } else { |
4405 goto handle_unusual; | 4438 goto handle_unusual; |
4406 } | 4439 } |
| 4440 if (input->ExpectTag(50)) goto parse_type_name; |
4407 break; | 4441 break; |
4408 } | 4442 } |
4409 | 4443 |
4410 // optional string type_name = 6; | 4444 // optional string type_name = 6; |
4411 case 6: { | 4445 case 6: { |
4412 if (tag == 50u) { | 4446 if (tag == 50) { |
| 4447 parse_type_name: |
4413 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 4448 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
4414 input, this->mutable_type_name())); | 4449 input, this->mutable_type_name())); |
4415 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 4450 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
4416 this->type_name().data(), this->type_name().length(), | 4451 this->type_name().data(), this->type_name().length(), |
4417 ::google::protobuf::internal::WireFormat::PARSE, | 4452 ::google::protobuf::internal::WireFormat::PARSE, |
4418 "google.protobuf.FieldDescriptorProto.type_name"); | 4453 "google.protobuf.FieldDescriptorProto.type_name"); |
4419 } else { | 4454 } else { |
4420 goto handle_unusual; | 4455 goto handle_unusual; |
4421 } | 4456 } |
| 4457 if (input->ExpectTag(58)) goto parse_default_value; |
4422 break; | 4458 break; |
4423 } | 4459 } |
4424 | 4460 |
4425 // optional string default_value = 7; | 4461 // optional string default_value = 7; |
4426 case 7: { | 4462 case 7: { |
4427 if (tag == 58u) { | 4463 if (tag == 58) { |
| 4464 parse_default_value: |
4428 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 4465 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
4429 input, this->mutable_default_value())); | 4466 input, this->mutable_default_value())); |
4430 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 4467 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
4431 this->default_value().data(), this->default_value().length(), | 4468 this->default_value().data(), this->default_value().length(), |
4432 ::google::protobuf::internal::WireFormat::PARSE, | 4469 ::google::protobuf::internal::WireFormat::PARSE, |
4433 "google.protobuf.FieldDescriptorProto.default_value"); | 4470 "google.protobuf.FieldDescriptorProto.default_value"); |
4434 } else { | 4471 } else { |
4435 goto handle_unusual; | 4472 goto handle_unusual; |
4436 } | 4473 } |
| 4474 if (input->ExpectTag(66)) goto parse_options; |
4437 break; | 4475 break; |
4438 } | 4476 } |
4439 | 4477 |
4440 // optional .google.protobuf.FieldOptions options = 8; | 4478 // optional .google.protobuf.FieldOptions options = 8; |
4441 case 8: { | 4479 case 8: { |
4442 if (tag == 66u) { | 4480 if (tag == 66) { |
| 4481 parse_options: |
4443 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 4482 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
4444 input, mutable_options())); | 4483 input, mutable_options())); |
4445 } else { | 4484 } else { |
4446 goto handle_unusual; | 4485 goto handle_unusual; |
4447 } | 4486 } |
| 4487 if (input->ExpectTag(72)) goto parse_oneof_index; |
4448 break; | 4488 break; |
4449 } | 4489 } |
4450 | 4490 |
4451 // optional int32 oneof_index = 9; | 4491 // optional int32 oneof_index = 9; |
4452 case 9: { | 4492 case 9: { |
4453 if (tag == 72u) { | 4493 if (tag == 72) { |
4454 set_has_oneof_index(); | 4494 parse_oneof_index: |
4455 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 4495 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4456 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 4496 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
4457 input, &oneof_index_))); | 4497 input, &oneof_index_))); |
| 4498 set_has_oneof_index(); |
4458 } else { | 4499 } else { |
4459 goto handle_unusual; | 4500 goto handle_unusual; |
4460 } | 4501 } |
| 4502 if (input->ExpectTag(82)) goto parse_json_name; |
4461 break; | 4503 break; |
4462 } | 4504 } |
4463 | 4505 |
4464 // optional string json_name = 10; | 4506 // optional string json_name = 10; |
4465 case 10: { | 4507 case 10: { |
4466 if (tag == 82u) { | 4508 if (tag == 82) { |
| 4509 parse_json_name: |
4467 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 4510 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
4468 input, this->mutable_json_name())); | 4511 input, this->mutable_json_name())); |
4469 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 4512 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
4470 this->json_name().data(), this->json_name().length(), | 4513 this->json_name().data(), this->json_name().length(), |
4471 ::google::protobuf::internal::WireFormat::PARSE, | 4514 ::google::protobuf::internal::WireFormat::PARSE, |
4472 "google.protobuf.FieldDescriptorProto.json_name"); | 4515 "google.protobuf.FieldDescriptorProto.json_name"); |
4473 } else { | 4516 } else { |
4474 goto handle_unusual; | 4517 goto handle_unusual; |
4475 } | 4518 } |
| 4519 if (input->ExpectAtEnd()) goto success; |
4476 break; | 4520 break; |
4477 } | 4521 } |
4478 | 4522 |
4479 default: { | 4523 default: { |
4480 handle_unusual: | 4524 handle_unusual: |
4481 if (tag == 0 || | 4525 if (tag == 0 || |
4482 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 4526 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
4483 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 4527 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
4484 goto success; | 4528 goto success; |
4485 } | 4529 } |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4579 10, this->json_name(), output); | 4623 10, this->json_name(), output); |
4580 } | 4624 } |
4581 | 4625 |
4582 if (_internal_metadata_.have_unknown_fields()) { | 4626 if (_internal_metadata_.have_unknown_fields()) { |
4583 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 4627 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
4584 unknown_fields(), output); | 4628 unknown_fields(), output); |
4585 } | 4629 } |
4586 // @@protoc_insertion_point(serialize_end:google.protobuf.FieldDescriptorProto
) | 4630 // @@protoc_insertion_point(serialize_end:google.protobuf.FieldDescriptorProto
) |
4587 } | 4631 } |
4588 | 4632 |
4589 ::google::protobuf::uint8* FieldDescriptorProto::InternalSerializeWithCachedSize
sToArray( | 4633 ::google::protobuf::uint8* FieldDescriptorProto::SerializeWithCachedSizesToArray
( |
4590 bool deterministic, ::google::protobuf::uint8* target) const { | 4634 ::google::protobuf::uint8* target) const { |
4591 (void)deterministic; // Unused | |
4592 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldDesc
riptorProto) | 4635 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldDesc
riptorProto) |
4593 // optional string name = 1; | 4636 // optional string name = 1; |
4594 if (has_name()) { | 4637 if (has_name()) { |
4595 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 4638 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
4596 this->name().data(), this->name().length(), | 4639 this->name().data(), this->name().length(), |
4597 ::google::protobuf::internal::WireFormat::SERIALIZE, | 4640 ::google::protobuf::internal::WireFormat::SERIALIZE, |
4598 "google.protobuf.FieldDescriptorProto.name"); | 4641 "google.protobuf.FieldDescriptorProto.name"); |
4599 target = | 4642 target = |
4600 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 4643 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
4601 1, this->name(), target); | 4644 1, this->name(), target); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4647 ::google::protobuf::internal::WireFormat::SERIALIZE, | 4690 ::google::protobuf::internal::WireFormat::SERIALIZE, |
4648 "google.protobuf.FieldDescriptorProto.default_value"); | 4691 "google.protobuf.FieldDescriptorProto.default_value"); |
4649 target = | 4692 target = |
4650 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 4693 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
4651 7, this->default_value(), target); | 4694 7, this->default_value(), target); |
4652 } | 4695 } |
4653 | 4696 |
4654 // optional .google.protobuf.FieldOptions options = 8; | 4697 // optional .google.protobuf.FieldOptions options = 8; |
4655 if (has_options()) { | 4698 if (has_options()) { |
4656 target = ::google::protobuf::internal::WireFormatLite:: | 4699 target = ::google::protobuf::internal::WireFormatLite:: |
4657 InternalWriteMessageNoVirtualToArray( | 4700 WriteMessageNoVirtualToArray( |
4658 8, *this->options_, false, target); | 4701 8, *this->options_, target); |
4659 } | 4702 } |
4660 | 4703 |
4661 // optional int32 oneof_index = 9; | 4704 // optional int32 oneof_index = 9; |
4662 if (has_oneof_index()) { | 4705 if (has_oneof_index()) { |
4663 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9,
this->oneof_index(), target); | 4706 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9,
this->oneof_index(), target); |
4664 } | 4707 } |
4665 | 4708 |
4666 // optional string json_name = 10; | 4709 // optional string json_name = 10; |
4667 if (has_json_name()) { | 4710 if (has_json_name()) { |
4668 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 4711 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
4669 this->json_name().data(), this->json_name().length(), | 4712 this->json_name().data(), this->json_name().length(), |
4670 ::google::protobuf::internal::WireFormat::SERIALIZE, | 4713 ::google::protobuf::internal::WireFormat::SERIALIZE, |
4671 "google.protobuf.FieldDescriptorProto.json_name"); | 4714 "google.protobuf.FieldDescriptorProto.json_name"); |
4672 target = | 4715 target = |
4673 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 4716 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
4674 10, this->json_name(), target); | 4717 10, this->json_name(), target); |
4675 } | 4718 } |
4676 | 4719 |
4677 if (_internal_metadata_.have_unknown_fields()) { | 4720 if (_internal_metadata_.have_unknown_fields()) { |
4678 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 4721 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
4679 unknown_fields(), target); | 4722 unknown_fields(), target); |
4680 } | 4723 } |
4681 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FieldDescri
ptorProto) | 4724 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FieldDescri
ptorProto) |
4682 return target; | 4725 return target; |
4683 } | 4726 } |
4684 | 4727 |
4685 size_t FieldDescriptorProto::ByteSizeLong() const { | 4728 int FieldDescriptorProto::ByteSize() const { |
4686 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FieldDescrip
torProto) | 4729 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FieldDescrip
torProto) |
4687 size_t total_size = 0; | 4730 int total_size = 0; |
4688 | 4731 |
4689 if (_internal_metadata_.have_unknown_fields()) { | |
4690 total_size += | |
4691 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | |
4692 unknown_fields()); | |
4693 } | |
4694 if (_has_bits_[0 / 32] & 255u) { | 4732 if (_has_bits_[0 / 32] & 255u) { |
4695 // optional string name = 1; | 4733 // optional string name = 1; |
4696 if (has_name()) { | 4734 if (has_name()) { |
4697 total_size += 1 + | 4735 total_size += 1 + |
4698 ::google::protobuf::internal::WireFormatLite::StringSize( | 4736 ::google::protobuf::internal::WireFormatLite::StringSize( |
4699 this->name()); | 4737 this->name()); |
4700 } | 4738 } |
4701 | 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 |
4702 // optional string type_name = 6; | 4759 // optional string type_name = 6; |
4703 if (has_type_name()) { | 4760 if (has_type_name()) { |
4704 total_size += 1 + | 4761 total_size += 1 + |
4705 ::google::protobuf::internal::WireFormatLite::StringSize( | 4762 ::google::protobuf::internal::WireFormatLite::StringSize( |
4706 this->type_name()); | 4763 this->type_name()); |
4707 } | 4764 } |
4708 | 4765 |
4709 // optional string extendee = 2; | 4766 // optional string extendee = 2; |
4710 if (has_extendee()) { | 4767 if (has_extendee()) { |
4711 total_size += 1 + | 4768 total_size += 1 + |
4712 ::google::protobuf::internal::WireFormatLite::StringSize( | 4769 ::google::protobuf::internal::WireFormatLite::StringSize( |
4713 this->extendee()); | 4770 this->extendee()); |
4714 } | 4771 } |
4715 | 4772 |
4716 // optional string default_value = 7; | 4773 // optional string default_value = 7; |
4717 if (has_default_value()) { | 4774 if (has_default_value()) { |
4718 total_size += 1 + | 4775 total_size += 1 + |
4719 ::google::protobuf::internal::WireFormatLite::StringSize( | 4776 ::google::protobuf::internal::WireFormatLite::StringSize( |
4720 this->default_value()); | 4777 this->default_value()); |
4721 } | 4778 } |
4722 | 4779 |
4723 // optional string json_name = 10; | |
4724 if (has_json_name()) { | |
4725 total_size += 1 + | |
4726 ::google::protobuf::internal::WireFormatLite::StringSize( | |
4727 this->json_name()); | |
4728 } | |
4729 | |
4730 // optional .google.protobuf.FieldOptions options = 8; | |
4731 if (has_options()) { | |
4732 total_size += 1 + | |
4733 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
4734 *this->options_); | |
4735 } | |
4736 | |
4737 // optional int32 number = 3; | |
4738 if (has_number()) { | |
4739 total_size += 1 + | |
4740 ::google::protobuf::internal::WireFormatLite::Int32Size( | |
4741 this->number()); | |
4742 } | |
4743 | |
4744 // optional int32 oneof_index = 9; | 4780 // optional int32 oneof_index = 9; |
4745 if (has_oneof_index()) { | 4781 if (has_oneof_index()) { |
4746 total_size += 1 + | 4782 total_size += 1 + |
4747 ::google::protobuf::internal::WireFormatLite::Int32Size( | 4783 ::google::protobuf::internal::WireFormatLite::Int32Size( |
4748 this->oneof_index()); | 4784 this->oneof_index()); |
4749 } | 4785 } |
4750 | 4786 |
4751 } | 4787 } |
4752 if (_has_bits_[8 / 32] & 768u) { | 4788 if (_has_bits_[8 / 32] & 768u) { |
4753 // optional .google.protobuf.FieldDescriptorProto.Label label = 4; | 4789 // optional string json_name = 10; |
4754 if (has_label()) { | 4790 if (has_json_name()) { |
4755 total_size += 1 + | 4791 total_size += 1 + |
4756 ::google::protobuf::internal::WireFormatLite::EnumSize(this->label()); | 4792 ::google::protobuf::internal::WireFormatLite::StringSize( |
| 4793 this->json_name()); |
4757 } | 4794 } |
4758 | 4795 |
4759 // optional .google.protobuf.FieldDescriptorProto.Type type = 5; | 4796 // optional .google.protobuf.FieldOptions options = 8; |
4760 if (has_type()) { | 4797 if (has_options()) { |
4761 total_size += 1 + | 4798 total_size += 1 + |
4762 ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); | 4799 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 4800 *this->options_); |
4763 } | 4801 } |
4764 | 4802 |
4765 } | 4803 } |
4766 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 } |
4767 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 4809 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4768 _cached_size_ = cached_size; | 4810 _cached_size_ = total_size; |
4769 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 4811 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4770 return total_size; | 4812 return total_size; |
4771 } | 4813 } |
4772 | 4814 |
4773 void FieldDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { | 4815 void FieldDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
4774 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FieldDe
scriptorProto) | 4816 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FieldDe
scriptorProto) |
4775 GOOGLE_DCHECK_NE(&from, this); | 4817 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
4776 const FieldDescriptorProto* source = | 4818 const FieldDescriptorProto* source = |
4777 ::google::protobuf::internal::DynamicCastToGenerated<const FieldDescriptor
Proto>( | 4819 ::google::protobuf::internal::DynamicCastToGenerated<const FieldDescriptor
Proto>( |
4778 &from); | 4820 &from); |
4779 if (source == NULL) { | 4821 if (source == NULL) { |
4780 // @@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) |
4781 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 4823 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
4782 } else { | 4824 } else { |
4783 // @@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) |
4784 MergeFrom(*source); | 4826 MergeFrom(*source); |
4785 } | 4827 } |
4786 } | 4828 } |
4787 | 4829 |
4788 void FieldDescriptorProto::MergeFrom(const FieldDescriptorProto& from) { | 4830 void FieldDescriptorProto::MergeFrom(const FieldDescriptorProto& from) { |
4789 // @@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) |
4790 GOOGLE_DCHECK_NE(&from, this); | 4832 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
4791 _internal_metadata_.MergeFrom(from._internal_metadata_); | 4833 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
4792 if (from._has_bits_[0 / 32] & 255u) { | |
4793 if (from.has_name()) { | 4834 if (from.has_name()) { |
4794 set_has_name(); | 4835 set_has_name(); |
4795 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), from.name_); | 4836 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), from.name_); |
4796 } | 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 } |
4797 if (from.has_type_name()) { | 4847 if (from.has_type_name()) { |
4798 set_has_type_name(); | 4848 set_has_type_name(); |
4799 type_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyString
AlreadyInited(), from.type_name_); | 4849 type_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyString
AlreadyInited(), from.type_name_); |
4800 } | 4850 } |
4801 if (from.has_extendee()) { | 4851 if (from.has_extendee()) { |
4802 set_has_extendee(); | 4852 set_has_extendee(); |
4803 extendee_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringA
lreadyInited(), from.extendee_); | 4853 extendee_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringA
lreadyInited(), from.extendee_); |
4804 } | 4854 } |
4805 if (from.has_default_value()) { | 4855 if (from.has_default_value()) { |
4806 set_has_default_value(); | 4856 set_has_default_value(); |
4807 default_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited(), from.default_value_); | 4857 default_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited(), from.default_value_); |
4808 } | 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))) { |
4809 if (from.has_json_name()) { | 4864 if (from.has_json_name()) { |
4810 set_has_json_name(); | 4865 set_has_json_name(); |
4811 json_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyString
AlreadyInited(), from.json_name_); | 4866 json_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyString
AlreadyInited(), from.json_name_); |
4812 } | 4867 } |
4813 if (from.has_options()) { | 4868 if (from.has_options()) { |
4814 mutable_options()->::google::protobuf::FieldOptions::MergeFrom(from.option
s()); | 4869 mutable_options()->::google::protobuf::FieldOptions::MergeFrom(from.option
s()); |
4815 } | 4870 } |
4816 if (from.has_number()) { | |
4817 set_number(from.number()); | |
4818 } | |
4819 if (from.has_oneof_index()) { | |
4820 set_oneof_index(from.oneof_index()); | |
4821 } | |
4822 } | 4871 } |
4823 if (from._has_bits_[8 / 32] & 768u) { | 4872 if (from._internal_metadata_.have_unknown_fields()) { |
4824 if (from.has_label()) { | 4873 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
4825 set_label(from.label()); | |
4826 } | |
4827 if (from.has_type()) { | |
4828 set_type(from.type()); | |
4829 } | |
4830 } | 4874 } |
4831 } | 4875 } |
4832 | 4876 |
4833 void FieldDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { | 4877 void FieldDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { |
4834 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FieldDes
criptorProto) | 4878 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FieldDes
criptorProto) |
4835 if (&from == this) return; | 4879 if (&from == this) return; |
4836 Clear(); | 4880 Clear(); |
4837 MergeFrom(from); | 4881 MergeFrom(from); |
4838 } | 4882 } |
4839 | 4883 |
4840 void FieldDescriptorProto::CopyFrom(const FieldDescriptorProto& from) { | 4884 void FieldDescriptorProto::CopyFrom(const FieldDescriptorProto& from) { |
4841 // @@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) |
4842 if (&from == this) return; | 4886 if (&from == this) return; |
4843 Clear(); | 4887 Clear(); |
4844 MergeFrom(from); | 4888 MergeFrom(from); |
4845 } | 4889 } |
4846 | 4890 |
4847 bool FieldDescriptorProto::IsInitialized() const { | 4891 bool FieldDescriptorProto::IsInitialized() const { |
| 4892 |
4848 if (has_options()) { | 4893 if (has_options()) { |
4849 if (!this->options_->IsInitialized()) return false; | 4894 if (!this->options_->IsInitialized()) return false; |
4850 } | 4895 } |
4851 return true; | 4896 return true; |
4852 } | 4897 } |
4853 | 4898 |
4854 void FieldDescriptorProto::Swap(FieldDescriptorProto* other) { | 4899 void FieldDescriptorProto::Swap(FieldDescriptorProto* other) { |
4855 if (other == this) return; | 4900 if (other == this) return; |
4856 InternalSwap(other); | 4901 InternalSwap(other); |
4857 } | 4902 } |
4858 void FieldDescriptorProto::InternalSwap(FieldDescriptorProto* other) { | 4903 void FieldDescriptorProto::InternalSwap(FieldDescriptorProto* other) { |
4859 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_); |
4860 type_name_.Swap(&other->type_name_); | 4908 type_name_.Swap(&other->type_name_); |
4861 extendee_.Swap(&other->extendee_); | 4909 extendee_.Swap(&other->extendee_); |
4862 default_value_.Swap(&other->default_value_); | 4910 default_value_.Swap(&other->default_value_); |
| 4911 std::swap(oneof_index_, other->oneof_index_); |
4863 json_name_.Swap(&other->json_name_); | 4912 json_name_.Swap(&other->json_name_); |
4864 std::swap(options_, other->options_); | 4913 std::swap(options_, other->options_); |
4865 std::swap(number_, other->number_); | |
4866 std::swap(oneof_index_, other->oneof_index_); | |
4867 std::swap(label_, other->label_); | |
4868 std::swap(type_, other->type_); | |
4869 std::swap(_has_bits_[0], other->_has_bits_[0]); | 4914 std::swap(_has_bits_[0], other->_has_bits_[0]); |
4870 _internal_metadata_.Swap(&other->_internal_metadata_); | 4915 _internal_metadata_.Swap(&other->_internal_metadata_); |
4871 std::swap(_cached_size_, other->_cached_size_); | 4916 std::swap(_cached_size_, other->_cached_size_); |
4872 } | 4917 } |
4873 | 4918 |
4874 ::google::protobuf::Metadata FieldDescriptorProto::GetMetadata() const { | 4919 ::google::protobuf::Metadata FieldDescriptorProto::GetMetadata() const { |
4875 protobuf_AssignDescriptorsOnce(); | 4920 protobuf_AssignDescriptorsOnce(); |
4876 return file_level_metadata[5]; | 4921 ::google::protobuf::Metadata metadata; |
| 4922 metadata.descriptor = FieldDescriptorProto_descriptor_; |
| 4923 metadata.reflection = FieldDescriptorProto_reflection_; |
| 4924 return metadata; |
4877 } | 4925 } |
4878 | 4926 |
4879 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 4927 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
4880 // FieldDescriptorProto | 4928 // FieldDescriptorProto |
4881 | 4929 |
4882 // optional string name = 1; | 4930 // optional string name = 1; |
4883 bool FieldDescriptorProto::has_name() const { | 4931 bool FieldDescriptorProto::has_name() const { |
4884 return (_has_bits_[0] & 0x00000001u) != 0; | 4932 return (_has_bits_[0] & 0x00000001u) != 0; |
4885 } | 4933 } |
4886 void FieldDescriptorProto::set_has_name() { | 4934 void FieldDescriptorProto::set_has_name() { |
4887 _has_bits_[0] |= 0x00000001u; | 4935 _has_bits_[0] |= 0x00000001u; |
4888 } | 4936 } |
4889 void FieldDescriptorProto::clear_has_name() { | 4937 void FieldDescriptorProto::clear_has_name() { |
4890 _has_bits_[0] &= ~0x00000001u; | 4938 _has_bits_[0] &= ~0x00000001u; |
4891 } | 4939 } |
4892 void FieldDescriptorProto::clear_name() { | 4940 void FieldDescriptorProto::clear_name() { |
4893 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); | 4941 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); |
4894 clear_has_name(); | 4942 clear_has_name(); |
4895 } | 4943 } |
4896 const ::std::string& FieldDescriptorProto::name() const { | 4944 const ::std::string& FieldDescriptorProto::name() const { |
4897 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.nam
e) | 4945 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.nam
e) |
4898 return name_.GetNoArena(); | 4946 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited()); |
4899 } | 4947 } |
4900 void FieldDescriptorProto::set_name(const ::std::string& value) { | 4948 void FieldDescriptorProto::set_name(const ::std::string& value) { |
4901 set_has_name(); | 4949 set_has_name(); |
4902 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); | 4950 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); |
4903 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.nam
e) | 4951 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.nam
e) |
4904 } | 4952 } |
4905 #if LANG_CXX11 | 4953 void FieldDescriptorProto::set_name(const char* value) { |
4906 void FieldDescriptorProto::set_name(::std::string&& value) { | |
4907 set_has_name(); | |
4908 name_.SetNoArena( | |
4909 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va
lue)); | |
4910 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FieldDescriptorPr
oto.name) | |
4911 } | |
4912 #endif | |
4913 void FieldDescriptorProto::set_name(const char* value) { | |
4914 set_has_name(); | 4954 set_has_name(); |
4915 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); | 4955 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); |
4916 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProt
o.name) | 4956 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProt
o.name) |
4917 } | 4957 } |
4918 void FieldDescriptorProto::set_name(const char* value, size_t size) { | 4958 void FieldDescriptorProto::set_name(const char* value, size_t size) { |
4919 set_has_name(); | 4959 set_has_name(); |
4920 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), | 4960 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
4921 ::std::string(reinterpret_cast<const char*>(value), size)); | 4961 ::std::string(reinterpret_cast<const char*>(value), size)); |
4922 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorP
roto.name) | 4962 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorP
roto.name) |
4923 } | 4963 } |
4924 ::std::string* FieldDescriptorProto::mutable_name() { | 4964 ::std::string* FieldDescriptorProto::mutable_name() { |
4925 set_has_name(); | 4965 set_has_name(); |
4926 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto
.name) | 4966 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto
.name) |
4927 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 4967 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
4928 } | 4968 } |
4929 ::std::string* FieldDescriptorProto::release_name() { | 4969 ::std::string* FieldDescriptorProto::release_name() { |
4930 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto
.name) | 4970 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto
.name) |
4931 clear_has_name(); | 4971 clear_has_name(); |
4932 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 4972 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
4933 } | 4973 } |
4934 void FieldDescriptorProto::set_allocated_name(::std::string* name) { | 4974 void FieldDescriptorProto::set_allocated_name(::std::string* name) { |
4935 if (name != NULL) { | 4975 if (name != NULL) { |
4936 set_has_name(); | 4976 set_has_name(); |
4937 } else { | 4977 } else { |
4938 clear_has_name(); | 4978 clear_has_name(); |
4939 } | 4979 } |
4940 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), name); | 4980 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), name); |
4941 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto
rProto.name) | 4981 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto
rProto.name) |
4942 } | 4982 } |
4943 | 4983 |
4944 // optional int32 number = 3; | 4984 // optional int32 number = 3; |
4945 bool FieldDescriptorProto::has_number() const { | 4985 bool FieldDescriptorProto::has_number() const { |
4946 return (_has_bits_[0] & 0x00000040u) != 0; | 4986 return (_has_bits_[0] & 0x00000002u) != 0; |
4947 } | 4987 } |
4948 void FieldDescriptorProto::set_has_number() { | 4988 void FieldDescriptorProto::set_has_number() { |
4949 _has_bits_[0] |= 0x00000040u; | 4989 _has_bits_[0] |= 0x00000002u; |
4950 } | 4990 } |
4951 void FieldDescriptorProto::clear_has_number() { | 4991 void FieldDescriptorProto::clear_has_number() { |
4952 _has_bits_[0] &= ~0x00000040u; | 4992 _has_bits_[0] &= ~0x00000002u; |
4953 } | 4993 } |
4954 void FieldDescriptorProto::clear_number() { | 4994 void FieldDescriptorProto::clear_number() { |
4955 number_ = 0; | 4995 number_ = 0; |
4956 clear_has_number(); | 4996 clear_has_number(); |
4957 } | 4997 } |
4958 ::google::protobuf::int32 FieldDescriptorProto::number() const { | 4998 ::google::protobuf::int32 FieldDescriptorProto::number() const { |
4959 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.num
ber) | 4999 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.num
ber) |
4960 return number_; | 5000 return number_; |
4961 } | 5001 } |
4962 void FieldDescriptorProto::set_number(::google::protobuf::int32 value) { | 5002 void FieldDescriptorProto::set_number(::google::protobuf::int32 value) { |
4963 set_has_number(); | 5003 set_has_number(); |
4964 number_ = value; | 5004 number_ = value; |
4965 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.num
ber) | 5005 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.num
ber) |
4966 } | 5006 } |
4967 | 5007 |
4968 // optional .google.protobuf.FieldDescriptorProto.Label label = 4; | 5008 // optional .google.protobuf.FieldDescriptorProto.Label label = 4; |
4969 bool FieldDescriptorProto::has_label() const { | 5009 bool FieldDescriptorProto::has_label() const { |
4970 return (_has_bits_[0] & 0x00000100u) != 0; | 5010 return (_has_bits_[0] & 0x00000004u) != 0; |
4971 } | 5011 } |
4972 void FieldDescriptorProto::set_has_label() { | 5012 void FieldDescriptorProto::set_has_label() { |
4973 _has_bits_[0] |= 0x00000100u; | 5013 _has_bits_[0] |= 0x00000004u; |
4974 } | 5014 } |
4975 void FieldDescriptorProto::clear_has_label() { | 5015 void FieldDescriptorProto::clear_has_label() { |
4976 _has_bits_[0] &= ~0x00000100u; | 5016 _has_bits_[0] &= ~0x00000004u; |
4977 } | 5017 } |
4978 void FieldDescriptorProto::clear_label() { | 5018 void FieldDescriptorProto::clear_label() { |
4979 label_ = 1; | 5019 label_ = 1; |
4980 clear_has_label(); | 5020 clear_has_label(); |
4981 } | 5021 } |
4982 ::google::protobuf::FieldDescriptorProto_Label FieldDescriptorProto::label() con
st { | 5022 ::google::protobuf::FieldDescriptorProto_Label FieldDescriptorProto::label() co
nst { |
4983 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.lab
el) | 5023 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.lab
el) |
4984 return static_cast< ::google::protobuf::FieldDescriptorProto_Label >(label_); | 5024 return static_cast< ::google::protobuf::FieldDescriptorProto_Label >(label_); |
4985 } | 5025 } |
4986 void FieldDescriptorProto::set_label(::google::protobuf::FieldDescriptorProto_La
bel value) { | 5026 void FieldDescriptorProto::set_label(::google::protobuf::FieldDescriptorProto_L
abel value) { |
4987 assert(::google::protobuf::FieldDescriptorProto_Label_IsValid(value)); | 5027 assert(::google::protobuf::FieldDescriptorProto_Label_IsValid(value)); |
4988 set_has_label(); | 5028 set_has_label(); |
4989 label_ = value; | 5029 label_ = value; |
4990 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.lab
el) | 5030 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.lab
el) |
4991 } | 5031 } |
4992 | 5032 |
4993 // optional .google.protobuf.FieldDescriptorProto.Type type = 5; | 5033 // optional .google.protobuf.FieldDescriptorProto.Type type = 5; |
4994 bool FieldDescriptorProto::has_type() const { | 5034 bool FieldDescriptorProto::has_type() const { |
4995 return (_has_bits_[0] & 0x00000200u) != 0; | 5035 return (_has_bits_[0] & 0x00000008u) != 0; |
4996 } | 5036 } |
4997 void FieldDescriptorProto::set_has_type() { | 5037 void FieldDescriptorProto::set_has_type() { |
4998 _has_bits_[0] |= 0x00000200u; | 5038 _has_bits_[0] |= 0x00000008u; |
4999 } | 5039 } |
5000 void FieldDescriptorProto::clear_has_type() { | 5040 void FieldDescriptorProto::clear_has_type() { |
5001 _has_bits_[0] &= ~0x00000200u; | 5041 _has_bits_[0] &= ~0x00000008u; |
5002 } | 5042 } |
5003 void FieldDescriptorProto::clear_type() { | 5043 void FieldDescriptorProto::clear_type() { |
5004 type_ = 1; | 5044 type_ = 1; |
5005 clear_has_type(); | 5045 clear_has_type(); |
5006 } | 5046 } |
5007 ::google::protobuf::FieldDescriptorProto_Type FieldDescriptorProto::type() const
{ | 5047 ::google::protobuf::FieldDescriptorProto_Type FieldDescriptorProto::type() cons
t { |
5008 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.typ
e) | 5048 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.typ
e) |
5009 return static_cast< ::google::protobuf::FieldDescriptorProto_Type >(type_); | 5049 return static_cast< ::google::protobuf::FieldDescriptorProto_Type >(type_); |
5010 } | 5050 } |
5011 void FieldDescriptorProto::set_type(::google::protobuf::FieldDescriptorProto_Typ
e value) { | 5051 void FieldDescriptorProto::set_type(::google::protobuf::FieldDescriptorProto_Ty
pe value) { |
5012 assert(::google::protobuf::FieldDescriptorProto_Type_IsValid(value)); | 5052 assert(::google::protobuf::FieldDescriptorProto_Type_IsValid(value)); |
5013 set_has_type(); | 5053 set_has_type(); |
5014 type_ = value; | 5054 type_ = value; |
5015 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.typ
e) | 5055 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.typ
e) |
5016 } | 5056 } |
5017 | 5057 |
5018 // optional string type_name = 6; | 5058 // optional string type_name = 6; |
5019 bool FieldDescriptorProto::has_type_name() const { | 5059 bool FieldDescriptorProto::has_type_name() const { |
5020 return (_has_bits_[0] & 0x00000002u) != 0; | 5060 return (_has_bits_[0] & 0x00000010u) != 0; |
5021 } | 5061 } |
5022 void FieldDescriptorProto::set_has_type_name() { | 5062 void FieldDescriptorProto::set_has_type_name() { |
5023 _has_bits_[0] |= 0x00000002u; | 5063 _has_bits_[0] |= 0x00000010u; |
5024 } | 5064 } |
5025 void FieldDescriptorProto::clear_has_type_name() { | 5065 void FieldDescriptorProto::clear_has_type_name() { |
5026 _has_bits_[0] &= ~0x00000002u; | 5066 _has_bits_[0] &= ~0x00000010u; |
5027 } | 5067 } |
5028 void FieldDescriptorProto::clear_type_name() { | 5068 void FieldDescriptorProto::clear_type_name() { |
5029 type_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); | 5069 type_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); |
5030 clear_has_type_name(); | 5070 clear_has_type_name(); |
5031 } | 5071 } |
5032 const ::std::string& FieldDescriptorProto::type_name() const { | 5072 const ::std::string& FieldDescriptorProto::type_name() const { |
5033 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.typ
e_name) | 5073 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.typ
e_name) |
5034 return type_name_.GetNoArena(); | 5074 return type_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); |
5035 } | 5075 } |
5036 void FieldDescriptorProto::set_type_name(const ::std::string& value) { | 5076 void FieldDescriptorProto::set_type_name(const ::std::string& value) { |
5037 set_has_type_name(); | 5077 set_has_type_name(); |
5038 type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), value); | 5078 type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), value); |
5039 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.typ
e_name) | 5079 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.typ
e_name) |
5040 } | 5080 } |
5041 #if LANG_CXX11 | 5081 void FieldDescriptorProto::set_type_name(const char* value) { |
5042 void FieldDescriptorProto::set_type_name(::std::string&& value) { | |
5043 set_has_type_name(); | |
5044 type_name_.SetNoArena( | |
5045 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va
lue)); | |
5046 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FieldDescriptorPr
oto.type_name) | |
5047 } | |
5048 #endif | |
5049 void FieldDescriptorProto::set_type_name(const char* value) { | |
5050 set_has_type_name(); | 5082 set_has_type_name(); |
5051 type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), ::std::string(value)); | 5083 type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), ::std::string(value)); |
5052 // @@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) |
5053 } | 5085 } |
5054 void FieldDescriptorProto::set_type_name(const char* value, size_t size) { | 5086 void FieldDescriptorProto::set_type_name(const char* value, size_t size) { |
5055 set_has_type_name(); | 5087 set_has_type_name(); |
5056 type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), | 5088 type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), |
5057 ::std::string(reinterpret_cast<const char*>(value), size)); | 5089 ::std::string(reinterpret_cast<const char*>(value), size)); |
5058 // @@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) |
5059 } | 5091 } |
5060 ::std::string* FieldDescriptorProto::mutable_type_name() { | 5092 ::std::string* FieldDescriptorProto::mutable_type_name() { |
5061 set_has_type_name(); | 5093 set_has_type_name(); |
5062 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto
.type_name) | 5094 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto
.type_name) |
5063 return type_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); | 5095 return type_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); |
5064 } | 5096 } |
5065 ::std::string* FieldDescriptorProto::release_type_name() { | 5097 ::std::string* FieldDescriptorProto::release_type_name() { |
5066 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto
.type_name) | 5098 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto
.type_name) |
5067 clear_has_type_name(); | 5099 clear_has_type_name(); |
5068 return type_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); | 5100 return type_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); |
5069 } | 5101 } |
5070 void FieldDescriptorProto::set_allocated_type_name(::std::string* type_name) { | 5102 void FieldDescriptorProto::set_allocated_type_name(::std::string* type_name) { |
5071 if (type_name != NULL) { | 5103 if (type_name != NULL) { |
5072 set_has_type_name(); | 5104 set_has_type_name(); |
5073 } else { | 5105 } else { |
5074 clear_has_type_name(); | 5106 clear_has_type_name(); |
5075 } | 5107 } |
5076 type_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited(), type_name); | 5108 type_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited(), type_name); |
5077 // @@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) |
5078 } | 5110 } |
5079 | 5111 |
5080 // optional string extendee = 2; | 5112 // optional string extendee = 2; |
5081 bool FieldDescriptorProto::has_extendee() const { | 5113 bool FieldDescriptorProto::has_extendee() const { |
5082 return (_has_bits_[0] & 0x00000004u) != 0; | 5114 return (_has_bits_[0] & 0x00000020u) != 0; |
5083 } | 5115 } |
5084 void FieldDescriptorProto::set_has_extendee() { | 5116 void FieldDescriptorProto::set_has_extendee() { |
5085 _has_bits_[0] |= 0x00000004u; | 5117 _has_bits_[0] |= 0x00000020u; |
5086 } | 5118 } |
5087 void FieldDescriptorProto::clear_has_extendee() { | 5119 void FieldDescriptorProto::clear_has_extendee() { |
5088 _has_bits_[0] &= ~0x00000004u; | 5120 _has_bits_[0] &= ~0x00000020u; |
5089 } | 5121 } |
5090 void FieldDescriptorProto::clear_extendee() { | 5122 void FieldDescriptorProto::clear_extendee() { |
5091 extendee_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); | 5123 extendee_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); |
5092 clear_has_extendee(); | 5124 clear_has_extendee(); |
5093 } | 5125 } |
5094 const ::std::string& FieldDescriptorProto::extendee() const { | 5126 const ::std::string& FieldDescriptorProto::extendee() const { |
5095 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.ext
endee) | 5127 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.ext
endee) |
5096 return extendee_.GetNoArena(); | 5128 return extendee_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
5097 } | 5129 } |
5098 void FieldDescriptorProto::set_extendee(const ::std::string& value) { | 5130 void FieldDescriptorProto::set_extendee(const ::std::string& value) { |
5099 set_has_extendee(); | 5131 set_has_extendee(); |
5100 extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d(), value); | 5132 extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d(), value); |
5101 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.ext
endee) | 5133 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.ext
endee) |
5102 } | 5134 } |
5103 #if LANG_CXX11 | 5135 void FieldDescriptorProto::set_extendee(const char* value) { |
5104 void FieldDescriptorProto::set_extendee(::std::string&& value) { | |
5105 set_has_extendee(); | |
5106 extendee_.SetNoArena( | |
5107 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va
lue)); | |
5108 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FieldDescriptorPr
oto.extendee) | |
5109 } | |
5110 #endif | |
5111 void FieldDescriptorProto::set_extendee(const char* value) { | |
5112 set_has_extendee(); | 5136 set_has_extendee(); |
5113 extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d(), ::std::string(value)); | 5137 extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d(), ::std::string(value)); |
5114 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProt
o.extendee) | 5138 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProt
o.extendee) |
5115 } | 5139 } |
5116 void FieldDescriptorProto::set_extendee(const char* value, size_t size) { | 5140 void FieldDescriptorProto::set_extendee(const char* value, size_t size) { |
5117 set_has_extendee(); | 5141 set_has_extendee(); |
5118 extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d(), | 5142 extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d(), |
5119 ::std::string(reinterpret_cast<const char*>(value), size)); | 5143 ::std::string(reinterpret_cast<const char*>(value), size)); |
5120 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorP
roto.extendee) | 5144 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorP
roto.extendee) |
5121 } | 5145 } |
5122 ::std::string* FieldDescriptorProto::mutable_extendee() { | 5146 ::std::string* FieldDescriptorProto::mutable_extendee() { |
5123 set_has_extendee(); | 5147 set_has_extendee(); |
5124 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto
.extendee) | 5148 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto
.extendee) |
5125 return extendee_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringA
lreadyInited()); | 5149 return extendee_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringA
lreadyInited()); |
5126 } | 5150 } |
5127 ::std::string* FieldDescriptorProto::release_extendee() { | 5151 ::std::string* FieldDescriptorProto::release_extendee() { |
5128 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto
.extendee) | 5152 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto
.extendee) |
5129 clear_has_extendee(); | 5153 clear_has_extendee(); |
5130 return extendee_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringA
lreadyInited()); | 5154 return extendee_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringA
lreadyInited()); |
5131 } | 5155 } |
5132 void FieldDescriptorProto::set_allocated_extendee(::std::string* extendee) { | 5156 void FieldDescriptorProto::set_allocated_extendee(::std::string* extendee) { |
5133 if (extendee != NULL) { | 5157 if (extendee != NULL) { |
5134 set_has_extendee(); | 5158 set_has_extendee(); |
5135 } else { | 5159 } else { |
5136 clear_has_extendee(); | 5160 clear_has_extendee(); |
5137 } | 5161 } |
5138 extendee_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited(), extendee); | 5162 extendee_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited(), extendee); |
5139 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto
rProto.extendee) | 5163 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto
rProto.extendee) |
5140 } | 5164 } |
5141 | 5165 |
5142 // optional string default_value = 7; | 5166 // optional string default_value = 7; |
5143 bool FieldDescriptorProto::has_default_value() const { | 5167 bool FieldDescriptorProto::has_default_value() const { |
5144 return (_has_bits_[0] & 0x00000008u) != 0; | 5168 return (_has_bits_[0] & 0x00000040u) != 0; |
5145 } | 5169 } |
5146 void FieldDescriptorProto::set_has_default_value() { | 5170 void FieldDescriptorProto::set_has_default_value() { |
5147 _has_bits_[0] |= 0x00000008u; | 5171 _has_bits_[0] |= 0x00000040u; |
5148 } | 5172 } |
5149 void FieldDescriptorProto::clear_has_default_value() { | 5173 void FieldDescriptorProto::clear_has_default_value() { |
5150 _has_bits_[0] &= ~0x00000008u; | 5174 _has_bits_[0] &= ~0x00000040u; |
5151 } | 5175 } |
5152 void FieldDescriptorProto::clear_default_value() { | 5176 void FieldDescriptorProto::clear_default_value() { |
5153 default_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); | 5177 default_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); |
5154 clear_has_default_value(); | 5178 clear_has_default_value(); |
5155 } | 5179 } |
5156 const ::std::string& FieldDescriptorProto::default_value() const { | 5180 const ::std::string& FieldDescriptorProto::default_value() const { |
5157 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.def
ault_value) | 5181 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.def
ault_value) |
5158 return default_value_.GetNoArena(); | 5182 return default_value_.GetNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); |
5159 } | 5183 } |
5160 void FieldDescriptorProto::set_default_value(const ::std::string& value) { | 5184 void FieldDescriptorProto::set_default_value(const ::std::string& value) { |
5161 set_has_default_value(); | 5185 set_has_default_value(); |
5162 default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), value); | 5186 default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), value); |
5163 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.def
ault_value) | 5187 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.def
ault_value) |
5164 } | 5188 } |
5165 #if LANG_CXX11 | 5189 void FieldDescriptorProto::set_default_value(const char* value) { |
5166 void FieldDescriptorProto::set_default_value(::std::string&& value) { | |
5167 set_has_default_value(); | |
5168 default_value_.SetNoArena( | |
5169 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va
lue)); | |
5170 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FieldDescriptorPr
oto.default_value) | |
5171 } | |
5172 #endif | |
5173 void FieldDescriptorProto::set_default_value(const char* value) { | |
5174 set_has_default_value(); | 5190 set_has_default_value(); |
5175 default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), ::std::string(value)); | 5191 default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), ::std::string(value)); |
5176 // @@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) |
5177 } | 5193 } |
5178 void FieldDescriptorProto::set_default_value(const char* value, size_t size) { | 5194 void FieldDescriptorProto::set_default_value(const char* value, size_t size) { |
5179 set_has_default_value(); | 5195 set_has_default_value(); |
5180 default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), | 5196 default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), |
5181 ::std::string(reinterpret_cast<const char*>(value), size)); | 5197 ::std::string(reinterpret_cast<const char*>(value), size)); |
5182 // @@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) |
5183 } | 5199 } |
5184 ::std::string* FieldDescriptorProto::mutable_default_value() { | 5200 ::std::string* FieldDescriptorProto::mutable_default_value() { |
5185 set_has_default_value(); | 5201 set_has_default_value(); |
5186 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto
.default_value) | 5202 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto
.default_value) |
5187 return default_value_.MutableNoArena(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited()); | 5203 return default_value_.MutableNoArena(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited()); |
5188 } | 5204 } |
5189 ::std::string* FieldDescriptorProto::release_default_value() { | 5205 ::std::string* FieldDescriptorProto::release_default_value() { |
5190 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto
.default_value) | 5206 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto
.default_value) |
5191 clear_has_default_value(); | 5207 clear_has_default_value(); |
5192 return default_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited()); | 5208 return default_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited()); |
5193 } | 5209 } |
5194 void FieldDescriptorProto::set_allocated_default_value(::std::string* default_va
lue) { | 5210 void FieldDescriptorProto::set_allocated_default_value(::std::string* default_v
alue) { |
5195 if (default_value != NULL) { | 5211 if (default_value != NULL) { |
5196 set_has_default_value(); | 5212 set_has_default_value(); |
5197 } else { | 5213 } else { |
5198 clear_has_default_value(); | 5214 clear_has_default_value(); |
5199 } | 5215 } |
5200 default_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited(), default_value); | 5216 default_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited(), default_value); |
5201 // @@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) |
5202 } | 5218 } |
5203 | 5219 |
5204 // optional int32 oneof_index = 9; | 5220 // optional int32 oneof_index = 9; |
5205 bool FieldDescriptorProto::has_oneof_index() const { | 5221 bool FieldDescriptorProto::has_oneof_index() const { |
5206 return (_has_bits_[0] & 0x00000080u) != 0; | 5222 return (_has_bits_[0] & 0x00000080u) != 0; |
5207 } | 5223 } |
5208 void FieldDescriptorProto::set_has_oneof_index() { | 5224 void FieldDescriptorProto::set_has_oneof_index() { |
5209 _has_bits_[0] |= 0x00000080u; | 5225 _has_bits_[0] |= 0x00000080u; |
5210 } | 5226 } |
5211 void FieldDescriptorProto::clear_has_oneof_index() { | 5227 void FieldDescriptorProto::clear_has_oneof_index() { |
5212 _has_bits_[0] &= ~0x00000080u; | 5228 _has_bits_[0] &= ~0x00000080u; |
5213 } | 5229 } |
5214 void FieldDescriptorProto::clear_oneof_index() { | 5230 void FieldDescriptorProto::clear_oneof_index() { |
5215 oneof_index_ = 0; | 5231 oneof_index_ = 0; |
5216 clear_has_oneof_index(); | 5232 clear_has_oneof_index(); |
5217 } | 5233 } |
5218 ::google::protobuf::int32 FieldDescriptorProto::oneof_index() const { | 5234 ::google::protobuf::int32 FieldDescriptorProto::oneof_index() const { |
5219 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.one
of_index) | 5235 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.one
of_index) |
5220 return oneof_index_; | 5236 return oneof_index_; |
5221 } | 5237 } |
5222 void FieldDescriptorProto::set_oneof_index(::google::protobuf::int32 value) { | 5238 void FieldDescriptorProto::set_oneof_index(::google::protobuf::int32 value) { |
5223 set_has_oneof_index(); | 5239 set_has_oneof_index(); |
5224 oneof_index_ = value; | 5240 oneof_index_ = value; |
5225 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.one
of_index) | 5241 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.one
of_index) |
5226 } | 5242 } |
5227 | 5243 |
5228 // optional string json_name = 10; | 5244 // optional string json_name = 10; |
5229 bool FieldDescriptorProto::has_json_name() const { | 5245 bool FieldDescriptorProto::has_json_name() const { |
5230 return (_has_bits_[0] & 0x00000010u) != 0; | 5246 return (_has_bits_[0] & 0x00000100u) != 0; |
5231 } | 5247 } |
5232 void FieldDescriptorProto::set_has_json_name() { | 5248 void FieldDescriptorProto::set_has_json_name() { |
5233 _has_bits_[0] |= 0x00000010u; | 5249 _has_bits_[0] |= 0x00000100u; |
5234 } | 5250 } |
5235 void FieldDescriptorProto::clear_has_json_name() { | 5251 void FieldDescriptorProto::clear_has_json_name() { |
5236 _has_bits_[0] &= ~0x00000010u; | 5252 _has_bits_[0] &= ~0x00000100u; |
5237 } | 5253 } |
5238 void FieldDescriptorProto::clear_json_name() { | 5254 void FieldDescriptorProto::clear_json_name() { |
5239 json_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); | 5255 json_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); |
5240 clear_has_json_name(); | 5256 clear_has_json_name(); |
5241 } | 5257 } |
5242 const ::std::string& FieldDescriptorProto::json_name() const { | 5258 const ::std::string& FieldDescriptorProto::json_name() const { |
5243 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.jso
n_name) | 5259 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.jso
n_name) |
5244 return json_name_.GetNoArena(); | 5260 return json_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); |
5245 } | 5261 } |
5246 void FieldDescriptorProto::set_json_name(const ::std::string& value) { | 5262 void FieldDescriptorProto::set_json_name(const ::std::string& value) { |
5247 set_has_json_name(); | 5263 set_has_json_name(); |
5248 json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), value); | 5264 json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), value); |
5249 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.jso
n_name) | 5265 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.jso
n_name) |
5250 } | 5266 } |
5251 #if LANG_CXX11 | 5267 void FieldDescriptorProto::set_json_name(const char* value) { |
5252 void FieldDescriptorProto::set_json_name(::std::string&& value) { | |
5253 set_has_json_name(); | |
5254 json_name_.SetNoArena( | |
5255 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va
lue)); | |
5256 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FieldDescriptorPr
oto.json_name) | |
5257 } | |
5258 #endif | |
5259 void FieldDescriptorProto::set_json_name(const char* value) { | |
5260 set_has_json_name(); | 5268 set_has_json_name(); |
5261 json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), ::std::string(value)); | 5269 json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), ::std::string(value)); |
5262 // @@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) |
5263 } | 5271 } |
5264 void FieldDescriptorProto::set_json_name(const char* value, size_t size) { | 5272 void FieldDescriptorProto::set_json_name(const char* value, size_t size) { |
5265 set_has_json_name(); | 5273 set_has_json_name(); |
5266 json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), | 5274 json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), |
5267 ::std::string(reinterpret_cast<const char*>(value), size)); | 5275 ::std::string(reinterpret_cast<const char*>(value), size)); |
5268 // @@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) |
5269 } | 5277 } |
5270 ::std::string* FieldDescriptorProto::mutable_json_name() { | 5278 ::std::string* FieldDescriptorProto::mutable_json_name() { |
5271 set_has_json_name(); | 5279 set_has_json_name(); |
5272 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto
.json_name) | 5280 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto
.json_name) |
5273 return json_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); | 5281 return json_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); |
5274 } | 5282 } |
5275 ::std::string* FieldDescriptorProto::release_json_name() { | 5283 ::std::string* FieldDescriptorProto::release_json_name() { |
5276 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto
.json_name) | 5284 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto
.json_name) |
5277 clear_has_json_name(); | 5285 clear_has_json_name(); |
5278 return json_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); | 5286 return json_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); |
5279 } | 5287 } |
5280 void FieldDescriptorProto::set_allocated_json_name(::std::string* json_name) { | 5288 void FieldDescriptorProto::set_allocated_json_name(::std::string* json_name) { |
5281 if (json_name != NULL) { | 5289 if (json_name != NULL) { |
5282 set_has_json_name(); | 5290 set_has_json_name(); |
5283 } else { | 5291 } else { |
5284 clear_has_json_name(); | 5292 clear_has_json_name(); |
5285 } | 5293 } |
5286 json_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited(), json_name); | 5294 json_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited(), json_name); |
5287 // @@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) |
5288 } | 5296 } |
5289 | 5297 |
5290 // optional .google.protobuf.FieldOptions options = 8; | 5298 // optional .google.protobuf.FieldOptions options = 8; |
5291 bool FieldDescriptorProto::has_options() const { | 5299 bool FieldDescriptorProto::has_options() const { |
5292 return (_has_bits_[0] & 0x00000020u) != 0; | 5300 return (_has_bits_[0] & 0x00000200u) != 0; |
5293 } | 5301 } |
5294 void FieldDescriptorProto::set_has_options() { | 5302 void FieldDescriptorProto::set_has_options() { |
5295 _has_bits_[0] |= 0x00000020u; | 5303 _has_bits_[0] |= 0x00000200u; |
5296 } | 5304 } |
5297 void FieldDescriptorProto::clear_has_options() { | 5305 void FieldDescriptorProto::clear_has_options() { |
5298 _has_bits_[0] &= ~0x00000020u; | 5306 _has_bits_[0] &= ~0x00000200u; |
5299 } | 5307 } |
5300 void FieldDescriptorProto::clear_options() { | 5308 void FieldDescriptorProto::clear_options() { |
5301 if (options_ != NULL) options_->::google::protobuf::FieldOptions::Clear(); | 5309 if (options_ != NULL) options_->::google::protobuf::FieldOptions::Clear(); |
5302 clear_has_options(); | 5310 clear_has_options(); |
5303 } | 5311 } |
5304 const ::google::protobuf::FieldOptions& FieldDescriptorProto::options() const { | 5312 const ::google::protobuf::FieldOptions& FieldDescriptorProto::options() const { |
5305 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.opt
ions) | 5313 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.opt
ions) |
5306 return options_ != NULL ? *options_ | 5314 return options_ != NULL ? *options_ : *default_instance_->options_; |
5307 : *::google::protobuf::FieldOptions::internal_default_i
nstance(); | |
5308 } | 5315 } |
5309 ::google::protobuf::FieldOptions* FieldDescriptorProto::mutable_options() { | 5316 ::google::protobuf::FieldOptions* FieldDescriptorProto::mutable_options() { |
5310 set_has_options(); | 5317 set_has_options(); |
5311 if (options_ == NULL) { | 5318 if (options_ == NULL) { |
5312 options_ = new ::google::protobuf::FieldOptions; | 5319 options_ = new ::google::protobuf::FieldOptions; |
5313 } | 5320 } |
5314 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto
.options) | 5321 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto
.options) |
5315 return options_; | 5322 return options_; |
5316 } | 5323 } |
5317 ::google::protobuf::FieldOptions* FieldDescriptorProto::release_options() { | 5324 ::google::protobuf::FieldOptions* FieldDescriptorProto::release_options() { |
(...skipping 13 matching lines...) Expand all Loading... |
5331 } | 5338 } |
5332 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto
rProto.options) | 5339 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto
rProto.options) |
5333 } | 5340 } |
5334 | 5341 |
5335 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 5342 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
5336 | 5343 |
5337 // =================================================================== | 5344 // =================================================================== |
5338 | 5345 |
5339 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 5346 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
5340 const int OneofDescriptorProto::kNameFieldNumber; | 5347 const int OneofDescriptorProto::kNameFieldNumber; |
5341 const int OneofDescriptorProto::kOptionsFieldNumber; | |
5342 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 5348 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
5343 | 5349 |
5344 OneofDescriptorProto::OneofDescriptorProto() | 5350 OneofDescriptorProto::OneofDescriptorProto() |
5345 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 5351 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
5346 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
5347 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
5348 } | |
5349 SharedCtor(); | 5352 SharedCtor(); |
5350 // @@protoc_insertion_point(constructor:google.protobuf.OneofDescriptorProto) | 5353 // @@protoc_insertion_point(constructor:google.protobuf.OneofDescriptorProto) |
5351 } | 5354 } |
| 5355 |
| 5356 void OneofDescriptorProto::InitAsDefaultInstance() { |
| 5357 } |
| 5358 |
5352 OneofDescriptorProto::OneofDescriptorProto(const OneofDescriptorProto& from) | 5359 OneofDescriptorProto::OneofDescriptorProto(const OneofDescriptorProto& from) |
5353 : ::google::protobuf::Message(), | 5360 : ::google::protobuf::Message(), |
5354 _internal_metadata_(NULL), | 5361 _internal_metadata_(NULL) { |
5355 _has_bits_(from._has_bits_), | 5362 SharedCtor(); |
5356 _cached_size_(0) { | 5363 MergeFrom(from); |
5357 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
5358 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); | |
5359 if (from.has_name()) { | |
5360 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), from.name_); | |
5361 } | |
5362 if (from.has_options()) { | |
5363 options_ = new ::google::protobuf::OneofOptions(*from.options_); | |
5364 } else { | |
5365 options_ = NULL; | |
5366 } | |
5367 // @@protoc_insertion_point(copy_constructor:google.protobuf.OneofDescriptorPr
oto) | 5364 // @@protoc_insertion_point(copy_constructor:google.protobuf.OneofDescriptorPr
oto) |
5368 } | 5365 } |
5369 | 5366 |
5370 void OneofDescriptorProto::SharedCtor() { | 5367 void OneofDescriptorProto::SharedCtor() { |
| 5368 ::google::protobuf::internal::GetEmptyString(); |
5371 _cached_size_ = 0; | 5369 _cached_size_ = 0; |
5372 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); | 5370 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); |
5373 options_ = NULL; | 5371 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
5374 } | 5372 } |
5375 | 5373 |
5376 OneofDescriptorProto::~OneofDescriptorProto() { | 5374 OneofDescriptorProto::~OneofDescriptorProto() { |
5377 // @@protoc_insertion_point(destructor:google.protobuf.OneofDescriptorProto) | 5375 // @@protoc_insertion_point(destructor:google.protobuf.OneofDescriptorProto) |
5378 SharedDtor(); | 5376 SharedDtor(); |
5379 } | 5377 } |
5380 | 5378 |
5381 void OneofDescriptorProto::SharedDtor() { | 5379 void OneofDescriptorProto::SharedDtor() { |
5382 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d()); | 5380 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d()); |
5383 if (this != internal_default_instance()) { | 5381 if (this != default_instance_) { |
5384 delete options_; | |
5385 } | 5382 } |
5386 } | 5383 } |
5387 | 5384 |
5388 void OneofDescriptorProto::SetCachedSize(int size) const { | 5385 void OneofDescriptorProto::SetCachedSize(int size) const { |
5389 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 5386 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
5390 _cached_size_ = size; | 5387 _cached_size_ = size; |
5391 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 5388 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
5392 } | 5389 } |
5393 const ::google::protobuf::Descriptor* OneofDescriptorProto::descriptor() { | 5390 const ::google::protobuf::Descriptor* OneofDescriptorProto::descriptor() { |
5394 protobuf_AssignDescriptorsOnce(); | 5391 protobuf_AssignDescriptorsOnce(); |
5395 return file_level_metadata[6].descriptor; | 5392 return OneofDescriptorProto_descriptor_; |
5396 } | 5393 } |
5397 | 5394 |
5398 const OneofDescriptorProto& OneofDescriptorProto::default_instance() { | 5395 const OneofDescriptorProto& OneofDescriptorProto::default_instance() { |
5399 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 5396 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
5400 return *internal_default_instance(); | 5397 return *default_instance_; |
5401 } | 5398 } |
5402 | 5399 |
| 5400 OneofDescriptorProto* OneofDescriptorProto::default_instance_ = NULL; |
| 5401 |
5403 OneofDescriptorProto* OneofDescriptorProto::New(::google::protobuf::Arena* arena
) const { | 5402 OneofDescriptorProto* OneofDescriptorProto::New(::google::protobuf::Arena* arena
) const { |
5404 OneofDescriptorProto* n = new OneofDescriptorProto; | 5403 OneofDescriptorProto* n = new OneofDescriptorProto; |
5405 if (arena != NULL) { | 5404 if (arena != NULL) { |
5406 arena->Own(n); | 5405 arena->Own(n); |
5407 } | 5406 } |
5408 return n; | 5407 return n; |
5409 } | 5408 } |
5410 | 5409 |
5411 void OneofDescriptorProto::Clear() { | 5410 void OneofDescriptorProto::Clear() { |
5412 // @@protoc_insertion_point(message_clear_start:google.protobuf.OneofDescriptorP
roto) | 5411 // @@protoc_insertion_point(message_clear_start:google.protobuf.OneofDescriptorP
roto) |
5413 if (_has_bits_[0 / 32] & 3u) { | 5412 if (has_name()) { |
5414 if (has_name()) { | 5413 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
5415 GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited())); | |
5416 (*name_.UnsafeRawStringPointer())->clear(); | |
5417 } | |
5418 if (has_options()) { | |
5419 GOOGLE_DCHECK(options_ != NULL); | |
5420 options_->::google::protobuf::OneofOptions::Clear(); | |
5421 } | |
5422 } | 5414 } |
5423 _has_bits_.Clear(); | 5415 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
5424 _internal_metadata_.Clear(); | 5416 if (_internal_metadata_.have_unknown_fields()) { |
| 5417 mutable_unknown_fields()->Clear(); |
| 5418 } |
5425 } | 5419 } |
5426 | 5420 |
5427 bool OneofDescriptorProto::MergePartialFromCodedStream( | 5421 bool OneofDescriptorProto::MergePartialFromCodedStream( |
5428 ::google::protobuf::io::CodedInputStream* input) { | 5422 ::google::protobuf::io::CodedInputStream* input) { |
5429 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 5423 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
5430 ::google::protobuf::uint32 tag; | 5424 ::google::protobuf::uint32 tag; |
5431 // @@protoc_insertion_point(parse_start:google.protobuf.OneofDescriptorProto) | 5425 // @@protoc_insertion_point(parse_start:google.protobuf.OneofDescriptorProto) |
5432 for (;;) { | 5426 for (;;) { |
5433 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 5427 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
5434 tag = p.first; | 5428 tag = p.first; |
5435 if (!p.second) goto handle_unusual; | 5429 if (!p.second) goto handle_unusual; |
5436 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 5430 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
5437 // optional string name = 1; | 5431 // optional string name = 1; |
5438 case 1: { | 5432 case 1: { |
5439 if (tag == 10u) { | 5433 if (tag == 10) { |
5440 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 5434 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
5441 input, this->mutable_name())); | 5435 input, this->mutable_name())); |
5442 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 5436 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
5443 this->name().data(), this->name().length(), | 5437 this->name().data(), this->name().length(), |
5444 ::google::protobuf::internal::WireFormat::PARSE, | 5438 ::google::protobuf::internal::WireFormat::PARSE, |
5445 "google.protobuf.OneofDescriptorProto.name"); | 5439 "google.protobuf.OneofDescriptorProto.name"); |
5446 } else { | 5440 } else { |
5447 goto handle_unusual; | 5441 goto handle_unusual; |
5448 } | 5442 } |
| 5443 if (input->ExpectAtEnd()) goto success; |
5449 break; | 5444 break; |
5450 } | 5445 } |
5451 | 5446 |
5452 // optional .google.protobuf.OneofOptions options = 2; | |
5453 case 2: { | |
5454 if (tag == 18u) { | |
5455 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | |
5456 input, mutable_options())); | |
5457 } else { | |
5458 goto handle_unusual; | |
5459 } | |
5460 break; | |
5461 } | |
5462 | |
5463 default: { | 5447 default: { |
5464 handle_unusual: | 5448 handle_unusual: |
5465 if (tag == 0 || | 5449 if (tag == 0 || |
5466 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 5450 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
5467 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 5451 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
5468 goto success; | 5452 goto success; |
5469 } | 5453 } |
5470 DO_(::google::protobuf::internal::WireFormat::SkipField( | 5454 DO_(::google::protobuf::internal::WireFormat::SkipField( |
5471 input, tag, mutable_unknown_fields())); | 5455 input, tag, mutable_unknown_fields())); |
5472 break; | 5456 break; |
(...skipping 15 matching lines...) Expand all Loading... |
5488 // optional string name = 1; | 5472 // optional string name = 1; |
5489 if (has_name()) { | 5473 if (has_name()) { |
5490 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 5474 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
5491 this->name().data(), this->name().length(), | 5475 this->name().data(), this->name().length(), |
5492 ::google::protobuf::internal::WireFormat::SERIALIZE, | 5476 ::google::protobuf::internal::WireFormat::SERIALIZE, |
5493 "google.protobuf.OneofDescriptorProto.name"); | 5477 "google.protobuf.OneofDescriptorProto.name"); |
5494 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( | 5478 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
5495 1, this->name(), output); | 5479 1, this->name(), output); |
5496 } | 5480 } |
5497 | 5481 |
5498 // optional .google.protobuf.OneofOptions options = 2; | |
5499 if (has_options()) { | |
5500 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | |
5501 2, *this->options_, output); | |
5502 } | |
5503 | |
5504 if (_internal_metadata_.have_unknown_fields()) { | 5482 if (_internal_metadata_.have_unknown_fields()) { |
5505 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 5483 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
5506 unknown_fields(), output); | 5484 unknown_fields(), output); |
5507 } | 5485 } |
5508 // @@protoc_insertion_point(serialize_end:google.protobuf.OneofDescriptorProto
) | 5486 // @@protoc_insertion_point(serialize_end:google.protobuf.OneofDescriptorProto
) |
5509 } | 5487 } |
5510 | 5488 |
5511 ::google::protobuf::uint8* OneofDescriptorProto::InternalSerializeWithCachedSize
sToArray( | 5489 ::google::protobuf::uint8* OneofDescriptorProto::SerializeWithCachedSizesToArray
( |
5512 bool deterministic, ::google::protobuf::uint8* target) const { | 5490 ::google::protobuf::uint8* target) const { |
5513 (void)deterministic; // Unused | |
5514 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.OneofDesc
riptorProto) | 5491 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.OneofDesc
riptorProto) |
5515 // optional string name = 1; | 5492 // optional string name = 1; |
5516 if (has_name()) { | 5493 if (has_name()) { |
5517 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 5494 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
5518 this->name().data(), this->name().length(), | 5495 this->name().data(), this->name().length(), |
5519 ::google::protobuf::internal::WireFormat::SERIALIZE, | 5496 ::google::protobuf::internal::WireFormat::SERIALIZE, |
5520 "google.protobuf.OneofDescriptorProto.name"); | 5497 "google.protobuf.OneofDescriptorProto.name"); |
5521 target = | 5498 target = |
5522 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 5499 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
5523 1, this->name(), target); | 5500 1, this->name(), target); |
5524 } | 5501 } |
5525 | 5502 |
5526 // optional .google.protobuf.OneofOptions options = 2; | |
5527 if (has_options()) { | |
5528 target = ::google::protobuf::internal::WireFormatLite:: | |
5529 InternalWriteMessageNoVirtualToArray( | |
5530 2, *this->options_, false, target); | |
5531 } | |
5532 | |
5533 if (_internal_metadata_.have_unknown_fields()) { | 5503 if (_internal_metadata_.have_unknown_fields()) { |
5534 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 5504 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
5535 unknown_fields(), target); | 5505 unknown_fields(), target); |
5536 } | 5506 } |
5537 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.OneofDescri
ptorProto) | 5507 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.OneofDescri
ptorProto) |
5538 return target; | 5508 return target; |
5539 } | 5509 } |
5540 | 5510 |
5541 size_t OneofDescriptorProto::ByteSizeLong() const { | 5511 int OneofDescriptorProto::ByteSize() const { |
5542 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.OneofDescrip
torProto) | 5512 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.OneofDescrip
torProto) |
5543 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 } |
5544 | 5521 |
5545 if (_internal_metadata_.have_unknown_fields()) { | 5522 if (_internal_metadata_.have_unknown_fields()) { |
5546 total_size += | 5523 total_size += |
5547 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | 5524 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
5548 unknown_fields()); | 5525 unknown_fields()); |
5549 } | 5526 } |
5550 if (_has_bits_[0 / 32] & 3u) { | |
5551 // optional string name = 1; | |
5552 if (has_name()) { | |
5553 total_size += 1 + | |
5554 ::google::protobuf::internal::WireFormatLite::StringSize( | |
5555 this->name()); | |
5556 } | |
5557 | |
5558 // optional .google.protobuf.OneofOptions options = 2; | |
5559 if (has_options()) { | |
5560 total_size += 1 + | |
5561 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
5562 *this->options_); | |
5563 } | |
5564 | |
5565 } | |
5566 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | |
5567 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 5527 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
5568 _cached_size_ = cached_size; | 5528 _cached_size_ = total_size; |
5569 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 5529 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
5570 return total_size; | 5530 return total_size; |
5571 } | 5531 } |
5572 | 5532 |
5573 void OneofDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { | 5533 void OneofDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
5574 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.OneofDe
scriptorProto) | 5534 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.OneofDe
scriptorProto) |
5575 GOOGLE_DCHECK_NE(&from, this); | 5535 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
5576 const OneofDescriptorProto* source = | 5536 const OneofDescriptorProto* source = |
5577 ::google::protobuf::internal::DynamicCastToGenerated<const OneofDescriptor
Proto>( | 5537 ::google::protobuf::internal::DynamicCastToGenerated<const OneofDescriptor
Proto>( |
5578 &from); | 5538 &from); |
5579 if (source == NULL) { | 5539 if (source == NULL) { |
5580 // @@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) |
5581 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 5541 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
5582 } else { | 5542 } else { |
5583 // @@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) |
5584 MergeFrom(*source); | 5544 MergeFrom(*source); |
5585 } | 5545 } |
5586 } | 5546 } |
5587 | 5547 |
5588 void OneofDescriptorProto::MergeFrom(const OneofDescriptorProto& from) { | 5548 void OneofDescriptorProto::MergeFrom(const OneofDescriptorProto& from) { |
5589 // @@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) |
5590 GOOGLE_DCHECK_NE(&from, this); | 5550 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
5591 _internal_metadata_.MergeFrom(from._internal_metadata_); | 5551 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
5592 if (from._has_bits_[0 / 32] & 3u) { | |
5593 if (from.has_name()) { | 5552 if (from.has_name()) { |
5594 set_has_name(); | 5553 set_has_name(); |
5595 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), from.name_); | 5554 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), from.name_); |
5596 } | 5555 } |
5597 if (from.has_options()) { | 5556 } |
5598 mutable_options()->::google::protobuf::OneofOptions::MergeFrom(from.option
s()); | 5557 if (from._internal_metadata_.have_unknown_fields()) { |
5599 } | 5558 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
5600 } | 5559 } |
5601 } | 5560 } |
5602 | 5561 |
5603 void OneofDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { | 5562 void OneofDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { |
5604 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.OneofDes
criptorProto) | 5563 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.OneofDes
criptorProto) |
5605 if (&from == this) return; | 5564 if (&from == this) return; |
5606 Clear(); | 5565 Clear(); |
5607 MergeFrom(from); | 5566 MergeFrom(from); |
5608 } | 5567 } |
5609 | 5568 |
5610 void OneofDescriptorProto::CopyFrom(const OneofDescriptorProto& from) { | 5569 void OneofDescriptorProto::CopyFrom(const OneofDescriptorProto& from) { |
5611 // @@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) |
5612 if (&from == this) return; | 5571 if (&from == this) return; |
5613 Clear(); | 5572 Clear(); |
5614 MergeFrom(from); | 5573 MergeFrom(from); |
5615 } | 5574 } |
5616 | 5575 |
5617 bool OneofDescriptorProto::IsInitialized() const { | 5576 bool OneofDescriptorProto::IsInitialized() const { |
5618 if (has_options()) { | 5577 |
5619 if (!this->options_->IsInitialized()) return false; | |
5620 } | |
5621 return true; | 5578 return true; |
5622 } | 5579 } |
5623 | 5580 |
5624 void OneofDescriptorProto::Swap(OneofDescriptorProto* other) { | 5581 void OneofDescriptorProto::Swap(OneofDescriptorProto* other) { |
5625 if (other == this) return; | 5582 if (other == this) return; |
5626 InternalSwap(other); | 5583 InternalSwap(other); |
5627 } | 5584 } |
5628 void OneofDescriptorProto::InternalSwap(OneofDescriptorProto* other) { | 5585 void OneofDescriptorProto::InternalSwap(OneofDescriptorProto* other) { |
5629 name_.Swap(&other->name_); | 5586 name_.Swap(&other->name_); |
5630 std::swap(options_, other->options_); | |
5631 std::swap(_has_bits_[0], other->_has_bits_[0]); | 5587 std::swap(_has_bits_[0], other->_has_bits_[0]); |
5632 _internal_metadata_.Swap(&other->_internal_metadata_); | 5588 _internal_metadata_.Swap(&other->_internal_metadata_); |
5633 std::swap(_cached_size_, other->_cached_size_); | 5589 std::swap(_cached_size_, other->_cached_size_); |
5634 } | 5590 } |
5635 | 5591 |
5636 ::google::protobuf::Metadata OneofDescriptorProto::GetMetadata() const { | 5592 ::google::protobuf::Metadata OneofDescriptorProto::GetMetadata() const { |
5637 protobuf_AssignDescriptorsOnce(); | 5593 protobuf_AssignDescriptorsOnce(); |
5638 return file_level_metadata[6]; | 5594 ::google::protobuf::Metadata metadata; |
| 5595 metadata.descriptor = OneofDescriptorProto_descriptor_; |
| 5596 metadata.reflection = OneofDescriptorProto_reflection_; |
| 5597 return metadata; |
5639 } | 5598 } |
5640 | 5599 |
5641 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 5600 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
5642 // OneofDescriptorProto | 5601 // OneofDescriptorProto |
5643 | 5602 |
5644 // optional string name = 1; | 5603 // optional string name = 1; |
5645 bool OneofDescriptorProto::has_name() const { | 5604 bool OneofDescriptorProto::has_name() const { |
5646 return (_has_bits_[0] & 0x00000001u) != 0; | 5605 return (_has_bits_[0] & 0x00000001u) != 0; |
5647 } | 5606 } |
5648 void OneofDescriptorProto::set_has_name() { | 5607 void OneofDescriptorProto::set_has_name() { |
5649 _has_bits_[0] |= 0x00000001u; | 5608 _has_bits_[0] |= 0x00000001u; |
5650 } | 5609 } |
5651 void OneofDescriptorProto::clear_has_name() { | 5610 void OneofDescriptorProto::clear_has_name() { |
5652 _has_bits_[0] &= ~0x00000001u; | 5611 _has_bits_[0] &= ~0x00000001u; |
5653 } | 5612 } |
5654 void OneofDescriptorProto::clear_name() { | 5613 void OneofDescriptorProto::clear_name() { |
5655 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); | 5614 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); |
5656 clear_has_name(); | 5615 clear_has_name(); |
5657 } | 5616 } |
5658 const ::std::string& OneofDescriptorProto::name() const { | 5617 const ::std::string& OneofDescriptorProto::name() const { |
5659 // @@protoc_insertion_point(field_get:google.protobuf.OneofDescriptorProto.nam
e) | 5618 // @@protoc_insertion_point(field_get:google.protobuf.OneofDescriptorProto.nam
e) |
5660 return name_.GetNoArena(); | 5619 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited()); |
5661 } | 5620 } |
5662 void OneofDescriptorProto::set_name(const ::std::string& value) { | 5621 void OneofDescriptorProto::set_name(const ::std::string& value) { |
5663 set_has_name(); | 5622 set_has_name(); |
5664 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); | 5623 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); |
5665 // @@protoc_insertion_point(field_set:google.protobuf.OneofDescriptorProto.nam
e) | 5624 // @@protoc_insertion_point(field_set:google.protobuf.OneofDescriptorProto.nam
e) |
5666 } | 5625 } |
5667 #if LANG_CXX11 | 5626 void OneofDescriptorProto::set_name(const char* value) { |
5668 void OneofDescriptorProto::set_name(::std::string&& value) { | |
5669 set_has_name(); | |
5670 name_.SetNoArena( | |
5671 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va
lue)); | |
5672 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.OneofDescriptorPr
oto.name) | |
5673 } | |
5674 #endif | |
5675 void OneofDescriptorProto::set_name(const char* value) { | |
5676 set_has_name(); | 5627 set_has_name(); |
5677 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); | 5628 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); |
5678 // @@protoc_insertion_point(field_set_char:google.protobuf.OneofDescriptorProt
o.name) | 5629 // @@protoc_insertion_point(field_set_char:google.protobuf.OneofDescriptorProt
o.name) |
5679 } | 5630 } |
5680 void OneofDescriptorProto::set_name(const char* value, size_t size) { | 5631 void OneofDescriptorProto::set_name(const char* value, size_t size) { |
5681 set_has_name(); | 5632 set_has_name(); |
5682 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), | 5633 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
5683 ::std::string(reinterpret_cast<const char*>(value), size)); | 5634 ::std::string(reinterpret_cast<const char*>(value), size)); |
5684 // @@protoc_insertion_point(field_set_pointer:google.protobuf.OneofDescriptorP
roto.name) | 5635 // @@protoc_insertion_point(field_set_pointer:google.protobuf.OneofDescriptorP
roto.name) |
5685 } | 5636 } |
5686 ::std::string* OneofDescriptorProto::mutable_name() { | 5637 ::std::string* OneofDescriptorProto::mutable_name() { |
5687 set_has_name(); | 5638 set_has_name(); |
5688 // @@protoc_insertion_point(field_mutable:google.protobuf.OneofDescriptorProto
.name) | 5639 // @@protoc_insertion_point(field_mutable:google.protobuf.OneofDescriptorProto
.name) |
5689 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 5640 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
5690 } | 5641 } |
5691 ::std::string* OneofDescriptorProto::release_name() { | 5642 ::std::string* OneofDescriptorProto::release_name() { |
5692 // @@protoc_insertion_point(field_release:google.protobuf.OneofDescriptorProto
.name) | 5643 // @@protoc_insertion_point(field_release:google.protobuf.OneofDescriptorProto
.name) |
5693 clear_has_name(); | 5644 clear_has_name(); |
5694 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 5645 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
5695 } | 5646 } |
5696 void OneofDescriptorProto::set_allocated_name(::std::string* name) { | 5647 void OneofDescriptorProto::set_allocated_name(::std::string* name) { |
5697 if (name != NULL) { | 5648 if (name != NULL) { |
5698 set_has_name(); | 5649 set_has_name(); |
5699 } else { | 5650 } else { |
5700 clear_has_name(); | 5651 clear_has_name(); |
5701 } | 5652 } |
5702 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), name); | 5653 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), name); |
5703 // @@protoc_insertion_point(field_set_allocated:google.protobuf.OneofDescripto
rProto.name) | 5654 // @@protoc_insertion_point(field_set_allocated:google.protobuf.OneofDescripto
rProto.name) |
5704 } | 5655 } |
5705 | 5656 |
5706 // optional .google.protobuf.OneofOptions options = 2; | |
5707 bool OneofDescriptorProto::has_options() const { | |
5708 return (_has_bits_[0] & 0x00000002u) != 0; | |
5709 } | |
5710 void OneofDescriptorProto::set_has_options() { | |
5711 _has_bits_[0] |= 0x00000002u; | |
5712 } | |
5713 void OneofDescriptorProto::clear_has_options() { | |
5714 _has_bits_[0] &= ~0x00000002u; | |
5715 } | |
5716 void OneofDescriptorProto::clear_options() { | |
5717 if (options_ != NULL) options_->::google::protobuf::OneofOptions::Clear(); | |
5718 clear_has_options(); | |
5719 } | |
5720 const ::google::protobuf::OneofOptions& OneofDescriptorProto::options() const { | |
5721 // @@protoc_insertion_point(field_get:google.protobuf.OneofDescriptorProto.opt
ions) | |
5722 return options_ != NULL ? *options_ | |
5723 : *::google::protobuf::OneofOptions::internal_default_i
nstance(); | |
5724 } | |
5725 ::google::protobuf::OneofOptions* OneofDescriptorProto::mutable_options() { | |
5726 set_has_options(); | |
5727 if (options_ == NULL) { | |
5728 options_ = new ::google::protobuf::OneofOptions; | |
5729 } | |
5730 // @@protoc_insertion_point(field_mutable:google.protobuf.OneofDescriptorProto
.options) | |
5731 return options_; | |
5732 } | |
5733 ::google::protobuf::OneofOptions* OneofDescriptorProto::release_options() { | |
5734 // @@protoc_insertion_point(field_release:google.protobuf.OneofDescriptorProto
.options) | |
5735 clear_has_options(); | |
5736 ::google::protobuf::OneofOptions* temp = options_; | |
5737 options_ = NULL; | |
5738 return temp; | |
5739 } | |
5740 void OneofDescriptorProto::set_allocated_options(::google::protobuf::OneofOption
s* options) { | |
5741 delete options_; | |
5742 options_ = options; | |
5743 if (options) { | |
5744 set_has_options(); | |
5745 } else { | |
5746 clear_has_options(); | |
5747 } | |
5748 // @@protoc_insertion_point(field_set_allocated:google.protobuf.OneofDescripto
rProto.options) | |
5749 } | |
5750 | |
5751 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 5657 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
5752 | 5658 |
5753 // =================================================================== | 5659 // =================================================================== |
5754 | 5660 |
5755 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 5661 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
5756 const int EnumDescriptorProto::kNameFieldNumber; | 5662 const int EnumDescriptorProto::kNameFieldNumber; |
5757 const int EnumDescriptorProto::kValueFieldNumber; | 5663 const int EnumDescriptorProto::kValueFieldNumber; |
5758 const int EnumDescriptorProto::kOptionsFieldNumber; | 5664 const int EnumDescriptorProto::kOptionsFieldNumber; |
5759 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 5665 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
5760 | 5666 |
5761 EnumDescriptorProto::EnumDescriptorProto() | 5667 EnumDescriptorProto::EnumDescriptorProto() |
5762 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 5668 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
5763 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
5764 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
5765 } | |
5766 SharedCtor(); | 5669 SharedCtor(); |
5767 // @@protoc_insertion_point(constructor:google.protobuf.EnumDescriptorProto) | 5670 // @@protoc_insertion_point(constructor:google.protobuf.EnumDescriptorProto) |
5768 } | 5671 } |
| 5672 |
| 5673 void EnumDescriptorProto::InitAsDefaultInstance() { |
| 5674 options_ = const_cast< ::google::protobuf::EnumOptions*>(&::google::protobuf::
EnumOptions::default_instance()); |
| 5675 } |
| 5676 |
5769 EnumDescriptorProto::EnumDescriptorProto(const EnumDescriptorProto& from) | 5677 EnumDescriptorProto::EnumDescriptorProto(const EnumDescriptorProto& from) |
5770 : ::google::protobuf::Message(), | 5678 : ::google::protobuf::Message(), |
5771 _internal_metadata_(NULL), | 5679 _internal_metadata_(NULL) { |
5772 _has_bits_(from._has_bits_), | 5680 SharedCtor(); |
5773 _cached_size_(0), | 5681 MergeFrom(from); |
5774 value_(from.value_) { | |
5775 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
5776 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); | |
5777 if (from.has_name()) { | |
5778 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), from.name_); | |
5779 } | |
5780 if (from.has_options()) { | |
5781 options_ = new ::google::protobuf::EnumOptions(*from.options_); | |
5782 } else { | |
5783 options_ = NULL; | |
5784 } | |
5785 // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumDescriptorPro
to) | 5682 // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumDescriptorPro
to) |
5786 } | 5683 } |
5787 | 5684 |
5788 void EnumDescriptorProto::SharedCtor() { | 5685 void EnumDescriptorProto::SharedCtor() { |
| 5686 ::google::protobuf::internal::GetEmptyString(); |
5789 _cached_size_ = 0; | 5687 _cached_size_ = 0; |
5790 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); | 5688 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); |
5791 options_ = NULL; | 5689 options_ = NULL; |
| 5690 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
5792 } | 5691 } |
5793 | 5692 |
5794 EnumDescriptorProto::~EnumDescriptorProto() { | 5693 EnumDescriptorProto::~EnumDescriptorProto() { |
5795 // @@protoc_insertion_point(destructor:google.protobuf.EnumDescriptorProto) | 5694 // @@protoc_insertion_point(destructor:google.protobuf.EnumDescriptorProto) |
5796 SharedDtor(); | 5695 SharedDtor(); |
5797 } | 5696 } |
5798 | 5697 |
5799 void EnumDescriptorProto::SharedDtor() { | 5698 void EnumDescriptorProto::SharedDtor() { |
5800 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d()); | 5699 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d()); |
5801 if (this != internal_default_instance()) { | 5700 if (this != default_instance_) { |
5802 delete options_; | 5701 delete options_; |
5803 } | 5702 } |
5804 } | 5703 } |
5805 | 5704 |
5806 void EnumDescriptorProto::SetCachedSize(int size) const { | 5705 void EnumDescriptorProto::SetCachedSize(int size) const { |
5807 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 5706 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
5808 _cached_size_ = size; | 5707 _cached_size_ = size; |
5809 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 5708 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
5810 } | 5709 } |
5811 const ::google::protobuf::Descriptor* EnumDescriptorProto::descriptor() { | 5710 const ::google::protobuf::Descriptor* EnumDescriptorProto::descriptor() { |
5812 protobuf_AssignDescriptorsOnce(); | 5711 protobuf_AssignDescriptorsOnce(); |
5813 return file_level_metadata[7].descriptor; | 5712 return EnumDescriptorProto_descriptor_; |
5814 } | 5713 } |
5815 | 5714 |
5816 const EnumDescriptorProto& EnumDescriptorProto::default_instance() { | 5715 const EnumDescriptorProto& EnumDescriptorProto::default_instance() { |
5817 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 5716 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
5818 return *internal_default_instance(); | 5717 return *default_instance_; |
5819 } | 5718 } |
5820 | 5719 |
| 5720 EnumDescriptorProto* EnumDescriptorProto::default_instance_ = NULL; |
| 5721 |
5821 EnumDescriptorProto* EnumDescriptorProto::New(::google::protobuf::Arena* arena)
const { | 5722 EnumDescriptorProto* EnumDescriptorProto::New(::google::protobuf::Arena* arena)
const { |
5822 EnumDescriptorProto* n = new EnumDescriptorProto; | 5723 EnumDescriptorProto* n = new EnumDescriptorProto; |
5823 if (arena != NULL) { | 5724 if (arena != NULL) { |
5824 arena->Own(n); | 5725 arena->Own(n); |
5825 } | 5726 } |
5826 return n; | 5727 return n; |
5827 } | 5728 } |
5828 | 5729 |
5829 void EnumDescriptorProto::Clear() { | 5730 void EnumDescriptorProto::Clear() { |
5830 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumDescriptorPr
oto) | 5731 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumDescriptorPr
oto) |
5831 value_.Clear(); | 5732 if (_has_bits_[0 / 32] & 5u) { |
5832 if (_has_bits_[0 / 32] & 3u) { | |
5833 if (has_name()) { | 5733 if (has_name()) { |
5834 GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited())); | 5734 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); |
5835 (*name_.UnsafeRawStringPointer())->clear(); | |
5836 } | 5735 } |
5837 if (has_options()) { | 5736 if (has_options()) { |
5838 GOOGLE_DCHECK(options_ != NULL); | 5737 if (options_ != NULL) options_->::google::protobuf::EnumOptions::Clear(); |
5839 options_->::google::protobuf::EnumOptions::Clear(); | |
5840 } | 5738 } |
5841 } | 5739 } |
5842 _has_bits_.Clear(); | 5740 value_.Clear(); |
5843 _internal_metadata_.Clear(); | 5741 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 5742 if (_internal_metadata_.have_unknown_fields()) { |
| 5743 mutable_unknown_fields()->Clear(); |
| 5744 } |
5844 } | 5745 } |
5845 | 5746 |
5846 bool EnumDescriptorProto::MergePartialFromCodedStream( | 5747 bool EnumDescriptorProto::MergePartialFromCodedStream( |
5847 ::google::protobuf::io::CodedInputStream* input) { | 5748 ::google::protobuf::io::CodedInputStream* input) { |
5848 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 5749 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
5849 ::google::protobuf::uint32 tag; | 5750 ::google::protobuf::uint32 tag; |
5850 // @@protoc_insertion_point(parse_start:google.protobuf.EnumDescriptorProto) | 5751 // @@protoc_insertion_point(parse_start:google.protobuf.EnumDescriptorProto) |
5851 for (;;) { | 5752 for (;;) { |
5852 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 5753 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
5853 tag = p.first; | 5754 tag = p.first; |
5854 if (!p.second) goto handle_unusual; | 5755 if (!p.second) goto handle_unusual; |
5855 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 5756 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
5856 // optional string name = 1; | 5757 // optional string name = 1; |
5857 case 1: { | 5758 case 1: { |
5858 if (tag == 10u) { | 5759 if (tag == 10) { |
5859 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 5760 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
5860 input, this->mutable_name())); | 5761 input, this->mutable_name())); |
5861 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 5762 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
5862 this->name().data(), this->name().length(), | 5763 this->name().data(), this->name().length(), |
5863 ::google::protobuf::internal::WireFormat::PARSE, | 5764 ::google::protobuf::internal::WireFormat::PARSE, |
5864 "google.protobuf.EnumDescriptorProto.name"); | 5765 "google.protobuf.EnumDescriptorProto.name"); |
5865 } else { | 5766 } else { |
5866 goto handle_unusual; | 5767 goto handle_unusual; |
5867 } | 5768 } |
| 5769 if (input->ExpectTag(18)) goto parse_value; |
5868 break; | 5770 break; |
5869 } | 5771 } |
5870 | 5772 |
5871 // repeated .google.protobuf.EnumValueDescriptorProto value = 2; | 5773 // repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
5872 case 2: { | 5774 case 2: { |
5873 if (tag == 18u) { | 5775 if (tag == 18) { |
| 5776 parse_value: |
5874 DO_(input->IncrementRecursionDepth()); | 5777 DO_(input->IncrementRecursionDepth()); |
| 5778 parse_loop_value: |
5875 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 5779 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
5876 input, add_value())); | 5780 input, add_value())); |
5877 } else { | 5781 } else { |
5878 goto handle_unusual; | 5782 goto handle_unusual; |
5879 } | 5783 } |
| 5784 if (input->ExpectTag(18)) goto parse_loop_value; |
5880 input->UnsafeDecrementRecursionDepth(); | 5785 input->UnsafeDecrementRecursionDepth(); |
| 5786 if (input->ExpectTag(26)) goto parse_options; |
5881 break; | 5787 break; |
5882 } | 5788 } |
5883 | 5789 |
5884 // optional .google.protobuf.EnumOptions options = 3; | 5790 // optional .google.protobuf.EnumOptions options = 3; |
5885 case 3: { | 5791 case 3: { |
5886 if (tag == 26u) { | 5792 if (tag == 26) { |
| 5793 parse_options: |
5887 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 5794 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
5888 input, mutable_options())); | 5795 input, mutable_options())); |
5889 } else { | 5796 } else { |
5890 goto handle_unusual; | 5797 goto handle_unusual; |
5891 } | 5798 } |
| 5799 if (input->ExpectAtEnd()) goto success; |
5892 break; | 5800 break; |
5893 } | 5801 } |
5894 | 5802 |
5895 default: { | 5803 default: { |
5896 handle_unusual: | 5804 handle_unusual: |
5897 if (tag == 0 || | 5805 if (tag == 0 || |
5898 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 5806 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
5899 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 5807 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
5900 goto success; | 5808 goto success; |
5901 } | 5809 } |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5939 3, *this->options_, output); | 5847 3, *this->options_, output); |
5940 } | 5848 } |
5941 | 5849 |
5942 if (_internal_metadata_.have_unknown_fields()) { | 5850 if (_internal_metadata_.have_unknown_fields()) { |
5943 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 5851 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
5944 unknown_fields(), output); | 5852 unknown_fields(), output); |
5945 } | 5853 } |
5946 // @@protoc_insertion_point(serialize_end:google.protobuf.EnumDescriptorProto) | 5854 // @@protoc_insertion_point(serialize_end:google.protobuf.EnumDescriptorProto) |
5947 } | 5855 } |
5948 | 5856 |
5949 ::google::protobuf::uint8* EnumDescriptorProto::InternalSerializeWithCachedSizes
ToArray( | 5857 ::google::protobuf::uint8* EnumDescriptorProto::SerializeWithCachedSizesToArray( |
5950 bool deterministic, ::google::protobuf::uint8* target) const { | 5858 ::google::protobuf::uint8* target) const { |
5951 (void)deterministic; // Unused | |
5952 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumDescr
iptorProto) | 5859 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumDescr
iptorProto) |
5953 // optional string name = 1; | 5860 // optional string name = 1; |
5954 if (has_name()) { | 5861 if (has_name()) { |
5955 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 5862 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
5956 this->name().data(), this->name().length(), | 5863 this->name().data(), this->name().length(), |
5957 ::google::protobuf::internal::WireFormat::SERIALIZE, | 5864 ::google::protobuf::internal::WireFormat::SERIALIZE, |
5958 "google.protobuf.EnumDescriptorProto.name"); | 5865 "google.protobuf.EnumDescriptorProto.name"); |
5959 target = | 5866 target = |
5960 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 5867 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
5961 1, this->name(), target); | 5868 1, this->name(), target); |
5962 } | 5869 } |
5963 | 5870 |
5964 // repeated .google.protobuf.EnumValueDescriptorProto value = 2; | 5871 // repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
5965 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++) { |
5966 target = ::google::protobuf::internal::WireFormatLite:: | 5873 target = ::google::protobuf::internal::WireFormatLite:: |
5967 InternalWriteMessageNoVirtualToArray( | 5874 WriteMessageNoVirtualToArray( |
5968 2, this->value(i), false, target); | 5875 2, this->value(i), target); |
5969 } | 5876 } |
5970 | 5877 |
5971 // optional .google.protobuf.EnumOptions options = 3; | 5878 // optional .google.protobuf.EnumOptions options = 3; |
5972 if (has_options()) { | 5879 if (has_options()) { |
5973 target = ::google::protobuf::internal::WireFormatLite:: | 5880 target = ::google::protobuf::internal::WireFormatLite:: |
5974 InternalWriteMessageNoVirtualToArray( | 5881 WriteMessageNoVirtualToArray( |
5975 3, *this->options_, false, target); | 5882 3, *this->options_, target); |
5976 } | 5883 } |
5977 | 5884 |
5978 if (_internal_metadata_.have_unknown_fields()) { | 5885 if (_internal_metadata_.have_unknown_fields()) { |
5979 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 5886 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
5980 unknown_fields(), target); | 5887 unknown_fields(), target); |
5981 } | 5888 } |
5982 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumDescrip
torProto) | 5889 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumDescrip
torProto) |
5983 return target; | 5890 return target; |
5984 } | 5891 } |
5985 | 5892 |
5986 size_t EnumDescriptorProto::ByteSizeLong() const { | 5893 int EnumDescriptorProto::ByteSize() const { |
5987 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumDescript
orProto) | 5894 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumDescript
orProto) |
5988 size_t total_size = 0; | 5895 int total_size = 0; |
5989 | 5896 |
5990 if (_internal_metadata_.have_unknown_fields()) { | 5897 if (_has_bits_[0 / 32] & 5u) { |
5991 total_size += | |
5992 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | |
5993 unknown_fields()); | |
5994 } | |
5995 // repeated .google.protobuf.EnumValueDescriptorProto value = 2; | |
5996 { | |
5997 unsigned int count = this->value_size(); | |
5998 total_size += 1UL * count; | |
5999 for (unsigned int i = 0; i < count; i++) { | |
6000 total_size += | |
6001 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
6002 this->value(i)); | |
6003 } | |
6004 } | |
6005 | |
6006 if (_has_bits_[0 / 32] & 3u) { | |
6007 // optional string name = 1; | 5898 // optional string name = 1; |
6008 if (has_name()) { | 5899 if (has_name()) { |
6009 total_size += 1 + | 5900 total_size += 1 + |
6010 ::google::protobuf::internal::WireFormatLite::StringSize( | 5901 ::google::protobuf::internal::WireFormatLite::StringSize( |
6011 this->name()); | 5902 this->name()); |
6012 } | 5903 } |
6013 | 5904 |
6014 // optional .google.protobuf.EnumOptions options = 3; | 5905 // optional .google.protobuf.EnumOptions options = 3; |
6015 if (has_options()) { | 5906 if (has_options()) { |
6016 total_size += 1 + | 5907 total_size += 1 + |
6017 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | 5908 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
6018 *this->options_); | 5909 *this->options_); |
6019 } | 5910 } |
6020 | 5911 |
6021 } | 5912 } |
6022 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 } |
6023 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 5926 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
6024 _cached_size_ = cached_size; | 5927 _cached_size_ = total_size; |
6025 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 5928 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
6026 return total_size; | 5929 return total_size; |
6027 } | 5930 } |
6028 | 5931 |
6029 void EnumDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { | 5932 void EnumDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
6030 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumDes
criptorProto) | 5933 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumDes
criptorProto) |
6031 GOOGLE_DCHECK_NE(&from, this); | 5934 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
6032 const EnumDescriptorProto* source = | 5935 const EnumDescriptorProto* source = |
6033 ::google::protobuf::internal::DynamicCastToGenerated<const EnumDescriptorP
roto>( | 5936 ::google::protobuf::internal::DynamicCastToGenerated<const EnumDescriptorP
roto>( |
6034 &from); | 5937 &from); |
6035 if (source == NULL) { | 5938 if (source == NULL) { |
6036 // @@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) |
6037 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 5940 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
6038 } else { | 5941 } else { |
6039 // @@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) |
6040 MergeFrom(*source); | 5943 MergeFrom(*source); |
6041 } | 5944 } |
6042 } | 5945 } |
6043 | 5946 |
6044 void EnumDescriptorProto::MergeFrom(const EnumDescriptorProto& from) { | 5947 void EnumDescriptorProto::MergeFrom(const EnumDescriptorProto& from) { |
6045 // @@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) |
6046 GOOGLE_DCHECK_NE(&from, this); | 5949 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
6047 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
6048 value_.MergeFrom(from.value_); | 5950 value_.MergeFrom(from.value_); |
6049 if (from._has_bits_[0 / 32] & 3u) { | 5951 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
6050 if (from.has_name()) { | 5952 if (from.has_name()) { |
6051 set_has_name(); | 5953 set_has_name(); |
6052 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), from.name_); | 5954 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), from.name_); |
6053 } | 5955 } |
6054 if (from.has_options()) { | 5956 if (from.has_options()) { |
6055 mutable_options()->::google::protobuf::EnumOptions::MergeFrom(from.options
()); | 5957 mutable_options()->::google::protobuf::EnumOptions::MergeFrom(from.options
()); |
6056 } | 5958 } |
6057 } | 5959 } |
| 5960 if (from._internal_metadata_.have_unknown_fields()) { |
| 5961 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 5962 } |
6058 } | 5963 } |
6059 | 5964 |
6060 void EnumDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { | 5965 void EnumDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { |
6061 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumDesc
riptorProto) | 5966 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumDesc
riptorProto) |
6062 if (&from == this) return; | 5967 if (&from == this) return; |
6063 Clear(); | 5968 Clear(); |
6064 MergeFrom(from); | 5969 MergeFrom(from); |
6065 } | 5970 } |
6066 | 5971 |
6067 void EnumDescriptorProto::CopyFrom(const EnumDescriptorProto& from) { | 5972 void EnumDescriptorProto::CopyFrom(const EnumDescriptorProto& from) { |
6068 // @@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) |
6069 if (&from == this) return; | 5974 if (&from == this) return; |
6070 Clear(); | 5975 Clear(); |
6071 MergeFrom(from); | 5976 MergeFrom(from); |
6072 } | 5977 } |
6073 | 5978 |
6074 bool EnumDescriptorProto::IsInitialized() const { | 5979 bool EnumDescriptorProto::IsInitialized() const { |
| 5980 |
6075 if (!::google::protobuf::internal::AllAreInitialized(this->value())) return fa
lse; | 5981 if (!::google::protobuf::internal::AllAreInitialized(this->value())) return fa
lse; |
6076 if (has_options()) { | 5982 if (has_options()) { |
6077 if (!this->options_->IsInitialized()) return false; | 5983 if (!this->options_->IsInitialized()) return false; |
6078 } | 5984 } |
6079 return true; | 5985 return true; |
6080 } | 5986 } |
6081 | 5987 |
6082 void EnumDescriptorProto::Swap(EnumDescriptorProto* other) { | 5988 void EnumDescriptorProto::Swap(EnumDescriptorProto* other) { |
6083 if (other == this) return; | 5989 if (other == this) return; |
6084 InternalSwap(other); | 5990 InternalSwap(other); |
6085 } | 5991 } |
6086 void EnumDescriptorProto::InternalSwap(EnumDescriptorProto* other) { | 5992 void EnumDescriptorProto::InternalSwap(EnumDescriptorProto* other) { |
| 5993 name_.Swap(&other->name_); |
6087 value_.UnsafeArenaSwap(&other->value_); | 5994 value_.UnsafeArenaSwap(&other->value_); |
6088 name_.Swap(&other->name_); | |
6089 std::swap(options_, other->options_); | 5995 std::swap(options_, other->options_); |
6090 std::swap(_has_bits_[0], other->_has_bits_[0]); | 5996 std::swap(_has_bits_[0], other->_has_bits_[0]); |
6091 _internal_metadata_.Swap(&other->_internal_metadata_); | 5997 _internal_metadata_.Swap(&other->_internal_metadata_); |
6092 std::swap(_cached_size_, other->_cached_size_); | 5998 std::swap(_cached_size_, other->_cached_size_); |
6093 } | 5999 } |
6094 | 6000 |
6095 ::google::protobuf::Metadata EnumDescriptorProto::GetMetadata() const { | 6001 ::google::protobuf::Metadata EnumDescriptorProto::GetMetadata() const { |
6096 protobuf_AssignDescriptorsOnce(); | 6002 protobuf_AssignDescriptorsOnce(); |
6097 return file_level_metadata[7]; | 6003 ::google::protobuf::Metadata metadata; |
| 6004 metadata.descriptor = EnumDescriptorProto_descriptor_; |
| 6005 metadata.reflection = EnumDescriptorProto_reflection_; |
| 6006 return metadata; |
6098 } | 6007 } |
6099 | 6008 |
6100 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 6009 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
6101 // EnumDescriptorProto | 6010 // EnumDescriptorProto |
6102 | 6011 |
6103 // optional string name = 1; | 6012 // optional string name = 1; |
6104 bool EnumDescriptorProto::has_name() const { | 6013 bool EnumDescriptorProto::has_name() const { |
6105 return (_has_bits_[0] & 0x00000001u) != 0; | 6014 return (_has_bits_[0] & 0x00000001u) != 0; |
6106 } | 6015 } |
6107 void EnumDescriptorProto::set_has_name() { | 6016 void EnumDescriptorProto::set_has_name() { |
6108 _has_bits_[0] |= 0x00000001u; | 6017 _has_bits_[0] |= 0x00000001u; |
6109 } | 6018 } |
6110 void EnumDescriptorProto::clear_has_name() { | 6019 void EnumDescriptorProto::clear_has_name() { |
6111 _has_bits_[0] &= ~0x00000001u; | 6020 _has_bits_[0] &= ~0x00000001u; |
6112 } | 6021 } |
6113 void EnumDescriptorProto::clear_name() { | 6022 void EnumDescriptorProto::clear_name() { |
6114 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); | 6023 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); |
6115 clear_has_name(); | 6024 clear_has_name(); |
6116 } | 6025 } |
6117 const ::std::string& EnumDescriptorProto::name() const { | 6026 const ::std::string& EnumDescriptorProto::name() const { |
6118 // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.name
) | 6027 // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.name
) |
6119 return name_.GetNoArena(); | 6028 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited()); |
6120 } | 6029 } |
6121 void EnumDescriptorProto::set_name(const ::std::string& value) { | 6030 void EnumDescriptorProto::set_name(const ::std::string& value) { |
6122 set_has_name(); | 6031 set_has_name(); |
6123 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); | 6032 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); |
6124 // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.name
) | 6033 // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.name
) |
6125 } | 6034 } |
6126 #if LANG_CXX11 | 6035 void EnumDescriptorProto::set_name(const char* value) { |
6127 void EnumDescriptorProto::set_name(::std::string&& value) { | |
6128 set_has_name(); | |
6129 name_.SetNoArena( | |
6130 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va
lue)); | |
6131 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.EnumDescriptorPro
to.name) | |
6132 } | |
6133 #endif | |
6134 void EnumDescriptorProto::set_name(const char* value) { | |
6135 set_has_name(); | 6036 set_has_name(); |
6136 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); | 6037 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); |
6137 // @@protoc_insertion_point(field_set_char:google.protobuf.EnumDescriptorProto
.name) | 6038 // @@protoc_insertion_point(field_set_char:google.protobuf.EnumDescriptorProto
.name) |
6138 } | 6039 } |
6139 void EnumDescriptorProto::set_name(const char* value, size_t size) { | 6040 void EnumDescriptorProto::set_name(const char* value, size_t size) { |
6140 set_has_name(); | 6041 set_has_name(); |
6141 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), | 6042 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
6142 ::std::string(reinterpret_cast<const char*>(value), size)); | 6043 ::std::string(reinterpret_cast<const char*>(value), size)); |
6143 // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumDescriptorPr
oto.name) | 6044 // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumDescriptorPr
oto.name) |
6144 } | 6045 } |
6145 ::std::string* EnumDescriptorProto::mutable_name() { | 6046 ::std::string* EnumDescriptorProto::mutable_name() { |
6146 set_has_name(); | 6047 set_has_name(); |
6147 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.
name) | 6048 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.
name) |
6148 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 6049 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
6149 } | 6050 } |
6150 ::std::string* EnumDescriptorProto::release_name() { | 6051 ::std::string* EnumDescriptorProto::release_name() { |
6151 // @@protoc_insertion_point(field_release:google.protobuf.EnumDescriptorProto.
name) | 6052 // @@protoc_insertion_point(field_release:google.protobuf.EnumDescriptorProto.
name) |
6152 clear_has_name(); | 6053 clear_has_name(); |
6153 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 6054 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
6154 } | 6055 } |
6155 void EnumDescriptorProto::set_allocated_name(::std::string* name) { | 6056 void EnumDescriptorProto::set_allocated_name(::std::string* name) { |
6156 if (name != NULL) { | 6057 if (name != NULL) { |
6157 set_has_name(); | 6058 set_has_name(); |
6158 } else { | 6059 } else { |
6159 clear_has_name(); | 6060 clear_has_name(); |
6160 } | 6061 } |
6161 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), name); | 6062 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), name); |
6162 // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumDescriptor
Proto.name) | 6063 // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumDescriptor
Proto.name) |
6163 } | 6064 } |
6164 | 6065 |
6165 // repeated .google.protobuf.EnumValueDescriptorProto value = 2; | 6066 // repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
(...skipping 21 matching lines...) Expand all Loading... |
6187 return &value_; | 6088 return &value_; |
6188 } | 6089 } |
6189 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescrip
torProto >& | 6090 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescrip
torProto >& |
6190 EnumDescriptorProto::value() const { | 6091 EnumDescriptorProto::value() const { |
6191 // @@protoc_insertion_point(field_list:google.protobuf.EnumDescriptorProto.val
ue) | 6092 // @@protoc_insertion_point(field_list:google.protobuf.EnumDescriptorProto.val
ue) |
6192 return value_; | 6093 return value_; |
6193 } | 6094 } |
6194 | 6095 |
6195 // optional .google.protobuf.EnumOptions options = 3; | 6096 // optional .google.protobuf.EnumOptions options = 3; |
6196 bool EnumDescriptorProto::has_options() const { | 6097 bool EnumDescriptorProto::has_options() const { |
6197 return (_has_bits_[0] & 0x00000002u) != 0; | 6098 return (_has_bits_[0] & 0x00000004u) != 0; |
6198 } | 6099 } |
6199 void EnumDescriptorProto::set_has_options() { | 6100 void EnumDescriptorProto::set_has_options() { |
6200 _has_bits_[0] |= 0x00000002u; | 6101 _has_bits_[0] |= 0x00000004u; |
6201 } | 6102 } |
6202 void EnumDescriptorProto::clear_has_options() { | 6103 void EnumDescriptorProto::clear_has_options() { |
6203 _has_bits_[0] &= ~0x00000002u; | 6104 _has_bits_[0] &= ~0x00000004u; |
6204 } | 6105 } |
6205 void EnumDescriptorProto::clear_options() { | 6106 void EnumDescriptorProto::clear_options() { |
6206 if (options_ != NULL) options_->::google::protobuf::EnumOptions::Clear(); | 6107 if (options_ != NULL) options_->::google::protobuf::EnumOptions::Clear(); |
6207 clear_has_options(); | 6108 clear_has_options(); |
6208 } | 6109 } |
6209 const ::google::protobuf::EnumOptions& EnumDescriptorProto::options() const { | 6110 const ::google::protobuf::EnumOptions& EnumDescriptorProto::options() const { |
6210 // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.opti
ons) | 6111 // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.opti
ons) |
6211 return options_ != NULL ? *options_ | 6112 return options_ != NULL ? *options_ : *default_instance_->options_; |
6212 : *::google::protobuf::EnumOptions::internal_default_in
stance(); | |
6213 } | 6113 } |
6214 ::google::protobuf::EnumOptions* EnumDescriptorProto::mutable_options() { | 6114 ::google::protobuf::EnumOptions* EnumDescriptorProto::mutable_options() { |
6215 set_has_options(); | 6115 set_has_options(); |
6216 if (options_ == NULL) { | 6116 if (options_ == NULL) { |
6217 options_ = new ::google::protobuf::EnumOptions; | 6117 options_ = new ::google::protobuf::EnumOptions; |
6218 } | 6118 } |
6219 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.
options) | 6119 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.
options) |
6220 return options_; | 6120 return options_; |
6221 } | 6121 } |
6222 ::google::protobuf::EnumOptions* EnumDescriptorProto::release_options() { | 6122 ::google::protobuf::EnumOptions* EnumDescriptorProto::release_options() { |
(...skipping 19 matching lines...) Expand all Loading... |
6242 // =================================================================== | 6142 // =================================================================== |
6243 | 6143 |
6244 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 6144 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
6245 const int EnumValueDescriptorProto::kNameFieldNumber; | 6145 const int EnumValueDescriptorProto::kNameFieldNumber; |
6246 const int EnumValueDescriptorProto::kNumberFieldNumber; | 6146 const int EnumValueDescriptorProto::kNumberFieldNumber; |
6247 const int EnumValueDescriptorProto::kOptionsFieldNumber; | 6147 const int EnumValueDescriptorProto::kOptionsFieldNumber; |
6248 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 6148 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
6249 | 6149 |
6250 EnumValueDescriptorProto::EnumValueDescriptorProto() | 6150 EnumValueDescriptorProto::EnumValueDescriptorProto() |
6251 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 6151 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
6252 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
6253 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
6254 } | |
6255 SharedCtor(); | 6152 SharedCtor(); |
6256 // @@protoc_insertion_point(constructor:google.protobuf.EnumValueDescriptorPro
to) | 6153 // @@protoc_insertion_point(constructor:google.protobuf.EnumValueDescriptorPro
to) |
6257 } | 6154 } |
| 6155 |
| 6156 void EnumValueDescriptorProto::InitAsDefaultInstance() { |
| 6157 options_ = const_cast< ::google::protobuf::EnumValueOptions*>(&::google::proto
buf::EnumValueOptions::default_instance()); |
| 6158 } |
| 6159 |
6258 EnumValueDescriptorProto::EnumValueDescriptorProto(const EnumValueDescriptorProt
o& from) | 6160 EnumValueDescriptorProto::EnumValueDescriptorProto(const EnumValueDescriptorProt
o& from) |
6259 : ::google::protobuf::Message(), | 6161 : ::google::protobuf::Message(), |
6260 _internal_metadata_(NULL), | 6162 _internal_metadata_(NULL) { |
6261 _has_bits_(from._has_bits_), | 6163 SharedCtor(); |
6262 _cached_size_(0) { | 6164 MergeFrom(from); |
6263 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
6264 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); | |
6265 if (from.has_name()) { | |
6266 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), from.name_); | |
6267 } | |
6268 if (from.has_options()) { | |
6269 options_ = new ::google::protobuf::EnumValueOptions(*from.options_); | |
6270 } else { | |
6271 options_ = NULL; | |
6272 } | |
6273 number_ = from.number_; | |
6274 // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValueDescript
orProto) | 6165 // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValueDescript
orProto) |
6275 } | 6166 } |
6276 | 6167 |
6277 void EnumValueDescriptorProto::SharedCtor() { | 6168 void EnumValueDescriptorProto::SharedCtor() { |
| 6169 ::google::protobuf::internal::GetEmptyString(); |
6278 _cached_size_ = 0; | 6170 _cached_size_ = 0; |
6279 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); | 6171 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); |
6280 ::memset(&options_, 0, reinterpret_cast<char*>(&number_) - | 6172 number_ = 0; |
6281 reinterpret_cast<char*>(&options_) + sizeof(number_)); | 6173 options_ = NULL; |
| 6174 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
6282 } | 6175 } |
6283 | 6176 |
6284 EnumValueDescriptorProto::~EnumValueDescriptorProto() { | 6177 EnumValueDescriptorProto::~EnumValueDescriptorProto() { |
6285 // @@protoc_insertion_point(destructor:google.protobuf.EnumValueDescriptorProt
o) | 6178 // @@protoc_insertion_point(destructor:google.protobuf.EnumValueDescriptorProt
o) |
6286 SharedDtor(); | 6179 SharedDtor(); |
6287 } | 6180 } |
6288 | 6181 |
6289 void EnumValueDescriptorProto::SharedDtor() { | 6182 void EnumValueDescriptorProto::SharedDtor() { |
6290 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d()); | 6183 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d()); |
6291 if (this != internal_default_instance()) { | 6184 if (this != default_instance_) { |
6292 delete options_; | 6185 delete options_; |
6293 } | 6186 } |
6294 } | 6187 } |
6295 | 6188 |
6296 void EnumValueDescriptorProto::SetCachedSize(int size) const { | 6189 void EnumValueDescriptorProto::SetCachedSize(int size) const { |
6297 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 6190 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
6298 _cached_size_ = size; | 6191 _cached_size_ = size; |
6299 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 6192 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
6300 } | 6193 } |
6301 const ::google::protobuf::Descriptor* EnumValueDescriptorProto::descriptor() { | 6194 const ::google::protobuf::Descriptor* EnumValueDescriptorProto::descriptor() { |
6302 protobuf_AssignDescriptorsOnce(); | 6195 protobuf_AssignDescriptorsOnce(); |
6303 return file_level_metadata[8].descriptor; | 6196 return EnumValueDescriptorProto_descriptor_; |
6304 } | 6197 } |
6305 | 6198 |
6306 const EnumValueDescriptorProto& EnumValueDescriptorProto::default_instance() { | 6199 const EnumValueDescriptorProto& EnumValueDescriptorProto::default_instance() { |
6307 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 6200 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
6308 return *internal_default_instance(); | 6201 return *default_instance_; |
6309 } | 6202 } |
6310 | 6203 |
| 6204 EnumValueDescriptorProto* EnumValueDescriptorProto::default_instance_ = NULL; |
| 6205 |
6311 EnumValueDescriptorProto* EnumValueDescriptorProto::New(::google::protobuf::Aren
a* arena) const { | 6206 EnumValueDescriptorProto* EnumValueDescriptorProto::New(::google::protobuf::Aren
a* arena) const { |
6312 EnumValueDescriptorProto* n = new EnumValueDescriptorProto; | 6207 EnumValueDescriptorProto* n = new EnumValueDescriptorProto; |
6313 if (arena != NULL) { | 6208 if (arena != NULL) { |
6314 arena->Own(n); | 6209 arena->Own(n); |
6315 } | 6210 } |
6316 return n; | 6211 return n; |
6317 } | 6212 } |
6318 | 6213 |
6319 void EnumValueDescriptorProto::Clear() { | 6214 void EnumValueDescriptorProto::Clear() { |
6320 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumValueDescrip
torProto) | 6215 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumValueDescrip
torProto) |
6321 if (_has_bits_[0 / 32] & 3u) { | 6216 if (_has_bits_[0 / 32] & 7u) { |
6322 if (has_name()) { | 6217 if (has_name()) { |
6323 GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited())); | 6218 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); |
6324 (*name_.UnsafeRawStringPointer())->clear(); | |
6325 } | 6219 } |
| 6220 number_ = 0; |
6326 if (has_options()) { | 6221 if (has_options()) { |
6327 GOOGLE_DCHECK(options_ != NULL); | 6222 if (options_ != NULL) options_->::google::protobuf::EnumValueOptions::Clea
r(); |
6328 options_->::google::protobuf::EnumValueOptions::Clear(); | |
6329 } | 6223 } |
6330 } | 6224 } |
6331 number_ = 0; | 6225 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
6332 _has_bits_.Clear(); | 6226 if (_internal_metadata_.have_unknown_fields()) { |
6333 _internal_metadata_.Clear(); | 6227 mutable_unknown_fields()->Clear(); |
| 6228 } |
6334 } | 6229 } |
6335 | 6230 |
6336 bool EnumValueDescriptorProto::MergePartialFromCodedStream( | 6231 bool EnumValueDescriptorProto::MergePartialFromCodedStream( |
6337 ::google::protobuf::io::CodedInputStream* input) { | 6232 ::google::protobuf::io::CodedInputStream* input) { |
6338 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 6233 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
6339 ::google::protobuf::uint32 tag; | 6234 ::google::protobuf::uint32 tag; |
6340 // @@protoc_insertion_point(parse_start:google.protobuf.EnumValueDescriptorPro
to) | 6235 // @@protoc_insertion_point(parse_start:google.protobuf.EnumValueDescriptorPro
to) |
6341 for (;;) { | 6236 for (;;) { |
6342 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 6237 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
6343 tag = p.first; | 6238 tag = p.first; |
6344 if (!p.second) goto handle_unusual; | 6239 if (!p.second) goto handle_unusual; |
6345 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 6240 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
6346 // optional string name = 1; | 6241 // optional string name = 1; |
6347 case 1: { | 6242 case 1: { |
6348 if (tag == 10u) { | 6243 if (tag == 10) { |
6349 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 6244 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
6350 input, this->mutable_name())); | 6245 input, this->mutable_name())); |
6351 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 6246 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
6352 this->name().data(), this->name().length(), | 6247 this->name().data(), this->name().length(), |
6353 ::google::protobuf::internal::WireFormat::PARSE, | 6248 ::google::protobuf::internal::WireFormat::PARSE, |
6354 "google.protobuf.EnumValueDescriptorProto.name"); | 6249 "google.protobuf.EnumValueDescriptorProto.name"); |
6355 } else { | 6250 } else { |
6356 goto handle_unusual; | 6251 goto handle_unusual; |
6357 } | 6252 } |
| 6253 if (input->ExpectTag(16)) goto parse_number; |
6358 break; | 6254 break; |
6359 } | 6255 } |
6360 | 6256 |
6361 // optional int32 number = 2; | 6257 // optional int32 number = 2; |
6362 case 2: { | 6258 case 2: { |
6363 if (tag == 16u) { | 6259 if (tag == 16) { |
6364 set_has_number(); | 6260 parse_number: |
6365 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 6261 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
6366 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 6262 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
6367 input, &number_))); | 6263 input, &number_))); |
| 6264 set_has_number(); |
6368 } else { | 6265 } else { |
6369 goto handle_unusual; | 6266 goto handle_unusual; |
6370 } | 6267 } |
| 6268 if (input->ExpectTag(26)) goto parse_options; |
6371 break; | 6269 break; |
6372 } | 6270 } |
6373 | 6271 |
6374 // optional .google.protobuf.EnumValueOptions options = 3; | 6272 // optional .google.protobuf.EnumValueOptions options = 3; |
6375 case 3: { | 6273 case 3: { |
6376 if (tag == 26u) { | 6274 if (tag == 26) { |
| 6275 parse_options: |
6377 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 6276 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
6378 input, mutable_options())); | 6277 input, mutable_options())); |
6379 } else { | 6278 } else { |
6380 goto handle_unusual; | 6279 goto handle_unusual; |
6381 } | 6280 } |
| 6281 if (input->ExpectAtEnd()) goto success; |
6382 break; | 6282 break; |
6383 } | 6283 } |
6384 | 6284 |
6385 default: { | 6285 default: { |
6386 handle_unusual: | 6286 handle_unusual: |
6387 if (tag == 0 || | 6287 if (tag == 0 || |
6388 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 6288 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
6389 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 6289 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
6390 goto success; | 6290 goto success; |
6391 } | 6291 } |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6428 3, *this->options_, output); | 6328 3, *this->options_, output); |
6429 } | 6329 } |
6430 | 6330 |
6431 if (_internal_metadata_.have_unknown_fields()) { | 6331 if (_internal_metadata_.have_unknown_fields()) { |
6432 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 6332 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
6433 unknown_fields(), output); | 6333 unknown_fields(), output); |
6434 } | 6334 } |
6435 // @@protoc_insertion_point(serialize_end:google.protobuf.EnumValueDescriptorP
roto) | 6335 // @@protoc_insertion_point(serialize_end:google.protobuf.EnumValueDescriptorP
roto) |
6436 } | 6336 } |
6437 | 6337 |
6438 ::google::protobuf::uint8* EnumValueDescriptorProto::InternalSerializeWithCached
SizesToArray( | 6338 ::google::protobuf::uint8* EnumValueDescriptorProto::SerializeWithCachedSizesToA
rray( |
6439 bool deterministic, ::google::protobuf::uint8* target) const { | 6339 ::google::protobuf::uint8* target) const { |
6440 (void)deterministic; // Unused | |
6441 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValue
DescriptorProto) | 6340 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValue
DescriptorProto) |
6442 // optional string name = 1; | 6341 // optional string name = 1; |
6443 if (has_name()) { | 6342 if (has_name()) { |
6444 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 6343 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
6445 this->name().data(), this->name().length(), | 6344 this->name().data(), this->name().length(), |
6446 ::google::protobuf::internal::WireFormat::SERIALIZE, | 6345 ::google::protobuf::internal::WireFormat::SERIALIZE, |
6447 "google.protobuf.EnumValueDescriptorProto.name"); | 6346 "google.protobuf.EnumValueDescriptorProto.name"); |
6448 target = | 6347 target = |
6449 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 6348 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
6450 1, this->name(), target); | 6349 1, this->name(), target); |
6451 } | 6350 } |
6452 | 6351 |
6453 // optional int32 number = 2; | 6352 // optional int32 number = 2; |
6454 if (has_number()) { | 6353 if (has_number()) { |
6455 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2,
this->number(), target); | 6354 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2,
this->number(), target); |
6456 } | 6355 } |
6457 | 6356 |
6458 // optional .google.protobuf.EnumValueOptions options = 3; | 6357 // optional .google.protobuf.EnumValueOptions options = 3; |
6459 if (has_options()) { | 6358 if (has_options()) { |
6460 target = ::google::protobuf::internal::WireFormatLite:: | 6359 target = ::google::protobuf::internal::WireFormatLite:: |
6461 InternalWriteMessageNoVirtualToArray( | 6360 WriteMessageNoVirtualToArray( |
6462 3, *this->options_, false, target); | 6361 3, *this->options_, target); |
6463 } | 6362 } |
6464 | 6363 |
6465 if (_internal_metadata_.have_unknown_fields()) { | 6364 if (_internal_metadata_.have_unknown_fields()) { |
6466 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 6365 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
6467 unknown_fields(), target); | 6366 unknown_fields(), target); |
6468 } | 6367 } |
6469 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumValueDe
scriptorProto) | 6368 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumValueDe
scriptorProto) |
6470 return target; | 6369 return target; |
6471 } | 6370 } |
6472 | 6371 |
6473 size_t EnumValueDescriptorProto::ByteSizeLong() const { | 6372 int EnumValueDescriptorProto::ByteSize() const { |
6474 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumValueDes
criptorProto) | 6373 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumValueDes
criptorProto) |
6475 size_t total_size = 0; | 6374 int total_size = 0; |
6476 | 6375 |
6477 if (_internal_metadata_.have_unknown_fields()) { | |
6478 total_size += | |
6479 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | |
6480 unknown_fields()); | |
6481 } | |
6482 if (_has_bits_[0 / 32] & 7u) { | 6376 if (_has_bits_[0 / 32] & 7u) { |
6483 // optional string name = 1; | 6377 // optional string name = 1; |
6484 if (has_name()) { | 6378 if (has_name()) { |
6485 total_size += 1 + | 6379 total_size += 1 + |
6486 ::google::protobuf::internal::WireFormatLite::StringSize( | 6380 ::google::protobuf::internal::WireFormatLite::StringSize( |
6487 this->name()); | 6381 this->name()); |
6488 } | 6382 } |
6489 | 6383 |
6490 // optional .google.protobuf.EnumValueOptions options = 3; | |
6491 if (has_options()) { | |
6492 total_size += 1 + | |
6493 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
6494 *this->options_); | |
6495 } | |
6496 | |
6497 // optional int32 number = 2; | 6384 // optional int32 number = 2; |
6498 if (has_number()) { | 6385 if (has_number()) { |
6499 total_size += 1 + | 6386 total_size += 1 + |
6500 ::google::protobuf::internal::WireFormatLite::Int32Size( | 6387 ::google::protobuf::internal::WireFormatLite::Int32Size( |
6501 this->number()); | 6388 this->number()); |
6502 } | 6389 } |
6503 | 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 |
6504 } | 6398 } |
6505 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 } |
6506 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 6404 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
6507 _cached_size_ = cached_size; | 6405 _cached_size_ = total_size; |
6508 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 6406 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
6509 return total_size; | 6407 return total_size; |
6510 } | 6408 } |
6511 | 6409 |
6512 void EnumValueDescriptorProto::MergeFrom(const ::google::protobuf::Message& from
) { | 6410 void EnumValueDescriptorProto::MergeFrom(const ::google::protobuf::Message& from
) { |
6513 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumVal
ueDescriptorProto) | 6411 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumVal
ueDescriptorProto) |
6514 GOOGLE_DCHECK_NE(&from, this); | 6412 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
6515 const EnumValueDescriptorProto* source = | 6413 const EnumValueDescriptorProto* source = |
6516 ::google::protobuf::internal::DynamicCastToGenerated<const EnumValueDescri
ptorProto>( | 6414 ::google::protobuf::internal::DynamicCastToGenerated<const EnumValueDescri
ptorProto>( |
6517 &from); | 6415 &from); |
6518 if (source == NULL) { | 6416 if (source == NULL) { |
6519 // @@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) |
6520 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 6418 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
6521 } else { | 6419 } else { |
6522 // @@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) |
6523 MergeFrom(*source); | 6421 MergeFrom(*source); |
6524 } | 6422 } |
6525 } | 6423 } |
6526 | 6424 |
6527 void EnumValueDescriptorProto::MergeFrom(const EnumValueDescriptorProto& from) { | 6425 void EnumValueDescriptorProto::MergeFrom(const EnumValueDescriptorProto& from) { |
6528 // @@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) |
6529 GOOGLE_DCHECK_NE(&from, this); | 6427 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
6530 _internal_metadata_.MergeFrom(from._internal_metadata_); | 6428 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
6531 if (from._has_bits_[0 / 32] & 7u) { | |
6532 if (from.has_name()) { | 6429 if (from.has_name()) { |
6533 set_has_name(); | 6430 set_has_name(); |
6534 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), from.name_); | 6431 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), from.name_); |
6535 } | 6432 } |
| 6433 if (from.has_number()) { |
| 6434 set_number(from.number()); |
| 6435 } |
6536 if (from.has_options()) { | 6436 if (from.has_options()) { |
6537 mutable_options()->::google::protobuf::EnumValueOptions::MergeFrom(from.op
tions()); | 6437 mutable_options()->::google::protobuf::EnumValueOptions::MergeFrom(from.op
tions()); |
6538 } | 6438 } |
6539 if (from.has_number()) { | 6439 } |
6540 set_number(from.number()); | 6440 if (from._internal_metadata_.have_unknown_fields()) { |
6541 } | 6441 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
6542 } | 6442 } |
6543 } | 6443 } |
6544 | 6444 |
6545 void EnumValueDescriptorProto::CopyFrom(const ::google::protobuf::Message& from)
{ | 6445 void EnumValueDescriptorProto::CopyFrom(const ::google::protobuf::Message& from)
{ |
6546 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumValu
eDescriptorProto) | 6446 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumValu
eDescriptorProto) |
6547 if (&from == this) return; | 6447 if (&from == this) return; |
6548 Clear(); | 6448 Clear(); |
6549 MergeFrom(from); | 6449 MergeFrom(from); |
6550 } | 6450 } |
6551 | 6451 |
6552 void EnumValueDescriptorProto::CopyFrom(const EnumValueDescriptorProto& from) { | 6452 void EnumValueDescriptorProto::CopyFrom(const EnumValueDescriptorProto& from) { |
6553 // @@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) |
6554 if (&from == this) return; | 6454 if (&from == this) return; |
6555 Clear(); | 6455 Clear(); |
6556 MergeFrom(from); | 6456 MergeFrom(from); |
6557 } | 6457 } |
6558 | 6458 |
6559 bool EnumValueDescriptorProto::IsInitialized() const { | 6459 bool EnumValueDescriptorProto::IsInitialized() const { |
| 6460 |
6560 if (has_options()) { | 6461 if (has_options()) { |
6561 if (!this->options_->IsInitialized()) return false; | 6462 if (!this->options_->IsInitialized()) return false; |
6562 } | 6463 } |
6563 return true; | 6464 return true; |
6564 } | 6465 } |
6565 | 6466 |
6566 void EnumValueDescriptorProto::Swap(EnumValueDescriptorProto* other) { | 6467 void EnumValueDescriptorProto::Swap(EnumValueDescriptorProto* other) { |
6567 if (other == this) return; | 6468 if (other == this) return; |
6568 InternalSwap(other); | 6469 InternalSwap(other); |
6569 } | 6470 } |
6570 void EnumValueDescriptorProto::InternalSwap(EnumValueDescriptorProto* other) { | 6471 void EnumValueDescriptorProto::InternalSwap(EnumValueDescriptorProto* other) { |
6571 name_.Swap(&other->name_); | 6472 name_.Swap(&other->name_); |
| 6473 std::swap(number_, other->number_); |
6572 std::swap(options_, other->options_); | 6474 std::swap(options_, other->options_); |
6573 std::swap(number_, other->number_); | |
6574 std::swap(_has_bits_[0], other->_has_bits_[0]); | 6475 std::swap(_has_bits_[0], other->_has_bits_[0]); |
6575 _internal_metadata_.Swap(&other->_internal_metadata_); | 6476 _internal_metadata_.Swap(&other->_internal_metadata_); |
6576 std::swap(_cached_size_, other->_cached_size_); | 6477 std::swap(_cached_size_, other->_cached_size_); |
6577 } | 6478 } |
6578 | 6479 |
6579 ::google::protobuf::Metadata EnumValueDescriptorProto::GetMetadata() const { | 6480 ::google::protobuf::Metadata EnumValueDescriptorProto::GetMetadata() const { |
6580 protobuf_AssignDescriptorsOnce(); | 6481 protobuf_AssignDescriptorsOnce(); |
6581 return file_level_metadata[8]; | 6482 ::google::protobuf::Metadata metadata; |
| 6483 metadata.descriptor = EnumValueDescriptorProto_descriptor_; |
| 6484 metadata.reflection = EnumValueDescriptorProto_reflection_; |
| 6485 return metadata; |
6582 } | 6486 } |
6583 | 6487 |
6584 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 6488 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
6585 // EnumValueDescriptorProto | 6489 // EnumValueDescriptorProto |
6586 | 6490 |
6587 // optional string name = 1; | 6491 // optional string name = 1; |
6588 bool EnumValueDescriptorProto::has_name() const { | 6492 bool EnumValueDescriptorProto::has_name() const { |
6589 return (_has_bits_[0] & 0x00000001u) != 0; | 6493 return (_has_bits_[0] & 0x00000001u) != 0; |
6590 } | 6494 } |
6591 void EnumValueDescriptorProto::set_has_name() { | 6495 void EnumValueDescriptorProto::set_has_name() { |
6592 _has_bits_[0] |= 0x00000001u; | 6496 _has_bits_[0] |= 0x00000001u; |
6593 } | 6497 } |
6594 void EnumValueDescriptorProto::clear_has_name() { | 6498 void EnumValueDescriptorProto::clear_has_name() { |
6595 _has_bits_[0] &= ~0x00000001u; | 6499 _has_bits_[0] &= ~0x00000001u; |
6596 } | 6500 } |
6597 void EnumValueDescriptorProto::clear_name() { | 6501 void EnumValueDescriptorProto::clear_name() { |
6598 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); | 6502 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); |
6599 clear_has_name(); | 6503 clear_has_name(); |
6600 } | 6504 } |
6601 const ::std::string& EnumValueDescriptorProto::name() const { | 6505 const ::std::string& EnumValueDescriptorProto::name() const { |
6602 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto
.name) | 6506 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto
.name) |
6603 return name_.GetNoArena(); | 6507 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited()); |
6604 } | 6508 } |
6605 void EnumValueDescriptorProto::set_name(const ::std::string& value) { | 6509 void EnumValueDescriptorProto::set_name(const ::std::string& value) { |
6606 set_has_name(); | 6510 set_has_name(); |
6607 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); | 6511 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); |
6608 // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto
.name) | 6512 // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto
.name) |
6609 } | 6513 } |
6610 #if LANG_CXX11 | 6514 void EnumValueDescriptorProto::set_name(const char* value) { |
6611 void EnumValueDescriptorProto::set_name(::std::string&& value) { | |
6612 set_has_name(); | |
6613 name_.SetNoArena( | |
6614 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va
lue)); | |
6615 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.EnumValueDescript
orProto.name) | |
6616 } | |
6617 #endif | |
6618 void EnumValueDescriptorProto::set_name(const char* value) { | |
6619 set_has_name(); | 6515 set_has_name(); |
6620 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); | 6516 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); |
6621 // @@protoc_insertion_point(field_set_char:google.protobuf.EnumValueDescriptor
Proto.name) | 6517 // @@protoc_insertion_point(field_set_char:google.protobuf.EnumValueDescriptor
Proto.name) |
6622 } | 6518 } |
6623 void EnumValueDescriptorProto::set_name(const char* value, size_t size) { | 6519 void EnumValueDescriptorProto::set_name(const char* value, size_t size) { |
6624 set_has_name(); | 6520 set_has_name(); |
6625 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), | 6521 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
6626 ::std::string(reinterpret_cast<const char*>(value), size)); | 6522 ::std::string(reinterpret_cast<const char*>(value), size)); |
6627 // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumValueDescrip
torProto.name) | 6523 // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumValueDescrip
torProto.name) |
6628 } | 6524 } |
6629 ::std::string* EnumValueDescriptorProto::mutable_name() { | 6525 ::std::string* EnumValueDescriptorProto::mutable_name() { |
6630 set_has_name(); | 6526 set_has_name(); |
6631 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorP
roto.name) | 6527 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorP
roto.name) |
6632 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 6528 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
6633 } | 6529 } |
6634 ::std::string* EnumValueDescriptorProto::release_name() { | 6530 ::std::string* EnumValueDescriptorProto::release_name() { |
6635 // @@protoc_insertion_point(field_release:google.protobuf.EnumValueDescriptorP
roto.name) | 6531 // @@protoc_insertion_point(field_release:google.protobuf.EnumValueDescriptorP
roto.name) |
6636 clear_has_name(); | 6532 clear_has_name(); |
6637 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 6533 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
6638 } | 6534 } |
6639 void EnumValueDescriptorProto::set_allocated_name(::std::string* name) { | 6535 void EnumValueDescriptorProto::set_allocated_name(::std::string* name) { |
6640 if (name != NULL) { | 6536 if (name != NULL) { |
6641 set_has_name(); | 6537 set_has_name(); |
6642 } else { | 6538 } else { |
6643 clear_has_name(); | 6539 clear_has_name(); |
6644 } | 6540 } |
6645 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), name); | 6541 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), name); |
6646 // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValueDescr
iptorProto.name) | 6542 // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValueDescr
iptorProto.name) |
6647 } | 6543 } |
6648 | 6544 |
6649 // optional int32 number = 2; | 6545 // optional int32 number = 2; |
6650 bool EnumValueDescriptorProto::has_number() const { | 6546 bool EnumValueDescriptorProto::has_number() const { |
6651 return (_has_bits_[0] & 0x00000004u) != 0; | 6547 return (_has_bits_[0] & 0x00000002u) != 0; |
6652 } | 6548 } |
6653 void EnumValueDescriptorProto::set_has_number() { | 6549 void EnumValueDescriptorProto::set_has_number() { |
6654 _has_bits_[0] |= 0x00000004u; | 6550 _has_bits_[0] |= 0x00000002u; |
6655 } | 6551 } |
6656 void EnumValueDescriptorProto::clear_has_number() { | 6552 void EnumValueDescriptorProto::clear_has_number() { |
6657 _has_bits_[0] &= ~0x00000004u; | 6553 _has_bits_[0] &= ~0x00000002u; |
6658 } | 6554 } |
6659 void EnumValueDescriptorProto::clear_number() { | 6555 void EnumValueDescriptorProto::clear_number() { |
6660 number_ = 0; | 6556 number_ = 0; |
6661 clear_has_number(); | 6557 clear_has_number(); |
6662 } | 6558 } |
6663 ::google::protobuf::int32 EnumValueDescriptorProto::number() const { | 6559 ::google::protobuf::int32 EnumValueDescriptorProto::number() const { |
6664 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto
.number) | 6560 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto
.number) |
6665 return number_; | 6561 return number_; |
6666 } | 6562 } |
6667 void EnumValueDescriptorProto::set_number(::google::protobuf::int32 value) { | 6563 void EnumValueDescriptorProto::set_number(::google::protobuf::int32 value) { |
6668 set_has_number(); | 6564 set_has_number(); |
6669 number_ = value; | 6565 number_ = value; |
6670 // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto
.number) | 6566 // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto
.number) |
6671 } | 6567 } |
6672 | 6568 |
6673 // optional .google.protobuf.EnumValueOptions options = 3; | 6569 // optional .google.protobuf.EnumValueOptions options = 3; |
6674 bool EnumValueDescriptorProto::has_options() const { | 6570 bool EnumValueDescriptorProto::has_options() const { |
6675 return (_has_bits_[0] & 0x00000002u) != 0; | 6571 return (_has_bits_[0] & 0x00000004u) != 0; |
6676 } | 6572 } |
6677 void EnumValueDescriptorProto::set_has_options() { | 6573 void EnumValueDescriptorProto::set_has_options() { |
6678 _has_bits_[0] |= 0x00000002u; | 6574 _has_bits_[0] |= 0x00000004u; |
6679 } | 6575 } |
6680 void EnumValueDescriptorProto::clear_has_options() { | 6576 void EnumValueDescriptorProto::clear_has_options() { |
6681 _has_bits_[0] &= ~0x00000002u; | 6577 _has_bits_[0] &= ~0x00000004u; |
6682 } | 6578 } |
6683 void EnumValueDescriptorProto::clear_options() { | 6579 void EnumValueDescriptorProto::clear_options() { |
6684 if (options_ != NULL) options_->::google::protobuf::EnumValueOptions::Clear(); | 6580 if (options_ != NULL) options_->::google::protobuf::EnumValueOptions::Clear(); |
6685 clear_has_options(); | 6581 clear_has_options(); |
6686 } | 6582 } |
6687 const ::google::protobuf::EnumValueOptions& EnumValueDescriptorProto::options()
const { | 6583 const ::google::protobuf::EnumValueOptions& EnumValueDescriptorProto::options()
const { |
6688 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto
.options) | 6584 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto
.options) |
6689 return options_ != NULL ? *options_ | 6585 return options_ != NULL ? *options_ : *default_instance_->options_; |
6690 : *::google::protobuf::EnumValueOptions::internal_defau
lt_instance(); | |
6691 } | 6586 } |
6692 ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::mutable_options(
) { | 6587 ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::mutable_options(
) { |
6693 set_has_options(); | 6588 set_has_options(); |
6694 if (options_ == NULL) { | 6589 if (options_ == NULL) { |
6695 options_ = new ::google::protobuf::EnumValueOptions; | 6590 options_ = new ::google::protobuf::EnumValueOptions; |
6696 } | 6591 } |
6697 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorP
roto.options) | 6592 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorP
roto.options) |
6698 return options_; | 6593 return options_; |
6699 } | 6594 } |
6700 ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::release_options(
) { | 6595 ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::release_options(
) { |
(...skipping 19 matching lines...) Expand all Loading... |
6720 // =================================================================== | 6615 // =================================================================== |
6721 | 6616 |
6722 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 6617 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
6723 const int ServiceDescriptorProto::kNameFieldNumber; | 6618 const int ServiceDescriptorProto::kNameFieldNumber; |
6724 const int ServiceDescriptorProto::kMethodFieldNumber; | 6619 const int ServiceDescriptorProto::kMethodFieldNumber; |
6725 const int ServiceDescriptorProto::kOptionsFieldNumber; | 6620 const int ServiceDescriptorProto::kOptionsFieldNumber; |
6726 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 6621 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
6727 | 6622 |
6728 ServiceDescriptorProto::ServiceDescriptorProto() | 6623 ServiceDescriptorProto::ServiceDescriptorProto() |
6729 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 6624 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
6730 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
6731 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
6732 } | |
6733 SharedCtor(); | 6625 SharedCtor(); |
6734 // @@protoc_insertion_point(constructor:google.protobuf.ServiceDescriptorProto
) | 6626 // @@protoc_insertion_point(constructor:google.protobuf.ServiceDescriptorProto
) |
6735 } | 6627 } |
| 6628 |
| 6629 void ServiceDescriptorProto::InitAsDefaultInstance() { |
| 6630 options_ = const_cast< ::google::protobuf::ServiceOptions*>(&::google::protobu
f::ServiceOptions::default_instance()); |
| 6631 } |
| 6632 |
6736 ServiceDescriptorProto::ServiceDescriptorProto(const ServiceDescriptorProto& fro
m) | 6633 ServiceDescriptorProto::ServiceDescriptorProto(const ServiceDescriptorProto& fro
m) |
6737 : ::google::protobuf::Message(), | 6634 : ::google::protobuf::Message(), |
6738 _internal_metadata_(NULL), | 6635 _internal_metadata_(NULL) { |
6739 _has_bits_(from._has_bits_), | 6636 SharedCtor(); |
6740 _cached_size_(0), | 6637 MergeFrom(from); |
6741 method_(from.method_) { | |
6742 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
6743 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); | |
6744 if (from.has_name()) { | |
6745 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), from.name_); | |
6746 } | |
6747 if (from.has_options()) { | |
6748 options_ = new ::google::protobuf::ServiceOptions(*from.options_); | |
6749 } else { | |
6750 options_ = NULL; | |
6751 } | |
6752 // @@protoc_insertion_point(copy_constructor:google.protobuf.ServiceDescriptor
Proto) | 6638 // @@protoc_insertion_point(copy_constructor:google.protobuf.ServiceDescriptor
Proto) |
6753 } | 6639 } |
6754 | 6640 |
6755 void ServiceDescriptorProto::SharedCtor() { | 6641 void ServiceDescriptorProto::SharedCtor() { |
| 6642 ::google::protobuf::internal::GetEmptyString(); |
6756 _cached_size_ = 0; | 6643 _cached_size_ = 0; |
6757 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); | 6644 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); |
6758 options_ = NULL; | 6645 options_ = NULL; |
| 6646 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
6759 } | 6647 } |
6760 | 6648 |
6761 ServiceDescriptorProto::~ServiceDescriptorProto() { | 6649 ServiceDescriptorProto::~ServiceDescriptorProto() { |
6762 // @@protoc_insertion_point(destructor:google.protobuf.ServiceDescriptorProto) | 6650 // @@protoc_insertion_point(destructor:google.protobuf.ServiceDescriptorProto) |
6763 SharedDtor(); | 6651 SharedDtor(); |
6764 } | 6652 } |
6765 | 6653 |
6766 void ServiceDescriptorProto::SharedDtor() { | 6654 void ServiceDescriptorProto::SharedDtor() { |
6767 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d()); | 6655 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d()); |
6768 if (this != internal_default_instance()) { | 6656 if (this != default_instance_) { |
6769 delete options_; | 6657 delete options_; |
6770 } | 6658 } |
6771 } | 6659 } |
6772 | 6660 |
6773 void ServiceDescriptorProto::SetCachedSize(int size) const { | 6661 void ServiceDescriptorProto::SetCachedSize(int size) const { |
6774 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 6662 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
6775 _cached_size_ = size; | 6663 _cached_size_ = size; |
6776 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 6664 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
6777 } | 6665 } |
6778 const ::google::protobuf::Descriptor* ServiceDescriptorProto::descriptor() { | 6666 const ::google::protobuf::Descriptor* ServiceDescriptorProto::descriptor() { |
6779 protobuf_AssignDescriptorsOnce(); | 6667 protobuf_AssignDescriptorsOnce(); |
6780 return file_level_metadata[9].descriptor; | 6668 return ServiceDescriptorProto_descriptor_; |
6781 } | 6669 } |
6782 | 6670 |
6783 const ServiceDescriptorProto& ServiceDescriptorProto::default_instance() { | 6671 const ServiceDescriptorProto& ServiceDescriptorProto::default_instance() { |
6784 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 6672 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
6785 return *internal_default_instance(); | 6673 return *default_instance_; |
6786 } | 6674 } |
6787 | 6675 |
| 6676 ServiceDescriptorProto* ServiceDescriptorProto::default_instance_ = NULL; |
| 6677 |
6788 ServiceDescriptorProto* ServiceDescriptorProto::New(::google::protobuf::Arena* a
rena) const { | 6678 ServiceDescriptorProto* ServiceDescriptorProto::New(::google::protobuf::Arena* a
rena) const { |
6789 ServiceDescriptorProto* n = new ServiceDescriptorProto; | 6679 ServiceDescriptorProto* n = new ServiceDescriptorProto; |
6790 if (arena != NULL) { | 6680 if (arena != NULL) { |
6791 arena->Own(n); | 6681 arena->Own(n); |
6792 } | 6682 } |
6793 return n; | 6683 return n; |
6794 } | 6684 } |
6795 | 6685 |
6796 void ServiceDescriptorProto::Clear() { | 6686 void ServiceDescriptorProto::Clear() { |
6797 // @@protoc_insertion_point(message_clear_start:google.protobuf.ServiceDescripto
rProto) | 6687 // @@protoc_insertion_point(message_clear_start:google.protobuf.ServiceDescripto
rProto) |
6798 method_.Clear(); | 6688 if (_has_bits_[0 / 32] & 5u) { |
6799 if (_has_bits_[0 / 32] & 3u) { | |
6800 if (has_name()) { | 6689 if (has_name()) { |
6801 GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited())); | 6690 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); |
6802 (*name_.UnsafeRawStringPointer())->clear(); | |
6803 } | 6691 } |
6804 if (has_options()) { | 6692 if (has_options()) { |
6805 GOOGLE_DCHECK(options_ != NULL); | 6693 if (options_ != NULL) options_->::google::protobuf::ServiceOptions::Clear(
); |
6806 options_->::google::protobuf::ServiceOptions::Clear(); | |
6807 } | 6694 } |
6808 } | 6695 } |
6809 _has_bits_.Clear(); | 6696 method_.Clear(); |
6810 _internal_metadata_.Clear(); | 6697 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 6698 if (_internal_metadata_.have_unknown_fields()) { |
| 6699 mutable_unknown_fields()->Clear(); |
| 6700 } |
6811 } | 6701 } |
6812 | 6702 |
6813 bool ServiceDescriptorProto::MergePartialFromCodedStream( | 6703 bool ServiceDescriptorProto::MergePartialFromCodedStream( |
6814 ::google::protobuf::io::CodedInputStream* input) { | 6704 ::google::protobuf::io::CodedInputStream* input) { |
6815 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 6705 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
6816 ::google::protobuf::uint32 tag; | 6706 ::google::protobuf::uint32 tag; |
6817 // @@protoc_insertion_point(parse_start:google.protobuf.ServiceDescriptorProto
) | 6707 // @@protoc_insertion_point(parse_start:google.protobuf.ServiceDescriptorProto
) |
6818 for (;;) { | 6708 for (;;) { |
6819 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 6709 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
6820 tag = p.first; | 6710 tag = p.first; |
6821 if (!p.second) goto handle_unusual; | 6711 if (!p.second) goto handle_unusual; |
6822 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 6712 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
6823 // optional string name = 1; | 6713 // optional string name = 1; |
6824 case 1: { | 6714 case 1: { |
6825 if (tag == 10u) { | 6715 if (tag == 10) { |
6826 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 6716 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
6827 input, this->mutable_name())); | 6717 input, this->mutable_name())); |
6828 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 6718 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
6829 this->name().data(), this->name().length(), | 6719 this->name().data(), this->name().length(), |
6830 ::google::protobuf::internal::WireFormat::PARSE, | 6720 ::google::protobuf::internal::WireFormat::PARSE, |
6831 "google.protobuf.ServiceDescriptorProto.name"); | 6721 "google.protobuf.ServiceDescriptorProto.name"); |
6832 } else { | 6722 } else { |
6833 goto handle_unusual; | 6723 goto handle_unusual; |
6834 } | 6724 } |
| 6725 if (input->ExpectTag(18)) goto parse_method; |
6835 break; | 6726 break; |
6836 } | 6727 } |
6837 | 6728 |
6838 // repeated .google.protobuf.MethodDescriptorProto method = 2; | 6729 // repeated .google.protobuf.MethodDescriptorProto method = 2; |
6839 case 2: { | 6730 case 2: { |
6840 if (tag == 18u) { | 6731 if (tag == 18) { |
| 6732 parse_method: |
6841 DO_(input->IncrementRecursionDepth()); | 6733 DO_(input->IncrementRecursionDepth()); |
| 6734 parse_loop_method: |
6842 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 6735 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
6843 input, add_method())); | 6736 input, add_method())); |
6844 } else { | 6737 } else { |
6845 goto handle_unusual; | 6738 goto handle_unusual; |
6846 } | 6739 } |
| 6740 if (input->ExpectTag(18)) goto parse_loop_method; |
6847 input->UnsafeDecrementRecursionDepth(); | 6741 input->UnsafeDecrementRecursionDepth(); |
| 6742 if (input->ExpectTag(26)) goto parse_options; |
6848 break; | 6743 break; |
6849 } | 6744 } |
6850 | 6745 |
6851 // optional .google.protobuf.ServiceOptions options = 3; | 6746 // optional .google.protobuf.ServiceOptions options = 3; |
6852 case 3: { | 6747 case 3: { |
6853 if (tag == 26u) { | 6748 if (tag == 26) { |
| 6749 parse_options: |
6854 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 6750 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
6855 input, mutable_options())); | 6751 input, mutable_options())); |
6856 } else { | 6752 } else { |
6857 goto handle_unusual; | 6753 goto handle_unusual; |
6858 } | 6754 } |
| 6755 if (input->ExpectAtEnd()) goto success; |
6859 break; | 6756 break; |
6860 } | 6757 } |
6861 | 6758 |
6862 default: { | 6759 default: { |
6863 handle_unusual: | 6760 handle_unusual: |
6864 if (tag == 0 || | 6761 if (tag == 0 || |
6865 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 6762 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
6866 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 6763 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
6867 goto success; | 6764 goto success; |
6868 } | 6765 } |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6906 3, *this->options_, output); | 6803 3, *this->options_, output); |
6907 } | 6804 } |
6908 | 6805 |
6909 if (_internal_metadata_.have_unknown_fields()) { | 6806 if (_internal_metadata_.have_unknown_fields()) { |
6910 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 6807 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
6911 unknown_fields(), output); | 6808 unknown_fields(), output); |
6912 } | 6809 } |
6913 // @@protoc_insertion_point(serialize_end:google.protobuf.ServiceDescriptorPro
to) | 6810 // @@protoc_insertion_point(serialize_end:google.protobuf.ServiceDescriptorPro
to) |
6914 } | 6811 } |
6915 | 6812 |
6916 ::google::protobuf::uint8* ServiceDescriptorProto::InternalSerializeWithCachedSi
zesToArray( | 6813 ::google::protobuf::uint8* ServiceDescriptorProto::SerializeWithCachedSizesToArr
ay( |
6917 bool deterministic, ::google::protobuf::uint8* target) const { | 6814 ::google::protobuf::uint8* target) const { |
6918 (void)deterministic; // Unused | |
6919 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ServiceDe
scriptorProto) | 6815 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ServiceDe
scriptorProto) |
6920 // optional string name = 1; | 6816 // optional string name = 1; |
6921 if (has_name()) { | 6817 if (has_name()) { |
6922 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 6818 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
6923 this->name().data(), this->name().length(), | 6819 this->name().data(), this->name().length(), |
6924 ::google::protobuf::internal::WireFormat::SERIALIZE, | 6820 ::google::protobuf::internal::WireFormat::SERIALIZE, |
6925 "google.protobuf.ServiceDescriptorProto.name"); | 6821 "google.protobuf.ServiceDescriptorProto.name"); |
6926 target = | 6822 target = |
6927 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 6823 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
6928 1, this->name(), target); | 6824 1, this->name(), target); |
6929 } | 6825 } |
6930 | 6826 |
6931 // repeated .google.protobuf.MethodDescriptorProto method = 2; | 6827 // repeated .google.protobuf.MethodDescriptorProto method = 2; |
6932 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++) { |
6933 target = ::google::protobuf::internal::WireFormatLite:: | 6829 target = ::google::protobuf::internal::WireFormatLite:: |
6934 InternalWriteMessageNoVirtualToArray( | 6830 WriteMessageNoVirtualToArray( |
6935 2, this->method(i), false, target); | 6831 2, this->method(i), target); |
6936 } | 6832 } |
6937 | 6833 |
6938 // optional .google.protobuf.ServiceOptions options = 3; | 6834 // optional .google.protobuf.ServiceOptions options = 3; |
6939 if (has_options()) { | 6835 if (has_options()) { |
6940 target = ::google::protobuf::internal::WireFormatLite:: | 6836 target = ::google::protobuf::internal::WireFormatLite:: |
6941 InternalWriteMessageNoVirtualToArray( | 6837 WriteMessageNoVirtualToArray( |
6942 3, *this->options_, false, target); | 6838 3, *this->options_, target); |
6943 } | 6839 } |
6944 | 6840 |
6945 if (_internal_metadata_.have_unknown_fields()) { | 6841 if (_internal_metadata_.have_unknown_fields()) { |
6946 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 6842 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
6947 unknown_fields(), target); | 6843 unknown_fields(), target); |
6948 } | 6844 } |
6949 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ServiceDesc
riptorProto) | 6845 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ServiceDesc
riptorProto) |
6950 return target; | 6846 return target; |
6951 } | 6847 } |
6952 | 6848 |
6953 size_t ServiceDescriptorProto::ByteSizeLong() const { | 6849 int ServiceDescriptorProto::ByteSize() const { |
6954 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.ServiceDescr
iptorProto) | 6850 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.ServiceDescr
iptorProto) |
6955 size_t total_size = 0; | 6851 int total_size = 0; |
6956 | 6852 |
6957 if (_internal_metadata_.have_unknown_fields()) { | 6853 if (_has_bits_[0 / 32] & 5u) { |
6958 total_size += | |
6959 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | |
6960 unknown_fields()); | |
6961 } | |
6962 // repeated .google.protobuf.MethodDescriptorProto method = 2; | |
6963 { | |
6964 unsigned int count = this->method_size(); | |
6965 total_size += 1UL * count; | |
6966 for (unsigned int i = 0; i < count; i++) { | |
6967 total_size += | |
6968 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
6969 this->method(i)); | |
6970 } | |
6971 } | |
6972 | |
6973 if (_has_bits_[0 / 32] & 3u) { | |
6974 // optional string name = 1; | 6854 // optional string name = 1; |
6975 if (has_name()) { | 6855 if (has_name()) { |
6976 total_size += 1 + | 6856 total_size += 1 + |
6977 ::google::protobuf::internal::WireFormatLite::StringSize( | 6857 ::google::protobuf::internal::WireFormatLite::StringSize( |
6978 this->name()); | 6858 this->name()); |
6979 } | 6859 } |
6980 | 6860 |
6981 // optional .google.protobuf.ServiceOptions options = 3; | 6861 // optional .google.protobuf.ServiceOptions options = 3; |
6982 if (has_options()) { | 6862 if (has_options()) { |
6983 total_size += 1 + | 6863 total_size += 1 + |
6984 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | 6864 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
6985 *this->options_); | 6865 *this->options_); |
6986 } | 6866 } |
6987 | 6867 |
6988 } | 6868 } |
6989 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 } |
6990 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 6882 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
6991 _cached_size_ = cached_size; | 6883 _cached_size_ = total_size; |
6992 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 6884 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
6993 return total_size; | 6885 return total_size; |
6994 } | 6886 } |
6995 | 6887 |
6996 void ServiceDescriptorProto::MergeFrom(const ::google::protobuf::Message& from)
{ | 6888 void ServiceDescriptorProto::MergeFrom(const ::google::protobuf::Message& from)
{ |
6997 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Service
DescriptorProto) | 6889 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Service
DescriptorProto) |
6998 GOOGLE_DCHECK_NE(&from, this); | 6890 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
6999 const ServiceDescriptorProto* source = | 6891 const ServiceDescriptorProto* source = |
7000 ::google::protobuf::internal::DynamicCastToGenerated<const ServiceDescript
orProto>( | 6892 ::google::protobuf::internal::DynamicCastToGenerated<const ServiceDescript
orProto>( |
7001 &from); | 6893 &from); |
7002 if (source == NULL) { | 6894 if (source == NULL) { |
7003 // @@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) |
7004 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 6896 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
7005 } else { | 6897 } else { |
7006 // @@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) |
7007 MergeFrom(*source); | 6899 MergeFrom(*source); |
7008 } | 6900 } |
7009 } | 6901 } |
7010 | 6902 |
7011 void ServiceDescriptorProto::MergeFrom(const ServiceDescriptorProto& from) { | 6903 void ServiceDescriptorProto::MergeFrom(const ServiceDescriptorProto& from) { |
7012 // @@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) |
7013 GOOGLE_DCHECK_NE(&from, this); | 6905 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
7014 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
7015 method_.MergeFrom(from.method_); | 6906 method_.MergeFrom(from.method_); |
7016 if (from._has_bits_[0 / 32] & 3u) { | 6907 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
7017 if (from.has_name()) { | 6908 if (from.has_name()) { |
7018 set_has_name(); | 6909 set_has_name(); |
7019 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), from.name_); | 6910 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), from.name_); |
7020 } | 6911 } |
7021 if (from.has_options()) { | 6912 if (from.has_options()) { |
7022 mutable_options()->::google::protobuf::ServiceOptions::MergeFrom(from.opti
ons()); | 6913 mutable_options()->::google::protobuf::ServiceOptions::MergeFrom(from.opti
ons()); |
7023 } | 6914 } |
7024 } | 6915 } |
| 6916 if (from._internal_metadata_.have_unknown_fields()) { |
| 6917 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 6918 } |
7025 } | 6919 } |
7026 | 6920 |
7027 void ServiceDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { | 6921 void ServiceDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { |
7028 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.ServiceD
escriptorProto) | 6922 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.ServiceD
escriptorProto) |
7029 if (&from == this) return; | 6923 if (&from == this) return; |
7030 Clear(); | 6924 Clear(); |
7031 MergeFrom(from); | 6925 MergeFrom(from); |
7032 } | 6926 } |
7033 | 6927 |
7034 void ServiceDescriptorProto::CopyFrom(const ServiceDescriptorProto& from) { | 6928 void ServiceDescriptorProto::CopyFrom(const ServiceDescriptorProto& from) { |
7035 // @@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) |
7036 if (&from == this) return; | 6930 if (&from == this) return; |
7037 Clear(); | 6931 Clear(); |
7038 MergeFrom(from); | 6932 MergeFrom(from); |
7039 } | 6933 } |
7040 | 6934 |
7041 bool ServiceDescriptorProto::IsInitialized() const { | 6935 bool ServiceDescriptorProto::IsInitialized() const { |
| 6936 |
7042 if (!::google::protobuf::internal::AllAreInitialized(this->method())) return f
alse; | 6937 if (!::google::protobuf::internal::AllAreInitialized(this->method())) return f
alse; |
7043 if (has_options()) { | 6938 if (has_options()) { |
7044 if (!this->options_->IsInitialized()) return false; | 6939 if (!this->options_->IsInitialized()) return false; |
7045 } | 6940 } |
7046 return true; | 6941 return true; |
7047 } | 6942 } |
7048 | 6943 |
7049 void ServiceDescriptorProto::Swap(ServiceDescriptorProto* other) { | 6944 void ServiceDescriptorProto::Swap(ServiceDescriptorProto* other) { |
7050 if (other == this) return; | 6945 if (other == this) return; |
7051 InternalSwap(other); | 6946 InternalSwap(other); |
7052 } | 6947 } |
7053 void ServiceDescriptorProto::InternalSwap(ServiceDescriptorProto* other) { | 6948 void ServiceDescriptorProto::InternalSwap(ServiceDescriptorProto* other) { |
| 6949 name_.Swap(&other->name_); |
7054 method_.UnsafeArenaSwap(&other->method_); | 6950 method_.UnsafeArenaSwap(&other->method_); |
7055 name_.Swap(&other->name_); | |
7056 std::swap(options_, other->options_); | 6951 std::swap(options_, other->options_); |
7057 std::swap(_has_bits_[0], other->_has_bits_[0]); | 6952 std::swap(_has_bits_[0], other->_has_bits_[0]); |
7058 _internal_metadata_.Swap(&other->_internal_metadata_); | 6953 _internal_metadata_.Swap(&other->_internal_metadata_); |
7059 std::swap(_cached_size_, other->_cached_size_); | 6954 std::swap(_cached_size_, other->_cached_size_); |
7060 } | 6955 } |
7061 | 6956 |
7062 ::google::protobuf::Metadata ServiceDescriptorProto::GetMetadata() const { | 6957 ::google::protobuf::Metadata ServiceDescriptorProto::GetMetadata() const { |
7063 protobuf_AssignDescriptorsOnce(); | 6958 protobuf_AssignDescriptorsOnce(); |
7064 return file_level_metadata[9]; | 6959 ::google::protobuf::Metadata metadata; |
| 6960 metadata.descriptor = ServiceDescriptorProto_descriptor_; |
| 6961 metadata.reflection = ServiceDescriptorProto_reflection_; |
| 6962 return metadata; |
7065 } | 6963 } |
7066 | 6964 |
7067 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 6965 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
7068 // ServiceDescriptorProto | 6966 // ServiceDescriptorProto |
7069 | 6967 |
7070 // optional string name = 1; | 6968 // optional string name = 1; |
7071 bool ServiceDescriptorProto::has_name() const { | 6969 bool ServiceDescriptorProto::has_name() const { |
7072 return (_has_bits_[0] & 0x00000001u) != 0; | 6970 return (_has_bits_[0] & 0x00000001u) != 0; |
7073 } | 6971 } |
7074 void ServiceDescriptorProto::set_has_name() { | 6972 void ServiceDescriptorProto::set_has_name() { |
7075 _has_bits_[0] |= 0x00000001u; | 6973 _has_bits_[0] |= 0x00000001u; |
7076 } | 6974 } |
7077 void ServiceDescriptorProto::clear_has_name() { | 6975 void ServiceDescriptorProto::clear_has_name() { |
7078 _has_bits_[0] &= ~0x00000001u; | 6976 _has_bits_[0] &= ~0x00000001u; |
7079 } | 6977 } |
7080 void ServiceDescriptorProto::clear_name() { | 6978 void ServiceDescriptorProto::clear_name() { |
7081 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); | 6979 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); |
7082 clear_has_name(); | 6980 clear_has_name(); |
7083 } | 6981 } |
7084 const ::std::string& ServiceDescriptorProto::name() const { | 6982 const ::std::string& ServiceDescriptorProto::name() const { |
7085 // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.n
ame) | 6983 // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.n
ame) |
7086 return name_.GetNoArena(); | 6984 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited()); |
7087 } | 6985 } |
7088 void ServiceDescriptorProto::set_name(const ::std::string& value) { | 6986 void ServiceDescriptorProto::set_name(const ::std::string& value) { |
7089 set_has_name(); | 6987 set_has_name(); |
7090 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); | 6988 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); |
7091 // @@protoc_insertion_point(field_set:google.protobuf.ServiceDescriptorProto.n
ame) | 6989 // @@protoc_insertion_point(field_set:google.protobuf.ServiceDescriptorProto.n
ame) |
7092 } | 6990 } |
7093 #if LANG_CXX11 | 6991 void ServiceDescriptorProto::set_name(const char* value) { |
7094 void ServiceDescriptorProto::set_name(::std::string&& value) { | |
7095 set_has_name(); | |
7096 name_.SetNoArena( | |
7097 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va
lue)); | |
7098 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.ServiceDescriptor
Proto.name) | |
7099 } | |
7100 #endif | |
7101 void ServiceDescriptorProto::set_name(const char* value) { | |
7102 set_has_name(); | 6992 set_has_name(); |
7103 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); | 6993 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); |
7104 // @@protoc_insertion_point(field_set_char:google.protobuf.ServiceDescriptorPr
oto.name) | 6994 // @@protoc_insertion_point(field_set_char:google.protobuf.ServiceDescriptorPr
oto.name) |
7105 } | 6995 } |
7106 void ServiceDescriptorProto::set_name(const char* value, size_t size) { | 6996 void ServiceDescriptorProto::set_name(const char* value, size_t size) { |
7107 set_has_name(); | 6997 set_has_name(); |
7108 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), | 6998 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
7109 ::std::string(reinterpret_cast<const char*>(value), size)); | 6999 ::std::string(reinterpret_cast<const char*>(value), size)); |
7110 // @@protoc_insertion_point(field_set_pointer:google.protobuf.ServiceDescripto
rProto.name) | 7000 // @@protoc_insertion_point(field_set_pointer:google.protobuf.ServiceDescripto
rProto.name) |
7111 } | 7001 } |
7112 ::std::string* ServiceDescriptorProto::mutable_name() { | 7002 ::std::string* ServiceDescriptorProto::mutable_name() { |
7113 set_has_name(); | 7003 set_has_name(); |
7114 // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorPro
to.name) | 7004 // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorPro
to.name) |
7115 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 7005 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
7116 } | 7006 } |
7117 ::std::string* ServiceDescriptorProto::release_name() { | 7007 ::std::string* ServiceDescriptorProto::release_name() { |
7118 // @@protoc_insertion_point(field_release:google.protobuf.ServiceDescriptorPro
to.name) | 7008 // @@protoc_insertion_point(field_release:google.protobuf.ServiceDescriptorPro
to.name) |
7119 clear_has_name(); | 7009 clear_has_name(); |
7120 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 7010 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
7121 } | 7011 } |
7122 void ServiceDescriptorProto::set_allocated_name(::std::string* name) { | 7012 void ServiceDescriptorProto::set_allocated_name(::std::string* name) { |
7123 if (name != NULL) { | 7013 if (name != NULL) { |
7124 set_has_name(); | 7014 set_has_name(); |
7125 } else { | 7015 } else { |
7126 clear_has_name(); | 7016 clear_has_name(); |
7127 } | 7017 } |
7128 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), name); | 7018 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), name); |
7129 // @@protoc_insertion_point(field_set_allocated:google.protobuf.ServiceDescrip
torProto.name) | 7019 // @@protoc_insertion_point(field_set_allocated:google.protobuf.ServiceDescrip
torProto.name) |
7130 } | 7020 } |
7131 | 7021 |
7132 // repeated .google.protobuf.MethodDescriptorProto method = 2; | 7022 // repeated .google.protobuf.MethodDescriptorProto method = 2; |
(...skipping 21 matching lines...) Expand all Loading... |
7154 return &method_; | 7044 return &method_; |
7155 } | 7045 } |
7156 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptor
Proto >& | 7046 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptor
Proto >& |
7157 ServiceDescriptorProto::method() const { | 7047 ServiceDescriptorProto::method() const { |
7158 // @@protoc_insertion_point(field_list:google.protobuf.ServiceDescriptorProto.
method) | 7048 // @@protoc_insertion_point(field_list:google.protobuf.ServiceDescriptorProto.
method) |
7159 return method_; | 7049 return method_; |
7160 } | 7050 } |
7161 | 7051 |
7162 // optional .google.protobuf.ServiceOptions options = 3; | 7052 // optional .google.protobuf.ServiceOptions options = 3; |
7163 bool ServiceDescriptorProto::has_options() const { | 7053 bool ServiceDescriptorProto::has_options() const { |
7164 return (_has_bits_[0] & 0x00000002u) != 0; | 7054 return (_has_bits_[0] & 0x00000004u) != 0; |
7165 } | 7055 } |
7166 void ServiceDescriptorProto::set_has_options() { | 7056 void ServiceDescriptorProto::set_has_options() { |
7167 _has_bits_[0] |= 0x00000002u; | 7057 _has_bits_[0] |= 0x00000004u; |
7168 } | 7058 } |
7169 void ServiceDescriptorProto::clear_has_options() { | 7059 void ServiceDescriptorProto::clear_has_options() { |
7170 _has_bits_[0] &= ~0x00000002u; | 7060 _has_bits_[0] &= ~0x00000004u; |
7171 } | 7061 } |
7172 void ServiceDescriptorProto::clear_options() { | 7062 void ServiceDescriptorProto::clear_options() { |
7173 if (options_ != NULL) options_->::google::protobuf::ServiceOptions::Clear(); | 7063 if (options_ != NULL) options_->::google::protobuf::ServiceOptions::Clear(); |
7174 clear_has_options(); | 7064 clear_has_options(); |
7175 } | 7065 } |
7176 const ::google::protobuf::ServiceOptions& ServiceDescriptorProto::options() cons
t { | 7066 const ::google::protobuf::ServiceOptions& ServiceDescriptorProto::options() cons
t { |
7177 // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.o
ptions) | 7067 // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.o
ptions) |
7178 return options_ != NULL ? *options_ | 7068 return options_ != NULL ? *options_ : *default_instance_->options_; |
7179 : *::google::protobuf::ServiceOptions::internal_default
_instance(); | |
7180 } | 7069 } |
7181 ::google::protobuf::ServiceOptions* ServiceDescriptorProto::mutable_options() { | 7070 ::google::protobuf::ServiceOptions* ServiceDescriptorProto::mutable_options() { |
7182 set_has_options(); | 7071 set_has_options(); |
7183 if (options_ == NULL) { | 7072 if (options_ == NULL) { |
7184 options_ = new ::google::protobuf::ServiceOptions; | 7073 options_ = new ::google::protobuf::ServiceOptions; |
7185 } | 7074 } |
7186 // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorPro
to.options) | 7075 // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorPro
to.options) |
7187 return options_; | 7076 return options_; |
7188 } | 7077 } |
7189 ::google::protobuf::ServiceOptions* ServiceDescriptorProto::release_options() { | 7078 ::google::protobuf::ServiceOptions* ServiceDescriptorProto::release_options() { |
(...skipping 22 matching lines...) Expand all Loading... |
7212 const int MethodDescriptorProto::kNameFieldNumber; | 7101 const int MethodDescriptorProto::kNameFieldNumber; |
7213 const int MethodDescriptorProto::kInputTypeFieldNumber; | 7102 const int MethodDescriptorProto::kInputTypeFieldNumber; |
7214 const int MethodDescriptorProto::kOutputTypeFieldNumber; | 7103 const int MethodDescriptorProto::kOutputTypeFieldNumber; |
7215 const int MethodDescriptorProto::kOptionsFieldNumber; | 7104 const int MethodDescriptorProto::kOptionsFieldNumber; |
7216 const int MethodDescriptorProto::kClientStreamingFieldNumber; | 7105 const int MethodDescriptorProto::kClientStreamingFieldNumber; |
7217 const int MethodDescriptorProto::kServerStreamingFieldNumber; | 7106 const int MethodDescriptorProto::kServerStreamingFieldNumber; |
7218 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 7107 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
7219 | 7108 |
7220 MethodDescriptorProto::MethodDescriptorProto() | 7109 MethodDescriptorProto::MethodDescriptorProto() |
7221 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 7110 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
7222 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
7223 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
7224 } | |
7225 SharedCtor(); | 7111 SharedCtor(); |
7226 // @@protoc_insertion_point(constructor:google.protobuf.MethodDescriptorProto) | 7112 // @@protoc_insertion_point(constructor:google.protobuf.MethodDescriptorProto) |
7227 } | 7113 } |
| 7114 |
| 7115 void MethodDescriptorProto::InitAsDefaultInstance() { |
| 7116 options_ = const_cast< ::google::protobuf::MethodOptions*>(&::google::protobuf
::MethodOptions::default_instance()); |
| 7117 } |
| 7118 |
7228 MethodDescriptorProto::MethodDescriptorProto(const MethodDescriptorProto& from) | 7119 MethodDescriptorProto::MethodDescriptorProto(const MethodDescriptorProto& from) |
7229 : ::google::protobuf::Message(), | 7120 : ::google::protobuf::Message(), |
7230 _internal_metadata_(NULL), | 7121 _internal_metadata_(NULL) { |
7231 _has_bits_(from._has_bits_), | 7122 SharedCtor(); |
7232 _cached_size_(0) { | 7123 MergeFrom(from); |
7233 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
7234 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); | |
7235 if (from.has_name()) { | |
7236 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), from.name_); | |
7237 } | |
7238 input_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); | |
7239 if (from.has_input_type()) { | |
7240 input_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringA
lreadyInited(), from.input_type_); | |
7241 } | |
7242 output_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); | |
7243 if (from.has_output_type()) { | |
7244 output_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyString
AlreadyInited(), from.output_type_); | |
7245 } | |
7246 if (from.has_options()) { | |
7247 options_ = new ::google::protobuf::MethodOptions(*from.options_); | |
7248 } else { | |
7249 options_ = NULL; | |
7250 } | |
7251 ::memcpy(&client_streaming_, &from.client_streaming_, | |
7252 reinterpret_cast<char*>(&server_streaming_) - | |
7253 reinterpret_cast<char*>(&client_streaming_) + sizeof(server_streaming_)); | |
7254 // @@protoc_insertion_point(copy_constructor:google.protobuf.MethodDescriptorP
roto) | 7124 // @@protoc_insertion_point(copy_constructor:google.protobuf.MethodDescriptorP
roto) |
7255 } | 7125 } |
7256 | 7126 |
7257 void MethodDescriptorProto::SharedCtor() { | 7127 void MethodDescriptorProto::SharedCtor() { |
| 7128 ::google::protobuf::internal::GetEmptyString(); |
7258 _cached_size_ = 0; | 7129 _cached_size_ = 0; |
7259 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); | 7130 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted()); |
7260 input_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); | 7131 input_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); |
7261 output_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); | 7132 output_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); |
7262 ::memset(&options_, 0, reinterpret_cast<char*>(&server_streaming_) - | 7133 options_ = NULL; |
7263 reinterpret_cast<char*>(&options_) + sizeof(server_streaming_)); | 7134 client_streaming_ = false; |
| 7135 server_streaming_ = false; |
| 7136 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
7264 } | 7137 } |
7265 | 7138 |
7266 MethodDescriptorProto::~MethodDescriptorProto() { | 7139 MethodDescriptorProto::~MethodDescriptorProto() { |
7267 // @@protoc_insertion_point(destructor:google.protobuf.MethodDescriptorProto) | 7140 // @@protoc_insertion_point(destructor:google.protobuf.MethodDescriptorProto) |
7268 SharedDtor(); | 7141 SharedDtor(); |
7269 } | 7142 } |
7270 | 7143 |
7271 void MethodDescriptorProto::SharedDtor() { | 7144 void MethodDescriptorProto::SharedDtor() { |
7272 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d()); | 7145 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite
d()); |
7273 input_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlread
yInited()); | 7146 input_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlread
yInited()); |
7274 output_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 7147 output_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
7275 if (this != internal_default_instance()) { | 7148 if (this != default_instance_) { |
7276 delete options_; | 7149 delete options_; |
7277 } | 7150 } |
7278 } | 7151 } |
7279 | 7152 |
7280 void MethodDescriptorProto::SetCachedSize(int size) const { | 7153 void MethodDescriptorProto::SetCachedSize(int size) const { |
7281 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 7154 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
7282 _cached_size_ = size; | 7155 _cached_size_ = size; |
7283 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 7156 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
7284 } | 7157 } |
7285 const ::google::protobuf::Descriptor* MethodDescriptorProto::descriptor() { | 7158 const ::google::protobuf::Descriptor* MethodDescriptorProto::descriptor() { |
7286 protobuf_AssignDescriptorsOnce(); | 7159 protobuf_AssignDescriptorsOnce(); |
7287 return file_level_metadata[10].descriptor; | 7160 return MethodDescriptorProto_descriptor_; |
7288 } | 7161 } |
7289 | 7162 |
7290 const MethodDescriptorProto& MethodDescriptorProto::default_instance() { | 7163 const MethodDescriptorProto& MethodDescriptorProto::default_instance() { |
7291 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 7164 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
7292 return *internal_default_instance(); | 7165 return *default_instance_; |
7293 } | 7166 } |
7294 | 7167 |
| 7168 MethodDescriptorProto* MethodDescriptorProto::default_instance_ = NULL; |
| 7169 |
7295 MethodDescriptorProto* MethodDescriptorProto::New(::google::protobuf::Arena* are
na) const { | 7170 MethodDescriptorProto* MethodDescriptorProto::New(::google::protobuf::Arena* are
na) const { |
7296 MethodDescriptorProto* n = new MethodDescriptorProto; | 7171 MethodDescriptorProto* n = new MethodDescriptorProto; |
7297 if (arena != NULL) { | 7172 if (arena != NULL) { |
7298 arena->Own(n); | 7173 arena->Own(n); |
7299 } | 7174 } |
7300 return n; | 7175 return n; |
7301 } | 7176 } |
7302 | 7177 |
7303 void MethodDescriptorProto::Clear() { | 7178 void MethodDescriptorProto::Clear() { |
7304 // @@protoc_insertion_point(message_clear_start:google.protobuf.MethodDescriptor
Proto) | 7179 // @@protoc_insertion_point(message_clear_start:google.protobuf.MethodDescriptor
Proto) |
7305 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_); |
7306 if (has_name()) { | 7198 if (has_name()) { |
7307 GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited())); | 7199 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); |
7308 (*name_.UnsafeRawStringPointer())->clear(); | |
7309 } | 7200 } |
7310 if (has_input_type()) { | 7201 if (has_input_type()) { |
7311 GOOGLE_DCHECK(!input_type_.IsDefault(&::google::protobuf::internal::GetEmp
tyStringAlreadyInited())); | 7202 input_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited()); |
7312 (*input_type_.UnsafeRawStringPointer())->clear(); | |
7313 } | 7203 } |
7314 if (has_output_type()) { | 7204 if (has_output_type()) { |
7315 GOOGLE_DCHECK(!output_type_.IsDefault(&::google::protobuf::internal::GetEm
ptyStringAlreadyInited())); | 7205 output_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited()); |
7316 (*output_type_.UnsafeRawStringPointer())->clear(); | |
7317 } | 7206 } |
7318 if (has_options()) { | 7207 if (has_options()) { |
7319 GOOGLE_DCHECK(options_ != NULL); | 7208 if (options_ != NULL) options_->::google::protobuf::MethodOptions::Clear()
; |
7320 options_->::google::protobuf::MethodOptions::Clear(); | |
7321 } | 7209 } |
7322 } | 7210 } |
7323 if (_has_bits_[0 / 32] & 48u) { | 7211 |
7324 ::memset(&client_streaming_, 0, reinterpret_cast<char*>(&server_streaming_)
- | 7212 #undef ZR_HELPER_ |
7325 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(); |
7326 } | 7218 } |
7327 _has_bits_.Clear(); | |
7328 _internal_metadata_.Clear(); | |
7329 } | 7219 } |
7330 | 7220 |
7331 bool MethodDescriptorProto::MergePartialFromCodedStream( | 7221 bool MethodDescriptorProto::MergePartialFromCodedStream( |
7332 ::google::protobuf::io::CodedInputStream* input) { | 7222 ::google::protobuf::io::CodedInputStream* input) { |
7333 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 7223 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
7334 ::google::protobuf::uint32 tag; | 7224 ::google::protobuf::uint32 tag; |
7335 // @@protoc_insertion_point(parse_start:google.protobuf.MethodDescriptorProto) | 7225 // @@protoc_insertion_point(parse_start:google.protobuf.MethodDescriptorProto) |
7336 for (;;) { | 7226 for (;;) { |
7337 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 7227 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
7338 tag = p.first; | 7228 tag = p.first; |
7339 if (!p.second) goto handle_unusual; | 7229 if (!p.second) goto handle_unusual; |
7340 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 7230 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
7341 // optional string name = 1; | 7231 // optional string name = 1; |
7342 case 1: { | 7232 case 1: { |
7343 if (tag == 10u) { | 7233 if (tag == 10) { |
7344 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 7234 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
7345 input, this->mutable_name())); | 7235 input, this->mutable_name())); |
7346 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 7236 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
7347 this->name().data(), this->name().length(), | 7237 this->name().data(), this->name().length(), |
7348 ::google::protobuf::internal::WireFormat::PARSE, | 7238 ::google::protobuf::internal::WireFormat::PARSE, |
7349 "google.protobuf.MethodDescriptorProto.name"); | 7239 "google.protobuf.MethodDescriptorProto.name"); |
7350 } else { | 7240 } else { |
7351 goto handle_unusual; | 7241 goto handle_unusual; |
7352 } | 7242 } |
| 7243 if (input->ExpectTag(18)) goto parse_input_type; |
7353 break; | 7244 break; |
7354 } | 7245 } |
7355 | 7246 |
7356 // optional string input_type = 2; | 7247 // optional string input_type = 2; |
7357 case 2: { | 7248 case 2: { |
7358 if (tag == 18u) { | 7249 if (tag == 18) { |
| 7250 parse_input_type: |
7359 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 7251 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
7360 input, this->mutable_input_type())); | 7252 input, this->mutable_input_type())); |
7361 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 7253 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
7362 this->input_type().data(), this->input_type().length(), | 7254 this->input_type().data(), this->input_type().length(), |
7363 ::google::protobuf::internal::WireFormat::PARSE, | 7255 ::google::protobuf::internal::WireFormat::PARSE, |
7364 "google.protobuf.MethodDescriptorProto.input_type"); | 7256 "google.protobuf.MethodDescriptorProto.input_type"); |
7365 } else { | 7257 } else { |
7366 goto handle_unusual; | 7258 goto handle_unusual; |
7367 } | 7259 } |
| 7260 if (input->ExpectTag(26)) goto parse_output_type; |
7368 break; | 7261 break; |
7369 } | 7262 } |
7370 | 7263 |
7371 // optional string output_type = 3; | 7264 // optional string output_type = 3; |
7372 case 3: { | 7265 case 3: { |
7373 if (tag == 26u) { | 7266 if (tag == 26) { |
| 7267 parse_output_type: |
7374 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 7268 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
7375 input, this->mutable_output_type())); | 7269 input, this->mutable_output_type())); |
7376 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 7270 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
7377 this->output_type().data(), this->output_type().length(), | 7271 this->output_type().data(), this->output_type().length(), |
7378 ::google::protobuf::internal::WireFormat::PARSE, | 7272 ::google::protobuf::internal::WireFormat::PARSE, |
7379 "google.protobuf.MethodDescriptorProto.output_type"); | 7273 "google.protobuf.MethodDescriptorProto.output_type"); |
7380 } else { | 7274 } else { |
7381 goto handle_unusual; | 7275 goto handle_unusual; |
7382 } | 7276 } |
| 7277 if (input->ExpectTag(34)) goto parse_options; |
7383 break; | 7278 break; |
7384 } | 7279 } |
7385 | 7280 |
7386 // optional .google.protobuf.MethodOptions options = 4; | 7281 // optional .google.protobuf.MethodOptions options = 4; |
7387 case 4: { | 7282 case 4: { |
7388 if (tag == 34u) { | 7283 if (tag == 34) { |
| 7284 parse_options: |
7389 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 7285 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
7390 input, mutable_options())); | 7286 input, mutable_options())); |
7391 } else { | 7287 } else { |
7392 goto handle_unusual; | 7288 goto handle_unusual; |
7393 } | 7289 } |
| 7290 if (input->ExpectTag(40)) goto parse_client_streaming; |
7394 break; | 7291 break; |
7395 } | 7292 } |
7396 | 7293 |
7397 // optional bool client_streaming = 5 [default = false]; | 7294 // optional bool client_streaming = 5 [default = false]; |
7398 case 5: { | 7295 case 5: { |
7399 if (tag == 40u) { | 7296 if (tag == 40) { |
7400 set_has_client_streaming(); | 7297 parse_client_streaming: |
7401 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 7298 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
7402 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 7299 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
7403 input, &client_streaming_))); | 7300 input, &client_streaming_))); |
| 7301 set_has_client_streaming(); |
7404 } else { | 7302 } else { |
7405 goto handle_unusual; | 7303 goto handle_unusual; |
7406 } | 7304 } |
| 7305 if (input->ExpectTag(48)) goto parse_server_streaming; |
7407 break; | 7306 break; |
7408 } | 7307 } |
7409 | 7308 |
7410 // optional bool server_streaming = 6 [default = false]; | 7309 // optional bool server_streaming = 6 [default = false]; |
7411 case 6: { | 7310 case 6: { |
7412 if (tag == 48u) { | 7311 if (tag == 48) { |
7413 set_has_server_streaming(); | 7312 parse_server_streaming: |
7414 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 7313 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
7415 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 7314 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
7416 input, &server_streaming_))); | 7315 input, &server_streaming_))); |
| 7316 set_has_server_streaming(); |
7417 } else { | 7317 } else { |
7418 goto handle_unusual; | 7318 goto handle_unusual; |
7419 } | 7319 } |
| 7320 if (input->ExpectAtEnd()) goto success; |
7420 break; | 7321 break; |
7421 } | 7322 } |
7422 | 7323 |
7423 default: { | 7324 default: { |
7424 handle_unusual: | 7325 handle_unusual: |
7425 if (tag == 0 || | 7326 if (tag == 0 || |
7426 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 7327 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
7427 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 7328 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
7428 goto success; | 7329 goto success; |
7429 } | 7330 } |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7491 ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->server_stre
aming(), output); | 7392 ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->server_stre
aming(), output); |
7492 } | 7393 } |
7493 | 7394 |
7494 if (_internal_metadata_.have_unknown_fields()) { | 7395 if (_internal_metadata_.have_unknown_fields()) { |
7495 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 7396 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
7496 unknown_fields(), output); | 7397 unknown_fields(), output); |
7497 } | 7398 } |
7498 // @@protoc_insertion_point(serialize_end:google.protobuf.MethodDescriptorProt
o) | 7399 // @@protoc_insertion_point(serialize_end:google.protobuf.MethodDescriptorProt
o) |
7499 } | 7400 } |
7500 | 7401 |
7501 ::google::protobuf::uint8* MethodDescriptorProto::InternalSerializeWithCachedSiz
esToArray( | 7402 ::google::protobuf::uint8* MethodDescriptorProto::SerializeWithCachedSizesToArra
y( |
7502 bool deterministic, ::google::protobuf::uint8* target) const { | 7403 ::google::protobuf::uint8* target) const { |
7503 (void)deterministic; // Unused | |
7504 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MethodDes
criptorProto) | 7404 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MethodDes
criptorProto) |
7505 // optional string name = 1; | 7405 // optional string name = 1; |
7506 if (has_name()) { | 7406 if (has_name()) { |
7507 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 7407 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
7508 this->name().data(), this->name().length(), | 7408 this->name().data(), this->name().length(), |
7509 ::google::protobuf::internal::WireFormat::SERIALIZE, | 7409 ::google::protobuf::internal::WireFormat::SERIALIZE, |
7510 "google.protobuf.MethodDescriptorProto.name"); | 7410 "google.protobuf.MethodDescriptorProto.name"); |
7511 target = | 7411 target = |
7512 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 7412 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
7513 1, this->name(), target); | 7413 1, this->name(), target); |
(...skipping 17 matching lines...) Expand all Loading... |
7531 ::google::protobuf::internal::WireFormat::SERIALIZE, | 7431 ::google::protobuf::internal::WireFormat::SERIALIZE, |
7532 "google.protobuf.MethodDescriptorProto.output_type"); | 7432 "google.protobuf.MethodDescriptorProto.output_type"); |
7533 target = | 7433 target = |
7534 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 7434 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
7535 3, this->output_type(), target); | 7435 3, this->output_type(), target); |
7536 } | 7436 } |
7537 | 7437 |
7538 // optional .google.protobuf.MethodOptions options = 4; | 7438 // optional .google.protobuf.MethodOptions options = 4; |
7539 if (has_options()) { | 7439 if (has_options()) { |
7540 target = ::google::protobuf::internal::WireFormatLite:: | 7440 target = ::google::protobuf::internal::WireFormatLite:: |
7541 InternalWriteMessageNoVirtualToArray( | 7441 WriteMessageNoVirtualToArray( |
7542 4, *this->options_, false, target); | 7442 4, *this->options_, target); |
7543 } | 7443 } |
7544 | 7444 |
7545 // optional bool client_streaming = 5 [default = false]; | 7445 // optional bool client_streaming = 5 [default = false]; |
7546 if (has_client_streaming()) { | 7446 if (has_client_streaming()) { |
7547 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); |
7548 } | 7448 } |
7549 | 7449 |
7550 // optional bool server_streaming = 6 [default = false]; | 7450 // optional bool server_streaming = 6 [default = false]; |
7551 if (has_server_streaming()) { | 7451 if (has_server_streaming()) { |
7552 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); |
7553 } | 7453 } |
7554 | 7454 |
7555 if (_internal_metadata_.have_unknown_fields()) { | 7455 if (_internal_metadata_.have_unknown_fields()) { |
7556 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 7456 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
7557 unknown_fields(), target); | 7457 unknown_fields(), target); |
7558 } | 7458 } |
7559 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MethodDescr
iptorProto) | 7459 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MethodDescr
iptorProto) |
7560 return target; | 7460 return target; |
7561 } | 7461 } |
7562 | 7462 |
7563 size_t MethodDescriptorProto::ByteSizeLong() const { | 7463 int MethodDescriptorProto::ByteSize() const { |
7564 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.MethodDescri
ptorProto) | 7464 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.MethodDescri
ptorProto) |
7565 size_t total_size = 0; | 7465 int total_size = 0; |
7566 | 7466 |
7567 if (_internal_metadata_.have_unknown_fields()) { | |
7568 total_size += | |
7569 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | |
7570 unknown_fields()); | |
7571 } | |
7572 if (_has_bits_[0 / 32] & 63u) { | 7467 if (_has_bits_[0 / 32] & 63u) { |
7573 // optional string name = 1; | 7468 // optional string name = 1; |
7574 if (has_name()) { | 7469 if (has_name()) { |
7575 total_size += 1 + | 7470 total_size += 1 + |
7576 ::google::protobuf::internal::WireFormatLite::StringSize( | 7471 ::google::protobuf::internal::WireFormatLite::StringSize( |
7577 this->name()); | 7472 this->name()); |
7578 } | 7473 } |
7579 | 7474 |
7580 // optional string input_type = 2; | 7475 // optional string input_type = 2; |
7581 if (has_input_type()) { | 7476 if (has_input_type()) { |
(...skipping 20 matching lines...) Expand all Loading... |
7602 if (has_client_streaming()) { | 7497 if (has_client_streaming()) { |
7603 total_size += 1 + 1; | 7498 total_size += 1 + 1; |
7604 } | 7499 } |
7605 | 7500 |
7606 // optional bool server_streaming = 6 [default = false]; | 7501 // optional bool server_streaming = 6 [default = false]; |
7607 if (has_server_streaming()) { | 7502 if (has_server_streaming()) { |
7608 total_size += 1 + 1; | 7503 total_size += 1 + 1; |
7609 } | 7504 } |
7610 | 7505 |
7611 } | 7506 } |
7612 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 } |
7613 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 7512 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
7614 _cached_size_ = cached_size; | 7513 _cached_size_ = total_size; |
7615 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 7514 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
7616 return total_size; | 7515 return total_size; |
7617 } | 7516 } |
7618 | 7517 |
7619 void MethodDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { | 7518 void MethodDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
7620 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.MethodD
escriptorProto) | 7519 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.MethodD
escriptorProto) |
7621 GOOGLE_DCHECK_NE(&from, this); | 7520 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
7622 const MethodDescriptorProto* source = | 7521 const MethodDescriptorProto* source = |
7623 ::google::protobuf::internal::DynamicCastToGenerated<const MethodDescripto
rProto>( | 7522 ::google::protobuf::internal::DynamicCastToGenerated<const MethodDescripto
rProto>( |
7624 &from); | 7523 &from); |
7625 if (source == NULL) { | 7524 if (source == NULL) { |
7626 // @@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) |
7627 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 7526 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
7628 } else { | 7527 } else { |
7629 // @@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) |
7630 MergeFrom(*source); | 7529 MergeFrom(*source); |
7631 } | 7530 } |
7632 } | 7531 } |
7633 | 7532 |
7634 void MethodDescriptorProto::MergeFrom(const MethodDescriptorProto& from) { | 7533 void MethodDescriptorProto::MergeFrom(const MethodDescriptorProto& from) { |
7635 // @@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) |
7636 GOOGLE_DCHECK_NE(&from, this); | 7535 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
7637 _internal_metadata_.MergeFrom(from._internal_metadata_); | 7536 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
7638 if (from._has_bits_[0 / 32] & 63u) { | |
7639 if (from.has_name()) { | 7537 if (from.has_name()) { |
7640 set_has_name(); | 7538 set_has_name(); |
7641 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), from.name_); | 7539 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), from.name_); |
7642 } | 7540 } |
7643 if (from.has_input_type()) { | 7541 if (from.has_input_type()) { |
7644 set_has_input_type(); | 7542 set_has_input_type(); |
7645 input_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited(), from.input_type_); | 7543 input_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited(), from.input_type_); |
7646 } | 7544 } |
7647 if (from.has_output_type()) { | 7545 if (from.has_output_type()) { |
7648 set_has_output_type(); | 7546 set_has_output_type(); |
7649 output_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited(), from.output_type_); | 7547 output_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited(), from.output_type_); |
7650 } | 7548 } |
7651 if (from.has_options()) { | 7549 if (from.has_options()) { |
7652 mutable_options()->::google::protobuf::MethodOptions::MergeFrom(from.optio
ns()); | 7550 mutable_options()->::google::protobuf::MethodOptions::MergeFrom(from.optio
ns()); |
7653 } | 7551 } |
7654 if (from.has_client_streaming()) { | 7552 if (from.has_client_streaming()) { |
7655 set_client_streaming(from.client_streaming()); | 7553 set_client_streaming(from.client_streaming()); |
7656 } | 7554 } |
7657 if (from.has_server_streaming()) { | 7555 if (from.has_server_streaming()) { |
7658 set_server_streaming(from.server_streaming()); | 7556 set_server_streaming(from.server_streaming()); |
7659 } | 7557 } |
7660 } | 7558 } |
| 7559 if (from._internal_metadata_.have_unknown_fields()) { |
| 7560 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 7561 } |
7661 } | 7562 } |
7662 | 7563 |
7663 void MethodDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { | 7564 void MethodDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { |
7664 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.MethodDe
scriptorProto) | 7565 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.MethodDe
scriptorProto) |
7665 if (&from == this) return; | 7566 if (&from == this) return; |
7666 Clear(); | 7567 Clear(); |
7667 MergeFrom(from); | 7568 MergeFrom(from); |
7668 } | 7569 } |
7669 | 7570 |
7670 void MethodDescriptorProto::CopyFrom(const MethodDescriptorProto& from) { | 7571 void MethodDescriptorProto::CopyFrom(const MethodDescriptorProto& from) { |
7671 // @@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) |
7672 if (&from == this) return; | 7573 if (&from == this) return; |
7673 Clear(); | 7574 Clear(); |
7674 MergeFrom(from); | 7575 MergeFrom(from); |
7675 } | 7576 } |
7676 | 7577 |
7677 bool MethodDescriptorProto::IsInitialized() const { | 7578 bool MethodDescriptorProto::IsInitialized() const { |
| 7579 |
7678 if (has_options()) { | 7580 if (has_options()) { |
7679 if (!this->options_->IsInitialized()) return false; | 7581 if (!this->options_->IsInitialized()) return false; |
7680 } | 7582 } |
7681 return true; | 7583 return true; |
7682 } | 7584 } |
7683 | 7585 |
7684 void MethodDescriptorProto::Swap(MethodDescriptorProto* other) { | 7586 void MethodDescriptorProto::Swap(MethodDescriptorProto* other) { |
7685 if (other == this) return; | 7587 if (other == this) return; |
7686 InternalSwap(other); | 7588 InternalSwap(other); |
7687 } | 7589 } |
7688 void MethodDescriptorProto::InternalSwap(MethodDescriptorProto* other) { | 7590 void MethodDescriptorProto::InternalSwap(MethodDescriptorProto* other) { |
7689 name_.Swap(&other->name_); | 7591 name_.Swap(&other->name_); |
7690 input_type_.Swap(&other->input_type_); | 7592 input_type_.Swap(&other->input_type_); |
7691 output_type_.Swap(&other->output_type_); | 7593 output_type_.Swap(&other->output_type_); |
7692 std::swap(options_, other->options_); | 7594 std::swap(options_, other->options_); |
7693 std::swap(client_streaming_, other->client_streaming_); | 7595 std::swap(client_streaming_, other->client_streaming_); |
7694 std::swap(server_streaming_, other->server_streaming_); | 7596 std::swap(server_streaming_, other->server_streaming_); |
7695 std::swap(_has_bits_[0], other->_has_bits_[0]); | 7597 std::swap(_has_bits_[0], other->_has_bits_[0]); |
7696 _internal_metadata_.Swap(&other->_internal_metadata_); | 7598 _internal_metadata_.Swap(&other->_internal_metadata_); |
7697 std::swap(_cached_size_, other->_cached_size_); | 7599 std::swap(_cached_size_, other->_cached_size_); |
7698 } | 7600 } |
7699 | 7601 |
7700 ::google::protobuf::Metadata MethodDescriptorProto::GetMetadata() const { | 7602 ::google::protobuf::Metadata MethodDescriptorProto::GetMetadata() const { |
7701 protobuf_AssignDescriptorsOnce(); | 7603 protobuf_AssignDescriptorsOnce(); |
7702 return file_level_metadata[10]; | 7604 ::google::protobuf::Metadata metadata; |
| 7605 metadata.descriptor = MethodDescriptorProto_descriptor_; |
| 7606 metadata.reflection = MethodDescriptorProto_reflection_; |
| 7607 return metadata; |
7703 } | 7608 } |
7704 | 7609 |
7705 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 7610 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
7706 // MethodDescriptorProto | 7611 // MethodDescriptorProto |
7707 | 7612 |
7708 // optional string name = 1; | 7613 // optional string name = 1; |
7709 bool MethodDescriptorProto::has_name() const { | 7614 bool MethodDescriptorProto::has_name() const { |
7710 return (_has_bits_[0] & 0x00000001u) != 0; | 7615 return (_has_bits_[0] & 0x00000001u) != 0; |
7711 } | 7616 } |
7712 void MethodDescriptorProto::set_has_name() { | 7617 void MethodDescriptorProto::set_has_name() { |
7713 _has_bits_[0] |= 0x00000001u; | 7618 _has_bits_[0] |= 0x00000001u; |
7714 } | 7619 } |
7715 void MethodDescriptorProto::clear_has_name() { | 7620 void MethodDescriptorProto::clear_has_name() { |
7716 _has_bits_[0] &= ~0x00000001u; | 7621 _has_bits_[0] &= ~0x00000001u; |
7717 } | 7622 } |
7718 void MethodDescriptorProto::clear_name() { | 7623 void MethodDescriptorProto::clear_name() { |
7719 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); | 7624 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); |
7720 clear_has_name(); | 7625 clear_has_name(); |
7721 } | 7626 } |
7722 const ::std::string& MethodDescriptorProto::name() const { | 7627 const ::std::string& MethodDescriptorProto::name() const { |
7723 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.na
me) | 7628 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.na
me) |
7724 return name_.GetNoArena(); | 7629 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited()); |
7725 } | 7630 } |
7726 void MethodDescriptorProto::set_name(const ::std::string& value) { | 7631 void MethodDescriptorProto::set_name(const ::std::string& value) { |
7727 set_has_name(); | 7632 set_has_name(); |
7728 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); | 7633 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value); |
7729 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.na
me) | 7634 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.na
me) |
7730 } | 7635 } |
7731 #if LANG_CXX11 | 7636 void MethodDescriptorProto::set_name(const char* value) { |
7732 void MethodDescriptorProto::set_name(::std::string&& value) { | |
7733 set_has_name(); | |
7734 name_.SetNoArena( | |
7735 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va
lue)); | |
7736 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.MethodDescriptorP
roto.name) | |
7737 } | |
7738 #endif | |
7739 void MethodDescriptorProto::set_name(const char* value) { | |
7740 set_has_name(); | 7637 set_has_name(); |
7741 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); | 7638 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(value)); |
7742 // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorPro
to.name) | 7639 // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorPro
to.name) |
7743 } | 7640 } |
7744 void MethodDescriptorProto::set_name(const char* value, size_t size) { | 7641 void MethodDescriptorProto::set_name(const char* value, size_t size) { |
7745 set_has_name(); | 7642 set_has_name(); |
7746 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), | 7643 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
7747 ::std::string(reinterpret_cast<const char*>(value), size)); | 7644 ::std::string(reinterpret_cast<const char*>(value), size)); |
7748 // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptor
Proto.name) | 7645 // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptor
Proto.name) |
7749 } | 7646 } |
7750 ::std::string* MethodDescriptorProto::mutable_name() { | 7647 ::std::string* MethodDescriptorProto::mutable_name() { |
7751 set_has_name(); | 7648 set_has_name(); |
7752 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProt
o.name) | 7649 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProt
o.name) |
7753 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 7650 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
7754 } | 7651 } |
7755 ::std::string* MethodDescriptorProto::release_name() { | 7652 ::std::string* MethodDescriptorProto::release_name() { |
7756 // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProt
o.name) | 7653 // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProt
o.name) |
7757 clear_has_name(); | 7654 clear_has_name(); |
7758 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 7655 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
7759 } | 7656 } |
7760 void MethodDescriptorProto::set_allocated_name(::std::string* name) { | 7657 void MethodDescriptorProto::set_allocated_name(::std::string* name) { |
7761 if (name != NULL) { | 7658 if (name != NULL) { |
7762 set_has_name(); | 7659 set_has_name(); |
7763 } else { | 7660 } else { |
7764 clear_has_name(); | 7661 clear_has_name(); |
7765 } | 7662 } |
7766 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), name); | 7663 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited(), name); |
7767 // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescript
orProto.name) | 7664 // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescript
orProto.name) |
7768 } | 7665 } |
7769 | 7666 |
7770 // optional string input_type = 2; | 7667 // optional string input_type = 2; |
7771 bool MethodDescriptorProto::has_input_type() const { | 7668 bool MethodDescriptorProto::has_input_type() const { |
7772 return (_has_bits_[0] & 0x00000002u) != 0; | 7669 return (_has_bits_[0] & 0x00000002u) != 0; |
7773 } | 7670 } |
7774 void MethodDescriptorProto::set_has_input_type() { | 7671 void MethodDescriptorProto::set_has_input_type() { |
7775 _has_bits_[0] |= 0x00000002u; | 7672 _has_bits_[0] |= 0x00000002u; |
7776 } | 7673 } |
7777 void MethodDescriptorProto::clear_has_input_type() { | 7674 void MethodDescriptorProto::clear_has_input_type() { |
7778 _has_bits_[0] &= ~0x00000002u; | 7675 _has_bits_[0] &= ~0x00000002u; |
7779 } | 7676 } |
7780 void MethodDescriptorProto::clear_input_type() { | 7677 void MethodDescriptorProto::clear_input_type() { |
7781 input_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringA
lreadyInited()); | 7678 input_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringA
lreadyInited()); |
7782 clear_has_input_type(); | 7679 clear_has_input_type(); |
7783 } | 7680 } |
7784 const ::std::string& MethodDescriptorProto::input_type() const { | 7681 const ::std::string& MethodDescriptorProto::input_type() const { |
7785 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.in
put_type) | 7682 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.in
put_type) |
7786 return input_type_.GetNoArena(); | 7683 return input_type_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); |
7787 } | 7684 } |
7788 void MethodDescriptorProto::set_input_type(const ::std::string& value) { | 7685 void MethodDescriptorProto::set_input_type(const ::std::string& value) { |
7789 set_has_input_type(); | 7686 set_has_input_type(); |
7790 input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted(), value); | 7687 input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted(), value); |
7791 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.in
put_type) | 7688 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.in
put_type) |
7792 } | 7689 } |
7793 #if LANG_CXX11 | 7690 void MethodDescriptorProto::set_input_type(const char* value) { |
7794 void MethodDescriptorProto::set_input_type(::std::string&& value) { | |
7795 set_has_input_type(); | |
7796 input_type_.SetNoArena( | |
7797 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va
lue)); | |
7798 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.MethodDescriptorP
roto.input_type) | |
7799 } | |
7800 #endif | |
7801 void MethodDescriptorProto::set_input_type(const char* value) { | |
7802 set_has_input_type(); | 7691 set_has_input_type(); |
7803 input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted(), ::std::string(value)); | 7692 input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted(), ::std::string(value)); |
7804 // @@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) |
7805 } | 7694 } |
7806 void MethodDescriptorProto::set_input_type(const char* value, size_t size) { | 7695 void MethodDescriptorProto::set_input_type(const char* value, size_t size) { |
7807 set_has_input_type(); | 7696 set_has_input_type(); |
7808 input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted(), | 7697 input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted(), |
7809 ::std::string(reinterpret_cast<const char*>(value), size)); | 7698 ::std::string(reinterpret_cast<const char*>(value), size)); |
7810 // @@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) |
7811 } | 7700 } |
7812 ::std::string* MethodDescriptorProto::mutable_input_type() { | 7701 ::std::string* MethodDescriptorProto::mutable_input_type() { |
7813 set_has_input_type(); | 7702 set_has_input_type(); |
7814 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProt
o.input_type) | 7703 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProt
o.input_type) |
7815 return input_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); | 7704 return input_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); |
7816 } | 7705 } |
7817 ::std::string* MethodDescriptorProto::release_input_type() { | 7706 ::std::string* MethodDescriptorProto::release_input_type() { |
7818 // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProt
o.input_type) | 7707 // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProt
o.input_type) |
7819 clear_has_input_type(); | 7708 clear_has_input_type(); |
7820 return input_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); | 7709 return input_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); |
7821 } | 7710 } |
7822 void MethodDescriptorProto::set_allocated_input_type(::std::string* input_type)
{ | 7711 void MethodDescriptorProto::set_allocated_input_type(::std::string* input_type)
{ |
7823 if (input_type != NULL) { | 7712 if (input_type != NULL) { |
7824 set_has_input_type(); | 7713 set_has_input_type(); |
7825 } else { | 7714 } else { |
7826 clear_has_input_type(); | 7715 clear_has_input_type(); |
7827 } | 7716 } |
7828 input_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringA
lreadyInited(), input_type); | 7717 input_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringA
lreadyInited(), input_type); |
7829 // @@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) |
7830 } | 7719 } |
7831 | 7720 |
7832 // optional string output_type = 3; | 7721 // optional string output_type = 3; |
7833 bool MethodDescriptorProto::has_output_type() const { | 7722 bool MethodDescriptorProto::has_output_type() const { |
7834 return (_has_bits_[0] & 0x00000004u) != 0; | 7723 return (_has_bits_[0] & 0x00000004u) != 0; |
7835 } | 7724 } |
7836 void MethodDescriptorProto::set_has_output_type() { | 7725 void MethodDescriptorProto::set_has_output_type() { |
7837 _has_bits_[0] |= 0x00000004u; | 7726 _has_bits_[0] |= 0x00000004u; |
7838 } | 7727 } |
7839 void MethodDescriptorProto::clear_has_output_type() { | 7728 void MethodDescriptorProto::clear_has_output_type() { |
7840 _has_bits_[0] &= ~0x00000004u; | 7729 _has_bits_[0] &= ~0x00000004u; |
7841 } | 7730 } |
7842 void MethodDescriptorProto::clear_output_type() { | 7731 void MethodDescriptorProto::clear_output_type() { |
7843 output_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); | 7732 output_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); |
7844 clear_has_output_type(); | 7733 clear_has_output_type(); |
7845 } | 7734 } |
7846 const ::std::string& MethodDescriptorProto::output_type() const { | 7735 const ::std::string& MethodDescriptorProto::output_type() const { |
7847 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.ou
tput_type) | 7736 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.ou
tput_type) |
7848 return output_type_.GetNoArena(); | 7737 return output_type_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); |
7849 } | 7738 } |
7850 void MethodDescriptorProto::set_output_type(const ::std::string& value) { | 7739 void MethodDescriptorProto::set_output_type(const ::std::string& value) { |
7851 set_has_output_type(); | 7740 set_has_output_type(); |
7852 output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited(), value); | 7741 output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited(), value); |
7853 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.ou
tput_type) | 7742 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.ou
tput_type) |
7854 } | 7743 } |
7855 #if LANG_CXX11 | 7744 void MethodDescriptorProto::set_output_type(const char* value) { |
7856 void MethodDescriptorProto::set_output_type(::std::string&& value) { | |
7857 set_has_output_type(); | |
7858 output_type_.SetNoArena( | |
7859 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va
lue)); | |
7860 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.MethodDescriptorP
roto.output_type) | |
7861 } | |
7862 #endif | |
7863 void MethodDescriptorProto::set_output_type(const char* value) { | |
7864 set_has_output_type(); | 7745 set_has_output_type(); |
7865 output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited(), ::std::string(value)); | 7746 output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited(), ::std::string(value)); |
7866 // @@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) |
7867 } | 7748 } |
7868 void MethodDescriptorProto::set_output_type(const char* value, size_t size) { | 7749 void MethodDescriptorProto::set_output_type(const char* value, size_t size) { |
7869 set_has_output_type(); | 7750 set_has_output_type(); |
7870 output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited(), | 7751 output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited(), |
7871 ::std::string(reinterpret_cast<const char*>(value), size)); | 7752 ::std::string(reinterpret_cast<const char*>(value), size)); |
7872 // @@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) |
7873 } | 7754 } |
7874 ::std::string* MethodDescriptorProto::mutable_output_type() { | 7755 ::std::string* MethodDescriptorProto::mutable_output_type() { |
7875 set_has_output_type(); | 7756 set_has_output_type(); |
7876 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProt
o.output_type) | 7757 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProt
o.output_type) |
7877 return output_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); | 7758 return output_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); |
7878 } | 7759 } |
7879 ::std::string* MethodDescriptorProto::release_output_type() { | 7760 ::std::string* MethodDescriptorProto::release_output_type() { |
7880 // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProt
o.output_type) | 7761 // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProt
o.output_type) |
7881 clear_has_output_type(); | 7762 clear_has_output_type(); |
7882 return output_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); | 7763 return output_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); |
7883 } | 7764 } |
7884 void MethodDescriptorProto::set_allocated_output_type(::std::string* output_type
) { | 7765 void MethodDescriptorProto::set_allocated_output_type(::std::string* output_typ
e) { |
7885 if (output_type != NULL) { | 7766 if (output_type != NULL) { |
7886 set_has_output_type(); | 7767 set_has_output_type(); |
7887 } else { | 7768 } else { |
7888 clear_has_output_type(); | 7769 clear_has_output_type(); |
7889 } | 7770 } |
7890 output_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited(), output_type); | 7771 output_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited(), output_type); |
7891 // @@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) |
7892 } | 7773 } |
7893 | 7774 |
7894 // optional .google.protobuf.MethodOptions options = 4; | 7775 // optional .google.protobuf.MethodOptions options = 4; |
7895 bool MethodDescriptorProto::has_options() const { | 7776 bool MethodDescriptorProto::has_options() const { |
7896 return (_has_bits_[0] & 0x00000008u) != 0; | 7777 return (_has_bits_[0] & 0x00000008u) != 0; |
7897 } | 7778 } |
7898 void MethodDescriptorProto::set_has_options() { | 7779 void MethodDescriptorProto::set_has_options() { |
7899 _has_bits_[0] |= 0x00000008u; | 7780 _has_bits_[0] |= 0x00000008u; |
7900 } | 7781 } |
7901 void MethodDescriptorProto::clear_has_options() { | 7782 void MethodDescriptorProto::clear_has_options() { |
7902 _has_bits_[0] &= ~0x00000008u; | 7783 _has_bits_[0] &= ~0x00000008u; |
7903 } | 7784 } |
7904 void MethodDescriptorProto::clear_options() { | 7785 void MethodDescriptorProto::clear_options() { |
7905 if (options_ != NULL) options_->::google::protobuf::MethodOptions::Clear(); | 7786 if (options_ != NULL) options_->::google::protobuf::MethodOptions::Clear(); |
7906 clear_has_options(); | 7787 clear_has_options(); |
7907 } | 7788 } |
7908 const ::google::protobuf::MethodOptions& MethodDescriptorProto::options() const
{ | 7789 const ::google::protobuf::MethodOptions& MethodDescriptorProto::options() const
{ |
7909 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.op
tions) | 7790 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.op
tions) |
7910 return options_ != NULL ? *options_ | 7791 return options_ != NULL ? *options_ : *default_instance_->options_; |
7911 : *::google::protobuf::MethodOptions::internal_default_
instance(); | |
7912 } | 7792 } |
7913 ::google::protobuf::MethodOptions* MethodDescriptorProto::mutable_options() { | 7793 ::google::protobuf::MethodOptions* MethodDescriptorProto::mutable_options() { |
7914 set_has_options(); | 7794 set_has_options(); |
7915 if (options_ == NULL) { | 7795 if (options_ == NULL) { |
7916 options_ = new ::google::protobuf::MethodOptions; | 7796 options_ = new ::google::protobuf::MethodOptions; |
7917 } | 7797 } |
7918 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProt
o.options) | 7798 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProt
o.options) |
7919 return options_; | 7799 return options_; |
7920 } | 7800 } |
7921 ::google::protobuf::MethodOptions* MethodDescriptorProto::release_options() { | 7801 ::google::protobuf::MethodOptions* MethodDescriptorProto::release_options() { |
(...skipping 21 matching lines...) Expand all Loading... |
7943 void MethodDescriptorProto::set_has_client_streaming() { | 7823 void MethodDescriptorProto::set_has_client_streaming() { |
7944 _has_bits_[0] |= 0x00000010u; | 7824 _has_bits_[0] |= 0x00000010u; |
7945 } | 7825 } |
7946 void MethodDescriptorProto::clear_has_client_streaming() { | 7826 void MethodDescriptorProto::clear_has_client_streaming() { |
7947 _has_bits_[0] &= ~0x00000010u; | 7827 _has_bits_[0] &= ~0x00000010u; |
7948 } | 7828 } |
7949 void MethodDescriptorProto::clear_client_streaming() { | 7829 void MethodDescriptorProto::clear_client_streaming() { |
7950 client_streaming_ = false; | 7830 client_streaming_ = false; |
7951 clear_has_client_streaming(); | 7831 clear_has_client_streaming(); |
7952 } | 7832 } |
7953 bool MethodDescriptorProto::client_streaming() const { | 7833 bool MethodDescriptorProto::client_streaming() const { |
7954 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.cl
ient_streaming) | 7834 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.cl
ient_streaming) |
7955 return client_streaming_; | 7835 return client_streaming_; |
7956 } | 7836 } |
7957 void MethodDescriptorProto::set_client_streaming(bool value) { | 7837 void MethodDescriptorProto::set_client_streaming(bool value) { |
7958 set_has_client_streaming(); | 7838 set_has_client_streaming(); |
7959 client_streaming_ = value; | 7839 client_streaming_ = value; |
7960 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.cl
ient_streaming) | 7840 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.cl
ient_streaming) |
7961 } | 7841 } |
7962 | 7842 |
7963 // optional bool server_streaming = 6 [default = false]; | 7843 // optional bool server_streaming = 6 [default = false]; |
7964 bool MethodDescriptorProto::has_server_streaming() const { | 7844 bool MethodDescriptorProto::has_server_streaming() const { |
7965 return (_has_bits_[0] & 0x00000020u) != 0; | 7845 return (_has_bits_[0] & 0x00000020u) != 0; |
7966 } | 7846 } |
7967 void MethodDescriptorProto::set_has_server_streaming() { | 7847 void MethodDescriptorProto::set_has_server_streaming() { |
7968 _has_bits_[0] |= 0x00000020u; | 7848 _has_bits_[0] |= 0x00000020u; |
7969 } | 7849 } |
7970 void MethodDescriptorProto::clear_has_server_streaming() { | 7850 void MethodDescriptorProto::clear_has_server_streaming() { |
7971 _has_bits_[0] &= ~0x00000020u; | 7851 _has_bits_[0] &= ~0x00000020u; |
7972 } | 7852 } |
7973 void MethodDescriptorProto::clear_server_streaming() { | 7853 void MethodDescriptorProto::clear_server_streaming() { |
7974 server_streaming_ = false; | 7854 server_streaming_ = false; |
7975 clear_has_server_streaming(); | 7855 clear_has_server_streaming(); |
7976 } | 7856 } |
7977 bool MethodDescriptorProto::server_streaming() const { | 7857 bool MethodDescriptorProto::server_streaming() const { |
7978 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.se
rver_streaming) | 7858 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.se
rver_streaming) |
7979 return server_streaming_; | 7859 return server_streaming_; |
7980 } | 7860 } |
7981 void MethodDescriptorProto::set_server_streaming(bool value) { | 7861 void MethodDescriptorProto::set_server_streaming(bool value) { |
7982 set_has_server_streaming(); | 7862 set_has_server_streaming(); |
7983 server_streaming_ = value; | 7863 server_streaming_ = value; |
7984 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.se
rver_streaming) | 7864 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.se
rver_streaming) |
7985 } | 7865 } |
7986 | 7866 |
7987 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 7867 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
7988 | 7868 |
7989 // =================================================================== | 7869 // =================================================================== |
7990 | 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 |
7991 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 7894 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
7992 const int FileOptions::kJavaPackageFieldNumber; | 7895 const int FileOptions::kJavaPackageFieldNumber; |
7993 const int FileOptions::kJavaOuterClassnameFieldNumber; | 7896 const int FileOptions::kJavaOuterClassnameFieldNumber; |
7994 const int FileOptions::kJavaMultipleFilesFieldNumber; | 7897 const int FileOptions::kJavaMultipleFilesFieldNumber; |
7995 const int FileOptions::kJavaGenerateEqualsAndHashFieldNumber; | 7898 const int FileOptions::kJavaGenerateEqualsAndHashFieldNumber; |
7996 const int FileOptions::kJavaStringCheckUtf8FieldNumber; | 7899 const int FileOptions::kJavaStringCheckUtf8FieldNumber; |
7997 const int FileOptions::kOptimizeForFieldNumber; | 7900 const int FileOptions::kOptimizeForFieldNumber; |
7998 const int FileOptions::kGoPackageFieldNumber; | 7901 const int FileOptions::kGoPackageFieldNumber; |
7999 const int FileOptions::kCcGenericServicesFieldNumber; | 7902 const int FileOptions::kCcGenericServicesFieldNumber; |
8000 const int FileOptions::kJavaGenericServicesFieldNumber; | 7903 const int FileOptions::kJavaGenericServicesFieldNumber; |
8001 const int FileOptions::kPyGenericServicesFieldNumber; | 7904 const int FileOptions::kPyGenericServicesFieldNumber; |
8002 const int FileOptions::kDeprecatedFieldNumber; | 7905 const int FileOptions::kDeprecatedFieldNumber; |
8003 const int FileOptions::kCcEnableArenasFieldNumber; | 7906 const int FileOptions::kCcEnableArenasFieldNumber; |
8004 const int FileOptions::kObjcClassPrefixFieldNumber; | 7907 const int FileOptions::kObjcClassPrefixFieldNumber; |
8005 const int FileOptions::kCsharpNamespaceFieldNumber; | 7908 const int FileOptions::kCsharpNamespaceFieldNumber; |
8006 const int FileOptions::kSwiftPrefixFieldNumber; | |
8007 const int FileOptions::kUninterpretedOptionFieldNumber; | 7909 const int FileOptions::kUninterpretedOptionFieldNumber; |
8008 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 7910 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
8009 | 7911 |
8010 FileOptions::FileOptions() | 7912 FileOptions::FileOptions() |
8011 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 7913 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
8012 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
8013 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
8014 } | |
8015 SharedCtor(); | 7914 SharedCtor(); |
8016 // @@protoc_insertion_point(constructor:google.protobuf.FileOptions) | 7915 // @@protoc_insertion_point(constructor:google.protobuf.FileOptions) |
8017 } | 7916 } |
| 7917 |
| 7918 void FileOptions::InitAsDefaultInstance() { |
| 7919 } |
| 7920 |
8018 FileOptions::FileOptions(const FileOptions& from) | 7921 FileOptions::FileOptions(const FileOptions& from) |
8019 : ::google::protobuf::Message(), | 7922 : ::google::protobuf::Message(), |
8020 _internal_metadata_(NULL), | 7923 _internal_metadata_(NULL) { |
8021 _has_bits_(from._has_bits_), | 7924 SharedCtor(); |
8022 _cached_size_(0), | 7925 MergeFrom(from); |
8023 uninterpreted_option_(from.uninterpreted_option_) { | |
8024 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
8025 _extensions_.MergeFrom(from._extensions_); | |
8026 java_package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); | |
8027 if (from.has_java_package()) { | |
8028 java_package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited(), from.java_package_); | |
8029 } | |
8030 java_outer_classname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmpty
StringAlreadyInited()); | |
8031 if (from.has_java_outer_classname()) { | |
8032 java_outer_classname_.AssignWithDefault(&::google::protobuf::internal::GetEm
ptyStringAlreadyInited(), from.java_outer_classname_); | |
8033 } | |
8034 go_package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); | |
8035 if (from.has_go_package()) { | |
8036 go_package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringA
lreadyInited(), from.go_package_); | |
8037 } | |
8038 objc_class_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited()); | |
8039 if (from.has_objc_class_prefix()) { | |
8040 objc_class_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmpty
StringAlreadyInited(), from.objc_class_prefix_); | |
8041 } | |
8042 csharp_namespace_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); | |
8043 if (from.has_csharp_namespace()) { | |
8044 csharp_namespace_.AssignWithDefault(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited(), from.csharp_namespace_); | |
8045 } | |
8046 swift_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); | |
8047 if (from.has_swift_prefix()) { | |
8048 swift_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited(), from.swift_prefix_); | |
8049 } | |
8050 ::memcpy(&java_multiple_files_, &from.java_multiple_files_, | |
8051 reinterpret_cast<char*>(&optimize_for_) - | |
8052 reinterpret_cast<char*>(&java_multiple_files_) + sizeof(optimize_for_)); | |
8053 // @@protoc_insertion_point(copy_constructor:google.protobuf.FileOptions) | 7926 // @@protoc_insertion_point(copy_constructor:google.protobuf.FileOptions) |
8054 } | 7927 } |
8055 | 7928 |
8056 void FileOptions::SharedCtor() { | 7929 void FileOptions::SharedCtor() { |
| 7930 ::google::protobuf::internal::GetEmptyString(); |
8057 _cached_size_ = 0; | 7931 _cached_size_ = 0; |
8058 java_package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); | 7932 java_package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); |
8059 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; |
8060 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; |
8061 objc_class_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited()); | 7944 objc_class_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited()); |
8062 csharp_namespace_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); | 7945 csharp_namespace_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); |
8063 swift_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); | 7946 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
8064 ::memset(&java_multiple_files_, 0, reinterpret_cast<char*>(&cc_enable_arenas_)
- | |
8065 reinterpret_cast<char*>(&java_multiple_files_) + sizeof(cc_enable_arenas_)); | |
8066 optimize_for_ = 1; | |
8067 } | 7947 } |
8068 | 7948 |
8069 FileOptions::~FileOptions() { | 7949 FileOptions::~FileOptions() { |
8070 // @@protoc_insertion_point(destructor:google.protobuf.FileOptions) | 7950 // @@protoc_insertion_point(destructor:google.protobuf.FileOptions) |
8071 SharedDtor(); | 7951 SharedDtor(); |
8072 } | 7952 } |
8073 | 7953 |
8074 void FileOptions::SharedDtor() { | 7954 void FileOptions::SharedDtor() { |
8075 java_package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); | 7955 java_package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); |
8076 java_outer_classname_.DestroyNoArena(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited()); | 7956 java_outer_classname_.DestroyNoArena(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited()); |
8077 go_package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlread
yInited()); | 7957 go_package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlread
yInited()); |
8078 objc_class_prefix_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); | 7958 objc_class_prefix_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); |
8079 csharp_namespace_.DestroyNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); | 7959 csharp_namespace_.DestroyNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); |
8080 swift_prefix_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); | 7960 if (this != default_instance_) { |
| 7961 } |
8081 } | 7962 } |
8082 | 7963 |
8083 void FileOptions::SetCachedSize(int size) const { | 7964 void FileOptions::SetCachedSize(int size) const { |
8084 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 7965 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
8085 _cached_size_ = size; | 7966 _cached_size_ = size; |
8086 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 7967 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
8087 } | 7968 } |
8088 const ::google::protobuf::Descriptor* FileOptions::descriptor() { | 7969 const ::google::protobuf::Descriptor* FileOptions::descriptor() { |
8089 protobuf_AssignDescriptorsOnce(); | 7970 protobuf_AssignDescriptorsOnce(); |
8090 return file_level_metadata[11].descriptor; | 7971 return FileOptions_descriptor_; |
8091 } | 7972 } |
8092 | 7973 |
8093 const FileOptions& FileOptions::default_instance() { | 7974 const FileOptions& FileOptions::default_instance() { |
8094 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 7975 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
8095 return *internal_default_instance(); | 7976 return *default_instance_; |
8096 } | 7977 } |
8097 | 7978 |
| 7979 FileOptions* FileOptions::default_instance_ = NULL; |
| 7980 |
8098 FileOptions* FileOptions::New(::google::protobuf::Arena* arena) const { | 7981 FileOptions* FileOptions::New(::google::protobuf::Arena* arena) const { |
8099 FileOptions* n = new FileOptions; | 7982 FileOptions* n = new FileOptions; |
8100 if (arena != NULL) { | 7983 if (arena != NULL) { |
8101 arena->Own(n); | 7984 arena->Own(n); |
8102 } | 7985 } |
8103 return n; | 7986 return n; |
8104 } | 7987 } |
8105 | 7988 |
8106 void FileOptions::Clear() { | 7989 void FileOptions::Clear() { |
8107 // @@protoc_insertion_point(message_clear_start:google.protobuf.FileOptions) | 7990 // @@protoc_insertion_point(message_clear_start:google.protobuf.FileOptions) |
8108 _extensions_.Clear(); | 7991 _extensions_.Clear(); |
8109 uninterpreted_option_.Clear(); | 7992 #if defined(__clang__) |
8110 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_); |
8111 if (has_java_package()) { | 8010 if (has_java_package()) { |
8112 GOOGLE_DCHECK(!java_package_.IsDefault(&::google::protobuf::internal::GetE
mptyStringAlreadyInited())); | 8011 java_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited()); |
8113 (*java_package_.UnsafeRawStringPointer())->clear(); | |
8114 } | 8012 } |
8115 if (has_java_outer_classname()) { | 8013 if (has_java_outer_classname()) { |
8116 GOOGLE_DCHECK(!java_outer_classname_.IsDefault(&::google::protobuf::intern
al::GetEmptyStringAlreadyInited())); | 8014 java_outer_classname_.ClearToEmptyNoArena(&::google::protobuf::internal::G
etEmptyStringAlreadyInited()); |
8117 (*java_outer_classname_.UnsafeRawStringPointer())->clear(); | |
8118 } | 8015 } |
| 8016 optimize_for_ = 1; |
8119 if (has_go_package()) { | 8017 if (has_go_package()) { |
8120 GOOGLE_DCHECK(!go_package_.IsDefault(&::google::protobuf::internal::GetEmp
tyStringAlreadyInited())); | 8018 go_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited()); |
8121 (*go_package_.UnsafeRawStringPointer())->clear(); | |
8122 } | 8019 } |
| 8020 } |
| 8021 if (_has_bits_[8 / 32] & 16128u) { |
| 8022 ZR_(java_generic_services_, cc_enable_arenas_); |
8123 if (has_objc_class_prefix()) { | 8023 if (has_objc_class_prefix()) { |
8124 GOOGLE_DCHECK(!objc_class_prefix_.IsDefault(&::google::protobuf::internal:
:GetEmptyStringAlreadyInited())); | 8024 objc_class_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetE
mptyStringAlreadyInited()); |
8125 (*objc_class_prefix_.UnsafeRawStringPointer())->clear(); | |
8126 } | 8025 } |
8127 if (has_csharp_namespace()) { | 8026 if (has_csharp_namespace()) { |
8128 GOOGLE_DCHECK(!csharp_namespace_.IsDefault(&::google::protobuf::internal::
GetEmptyStringAlreadyInited())); | 8027 csharp_namespace_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEm
ptyStringAlreadyInited()); |
8129 (*csharp_namespace_.UnsafeRawStringPointer())->clear(); | |
8130 } | |
8131 if (has_swift_prefix()) { | |
8132 GOOGLE_DCHECK(!swift_prefix_.IsDefault(&::google::protobuf::internal::GetE
mptyStringAlreadyInited())); | |
8133 (*swift_prefix_.UnsafeRawStringPointer())->clear(); | |
8134 } | 8028 } |
8135 } | 8029 } |
8136 if (_has_bits_[0 / 32] & 192u) { | 8030 |
8137 ::memset(&java_multiple_files_, 0, reinterpret_cast<char*>(&java_generate_eq
uals_and_hash_) - | 8031 #undef ZR_HELPER_ |
8138 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(); |
8139 } | 8038 } |
8140 if (_has_bits_[8 / 32] & 32512u) { | |
8141 ::memset(&java_string_check_utf8_, 0, reinterpret_cast<char*>(&cc_enable_are
nas_) - | |
8142 reinterpret_cast<char*>(&java_string_check_utf8_) + sizeof(cc_enable_arena
s_)); | |
8143 optimize_for_ = 1; | |
8144 } | |
8145 _has_bits_.Clear(); | |
8146 _internal_metadata_.Clear(); | |
8147 } | 8039 } |
8148 | 8040 |
8149 bool FileOptions::MergePartialFromCodedStream( | 8041 bool FileOptions::MergePartialFromCodedStream( |
8150 ::google::protobuf::io::CodedInputStream* input) { | 8042 ::google::protobuf::io::CodedInputStream* input) { |
8151 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 8043 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
8152 ::google::protobuf::uint32 tag; | 8044 ::google::protobuf::uint32 tag; |
8153 // @@protoc_insertion_point(parse_start:google.protobuf.FileOptions) | 8045 // @@protoc_insertion_point(parse_start:google.protobuf.FileOptions) |
8154 for (;;) { | 8046 for (;;) { |
8155 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(16383u); | 8047 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
16383); |
8156 tag = p.first; | 8048 tag = p.first; |
8157 if (!p.second) goto handle_unusual; | 8049 if (!p.second) goto handle_unusual; |
8158 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 8050 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
8159 // optional string java_package = 1; | 8051 // optional string java_package = 1; |
8160 case 1: { | 8052 case 1: { |
8161 if (tag == 10u) { | 8053 if (tag == 10) { |
8162 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 8054 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
8163 input, this->mutable_java_package())); | 8055 input, this->mutable_java_package())); |
8164 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 8056 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
8165 this->java_package().data(), this->java_package().length(), | 8057 this->java_package().data(), this->java_package().length(), |
8166 ::google::protobuf::internal::WireFormat::PARSE, | 8058 ::google::protobuf::internal::WireFormat::PARSE, |
8167 "google.protobuf.FileOptions.java_package"); | 8059 "google.protobuf.FileOptions.java_package"); |
8168 } else { | 8060 } else { |
8169 goto handle_unusual; | 8061 goto handle_unusual; |
8170 } | 8062 } |
| 8063 if (input->ExpectTag(66)) goto parse_java_outer_classname; |
8171 break; | 8064 break; |
8172 } | 8065 } |
8173 | 8066 |
8174 // optional string java_outer_classname = 8; | 8067 // optional string java_outer_classname = 8; |
8175 case 8: { | 8068 case 8: { |
8176 if (tag == 66u) { | 8069 if (tag == 66) { |
| 8070 parse_java_outer_classname: |
8177 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 8071 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
8178 input, this->mutable_java_outer_classname())); | 8072 input, this->mutable_java_outer_classname())); |
8179 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 8073 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
8180 this->java_outer_classname().data(), this->java_outer_classname().le
ngth(), | 8074 this->java_outer_classname().data(), this->java_outer_classname().le
ngth(), |
8181 ::google::protobuf::internal::WireFormat::PARSE, | 8075 ::google::protobuf::internal::WireFormat::PARSE, |
8182 "google.protobuf.FileOptions.java_outer_classname"); | 8076 "google.protobuf.FileOptions.java_outer_classname"); |
8183 } else { | 8077 } else { |
8184 goto handle_unusual; | 8078 goto handle_unusual; |
8185 } | 8079 } |
| 8080 if (input->ExpectTag(72)) goto parse_optimize_for; |
8186 break; | 8081 break; |
8187 } | 8082 } |
8188 | 8083 |
8189 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [de
fault = SPEED]; | 8084 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [de
fault = SPEED]; |
8190 case 9: { | 8085 case 9: { |
8191 if (tag == 72u) { | 8086 if (tag == 72) { |
| 8087 parse_optimize_for: |
8192 int value; | 8088 int value; |
8193 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 8089 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
8194 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>
( | 8090 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>
( |
8195 input, &value))); | 8091 input, &value))); |
8196 if (::google::protobuf::FileOptions_OptimizeMode_IsValid(value)) { | 8092 if (::google::protobuf::FileOptions_OptimizeMode_IsValid(value)) { |
8197 set_optimize_for(static_cast< ::google::protobuf::FileOptions_Optimi
zeMode >(value)); | 8093 set_optimize_for(static_cast< ::google::protobuf::FileOptions_Optimi
zeMode >(value)); |
8198 } else { | 8094 } else { |
8199 mutable_unknown_fields()->AddVarint(9, value); | 8095 mutable_unknown_fields()->AddVarint(9, value); |
8200 } | 8096 } |
8201 } else { | 8097 } else { |
8202 goto handle_unusual; | 8098 goto handle_unusual; |
8203 } | 8099 } |
| 8100 if (input->ExpectTag(80)) goto parse_java_multiple_files; |
8204 break; | 8101 break; |
8205 } | 8102 } |
8206 | 8103 |
8207 // optional bool java_multiple_files = 10 [default = false]; | 8104 // optional bool java_multiple_files = 10 [default = false]; |
8208 case 10: { | 8105 case 10: { |
8209 if (tag == 80u) { | 8106 if (tag == 80) { |
8210 set_has_java_multiple_files(); | 8107 parse_java_multiple_files: |
8211 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 8108 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
8212 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 8109 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
8213 input, &java_multiple_files_))); | 8110 input, &java_multiple_files_))); |
| 8111 set_has_java_multiple_files(); |
8214 } else { | 8112 } else { |
8215 goto handle_unusual; | 8113 goto handle_unusual; |
8216 } | 8114 } |
| 8115 if (input->ExpectTag(90)) goto parse_go_package; |
8217 break; | 8116 break; |
8218 } | 8117 } |
8219 | 8118 |
8220 // optional string go_package = 11; | 8119 // optional string go_package = 11; |
8221 case 11: { | 8120 case 11: { |
8222 if (tag == 90u) { | 8121 if (tag == 90) { |
| 8122 parse_go_package: |
8223 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 8123 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
8224 input, this->mutable_go_package())); | 8124 input, this->mutable_go_package())); |
8225 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 8125 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
8226 this->go_package().data(), this->go_package().length(), | 8126 this->go_package().data(), this->go_package().length(), |
8227 ::google::protobuf::internal::WireFormat::PARSE, | 8127 ::google::protobuf::internal::WireFormat::PARSE, |
8228 "google.protobuf.FileOptions.go_package"); | 8128 "google.protobuf.FileOptions.go_package"); |
8229 } else { | 8129 } else { |
8230 goto handle_unusual; | 8130 goto handle_unusual; |
8231 } | 8131 } |
| 8132 if (input->ExpectTag(128)) goto parse_cc_generic_services; |
8232 break; | 8133 break; |
8233 } | 8134 } |
8234 | 8135 |
8235 // optional bool cc_generic_services = 16 [default = false]; | 8136 // optional bool cc_generic_services = 16 [default = false]; |
8236 case 16: { | 8137 case 16: { |
8237 if (tag == 128u) { | 8138 if (tag == 128) { |
8238 set_has_cc_generic_services(); | 8139 parse_cc_generic_services: |
8239 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 8140 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
8240 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 8141 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
8241 input, &cc_generic_services_))); | 8142 input, &cc_generic_services_))); |
| 8143 set_has_cc_generic_services(); |
8242 } else { | 8144 } else { |
8243 goto handle_unusual; | 8145 goto handle_unusual; |
8244 } | 8146 } |
| 8147 if (input->ExpectTag(136)) goto parse_java_generic_services; |
8245 break; | 8148 break; |
8246 } | 8149 } |
8247 | 8150 |
8248 // optional bool java_generic_services = 17 [default = false]; | 8151 // optional bool java_generic_services = 17 [default = false]; |
8249 case 17: { | 8152 case 17: { |
8250 if (tag == 136u) { | 8153 if (tag == 136) { |
8251 set_has_java_generic_services(); | 8154 parse_java_generic_services: |
8252 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 8155 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
8253 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 8156 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
8254 input, &java_generic_services_))); | 8157 input, &java_generic_services_))); |
| 8158 set_has_java_generic_services(); |
8255 } else { | 8159 } else { |
8256 goto handle_unusual; | 8160 goto handle_unusual; |
8257 } | 8161 } |
| 8162 if (input->ExpectTag(144)) goto parse_py_generic_services; |
8258 break; | 8163 break; |
8259 } | 8164 } |
8260 | 8165 |
8261 // optional bool py_generic_services = 18 [default = false]; | 8166 // optional bool py_generic_services = 18 [default = false]; |
8262 case 18: { | 8167 case 18: { |
8263 if (tag == 144u) { | 8168 if (tag == 144) { |
8264 set_has_py_generic_services(); | 8169 parse_py_generic_services: |
8265 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 8170 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
8266 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 8171 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
8267 input, &py_generic_services_))); | 8172 input, &py_generic_services_))); |
| 8173 set_has_py_generic_services(); |
8268 } else { | 8174 } else { |
8269 goto handle_unusual; | 8175 goto handle_unusual; |
8270 } | 8176 } |
| 8177 if (input->ExpectTag(160)) goto parse_java_generate_equals_and_hash; |
8271 break; | 8178 break; |
8272 } | 8179 } |
8273 | 8180 |
8274 // optional bool java_generate_equals_and_hash = 20 [deprecated = true]; | 8181 // optional bool java_generate_equals_and_hash = 20 [default = false]; |
8275 case 20: { | 8182 case 20: { |
8276 if (tag == 160u) { | 8183 if (tag == 160) { |
8277 set_has_java_generate_equals_and_hash(); | 8184 parse_java_generate_equals_and_hash: |
8278 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 8185 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
8279 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 8186 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
8280 input, &java_generate_equals_and_hash_))); | 8187 input, &java_generate_equals_and_hash_))); |
| 8188 set_has_java_generate_equals_and_hash(); |
8281 } else { | 8189 } else { |
8282 goto handle_unusual; | 8190 goto handle_unusual; |
8283 } | 8191 } |
| 8192 if (input->ExpectTag(184)) goto parse_deprecated; |
8284 break; | 8193 break; |
8285 } | 8194 } |
8286 | 8195 |
8287 // optional bool deprecated = 23 [default = false]; | 8196 // optional bool deprecated = 23 [default = false]; |
8288 case 23: { | 8197 case 23: { |
8289 if (tag == 184u) { | 8198 if (tag == 184) { |
8290 set_has_deprecated(); | 8199 parse_deprecated: |
8291 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 8200 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
8292 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 8201 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
8293 input, &deprecated_))); | 8202 input, &deprecated_))); |
| 8203 set_has_deprecated(); |
8294 } else { | 8204 } else { |
8295 goto handle_unusual; | 8205 goto handle_unusual; |
8296 } | 8206 } |
| 8207 if (input->ExpectTag(216)) goto parse_java_string_check_utf8; |
8297 break; | 8208 break; |
8298 } | 8209 } |
8299 | 8210 |
8300 // optional bool java_string_check_utf8 = 27 [default = false]; | 8211 // optional bool java_string_check_utf8 = 27 [default = false]; |
8301 case 27: { | 8212 case 27: { |
8302 if (tag == 216u) { | 8213 if (tag == 216) { |
8303 set_has_java_string_check_utf8(); | 8214 parse_java_string_check_utf8: |
8304 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 8215 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
8305 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 8216 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
8306 input, &java_string_check_utf8_))); | 8217 input, &java_string_check_utf8_))); |
| 8218 set_has_java_string_check_utf8(); |
8307 } else { | 8219 } else { |
8308 goto handle_unusual; | 8220 goto handle_unusual; |
8309 } | 8221 } |
| 8222 if (input->ExpectTag(248)) goto parse_cc_enable_arenas; |
8310 break; | 8223 break; |
8311 } | 8224 } |
8312 | 8225 |
8313 // optional bool cc_enable_arenas = 31 [default = false]; | 8226 // optional bool cc_enable_arenas = 31 [default = false]; |
8314 case 31: { | 8227 case 31: { |
8315 if (tag == 248u) { | 8228 if (tag == 248) { |
8316 set_has_cc_enable_arenas(); | 8229 parse_cc_enable_arenas: |
8317 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 8230 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
8318 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 8231 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
8319 input, &cc_enable_arenas_))); | 8232 input, &cc_enable_arenas_))); |
| 8233 set_has_cc_enable_arenas(); |
8320 } else { | 8234 } else { |
8321 goto handle_unusual; | 8235 goto handle_unusual; |
8322 } | 8236 } |
| 8237 if (input->ExpectTag(290)) goto parse_objc_class_prefix; |
8323 break; | 8238 break; |
8324 } | 8239 } |
8325 | 8240 |
8326 // optional string objc_class_prefix = 36; | 8241 // optional string objc_class_prefix = 36; |
8327 case 36: { | 8242 case 36: { |
8328 if (tag == 290u) { | 8243 if (tag == 290) { |
| 8244 parse_objc_class_prefix: |
8329 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 8245 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
8330 input, this->mutable_objc_class_prefix())); | 8246 input, this->mutable_objc_class_prefix())); |
8331 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 8247 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
8332 this->objc_class_prefix().data(), this->objc_class_prefix().length()
, | 8248 this->objc_class_prefix().data(), this->objc_class_prefix().length()
, |
8333 ::google::protobuf::internal::WireFormat::PARSE, | 8249 ::google::protobuf::internal::WireFormat::PARSE, |
8334 "google.protobuf.FileOptions.objc_class_prefix"); | 8250 "google.protobuf.FileOptions.objc_class_prefix"); |
8335 } else { | 8251 } else { |
8336 goto handle_unusual; | 8252 goto handle_unusual; |
8337 } | 8253 } |
| 8254 if (input->ExpectTag(298)) goto parse_csharp_namespace; |
8338 break; | 8255 break; |
8339 } | 8256 } |
8340 | 8257 |
8341 // optional string csharp_namespace = 37; | 8258 // optional string csharp_namespace = 37; |
8342 case 37: { | 8259 case 37: { |
8343 if (tag == 298u) { | 8260 if (tag == 298) { |
| 8261 parse_csharp_namespace: |
8344 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 8262 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
8345 input, this->mutable_csharp_namespace())); | 8263 input, this->mutable_csharp_namespace())); |
8346 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 8264 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
8347 this->csharp_namespace().data(), this->csharp_namespace().length(), | 8265 this->csharp_namespace().data(), this->csharp_namespace().length(), |
8348 ::google::protobuf::internal::WireFormat::PARSE, | 8266 ::google::protobuf::internal::WireFormat::PARSE, |
8349 "google.protobuf.FileOptions.csharp_namespace"); | 8267 "google.protobuf.FileOptions.csharp_namespace"); |
8350 } else { | 8268 } else { |
8351 goto handle_unusual; | 8269 goto handle_unusual; |
8352 } | 8270 } |
8353 break; | 8271 if (input->ExpectTag(7994)) goto parse_uninterpreted_option; |
8354 } | |
8355 | |
8356 // optional string swift_prefix = 39; | |
8357 case 39: { | |
8358 if (tag == 314u) { | |
8359 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | |
8360 input, this->mutable_swift_prefix())); | |
8361 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | |
8362 this->swift_prefix().data(), this->swift_prefix().length(), | |
8363 ::google::protobuf::internal::WireFormat::PARSE, | |
8364 "google.protobuf.FileOptions.swift_prefix"); | |
8365 } else { | |
8366 goto handle_unusual; | |
8367 } | |
8368 break; | 8272 break; |
8369 } | 8273 } |
8370 | 8274 |
8371 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99
9; | 8275 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99
9; |
8372 case 999: { | 8276 case 999: { |
8373 if (tag == 7994u) { | 8277 if (tag == 7994) { |
| 8278 parse_uninterpreted_option: |
8374 DO_(input->IncrementRecursionDepth()); | 8279 DO_(input->IncrementRecursionDepth()); |
| 8280 parse_loop_uninterpreted_option: |
8375 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 8281 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
8376 input, add_uninterpreted_option())); | 8282 input, add_uninterpreted_option())); |
8377 } else { | 8283 } else { |
8378 goto handle_unusual; | 8284 goto handle_unusual; |
8379 } | 8285 } |
| 8286 if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option; |
8380 input->UnsafeDecrementRecursionDepth(); | 8287 input->UnsafeDecrementRecursionDepth(); |
| 8288 if (input->ExpectAtEnd()) goto success; |
8381 break; | 8289 break; |
8382 } | 8290 } |
8383 | 8291 |
8384 default: { | 8292 default: { |
8385 handle_unusual: | 8293 handle_unusual: |
8386 if (tag == 0 || | 8294 if (tag == 0 || |
8387 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 8295 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
8388 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 8296 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
8389 goto success; | 8297 goto success; |
8390 } | 8298 } |
8391 if ((8000u <= tag)) { | 8299 if ((8000u <= tag)) { |
8392 DO_(_extensions_.ParseField(tag, input, internal_default_instance(), | 8300 DO_(_extensions_.ParseField(tag, input, default_instance_, |
8393 mutable_unknown_fields())); | 8301 mutable_unknown_fields())); |
8394 continue; | 8302 continue; |
8395 } | 8303 } |
8396 DO_(::google::protobuf::internal::WireFormat::SkipField( | 8304 DO_(::google::protobuf::internal::WireFormat::SkipField( |
8397 input, tag, mutable_unknown_fields())); | 8305 input, tag, mutable_unknown_fields())); |
8398 break; | 8306 break; |
8399 } | 8307 } |
8400 } | 8308 } |
8401 } | 8309 } |
8402 success: | 8310 success: |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8460 // optional bool java_generic_services = 17 [default = false]; | 8368 // optional bool java_generic_services = 17 [default = false]; |
8461 if (has_java_generic_services()) { | 8369 if (has_java_generic_services()) { |
8462 ::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); |
8463 } | 8371 } |
8464 | 8372 |
8465 // optional bool py_generic_services = 18 [default = false]; | 8373 // optional bool py_generic_services = 18 [default = false]; |
8466 if (has_py_generic_services()) { | 8374 if (has_py_generic_services()) { |
8467 ::google::protobuf::internal::WireFormatLite::WriteBool(18, this->py_generic
_services(), output); | 8375 ::google::protobuf::internal::WireFormatLite::WriteBool(18, this->py_generic
_services(), output); |
8468 } | 8376 } |
8469 | 8377 |
8470 // optional bool java_generate_equals_and_hash = 20 [deprecated = true]; | 8378 // optional bool java_generate_equals_and_hash = 20 [default = false]; |
8471 if (has_java_generate_equals_and_hash()) { | 8379 if (has_java_generate_equals_and_hash()) { |
8472 ::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); |
8473 } | 8381 } |
8474 | 8382 |
8475 // optional bool deprecated = 23 [default = false]; | 8383 // optional bool deprecated = 23 [default = false]; |
8476 if (has_deprecated()) { | 8384 if (has_deprecated()) { |
8477 ::google::protobuf::internal::WireFormatLite::WriteBool(23, this->deprecated
(), output); | 8385 ::google::protobuf::internal::WireFormatLite::WriteBool(23, this->deprecated
(), output); |
8478 } | 8386 } |
8479 | 8387 |
8480 // 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... |
8500 // optional string csharp_namespace = 37; | 8408 // optional string csharp_namespace = 37; |
8501 if (has_csharp_namespace()) { | 8409 if (has_csharp_namespace()) { |
8502 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 8410 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
8503 this->csharp_namespace().data(), this->csharp_namespace().length(), | 8411 this->csharp_namespace().data(), this->csharp_namespace().length(), |
8504 ::google::protobuf::internal::WireFormat::SERIALIZE, | 8412 ::google::protobuf::internal::WireFormat::SERIALIZE, |
8505 "google.protobuf.FileOptions.csharp_namespace"); | 8413 "google.protobuf.FileOptions.csharp_namespace"); |
8506 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( | 8414 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
8507 37, this->csharp_namespace(), output); | 8415 37, this->csharp_namespace(), output); |
8508 } | 8416 } |
8509 | 8417 |
8510 // optional string swift_prefix = 39; | |
8511 if (has_swift_prefix()) { | |
8512 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | |
8513 this->swift_prefix().data(), this->swift_prefix().length(), | |
8514 ::google::protobuf::internal::WireFormat::SERIALIZE, | |
8515 "google.protobuf.FileOptions.swift_prefix"); | |
8516 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( | |
8517 39, this->swift_prefix(), output); | |
8518 } | |
8519 | |
8520 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 8418 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
8521 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++) { |
8522 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 8420 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
8523 999, this->uninterpreted_option(i), output); | 8421 999, this->uninterpreted_option(i), output); |
8524 } | 8422 } |
8525 | 8423 |
8526 // Extension range [1000, 536870912) | 8424 // Extension range [1000, 536870912) |
8527 _extensions_.SerializeWithCachedSizes( | 8425 _extensions_.SerializeWithCachedSizes( |
8528 1000, 536870912, output); | 8426 1000, 536870912, output); |
8529 | 8427 |
8530 if (_internal_metadata_.have_unknown_fields()) { | 8428 if (_internal_metadata_.have_unknown_fields()) { |
8531 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 8429 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
8532 unknown_fields(), output); | 8430 unknown_fields(), output); |
8533 } | 8431 } |
8534 // @@protoc_insertion_point(serialize_end:google.protobuf.FileOptions) | 8432 // @@protoc_insertion_point(serialize_end:google.protobuf.FileOptions) |
8535 } | 8433 } |
8536 | 8434 |
8537 ::google::protobuf::uint8* FileOptions::InternalSerializeWithCachedSizesToArray( | 8435 ::google::protobuf::uint8* FileOptions::SerializeWithCachedSizesToArray( |
8538 bool deterministic, ::google::protobuf::uint8* target) const { | 8436 ::google::protobuf::uint8* target) const { |
8539 (void)deterministic; // Unused | |
8540 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileOptio
ns) | 8437 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileOptio
ns) |
8541 // optional string java_package = 1; | 8438 // optional string java_package = 1; |
8542 if (has_java_package()) { | 8439 if (has_java_package()) { |
8543 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 8440 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
8544 this->java_package().data(), this->java_package().length(), | 8441 this->java_package().data(), this->java_package().length(), |
8545 ::google::protobuf::internal::WireFormat::SERIALIZE, | 8442 ::google::protobuf::internal::WireFormat::SERIALIZE, |
8546 "google.protobuf.FileOptions.java_package"); | 8443 "google.protobuf.FileOptions.java_package"); |
8547 target = | 8444 target = |
8548 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 8445 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
8549 1, this->java_package(), target); | 8446 1, this->java_package(), target); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8590 // optional bool java_generic_services = 17 [default = false]; | 8487 // optional bool java_generic_services = 17 [default = false]; |
8591 if (has_java_generic_services()) { | 8488 if (has_java_generic_services()) { |
8592 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); |
8593 } | 8490 } |
8594 | 8491 |
8595 // optional bool py_generic_services = 18 [default = false]; | 8492 // optional bool py_generic_services = 18 [default = false]; |
8596 if (has_py_generic_services()) { | 8493 if (has_py_generic_services()) { |
8597 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); |
8598 } | 8495 } |
8599 | 8496 |
8600 // optional bool java_generate_equals_and_hash = 20 [deprecated = true]; | 8497 // optional bool java_generate_equals_and_hash = 20 [default = false]; |
8601 if (has_java_generate_equals_and_hash()) { | 8498 if (has_java_generate_equals_and_hash()) { |
8602 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); |
8603 } | 8500 } |
8604 | 8501 |
8605 // optional bool deprecated = 23 [default = false]; | 8502 // optional bool deprecated = 23 [default = false]; |
8606 if (has_deprecated()) { | 8503 if (has_deprecated()) { |
8607 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(23,
this->deprecated(), target); | 8504 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(23,
this->deprecated(), target); |
8608 } | 8505 } |
8609 | 8506 |
8610 // 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... |
8632 if (has_csharp_namespace()) { | 8529 if (has_csharp_namespace()) { |
8633 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 8530 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
8634 this->csharp_namespace().data(), this->csharp_namespace().length(), | 8531 this->csharp_namespace().data(), this->csharp_namespace().length(), |
8635 ::google::protobuf::internal::WireFormat::SERIALIZE, | 8532 ::google::protobuf::internal::WireFormat::SERIALIZE, |
8636 "google.protobuf.FileOptions.csharp_namespace"); | 8533 "google.protobuf.FileOptions.csharp_namespace"); |
8637 target = | 8534 target = |
8638 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 8535 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
8639 37, this->csharp_namespace(), target); | 8536 37, this->csharp_namespace(), target); |
8640 } | 8537 } |
8641 | 8538 |
8642 // optional string swift_prefix = 39; | |
8643 if (has_swift_prefix()) { | |
8644 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | |
8645 this->swift_prefix().data(), this->swift_prefix().length(), | |
8646 ::google::protobuf::internal::WireFormat::SERIALIZE, | |
8647 "google.protobuf.FileOptions.swift_prefix"); | |
8648 target = | |
8649 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | |
8650 39, this->swift_prefix(), target); | |
8651 } | |
8652 | |
8653 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 8539 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
8654 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++) { |
8655 target = ::google::protobuf::internal::WireFormatLite:: | 8541 target = ::google::protobuf::internal::WireFormatLite:: |
8656 InternalWriteMessageNoVirtualToArray( | 8542 WriteMessageNoVirtualToArray( |
8657 999, this->uninterpreted_option(i), false, target); | 8543 999, this->uninterpreted_option(i), target); |
8658 } | 8544 } |
8659 | 8545 |
8660 // Extension range [1000, 536870912) | 8546 // Extension range [1000, 536870912) |
8661 target = _extensions_.InternalSerializeWithCachedSizesToArray( | 8547 target = _extensions_.SerializeWithCachedSizesToArray( |
8662 1000, 536870912, false, target); | 8548 1000, 536870912, target); |
8663 | 8549 |
8664 if (_internal_metadata_.have_unknown_fields()) { | 8550 if (_internal_metadata_.have_unknown_fields()) { |
8665 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 8551 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
8666 unknown_fields(), target); | 8552 unknown_fields(), target); |
8667 } | 8553 } |
8668 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileOptions
) | 8554 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileOptions
) |
8669 return target; | 8555 return target; |
8670 } | 8556 } |
8671 | 8557 |
8672 size_t FileOptions::ByteSizeLong() const { | 8558 int FileOptions::ByteSize() const { |
8673 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FileOptions) | 8559 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FileOptions) |
8674 size_t total_size = 0; | 8560 int total_size = 0; |
8675 | |
8676 total_size += _extensions_.ByteSize(); | |
8677 | |
8678 if (_internal_metadata_.have_unknown_fields()) { | |
8679 total_size += | |
8680 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | |
8681 unknown_fields()); | |
8682 } | |
8683 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | |
8684 { | |
8685 unsigned int count = this->uninterpreted_option_size(); | |
8686 total_size += 2UL * count; | |
8687 for (unsigned int i = 0; i < count; i++) { | |
8688 total_size += | |
8689 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
8690 this->uninterpreted_option(i)); | |
8691 } | |
8692 } | |
8693 | 8561 |
8694 if (_has_bits_[0 / 32] & 255u) { | 8562 if (_has_bits_[0 / 32] & 255u) { |
8695 // optional string java_package = 1; | 8563 // optional string java_package = 1; |
8696 if (has_java_package()) { | 8564 if (has_java_package()) { |
8697 total_size += 1 + | 8565 total_size += 1 + |
8698 ::google::protobuf::internal::WireFormatLite::StringSize( | 8566 ::google::protobuf::internal::WireFormatLite::StringSize( |
8699 this->java_package()); | 8567 this->java_package()); |
8700 } | 8568 } |
8701 | 8569 |
8702 // optional string java_outer_classname = 8; | 8570 // optional string java_outer_classname = 8; |
8703 if (has_java_outer_classname()) { | 8571 if (has_java_outer_classname()) { |
8704 total_size += 1 + | 8572 total_size += 1 + |
8705 ::google::protobuf::internal::WireFormatLite::StringSize( | 8573 ::google::protobuf::internal::WireFormatLite::StringSize( |
8706 this->java_outer_classname()); | 8574 this->java_outer_classname()); |
8707 } | 8575 } |
8708 | 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 |
8709 // optional string go_package = 11; | 8598 // optional string go_package = 11; |
8710 if (has_go_package()) { | 8599 if (has_go_package()) { |
8711 total_size += 1 + | 8600 total_size += 1 + |
8712 ::google::protobuf::internal::WireFormatLite::StringSize( | 8601 ::google::protobuf::internal::WireFormatLite::StringSize( |
8713 this->go_package()); | 8602 this->go_package()); |
8714 } | 8603 } |
8715 | 8604 |
8716 // optional string objc_class_prefix = 36; | |
8717 if (has_objc_class_prefix()) { | |
8718 total_size += 2 + | |
8719 ::google::protobuf::internal::WireFormatLite::StringSize( | |
8720 this->objc_class_prefix()); | |
8721 } | |
8722 | |
8723 // optional string csharp_namespace = 37; | |
8724 if (has_csharp_namespace()) { | |
8725 total_size += 2 + | |
8726 ::google::protobuf::internal::WireFormatLite::StringSize( | |
8727 this->csharp_namespace()); | |
8728 } | |
8729 | |
8730 // optional string swift_prefix = 39; | |
8731 if (has_swift_prefix()) { | |
8732 total_size += 2 + | |
8733 ::google::protobuf::internal::WireFormatLite::StringSize( | |
8734 this->swift_prefix()); | |
8735 } | |
8736 | |
8737 // optional bool java_multiple_files = 10 [default = false]; | |
8738 if (has_java_multiple_files()) { | |
8739 total_size += 1 + 1; | |
8740 } | |
8741 | |
8742 // optional bool java_generate_equals_and_hash = 20 [deprecated = true]; | |
8743 if (has_java_generate_equals_and_hash()) { | |
8744 total_size += 2 + 1; | |
8745 } | |
8746 | |
8747 } | |
8748 if (_has_bits_[8 / 32] & 32512u) { | |
8749 // optional bool java_string_check_utf8 = 27 [default = false]; | |
8750 if (has_java_string_check_utf8()) { | |
8751 total_size += 2 + 1; | |
8752 } | |
8753 | |
8754 // optional bool cc_generic_services = 16 [default = false]; | 8605 // optional bool cc_generic_services = 16 [default = false]; |
8755 if (has_cc_generic_services()) { | 8606 if (has_cc_generic_services()) { |
8756 total_size += 2 + 1; | 8607 total_size += 2 + 1; |
8757 } | 8608 } |
8758 | 8609 |
| 8610 } |
| 8611 if (_has_bits_[8 / 32] & 16128u) { |
8759 // optional bool java_generic_services = 17 [default = false]; | 8612 // optional bool java_generic_services = 17 [default = false]; |
8760 if (has_java_generic_services()) { | 8613 if (has_java_generic_services()) { |
8761 total_size += 2 + 1; | 8614 total_size += 2 + 1; |
8762 } | 8615 } |
8763 | 8616 |
8764 // optional bool py_generic_services = 18 [default = false]; | 8617 // optional bool py_generic_services = 18 [default = false]; |
8765 if (has_py_generic_services()) { | 8618 if (has_py_generic_services()) { |
8766 total_size += 2 + 1; | 8619 total_size += 2 + 1; |
8767 } | 8620 } |
8768 | 8621 |
8769 // optional bool deprecated = 23 [default = false]; | 8622 // optional bool deprecated = 23 [default = false]; |
8770 if (has_deprecated()) { | 8623 if (has_deprecated()) { |
8771 total_size += 2 + 1; | 8624 total_size += 2 + 1; |
8772 } | 8625 } |
8773 | 8626 |
8774 // optional bool cc_enable_arenas = 31 [default = false]; | 8627 // optional bool cc_enable_arenas = 31 [default = false]; |
8775 if (has_cc_enable_arenas()) { | 8628 if (has_cc_enable_arenas()) { |
8776 total_size += 2 + 1; | 8629 total_size += 2 + 1; |
8777 } | 8630 } |
8778 | 8631 |
8779 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [defa
ult = SPEED]; | 8632 // optional string objc_class_prefix = 36; |
8780 if (has_optimize_for()) { | 8633 if (has_objc_class_prefix()) { |
8781 total_size += 1 + | 8634 total_size += 2 + |
8782 ::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()); |
8783 } | 8644 } |
8784 | 8645 |
8785 } | 8646 } |
8786 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 } |
8787 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 8662 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
8788 _cached_size_ = cached_size; | 8663 _cached_size_ = total_size; |
8789 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 8664 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
8790 return total_size; | 8665 return total_size; |
8791 } | 8666 } |
8792 | 8667 |
8793 void FileOptions::MergeFrom(const ::google::protobuf::Message& from) { | 8668 void FileOptions::MergeFrom(const ::google::protobuf::Message& from) { |
8794 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FileOpt
ions) | 8669 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FileOpt
ions) |
8795 GOOGLE_DCHECK_NE(&from, this); | 8670 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
8796 const FileOptions* source = | 8671 const FileOptions* source = |
8797 ::google::protobuf::internal::DynamicCastToGenerated<const FileOptions>( | 8672 ::google::protobuf::internal::DynamicCastToGenerated<const FileOptions>( |
8798 &from); | 8673 &from); |
8799 if (source == NULL) { | 8674 if (source == NULL) { |
8800 // @@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) |
8801 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 8676 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
8802 } else { | 8677 } else { |
8803 // @@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) |
8804 MergeFrom(*source); | 8679 MergeFrom(*source); |
8805 } | 8680 } |
8806 } | 8681 } |
8807 | 8682 |
8808 void FileOptions::MergeFrom(const FileOptions& from) { | 8683 void FileOptions::MergeFrom(const FileOptions& from) { |
8809 // @@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) |
8810 GOOGLE_DCHECK_NE(&from, this); | 8685 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
8811 _extensions_.MergeFrom(from._extensions_); | |
8812 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
8813 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); | 8686 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); |
8814 if (from._has_bits_[0 / 32] & 255u) { | 8687 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
8815 if (from.has_java_package()) { | 8688 if (from.has_java_package()) { |
8816 set_has_java_package(); | 8689 set_has_java_package(); |
8817 java_package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited(), from.java_package_); | 8690 java_package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited(), from.java_package_); |
8818 } | 8691 } |
8819 if (from.has_java_outer_classname()) { | 8692 if (from.has_java_outer_classname()) { |
8820 set_has_java_outer_classname(); | 8693 set_has_java_outer_classname(); |
8821 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_); |
8822 } | 8695 } |
8823 if (from.has_go_package()) { | |
8824 set_has_go_package(); | |
8825 go_package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited(), from.go_package_); | |
8826 } | |
8827 if (from.has_objc_class_prefix()) { | |
8828 set_has_objc_class_prefix(); | |
8829 objc_class_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmp
tyStringAlreadyInited(), from.objc_class_prefix_); | |
8830 } | |
8831 if (from.has_csharp_namespace()) { | |
8832 set_has_csharp_namespace(); | |
8833 csharp_namespace_.AssignWithDefault(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited(), from.csharp_namespace_); | |
8834 } | |
8835 if (from.has_swift_prefix()) { | |
8836 set_has_swift_prefix(); | |
8837 swift_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited(), from.swift_prefix_); | |
8838 } | |
8839 if (from.has_java_multiple_files()) { | 8696 if (from.has_java_multiple_files()) { |
8840 set_java_multiple_files(from.java_multiple_files()); | 8697 set_java_multiple_files(from.java_multiple_files()); |
8841 } | 8698 } |
8842 if (from.has_java_generate_equals_and_hash()) { | 8699 if (from.has_java_generate_equals_and_hash()) { |
8843 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()); |
8844 } | 8701 } |
8845 } | |
8846 if (from._has_bits_[8 / 32] & 32512u) { | |
8847 if (from.has_java_string_check_utf8()) { | 8702 if (from.has_java_string_check_utf8()) { |
8848 set_java_string_check_utf8(from.java_string_check_utf8()); | 8703 set_java_string_check_utf8(from.java_string_check_utf8()); |
8849 } | 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 } |
8850 if (from.has_cc_generic_services()) { | 8712 if (from.has_cc_generic_services()) { |
8851 set_cc_generic_services(from.cc_generic_services()); | 8713 set_cc_generic_services(from.cc_generic_services()); |
8852 } | 8714 } |
| 8715 } |
| 8716 if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { |
8853 if (from.has_java_generic_services()) { | 8717 if (from.has_java_generic_services()) { |
8854 set_java_generic_services(from.java_generic_services()); | 8718 set_java_generic_services(from.java_generic_services()); |
8855 } | 8719 } |
8856 if (from.has_py_generic_services()) { | 8720 if (from.has_py_generic_services()) { |
8857 set_py_generic_services(from.py_generic_services()); | 8721 set_py_generic_services(from.py_generic_services()); |
8858 } | 8722 } |
8859 if (from.has_deprecated()) { | 8723 if (from.has_deprecated()) { |
8860 set_deprecated(from.deprecated()); | 8724 set_deprecated(from.deprecated()); |
8861 } | 8725 } |
8862 if (from.has_cc_enable_arenas()) { | 8726 if (from.has_cc_enable_arenas()) { |
8863 set_cc_enable_arenas(from.cc_enable_arenas()); | 8727 set_cc_enable_arenas(from.cc_enable_arenas()); |
8864 } | 8728 } |
8865 if (from.has_optimize_for()) { | 8729 if (from.has_objc_class_prefix()) { |
8866 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_); |
8867 } | 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()); |
8868 } | 8741 } |
8869 } | 8742 } |
8870 | 8743 |
8871 void FileOptions::CopyFrom(const ::google::protobuf::Message& from) { | 8744 void FileOptions::CopyFrom(const ::google::protobuf::Message& from) { |
8872 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FileOpti
ons) | 8745 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FileOpti
ons) |
8873 if (&from == this) return; | 8746 if (&from == this) return; |
8874 Clear(); | 8747 Clear(); |
8875 MergeFrom(from); | 8748 MergeFrom(from); |
8876 } | 8749 } |
8877 | 8750 |
8878 void FileOptions::CopyFrom(const FileOptions& from) { | 8751 void FileOptions::CopyFrom(const FileOptions& from) { |
8879 // @@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) |
8880 if (&from == this) return; | 8753 if (&from == this) return; |
8881 Clear(); | 8754 Clear(); |
8882 MergeFrom(from); | 8755 MergeFrom(from); |
8883 } | 8756 } |
8884 | 8757 |
8885 bool FileOptions::IsInitialized() const { | 8758 bool FileOptions::IsInitialized() const { |
8886 if (!_extensions_.IsInitialized()) { | |
8887 return false; | |
8888 } | |
8889 | 8759 |
8890 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio
n())) return false; | 8760 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio
n())) return false; |
8891 return true; | 8761 |
| 8762 if (!_extensions_.IsInitialized()) return false; return true; |
8892 } | 8763 } |
8893 | 8764 |
8894 void FileOptions::Swap(FileOptions* other) { | 8765 void FileOptions::Swap(FileOptions* other) { |
8895 if (other == this) return; | 8766 if (other == this) return; |
8896 InternalSwap(other); | 8767 InternalSwap(other); |
8897 } | 8768 } |
8898 void FileOptions::InternalSwap(FileOptions* other) { | 8769 void FileOptions::InternalSwap(FileOptions* other) { |
8899 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); | |
8900 java_package_.Swap(&other->java_package_); | 8770 java_package_.Swap(&other->java_package_); |
8901 java_outer_classname_.Swap(&other->java_outer_classname_); | 8771 java_outer_classname_.Swap(&other->java_outer_classname_); |
8902 go_package_.Swap(&other->go_package_); | |
8903 objc_class_prefix_.Swap(&other->objc_class_prefix_); | |
8904 csharp_namespace_.Swap(&other->csharp_namespace_); | |
8905 swift_prefix_.Swap(&other->swift_prefix_); | |
8906 std::swap(java_multiple_files_, other->java_multiple_files_); | 8772 std::swap(java_multiple_files_, other->java_multiple_files_); |
8907 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
_); |
8908 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_); |
8909 std::swap(cc_generic_services_, other->cc_generic_services_); | 8777 std::swap(cc_generic_services_, other->cc_generic_services_); |
8910 std::swap(java_generic_services_, other->java_generic_services_); | 8778 std::swap(java_generic_services_, other->java_generic_services_); |
8911 std::swap(py_generic_services_, other->py_generic_services_); | 8779 std::swap(py_generic_services_, other->py_generic_services_); |
8912 std::swap(deprecated_, other->deprecated_); | 8780 std::swap(deprecated_, other->deprecated_); |
8913 std::swap(cc_enable_arenas_, other->cc_enable_arenas_); | 8781 std::swap(cc_enable_arenas_, other->cc_enable_arenas_); |
8914 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_); |
8915 std::swap(_has_bits_[0], other->_has_bits_[0]); | 8785 std::swap(_has_bits_[0], other->_has_bits_[0]); |
8916 _internal_metadata_.Swap(&other->_internal_metadata_); | 8786 _internal_metadata_.Swap(&other->_internal_metadata_); |
8917 std::swap(_cached_size_, other->_cached_size_); | 8787 std::swap(_cached_size_, other->_cached_size_); |
8918 _extensions_.Swap(&other->_extensions_); | 8788 _extensions_.Swap(&other->_extensions_); |
8919 } | 8789 } |
8920 | 8790 |
8921 ::google::protobuf::Metadata FileOptions::GetMetadata() const { | 8791 ::google::protobuf::Metadata FileOptions::GetMetadata() const { |
8922 protobuf_AssignDescriptorsOnce(); | 8792 protobuf_AssignDescriptorsOnce(); |
8923 return file_level_metadata[11]; | 8793 ::google::protobuf::Metadata metadata; |
| 8794 metadata.descriptor = FileOptions_descriptor_; |
| 8795 metadata.reflection = FileOptions_reflection_; |
| 8796 return metadata; |
8924 } | 8797 } |
8925 | 8798 |
8926 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 8799 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
8927 // FileOptions | 8800 // FileOptions |
8928 | 8801 |
8929 // optional string java_package = 1; | 8802 // optional string java_package = 1; |
8930 bool FileOptions::has_java_package() const { | 8803 bool FileOptions::has_java_package() const { |
8931 return (_has_bits_[0] & 0x00000001u) != 0; | 8804 return (_has_bits_[0] & 0x00000001u) != 0; |
8932 } | 8805 } |
8933 void FileOptions::set_has_java_package() { | 8806 void FileOptions::set_has_java_package() { |
8934 _has_bits_[0] |= 0x00000001u; | 8807 _has_bits_[0] |= 0x00000001u; |
8935 } | 8808 } |
8936 void FileOptions::clear_has_java_package() { | 8809 void FileOptions::clear_has_java_package() { |
8937 _has_bits_[0] &= ~0x00000001u; | 8810 _has_bits_[0] &= ~0x00000001u; |
8938 } | 8811 } |
8939 void FileOptions::clear_java_package() { | 8812 void FileOptions::clear_java_package() { |
8940 java_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); | 8813 java_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); |
8941 clear_has_java_package(); | 8814 clear_has_java_package(); |
8942 } | 8815 } |
8943 const ::std::string& FileOptions::java_package() const { | 8816 const ::std::string& FileOptions::java_package() const { |
8944 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_package
) | 8817 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_package
) |
8945 return java_package_.GetNoArena(); | 8818 return java_package_.GetNoArena(&::google::protobuf::internal::GetEmptyStringA
lreadyInited()); |
8946 } | 8819 } |
8947 void FileOptions::set_java_package(const ::std::string& value) { | 8820 void FileOptions::set_java_package(const ::std::string& value) { |
8948 set_has_java_package(); | 8821 set_has_java_package(); |
8949 java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI
nited(), value); | 8822 java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI
nited(), value); |
8950 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_package
) | 8823 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_package
) |
8951 } | 8824 } |
8952 #if LANG_CXX11 | 8825 void FileOptions::set_java_package(const char* value) { |
8953 void FileOptions::set_java_package(::std::string&& value) { | |
8954 set_has_java_package(); | |
8955 java_package_.SetNoArena( | |
8956 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va
lue)); | |
8957 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.java_
package) | |
8958 } | |
8959 #endif | |
8960 void FileOptions::set_java_package(const char* value) { | |
8961 set_has_java_package(); | 8826 set_has_java_package(); |
8962 java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI
nited(), ::std::string(value)); | 8827 java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI
nited(), ::std::string(value)); |
8963 // @@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) |
8964 } | 8829 } |
8965 void FileOptions::set_java_package(const char* value, size_t size) { | 8830 void FileOptions::set_java_package(const char* value, size_t size) { |
8966 set_has_java_package(); | 8831 set_has_java_package(); |
8967 java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI
nited(), | 8832 java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI
nited(), |
8968 ::std::string(reinterpret_cast<const char*>(value), size)); | 8833 ::std::string(reinterpret_cast<const char*>(value), size)); |
8969 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.java
_package) | 8834 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.java
_package) |
8970 } | 8835 } |
8971 ::std::string* FileOptions::mutable_java_package() { | 8836 ::std::string* FileOptions::mutable_java_package() { |
8972 set_has_java_package(); | 8837 set_has_java_package(); |
8973 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_pac
kage) | 8838 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_pac
kage) |
8974 return java_package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited()); | 8839 return java_package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited()); |
8975 } | 8840 } |
8976 ::std::string* FileOptions::release_java_package() { | 8841 ::std::string* FileOptions::release_java_package() { |
8977 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.java_pac
kage) | 8842 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.java_pac
kage) |
8978 clear_has_java_package(); | 8843 clear_has_java_package(); |
8979 return java_package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited()); | 8844 return java_package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited()); |
8980 } | 8845 } |
8981 void FileOptions::set_allocated_java_package(::std::string* java_package) { | 8846 void FileOptions::set_allocated_java_package(::std::string* java_package) { |
8982 if (java_package != NULL) { | 8847 if (java_package != NULL) { |
8983 set_has_java_package(); | 8848 set_has_java_package(); |
8984 } else { | 8849 } else { |
8985 clear_has_java_package(); | 8850 clear_has_java_package(); |
8986 } | 8851 } |
8987 java_package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited(), java_package); | 8852 java_package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited(), java_package); |
8988 // @@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) |
8989 } | 8854 } |
8990 | 8855 |
8991 // optional string java_outer_classname = 8; | 8856 // optional string java_outer_classname = 8; |
8992 bool FileOptions::has_java_outer_classname() const { | 8857 bool FileOptions::has_java_outer_classname() const { |
8993 return (_has_bits_[0] & 0x00000002u) != 0; | 8858 return (_has_bits_[0] & 0x00000002u) != 0; |
8994 } | 8859 } |
8995 void FileOptions::set_has_java_outer_classname() { | 8860 void FileOptions::set_has_java_outer_classname() { |
8996 _has_bits_[0] |= 0x00000002u; | 8861 _has_bits_[0] |= 0x00000002u; |
8997 } | 8862 } |
8998 void FileOptions::clear_has_java_outer_classname() { | 8863 void FileOptions::clear_has_java_outer_classname() { |
8999 _has_bits_[0] &= ~0x00000002u; | 8864 _has_bits_[0] &= ~0x00000002u; |
9000 } | 8865 } |
9001 void FileOptions::clear_java_outer_classname() { | 8866 void FileOptions::clear_java_outer_classname() { |
9002 java_outer_classname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEm
ptyStringAlreadyInited()); | 8867 java_outer_classname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEm
ptyStringAlreadyInited()); |
9003 clear_has_java_outer_classname(); | 8868 clear_has_java_outer_classname(); |
9004 } | 8869 } |
9005 const ::std::string& FileOptions::java_outer_classname() const { | 8870 const ::std::string& FileOptions::java_outer_classname() const { |
9006 // @@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) |
9007 return java_outer_classname_.GetNoArena(); | 8872 return java_outer_classname_.GetNoArena(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited()); |
9008 } | 8873 } |
9009 void FileOptions::set_java_outer_classname(const ::std::string& value) { | 8874 void FileOptions::set_java_outer_classname(const ::std::string& value) { |
9010 set_has_java_outer_classname(); | 8875 set_has_java_outer_classname(); |
9011 java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited(), value); | 8876 java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited(), value); |
9012 // @@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) |
9013 } | 8878 } |
9014 #if LANG_CXX11 | 8879 void FileOptions::set_java_outer_classname(const char* value) { |
9015 void FileOptions::set_java_outer_classname(::std::string&& value) { | |
9016 set_has_java_outer_classname(); | |
9017 java_outer_classname_.SetNoArena( | |
9018 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va
lue)); | |
9019 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.java_
outer_classname) | |
9020 } | |
9021 #endif | |
9022 void FileOptions::set_java_outer_classname(const char* value) { | |
9023 set_has_java_outer_classname(); | 8880 set_has_java_outer_classname(); |
9024 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)); |
9025 // @@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) |
9026 } | 8883 } |
9027 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) { |
9028 set_has_java_outer_classname(); | 8885 set_has_java_outer_classname(); |
9029 java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited(), | 8886 java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited(), |
9030 ::std::string(reinterpret_cast<const char*>(value), size)); | 8887 ::std::string(reinterpret_cast<const char*>(value), size)); |
9031 // @@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) |
9032 } | 8889 } |
9033 ::std::string* FileOptions::mutable_java_outer_classname() { | 8890 ::std::string* FileOptions::mutable_java_outer_classname() { |
9034 set_has_java_outer_classname(); | 8891 set_has_java_outer_classname(); |
9035 // @@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) |
9036 return java_outer_classname_.MutableNoArena(&::google::protobuf::internal::Get
EmptyStringAlreadyInited()); | 8893 return java_outer_classname_.MutableNoArena(&::google::protobuf::internal::Get
EmptyStringAlreadyInited()); |
9037 } | 8894 } |
9038 ::std::string* FileOptions::release_java_outer_classname() { | 8895 ::std::string* FileOptions::release_java_outer_classname() { |
9039 // @@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) |
9040 clear_has_java_outer_classname(); | 8897 clear_has_java_outer_classname(); |
9041 return java_outer_classname_.ReleaseNoArena(&::google::protobuf::internal::Get
EmptyStringAlreadyInited()); | 8898 return java_outer_classname_.ReleaseNoArena(&::google::protobuf::internal::Get
EmptyStringAlreadyInited()); |
9042 } | 8899 } |
9043 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) { |
9044 if (java_outer_classname != NULL) { | 8901 if (java_outer_classname != NULL) { |
9045 set_has_java_outer_classname(); | 8902 set_has_java_outer_classname(); |
9046 } else { | 8903 } else { |
9047 clear_has_java_outer_classname(); | 8904 clear_has_java_outer_classname(); |
9048 } | 8905 } |
9049 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); |
9050 // @@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) |
9051 } | 8908 } |
9052 | 8909 |
9053 // optional bool java_multiple_files = 10 [default = false]; | 8910 // optional bool java_multiple_files = 10 [default = false]; |
9054 bool FileOptions::has_java_multiple_files() const { | 8911 bool FileOptions::has_java_multiple_files() const { |
9055 return (_has_bits_[0] & 0x00000040u) != 0; | 8912 return (_has_bits_[0] & 0x00000004u) != 0; |
9056 } | 8913 } |
9057 void FileOptions::set_has_java_multiple_files() { | 8914 void FileOptions::set_has_java_multiple_files() { |
9058 _has_bits_[0] |= 0x00000040u; | 8915 _has_bits_[0] |= 0x00000004u; |
9059 } | 8916 } |
9060 void FileOptions::clear_has_java_multiple_files() { | 8917 void FileOptions::clear_has_java_multiple_files() { |
9061 _has_bits_[0] &= ~0x00000040u; | 8918 _has_bits_[0] &= ~0x00000004u; |
9062 } | 8919 } |
9063 void FileOptions::clear_java_multiple_files() { | 8920 void FileOptions::clear_java_multiple_files() { |
9064 java_multiple_files_ = false; | 8921 java_multiple_files_ = false; |
9065 clear_has_java_multiple_files(); | 8922 clear_has_java_multiple_files(); |
9066 } | 8923 } |
9067 bool FileOptions::java_multiple_files() const { | 8924 bool FileOptions::java_multiple_files() const { |
9068 // @@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) |
9069 return java_multiple_files_; | 8926 return java_multiple_files_; |
9070 } | 8927 } |
9071 void FileOptions::set_java_multiple_files(bool value) { | 8928 void FileOptions::set_java_multiple_files(bool value) { |
9072 set_has_java_multiple_files(); | 8929 set_has_java_multiple_files(); |
9073 java_multiple_files_ = value; | 8930 java_multiple_files_ = value; |
9074 // @@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) |
9075 } | 8932 } |
9076 | 8933 |
9077 // optional bool java_generate_equals_and_hash = 20 [deprecated = true]; | 8934 // optional bool java_generate_equals_and_hash = 20 [default = false]; |
9078 bool FileOptions::has_java_generate_equals_and_hash() const { | 8935 bool FileOptions::has_java_generate_equals_and_hash() const { |
9079 return (_has_bits_[0] & 0x00000080u) != 0; | 8936 return (_has_bits_[0] & 0x00000008u) != 0; |
9080 } | 8937 } |
9081 void FileOptions::set_has_java_generate_equals_and_hash() { | 8938 void FileOptions::set_has_java_generate_equals_and_hash() { |
9082 _has_bits_[0] |= 0x00000080u; | 8939 _has_bits_[0] |= 0x00000008u; |
9083 } | 8940 } |
9084 void FileOptions::clear_has_java_generate_equals_and_hash() { | 8941 void FileOptions::clear_has_java_generate_equals_and_hash() { |
9085 _has_bits_[0] &= ~0x00000080u; | 8942 _has_bits_[0] &= ~0x00000008u; |
9086 } | 8943 } |
9087 void FileOptions::clear_java_generate_equals_and_hash() { | 8944 void FileOptions::clear_java_generate_equals_and_hash() { |
9088 java_generate_equals_and_hash_ = false; | 8945 java_generate_equals_and_hash_ = false; |
9089 clear_has_java_generate_equals_and_hash(); | 8946 clear_has_java_generate_equals_and_hash(); |
9090 } | 8947 } |
9091 bool FileOptions::java_generate_equals_and_hash() const { | 8948 bool FileOptions::java_generate_equals_and_hash() const { |
9092 // @@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) |
9093 return java_generate_equals_and_hash_; | 8950 return java_generate_equals_and_hash_; |
9094 } | 8951 } |
9095 void FileOptions::set_java_generate_equals_and_hash(bool value) { | 8952 void FileOptions::set_java_generate_equals_and_hash(bool value) { |
9096 set_has_java_generate_equals_and_hash(); | 8953 set_has_java_generate_equals_and_hash(); |
9097 java_generate_equals_and_hash_ = value; | 8954 java_generate_equals_and_hash_ = value; |
9098 // @@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) |
9099 } | 8956 } |
9100 | 8957 |
9101 // optional bool java_string_check_utf8 = 27 [default = false]; | 8958 // optional bool java_string_check_utf8 = 27 [default = false]; |
9102 bool FileOptions::has_java_string_check_utf8() const { | 8959 bool FileOptions::has_java_string_check_utf8() const { |
9103 return (_has_bits_[0] & 0x00000100u) != 0; | 8960 return (_has_bits_[0] & 0x00000010u) != 0; |
9104 } | 8961 } |
9105 void FileOptions::set_has_java_string_check_utf8() { | 8962 void FileOptions::set_has_java_string_check_utf8() { |
9106 _has_bits_[0] |= 0x00000100u; | 8963 _has_bits_[0] |= 0x00000010u; |
9107 } | 8964 } |
9108 void FileOptions::clear_has_java_string_check_utf8() { | 8965 void FileOptions::clear_has_java_string_check_utf8() { |
9109 _has_bits_[0] &= ~0x00000100u; | 8966 _has_bits_[0] &= ~0x00000010u; |
9110 } | 8967 } |
9111 void FileOptions::clear_java_string_check_utf8() { | 8968 void FileOptions::clear_java_string_check_utf8() { |
9112 java_string_check_utf8_ = false; | 8969 java_string_check_utf8_ = false; |
9113 clear_has_java_string_check_utf8(); | 8970 clear_has_java_string_check_utf8(); |
9114 } | 8971 } |
9115 bool FileOptions::java_string_check_utf8() const { | 8972 bool FileOptions::java_string_check_utf8() const { |
9116 // @@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) |
9117 return java_string_check_utf8_; | 8974 return java_string_check_utf8_; |
9118 } | 8975 } |
9119 void FileOptions::set_java_string_check_utf8(bool value) { | 8976 void FileOptions::set_java_string_check_utf8(bool value) { |
9120 set_has_java_string_check_utf8(); | 8977 set_has_java_string_check_utf8(); |
9121 java_string_check_utf8_ = value; | 8978 java_string_check_utf8_ = value; |
9122 // @@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) |
9123 } | 8980 } |
9124 | 8981 |
9125 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default
= SPEED]; | 8982 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default
= SPEED]; |
9126 bool FileOptions::has_optimize_for() const { | 8983 bool FileOptions::has_optimize_for() const { |
9127 return (_has_bits_[0] & 0x00004000u) != 0; | 8984 return (_has_bits_[0] & 0x00000020u) != 0; |
9128 } | 8985 } |
9129 void FileOptions::set_has_optimize_for() { | 8986 void FileOptions::set_has_optimize_for() { |
9130 _has_bits_[0] |= 0x00004000u; | 8987 _has_bits_[0] |= 0x00000020u; |
9131 } | 8988 } |
9132 void FileOptions::clear_has_optimize_for() { | 8989 void FileOptions::clear_has_optimize_for() { |
9133 _has_bits_[0] &= ~0x00004000u; | 8990 _has_bits_[0] &= ~0x00000020u; |
9134 } | 8991 } |
9135 void FileOptions::clear_optimize_for() { | 8992 void FileOptions::clear_optimize_for() { |
9136 optimize_for_ = 1; | 8993 optimize_for_ = 1; |
9137 clear_has_optimize_for(); | 8994 clear_has_optimize_for(); |
9138 } | 8995 } |
9139 ::google::protobuf::FileOptions_OptimizeMode FileOptions::optimize_for() const { | 8996 ::google::protobuf::FileOptions_OptimizeMode FileOptions::optimize_for() const
{ |
9140 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.optimize_for
) | 8997 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.optimize_for
) |
9141 return static_cast< ::google::protobuf::FileOptions_OptimizeMode >(optimize_fo
r_); | 8998 return static_cast< ::google::protobuf::FileOptions_OptimizeMode >(optimize_fo
r_); |
9142 } | 8999 } |
9143 void FileOptions::set_optimize_for(::google::protobuf::FileOptions_OptimizeMode
value) { | 9000 void FileOptions::set_optimize_for(::google::protobuf::FileOptions_OptimizeMode
value) { |
9144 assert(::google::protobuf::FileOptions_OptimizeMode_IsValid(value)); | 9001 assert(::google::protobuf::FileOptions_OptimizeMode_IsValid(value)); |
9145 set_has_optimize_for(); | 9002 set_has_optimize_for(); |
9146 optimize_for_ = value; | 9003 optimize_for_ = value; |
9147 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.optimize_for
) | 9004 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.optimize_for
) |
9148 } | 9005 } |
9149 | 9006 |
9150 // optional string go_package = 11; | 9007 // optional string go_package = 11; |
9151 bool FileOptions::has_go_package() const { | 9008 bool FileOptions::has_go_package() const { |
9152 return (_has_bits_[0] & 0x00000004u) != 0; | 9009 return (_has_bits_[0] & 0x00000040u) != 0; |
9153 } | 9010 } |
9154 void FileOptions::set_has_go_package() { | 9011 void FileOptions::set_has_go_package() { |
9155 _has_bits_[0] |= 0x00000004u; | 9012 _has_bits_[0] |= 0x00000040u; |
9156 } | 9013 } |
9157 void FileOptions::clear_has_go_package() { | 9014 void FileOptions::clear_has_go_package() { |
9158 _has_bits_[0] &= ~0x00000004u; | 9015 _has_bits_[0] &= ~0x00000040u; |
9159 } | 9016 } |
9160 void FileOptions::clear_go_package() { | 9017 void FileOptions::clear_go_package() { |
9161 go_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringA
lreadyInited()); | 9018 go_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringA
lreadyInited()); |
9162 clear_has_go_package(); | 9019 clear_has_go_package(); |
9163 } | 9020 } |
9164 const ::std::string& FileOptions::go_package() const { | 9021 const ::std::string& FileOptions::go_package() const { |
9165 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.go_package) | 9022 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.go_package) |
9166 return go_package_.GetNoArena(); | 9023 return go_package_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); |
9167 } | 9024 } |
9168 void FileOptions::set_go_package(const ::std::string& value) { | 9025 void FileOptions::set_go_package(const ::std::string& value) { |
9169 set_has_go_package(); | 9026 set_has_go_package(); |
9170 go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted(), value); | 9027 go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted(), value); |
9171 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.go_package) | 9028 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.go_package) |
9172 } | 9029 } |
9173 #if LANG_CXX11 | 9030 void FileOptions::set_go_package(const char* value) { |
9174 void FileOptions::set_go_package(::std::string&& value) { | |
9175 set_has_go_package(); | |
9176 go_package_.SetNoArena( | |
9177 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va
lue)); | |
9178 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.go_pa
ckage) | |
9179 } | |
9180 #endif | |
9181 void FileOptions::set_go_package(const char* value) { | |
9182 set_has_go_package(); | 9031 set_has_go_package(); |
9183 go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted(), ::std::string(value)); | 9032 go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted(), ::std::string(value)); |
9184 // @@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) |
9185 } | 9034 } |
9186 void FileOptions::set_go_package(const char* value, size_t size) { | 9035 void FileOptions::set_go_package(const char* value, size_t size) { |
9187 set_has_go_package(); | 9036 set_has_go_package(); |
9188 go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted(), | 9037 go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni
ted(), |
9189 ::std::string(reinterpret_cast<const char*>(value), size)); | 9038 ::std::string(reinterpret_cast<const char*>(value), size)); |
9190 // @@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) |
9191 } | 9040 } |
9192 ::std::string* FileOptions::mutable_go_package() { | 9041 ::std::string* FileOptions::mutable_go_package() { |
9193 set_has_go_package(); | 9042 set_has_go_package(); |
9194 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.go_packa
ge) | 9043 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.go_packa
ge) |
9195 return go_package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); | 9044 return go_package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); |
9196 } | 9045 } |
9197 ::std::string* FileOptions::release_go_package() { | 9046 ::std::string* FileOptions::release_go_package() { |
9198 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.go_packa
ge) | 9047 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.go_packa
ge) |
9199 clear_has_go_package(); | 9048 clear_has_go_package(); |
9200 return go_package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); | 9049 return go_package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); |
9201 } | 9050 } |
9202 void FileOptions::set_allocated_go_package(::std::string* go_package) { | 9051 void FileOptions::set_allocated_go_package(::std::string* go_package) { |
9203 if (go_package != NULL) { | 9052 if (go_package != NULL) { |
9204 set_has_go_package(); | 9053 set_has_go_package(); |
9205 } else { | 9054 } else { |
9206 clear_has_go_package(); | 9055 clear_has_go_package(); |
9207 } | 9056 } |
9208 go_package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringA
lreadyInited(), go_package); | 9057 go_package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringA
lreadyInited(), go_package); |
9209 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.go
_package) | 9058 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.go
_package) |
9210 } | 9059 } |
9211 | 9060 |
9212 // optional bool cc_generic_services = 16 [default = false]; | 9061 // optional bool cc_generic_services = 16 [default = false]; |
9213 bool FileOptions::has_cc_generic_services() const { | 9062 bool FileOptions::has_cc_generic_services() const { |
9214 return (_has_bits_[0] & 0x00000200u) != 0; | 9063 return (_has_bits_[0] & 0x00000080u) != 0; |
9215 } | 9064 } |
9216 void FileOptions::set_has_cc_generic_services() { | 9065 void FileOptions::set_has_cc_generic_services() { |
9217 _has_bits_[0] |= 0x00000200u; | 9066 _has_bits_[0] |= 0x00000080u; |
9218 } | 9067 } |
9219 void FileOptions::clear_has_cc_generic_services() { | 9068 void FileOptions::clear_has_cc_generic_services() { |
9220 _has_bits_[0] &= ~0x00000200u; | 9069 _has_bits_[0] &= ~0x00000080u; |
9221 } | 9070 } |
9222 void FileOptions::clear_cc_generic_services() { | 9071 void FileOptions::clear_cc_generic_services() { |
9223 cc_generic_services_ = false; | 9072 cc_generic_services_ = false; |
9224 clear_has_cc_generic_services(); | 9073 clear_has_cc_generic_services(); |
9225 } | 9074 } |
9226 bool FileOptions::cc_generic_services() const { | 9075 bool FileOptions::cc_generic_services() const { |
9227 // @@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) |
9228 return cc_generic_services_; | 9077 return cc_generic_services_; |
9229 } | 9078 } |
9230 void FileOptions::set_cc_generic_services(bool value) { | 9079 void FileOptions::set_cc_generic_services(bool value) { |
9231 set_has_cc_generic_services(); | 9080 set_has_cc_generic_services(); |
9232 cc_generic_services_ = value; | 9081 cc_generic_services_ = value; |
9233 // @@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) |
9234 } | 9083 } |
9235 | 9084 |
9236 // optional bool java_generic_services = 17 [default = false]; | 9085 // optional bool java_generic_services = 17 [default = false]; |
9237 bool FileOptions::has_java_generic_services() const { | 9086 bool FileOptions::has_java_generic_services() const { |
9238 return (_has_bits_[0] & 0x00000400u) != 0; | 9087 return (_has_bits_[0] & 0x00000100u) != 0; |
9239 } | 9088 } |
9240 void FileOptions::set_has_java_generic_services() { | 9089 void FileOptions::set_has_java_generic_services() { |
9241 _has_bits_[0] |= 0x00000400u; | 9090 _has_bits_[0] |= 0x00000100u; |
9242 } | 9091 } |
9243 void FileOptions::clear_has_java_generic_services() { | 9092 void FileOptions::clear_has_java_generic_services() { |
9244 _has_bits_[0] &= ~0x00000400u; | 9093 _has_bits_[0] &= ~0x00000100u; |
9245 } | 9094 } |
9246 void FileOptions::clear_java_generic_services() { | 9095 void FileOptions::clear_java_generic_services() { |
9247 java_generic_services_ = false; | 9096 java_generic_services_ = false; |
9248 clear_has_java_generic_services(); | 9097 clear_has_java_generic_services(); |
9249 } | 9098 } |
9250 bool FileOptions::java_generic_services() const { | 9099 bool FileOptions::java_generic_services() const { |
9251 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generic
_services) | 9100 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generic
_services) |
9252 return java_generic_services_; | 9101 return java_generic_services_; |
9253 } | 9102 } |
9254 void FileOptions::set_java_generic_services(bool value) { | 9103 void FileOptions::set_java_generic_services(bool value) { |
9255 set_has_java_generic_services(); | 9104 set_has_java_generic_services(); |
9256 java_generic_services_ = value; | 9105 java_generic_services_ = value; |
9257 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generic
_services) | 9106 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generic
_services) |
9258 } | 9107 } |
9259 | 9108 |
9260 // optional bool py_generic_services = 18 [default = false]; | 9109 // optional bool py_generic_services = 18 [default = false]; |
9261 bool FileOptions::has_py_generic_services() const { | 9110 bool FileOptions::has_py_generic_services() const { |
9262 return (_has_bits_[0] & 0x00000800u) != 0; | 9111 return (_has_bits_[0] & 0x00000200u) != 0; |
9263 } | 9112 } |
9264 void FileOptions::set_has_py_generic_services() { | 9113 void FileOptions::set_has_py_generic_services() { |
9265 _has_bits_[0] |= 0x00000800u; | 9114 _has_bits_[0] |= 0x00000200u; |
9266 } | 9115 } |
9267 void FileOptions::clear_has_py_generic_services() { | 9116 void FileOptions::clear_has_py_generic_services() { |
9268 _has_bits_[0] &= ~0x00000800u; | 9117 _has_bits_[0] &= ~0x00000200u; |
9269 } | 9118 } |
9270 void FileOptions::clear_py_generic_services() { | 9119 void FileOptions::clear_py_generic_services() { |
9271 py_generic_services_ = false; | 9120 py_generic_services_ = false; |
9272 clear_has_py_generic_services(); | 9121 clear_has_py_generic_services(); |
9273 } | 9122 } |
9274 bool FileOptions::py_generic_services() const { | 9123 bool FileOptions::py_generic_services() const { |
9275 // @@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) |
9276 return py_generic_services_; | 9125 return py_generic_services_; |
9277 } | 9126 } |
9278 void FileOptions::set_py_generic_services(bool value) { | 9127 void FileOptions::set_py_generic_services(bool value) { |
9279 set_has_py_generic_services(); | 9128 set_has_py_generic_services(); |
9280 py_generic_services_ = value; | 9129 py_generic_services_ = value; |
9281 // @@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) |
9282 } | 9131 } |
9283 | 9132 |
9284 // optional bool deprecated = 23 [default = false]; | 9133 // optional bool deprecated = 23 [default = false]; |
9285 bool FileOptions::has_deprecated() const { | 9134 bool FileOptions::has_deprecated() const { |
9286 return (_has_bits_[0] & 0x00001000u) != 0; | 9135 return (_has_bits_[0] & 0x00000400u) != 0; |
9287 } | 9136 } |
9288 void FileOptions::set_has_deprecated() { | 9137 void FileOptions::set_has_deprecated() { |
9289 _has_bits_[0] |= 0x00001000u; | 9138 _has_bits_[0] |= 0x00000400u; |
9290 } | 9139 } |
9291 void FileOptions::clear_has_deprecated() { | 9140 void FileOptions::clear_has_deprecated() { |
9292 _has_bits_[0] &= ~0x00001000u; | 9141 _has_bits_[0] &= ~0x00000400u; |
9293 } | 9142 } |
9294 void FileOptions::clear_deprecated() { | 9143 void FileOptions::clear_deprecated() { |
9295 deprecated_ = false; | 9144 deprecated_ = false; |
9296 clear_has_deprecated(); | 9145 clear_has_deprecated(); |
9297 } | 9146 } |
9298 bool FileOptions::deprecated() const { | 9147 bool FileOptions::deprecated() const { |
9299 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.deprecated) | 9148 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.deprecated) |
9300 return deprecated_; | 9149 return deprecated_; |
9301 } | 9150 } |
9302 void FileOptions::set_deprecated(bool value) { | 9151 void FileOptions::set_deprecated(bool value) { |
9303 set_has_deprecated(); | 9152 set_has_deprecated(); |
9304 deprecated_ = value; | 9153 deprecated_ = value; |
9305 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.deprecated) | 9154 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.deprecated) |
9306 } | 9155 } |
9307 | 9156 |
9308 // optional bool cc_enable_arenas = 31 [default = false]; | 9157 // optional bool cc_enable_arenas = 31 [default = false]; |
9309 bool FileOptions::has_cc_enable_arenas() const { | 9158 bool FileOptions::has_cc_enable_arenas() const { |
9310 return (_has_bits_[0] & 0x00002000u) != 0; | 9159 return (_has_bits_[0] & 0x00000800u) != 0; |
9311 } | 9160 } |
9312 void FileOptions::set_has_cc_enable_arenas() { | 9161 void FileOptions::set_has_cc_enable_arenas() { |
9313 _has_bits_[0] |= 0x00002000u; | 9162 _has_bits_[0] |= 0x00000800u; |
9314 } | 9163 } |
9315 void FileOptions::clear_has_cc_enable_arenas() { | 9164 void FileOptions::clear_has_cc_enable_arenas() { |
9316 _has_bits_[0] &= ~0x00002000u; | 9165 _has_bits_[0] &= ~0x00000800u; |
9317 } | 9166 } |
9318 void FileOptions::clear_cc_enable_arenas() { | 9167 void FileOptions::clear_cc_enable_arenas() { |
9319 cc_enable_arenas_ = false; | 9168 cc_enable_arenas_ = false; |
9320 clear_has_cc_enable_arenas(); | 9169 clear_has_cc_enable_arenas(); |
9321 } | 9170 } |
9322 bool FileOptions::cc_enable_arenas() const { | 9171 bool FileOptions::cc_enable_arenas() const { |
9323 // @@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) |
9324 return cc_enable_arenas_; | 9173 return cc_enable_arenas_; |
9325 } | 9174 } |
9326 void FileOptions::set_cc_enable_arenas(bool value) { | 9175 void FileOptions::set_cc_enable_arenas(bool value) { |
9327 set_has_cc_enable_arenas(); | 9176 set_has_cc_enable_arenas(); |
9328 cc_enable_arenas_ = value; | 9177 cc_enable_arenas_ = value; |
9329 // @@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) |
9330 } | 9179 } |
9331 | 9180 |
9332 // optional string objc_class_prefix = 36; | 9181 // optional string objc_class_prefix = 36; |
9333 bool FileOptions::has_objc_class_prefix() const { | 9182 bool FileOptions::has_objc_class_prefix() const { |
9334 return (_has_bits_[0] & 0x00000008u) != 0; | 9183 return (_has_bits_[0] & 0x00001000u) != 0; |
9335 } | 9184 } |
9336 void FileOptions::set_has_objc_class_prefix() { | 9185 void FileOptions::set_has_objc_class_prefix() { |
9337 _has_bits_[0] |= 0x00000008u; | 9186 _has_bits_[0] |= 0x00001000u; |
9338 } | 9187 } |
9339 void FileOptions::clear_has_objc_class_prefix() { | 9188 void FileOptions::clear_has_objc_class_prefix() { |
9340 _has_bits_[0] &= ~0x00000008u; | 9189 _has_bits_[0] &= ~0x00001000u; |
9341 } | 9190 } |
9342 void FileOptions::clear_objc_class_prefix() { | 9191 void FileOptions::clear_objc_class_prefix() { |
9343 objc_class_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmpty
StringAlreadyInited()); | 9192 objc_class_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmpty
StringAlreadyInited()); |
9344 clear_has_objc_class_prefix(); | 9193 clear_has_objc_class_prefix(); |
9345 } | 9194 } |
9346 const ::std::string& FileOptions::objc_class_prefix() const { | 9195 const ::std::string& FileOptions::objc_class_prefix() const { |
9347 // @@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) |
9348 return objc_class_prefix_.GetNoArena(); | 9197 return objc_class_prefix_.GetNoArena(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited()); |
9349 } | 9198 } |
9350 void FileOptions::set_objc_class_prefix(const ::std::string& value) { | 9199 void FileOptions::set_objc_class_prefix(const ::std::string& value) { |
9351 set_has_objc_class_prefix(); | 9200 set_has_objc_class_prefix(); |
9352 objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited(), value); | 9201 objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited(), value); |
9353 // @@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) |
9354 } | 9203 } |
9355 #if LANG_CXX11 | 9204 void FileOptions::set_objc_class_prefix(const char* value) { |
9356 void FileOptions::set_objc_class_prefix(::std::string&& value) { | |
9357 set_has_objc_class_prefix(); | |
9358 objc_class_prefix_.SetNoArena( | |
9359 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va
lue)); | |
9360 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.objc_
class_prefix) | |
9361 } | |
9362 #endif | |
9363 void FileOptions::set_objc_class_prefix(const char* value) { | |
9364 set_has_objc_class_prefix(); | 9205 set_has_objc_class_prefix(); |
9365 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)); |
9366 // @@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) |
9367 } | 9208 } |
9368 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) { |
9369 set_has_objc_class_prefix(); | 9210 set_has_objc_class_prefix(); |
9370 objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited(), | 9211 objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited(), |
9371 ::std::string(reinterpret_cast<const char*>(value), size)); | 9212 ::std::string(reinterpret_cast<const char*>(value), size)); |
9372 // @@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) |
9373 } | 9214 } |
9374 ::std::string* FileOptions::mutable_objc_class_prefix() { | 9215 ::std::string* FileOptions::mutable_objc_class_prefix() { |
9375 set_has_objc_class_prefix(); | 9216 set_has_objc_class_prefix(); |
9376 // @@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) |
9377 return objc_class_prefix_.MutableNoArena(&::google::protobuf::internal::GetEmp
tyStringAlreadyInited()); | 9218 return objc_class_prefix_.MutableNoArena(&::google::protobuf::internal::GetEmp
tyStringAlreadyInited()); |
9378 } | 9219 } |
9379 ::std::string* FileOptions::release_objc_class_prefix() { | 9220 ::std::string* FileOptions::release_objc_class_prefix() { |
9380 // @@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) |
9381 clear_has_objc_class_prefix(); | 9222 clear_has_objc_class_prefix(); |
9382 return objc_class_prefix_.ReleaseNoArena(&::google::protobuf::internal::GetEmp
tyStringAlreadyInited()); | 9223 return objc_class_prefix_.ReleaseNoArena(&::google::protobuf::internal::GetEmp
tyStringAlreadyInited()); |
9383 } | 9224 } |
9384 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) { |
9385 if (objc_class_prefix != NULL) { | 9226 if (objc_class_prefix != NULL) { |
9386 set_has_objc_class_prefix(); | 9227 set_has_objc_class_prefix(); |
9387 } else { | 9228 } else { |
9388 clear_has_objc_class_prefix(); | 9229 clear_has_objc_class_prefix(); |
9389 } | 9230 } |
9390 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); |
9391 // @@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) |
9392 } | 9233 } |
9393 | 9234 |
9394 // optional string csharp_namespace = 37; | 9235 // optional string csharp_namespace = 37; |
9395 bool FileOptions::has_csharp_namespace() const { | 9236 bool FileOptions::has_csharp_namespace() const { |
9396 return (_has_bits_[0] & 0x00000010u) != 0; | 9237 return (_has_bits_[0] & 0x00002000u) != 0; |
9397 } | 9238 } |
9398 void FileOptions::set_has_csharp_namespace() { | 9239 void FileOptions::set_has_csharp_namespace() { |
9399 _has_bits_[0] |= 0x00000010u; | 9240 _has_bits_[0] |= 0x00002000u; |
9400 } | 9241 } |
9401 void FileOptions::clear_has_csharp_namespace() { | 9242 void FileOptions::clear_has_csharp_namespace() { |
9402 _has_bits_[0] &= ~0x00000010u; | 9243 _has_bits_[0] &= ~0x00002000u; |
9403 } | 9244 } |
9404 void FileOptions::clear_csharp_namespace() { | 9245 void FileOptions::clear_csharp_namespace() { |
9405 csharp_namespace_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited()); | 9246 csharp_namespace_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited()); |
9406 clear_has_csharp_namespace(); | 9247 clear_has_csharp_namespace(); |
9407 } | 9248 } |
9408 const ::std::string& FileOptions::csharp_namespace() const { | 9249 const ::std::string& FileOptions::csharp_namespace() const { |
9409 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.csharp_names
pace) | 9250 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.csharp_names
pace) |
9410 return csharp_namespace_.GetNoArena(); | 9251 return csharp_namespace_.GetNoArena(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited()); |
9411 } | 9252 } |
9412 void FileOptions::set_csharp_namespace(const ::std::string& value) { | 9253 void FileOptions::set_csharp_namespace(const ::std::string& value) { |
9413 set_has_csharp_namespace(); | 9254 set_has_csharp_namespace(); |
9414 csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), value); | 9255 csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), value); |
9415 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.csharp_names
pace) | 9256 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.csharp_names
pace) |
9416 } | 9257 } |
9417 #if LANG_CXX11 | 9258 void FileOptions::set_csharp_namespace(const char* value) { |
9418 void FileOptions::set_csharp_namespace(::std::string&& value) { | |
9419 set_has_csharp_namespace(); | |
9420 csharp_namespace_.SetNoArena( | |
9421 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va
lue)); | |
9422 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.cshar
p_namespace) | |
9423 } | |
9424 #endif | |
9425 void FileOptions::set_csharp_namespace(const char* value) { | |
9426 set_has_csharp_namespace(); | 9259 set_has_csharp_namespace(); |
9427 csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), ::std::string(value)); | 9260 csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), ::std::string(value)); |
9428 // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.csharp_
namespace) | 9261 // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.csharp_
namespace) |
9429 } | 9262 } |
9430 void FileOptions::set_csharp_namespace(const char* value, size_t size) { | 9263 void FileOptions::set_csharp_namespace(const char* value, size_t size) { |
9431 set_has_csharp_namespace(); | 9264 set_has_csharp_namespace(); |
9432 csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), | 9265 csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), |
9433 ::std::string(reinterpret_cast<const char*>(value), size)); | 9266 ::std::string(reinterpret_cast<const char*>(value), size)); |
9434 // @@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) |
9435 } | 9268 } |
9436 ::std::string* FileOptions::mutable_csharp_namespace() { | 9269 ::std::string* FileOptions::mutable_csharp_namespace() { |
9437 set_has_csharp_namespace(); | 9270 set_has_csharp_namespace(); |
9438 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.csharp_n
amespace) | 9271 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.csharp_n
amespace) |
9439 return csharp_namespace_.MutableNoArena(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited()); | 9272 return csharp_namespace_.MutableNoArena(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited()); |
9440 } | 9273 } |
9441 ::std::string* FileOptions::release_csharp_namespace() { | 9274 ::std::string* FileOptions::release_csharp_namespace() { |
9442 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.csharp_n
amespace) | 9275 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.csharp_n
amespace) |
9443 clear_has_csharp_namespace(); | 9276 clear_has_csharp_namespace(); |
9444 return csharp_namespace_.ReleaseNoArena(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited()); | 9277 return csharp_namespace_.ReleaseNoArena(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited()); |
9445 } | 9278 } |
9446 void FileOptions::set_allocated_csharp_namespace(::std::string* csharp_namespace
) { | 9279 void FileOptions::set_allocated_csharp_namespace(::std::string* csharp_namespac
e) { |
9447 if (csharp_namespace != NULL) { | 9280 if (csharp_namespace != NULL) { |
9448 set_has_csharp_namespace(); | 9281 set_has_csharp_namespace(); |
9449 } else { | 9282 } else { |
9450 clear_has_csharp_namespace(); | 9283 clear_has_csharp_namespace(); |
9451 } | 9284 } |
9452 csharp_namespace_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited(), csharp_namespace); | 9285 csharp_namespace_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited(), csharp_namespace); |
9453 // @@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) |
9454 } | 9287 } |
9455 | 9288 |
9456 // optional string swift_prefix = 39; | |
9457 bool FileOptions::has_swift_prefix() const { | |
9458 return (_has_bits_[0] & 0x00000020u) != 0; | |
9459 } | |
9460 void FileOptions::set_has_swift_prefix() { | |
9461 _has_bits_[0] |= 0x00000020u; | |
9462 } | |
9463 void FileOptions::clear_has_swift_prefix() { | |
9464 _has_bits_[0] &= ~0x00000020u; | |
9465 } | |
9466 void FileOptions::clear_swift_prefix() { | |
9467 swift_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); | |
9468 clear_has_swift_prefix(); | |
9469 } | |
9470 const ::std::string& FileOptions::swift_prefix() const { | |
9471 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.swift_prefix
) | |
9472 return swift_prefix_.GetNoArena(); | |
9473 } | |
9474 void FileOptions::set_swift_prefix(const ::std::string& value) { | |
9475 set_has_swift_prefix(); | |
9476 swift_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI
nited(), value); | |
9477 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.swift_prefix
) | |
9478 } | |
9479 #if LANG_CXX11 | |
9480 void FileOptions::set_swift_prefix(::std::string&& value) { | |
9481 set_has_swift_prefix(); | |
9482 swift_prefix_.SetNoArena( | |
9483 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va
lue)); | |
9484 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.swift
_prefix) | |
9485 } | |
9486 #endif | |
9487 void FileOptions::set_swift_prefix(const char* value) { | |
9488 set_has_swift_prefix(); | |
9489 swift_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI
nited(), ::std::string(value)); | |
9490 // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.swift_p
refix) | |
9491 } | |
9492 void FileOptions::set_swift_prefix(const char* value, size_t size) { | |
9493 set_has_swift_prefix(); | |
9494 swift_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI
nited(), | |
9495 ::std::string(reinterpret_cast<const char*>(value), size)); | |
9496 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.swif
t_prefix) | |
9497 } | |
9498 ::std::string* FileOptions::mutable_swift_prefix() { | |
9499 set_has_swift_prefix(); | |
9500 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.swift_pr
efix) | |
9501 return swift_prefix_.MutableNoArena(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited()); | |
9502 } | |
9503 ::std::string* FileOptions::release_swift_prefix() { | |
9504 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.swift_pr
efix) | |
9505 clear_has_swift_prefix(); | |
9506 return swift_prefix_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited()); | |
9507 } | |
9508 void FileOptions::set_allocated_swift_prefix(::std::string* swift_prefix) { | |
9509 if (swift_prefix != NULL) { | |
9510 set_has_swift_prefix(); | |
9511 } else { | |
9512 clear_has_swift_prefix(); | |
9513 } | |
9514 swift_prefix_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited(), swift_prefix); | |
9515 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.sw
ift_prefix) | |
9516 } | |
9517 | |
9518 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 9289 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
9519 int FileOptions::uninterpreted_option_size() const { | 9290 int FileOptions::uninterpreted_option_size() const { |
9520 return uninterpreted_option_.size(); | 9291 return uninterpreted_option_.size(); |
9521 } | 9292 } |
9522 void FileOptions::clear_uninterpreted_option() { | 9293 void FileOptions::clear_uninterpreted_option() { |
9523 uninterpreted_option_.Clear(); | 9294 uninterpreted_option_.Clear(); |
9524 } | 9295 } |
9525 const ::google::protobuf::UninterpretedOption& FileOptions::uninterpreted_option
(int index) const { | 9296 const ::google::protobuf::UninterpretedOption& FileOptions::uninterpreted_option
(int index) const { |
9526 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.uninterprete
d_option) | 9297 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.uninterprete
d_option) |
9527 return uninterpreted_option_.Get(index); | 9298 return uninterpreted_option_.Get(index); |
(...skipping 24 matching lines...) Expand all Loading... |
9552 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 9323 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
9553 const int MessageOptions::kMessageSetWireFormatFieldNumber; | 9324 const int MessageOptions::kMessageSetWireFormatFieldNumber; |
9554 const int MessageOptions::kNoStandardDescriptorAccessorFieldNumber; | 9325 const int MessageOptions::kNoStandardDescriptorAccessorFieldNumber; |
9555 const int MessageOptions::kDeprecatedFieldNumber; | 9326 const int MessageOptions::kDeprecatedFieldNumber; |
9556 const int MessageOptions::kMapEntryFieldNumber; | 9327 const int MessageOptions::kMapEntryFieldNumber; |
9557 const int MessageOptions::kUninterpretedOptionFieldNumber; | 9328 const int MessageOptions::kUninterpretedOptionFieldNumber; |
9558 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 9329 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
9559 | 9330 |
9560 MessageOptions::MessageOptions() | 9331 MessageOptions::MessageOptions() |
9561 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 9332 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
9562 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
9563 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
9564 } | |
9565 SharedCtor(); | 9333 SharedCtor(); |
9566 // @@protoc_insertion_point(constructor:google.protobuf.MessageOptions) | 9334 // @@protoc_insertion_point(constructor:google.protobuf.MessageOptions) |
9567 } | 9335 } |
| 9336 |
| 9337 void MessageOptions::InitAsDefaultInstance() { |
| 9338 } |
| 9339 |
9568 MessageOptions::MessageOptions(const MessageOptions& from) | 9340 MessageOptions::MessageOptions(const MessageOptions& from) |
9569 : ::google::protobuf::Message(), | 9341 : ::google::protobuf::Message(), |
9570 _internal_metadata_(NULL), | 9342 _internal_metadata_(NULL) { |
9571 _has_bits_(from._has_bits_), | 9343 SharedCtor(); |
9572 _cached_size_(0), | 9344 MergeFrom(from); |
9573 uninterpreted_option_(from.uninterpreted_option_) { | |
9574 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
9575 _extensions_.MergeFrom(from._extensions_); | |
9576 ::memcpy(&message_set_wire_format_, &from.message_set_wire_format_, | |
9577 reinterpret_cast<char*>(&map_entry_) - | |
9578 reinterpret_cast<char*>(&message_set_wire_format_) + sizeof(map_entry_)); | |
9579 // @@protoc_insertion_point(copy_constructor:google.protobuf.MessageOptions) | 9345 // @@protoc_insertion_point(copy_constructor:google.protobuf.MessageOptions) |
9580 } | 9346 } |
9581 | 9347 |
9582 void MessageOptions::SharedCtor() { | 9348 void MessageOptions::SharedCtor() { |
9583 _cached_size_ = 0; | 9349 _cached_size_ = 0; |
9584 ::memset(&message_set_wire_format_, 0, reinterpret_cast<char*>(&map_entry_) - | 9350 message_set_wire_format_ = false; |
9585 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_)); |
9586 } | 9355 } |
9587 | 9356 |
9588 MessageOptions::~MessageOptions() { | 9357 MessageOptions::~MessageOptions() { |
9589 // @@protoc_insertion_point(destructor:google.protobuf.MessageOptions) | 9358 // @@protoc_insertion_point(destructor:google.protobuf.MessageOptions) |
9590 SharedDtor(); | 9359 SharedDtor(); |
9591 } | 9360 } |
9592 | 9361 |
9593 void MessageOptions::SharedDtor() { | 9362 void MessageOptions::SharedDtor() { |
| 9363 if (this != default_instance_) { |
| 9364 } |
9594 } | 9365 } |
9595 | 9366 |
9596 void MessageOptions::SetCachedSize(int size) const { | 9367 void MessageOptions::SetCachedSize(int size) const { |
9597 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 9368 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
9598 _cached_size_ = size; | 9369 _cached_size_ = size; |
9599 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 9370 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
9600 } | 9371 } |
9601 const ::google::protobuf::Descriptor* MessageOptions::descriptor() { | 9372 const ::google::protobuf::Descriptor* MessageOptions::descriptor() { |
9602 protobuf_AssignDescriptorsOnce(); | 9373 protobuf_AssignDescriptorsOnce(); |
9603 return file_level_metadata[12].descriptor; | 9374 return MessageOptions_descriptor_; |
9604 } | 9375 } |
9605 | 9376 |
9606 const MessageOptions& MessageOptions::default_instance() { | 9377 const MessageOptions& MessageOptions::default_instance() { |
9607 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 9378 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
9608 return *internal_default_instance(); | 9379 return *default_instance_; |
9609 } | 9380 } |
9610 | 9381 |
| 9382 MessageOptions* MessageOptions::default_instance_ = NULL; |
| 9383 |
9611 MessageOptions* MessageOptions::New(::google::protobuf::Arena* arena) const { | 9384 MessageOptions* MessageOptions::New(::google::protobuf::Arena* arena) const { |
9612 MessageOptions* n = new MessageOptions; | 9385 MessageOptions* n = new MessageOptions; |
9613 if (arena != NULL) { | 9386 if (arena != NULL) { |
9614 arena->Own(n); | 9387 arena->Own(n); |
9615 } | 9388 } |
9616 return n; | 9389 return n; |
9617 } | 9390 } |
9618 | 9391 |
9619 void MessageOptions::Clear() { | 9392 void MessageOptions::Clear() { |
9620 // @@protoc_insertion_point(message_clear_start:google.protobuf.MessageOptions) | 9393 // @@protoc_insertion_point(message_clear_start:google.protobuf.MessageOptions) |
9621 _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 |
9622 uninterpreted_option_.Clear(); | 9416 uninterpreted_option_.Clear(); |
9623 if (_has_bits_[0 / 32] & 15u) { | 9417 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
9624 ::memset(&message_set_wire_format_, 0, reinterpret_cast<char*>(&map_entry_)
- | 9418 if (_internal_metadata_.have_unknown_fields()) { |
9625 reinterpret_cast<char*>(&message_set_wire_format_) + sizeof(map_entry_)); | 9419 mutable_unknown_fields()->Clear(); |
9626 } | 9420 } |
9627 _has_bits_.Clear(); | |
9628 _internal_metadata_.Clear(); | |
9629 } | 9421 } |
9630 | 9422 |
9631 bool MessageOptions::MergePartialFromCodedStream( | 9423 bool MessageOptions::MergePartialFromCodedStream( |
9632 ::google::protobuf::io::CodedInputStream* input) { | 9424 ::google::protobuf::io::CodedInputStream* input) { |
9633 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 9425 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
9634 ::google::protobuf::uint32 tag; | 9426 ::google::protobuf::uint32 tag; |
9635 // @@protoc_insertion_point(parse_start:google.protobuf.MessageOptions) | 9427 // @@protoc_insertion_point(parse_start:google.protobuf.MessageOptions) |
9636 for (;;) { | 9428 for (;;) { |
9637 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(16383u); | 9429 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
16383); |
9638 tag = p.first; | 9430 tag = p.first; |
9639 if (!p.second) goto handle_unusual; | 9431 if (!p.second) goto handle_unusual; |
9640 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 9432 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
9641 // optional bool message_set_wire_format = 1 [default = false]; | 9433 // optional bool message_set_wire_format = 1 [default = false]; |
9642 case 1: { | 9434 case 1: { |
9643 if (tag == 8u) { | 9435 if (tag == 8) { |
9644 set_has_message_set_wire_format(); | |
9645 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 9436 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
9646 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 9437 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
9647 input, &message_set_wire_format_))); | 9438 input, &message_set_wire_format_))); |
| 9439 set_has_message_set_wire_format(); |
9648 } else { | 9440 } else { |
9649 goto handle_unusual; | 9441 goto handle_unusual; |
9650 } | 9442 } |
| 9443 if (input->ExpectTag(16)) goto parse_no_standard_descriptor_accessor; |
9651 break; | 9444 break; |
9652 } | 9445 } |
9653 | 9446 |
9654 // optional bool no_standard_descriptor_accessor = 2 [default = false]; | 9447 // optional bool no_standard_descriptor_accessor = 2 [default = false]; |
9655 case 2: { | 9448 case 2: { |
9656 if (tag == 16u) { | 9449 if (tag == 16) { |
9657 set_has_no_standard_descriptor_accessor(); | 9450 parse_no_standard_descriptor_accessor: |
9658 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 9451 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
9659 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 9452 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
9660 input, &no_standard_descriptor_accessor_))); | 9453 input, &no_standard_descriptor_accessor_))); |
| 9454 set_has_no_standard_descriptor_accessor(); |
9661 } else { | 9455 } else { |
9662 goto handle_unusual; | 9456 goto handle_unusual; |
9663 } | 9457 } |
| 9458 if (input->ExpectTag(24)) goto parse_deprecated; |
9664 break; | 9459 break; |
9665 } | 9460 } |
9666 | 9461 |
9667 // optional bool deprecated = 3 [default = false]; | 9462 // optional bool deprecated = 3 [default = false]; |
9668 case 3: { | 9463 case 3: { |
9669 if (tag == 24u) { | 9464 if (tag == 24) { |
9670 set_has_deprecated(); | 9465 parse_deprecated: |
9671 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 9466 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
9672 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 9467 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
9673 input, &deprecated_))); | 9468 input, &deprecated_))); |
| 9469 set_has_deprecated(); |
9674 } else { | 9470 } else { |
9675 goto handle_unusual; | 9471 goto handle_unusual; |
9676 } | 9472 } |
| 9473 if (input->ExpectTag(56)) goto parse_map_entry; |
9677 break; | 9474 break; |
9678 } | 9475 } |
9679 | 9476 |
9680 // optional bool map_entry = 7; | 9477 // optional bool map_entry = 7; |
9681 case 7: { | 9478 case 7: { |
9682 if (tag == 56u) { | 9479 if (tag == 56) { |
9683 set_has_map_entry(); | 9480 parse_map_entry: |
9684 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 9481 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
9685 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 9482 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
9686 input, &map_entry_))); | 9483 input, &map_entry_))); |
| 9484 set_has_map_entry(); |
9687 } else { | 9485 } else { |
9688 goto handle_unusual; | 9486 goto handle_unusual; |
9689 } | 9487 } |
| 9488 if (input->ExpectTag(7994)) goto parse_uninterpreted_option; |
9690 break; | 9489 break; |
9691 } | 9490 } |
9692 | 9491 |
9693 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99
9; | 9492 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99
9; |
9694 case 999: { | 9493 case 999: { |
9695 if (tag == 7994u) { | 9494 if (tag == 7994) { |
| 9495 parse_uninterpreted_option: |
9696 DO_(input->IncrementRecursionDepth()); | 9496 DO_(input->IncrementRecursionDepth()); |
| 9497 parse_loop_uninterpreted_option: |
9697 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 9498 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
9698 input, add_uninterpreted_option())); | 9499 input, add_uninterpreted_option())); |
9699 } else { | 9500 } else { |
9700 goto handle_unusual; | 9501 goto handle_unusual; |
9701 } | 9502 } |
| 9503 if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option; |
9702 input->UnsafeDecrementRecursionDepth(); | 9504 input->UnsafeDecrementRecursionDepth(); |
| 9505 if (input->ExpectAtEnd()) goto success; |
9703 break; | 9506 break; |
9704 } | 9507 } |
9705 | 9508 |
9706 default: { | 9509 default: { |
9707 handle_unusual: | 9510 handle_unusual: |
9708 if (tag == 0 || | 9511 if (tag == 0 || |
9709 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 9512 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
9710 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 9513 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
9711 goto success; | 9514 goto success; |
9712 } | 9515 } |
9713 if ((8000u <= tag)) { | 9516 if ((8000u <= tag)) { |
9714 DO_(_extensions_.ParseField(tag, input, internal_default_instance(), | 9517 DO_(_extensions_.ParseField(tag, input, default_instance_, |
9715 mutable_unknown_fields())); | 9518 mutable_unknown_fields())); |
9716 continue; | 9519 continue; |
9717 } | 9520 } |
9718 DO_(::google::protobuf::internal::WireFormat::SkipField( | 9521 DO_(::google::protobuf::internal::WireFormat::SkipField( |
9719 input, tag, mutable_unknown_fields())); | 9522 input, tag, mutable_unknown_fields())); |
9720 break; | 9523 break; |
9721 } | 9524 } |
9722 } | 9525 } |
9723 } | 9526 } |
9724 success: | 9527 success: |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9763 _extensions_.SerializeWithCachedSizes( | 9566 _extensions_.SerializeWithCachedSizes( |
9764 1000, 536870912, output); | 9567 1000, 536870912, output); |
9765 | 9568 |
9766 if (_internal_metadata_.have_unknown_fields()) { | 9569 if (_internal_metadata_.have_unknown_fields()) { |
9767 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 9570 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
9768 unknown_fields(), output); | 9571 unknown_fields(), output); |
9769 } | 9572 } |
9770 // @@protoc_insertion_point(serialize_end:google.protobuf.MessageOptions) | 9573 // @@protoc_insertion_point(serialize_end:google.protobuf.MessageOptions) |
9771 } | 9574 } |
9772 | 9575 |
9773 ::google::protobuf::uint8* MessageOptions::InternalSerializeWithCachedSizesToArr
ay( | 9576 ::google::protobuf::uint8* MessageOptions::SerializeWithCachedSizesToArray( |
9774 bool deterministic, ::google::protobuf::uint8* target) const { | 9577 ::google::protobuf::uint8* target) const { |
9775 (void)deterministic; // Unused | |
9776 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MessageOp
tions) | 9578 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MessageOp
tions) |
9777 // optional bool message_set_wire_format = 1 [default = false]; | 9579 // optional bool message_set_wire_format = 1 [default = false]; |
9778 if (has_message_set_wire_format()) { | 9580 if (has_message_set_wire_format()) { |
9779 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); |
9780 } | 9582 } |
9781 | 9583 |
9782 // optional bool no_standard_descriptor_accessor = 2 [default = false]; | 9584 // optional bool no_standard_descriptor_accessor = 2 [default = false]; |
9783 if (has_no_standard_descriptor_accessor()) { | 9585 if (has_no_standard_descriptor_accessor()) { |
9784 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); |
9785 } | 9587 } |
9786 | 9588 |
9787 // optional bool deprecated = 3 [default = false]; | 9589 // optional bool deprecated = 3 [default = false]; |
9788 if (has_deprecated()) { | 9590 if (has_deprecated()) { |
9789 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, t
his->deprecated(), target); | 9591 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, t
his->deprecated(), target); |
9790 } | 9592 } |
9791 | 9593 |
9792 // optional bool map_entry = 7; | 9594 // optional bool map_entry = 7; |
9793 if (has_map_entry()) { | 9595 if (has_map_entry()) { |
9794 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); |
9795 } | 9597 } |
9796 | 9598 |
9797 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 9599 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
9798 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++) { |
9799 target = ::google::protobuf::internal::WireFormatLite:: | 9601 target = ::google::protobuf::internal::WireFormatLite:: |
9800 InternalWriteMessageNoVirtualToArray( | 9602 WriteMessageNoVirtualToArray( |
9801 999, this->uninterpreted_option(i), false, target); | 9603 999, this->uninterpreted_option(i), target); |
9802 } | 9604 } |
9803 | 9605 |
9804 // Extension range [1000, 536870912) | 9606 // Extension range [1000, 536870912) |
9805 target = _extensions_.InternalSerializeWithCachedSizesToArray( | 9607 target = _extensions_.SerializeWithCachedSizesToArray( |
9806 1000, 536870912, false, target); | 9608 1000, 536870912, target); |
9807 | 9609 |
9808 if (_internal_metadata_.have_unknown_fields()) { | 9610 if (_internal_metadata_.have_unknown_fields()) { |
9809 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 9611 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
9810 unknown_fields(), target); | 9612 unknown_fields(), target); |
9811 } | 9613 } |
9812 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MessageOpti
ons) | 9614 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MessageOpti
ons) |
9813 return target; | 9615 return target; |
9814 } | 9616 } |
9815 | 9617 |
9816 size_t MessageOptions::ByteSizeLong() const { | 9618 int MessageOptions::ByteSize() const { |
9817 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.MessageOptio
ns) | 9619 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.MessageOptio
ns) |
9818 size_t total_size = 0; | 9620 int total_size = 0; |
9819 | |
9820 total_size += _extensions_.ByteSize(); | |
9821 | |
9822 if (_internal_metadata_.have_unknown_fields()) { | |
9823 total_size += | |
9824 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | |
9825 unknown_fields()); | |
9826 } | |
9827 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | |
9828 { | |
9829 unsigned int count = this->uninterpreted_option_size(); | |
9830 total_size += 2UL * count; | |
9831 for (unsigned int i = 0; i < count; i++) { | |
9832 total_size += | |
9833 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
9834 this->uninterpreted_option(i)); | |
9835 } | |
9836 } | |
9837 | 9621 |
9838 if (_has_bits_[0 / 32] & 15u) { | 9622 if (_has_bits_[0 / 32] & 15u) { |
9839 // optional bool message_set_wire_format = 1 [default = false]; | 9623 // optional bool message_set_wire_format = 1 [default = false]; |
9840 if (has_message_set_wire_format()) { | 9624 if (has_message_set_wire_format()) { |
9841 total_size += 1 + 1; | 9625 total_size += 1 + 1; |
9842 } | 9626 } |
9843 | 9627 |
9844 // optional bool no_standard_descriptor_accessor = 2 [default = false]; | 9628 // optional bool no_standard_descriptor_accessor = 2 [default = false]; |
9845 if (has_no_standard_descriptor_accessor()) { | 9629 if (has_no_standard_descriptor_accessor()) { |
9846 total_size += 1 + 1; | 9630 total_size += 1 + 1; |
9847 } | 9631 } |
9848 | 9632 |
9849 // optional bool deprecated = 3 [default = false]; | 9633 // optional bool deprecated = 3 [default = false]; |
9850 if (has_deprecated()) { | 9634 if (has_deprecated()) { |
9851 total_size += 1 + 1; | 9635 total_size += 1 + 1; |
9852 } | 9636 } |
9853 | 9637 |
9854 // optional bool map_entry = 7; | 9638 // optional bool map_entry = 7; |
9855 if (has_map_entry()) { | 9639 if (has_map_entry()) { |
9856 total_size += 1 + 1; | 9640 total_size += 1 + 1; |
9857 } | 9641 } |
9858 | 9642 |
9859 } | 9643 } |
9860 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 } |
9861 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 9659 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
9862 _cached_size_ = cached_size; | 9660 _cached_size_ = total_size; |
9863 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 9661 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
9864 return total_size; | 9662 return total_size; |
9865 } | 9663 } |
9866 | 9664 |
9867 void MessageOptions::MergeFrom(const ::google::protobuf::Message& from) { | 9665 void MessageOptions::MergeFrom(const ::google::protobuf::Message& from) { |
9868 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Message
Options) | 9666 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Message
Options) |
9869 GOOGLE_DCHECK_NE(&from, this); | 9667 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
9870 const MessageOptions* source = | 9668 const MessageOptions* source = |
9871 ::google::protobuf::internal::DynamicCastToGenerated<const MessageOptions>
( | 9669 ::google::protobuf::internal::DynamicCastToGenerated<const MessageOptions>
( |
9872 &from); | 9670 &from); |
9873 if (source == NULL) { | 9671 if (source == NULL) { |
9874 // @@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) |
9875 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 9673 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
9876 } else { | 9674 } else { |
9877 // @@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) |
9878 MergeFrom(*source); | 9676 MergeFrom(*source); |
9879 } | 9677 } |
9880 } | 9678 } |
9881 | 9679 |
9882 void MessageOptions::MergeFrom(const MessageOptions& from) { | 9680 void MessageOptions::MergeFrom(const MessageOptions& from) { |
9883 // @@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) |
9884 GOOGLE_DCHECK_NE(&from, this); | 9682 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
9885 _extensions_.MergeFrom(from._extensions_); | |
9886 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
9887 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); | 9683 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); |
9888 if (from._has_bits_[0 / 32] & 15u) { | 9684 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
9889 if (from.has_message_set_wire_format()) { | 9685 if (from.has_message_set_wire_format()) { |
9890 set_message_set_wire_format(from.message_set_wire_format()); | 9686 set_message_set_wire_format(from.message_set_wire_format()); |
9891 } | 9687 } |
9892 if (from.has_no_standard_descriptor_accessor()) { | 9688 if (from.has_no_standard_descriptor_accessor()) { |
9893 set_no_standard_descriptor_accessor(from.no_standard_descriptor_accessor()
); | 9689 set_no_standard_descriptor_accessor(from.no_standard_descriptor_accessor()
); |
9894 } | 9690 } |
9895 if (from.has_deprecated()) { | 9691 if (from.has_deprecated()) { |
9896 set_deprecated(from.deprecated()); | 9692 set_deprecated(from.deprecated()); |
9897 } | 9693 } |
9898 if (from.has_map_entry()) { | 9694 if (from.has_map_entry()) { |
9899 set_map_entry(from.map_entry()); | 9695 set_map_entry(from.map_entry()); |
9900 } | 9696 } |
9901 } | 9697 } |
| 9698 _extensions_.MergeFrom(from._extensions_); |
| 9699 if (from._internal_metadata_.have_unknown_fields()) { |
| 9700 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 9701 } |
9902 } | 9702 } |
9903 | 9703 |
9904 void MessageOptions::CopyFrom(const ::google::protobuf::Message& from) { | 9704 void MessageOptions::CopyFrom(const ::google::protobuf::Message& from) { |
9905 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.MessageO
ptions) | 9705 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.MessageO
ptions) |
9906 if (&from == this) return; | 9706 if (&from == this) return; |
9907 Clear(); | 9707 Clear(); |
9908 MergeFrom(from); | 9708 MergeFrom(from); |
9909 } | 9709 } |
9910 | 9710 |
9911 void MessageOptions::CopyFrom(const MessageOptions& from) { | 9711 void MessageOptions::CopyFrom(const MessageOptions& from) { |
9912 // @@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) |
9913 if (&from == this) return; | 9713 if (&from == this) return; |
9914 Clear(); | 9714 Clear(); |
9915 MergeFrom(from); | 9715 MergeFrom(from); |
9916 } | 9716 } |
9917 | 9717 |
9918 bool MessageOptions::IsInitialized() const { | 9718 bool MessageOptions::IsInitialized() const { |
9919 if (!_extensions_.IsInitialized()) { | |
9920 return false; | |
9921 } | |
9922 | 9719 |
9923 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio
n())) return false; | 9720 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio
n())) return false; |
9924 return true; | 9721 |
| 9722 if (!_extensions_.IsInitialized()) return false; return true; |
9925 } | 9723 } |
9926 | 9724 |
9927 void MessageOptions::Swap(MessageOptions* other) { | 9725 void MessageOptions::Swap(MessageOptions* other) { |
9928 if (other == this) return; | 9726 if (other == this) return; |
9929 InternalSwap(other); | 9727 InternalSwap(other); |
9930 } | 9728 } |
9931 void MessageOptions::InternalSwap(MessageOptions* other) { | 9729 void MessageOptions::InternalSwap(MessageOptions* other) { |
9932 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); | |
9933 std::swap(message_set_wire_format_, other->message_set_wire_format_); | 9730 std::swap(message_set_wire_format_, other->message_set_wire_format_); |
9934 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_); |
9935 std::swap(deprecated_, other->deprecated_); | 9732 std::swap(deprecated_, other->deprecated_); |
9936 std::swap(map_entry_, other->map_entry_); | 9733 std::swap(map_entry_, other->map_entry_); |
| 9734 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); |
9937 std::swap(_has_bits_[0], other->_has_bits_[0]); | 9735 std::swap(_has_bits_[0], other->_has_bits_[0]); |
9938 _internal_metadata_.Swap(&other->_internal_metadata_); | 9736 _internal_metadata_.Swap(&other->_internal_metadata_); |
9939 std::swap(_cached_size_, other->_cached_size_); | 9737 std::swap(_cached_size_, other->_cached_size_); |
9940 _extensions_.Swap(&other->_extensions_); | 9738 _extensions_.Swap(&other->_extensions_); |
9941 } | 9739 } |
9942 | 9740 |
9943 ::google::protobuf::Metadata MessageOptions::GetMetadata() const { | 9741 ::google::protobuf::Metadata MessageOptions::GetMetadata() const { |
9944 protobuf_AssignDescriptorsOnce(); | 9742 protobuf_AssignDescriptorsOnce(); |
9945 return file_level_metadata[12]; | 9743 ::google::protobuf::Metadata metadata; |
| 9744 metadata.descriptor = MessageOptions_descriptor_; |
| 9745 metadata.reflection = MessageOptions_reflection_; |
| 9746 return metadata; |
9946 } | 9747 } |
9947 | 9748 |
9948 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 9749 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
9949 // MessageOptions | 9750 // MessageOptions |
9950 | 9751 |
9951 // optional bool message_set_wire_format = 1 [default = false]; | 9752 // optional bool message_set_wire_format = 1 [default = false]; |
9952 bool MessageOptions::has_message_set_wire_format() const { | 9753 bool MessageOptions::has_message_set_wire_format() const { |
9953 return (_has_bits_[0] & 0x00000001u) != 0; | 9754 return (_has_bits_[0] & 0x00000001u) != 0; |
9954 } | 9755 } |
9955 void MessageOptions::set_has_message_set_wire_format() { | 9756 void MessageOptions::set_has_message_set_wire_format() { |
9956 _has_bits_[0] |= 0x00000001u; | 9757 _has_bits_[0] |= 0x00000001u; |
9957 } | 9758 } |
9958 void MessageOptions::clear_has_message_set_wire_format() { | 9759 void MessageOptions::clear_has_message_set_wire_format() { |
9959 _has_bits_[0] &= ~0x00000001u; | 9760 _has_bits_[0] &= ~0x00000001u; |
9960 } | 9761 } |
9961 void MessageOptions::clear_message_set_wire_format() { | 9762 void MessageOptions::clear_message_set_wire_format() { |
9962 message_set_wire_format_ = false; | 9763 message_set_wire_format_ = false; |
9963 clear_has_message_set_wire_format(); | 9764 clear_has_message_set_wire_format(); |
9964 } | 9765 } |
9965 bool MessageOptions::message_set_wire_format() const { | 9766 bool MessageOptions::message_set_wire_format() const { |
9966 // @@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) |
9967 return message_set_wire_format_; | 9768 return message_set_wire_format_; |
9968 } | 9769 } |
9969 void MessageOptions::set_message_set_wire_format(bool value) { | 9770 void MessageOptions::set_message_set_wire_format(bool value) { |
9970 set_has_message_set_wire_format(); | 9771 set_has_message_set_wire_format(); |
9971 message_set_wire_format_ = value; | 9772 message_set_wire_format_ = value; |
9972 // @@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) |
9973 } | 9774 } |
9974 | 9775 |
9975 // optional bool no_standard_descriptor_accessor = 2 [default = false]; | 9776 // optional bool no_standard_descriptor_accessor = 2 [default = false]; |
9976 bool MessageOptions::has_no_standard_descriptor_accessor() const { | 9777 bool MessageOptions::has_no_standard_descriptor_accessor() const { |
9977 return (_has_bits_[0] & 0x00000002u) != 0; | 9778 return (_has_bits_[0] & 0x00000002u) != 0; |
9978 } | 9779 } |
9979 void MessageOptions::set_has_no_standard_descriptor_accessor() { | 9780 void MessageOptions::set_has_no_standard_descriptor_accessor() { |
9980 _has_bits_[0] |= 0x00000002u; | 9781 _has_bits_[0] |= 0x00000002u; |
9981 } | 9782 } |
9982 void MessageOptions::clear_has_no_standard_descriptor_accessor() { | 9783 void MessageOptions::clear_has_no_standard_descriptor_accessor() { |
9983 _has_bits_[0] &= ~0x00000002u; | 9784 _has_bits_[0] &= ~0x00000002u; |
9984 } | 9785 } |
9985 void MessageOptions::clear_no_standard_descriptor_accessor() { | 9786 void MessageOptions::clear_no_standard_descriptor_accessor() { |
9986 no_standard_descriptor_accessor_ = false; | 9787 no_standard_descriptor_accessor_ = false; |
9987 clear_has_no_standard_descriptor_accessor(); | 9788 clear_has_no_standard_descriptor_accessor(); |
9988 } | 9789 } |
9989 bool MessageOptions::no_standard_descriptor_accessor() const { | 9790 bool MessageOptions::no_standard_descriptor_accessor() const { |
9990 // @@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) |
9991 return no_standard_descriptor_accessor_; | 9792 return no_standard_descriptor_accessor_; |
9992 } | 9793 } |
9993 void MessageOptions::set_no_standard_descriptor_accessor(bool value) { | 9794 void MessageOptions::set_no_standard_descriptor_accessor(bool value) { |
9994 set_has_no_standard_descriptor_accessor(); | 9795 set_has_no_standard_descriptor_accessor(); |
9995 no_standard_descriptor_accessor_ = value; | 9796 no_standard_descriptor_accessor_ = value; |
9996 // @@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) |
9997 } | 9798 } |
9998 | 9799 |
9999 // optional bool deprecated = 3 [default = false]; | 9800 // optional bool deprecated = 3 [default = false]; |
10000 bool MessageOptions::has_deprecated() const { | 9801 bool MessageOptions::has_deprecated() const { |
10001 return (_has_bits_[0] & 0x00000004u) != 0; | 9802 return (_has_bits_[0] & 0x00000004u) != 0; |
10002 } | 9803 } |
10003 void MessageOptions::set_has_deprecated() { | 9804 void MessageOptions::set_has_deprecated() { |
10004 _has_bits_[0] |= 0x00000004u; | 9805 _has_bits_[0] |= 0x00000004u; |
10005 } | 9806 } |
10006 void MessageOptions::clear_has_deprecated() { | 9807 void MessageOptions::clear_has_deprecated() { |
10007 _has_bits_[0] &= ~0x00000004u; | 9808 _has_bits_[0] &= ~0x00000004u; |
10008 } | 9809 } |
10009 void MessageOptions::clear_deprecated() { | 9810 void MessageOptions::clear_deprecated() { |
10010 deprecated_ = false; | 9811 deprecated_ = false; |
10011 clear_has_deprecated(); | 9812 clear_has_deprecated(); |
10012 } | 9813 } |
10013 bool MessageOptions::deprecated() const { | 9814 bool MessageOptions::deprecated() const { |
10014 // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.deprecate
d) | 9815 // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.deprecate
d) |
10015 return deprecated_; | 9816 return deprecated_; |
10016 } | 9817 } |
10017 void MessageOptions::set_deprecated(bool value) { | 9818 void MessageOptions::set_deprecated(bool value) { |
10018 set_has_deprecated(); | 9819 set_has_deprecated(); |
10019 deprecated_ = value; | 9820 deprecated_ = value; |
10020 // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.deprecate
d) | 9821 // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.deprecate
d) |
10021 } | 9822 } |
10022 | 9823 |
10023 // optional bool map_entry = 7; | 9824 // optional bool map_entry = 7; |
10024 bool MessageOptions::has_map_entry() const { | 9825 bool MessageOptions::has_map_entry() const { |
10025 return (_has_bits_[0] & 0x00000008u) != 0; | 9826 return (_has_bits_[0] & 0x00000008u) != 0; |
10026 } | 9827 } |
10027 void MessageOptions::set_has_map_entry() { | 9828 void MessageOptions::set_has_map_entry() { |
10028 _has_bits_[0] |= 0x00000008u; | 9829 _has_bits_[0] |= 0x00000008u; |
10029 } | 9830 } |
10030 void MessageOptions::clear_has_map_entry() { | 9831 void MessageOptions::clear_has_map_entry() { |
10031 _has_bits_[0] &= ~0x00000008u; | 9832 _has_bits_[0] &= ~0x00000008u; |
10032 } | 9833 } |
10033 void MessageOptions::clear_map_entry() { | 9834 void MessageOptions::clear_map_entry() { |
10034 map_entry_ = false; | 9835 map_entry_ = false; |
10035 clear_has_map_entry(); | 9836 clear_has_map_entry(); |
10036 } | 9837 } |
10037 bool MessageOptions::map_entry() const { | 9838 bool MessageOptions::map_entry() const { |
10038 // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.map_entry
) | 9839 // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.map_entry
) |
10039 return map_entry_; | 9840 return map_entry_; |
10040 } | 9841 } |
10041 void MessageOptions::set_map_entry(bool value) { | 9842 void MessageOptions::set_map_entry(bool value) { |
10042 set_has_map_entry(); | 9843 set_has_map_entry(); |
10043 map_entry_ = value; | 9844 map_entry_ = value; |
10044 // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.map_entry
) | 9845 // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.map_entry
) |
10045 } | 9846 } |
10046 | 9847 |
10047 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 9848 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
10048 int MessageOptions::uninterpreted_option_size() const { | 9849 int MessageOptions::uninterpreted_option_size() const { |
10049 return uninterpreted_option_.size(); | 9850 return uninterpreted_option_.size(); |
10050 } | 9851 } |
10051 void MessageOptions::clear_uninterpreted_option() { | 9852 void MessageOptions::clear_uninterpreted_option() { |
(...skipping 19 matching lines...) Expand all Loading... |
10071 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt
ion >& | 9872 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt
ion >& |
10072 MessageOptions::uninterpreted_option() const { | 9873 MessageOptions::uninterpreted_option() const { |
10073 // @@protoc_insertion_point(field_list:google.protobuf.MessageOptions.uninterp
reted_option) | 9874 // @@protoc_insertion_point(field_list:google.protobuf.MessageOptions.uninterp
reted_option) |
10074 return uninterpreted_option_; | 9875 return uninterpreted_option_; |
10075 } | 9876 } |
10076 | 9877 |
10077 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 9878 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
10078 | 9879 |
10079 // =================================================================== | 9880 // =================================================================== |
10080 | 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 |
10081 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 9928 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
10082 const int FieldOptions::kCtypeFieldNumber; | 9929 const int FieldOptions::kCtypeFieldNumber; |
10083 const int FieldOptions::kPackedFieldNumber; | 9930 const int FieldOptions::kPackedFieldNumber; |
10084 const int FieldOptions::kJstypeFieldNumber; | 9931 const int FieldOptions::kJstypeFieldNumber; |
10085 const int FieldOptions::kLazyFieldNumber; | 9932 const int FieldOptions::kLazyFieldNumber; |
10086 const int FieldOptions::kDeprecatedFieldNumber; | 9933 const int FieldOptions::kDeprecatedFieldNumber; |
10087 const int FieldOptions::kWeakFieldNumber; | 9934 const int FieldOptions::kWeakFieldNumber; |
10088 const int FieldOptions::kUninterpretedOptionFieldNumber; | 9935 const int FieldOptions::kUninterpretedOptionFieldNumber; |
10089 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 9936 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
10090 | 9937 |
10091 FieldOptions::FieldOptions() | 9938 FieldOptions::FieldOptions() |
10092 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 9939 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
10093 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
10094 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
10095 } | |
10096 SharedCtor(); | 9940 SharedCtor(); |
10097 // @@protoc_insertion_point(constructor:google.protobuf.FieldOptions) | 9941 // @@protoc_insertion_point(constructor:google.protobuf.FieldOptions) |
10098 } | 9942 } |
| 9943 |
| 9944 void FieldOptions::InitAsDefaultInstance() { |
| 9945 } |
| 9946 |
10099 FieldOptions::FieldOptions(const FieldOptions& from) | 9947 FieldOptions::FieldOptions(const FieldOptions& from) |
10100 : ::google::protobuf::Message(), | 9948 : ::google::protobuf::Message(), |
10101 _internal_metadata_(NULL), | 9949 _internal_metadata_(NULL) { |
10102 _has_bits_(from._has_bits_), | 9950 SharedCtor(); |
10103 _cached_size_(0), | 9951 MergeFrom(from); |
10104 uninterpreted_option_(from.uninterpreted_option_) { | |
10105 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
10106 _extensions_.MergeFrom(from._extensions_); | |
10107 ::memcpy(&ctype_, &from.ctype_, | |
10108 reinterpret_cast<char*>(&weak_) - | |
10109 reinterpret_cast<char*>(&ctype_) + sizeof(weak_)); | |
10110 // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldOptions) | 9952 // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldOptions) |
10111 } | 9953 } |
10112 | 9954 |
10113 void FieldOptions::SharedCtor() { | 9955 void FieldOptions::SharedCtor() { |
10114 _cached_size_ = 0; | 9956 _cached_size_ = 0; |
10115 ::memset(&ctype_, 0, reinterpret_cast<char*>(&weak_) - | 9957 ctype_ = 0; |
10116 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_)); |
10117 } | 9964 } |
10118 | 9965 |
10119 FieldOptions::~FieldOptions() { | 9966 FieldOptions::~FieldOptions() { |
10120 // @@protoc_insertion_point(destructor:google.protobuf.FieldOptions) | 9967 // @@protoc_insertion_point(destructor:google.protobuf.FieldOptions) |
10121 SharedDtor(); | 9968 SharedDtor(); |
10122 } | 9969 } |
10123 | 9970 |
10124 void FieldOptions::SharedDtor() { | 9971 void FieldOptions::SharedDtor() { |
| 9972 if (this != default_instance_) { |
| 9973 } |
10125 } | 9974 } |
10126 | 9975 |
10127 void FieldOptions::SetCachedSize(int size) const { | 9976 void FieldOptions::SetCachedSize(int size) const { |
10128 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 9977 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
10129 _cached_size_ = size; | 9978 _cached_size_ = size; |
10130 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 9979 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
10131 } | 9980 } |
10132 const ::google::protobuf::Descriptor* FieldOptions::descriptor() { | 9981 const ::google::protobuf::Descriptor* FieldOptions::descriptor() { |
10133 protobuf_AssignDescriptorsOnce(); | 9982 protobuf_AssignDescriptorsOnce(); |
10134 return file_level_metadata[13].descriptor; | 9983 return FieldOptions_descriptor_; |
10135 } | 9984 } |
10136 | 9985 |
10137 const FieldOptions& FieldOptions::default_instance() { | 9986 const FieldOptions& FieldOptions::default_instance() { |
10138 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 9987 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
10139 return *internal_default_instance(); | 9988 return *default_instance_; |
10140 } | 9989 } |
10141 | 9990 |
| 9991 FieldOptions* FieldOptions::default_instance_ = NULL; |
| 9992 |
10142 FieldOptions* FieldOptions::New(::google::protobuf::Arena* arena) const { | 9993 FieldOptions* FieldOptions::New(::google::protobuf::Arena* arena) const { |
10143 FieldOptions* n = new FieldOptions; | 9994 FieldOptions* n = new FieldOptions; |
10144 if (arena != NULL) { | 9995 if (arena != NULL) { |
10145 arena->Own(n); | 9996 arena->Own(n); |
10146 } | 9997 } |
10147 return n; | 9998 return n; |
10148 } | 9999 } |
10149 | 10000 |
10150 void FieldOptions::Clear() { | 10001 void FieldOptions::Clear() { |
10151 // @@protoc_insertion_point(message_clear_start:google.protobuf.FieldOptions) | 10002 // @@protoc_insertion_point(message_clear_start:google.protobuf.FieldOptions) |
10152 _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 |
10153 uninterpreted_option_.Clear(); | 10028 uninterpreted_option_.Clear(); |
10154 if (_has_bits_[0 / 32] & 63u) { | 10029 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
10155 ::memset(&ctype_, 0, reinterpret_cast<char*>(&weak_) - | 10030 if (_internal_metadata_.have_unknown_fields()) { |
10156 reinterpret_cast<char*>(&ctype_) + sizeof(weak_)); | 10031 mutable_unknown_fields()->Clear(); |
10157 } | 10032 } |
10158 _has_bits_.Clear(); | |
10159 _internal_metadata_.Clear(); | |
10160 } | 10033 } |
10161 | 10034 |
10162 bool FieldOptions::MergePartialFromCodedStream( | 10035 bool FieldOptions::MergePartialFromCodedStream( |
10163 ::google::protobuf::io::CodedInputStream* input) { | 10036 ::google::protobuf::io::CodedInputStream* input) { |
10164 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 10037 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
10165 ::google::protobuf::uint32 tag; | 10038 ::google::protobuf::uint32 tag; |
10166 // @@protoc_insertion_point(parse_start:google.protobuf.FieldOptions) | 10039 // @@protoc_insertion_point(parse_start:google.protobuf.FieldOptions) |
10167 for (;;) { | 10040 for (;;) { |
10168 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(16383u); | 10041 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
16383); |
10169 tag = p.first; | 10042 tag = p.first; |
10170 if (!p.second) goto handle_unusual; | 10043 if (!p.second) goto handle_unusual; |
10171 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 10044 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
10172 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRIN
G]; | 10045 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRIN
G]; |
10173 case 1: { | 10046 case 1: { |
10174 if (tag == 8u) { | 10047 if (tag == 8) { |
10175 int value; | 10048 int value; |
10176 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 10049 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
10177 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>
( | 10050 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>
( |
10178 input, &value))); | 10051 input, &value))); |
10179 if (::google::protobuf::FieldOptions_CType_IsValid(value)) { | 10052 if (::google::protobuf::FieldOptions_CType_IsValid(value)) { |
10180 set_ctype(static_cast< ::google::protobuf::FieldOptions_CType >(valu
e)); | 10053 set_ctype(static_cast< ::google::protobuf::FieldOptions_CType >(valu
e)); |
10181 } else { | 10054 } else { |
10182 mutable_unknown_fields()->AddVarint(1, value); | 10055 mutable_unknown_fields()->AddVarint(1, value); |
10183 } | 10056 } |
10184 } else { | 10057 } else { |
10185 goto handle_unusual; | 10058 goto handle_unusual; |
10186 } | 10059 } |
| 10060 if (input->ExpectTag(16)) goto parse_packed; |
10187 break; | 10061 break; |
10188 } | 10062 } |
10189 | 10063 |
10190 // optional bool packed = 2; | 10064 // optional bool packed = 2; |
10191 case 2: { | 10065 case 2: { |
10192 if (tag == 16u) { | 10066 if (tag == 16) { |
10193 set_has_packed(); | 10067 parse_packed: |
10194 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 10068 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
10195 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 10069 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
10196 input, &packed_))); | 10070 input, &packed_))); |
| 10071 set_has_packed(); |
10197 } else { | 10072 } else { |
10198 goto handle_unusual; | 10073 goto handle_unusual; |
10199 } | 10074 } |
| 10075 if (input->ExpectTag(24)) goto parse_deprecated; |
10200 break; | 10076 break; |
10201 } | 10077 } |
10202 | 10078 |
10203 // optional bool deprecated = 3 [default = false]; | 10079 // optional bool deprecated = 3 [default = false]; |
10204 case 3: { | 10080 case 3: { |
10205 if (tag == 24u) { | 10081 if (tag == 24) { |
10206 set_has_deprecated(); | 10082 parse_deprecated: |
10207 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 10083 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
10208 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 10084 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
10209 input, &deprecated_))); | 10085 input, &deprecated_))); |
| 10086 set_has_deprecated(); |
10210 } else { | 10087 } else { |
10211 goto handle_unusual; | 10088 goto handle_unusual; |
10212 } | 10089 } |
| 10090 if (input->ExpectTag(40)) goto parse_lazy; |
10213 break; | 10091 break; |
10214 } | 10092 } |
10215 | 10093 |
10216 // optional bool lazy = 5 [default = false]; | 10094 // optional bool lazy = 5 [default = false]; |
10217 case 5: { | 10095 case 5: { |
10218 if (tag == 40u) { | 10096 if (tag == 40) { |
10219 set_has_lazy(); | 10097 parse_lazy: |
10220 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 10098 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
10221 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 10099 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
10222 input, &lazy_))); | 10100 input, &lazy_))); |
| 10101 set_has_lazy(); |
10223 } else { | 10102 } else { |
10224 goto handle_unusual; | 10103 goto handle_unusual; |
10225 } | 10104 } |
| 10105 if (input->ExpectTag(48)) goto parse_jstype; |
10226 break; | 10106 break; |
10227 } | 10107 } |
10228 | 10108 |
10229 // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_
NORMAL]; | 10109 // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_
NORMAL]; |
10230 case 6: { | 10110 case 6: { |
10231 if (tag == 48u) { | 10111 if (tag == 48) { |
| 10112 parse_jstype: |
10232 int value; | 10113 int value; |
10233 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 10114 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
10234 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>
( | 10115 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>
( |
10235 input, &value))); | 10116 input, &value))); |
10236 if (::google::protobuf::FieldOptions_JSType_IsValid(value)) { | 10117 if (::google::protobuf::FieldOptions_JSType_IsValid(value)) { |
10237 set_jstype(static_cast< ::google::protobuf::FieldOptions_JSType >(va
lue)); | 10118 set_jstype(static_cast< ::google::protobuf::FieldOptions_JSType >(va
lue)); |
10238 } else { | 10119 } else { |
10239 mutable_unknown_fields()->AddVarint(6, value); | 10120 mutable_unknown_fields()->AddVarint(6, value); |
10240 } | 10121 } |
10241 } else { | 10122 } else { |
10242 goto handle_unusual; | 10123 goto handle_unusual; |
10243 } | 10124 } |
| 10125 if (input->ExpectTag(80)) goto parse_weak; |
10244 break; | 10126 break; |
10245 } | 10127 } |
10246 | 10128 |
10247 // optional bool weak = 10 [default = false]; | 10129 // optional bool weak = 10 [default = false]; |
10248 case 10: { | 10130 case 10: { |
10249 if (tag == 80u) { | 10131 if (tag == 80) { |
10250 set_has_weak(); | 10132 parse_weak: |
10251 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 10133 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
10252 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 10134 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
10253 input, &weak_))); | 10135 input, &weak_))); |
| 10136 set_has_weak(); |
10254 } else { | 10137 } else { |
10255 goto handle_unusual; | 10138 goto handle_unusual; |
10256 } | 10139 } |
| 10140 if (input->ExpectTag(7994)) goto parse_uninterpreted_option; |
10257 break; | 10141 break; |
10258 } | 10142 } |
10259 | 10143 |
10260 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99
9; | 10144 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99
9; |
10261 case 999: { | 10145 case 999: { |
10262 if (tag == 7994u) { | 10146 if (tag == 7994) { |
| 10147 parse_uninterpreted_option: |
10263 DO_(input->IncrementRecursionDepth()); | 10148 DO_(input->IncrementRecursionDepth()); |
| 10149 parse_loop_uninterpreted_option: |
10264 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 10150 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
10265 input, add_uninterpreted_option())); | 10151 input, add_uninterpreted_option())); |
10266 } else { | 10152 } else { |
10267 goto handle_unusual; | 10153 goto handle_unusual; |
10268 } | 10154 } |
| 10155 if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option; |
10269 input->UnsafeDecrementRecursionDepth(); | 10156 input->UnsafeDecrementRecursionDepth(); |
| 10157 if (input->ExpectAtEnd()) goto success; |
10270 break; | 10158 break; |
10271 } | 10159 } |
10272 | 10160 |
10273 default: { | 10161 default: { |
10274 handle_unusual: | 10162 handle_unusual: |
10275 if (tag == 0 || | 10163 if (tag == 0 || |
10276 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 10164 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
10277 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 10165 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
10278 goto success; | 10166 goto success; |
10279 } | 10167 } |
10280 if ((8000u <= tag)) { | 10168 if ((8000u <= tag)) { |
10281 DO_(_extensions_.ParseField(tag, input, internal_default_instance(), | 10169 DO_(_extensions_.ParseField(tag, input, default_instance_, |
10282 mutable_unknown_fields())); | 10170 mutable_unknown_fields())); |
10283 continue; | 10171 continue; |
10284 } | 10172 } |
10285 DO_(::google::protobuf::internal::WireFormat::SkipField( | 10173 DO_(::google::protobuf::internal::WireFormat::SkipField( |
10286 input, tag, mutable_unknown_fields())); | 10174 input, tag, mutable_unknown_fields())); |
10287 break; | 10175 break; |
10288 } | 10176 } |
10289 } | 10177 } |
10290 } | 10178 } |
10291 success: | 10179 success: |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10342 _extensions_.SerializeWithCachedSizes( | 10230 _extensions_.SerializeWithCachedSizes( |
10343 1000, 536870912, output); | 10231 1000, 536870912, output); |
10344 | 10232 |
10345 if (_internal_metadata_.have_unknown_fields()) { | 10233 if (_internal_metadata_.have_unknown_fields()) { |
10346 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 10234 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
10347 unknown_fields(), output); | 10235 unknown_fields(), output); |
10348 } | 10236 } |
10349 // @@protoc_insertion_point(serialize_end:google.protobuf.FieldOptions) | 10237 // @@protoc_insertion_point(serialize_end:google.protobuf.FieldOptions) |
10350 } | 10238 } |
10351 | 10239 |
10352 ::google::protobuf::uint8* FieldOptions::InternalSerializeWithCachedSizesToArray
( | 10240 ::google::protobuf::uint8* FieldOptions::SerializeWithCachedSizesToArray( |
10353 bool deterministic, ::google::protobuf::uint8* target) const { | 10241 ::google::protobuf::uint8* target) const { |
10354 (void)deterministic; // Unused | |
10355 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldOpti
ons) | 10242 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldOpti
ons) |
10356 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; | 10243 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; |
10357 if (has_ctype()) { | 10244 if (has_ctype()) { |
10358 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( | 10245 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
10359 1, this->ctype(), target); | 10246 1, this->ctype(), target); |
10360 } | 10247 } |
10361 | 10248 |
10362 // optional bool packed = 2; | 10249 // optional bool packed = 2; |
10363 if (has_packed()) { | 10250 if (has_packed()) { |
10364 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... |
10381 } | 10268 } |
10382 | 10269 |
10383 // optional bool weak = 10 [default = false]; | 10270 // optional bool weak = 10 [default = false]; |
10384 if (has_weak()) { | 10271 if (has_weak()) { |
10385 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10,
this->weak(), target); | 10272 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10,
this->weak(), target); |
10386 } | 10273 } |
10387 | 10274 |
10388 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 10275 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
10389 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++) { |
10390 target = ::google::protobuf::internal::WireFormatLite:: | 10277 target = ::google::protobuf::internal::WireFormatLite:: |
10391 InternalWriteMessageNoVirtualToArray( | 10278 WriteMessageNoVirtualToArray( |
10392 999, this->uninterpreted_option(i), false, target); | 10279 999, this->uninterpreted_option(i), target); |
10393 } | 10280 } |
10394 | 10281 |
10395 // Extension range [1000, 536870912) | 10282 // Extension range [1000, 536870912) |
10396 target = _extensions_.InternalSerializeWithCachedSizesToArray( | 10283 target = _extensions_.SerializeWithCachedSizesToArray( |
10397 1000, 536870912, false, target); | 10284 1000, 536870912, target); |
10398 | 10285 |
10399 if (_internal_metadata_.have_unknown_fields()) { | 10286 if (_internal_metadata_.have_unknown_fields()) { |
10400 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 10287 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
10401 unknown_fields(), target); | 10288 unknown_fields(), target); |
10402 } | 10289 } |
10403 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FieldOption
s) | 10290 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FieldOption
s) |
10404 return target; | 10291 return target; |
10405 } | 10292 } |
10406 | 10293 |
10407 size_t FieldOptions::ByteSizeLong() const { | 10294 int FieldOptions::ByteSize() const { |
10408 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FieldOptions
) | 10295 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FieldOptions
) |
10409 size_t total_size = 0; | 10296 int total_size = 0; |
10410 | |
10411 total_size += _extensions_.ByteSize(); | |
10412 | |
10413 if (_internal_metadata_.have_unknown_fields()) { | |
10414 total_size += | |
10415 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | |
10416 unknown_fields()); | |
10417 } | |
10418 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | |
10419 { | |
10420 unsigned int count = this->uninterpreted_option_size(); | |
10421 total_size += 2UL * count; | |
10422 for (unsigned int i = 0; i < count; i++) { | |
10423 total_size += | |
10424 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
10425 this->uninterpreted_option(i)); | |
10426 } | |
10427 } | |
10428 | 10297 |
10429 if (_has_bits_[0 / 32] & 63u) { | 10298 if (_has_bits_[0 / 32] & 63u) { |
10430 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]
; | 10299 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]
; |
10431 if (has_ctype()) { | 10300 if (has_ctype()) { |
10432 total_size += 1 + | 10301 total_size += 1 + |
10433 ::google::protobuf::internal::WireFormatLite::EnumSize(this->ctype()); | 10302 ::google::protobuf::internal::WireFormatLite::EnumSize(this->ctype()); |
10434 } | 10303 } |
10435 | 10304 |
| 10305 // optional bool packed = 2; |
| 10306 if (has_packed()) { |
| 10307 total_size += 1 + 1; |
| 10308 } |
| 10309 |
10436 // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NO
RMAL]; | 10310 // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NO
RMAL]; |
10437 if (has_jstype()) { | 10311 if (has_jstype()) { |
10438 total_size += 1 + | 10312 total_size += 1 + |
10439 ::google::protobuf::internal::WireFormatLite::EnumSize(this->jstype()); | 10313 ::google::protobuf::internal::WireFormatLite::EnumSize(this->jstype()); |
10440 } | 10314 } |
10441 | 10315 |
10442 // optional bool packed = 2; | |
10443 if (has_packed()) { | |
10444 total_size += 1 + 1; | |
10445 } | |
10446 | |
10447 // optional bool lazy = 5 [default = false]; | 10316 // optional bool lazy = 5 [default = false]; |
10448 if (has_lazy()) { | 10317 if (has_lazy()) { |
10449 total_size += 1 + 1; | 10318 total_size += 1 + 1; |
10450 } | 10319 } |
10451 | 10320 |
10452 // optional bool deprecated = 3 [default = false]; | 10321 // optional bool deprecated = 3 [default = false]; |
10453 if (has_deprecated()) { | 10322 if (has_deprecated()) { |
10454 total_size += 1 + 1; | 10323 total_size += 1 + 1; |
10455 } | 10324 } |
10456 | 10325 |
10457 // optional bool weak = 10 [default = false]; | 10326 // optional bool weak = 10 [default = false]; |
10458 if (has_weak()) { | 10327 if (has_weak()) { |
10459 total_size += 1 + 1; | 10328 total_size += 1 + 1; |
10460 } | 10329 } |
10461 | 10330 |
10462 } | 10331 } |
10463 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 } |
10464 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 10347 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
10465 _cached_size_ = cached_size; | 10348 _cached_size_ = total_size; |
10466 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 10349 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
10467 return total_size; | 10350 return total_size; |
10468 } | 10351 } |
10469 | 10352 |
10470 void FieldOptions::MergeFrom(const ::google::protobuf::Message& from) { | 10353 void FieldOptions::MergeFrom(const ::google::protobuf::Message& from) { |
10471 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FieldOp
tions) | 10354 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FieldOp
tions) |
10472 GOOGLE_DCHECK_NE(&from, this); | 10355 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
10473 const FieldOptions* source = | 10356 const FieldOptions* source = |
10474 ::google::protobuf::internal::DynamicCastToGenerated<const FieldOptions>( | 10357 ::google::protobuf::internal::DynamicCastToGenerated<const FieldOptions>( |
10475 &from); | 10358 &from); |
10476 if (source == NULL) { | 10359 if (source == NULL) { |
10477 // @@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) |
10478 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 10361 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
10479 } else { | 10362 } else { |
10480 // @@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) |
10481 MergeFrom(*source); | 10364 MergeFrom(*source); |
10482 } | 10365 } |
10483 } | 10366 } |
10484 | 10367 |
10485 void FieldOptions::MergeFrom(const FieldOptions& from) { | 10368 void FieldOptions::MergeFrom(const FieldOptions& from) { |
10486 // @@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) |
10487 GOOGLE_DCHECK_NE(&from, this); | 10370 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
10488 _extensions_.MergeFrom(from._extensions_); | |
10489 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
10490 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); | 10371 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); |
10491 if (from._has_bits_[0 / 32] & 63u) { | 10372 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
10492 if (from.has_ctype()) { | 10373 if (from.has_ctype()) { |
10493 set_ctype(from.ctype()); | 10374 set_ctype(from.ctype()); |
10494 } | 10375 } |
| 10376 if (from.has_packed()) { |
| 10377 set_packed(from.packed()); |
| 10378 } |
10495 if (from.has_jstype()) { | 10379 if (from.has_jstype()) { |
10496 set_jstype(from.jstype()); | 10380 set_jstype(from.jstype()); |
10497 } | 10381 } |
10498 if (from.has_packed()) { | |
10499 set_packed(from.packed()); | |
10500 } | |
10501 if (from.has_lazy()) { | 10382 if (from.has_lazy()) { |
10502 set_lazy(from.lazy()); | 10383 set_lazy(from.lazy()); |
10503 } | 10384 } |
10504 if (from.has_deprecated()) { | 10385 if (from.has_deprecated()) { |
10505 set_deprecated(from.deprecated()); | 10386 set_deprecated(from.deprecated()); |
10506 } | 10387 } |
10507 if (from.has_weak()) { | 10388 if (from.has_weak()) { |
10508 set_weak(from.weak()); | 10389 set_weak(from.weak()); |
10509 } | 10390 } |
10510 } | 10391 } |
| 10392 _extensions_.MergeFrom(from._extensions_); |
| 10393 if (from._internal_metadata_.have_unknown_fields()) { |
| 10394 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 10395 } |
10511 } | 10396 } |
10512 | 10397 |
10513 void FieldOptions::CopyFrom(const ::google::protobuf::Message& from) { | 10398 void FieldOptions::CopyFrom(const ::google::protobuf::Message& from) { |
10514 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FieldOpt
ions) | 10399 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FieldOpt
ions) |
10515 if (&from == this) return; | 10400 if (&from == this) return; |
10516 Clear(); | 10401 Clear(); |
10517 MergeFrom(from); | 10402 MergeFrom(from); |
10518 } | 10403 } |
10519 | 10404 |
10520 void FieldOptions::CopyFrom(const FieldOptions& from) { | 10405 void FieldOptions::CopyFrom(const FieldOptions& from) { |
10521 // @@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) |
10522 if (&from == this) return; | 10407 if (&from == this) return; |
10523 Clear(); | 10408 Clear(); |
10524 MergeFrom(from); | 10409 MergeFrom(from); |
10525 } | 10410 } |
10526 | 10411 |
10527 bool FieldOptions::IsInitialized() const { | 10412 bool FieldOptions::IsInitialized() const { |
10528 if (!_extensions_.IsInitialized()) { | |
10529 return false; | |
10530 } | |
10531 | 10413 |
10532 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio
n())) return false; | 10414 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio
n())) return false; |
10533 return true; | 10415 |
| 10416 if (!_extensions_.IsInitialized()) return false; return true; |
10534 } | 10417 } |
10535 | 10418 |
10536 void FieldOptions::Swap(FieldOptions* other) { | 10419 void FieldOptions::Swap(FieldOptions* other) { |
10537 if (other == this) return; | 10420 if (other == this) return; |
10538 InternalSwap(other); | 10421 InternalSwap(other); |
10539 } | 10422 } |
10540 void FieldOptions::InternalSwap(FieldOptions* other) { | 10423 void FieldOptions::InternalSwap(FieldOptions* other) { |
10541 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); | |
10542 std::swap(ctype_, other->ctype_); | 10424 std::swap(ctype_, other->ctype_); |
| 10425 std::swap(packed_, other->packed_); |
10543 std::swap(jstype_, other->jstype_); | 10426 std::swap(jstype_, other->jstype_); |
10544 std::swap(packed_, other->packed_); | |
10545 std::swap(lazy_, other->lazy_); | 10427 std::swap(lazy_, other->lazy_); |
10546 std::swap(deprecated_, other->deprecated_); | 10428 std::swap(deprecated_, other->deprecated_); |
10547 std::swap(weak_, other->weak_); | 10429 std::swap(weak_, other->weak_); |
| 10430 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); |
10548 std::swap(_has_bits_[0], other->_has_bits_[0]); | 10431 std::swap(_has_bits_[0], other->_has_bits_[0]); |
10549 _internal_metadata_.Swap(&other->_internal_metadata_); | 10432 _internal_metadata_.Swap(&other->_internal_metadata_); |
10550 std::swap(_cached_size_, other->_cached_size_); | 10433 std::swap(_cached_size_, other->_cached_size_); |
10551 _extensions_.Swap(&other->_extensions_); | 10434 _extensions_.Swap(&other->_extensions_); |
10552 } | 10435 } |
10553 | 10436 |
10554 ::google::protobuf::Metadata FieldOptions::GetMetadata() const { | 10437 ::google::protobuf::Metadata FieldOptions::GetMetadata() const { |
10555 protobuf_AssignDescriptorsOnce(); | 10438 protobuf_AssignDescriptorsOnce(); |
10556 return file_level_metadata[13]; | 10439 ::google::protobuf::Metadata metadata; |
| 10440 metadata.descriptor = FieldOptions_descriptor_; |
| 10441 metadata.reflection = FieldOptions_reflection_; |
| 10442 return metadata; |
10557 } | 10443 } |
10558 | 10444 |
10559 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 10445 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
10560 // FieldOptions | 10446 // FieldOptions |
10561 | 10447 |
10562 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; | 10448 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; |
10563 bool FieldOptions::has_ctype() const { | 10449 bool FieldOptions::has_ctype() const { |
10564 return (_has_bits_[0] & 0x00000001u) != 0; | 10450 return (_has_bits_[0] & 0x00000001u) != 0; |
10565 } | 10451 } |
10566 void FieldOptions::set_has_ctype() { | 10452 void FieldOptions::set_has_ctype() { |
10567 _has_bits_[0] |= 0x00000001u; | 10453 _has_bits_[0] |= 0x00000001u; |
10568 } | 10454 } |
10569 void FieldOptions::clear_has_ctype() { | 10455 void FieldOptions::clear_has_ctype() { |
10570 _has_bits_[0] &= ~0x00000001u; | 10456 _has_bits_[0] &= ~0x00000001u; |
10571 } | 10457 } |
10572 void FieldOptions::clear_ctype() { | 10458 void FieldOptions::clear_ctype() { |
10573 ctype_ = 0; | 10459 ctype_ = 0; |
10574 clear_has_ctype(); | 10460 clear_has_ctype(); |
10575 } | 10461 } |
10576 ::google::protobuf::FieldOptions_CType FieldOptions::ctype() const { | 10462 ::google::protobuf::FieldOptions_CType FieldOptions::ctype() const { |
10577 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.ctype) | 10463 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.ctype) |
10578 return static_cast< ::google::protobuf::FieldOptions_CType >(ctype_); | 10464 return static_cast< ::google::protobuf::FieldOptions_CType >(ctype_); |
10579 } | 10465 } |
10580 void FieldOptions::set_ctype(::google::protobuf::FieldOptions_CType value) { | 10466 void FieldOptions::set_ctype(::google::protobuf::FieldOptions_CType value) { |
10581 assert(::google::protobuf::FieldOptions_CType_IsValid(value)); | 10467 assert(::google::protobuf::FieldOptions_CType_IsValid(value)); |
10582 set_has_ctype(); | 10468 set_has_ctype(); |
10583 ctype_ = value; | 10469 ctype_ = value; |
10584 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.ctype) | 10470 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.ctype) |
10585 } | 10471 } |
10586 | 10472 |
10587 // optional bool packed = 2; | 10473 // optional bool packed = 2; |
10588 bool FieldOptions::has_packed() const { | 10474 bool FieldOptions::has_packed() const { |
10589 return (_has_bits_[0] & 0x00000004u) != 0; | 10475 return (_has_bits_[0] & 0x00000002u) != 0; |
10590 } | 10476 } |
10591 void FieldOptions::set_has_packed() { | 10477 void FieldOptions::set_has_packed() { |
10592 _has_bits_[0] |= 0x00000004u; | 10478 _has_bits_[0] |= 0x00000002u; |
10593 } | 10479 } |
10594 void FieldOptions::clear_has_packed() { | 10480 void FieldOptions::clear_has_packed() { |
10595 _has_bits_[0] &= ~0x00000004u; | 10481 _has_bits_[0] &= ~0x00000002u; |
10596 } | 10482 } |
10597 void FieldOptions::clear_packed() { | 10483 void FieldOptions::clear_packed() { |
10598 packed_ = false; | 10484 packed_ = false; |
10599 clear_has_packed(); | 10485 clear_has_packed(); |
10600 } | 10486 } |
10601 bool FieldOptions::packed() const { | 10487 bool FieldOptions::packed() const { |
10602 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.packed) | 10488 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.packed) |
10603 return packed_; | 10489 return packed_; |
10604 } | 10490 } |
10605 void FieldOptions::set_packed(bool value) { | 10491 void FieldOptions::set_packed(bool value) { |
10606 set_has_packed(); | 10492 set_has_packed(); |
10607 packed_ = value; | 10493 packed_ = value; |
10608 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.packed) | 10494 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.packed) |
10609 } | 10495 } |
10610 | 10496 |
10611 // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL
]; | 10497 // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL
]; |
10612 bool FieldOptions::has_jstype() const { | 10498 bool FieldOptions::has_jstype() const { |
10613 return (_has_bits_[0] & 0x00000002u) != 0; | 10499 return (_has_bits_[0] & 0x00000004u) != 0; |
10614 } | 10500 } |
10615 void FieldOptions::set_has_jstype() { | 10501 void FieldOptions::set_has_jstype() { |
10616 _has_bits_[0] |= 0x00000002u; | 10502 _has_bits_[0] |= 0x00000004u; |
10617 } | 10503 } |
10618 void FieldOptions::clear_has_jstype() { | 10504 void FieldOptions::clear_has_jstype() { |
10619 _has_bits_[0] &= ~0x00000002u; | 10505 _has_bits_[0] &= ~0x00000004u; |
10620 } | 10506 } |
10621 void FieldOptions::clear_jstype() { | 10507 void FieldOptions::clear_jstype() { |
10622 jstype_ = 0; | 10508 jstype_ = 0; |
10623 clear_has_jstype(); | 10509 clear_has_jstype(); |
10624 } | 10510 } |
10625 ::google::protobuf::FieldOptions_JSType FieldOptions::jstype() const { | 10511 ::google::protobuf::FieldOptions_JSType FieldOptions::jstype() const { |
10626 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.jstype) | 10512 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.jstype) |
10627 return static_cast< ::google::protobuf::FieldOptions_JSType >(jstype_); | 10513 return static_cast< ::google::protobuf::FieldOptions_JSType >(jstype_); |
10628 } | 10514 } |
10629 void FieldOptions::set_jstype(::google::protobuf::FieldOptions_JSType value) { | 10515 void FieldOptions::set_jstype(::google::protobuf::FieldOptions_JSType value) { |
10630 assert(::google::protobuf::FieldOptions_JSType_IsValid(value)); | 10516 assert(::google::protobuf::FieldOptions_JSType_IsValid(value)); |
10631 set_has_jstype(); | 10517 set_has_jstype(); |
10632 jstype_ = value; | 10518 jstype_ = value; |
10633 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.jstype) | 10519 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.jstype) |
10634 } | 10520 } |
10635 | 10521 |
10636 // optional bool lazy = 5 [default = false]; | 10522 // optional bool lazy = 5 [default = false]; |
10637 bool FieldOptions::has_lazy() const { | 10523 bool FieldOptions::has_lazy() const { |
10638 return (_has_bits_[0] & 0x00000008u) != 0; | 10524 return (_has_bits_[0] & 0x00000008u) != 0; |
10639 } | 10525 } |
10640 void FieldOptions::set_has_lazy() { | 10526 void FieldOptions::set_has_lazy() { |
10641 _has_bits_[0] |= 0x00000008u; | 10527 _has_bits_[0] |= 0x00000008u; |
10642 } | 10528 } |
10643 void FieldOptions::clear_has_lazy() { | 10529 void FieldOptions::clear_has_lazy() { |
10644 _has_bits_[0] &= ~0x00000008u; | 10530 _has_bits_[0] &= ~0x00000008u; |
10645 } | 10531 } |
10646 void FieldOptions::clear_lazy() { | 10532 void FieldOptions::clear_lazy() { |
10647 lazy_ = false; | 10533 lazy_ = false; |
10648 clear_has_lazy(); | 10534 clear_has_lazy(); |
10649 } | 10535 } |
10650 bool FieldOptions::lazy() const { | 10536 bool FieldOptions::lazy() const { |
10651 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.lazy) | 10537 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.lazy) |
10652 return lazy_; | 10538 return lazy_; |
10653 } | 10539 } |
10654 void FieldOptions::set_lazy(bool value) { | 10540 void FieldOptions::set_lazy(bool value) { |
10655 set_has_lazy(); | 10541 set_has_lazy(); |
10656 lazy_ = value; | 10542 lazy_ = value; |
10657 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.lazy) | 10543 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.lazy) |
10658 } | 10544 } |
10659 | 10545 |
10660 // optional bool deprecated = 3 [default = false]; | 10546 // optional bool deprecated = 3 [default = false]; |
10661 bool FieldOptions::has_deprecated() const { | 10547 bool FieldOptions::has_deprecated() const { |
10662 return (_has_bits_[0] & 0x00000010u) != 0; | 10548 return (_has_bits_[0] & 0x00000010u) != 0; |
10663 } | 10549 } |
10664 void FieldOptions::set_has_deprecated() { | 10550 void FieldOptions::set_has_deprecated() { |
10665 _has_bits_[0] |= 0x00000010u; | 10551 _has_bits_[0] |= 0x00000010u; |
10666 } | 10552 } |
10667 void FieldOptions::clear_has_deprecated() { | 10553 void FieldOptions::clear_has_deprecated() { |
10668 _has_bits_[0] &= ~0x00000010u; | 10554 _has_bits_[0] &= ~0x00000010u; |
10669 } | 10555 } |
10670 void FieldOptions::clear_deprecated() { | 10556 void FieldOptions::clear_deprecated() { |
10671 deprecated_ = false; | 10557 deprecated_ = false; |
10672 clear_has_deprecated(); | 10558 clear_has_deprecated(); |
10673 } | 10559 } |
10674 bool FieldOptions::deprecated() const { | 10560 bool FieldOptions::deprecated() const { |
10675 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.deprecated) | 10561 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.deprecated) |
10676 return deprecated_; | 10562 return deprecated_; |
10677 } | 10563 } |
10678 void FieldOptions::set_deprecated(bool value) { | 10564 void FieldOptions::set_deprecated(bool value) { |
10679 set_has_deprecated(); | 10565 set_has_deprecated(); |
10680 deprecated_ = value; | 10566 deprecated_ = value; |
10681 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.deprecated) | 10567 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.deprecated) |
10682 } | 10568 } |
10683 | 10569 |
10684 // optional bool weak = 10 [default = false]; | 10570 // optional bool weak = 10 [default = false]; |
10685 bool FieldOptions::has_weak() const { | 10571 bool FieldOptions::has_weak() const { |
10686 return (_has_bits_[0] & 0x00000020u) != 0; | 10572 return (_has_bits_[0] & 0x00000020u) != 0; |
10687 } | 10573 } |
10688 void FieldOptions::set_has_weak() { | 10574 void FieldOptions::set_has_weak() { |
10689 _has_bits_[0] |= 0x00000020u; | 10575 _has_bits_[0] |= 0x00000020u; |
10690 } | 10576 } |
10691 void FieldOptions::clear_has_weak() { | 10577 void FieldOptions::clear_has_weak() { |
10692 _has_bits_[0] &= ~0x00000020u; | 10578 _has_bits_[0] &= ~0x00000020u; |
10693 } | 10579 } |
10694 void FieldOptions::clear_weak() { | 10580 void FieldOptions::clear_weak() { |
10695 weak_ = false; | 10581 weak_ = false; |
10696 clear_has_weak(); | 10582 clear_has_weak(); |
10697 } | 10583 } |
10698 bool FieldOptions::weak() const { | 10584 bool FieldOptions::weak() const { |
10699 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.weak) | 10585 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.weak) |
10700 return weak_; | 10586 return weak_; |
10701 } | 10587 } |
10702 void FieldOptions::set_weak(bool value) { | 10588 void FieldOptions::set_weak(bool value) { |
10703 set_has_weak(); | 10589 set_has_weak(); |
10704 weak_ = value; | 10590 weak_ = value; |
10705 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.weak) | 10591 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.weak) |
10706 } | 10592 } |
10707 | 10593 |
10708 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 10594 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
10709 int FieldOptions::uninterpreted_option_size() const { | 10595 int FieldOptions::uninterpreted_option_size() const { |
10710 return uninterpreted_option_.size(); | 10596 return uninterpreted_option_.size(); |
10711 } | 10597 } |
10712 void FieldOptions::clear_uninterpreted_option() { | 10598 void FieldOptions::clear_uninterpreted_option() { |
(...skipping 20 matching lines...) Expand all Loading... |
10733 FieldOptions::uninterpreted_option() const { | 10619 FieldOptions::uninterpreted_option() const { |
10734 // @@protoc_insertion_point(field_list:google.protobuf.FieldOptions.uninterpre
ted_option) | 10620 // @@protoc_insertion_point(field_list:google.protobuf.FieldOptions.uninterpre
ted_option) |
10735 return uninterpreted_option_; | 10621 return uninterpreted_option_; |
10736 } | 10622 } |
10737 | 10623 |
10738 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 10624 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
10739 | 10625 |
10740 // =================================================================== | 10626 // =================================================================== |
10741 | 10627 |
10742 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 10628 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
10743 const int OneofOptions::kUninterpretedOptionFieldNumber; | 10629 const int EnumOptions::kAllowAliasFieldNumber; |
| 10630 const int EnumOptions::kDeprecatedFieldNumber; |
| 10631 const int EnumOptions::kUninterpretedOptionFieldNumber; |
10744 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 10632 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
10745 | 10633 |
10746 OneofOptions::OneofOptions() | 10634 EnumOptions::EnumOptions() |
10747 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 10635 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
10748 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
10749 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
10750 } | |
10751 SharedCtor(); | 10636 SharedCtor(); |
10752 // @@protoc_insertion_point(constructor:google.protobuf.OneofOptions) | 10637 // @@protoc_insertion_point(constructor:google.protobuf.EnumOptions) |
10753 } | |
10754 OneofOptions::OneofOptions(const OneofOptions& from) | |
10755 : ::google::protobuf::Message(), | |
10756 _internal_metadata_(NULL), | |
10757 _has_bits_(from._has_bits_), | |
10758 _cached_size_(0), | |
10759 uninterpreted_option_(from.uninterpreted_option_) { | |
10760 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
10761 _extensions_.MergeFrom(from._extensions_); | |
10762 // @@protoc_insertion_point(copy_constructor:google.protobuf.OneofOptions) | |
10763 } | 10638 } |
10764 | 10639 |
10765 void OneofOptions::SharedCtor() { | 10640 void EnumOptions::InitAsDefaultInstance() { |
10766 _cached_size_ = 0; | |
10767 } | 10641 } |
10768 | 10642 |
10769 OneofOptions::~OneofOptions() { | 10643 EnumOptions::EnumOptions(const EnumOptions& from) |
10770 // @@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) |
10771 SharedDtor(); | 10660 SharedDtor(); |
10772 } | 10661 } |
10773 | 10662 |
10774 void OneofOptions::SharedDtor() { | 10663 void EnumOptions::SharedDtor() { |
| 10664 if (this != default_instance_) { |
| 10665 } |
10775 } | 10666 } |
10776 | 10667 |
10777 void OneofOptions::SetCachedSize(int size) const { | 10668 void EnumOptions::SetCachedSize(int size) const { |
10778 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 10669 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
10779 _cached_size_ = size; | 10670 _cached_size_ = size; |
10780 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 10671 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
10781 } | 10672 } |
10782 const ::google::protobuf::Descriptor* OneofOptions::descriptor() { | 10673 const ::google::protobuf::Descriptor* EnumOptions::descriptor() { |
10783 protobuf_AssignDescriptorsOnce(); | 10674 protobuf_AssignDescriptorsOnce(); |
10784 return file_level_metadata[14].descriptor; | 10675 return EnumOptions_descriptor_; |
10785 } | 10676 } |
10786 | 10677 |
10787 const OneofOptions& OneofOptions::default_instance() { | 10678 const EnumOptions& EnumOptions::default_instance() { |
10788 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 10679 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
10789 return *internal_default_instance(); | 10680 return *default_instance_; |
10790 } | 10681 } |
10791 | 10682 |
10792 OneofOptions* OneofOptions::New(::google::protobuf::Arena* arena) const { | 10683 EnumOptions* EnumOptions::default_instance_ = NULL; |
10793 OneofOptions* n = new OneofOptions; | 10684 |
| 10685 EnumOptions* EnumOptions::New(::google::protobuf::Arena* arena) const { |
| 10686 EnumOptions* n = new EnumOptions; |
10794 if (arena != NULL) { | 10687 if (arena != NULL) { |
10795 arena->Own(n); | 10688 arena->Own(n); |
10796 } | 10689 } |
10797 return n; | 10690 return n; |
10798 } | 10691 } |
10799 | 10692 |
10800 void OneofOptions::Clear() { | 10693 void EnumOptions::Clear() { |
10801 // @@protoc_insertion_point(message_clear_start:google.protobuf.OneofOptions) | 10694 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumOptions) |
10802 _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 |
10803 uninterpreted_option_.Clear(); | 10717 uninterpreted_option_.Clear(); |
10804 _has_bits_.Clear(); | 10718 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
10805 _internal_metadata_.Clear(); | 10719 if (_internal_metadata_.have_unknown_fields()) { |
| 10720 mutable_unknown_fields()->Clear(); |
| 10721 } |
10806 } | 10722 } |
10807 | 10723 |
10808 bool OneofOptions::MergePartialFromCodedStream( | 10724 bool EnumOptions::MergePartialFromCodedStream( |
10809 ::google::protobuf::io::CodedInputStream* input) { | 10725 ::google::protobuf::io::CodedInputStream* input) { |
10810 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 10726 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
10811 ::google::protobuf::uint32 tag; | 10727 ::google::protobuf::uint32 tag; |
10812 // @@protoc_insertion_point(parse_start:google.protobuf.OneofOptions) | 10728 // @@protoc_insertion_point(parse_start:google.protobuf.EnumOptions) |
10813 for (;;) { | 10729 for (;;) { |
10814 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(16383u); | 10730 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
16383); |
10815 tag = p.first; | 10731 tag = p.first; |
10816 if (!p.second) goto handle_unusual; | 10732 if (!p.second) goto handle_unusual; |
10817 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 |
10818 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99
9; | 10763 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99
9; |
10819 case 999: { | 10764 case 999: { |
10820 if (tag == 7994u) { | 10765 if (tag == 7994) { |
| 10766 parse_uninterpreted_option: |
10821 DO_(input->IncrementRecursionDepth()); | 10767 DO_(input->IncrementRecursionDepth()); |
| 10768 parse_loop_uninterpreted_option: |
10822 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 10769 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
10823 input, add_uninterpreted_option())); | 10770 input, add_uninterpreted_option())); |
10824 } else { | 10771 } else { |
10825 goto handle_unusual; | 10772 goto handle_unusual; |
10826 } | 10773 } |
| 10774 if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option; |
10827 input->UnsafeDecrementRecursionDepth(); | 10775 input->UnsafeDecrementRecursionDepth(); |
| 10776 if (input->ExpectAtEnd()) goto success; |
10828 break; | 10777 break; |
10829 } | 10778 } |
10830 | 10779 |
10831 default: { | 10780 default: { |
10832 handle_unusual: | 10781 handle_unusual: |
10833 if (tag == 0 || | 10782 if (tag == 0 || |
10834 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 10783 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
10835 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 10784 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
10836 goto success; | 10785 goto success; |
10837 } | 10786 } |
10838 if ((8000u <= tag)) { | 10787 if ((8000u <= tag)) { |
10839 DO_(_extensions_.ParseField(tag, input, internal_default_instance(), | 10788 DO_(_extensions_.ParseField(tag, input, default_instance_, |
10840 mutable_unknown_fields())); | 10789 mutable_unknown_fields())); |
10841 continue; | 10790 continue; |
10842 } | 10791 } |
10843 DO_(::google::protobuf::internal::WireFormat::SkipField( | 10792 DO_(::google::protobuf::internal::WireFormat::SkipField( |
10844 input, tag, mutable_unknown_fields())); | 10793 input, tag, mutable_unknown_fields())); |
10845 break; | 10794 break; |
10846 } | 10795 } |
10847 } | 10796 } |
10848 } | 10797 } |
10849 success: | 10798 success: |
10850 // @@protoc_insertion_point(parse_success:google.protobuf.OneofOptions) | 10799 // @@protoc_insertion_point(parse_success:google.protobuf.EnumOptions) |
10851 return true; | 10800 return true; |
10852 failure: | 10801 failure: |
10853 // @@protoc_insertion_point(parse_failure:google.protobuf.OneofOptions) | 10802 // @@protoc_insertion_point(parse_failure:google.protobuf.EnumOptions) |
10854 return false; | 10803 return false; |
10855 #undef DO_ | 10804 #undef DO_ |
10856 } | 10805 } |
10857 | 10806 |
10858 void OneofOptions::SerializeWithCachedSizes( | 10807 void EnumOptions::SerializeWithCachedSizes( |
10859 ::google::protobuf::io::CodedOutputStream* output) const { | 10808 ::google::protobuf::io::CodedOutputStream* output) const { |
10860 // @@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 |
10861 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 10820 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
10862 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++) { |
10863 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 10822 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
10864 999, this->uninterpreted_option(i), output); | 10823 999, this->uninterpreted_option(i), output); |
10865 } | 10824 } |
10866 | 10825 |
10867 // Extension range [1000, 536870912) | 10826 // Extension range [1000, 536870912) |
10868 _extensions_.SerializeWithCachedSizes( | 10827 _extensions_.SerializeWithCachedSizes( |
10869 1000, 536870912, output); | 10828 1000, 536870912, output); |
10870 | 10829 |
10871 if (_internal_metadata_.have_unknown_fields()) { | 10830 if (_internal_metadata_.have_unknown_fields()) { |
10872 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 10831 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
10873 unknown_fields(), output); | 10832 unknown_fields(), output); |
10874 } | 10833 } |
10875 // @@protoc_insertion_point(serialize_end:google.protobuf.OneofOptions) | 10834 // @@protoc_insertion_point(serialize_end:google.protobuf.EnumOptions) |
10876 } | 10835 } |
10877 | 10836 |
10878 ::google::protobuf::uint8* OneofOptions::InternalSerializeWithCachedSizesToArray
( | 10837 ::google::protobuf::uint8* EnumOptions::SerializeWithCachedSizesToArray( |
10879 bool deterministic, ::google::protobuf::uint8* target) const { | 10838 ::google::protobuf::uint8* target) const { |
10880 (void)deterministic; // Unused | 10839 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumOptio
ns) |
10881 // @@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 |
10882 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 10850 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
10883 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++) { |
10884 target = ::google::protobuf::internal::WireFormatLite:: | 10852 target = ::google::protobuf::internal::WireFormatLite:: |
10885 InternalWriteMessageNoVirtualToArray( | 10853 WriteMessageNoVirtualToArray( |
10886 999, this->uninterpreted_option(i), false, target); | 10854 999, this->uninterpreted_option(i), target); |
10887 } | 10855 } |
10888 | 10856 |
10889 // Extension range [1000, 536870912) | 10857 // Extension range [1000, 536870912) |
10890 target = _extensions_.InternalSerializeWithCachedSizesToArray( | 10858 target = _extensions_.SerializeWithCachedSizesToArray( |
10891 1000, 536870912, false, target); | 10859 1000, 536870912, target); |
10892 | 10860 |
10893 if (_internal_metadata_.have_unknown_fields()) { | 10861 if (_internal_metadata_.have_unknown_fields()) { |
10894 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 10862 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
10895 unknown_fields(), target); | 10863 unknown_fields(), target); |
10896 } | 10864 } |
10897 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.OneofOption
s) | 10865 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumOptions
) |
10898 return target; | 10866 return target; |
10899 } | 10867 } |
10900 | 10868 |
10901 size_t OneofOptions::ByteSizeLong() const { | 10869 int EnumOptions::ByteSize() const { |
10902 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.OneofOptions
) | 10870 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumOptions) |
10903 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 } |
10904 | 10892 |
10905 total_size += _extensions_.ByteSize(); | 10893 total_size += _extensions_.ByteSize(); |
10906 | 10894 |
10907 if (_internal_metadata_.have_unknown_fields()) { | 10895 if (_internal_metadata_.have_unknown_fields()) { |
10908 total_size += | 10896 total_size += |
10909 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | 10897 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
10910 unknown_fields()); | 10898 unknown_fields()); |
10911 } | 10899 } |
10912 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | |
10913 { | |
10914 unsigned int count = this->uninterpreted_option_size(); | |
10915 total_size += 2UL * count; | |
10916 for (unsigned int i = 0; i < count; i++) { | |
10917 total_size += | |
10918 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
10919 this->uninterpreted_option(i)); | |
10920 } | |
10921 } | |
10922 | |
10923 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | |
10924 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 10900 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
10925 _cached_size_ = cached_size; | 10901 _cached_size_ = total_size; |
10926 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 10902 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
10927 return total_size; | 10903 return total_size; |
10928 } | 10904 } |
10929 | 10905 |
10930 void OneofOptions::MergeFrom(const ::google::protobuf::Message& from) { | 10906 void EnumOptions::MergeFrom(const ::google::protobuf::Message& from) { |
10931 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.OneofOp
tions) | 10907 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumOpt
ions) |
10932 GOOGLE_DCHECK_NE(&from, this); | 10908 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
10933 const OneofOptions* source = | 10909 const EnumOptions* source = |
10934 ::google::protobuf::internal::DynamicCastToGenerated<const OneofOptions>( | 10910 ::google::protobuf::internal::DynamicCastToGenerated<const EnumOptions>( |
10935 &from); | 10911 &from); |
10936 if (source == NULL) { | 10912 if (source == NULL) { |
10937 // @@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) |
10938 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 10914 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
10939 } else { | 10915 } else { |
10940 // @@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) |
10941 MergeFrom(*source); | 10917 MergeFrom(*source); |
10942 } | 10918 } |
10943 } | 10919 } |
10944 | 10920 |
10945 void OneofOptions::MergeFrom(const OneofOptions& from) { | 10921 void EnumOptions::MergeFrom(const EnumOptions& from) { |
10946 // @@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) |
10947 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 } |
10948 _extensions_.MergeFrom(from._extensions_); | 10933 _extensions_.MergeFrom(from._extensions_); |
10949 _internal_metadata_.MergeFrom(from._internal_metadata_); | 10934 if (from._internal_metadata_.have_unknown_fields()) { |
10950 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); | 10935 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 10936 } |
10951 } | 10937 } |
10952 | 10938 |
10953 void OneofOptions::CopyFrom(const ::google::protobuf::Message& from) { | 10939 void EnumOptions::CopyFrom(const ::google::protobuf::Message& from) { |
10954 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.OneofOpt
ions) | 10940 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumOpti
ons) |
10955 if (&from == this) return; | 10941 if (&from == this) return; |
10956 Clear(); | 10942 Clear(); |
10957 MergeFrom(from); | 10943 MergeFrom(from); |
10958 } | 10944 } |
10959 | 10945 |
10960 void OneofOptions::CopyFrom(const OneofOptions& from) { | 10946 void EnumOptions::CopyFrom(const EnumOptions& from) { |
10961 // @@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) |
10962 if (&from == this) return; | 10948 if (&from == this) return; |
10963 Clear(); | 10949 Clear(); |
10964 MergeFrom(from); | 10950 MergeFrom(from); |
10965 } | 10951 } |
10966 | 10952 |
10967 bool OneofOptions::IsInitialized() const { | 10953 bool EnumOptions::IsInitialized() const { |
10968 if (!_extensions_.IsInitialized()) { | |
10969 return false; | |
10970 } | |
10971 | 10954 |
10972 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio
n())) return false; | 10955 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio
n())) return false; |
10973 return true; | 10956 |
| 10957 if (!_extensions_.IsInitialized()) return false; return true; |
10974 } | 10958 } |
10975 | 10959 |
10976 void OneofOptions::Swap(OneofOptions* other) { | 10960 void EnumOptions::Swap(EnumOptions* other) { |
10977 if (other == this) return; | 10961 if (other == this) return; |
10978 InternalSwap(other); | 10962 InternalSwap(other); |
10979 } | 10963 } |
10980 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_); |
10981 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); | 10967 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); |
10982 std::swap(_has_bits_[0], other->_has_bits_[0]); | 10968 std::swap(_has_bits_[0], other->_has_bits_[0]); |
10983 _internal_metadata_.Swap(&other->_internal_metadata_); | 10969 _internal_metadata_.Swap(&other->_internal_metadata_); |
10984 std::swap(_cached_size_, other->_cached_size_); | 10970 std::swap(_cached_size_, other->_cached_size_); |
10985 _extensions_.Swap(&other->_extensions_); | 10971 _extensions_.Swap(&other->_extensions_); |
10986 } | 10972 } |
10987 | 10973 |
10988 ::google::protobuf::Metadata OneofOptions::GetMetadata() const { | 10974 ::google::protobuf::Metadata EnumOptions::GetMetadata() const { |
10989 protobuf_AssignDescriptorsOnce(); | 10975 protobuf_AssignDescriptorsOnce(); |
10990 return file_level_metadata[14]; | 10976 ::google::protobuf::Metadata metadata; |
| 10977 metadata.descriptor = EnumOptions_descriptor_; |
| 10978 metadata.reflection = EnumOptions_reflection_; |
| 10979 return metadata; |
10991 } | 10980 } |
10992 | 10981 |
10993 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 10982 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
10994 // 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 } |
10995 | 11032 |
10996 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 11033 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
10997 int OneofOptions::uninterpreted_option_size() const { | 11034 int EnumOptions::uninterpreted_option_size() const { |
10998 return uninterpreted_option_.size(); | 11035 return uninterpreted_option_.size(); |
10999 } | 11036 } |
11000 void OneofOptions::clear_uninterpreted_option() { | 11037 void EnumOptions::clear_uninterpreted_option() { |
11001 uninterpreted_option_.Clear(); | 11038 uninterpreted_option_.Clear(); |
11002 } | 11039 } |
11003 const ::google::protobuf::UninterpretedOption& OneofOptions::uninterpreted_optio
n(int index) const { | 11040 const ::google::protobuf::UninterpretedOption& EnumOptions::uninterpreted_option
(int index) const { |
11004 // @@protoc_insertion_point(field_get:google.protobuf.OneofOptions.uninterpret
ed_option) | 11041 // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.uninterprete
d_option) |
11005 return uninterpreted_option_.Get(index); | 11042 return uninterpreted_option_.Get(index); |
11006 } | 11043 } |
11007 ::google::protobuf::UninterpretedOption* OneofOptions::mutable_uninterpreted_opt
ion(int index) { | 11044 ::google::protobuf::UninterpretedOption* EnumOptions::mutable_uninterpreted_opti
on(int index) { |
11008 // @@protoc_insertion_point(field_mutable:google.protobuf.OneofOptions.uninter
preted_option) | 11045 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumOptions.uninterp
reted_option) |
11009 return uninterpreted_option_.Mutable(index); | 11046 return uninterpreted_option_.Mutable(index); |
11010 } | 11047 } |
11011 ::google::protobuf::UninterpretedOption* OneofOptions::add_uninterpreted_option(
) { | 11048 ::google::protobuf::UninterpretedOption* EnumOptions::add_uninterpreted_option()
{ |
11012 // @@protoc_insertion_point(field_add:google.protobuf.OneofOptions.uninterpret
ed_option) | 11049 // @@protoc_insertion_point(field_add:google.protobuf.EnumOptions.uninterprete
d_option) |
11013 return uninterpreted_option_.Add(); | 11050 return uninterpreted_option_.Add(); |
11014 } | 11051 } |
11015 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* | 11052 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
11016 OneofOptions::mutable_uninterpreted_option() { | 11053 EnumOptions::mutable_uninterpreted_option() { |
11017 // @@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) |
11018 return &uninterpreted_option_; | 11055 return &uninterpreted_option_; |
11019 } | 11056 } |
11020 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt
ion >& | 11057 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt
ion >& |
11021 OneofOptions::uninterpreted_option() const { | 11058 EnumOptions::uninterpreted_option() const { |
11022 // @@protoc_insertion_point(field_list:google.protobuf.OneofOptions.uninterpre
ted_option) | 11059 // @@protoc_insertion_point(field_list:google.protobuf.EnumOptions.uninterpret
ed_option) |
11023 return uninterpreted_option_; | 11060 return uninterpreted_option_; |
11024 } | 11061 } |
11025 | 11062 |
11026 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 11063 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
11027 | 11064 |
11028 // =================================================================== | 11065 // =================================================================== |
11029 | 11066 |
11030 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 11067 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
11031 const int EnumOptions::kAllowAliasFieldNumber; | 11068 const int EnumValueOptions::kDeprecatedFieldNumber; |
11032 const int EnumOptions::kDeprecatedFieldNumber; | 11069 const int EnumValueOptions::kUninterpretedOptionFieldNumber; |
11033 const int EnumOptions::kUninterpretedOptionFieldNumber; | |
11034 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 11070 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
11035 | 11071 |
11036 EnumOptions::EnumOptions() | 11072 EnumValueOptions::EnumValueOptions() |
11037 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 11073 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
11038 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
11039 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
11040 } | |
11041 SharedCtor(); | 11074 SharedCtor(); |
11042 // @@protoc_insertion_point(constructor:google.protobuf.EnumOptions) | 11075 // @@protoc_insertion_point(constructor:google.protobuf.EnumValueOptions) |
11043 } | |
11044 EnumOptions::EnumOptions(const EnumOptions& from) | |
11045 : ::google::protobuf::Message(), | |
11046 _internal_metadata_(NULL), | |
11047 _has_bits_(from._has_bits_), | |
11048 _cached_size_(0), | |
11049 uninterpreted_option_(from.uninterpreted_option_) { | |
11050 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
11051 _extensions_.MergeFrom(from._extensions_); | |
11052 ::memcpy(&allow_alias_, &from.allow_alias_, | |
11053 reinterpret_cast<char*>(&deprecated_) - | |
11054 reinterpret_cast<char*>(&allow_alias_) + sizeof(deprecated_)); | |
11055 // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumOptions) | |
11056 } | 11076 } |
11057 | 11077 |
11058 void EnumOptions::SharedCtor() { | 11078 void EnumValueOptions::InitAsDefaultInstance() { |
11059 _cached_size_ = 0; | |
11060 ::memset(&allow_alias_, 0, reinterpret_cast<char*>(&deprecated_) - | |
11061 reinterpret_cast<char*>(&allow_alias_) + sizeof(deprecated_)); | |
11062 } | 11079 } |
11063 | 11080 |
11064 EnumOptions::~EnumOptions() { | 11081 EnumValueOptions::EnumValueOptions(const EnumValueOptions& from) |
11065 // @@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) |
11066 SharedDtor(); | 11097 SharedDtor(); |
11067 } | 11098 } |
11068 | 11099 |
11069 void EnumOptions::SharedDtor() { | 11100 void EnumValueOptions::SharedDtor() { |
| 11101 if (this != default_instance_) { |
| 11102 } |
11070 } | 11103 } |
11071 | 11104 |
11072 void EnumOptions::SetCachedSize(int size) const { | 11105 void EnumValueOptions::SetCachedSize(int size) const { |
11073 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 11106 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
11074 _cached_size_ = size; | 11107 _cached_size_ = size; |
11075 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 11108 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
11076 } | 11109 } |
11077 const ::google::protobuf::Descriptor* EnumOptions::descriptor() { | 11110 const ::google::protobuf::Descriptor* EnumValueOptions::descriptor() { |
11078 protobuf_AssignDescriptorsOnce(); | 11111 protobuf_AssignDescriptorsOnce(); |
11079 return file_level_metadata[15].descriptor; | 11112 return EnumValueOptions_descriptor_; |
11080 } | 11113 } |
11081 | 11114 |
11082 const EnumOptions& EnumOptions::default_instance() { | 11115 const EnumValueOptions& EnumValueOptions::default_instance() { |
11083 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 11116 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
11084 return *internal_default_instance(); | 11117 return *default_instance_; |
11085 } | 11118 } |
11086 | 11119 |
11087 EnumOptions* EnumOptions::New(::google::protobuf::Arena* arena) const { | 11120 EnumValueOptions* EnumValueOptions::default_instance_ = NULL; |
11088 EnumOptions* n = new EnumOptions; | 11121 |
| 11122 EnumValueOptions* EnumValueOptions::New(::google::protobuf::Arena* arena) const
{ |
| 11123 EnumValueOptions* n = new EnumValueOptions; |
11089 if (arena != NULL) { | 11124 if (arena != NULL) { |
11090 arena->Own(n); | 11125 arena->Own(n); |
11091 } | 11126 } |
11092 return n; | 11127 return n; |
11093 } | 11128 } |
11094 | 11129 |
11095 void EnumOptions::Clear() { | 11130 void EnumValueOptions::Clear() { |
11096 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumOptions) | 11131 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumValueOptions
) |
11097 _extensions_.Clear(); | 11132 _extensions_.Clear(); |
| 11133 deprecated_ = false; |
11098 uninterpreted_option_.Clear(); | 11134 uninterpreted_option_.Clear(); |
11099 if (_has_bits_[0 / 32] & 3u) { | 11135 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
11100 ::memset(&allow_alias_, 0, reinterpret_cast<char*>(&deprecated_) - | 11136 if (_internal_metadata_.have_unknown_fields()) { |
11101 reinterpret_cast<char*>(&allow_alias_) + sizeof(deprecated_)); | 11137 mutable_unknown_fields()->Clear(); |
11102 } | 11138 } |
11103 _has_bits_.Clear(); | |
11104 _internal_metadata_.Clear(); | |
11105 } | 11139 } |
11106 | 11140 |
11107 bool EnumOptions::MergePartialFromCodedStream( | 11141 bool EnumValueOptions::MergePartialFromCodedStream( |
11108 ::google::protobuf::io::CodedInputStream* input) { | 11142 ::google::protobuf::io::CodedInputStream* input) { |
11109 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 11143 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
11110 ::google::protobuf::uint32 tag; | 11144 ::google::protobuf::uint32 tag; |
11111 // @@protoc_insertion_point(parse_start:google.protobuf.EnumOptions) | 11145 // @@protoc_insertion_point(parse_start:google.protobuf.EnumValueOptions) |
11112 for (;;) { | 11146 for (;;) { |
11113 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(16383u); | 11147 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
16383); |
11114 tag = p.first; | 11148 tag = p.first; |
11115 if (!p.second) goto handle_unusual; | 11149 if (!p.second) goto handle_unusual; |
11116 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 11150 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
11117 // optional bool allow_alias = 2; | 11151 // optional bool deprecated = 1 [default = false]; |
11118 case 2: { | 11152 case 1: { |
11119 if (tag == 16u) { | 11153 if (tag == 8) { |
11120 set_has_allow_alias(); | |
11121 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 11154 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
11122 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 11155 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
11123 input, &allow_alias_))); | 11156 input, &deprecated_))); |
| 11157 set_has_deprecated(); |
11124 } else { | 11158 } else { |
11125 goto handle_unusual; | 11159 goto handle_unusual; |
11126 } | 11160 } |
11127 break; | 11161 if (input->ExpectTag(7994)) goto parse_uninterpreted_option; |
11128 } | |
11129 | |
11130 // optional bool deprecated = 3 [default = false]; | |
11131 case 3: { | |
11132 if (tag == 24u) { | |
11133 set_has_deprecated(); | |
11134 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | |
11135 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | |
11136 input, &deprecated_))); | |
11137 } else { | |
11138 goto handle_unusual; | |
11139 } | |
11140 break; | 11162 break; |
11141 } | 11163 } |
11142 | 11164 |
11143 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99
9; | 11165 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99
9; |
11144 case 999: { | 11166 case 999: { |
11145 if (tag == 7994u) { | 11167 if (tag == 7994) { |
| 11168 parse_uninterpreted_option: |
11146 DO_(input->IncrementRecursionDepth()); | 11169 DO_(input->IncrementRecursionDepth()); |
| 11170 parse_loop_uninterpreted_option: |
11147 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 11171 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
11148 input, add_uninterpreted_option())); | 11172 input, add_uninterpreted_option())); |
11149 } else { | 11173 } else { |
11150 goto handle_unusual; | 11174 goto handle_unusual; |
11151 } | 11175 } |
| 11176 if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option; |
11152 input->UnsafeDecrementRecursionDepth(); | 11177 input->UnsafeDecrementRecursionDepth(); |
| 11178 if (input->ExpectAtEnd()) goto success; |
11153 break; | 11179 break; |
11154 } | 11180 } |
11155 | 11181 |
11156 default: { | 11182 default: { |
11157 handle_unusual: | 11183 handle_unusual: |
11158 if (tag == 0 || | 11184 if (tag == 0 || |
11159 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 11185 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
11160 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 11186 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
11161 goto success; | 11187 goto success; |
11162 } | 11188 } |
11163 if ((8000u <= tag)) { | 11189 if ((8000u <= tag)) { |
11164 DO_(_extensions_.ParseField(tag, input, internal_default_instance(), | 11190 DO_(_extensions_.ParseField(tag, input, default_instance_, |
11165 mutable_unknown_fields())); | 11191 mutable_unknown_fields())); |
11166 continue; | 11192 continue; |
11167 } | 11193 } |
11168 DO_(::google::protobuf::internal::WireFormat::SkipField( | 11194 DO_(::google::protobuf::internal::WireFormat::SkipField( |
11169 input, tag, mutable_unknown_fields())); | 11195 input, tag, mutable_unknown_fields())); |
11170 break; | 11196 break; |
11171 } | 11197 } |
11172 } | 11198 } |
11173 } | 11199 } |
11174 success: | 11200 success: |
11175 // @@protoc_insertion_point(parse_success:google.protobuf.EnumOptions) | 11201 // @@protoc_insertion_point(parse_success:google.protobuf.EnumValueOptions) |
11176 return true; | 11202 return true; |
11177 failure: | 11203 failure: |
11178 // @@protoc_insertion_point(parse_failure:google.protobuf.EnumOptions) | 11204 // @@protoc_insertion_point(parse_failure:google.protobuf.EnumValueOptions) |
11179 return false; | 11205 return false; |
11180 #undef DO_ | 11206 #undef DO_ |
11181 } | 11207 } |
11182 | 11208 |
11183 void EnumOptions::SerializeWithCachedSizes( | 11209 void EnumValueOptions::SerializeWithCachedSizes( |
11184 ::google::protobuf::io::CodedOutputStream* output) const { | 11210 ::google::protobuf::io::CodedOutputStream* output) const { |
11185 // @@protoc_insertion_point(serialize_start:google.protobuf.EnumOptions) | 11211 // @@protoc_insertion_point(serialize_start:google.protobuf.EnumValueOptions) |
11186 // optional bool allow_alias = 2; | 11212 // optional bool deprecated = 1 [default = false]; |
11187 if (has_allow_alias()) { | |
11188 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->allow_alias
(), output); | |
11189 } | |
11190 | |
11191 // optional bool deprecated = 3 [default = false]; | |
11192 if (has_deprecated()) { | 11213 if (has_deprecated()) { |
11193 ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->deprecated(
), output); | 11214 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->deprecated(
), output); |
11194 } | 11215 } |
11195 | 11216 |
11196 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 11217 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
11197 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++) { |
11198 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 11219 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
11199 999, this->uninterpreted_option(i), output); | 11220 999, this->uninterpreted_option(i), output); |
11200 } | 11221 } |
11201 | 11222 |
11202 // Extension range [1000, 536870912) | 11223 // Extension range [1000, 536870912) |
11203 _extensions_.SerializeWithCachedSizes( | 11224 _extensions_.SerializeWithCachedSizes( |
11204 1000, 536870912, output); | 11225 1000, 536870912, output); |
11205 | 11226 |
11206 if (_internal_metadata_.have_unknown_fields()) { | 11227 if (_internal_metadata_.have_unknown_fields()) { |
11207 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 11228 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
11208 unknown_fields(), output); | 11229 unknown_fields(), output); |
11209 } | 11230 } |
11210 // @@protoc_insertion_point(serialize_end:google.protobuf.EnumOptions) | 11231 // @@protoc_insertion_point(serialize_end:google.protobuf.EnumValueOptions) |
11211 } | 11232 } |
11212 | 11233 |
11213 ::google::protobuf::uint8* EnumOptions::InternalSerializeWithCachedSizesToArray( | 11234 ::google::protobuf::uint8* EnumValueOptions::SerializeWithCachedSizesToArray( |
11214 bool deterministic, ::google::protobuf::uint8* target) const { | 11235 ::google::protobuf::uint8* target) const { |
11215 (void)deterministic; // Unused | 11236 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValue
Options) |
11216 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumOptio
ns) | 11237 // optional bool deprecated = 1 [default = false]; |
11217 // optional bool allow_alias = 2; | |
11218 if (has_allow_alias()) { | |
11219 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, t
his->allow_alias(), target); | |
11220 } | |
11221 | |
11222 // optional bool deprecated = 3 [default = false]; | |
11223 if (has_deprecated()) { | 11238 if (has_deprecated()) { |
11224 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, t
his->deprecated(), target); | 11239 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, t
his->deprecated(), target); |
11225 } | 11240 } |
11226 | 11241 |
11227 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 11242 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
11228 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++) { |
11229 target = ::google::protobuf::internal::WireFormatLite:: | 11244 target = ::google::protobuf::internal::WireFormatLite:: |
11230 InternalWriteMessageNoVirtualToArray( | 11245 WriteMessageNoVirtualToArray( |
11231 999, this->uninterpreted_option(i), false, target); | 11246 999, this->uninterpreted_option(i), target); |
11232 } | 11247 } |
11233 | 11248 |
11234 // Extension range [1000, 536870912) | 11249 // Extension range [1000, 536870912) |
11235 target = _extensions_.InternalSerializeWithCachedSizesToArray( | 11250 target = _extensions_.SerializeWithCachedSizesToArray( |
11236 1000, 536870912, false, target); | 11251 1000, 536870912, target); |
11237 | 11252 |
11238 if (_internal_metadata_.have_unknown_fields()) { | 11253 if (_internal_metadata_.have_unknown_fields()) { |
11239 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 11254 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
11240 unknown_fields(), target); | 11255 unknown_fields(), target); |
11241 } | 11256 } |
11242 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumOptions
) | 11257 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumValueOp
tions) |
11243 return target; | 11258 return target; |
11244 } | 11259 } |
11245 | 11260 |
11246 size_t EnumOptions::ByteSizeLong() const { | 11261 int EnumValueOptions::ByteSize() const { |
11247 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumOptions) | 11262 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumValueOpt
ions) |
11248 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 } |
11249 | 11277 |
11250 total_size += _extensions_.ByteSize(); | 11278 total_size += _extensions_.ByteSize(); |
11251 | 11279 |
11252 if (_internal_metadata_.have_unknown_fields()) { | 11280 if (_internal_metadata_.have_unknown_fields()) { |
11253 total_size += | 11281 total_size += |
11254 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | 11282 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
11255 unknown_fields()); | 11283 unknown_fields()); |
11256 } | 11284 } |
11257 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | |
11258 { | |
11259 unsigned int count = this->uninterpreted_option_size(); | |
11260 total_size += 2UL * count; | |
11261 for (unsigned int i = 0; i < count; i++) { | |
11262 total_size += | |
11263 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
11264 this->uninterpreted_option(i)); | |
11265 } | |
11266 } | |
11267 | |
11268 if (_has_bits_[0 / 32] & 3u) { | |
11269 // optional bool allow_alias = 2; | |
11270 if (has_allow_alias()) { | |
11271 total_size += 1 + 1; | |
11272 } | |
11273 | |
11274 // optional bool deprecated = 3 [default = false]; | |
11275 if (has_deprecated()) { | |
11276 total_size += 1 + 1; | |
11277 } | |
11278 | |
11279 } | |
11280 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | |
11281 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 11285 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
11282 _cached_size_ = cached_size; | 11286 _cached_size_ = total_size; |
11283 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 11287 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
11284 return total_size; | 11288 return total_size; |
11285 } | 11289 } |
11286 | 11290 |
11287 void EnumOptions::MergeFrom(const ::google::protobuf::Message& from) { | 11291 void EnumValueOptions::MergeFrom(const ::google::protobuf::Message& from) { |
11288 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumOpt
ions) | 11292 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumVal
ueOptions) |
11289 GOOGLE_DCHECK_NE(&from, this); | 11293 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
11290 const EnumOptions* source = | 11294 const EnumValueOptions* source = |
11291 ::google::protobuf::internal::DynamicCastToGenerated<const EnumOptions>( | 11295 ::google::protobuf::internal::DynamicCastToGenerated<const EnumValueOption
s>( |
11292 &from); | 11296 &from); |
11293 if (source == NULL) { | 11297 if (source == NULL) { |
11294 // @@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) |
11295 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 11299 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
11296 } else { | 11300 } else { |
11297 // @@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) |
11298 MergeFrom(*source); | 11302 MergeFrom(*source); |
11299 } | 11303 } |
11300 } | 11304 } |
11301 | 11305 |
11302 void EnumOptions::MergeFrom(const EnumOptions& from) { | 11306 void EnumValueOptions::MergeFrom(const EnumValueOptions& from) { |
11303 // @@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) |
11304 GOOGLE_DCHECK_NE(&from, this); | 11308 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
11305 _extensions_.MergeFrom(from._extensions_); | |
11306 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
11307 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); | 11309 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); |
11308 if (from._has_bits_[0 / 32] & 3u) { | 11310 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
11309 if (from.has_allow_alias()) { | |
11310 set_allow_alias(from.allow_alias()); | |
11311 } | |
11312 if (from.has_deprecated()) { | 11311 if (from.has_deprecated()) { |
11313 set_deprecated(from.deprecated()); | 11312 set_deprecated(from.deprecated()); |
11314 } | 11313 } |
11315 } | 11314 } |
| 11315 _extensions_.MergeFrom(from._extensions_); |
| 11316 if (from._internal_metadata_.have_unknown_fields()) { |
| 11317 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 11318 } |
11316 } | 11319 } |
11317 | 11320 |
11318 void EnumOptions::CopyFrom(const ::google::protobuf::Message& from) { | 11321 void EnumValueOptions::CopyFrom(const ::google::protobuf::Message& from) { |
11319 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumOpti
ons) | 11322 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumValu
eOptions) |
11320 if (&from == this) return; | 11323 if (&from == this) return; |
11321 Clear(); | 11324 Clear(); |
11322 MergeFrom(from); | 11325 MergeFrom(from); |
11323 } | 11326 } |
11324 | 11327 |
11325 void EnumOptions::CopyFrom(const EnumOptions& from) { | 11328 void EnumValueOptions::CopyFrom(const EnumValueOptions& from) { |
11326 // @@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) |
11327 if (&from == this) return; | 11330 if (&from == this) return; |
11328 Clear(); | 11331 Clear(); |
11329 MergeFrom(from); | 11332 MergeFrom(from); |
11330 } | 11333 } |
11331 | 11334 |
11332 bool EnumOptions::IsInitialized() const { | 11335 bool EnumValueOptions::IsInitialized() const { |
11333 if (!_extensions_.IsInitialized()) { | |
11334 return false; | |
11335 } | |
11336 | 11336 |
11337 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio
n())) return false; | 11337 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio
n())) return false; |
11338 return true; | 11338 |
| 11339 if (!_extensions_.IsInitialized()) return false; return true; |
11339 } | 11340 } |
11340 | 11341 |
11341 void EnumOptions::Swap(EnumOptions* other) { | 11342 void EnumValueOptions::Swap(EnumValueOptions* other) { |
11342 if (other == this) return; | 11343 if (other == this) return; |
11343 InternalSwap(other); | 11344 InternalSwap(other); |
11344 } | 11345 } |
11345 void EnumOptions::InternalSwap(EnumOptions* other) { | 11346 void EnumValueOptions::InternalSwap(EnumValueOptions* other) { |
| 11347 std::swap(deprecated_, other->deprecated_); |
11346 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); | 11348 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); |
11347 std::swap(allow_alias_, other->allow_alias_); | |
11348 std::swap(deprecated_, other->deprecated_); | |
11349 std::swap(_has_bits_[0], other->_has_bits_[0]); | 11349 std::swap(_has_bits_[0], other->_has_bits_[0]); |
11350 _internal_metadata_.Swap(&other->_internal_metadata_); | 11350 _internal_metadata_.Swap(&other->_internal_metadata_); |
11351 std::swap(_cached_size_, other->_cached_size_); | 11351 std::swap(_cached_size_, other->_cached_size_); |
11352 _extensions_.Swap(&other->_extensions_); | 11352 _extensions_.Swap(&other->_extensions_); |
11353 } | 11353 } |
11354 | 11354 |
11355 ::google::protobuf::Metadata EnumOptions::GetMetadata() const { | 11355 ::google::protobuf::Metadata EnumValueOptions::GetMetadata() const { |
11356 protobuf_AssignDescriptorsOnce(); | 11356 protobuf_AssignDescriptorsOnce(); |
11357 return file_level_metadata[15]; | 11357 ::google::protobuf::Metadata metadata; |
| 11358 metadata.descriptor = EnumValueOptions_descriptor_; |
| 11359 metadata.reflection = EnumValueOptions_reflection_; |
| 11360 return metadata; |
11358 } | 11361 } |
11359 | 11362 |
11360 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 11363 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
11361 // EnumOptions | 11364 // EnumValueOptions |
11362 | 11365 |
11363 // optional bool allow_alias = 2; | 11366 // optional bool deprecated = 1 [default = false]; |
11364 bool EnumOptions::has_allow_alias() const { | 11367 bool EnumValueOptions::has_deprecated() const { |
11365 return (_has_bits_[0] & 0x00000001u) != 0; | 11368 return (_has_bits_[0] & 0x00000001u) != 0; |
11366 } | 11369 } |
11367 void EnumOptions::set_has_allow_alias() { | 11370 void EnumValueOptions::set_has_deprecated() { |
11368 _has_bits_[0] |= 0x00000001u; | 11371 _has_bits_[0] |= 0x00000001u; |
11369 } | 11372 } |
11370 void EnumOptions::clear_has_allow_alias() { | 11373 void EnumValueOptions::clear_has_deprecated() { |
11371 _has_bits_[0] &= ~0x00000001u; | 11374 _has_bits_[0] &= ~0x00000001u; |
11372 } | 11375 } |
11373 void EnumOptions::clear_allow_alias() { | 11376 void EnumValueOptions::clear_deprecated() { |
11374 allow_alias_ = false; | |
11375 clear_has_allow_alias(); | |
11376 } | |
11377 bool EnumOptions::allow_alias() const { | |
11378 // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.allow_alias) | |
11379 return allow_alias_; | |
11380 } | |
11381 void EnumOptions::set_allow_alias(bool value) { | |
11382 set_has_allow_alias(); | |
11383 allow_alias_ = value; | |
11384 // @@protoc_insertion_point(field_set:google.protobuf.EnumOptions.allow_alias) | |
11385 } | |
11386 | |
11387 // optional bool deprecated = 3 [default = false]; | |
11388 bool EnumOptions::has_deprecated() const { | |
11389 return (_has_bits_[0] & 0x00000002u) != 0; | |
11390 } | |
11391 void EnumOptions::set_has_deprecated() { | |
11392 _has_bits_[0] |= 0x00000002u; | |
11393 } | |
11394 void EnumOptions::clear_has_deprecated() { | |
11395 _has_bits_[0] &= ~0x00000002u; | |
11396 } | |
11397 void EnumOptions::clear_deprecated() { | |
11398 deprecated_ = false; | 11377 deprecated_ = false; |
11399 clear_has_deprecated(); | 11378 clear_has_deprecated(); |
11400 } | 11379 } |
11401 bool EnumOptions::deprecated() const { | 11380 bool EnumValueOptions::deprecated() const { |
11402 // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.deprecated) | 11381 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.depreca
ted) |
11403 return deprecated_; | 11382 return deprecated_; |
11404 } | 11383 } |
11405 void EnumOptions::set_deprecated(bool value) { | 11384 void EnumValueOptions::set_deprecated(bool value) { |
11406 set_has_deprecated(); | 11385 set_has_deprecated(); |
11407 deprecated_ = value; | 11386 deprecated_ = value; |
11408 // @@protoc_insertion_point(field_set:google.protobuf.EnumOptions.deprecated) | 11387 // @@protoc_insertion_point(field_set:google.protobuf.EnumValueOptions.depreca
ted) |
11409 } | 11388 } |
11410 | 11389 |
11411 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 11390 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
11412 int EnumOptions::uninterpreted_option_size() const { | 11391 int EnumValueOptions::uninterpreted_option_size() const { |
11413 return uninterpreted_option_.size(); | 11392 return uninterpreted_option_.size(); |
11414 } | 11393 } |
11415 void EnumOptions::clear_uninterpreted_option() { | 11394 void EnumValueOptions::clear_uninterpreted_option() { |
11416 uninterpreted_option_.Clear(); | 11395 uninterpreted_option_.Clear(); |
11417 } | 11396 } |
11418 const ::google::protobuf::UninterpretedOption& EnumOptions::uninterpreted_option
(int index) const { | 11397 const ::google::protobuf::UninterpretedOption& EnumValueOptions::uninterpreted_o
ption(int index) const { |
11419 // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.uninterprete
d_option) | 11398 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.uninter
preted_option) |
11420 return uninterpreted_option_.Get(index); | 11399 return uninterpreted_option_.Get(index); |
11421 } | 11400 } |
11422 ::google::protobuf::UninterpretedOption* EnumOptions::mutable_uninterpreted_opti
on(int index) { | 11401 ::google::protobuf::UninterpretedOption* EnumValueOptions::mutable_uninterpreted
_option(int index) { |
11423 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumOptions.uninterp
reted_option) | 11402 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueOptions.uni
nterpreted_option) |
11424 return uninterpreted_option_.Mutable(index); | 11403 return uninterpreted_option_.Mutable(index); |
11425 } | 11404 } |
11426 ::google::protobuf::UninterpretedOption* EnumOptions::add_uninterpreted_option()
{ | 11405 ::google::protobuf::UninterpretedOption* EnumValueOptions::add_uninterpreted_opt
ion() { |
11427 // @@protoc_insertion_point(field_add:google.protobuf.EnumOptions.uninterprete
d_option) | 11406 // @@protoc_insertion_point(field_add:google.protobuf.EnumValueOptions.uninter
preted_option) |
11428 return uninterpreted_option_.Add(); | 11407 return uninterpreted_option_.Add(); |
11429 } | 11408 } |
11430 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* | 11409 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
11431 EnumOptions::mutable_uninterpreted_option() { | 11410 EnumValueOptions::mutable_uninterpreted_option() { |
11432 // @@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) |
11433 return &uninterpreted_option_; | 11412 return &uninterpreted_option_; |
11434 } | 11413 } |
11435 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt
ion >& | 11414 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt
ion >& |
11436 EnumOptions::uninterpreted_option() const { | 11415 EnumValueOptions::uninterpreted_option() const { |
11437 // @@protoc_insertion_point(field_list:google.protobuf.EnumOptions.uninterpret
ed_option) | 11416 // @@protoc_insertion_point(field_list:google.protobuf.EnumValueOptions.uninte
rpreted_option) |
11438 return uninterpreted_option_; | 11417 return uninterpreted_option_; |
11439 } | 11418 } |
11440 | 11419 |
11441 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 11420 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
11442 | 11421 |
11443 // =================================================================== | 11422 // =================================================================== |
11444 | 11423 |
11445 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 11424 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
11446 const int EnumValueOptions::kDeprecatedFieldNumber; | 11425 const int ServiceOptions::kDeprecatedFieldNumber; |
11447 const int EnumValueOptions::kUninterpretedOptionFieldNumber; | 11426 const int ServiceOptions::kUninterpretedOptionFieldNumber; |
11448 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 11427 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
11449 | 11428 |
11450 EnumValueOptions::EnumValueOptions() | 11429 ServiceOptions::ServiceOptions() |
11451 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 11430 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
11452 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
11453 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
11454 } | |
11455 SharedCtor(); | 11431 SharedCtor(); |
11456 // @@protoc_insertion_point(constructor:google.protobuf.EnumValueOptions) | 11432 // @@protoc_insertion_point(constructor:google.protobuf.ServiceOptions) |
11457 } | |
11458 EnumValueOptions::EnumValueOptions(const EnumValueOptions& from) | |
11459 : ::google::protobuf::Message(), | |
11460 _internal_metadata_(NULL), | |
11461 _has_bits_(from._has_bits_), | |
11462 _cached_size_(0), | |
11463 uninterpreted_option_(from.uninterpreted_option_) { | |
11464 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
11465 _extensions_.MergeFrom(from._extensions_); | |
11466 deprecated_ = from.deprecated_; | |
11467 // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValueOptions) | |
11468 } | 11433 } |
11469 | 11434 |
11470 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() { |
11471 _cached_size_ = 0; | 11447 _cached_size_ = 0; |
11472 deprecated_ = false; | 11448 deprecated_ = false; |
| 11449 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
11473 } | 11450 } |
11474 | 11451 |
11475 EnumValueOptions::~EnumValueOptions() { | 11452 ServiceOptions::~ServiceOptions() { |
11476 // @@protoc_insertion_point(destructor:google.protobuf.EnumValueOptions) | 11453 // @@protoc_insertion_point(destructor:google.protobuf.ServiceOptions) |
11477 SharedDtor(); | 11454 SharedDtor(); |
11478 } | 11455 } |
11479 | 11456 |
11480 void EnumValueOptions::SharedDtor() { | 11457 void ServiceOptions::SharedDtor() { |
| 11458 if (this != default_instance_) { |
| 11459 } |
11481 } | 11460 } |
11482 | 11461 |
11483 void EnumValueOptions::SetCachedSize(int size) const { | 11462 void ServiceOptions::SetCachedSize(int size) const { |
11484 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 11463 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
11485 _cached_size_ = size; | 11464 _cached_size_ = size; |
11486 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 11465 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
11487 } | 11466 } |
11488 const ::google::protobuf::Descriptor* EnumValueOptions::descriptor() { | 11467 const ::google::protobuf::Descriptor* ServiceOptions::descriptor() { |
11489 protobuf_AssignDescriptorsOnce(); | 11468 protobuf_AssignDescriptorsOnce(); |
11490 return file_level_metadata[16].descriptor; | 11469 return ServiceOptions_descriptor_; |
11491 } | 11470 } |
11492 | 11471 |
11493 const EnumValueOptions& EnumValueOptions::default_instance() { | 11472 const ServiceOptions& ServiceOptions::default_instance() { |
11494 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 11473 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
11495 return *internal_default_instance(); | 11474 return *default_instance_; |
11496 } | 11475 } |
11497 | 11476 |
11498 EnumValueOptions* EnumValueOptions::New(::google::protobuf::Arena* arena) const
{ | 11477 ServiceOptions* ServiceOptions::default_instance_ = NULL; |
11499 EnumValueOptions* n = new EnumValueOptions; | 11478 |
| 11479 ServiceOptions* ServiceOptions::New(::google::protobuf::Arena* arena) const { |
| 11480 ServiceOptions* n = new ServiceOptions; |
11500 if (arena != NULL) { | 11481 if (arena != NULL) { |
11501 arena->Own(n); | 11482 arena->Own(n); |
11502 } | 11483 } |
11503 return n; | 11484 return n; |
11504 } | 11485 } |
11505 | 11486 |
11506 void EnumValueOptions::Clear() { | 11487 void ServiceOptions::Clear() { |
11507 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumValueOptions
) | 11488 // @@protoc_insertion_point(message_clear_start:google.protobuf.ServiceOptions) |
11508 _extensions_.Clear(); | 11489 _extensions_.Clear(); |
| 11490 deprecated_ = false; |
11509 uninterpreted_option_.Clear(); | 11491 uninterpreted_option_.Clear(); |
11510 deprecated_ = false; | 11492 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
11511 _has_bits_.Clear(); | 11493 if (_internal_metadata_.have_unknown_fields()) { |
11512 _internal_metadata_.Clear(); | 11494 mutable_unknown_fields()->Clear(); |
| 11495 } |
11513 } | 11496 } |
11514 | 11497 |
11515 bool EnumValueOptions::MergePartialFromCodedStream( | 11498 bool ServiceOptions::MergePartialFromCodedStream( |
11516 ::google::protobuf::io::CodedInputStream* input) { | 11499 ::google::protobuf::io::CodedInputStream* input) { |
11517 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 11500 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
11518 ::google::protobuf::uint32 tag; | 11501 ::google::protobuf::uint32 tag; |
11519 // @@protoc_insertion_point(parse_start:google.protobuf.EnumValueOptions) | 11502 // @@protoc_insertion_point(parse_start:google.protobuf.ServiceOptions) |
11520 for (;;) { | 11503 for (;;) { |
11521 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(16383u); | 11504 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
16383); |
11522 tag = p.first; | 11505 tag = p.first; |
11523 if (!p.second) goto handle_unusual; | 11506 if (!p.second) goto handle_unusual; |
11524 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 11507 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
11525 // optional bool deprecated = 1 [default = false]; | 11508 // optional bool deprecated = 33 [default = false]; |
11526 case 1: { | 11509 case 33: { |
11527 if (tag == 8u) { | 11510 if (tag == 264) { |
11528 set_has_deprecated(); | |
11529 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 11511 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
11530 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 11512 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
11531 input, &deprecated_))); | 11513 input, &deprecated_))); |
| 11514 set_has_deprecated(); |
11532 } else { | 11515 } else { |
11533 goto handle_unusual; | 11516 goto handle_unusual; |
11534 } | 11517 } |
| 11518 if (input->ExpectTag(7994)) goto parse_uninterpreted_option; |
11535 break; | 11519 break; |
11536 } | 11520 } |
11537 | 11521 |
11538 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99
9; | 11522 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99
9; |
11539 case 999: { | 11523 case 999: { |
11540 if (tag == 7994u) { | 11524 if (tag == 7994) { |
| 11525 parse_uninterpreted_option: |
11541 DO_(input->IncrementRecursionDepth()); | 11526 DO_(input->IncrementRecursionDepth()); |
| 11527 parse_loop_uninterpreted_option: |
11542 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 11528 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
11543 input, add_uninterpreted_option())); | 11529 input, add_uninterpreted_option())); |
11544 } else { | 11530 } else { |
11545 goto handle_unusual; | 11531 goto handle_unusual; |
11546 } | 11532 } |
| 11533 if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option; |
11547 input->UnsafeDecrementRecursionDepth(); | 11534 input->UnsafeDecrementRecursionDepth(); |
| 11535 if (input->ExpectAtEnd()) goto success; |
11548 break; | 11536 break; |
11549 } | 11537 } |
11550 | 11538 |
11551 default: { | 11539 default: { |
11552 handle_unusual: | 11540 handle_unusual: |
11553 if (tag == 0 || | 11541 if (tag == 0 || |
11554 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 11542 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
11555 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 11543 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
11556 goto success; | 11544 goto success; |
11557 } | 11545 } |
11558 if ((8000u <= tag)) { | 11546 if ((8000u <= tag)) { |
11559 DO_(_extensions_.ParseField(tag, input, internal_default_instance(), | 11547 DO_(_extensions_.ParseField(tag, input, default_instance_, |
11560 mutable_unknown_fields())); | 11548 mutable_unknown_fields())); |
11561 continue; | 11549 continue; |
11562 } | 11550 } |
11563 DO_(::google::protobuf::internal::WireFormat::SkipField( | 11551 DO_(::google::protobuf::internal::WireFormat::SkipField( |
11564 input, tag, mutable_unknown_fields())); | 11552 input, tag, mutable_unknown_fields())); |
11565 break; | 11553 break; |
11566 } | 11554 } |
11567 } | 11555 } |
11568 } | 11556 } |
11569 success: | 11557 success: |
11570 // @@protoc_insertion_point(parse_success:google.protobuf.EnumValueOptions) | 11558 // @@protoc_insertion_point(parse_success:google.protobuf.ServiceOptions) |
11571 return true; | 11559 return true; |
11572 failure: | 11560 failure: |
11573 // @@protoc_insertion_point(parse_failure:google.protobuf.EnumValueOptions) | 11561 // @@protoc_insertion_point(parse_failure:google.protobuf.ServiceOptions) |
11574 return false; | 11562 return false; |
11575 #undef DO_ | 11563 #undef DO_ |
11576 } | 11564 } |
11577 | 11565 |
11578 void EnumValueOptions::SerializeWithCachedSizes( | 11566 void ServiceOptions::SerializeWithCachedSizes( |
11579 ::google::protobuf::io::CodedOutputStream* output) const { | 11567 ::google::protobuf::io::CodedOutputStream* output) const { |
11580 // @@protoc_insertion_point(serialize_start:google.protobuf.EnumValueOptions) | 11568 // @@protoc_insertion_point(serialize_start:google.protobuf.ServiceOptions) |
11581 // optional bool deprecated = 1 [default = false]; | 11569 // optional bool deprecated = 33 [default = false]; |
11582 if (has_deprecated()) { | 11570 if (has_deprecated()) { |
11583 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->deprecated(
), output); | 11571 ::google::protobuf::internal::WireFormatLite::WriteBool(33, this->deprecated
(), output); |
11584 } | 11572 } |
11585 | 11573 |
11586 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 11574 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
11587 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++) { |
11588 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 11576 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
11589 999, this->uninterpreted_option(i), output); | 11577 999, this->uninterpreted_option(i), output); |
11590 } | 11578 } |
11591 | 11579 |
11592 // Extension range [1000, 536870912) | 11580 // Extension range [1000, 536870912) |
11593 _extensions_.SerializeWithCachedSizes( | 11581 _extensions_.SerializeWithCachedSizes( |
11594 1000, 536870912, output); | 11582 1000, 536870912, output); |
11595 | 11583 |
11596 if (_internal_metadata_.have_unknown_fields()) { | 11584 if (_internal_metadata_.have_unknown_fields()) { |
11597 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 11585 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
11598 unknown_fields(), output); | 11586 unknown_fields(), output); |
11599 } | 11587 } |
11600 // @@protoc_insertion_point(serialize_end:google.protobuf.EnumValueOptions) | 11588 // @@protoc_insertion_point(serialize_end:google.protobuf.ServiceOptions) |
11601 } | 11589 } |
11602 | 11590 |
11603 ::google::protobuf::uint8* EnumValueOptions::InternalSerializeWithCachedSizesToA
rray( | 11591 ::google::protobuf::uint8* ServiceOptions::SerializeWithCachedSizesToArray( |
11604 bool deterministic, ::google::protobuf::uint8* target) const { | 11592 ::google::protobuf::uint8* target) const { |
11605 (void)deterministic; // Unused | 11593 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ServiceOp
tions) |
11606 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValue
Options) | 11594 // optional bool deprecated = 33 [default = false]; |
11607 // optional bool deprecated = 1 [default = false]; | |
11608 if (has_deprecated()) { | 11595 if (has_deprecated()) { |
11609 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, t
his->deprecated(), target); | 11596 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(33,
this->deprecated(), target); |
11610 } | 11597 } |
11611 | 11598 |
11612 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 11599 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
11613 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++) { |
11614 target = ::google::protobuf::internal::WireFormatLite:: | 11601 target = ::google::protobuf::internal::WireFormatLite:: |
11615 InternalWriteMessageNoVirtualToArray( | 11602 WriteMessageNoVirtualToArray( |
11616 999, this->uninterpreted_option(i), false, target); | 11603 999, this->uninterpreted_option(i), target); |
11617 } | 11604 } |
11618 | 11605 |
11619 // Extension range [1000, 536870912) | 11606 // Extension range [1000, 536870912) |
11620 target = _extensions_.InternalSerializeWithCachedSizesToArray( | 11607 target = _extensions_.SerializeWithCachedSizesToArray( |
11621 1000, 536870912, false, target); | 11608 1000, 536870912, target); |
11622 | 11609 |
11623 if (_internal_metadata_.have_unknown_fields()) { | 11610 if (_internal_metadata_.have_unknown_fields()) { |
11624 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 11611 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
11625 unknown_fields(), target); | 11612 unknown_fields(), target); |
11626 } | 11613 } |
11627 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumValueOp
tions) | 11614 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ServiceOpti
ons) |
11628 return target; | 11615 return target; |
11629 } | 11616 } |
11630 | 11617 |
11631 size_t EnumValueOptions::ByteSizeLong() const { | 11618 int ServiceOptions::ByteSize() const { |
11632 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumValueOpt
ions) | 11619 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.ServiceOptio
ns) |
11633 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 } |
11634 | 11634 |
11635 total_size += _extensions_.ByteSize(); | 11635 total_size += _extensions_.ByteSize(); |
11636 | 11636 |
11637 if (_internal_metadata_.have_unknown_fields()) { | 11637 if (_internal_metadata_.have_unknown_fields()) { |
11638 total_size += | 11638 total_size += |
11639 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | 11639 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
11640 unknown_fields()); | 11640 unknown_fields()); |
11641 } | 11641 } |
11642 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | |
11643 { | |
11644 unsigned int count = this->uninterpreted_option_size(); | |
11645 total_size += 2UL * count; | |
11646 for (unsigned int i = 0; i < count; i++) { | |
11647 total_size += | |
11648 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
11649 this->uninterpreted_option(i)); | |
11650 } | |
11651 } | |
11652 | |
11653 // optional bool deprecated = 1 [default = false]; | |
11654 if (has_deprecated()) { | |
11655 total_size += 1 + 1; | |
11656 } | |
11657 | |
11658 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | |
11659 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 11642 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
11660 _cached_size_ = cached_size; | 11643 _cached_size_ = total_size; |
11661 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 11644 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
11662 return total_size; | 11645 return total_size; |
11663 } | 11646 } |
11664 | 11647 |
11665 void EnumValueOptions::MergeFrom(const ::google::protobuf::Message& from) { | 11648 void ServiceOptions::MergeFrom(const ::google::protobuf::Message& from) { |
11666 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumVal
ueOptions) | 11649 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Service
Options) |
11667 GOOGLE_DCHECK_NE(&from, this); | 11650 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
11668 const EnumValueOptions* source = | 11651 const ServiceOptions* source = |
11669 ::google::protobuf::internal::DynamicCastToGenerated<const EnumValueOption
s>( | 11652 ::google::protobuf::internal::DynamicCastToGenerated<const ServiceOptions>
( |
11670 &from); | 11653 &from); |
11671 if (source == NULL) { | 11654 if (source == NULL) { |
11672 // @@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) |
11673 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 11656 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
11674 } else { | 11657 } else { |
11675 // @@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) |
11676 MergeFrom(*source); | 11659 MergeFrom(*source); |
11677 } | 11660 } |
11678 } | 11661 } |
11679 | 11662 |
11680 void EnumValueOptions::MergeFrom(const EnumValueOptions& from) { | 11663 void ServiceOptions::MergeFrom(const ServiceOptions& from) { |
11681 // @@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) |
11682 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 } |
11683 _extensions_.MergeFrom(from._extensions_); | 11672 _extensions_.MergeFrom(from._extensions_); |
11684 _internal_metadata_.MergeFrom(from._internal_metadata_); | 11673 if (from._internal_metadata_.have_unknown_fields()) { |
11685 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); | 11674 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
11686 if (from.has_deprecated()) { | |
11687 set_deprecated(from.deprecated()); | |
11688 } | 11675 } |
11689 } | 11676 } |
11690 | 11677 |
11691 void EnumValueOptions::CopyFrom(const ::google::protobuf::Message& from) { | 11678 void ServiceOptions::CopyFrom(const ::google::protobuf::Message& from) { |
11692 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumValu
eOptions) | 11679 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.ServiceO
ptions) |
11693 if (&from == this) return; | 11680 if (&from == this) return; |
11694 Clear(); | 11681 Clear(); |
11695 MergeFrom(from); | 11682 MergeFrom(from); |
11696 } | 11683 } |
11697 | 11684 |
11698 void EnumValueOptions::CopyFrom(const EnumValueOptions& from) { | 11685 void ServiceOptions::CopyFrom(const ServiceOptions& from) { |
11699 // @@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) |
11700 if (&from == this) return; | 11687 if (&from == this) return; |
11701 Clear(); | 11688 Clear(); |
11702 MergeFrom(from); | 11689 MergeFrom(from); |
11703 } | 11690 } |
11704 | 11691 |
11705 bool EnumValueOptions::IsInitialized() const { | 11692 bool ServiceOptions::IsInitialized() const { |
11706 if (!_extensions_.IsInitialized()) { | |
11707 return false; | |
11708 } | |
11709 | 11693 |
11710 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio
n())) return false; | 11694 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio
n())) return false; |
11711 return true; | 11695 |
| 11696 if (!_extensions_.IsInitialized()) return false; return true; |
11712 } | 11697 } |
11713 | 11698 |
11714 void EnumValueOptions::Swap(EnumValueOptions* other) { | 11699 void ServiceOptions::Swap(ServiceOptions* other) { |
11715 if (other == this) return; | 11700 if (other == this) return; |
11716 InternalSwap(other); | 11701 InternalSwap(other); |
11717 } | 11702 } |
11718 void EnumValueOptions::InternalSwap(EnumValueOptions* other) { | 11703 void ServiceOptions::InternalSwap(ServiceOptions* other) { |
| 11704 std::swap(deprecated_, other->deprecated_); |
11719 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); | 11705 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); |
11720 std::swap(deprecated_, other->deprecated_); | |
11721 std::swap(_has_bits_[0], other->_has_bits_[0]); | 11706 std::swap(_has_bits_[0], other->_has_bits_[0]); |
11722 _internal_metadata_.Swap(&other->_internal_metadata_); | 11707 _internal_metadata_.Swap(&other->_internal_metadata_); |
11723 std::swap(_cached_size_, other->_cached_size_); | 11708 std::swap(_cached_size_, other->_cached_size_); |
11724 _extensions_.Swap(&other->_extensions_); | 11709 _extensions_.Swap(&other->_extensions_); |
11725 } | 11710 } |
11726 | 11711 |
11727 ::google::protobuf::Metadata EnumValueOptions::GetMetadata() const { | 11712 ::google::protobuf::Metadata ServiceOptions::GetMetadata() const { |
11728 protobuf_AssignDescriptorsOnce(); | 11713 protobuf_AssignDescriptorsOnce(); |
11729 return file_level_metadata[16]; | 11714 ::google::protobuf::Metadata metadata; |
| 11715 metadata.descriptor = ServiceOptions_descriptor_; |
| 11716 metadata.reflection = ServiceOptions_reflection_; |
| 11717 return metadata; |
11730 } | 11718 } |
11731 | 11719 |
11732 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 11720 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
11733 // EnumValueOptions | 11721 // ServiceOptions |
11734 | 11722 |
11735 // optional bool deprecated = 1 [default = false]; | 11723 // optional bool deprecated = 33 [default = false]; |
11736 bool EnumValueOptions::has_deprecated() const { | 11724 bool ServiceOptions::has_deprecated() const { |
11737 return (_has_bits_[0] & 0x00000001u) != 0; | 11725 return (_has_bits_[0] & 0x00000001u) != 0; |
11738 } | 11726 } |
11739 void EnumValueOptions::set_has_deprecated() { | 11727 void ServiceOptions::set_has_deprecated() { |
11740 _has_bits_[0] |= 0x00000001u; | 11728 _has_bits_[0] |= 0x00000001u; |
11741 } | 11729 } |
11742 void EnumValueOptions::clear_has_deprecated() { | 11730 void ServiceOptions::clear_has_deprecated() { |
11743 _has_bits_[0] &= ~0x00000001u; | 11731 _has_bits_[0] &= ~0x00000001u; |
11744 } | 11732 } |
11745 void EnumValueOptions::clear_deprecated() { | 11733 void ServiceOptions::clear_deprecated() { |
11746 deprecated_ = false; | 11734 deprecated_ = false; |
11747 clear_has_deprecated(); | 11735 clear_has_deprecated(); |
11748 } | 11736 } |
11749 bool EnumValueOptions::deprecated() const { | 11737 bool ServiceOptions::deprecated() const { |
11750 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.depreca
ted) | 11738 // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.deprecate
d) |
11751 return deprecated_; | 11739 return deprecated_; |
11752 } | 11740 } |
11753 void EnumValueOptions::set_deprecated(bool value) { | 11741 void ServiceOptions::set_deprecated(bool value) { |
11754 set_has_deprecated(); | 11742 set_has_deprecated(); |
11755 deprecated_ = value; | 11743 deprecated_ = value; |
11756 // @@protoc_insertion_point(field_set:google.protobuf.EnumValueOptions.depreca
ted) | 11744 // @@protoc_insertion_point(field_set:google.protobuf.ServiceOptions.deprecate
d) |
11757 } | 11745 } |
11758 | 11746 |
11759 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 11747 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
11760 int EnumValueOptions::uninterpreted_option_size() const { | 11748 int ServiceOptions::uninterpreted_option_size() const { |
11761 return uninterpreted_option_.size(); | 11749 return uninterpreted_option_.size(); |
11762 } | 11750 } |
11763 void EnumValueOptions::clear_uninterpreted_option() { | 11751 void ServiceOptions::clear_uninterpreted_option() { |
11764 uninterpreted_option_.Clear(); | 11752 uninterpreted_option_.Clear(); |
11765 } | 11753 } |
11766 const ::google::protobuf::UninterpretedOption& EnumValueOptions::uninterpreted_o
ption(int index) const { | 11754 const ::google::protobuf::UninterpretedOption& ServiceOptions::uninterpreted_opt
ion(int index) const { |
11767 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.uninter
preted_option) | 11755 // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.uninterpr
eted_option) |
11768 return uninterpreted_option_.Get(index); | 11756 return uninterpreted_option_.Get(index); |
11769 } | 11757 } |
11770 ::google::protobuf::UninterpretedOption* EnumValueOptions::mutable_uninterpreted
_option(int index) { | 11758 ::google::protobuf::UninterpretedOption* ServiceOptions::mutable_uninterpreted_o
ption(int index) { |
11771 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueOptions.uni
nterpreted_option) | 11759 // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceOptions.unint
erpreted_option) |
11772 return uninterpreted_option_.Mutable(index); | 11760 return uninterpreted_option_.Mutable(index); |
11773 } | 11761 } |
11774 ::google::protobuf::UninterpretedOption* EnumValueOptions::add_uninterpreted_opt
ion() { | 11762 ::google::protobuf::UninterpretedOption* ServiceOptions::add_uninterpreted_optio
n() { |
11775 // @@protoc_insertion_point(field_add:google.protobuf.EnumValueOptions.uninter
preted_option) | 11763 // @@protoc_insertion_point(field_add:google.protobuf.ServiceOptions.uninterpr
eted_option) |
11776 return uninterpreted_option_.Add(); | 11764 return uninterpreted_option_.Add(); |
11777 } | 11765 } |
11778 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* | 11766 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
11779 EnumValueOptions::mutable_uninterpreted_option() { | 11767 ServiceOptions::mutable_uninterpreted_option() { |
11780 // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumValueOption
s.uninterpreted_option) | 11768 // @@protoc_insertion_point(field_mutable_list:google.protobuf.ServiceOptions.
uninterpreted_option) |
11781 return &uninterpreted_option_; | 11769 return &uninterpreted_option_; |
11782 } | 11770 } |
11783 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt
ion >& | 11771 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt
ion >& |
11784 EnumValueOptions::uninterpreted_option() const { | 11772 ServiceOptions::uninterpreted_option() const { |
11785 // @@protoc_insertion_point(field_list:google.protobuf.EnumValueOptions.uninte
rpreted_option) | 11773 // @@protoc_insertion_point(field_list:google.protobuf.ServiceOptions.uninterp
reted_option) |
11786 return uninterpreted_option_; | 11774 return uninterpreted_option_; |
11787 } | 11775 } |
11788 | 11776 |
11789 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 11777 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
11790 | 11778 |
11791 // =================================================================== | 11779 // =================================================================== |
11792 | 11780 |
11793 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 11781 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
11794 const int ServiceOptions::kDeprecatedFieldNumber; | 11782 const int MethodOptions::kDeprecatedFieldNumber; |
11795 const int ServiceOptions::kUninterpretedOptionFieldNumber; | 11783 const int MethodOptions::kUninterpretedOptionFieldNumber; |
11796 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 11784 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
11797 | 11785 |
11798 ServiceOptions::ServiceOptions() | 11786 MethodOptions::MethodOptions() |
11799 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 11787 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
11800 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
11801 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
11802 } | |
11803 SharedCtor(); | 11788 SharedCtor(); |
11804 // @@protoc_insertion_point(constructor:google.protobuf.ServiceOptions) | 11789 // @@protoc_insertion_point(constructor:google.protobuf.MethodOptions) |
11805 } | |
11806 ServiceOptions::ServiceOptions(const ServiceOptions& from) | |
11807 : ::google::protobuf::Message(), | |
11808 _internal_metadata_(NULL), | |
11809 _has_bits_(from._has_bits_), | |
11810 _cached_size_(0), | |
11811 uninterpreted_option_(from.uninterpreted_option_) { | |
11812 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
11813 _extensions_.MergeFrom(from._extensions_); | |
11814 deprecated_ = from.deprecated_; | |
11815 // @@protoc_insertion_point(copy_constructor:google.protobuf.ServiceOptions) | |
11816 } | 11790 } |
11817 | 11791 |
11818 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() { |
11819 _cached_size_ = 0; | 11804 _cached_size_ = 0; |
11820 deprecated_ = false; | 11805 deprecated_ = false; |
| 11806 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
11821 } | 11807 } |
11822 | 11808 |
11823 ServiceOptions::~ServiceOptions() { | 11809 MethodOptions::~MethodOptions() { |
11824 // @@protoc_insertion_point(destructor:google.protobuf.ServiceOptions) | 11810 // @@protoc_insertion_point(destructor:google.protobuf.MethodOptions) |
11825 SharedDtor(); | 11811 SharedDtor(); |
11826 } | 11812 } |
11827 | 11813 |
11828 void ServiceOptions::SharedDtor() { | 11814 void MethodOptions::SharedDtor() { |
| 11815 if (this != default_instance_) { |
| 11816 } |
11829 } | 11817 } |
11830 | 11818 |
11831 void ServiceOptions::SetCachedSize(int size) const { | 11819 void MethodOptions::SetCachedSize(int size) const { |
11832 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 11820 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
11833 _cached_size_ = size; | 11821 _cached_size_ = size; |
11834 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 11822 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
11835 } | 11823 } |
11836 const ::google::protobuf::Descriptor* ServiceOptions::descriptor() { | 11824 const ::google::protobuf::Descriptor* MethodOptions::descriptor() { |
11837 protobuf_AssignDescriptorsOnce(); | 11825 protobuf_AssignDescriptorsOnce(); |
11838 return file_level_metadata[17].descriptor; | 11826 return MethodOptions_descriptor_; |
11839 } | 11827 } |
11840 | 11828 |
11841 const ServiceOptions& ServiceOptions::default_instance() { | 11829 const MethodOptions& MethodOptions::default_instance() { |
11842 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 11830 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
11843 return *internal_default_instance(); | 11831 return *default_instance_; |
11844 } | 11832 } |
11845 | 11833 |
11846 ServiceOptions* ServiceOptions::New(::google::protobuf::Arena* arena) const { | 11834 MethodOptions* MethodOptions::default_instance_ = NULL; |
11847 ServiceOptions* n = new ServiceOptions; | 11835 |
| 11836 MethodOptions* MethodOptions::New(::google::protobuf::Arena* arena) const { |
| 11837 MethodOptions* n = new MethodOptions; |
11848 if (arena != NULL) { | 11838 if (arena != NULL) { |
11849 arena->Own(n); | 11839 arena->Own(n); |
11850 } | 11840 } |
11851 return n; | 11841 return n; |
11852 } | 11842 } |
11853 | 11843 |
11854 void ServiceOptions::Clear() { | 11844 void MethodOptions::Clear() { |
11855 // @@protoc_insertion_point(message_clear_start:google.protobuf.ServiceOptions) | 11845 // @@protoc_insertion_point(message_clear_start:google.protobuf.MethodOptions) |
11856 _extensions_.Clear(); | 11846 _extensions_.Clear(); |
| 11847 deprecated_ = false; |
11857 uninterpreted_option_.Clear(); | 11848 uninterpreted_option_.Clear(); |
11858 deprecated_ = false; | 11849 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
11859 _has_bits_.Clear(); | 11850 if (_internal_metadata_.have_unknown_fields()) { |
11860 _internal_metadata_.Clear(); | 11851 mutable_unknown_fields()->Clear(); |
| 11852 } |
11861 } | 11853 } |
11862 | 11854 |
11863 bool ServiceOptions::MergePartialFromCodedStream( | 11855 bool MethodOptions::MergePartialFromCodedStream( |
11864 ::google::protobuf::io::CodedInputStream* input) { | 11856 ::google::protobuf::io::CodedInputStream* input) { |
11865 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 11857 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
11866 ::google::protobuf::uint32 tag; | 11858 ::google::protobuf::uint32 tag; |
11867 // @@protoc_insertion_point(parse_start:google.protobuf.ServiceOptions) | 11859 // @@protoc_insertion_point(parse_start:google.protobuf.MethodOptions) |
11868 for (;;) { | 11860 for (;;) { |
11869 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(16383u); | 11861 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
16383); |
11870 tag = p.first; | 11862 tag = p.first; |
11871 if (!p.second) goto handle_unusual; | 11863 if (!p.second) goto handle_unusual; |
11872 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 11864 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
11873 // optional bool deprecated = 33 [default = false]; | 11865 // optional bool deprecated = 33 [default = false]; |
11874 case 33: { | 11866 case 33: { |
11875 if (tag == 264u) { | 11867 if (tag == 264) { |
11876 set_has_deprecated(); | |
11877 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 11868 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
11878 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 11869 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
11879 input, &deprecated_))); | 11870 input, &deprecated_))); |
| 11871 set_has_deprecated(); |
11880 } else { | 11872 } else { |
11881 goto handle_unusual; | 11873 goto handle_unusual; |
11882 } | 11874 } |
| 11875 if (input->ExpectTag(7994)) goto parse_uninterpreted_option; |
11883 break; | 11876 break; |
11884 } | 11877 } |
11885 | 11878 |
11886 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99
9; | 11879 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99
9; |
11887 case 999: { | 11880 case 999: { |
11888 if (tag == 7994u) { | 11881 if (tag == 7994) { |
| 11882 parse_uninterpreted_option: |
11889 DO_(input->IncrementRecursionDepth()); | 11883 DO_(input->IncrementRecursionDepth()); |
| 11884 parse_loop_uninterpreted_option: |
11890 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 11885 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
11891 input, add_uninterpreted_option())); | 11886 input, add_uninterpreted_option())); |
11892 } else { | 11887 } else { |
11893 goto handle_unusual; | 11888 goto handle_unusual; |
11894 } | 11889 } |
| 11890 if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option; |
11895 input->UnsafeDecrementRecursionDepth(); | 11891 input->UnsafeDecrementRecursionDepth(); |
| 11892 if (input->ExpectAtEnd()) goto success; |
11896 break; | 11893 break; |
11897 } | 11894 } |
11898 | 11895 |
11899 default: { | 11896 default: { |
11900 handle_unusual: | 11897 handle_unusual: |
11901 if (tag == 0 || | 11898 if (tag == 0 || |
11902 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 11899 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
11903 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 11900 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
11904 goto success; | 11901 goto success; |
11905 } | 11902 } |
11906 if ((8000u <= tag)) { | 11903 if ((8000u <= tag)) { |
11907 DO_(_extensions_.ParseField(tag, input, internal_default_instance(), | 11904 DO_(_extensions_.ParseField(tag, input, default_instance_, |
11908 mutable_unknown_fields())); | 11905 mutable_unknown_fields())); |
11909 continue; | 11906 continue; |
11910 } | 11907 } |
11911 DO_(::google::protobuf::internal::WireFormat::SkipField( | 11908 DO_(::google::protobuf::internal::WireFormat::SkipField( |
11912 input, tag, mutable_unknown_fields())); | 11909 input, tag, mutable_unknown_fields())); |
11913 break; | 11910 break; |
11914 } | 11911 } |
11915 } | 11912 } |
11916 } | 11913 } |
11917 success: | 11914 success: |
11918 // @@protoc_insertion_point(parse_success:google.protobuf.ServiceOptions) | 11915 // @@protoc_insertion_point(parse_success:google.protobuf.MethodOptions) |
11919 return true; | 11916 return true; |
11920 failure: | 11917 failure: |
11921 // @@protoc_insertion_point(parse_failure:google.protobuf.ServiceOptions) | 11918 // @@protoc_insertion_point(parse_failure:google.protobuf.MethodOptions) |
11922 return false; | 11919 return false; |
11923 #undef DO_ | 11920 #undef DO_ |
11924 } | 11921 } |
11925 | 11922 |
11926 void ServiceOptions::SerializeWithCachedSizes( | 11923 void MethodOptions::SerializeWithCachedSizes( |
11927 ::google::protobuf::io::CodedOutputStream* output) const { | 11924 ::google::protobuf::io::CodedOutputStream* output) const { |
11928 // @@protoc_insertion_point(serialize_start:google.protobuf.ServiceOptions) | 11925 // @@protoc_insertion_point(serialize_start:google.protobuf.MethodOptions) |
11929 // optional bool deprecated = 33 [default = false]; | 11926 // optional bool deprecated = 33 [default = false]; |
11930 if (has_deprecated()) { | 11927 if (has_deprecated()) { |
11931 ::google::protobuf::internal::WireFormatLite::WriteBool(33, this->deprecated
(), output); | 11928 ::google::protobuf::internal::WireFormatLite::WriteBool(33, this->deprecated
(), output); |
11932 } | 11929 } |
11933 | 11930 |
11934 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 11931 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
11935 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++) { |
11936 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 11933 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
11937 999, this->uninterpreted_option(i), output); | 11934 999, this->uninterpreted_option(i), output); |
11938 } | 11935 } |
11939 | 11936 |
11940 // Extension range [1000, 536870912) | 11937 // Extension range [1000, 536870912) |
11941 _extensions_.SerializeWithCachedSizes( | 11938 _extensions_.SerializeWithCachedSizes( |
11942 1000, 536870912, output); | 11939 1000, 536870912, output); |
11943 | 11940 |
11944 if (_internal_metadata_.have_unknown_fields()) { | 11941 if (_internal_metadata_.have_unknown_fields()) { |
11945 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 11942 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
11946 unknown_fields(), output); | 11943 unknown_fields(), output); |
11947 } | 11944 } |
11948 // @@protoc_insertion_point(serialize_end:google.protobuf.ServiceOptions) | 11945 // @@protoc_insertion_point(serialize_end:google.protobuf.MethodOptions) |
11949 } | 11946 } |
11950 | 11947 |
11951 ::google::protobuf::uint8* ServiceOptions::InternalSerializeWithCachedSizesToArr
ay( | 11948 ::google::protobuf::uint8* MethodOptions::SerializeWithCachedSizesToArray( |
11952 bool deterministic, ::google::protobuf::uint8* target) const { | 11949 ::google::protobuf::uint8* target) const { |
11953 (void)deterministic; // Unused | 11950 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MethodOpt
ions) |
11954 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ServiceOp
tions) | |
11955 // optional bool deprecated = 33 [default = false]; | 11951 // optional bool deprecated = 33 [default = false]; |
11956 if (has_deprecated()) { | 11952 if (has_deprecated()) { |
11957 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(33,
this->deprecated(), target); | 11953 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(33,
this->deprecated(), target); |
11958 } | 11954 } |
11959 | 11955 |
11960 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 11956 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
11961 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++) { |
11962 target = ::google::protobuf::internal::WireFormatLite:: | 11958 target = ::google::protobuf::internal::WireFormatLite:: |
11963 InternalWriteMessageNoVirtualToArray( | 11959 WriteMessageNoVirtualToArray( |
11964 999, this->uninterpreted_option(i), false, target); | 11960 999, this->uninterpreted_option(i), target); |
11965 } | 11961 } |
11966 | 11962 |
11967 // Extension range [1000, 536870912) | 11963 // Extension range [1000, 536870912) |
11968 target = _extensions_.InternalSerializeWithCachedSizesToArray( | 11964 target = _extensions_.SerializeWithCachedSizesToArray( |
11969 1000, 536870912, false, target); | 11965 1000, 536870912, target); |
11970 | 11966 |
11971 if (_internal_metadata_.have_unknown_fields()) { | 11967 if (_internal_metadata_.have_unknown_fields()) { |
11972 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 11968 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
11973 unknown_fields(), target); | 11969 unknown_fields(), target); |
11974 } | 11970 } |
11975 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ServiceOpti
ons) | 11971 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MethodOptio
ns) |
11976 return target; | 11972 return target; |
11977 } | 11973 } |
11978 | 11974 |
11979 size_t ServiceOptions::ByteSizeLong() const { | 11975 int MethodOptions::ByteSize() const { |
11980 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.ServiceOptio
ns) | 11976 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.MethodOption
s) |
11981 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 } |
11982 | 11991 |
11983 total_size += _extensions_.ByteSize(); | 11992 total_size += _extensions_.ByteSize(); |
11984 | 11993 |
11985 if (_internal_metadata_.have_unknown_fields()) { | 11994 if (_internal_metadata_.have_unknown_fields()) { |
11986 total_size += | 11995 total_size += |
11987 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | 11996 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
11988 unknown_fields()); | 11997 unknown_fields()); |
11989 } | 11998 } |
11990 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | |
11991 { | |
11992 unsigned int count = this->uninterpreted_option_size(); | |
11993 total_size += 2UL * count; | |
11994 for (unsigned int i = 0; i < count; i++) { | |
11995 total_size += | |
11996 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
11997 this->uninterpreted_option(i)); | |
11998 } | |
11999 } | |
12000 | |
12001 // optional bool deprecated = 33 [default = false]; | |
12002 if (has_deprecated()) { | |
12003 total_size += 2 + 1; | |
12004 } | |
12005 | |
12006 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | |
12007 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 11999 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
12008 _cached_size_ = cached_size; | 12000 _cached_size_ = total_size; |
12009 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 12001 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
12010 return total_size; | 12002 return total_size; |
12011 } | 12003 } |
12012 | 12004 |
12013 void ServiceOptions::MergeFrom(const ::google::protobuf::Message& from) { | 12005 void MethodOptions::MergeFrom(const ::google::protobuf::Message& from) { |
12014 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Service
Options) | 12006 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.MethodO
ptions) |
12015 GOOGLE_DCHECK_NE(&from, this); | 12007 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
12016 const ServiceOptions* source = | 12008 const MethodOptions* source = |
12017 ::google::protobuf::internal::DynamicCastToGenerated<const ServiceOptions>
( | 12009 ::google::protobuf::internal::DynamicCastToGenerated<const MethodOptions>( |
12018 &from); | 12010 &from); |
12019 if (source == NULL) { | 12011 if (source == NULL) { |
12020 // @@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) |
12021 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 12013 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
12022 } else { | 12014 } else { |
12023 // @@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) |
12024 MergeFrom(*source); | 12016 MergeFrom(*source); |
12025 } | 12017 } |
12026 } | 12018 } |
12027 | 12019 |
12028 void ServiceOptions::MergeFrom(const ServiceOptions& from) { | 12020 void MethodOptions::MergeFrom(const MethodOptions& from) { |
12029 // @@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) |
12030 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 } |
12031 _extensions_.MergeFrom(from._extensions_); | 12029 _extensions_.MergeFrom(from._extensions_); |
12032 _internal_metadata_.MergeFrom(from._internal_metadata_); | 12030 if (from._internal_metadata_.have_unknown_fields()) { |
12033 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); | 12031 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
12034 if (from.has_deprecated()) { | |
12035 set_deprecated(from.deprecated()); | |
12036 } | 12032 } |
12037 } | 12033 } |
12038 | 12034 |
12039 void ServiceOptions::CopyFrom(const ::google::protobuf::Message& from) { | 12035 void MethodOptions::CopyFrom(const ::google::protobuf::Message& from) { |
12040 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.ServiceO
ptions) | 12036 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.MethodOp
tions) |
12041 if (&from == this) return; | 12037 if (&from == this) return; |
12042 Clear(); | 12038 Clear(); |
12043 MergeFrom(from); | 12039 MergeFrom(from); |
12044 } | 12040 } |
12045 | 12041 |
12046 void ServiceOptions::CopyFrom(const ServiceOptions& from) { | 12042 void MethodOptions::CopyFrom(const MethodOptions& from) { |
12047 // @@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) |
12048 if (&from == this) return; | 12044 if (&from == this) return; |
12049 Clear(); | 12045 Clear(); |
12050 MergeFrom(from); | 12046 MergeFrom(from); |
12051 } | 12047 } |
12052 | 12048 |
12053 bool ServiceOptions::IsInitialized() const { | 12049 bool MethodOptions::IsInitialized() const { |
12054 if (!_extensions_.IsInitialized()) { | |
12055 return false; | |
12056 } | |
12057 | 12050 |
12058 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio
n())) return false; | 12051 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio
n())) return false; |
12059 return true; | 12052 |
| 12053 if (!_extensions_.IsInitialized()) return false; return true; |
12060 } | 12054 } |
12061 | 12055 |
12062 void ServiceOptions::Swap(ServiceOptions* other) { | 12056 void MethodOptions::Swap(MethodOptions* other) { |
12063 if (other == this) return; | 12057 if (other == this) return; |
12064 InternalSwap(other); | 12058 InternalSwap(other); |
12065 } | 12059 } |
12066 void ServiceOptions::InternalSwap(ServiceOptions* other) { | 12060 void MethodOptions::InternalSwap(MethodOptions* other) { |
| 12061 std::swap(deprecated_, other->deprecated_); |
12067 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); | 12062 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); |
12068 std::swap(deprecated_, other->deprecated_); | |
12069 std::swap(_has_bits_[0], other->_has_bits_[0]); | 12063 std::swap(_has_bits_[0], other->_has_bits_[0]); |
12070 _internal_metadata_.Swap(&other->_internal_metadata_); | 12064 _internal_metadata_.Swap(&other->_internal_metadata_); |
12071 std::swap(_cached_size_, other->_cached_size_); | 12065 std::swap(_cached_size_, other->_cached_size_); |
12072 _extensions_.Swap(&other->_extensions_); | 12066 _extensions_.Swap(&other->_extensions_); |
12073 } | 12067 } |
12074 | 12068 |
12075 ::google::protobuf::Metadata ServiceOptions::GetMetadata() const { | 12069 ::google::protobuf::Metadata MethodOptions::GetMetadata() const { |
12076 protobuf_AssignDescriptorsOnce(); | 12070 protobuf_AssignDescriptorsOnce(); |
12077 return file_level_metadata[17]; | 12071 ::google::protobuf::Metadata metadata; |
| 12072 metadata.descriptor = MethodOptions_descriptor_; |
| 12073 metadata.reflection = MethodOptions_reflection_; |
| 12074 return metadata; |
12078 } | 12075 } |
12079 | 12076 |
12080 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 12077 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
12081 // ServiceOptions | 12078 // MethodOptions |
12082 | 12079 |
12083 // optional bool deprecated = 33 [default = false]; | 12080 // optional bool deprecated = 33 [default = false]; |
12084 bool ServiceOptions::has_deprecated() const { | 12081 bool MethodOptions::has_deprecated() const { |
12085 return (_has_bits_[0] & 0x00000001u) != 0; | 12082 return (_has_bits_[0] & 0x00000001u) != 0; |
12086 } | 12083 } |
12087 void ServiceOptions::set_has_deprecated() { | 12084 void MethodOptions::set_has_deprecated() { |
12088 _has_bits_[0] |= 0x00000001u; | 12085 _has_bits_[0] |= 0x00000001u; |
12089 } | 12086 } |
12090 void ServiceOptions::clear_has_deprecated() { | 12087 void MethodOptions::clear_has_deprecated() { |
12091 _has_bits_[0] &= ~0x00000001u; | 12088 _has_bits_[0] &= ~0x00000001u; |
12092 } | 12089 } |
12093 void ServiceOptions::clear_deprecated() { | 12090 void MethodOptions::clear_deprecated() { |
12094 deprecated_ = false; | 12091 deprecated_ = false; |
12095 clear_has_deprecated(); | 12092 clear_has_deprecated(); |
12096 } | 12093 } |
12097 bool ServiceOptions::deprecated() const { | 12094 bool MethodOptions::deprecated() const { |
12098 // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.deprecate
d) | 12095 // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.deprecated
) |
12099 return deprecated_; | 12096 return deprecated_; |
12100 } | 12097 } |
12101 void ServiceOptions::set_deprecated(bool value) { | 12098 void MethodOptions::set_deprecated(bool value) { |
12102 set_has_deprecated(); | 12099 set_has_deprecated(); |
12103 deprecated_ = value; | 12100 deprecated_ = value; |
12104 // @@protoc_insertion_point(field_set:google.protobuf.ServiceOptions.deprecate
d) | 12101 // @@protoc_insertion_point(field_set:google.protobuf.MethodOptions.deprecated
) |
12105 } | 12102 } |
12106 | 12103 |
12107 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | 12104 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
12108 int ServiceOptions::uninterpreted_option_size() const { | 12105 int MethodOptions::uninterpreted_option_size() const { |
12109 return uninterpreted_option_.size(); | 12106 return uninterpreted_option_.size(); |
12110 } | 12107 } |
12111 void ServiceOptions::clear_uninterpreted_option() { | 12108 void MethodOptions::clear_uninterpreted_option() { |
12112 uninterpreted_option_.Clear(); | 12109 uninterpreted_option_.Clear(); |
12113 } | 12110 } |
12114 const ::google::protobuf::UninterpretedOption& ServiceOptions::uninterpreted_opt
ion(int index) const { | 12111 const ::google::protobuf::UninterpretedOption& MethodOptions::uninterpreted_opti
on(int index) const { |
12115 // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.uninterpr
eted_option) | 12112 // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.uninterpre
ted_option) |
12116 return uninterpreted_option_.Get(index); | 12113 return uninterpreted_option_.Get(index); |
12117 } | 12114 } |
12118 ::google::protobuf::UninterpretedOption* ServiceOptions::mutable_uninterpreted_o
ption(int index) { | 12115 ::google::protobuf::UninterpretedOption* MethodOptions::mutable_uninterpreted_op
tion(int index) { |
12119 // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceOptions.unint
erpreted_option) | 12116 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodOptions.uninte
rpreted_option) |
12120 return uninterpreted_option_.Mutable(index); | 12117 return uninterpreted_option_.Mutable(index); |
12121 } | 12118 } |
12122 ::google::protobuf::UninterpretedOption* ServiceOptions::add_uninterpreted_optio
n() { | 12119 ::google::protobuf::UninterpretedOption* MethodOptions::add_uninterpreted_option
() { |
12123 // @@protoc_insertion_point(field_add:google.protobuf.ServiceOptions.uninterpr
eted_option) | 12120 // @@protoc_insertion_point(field_add:google.protobuf.MethodOptions.uninterpre
ted_option) |
12124 return uninterpreted_option_.Add(); | 12121 return uninterpreted_option_.Add(); |
12125 } | 12122 } |
12126 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* | 12123 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
12127 ServiceOptions::mutable_uninterpreted_option() { | 12124 MethodOptions::mutable_uninterpreted_option() { |
12128 // @@protoc_insertion_point(field_mutable_list:google.protobuf.ServiceOptions.
uninterpreted_option) | 12125 // @@protoc_insertion_point(field_mutable_list:google.protobuf.MethodOptions.u
ninterpreted_option) |
12129 return &uninterpreted_option_; | 12126 return &uninterpreted_option_; |
12130 } | 12127 } |
12131 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt
ion >& | 12128 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt
ion >& |
12132 ServiceOptions::uninterpreted_option() const { | 12129 MethodOptions::uninterpreted_option() const { |
12133 // @@protoc_insertion_point(field_list:google.protobuf.ServiceOptions.uninterp
reted_option) | 12130 // @@protoc_insertion_point(field_list:google.protobuf.MethodOptions.uninterpr
eted_option) |
12134 return uninterpreted_option_; | 12131 return uninterpreted_option_; |
12135 } | 12132 } |
12136 | 12133 |
12137 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 12134 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
12138 | 12135 |
12139 // =================================================================== | 12136 // =================================================================== |
12140 | 12137 |
12141 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 12138 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
12142 const int MethodOptions::kDeprecatedFieldNumber; | |
12143 const int MethodOptions::kIdempotencyLevelFieldNumber; | |
12144 const int MethodOptions::kUninterpretedOptionFieldNumber; | |
12145 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | |
12146 | |
12147 MethodOptions::MethodOptions() | |
12148 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | |
12149 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
12150 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
12151 } | |
12152 SharedCtor(); | |
12153 // @@protoc_insertion_point(constructor:google.protobuf.MethodOptions) | |
12154 } | |
12155 MethodOptions::MethodOptions(const MethodOptions& from) | |
12156 : ::google::protobuf::Message(), | |
12157 _internal_metadata_(NULL), | |
12158 _has_bits_(from._has_bits_), | |
12159 _cached_size_(0), | |
12160 uninterpreted_option_(from.uninterpreted_option_) { | |
12161 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
12162 _extensions_.MergeFrom(from._extensions_); | |
12163 ::memcpy(&deprecated_, &from.deprecated_, | |
12164 reinterpret_cast<char*>(&idempotency_level_) - | |
12165 reinterpret_cast<char*>(&deprecated_) + sizeof(idempotency_level_)); | |
12166 // @@protoc_insertion_point(copy_constructor:google.protobuf.MethodOptions) | |
12167 } | |
12168 | |
12169 void MethodOptions::SharedCtor() { | |
12170 _cached_size_ = 0; | |
12171 ::memset(&deprecated_, 0, reinterpret_cast<char*>(&idempotency_level_) - | |
12172 reinterpret_cast<char*>(&deprecated_) + sizeof(idempotency_level_)); | |
12173 } | |
12174 | |
12175 MethodOptions::~MethodOptions() { | |
12176 // @@protoc_insertion_point(destructor:google.protobuf.MethodOptions) | |
12177 SharedDtor(); | |
12178 } | |
12179 | |
12180 void MethodOptions::SharedDtor() { | |
12181 } | |
12182 | |
12183 void MethodOptions::SetCachedSize(int size) const { | |
12184 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | |
12185 _cached_size_ = size; | |
12186 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | |
12187 } | |
12188 const ::google::protobuf::Descriptor* MethodOptions::descriptor() { | |
12189 protobuf_AssignDescriptorsOnce(); | |
12190 return file_level_metadata[18].descriptor; | |
12191 } | |
12192 | |
12193 const MethodOptions& MethodOptions::default_instance() { | |
12194 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
12195 return *internal_default_instance(); | |
12196 } | |
12197 | |
12198 MethodOptions* MethodOptions::New(::google::protobuf::Arena* arena) const { | |
12199 MethodOptions* n = new MethodOptions; | |
12200 if (arena != NULL) { | |
12201 arena->Own(n); | |
12202 } | |
12203 return n; | |
12204 } | |
12205 | |
12206 void MethodOptions::Clear() { | |
12207 // @@protoc_insertion_point(message_clear_start:google.protobuf.MethodOptions) | |
12208 _extensions_.Clear(); | |
12209 uninterpreted_option_.Clear(); | |
12210 if (_has_bits_[0 / 32] & 3u) { | |
12211 ::memset(&deprecated_, 0, reinterpret_cast<char*>(&idempotency_level_) - | |
12212 reinterpret_cast<char*>(&deprecated_) + sizeof(idempotency_level_)); | |
12213 } | |
12214 _has_bits_.Clear(); | |
12215 _internal_metadata_.Clear(); | |
12216 } | |
12217 | |
12218 bool MethodOptions::MergePartialFromCodedStream( | |
12219 ::google::protobuf::io::CodedInputStream* input) { | |
12220 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | |
12221 ::google::protobuf::uint32 tag; | |
12222 // @@protoc_insertion_point(parse_start:google.protobuf.MethodOptions) | |
12223 for (;;) { | |
12224 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(16383u); | |
12225 tag = p.first; | |
12226 if (!p.second) goto handle_unusual; | |
12227 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | |
12228 // optional bool deprecated = 33 [default = false]; | |
12229 case 33: { | |
12230 if (tag == 264u) { | |
12231 set_has_deprecated(); | |
12232 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | |
12233 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | |
12234 input, &deprecated_))); | |
12235 } else { | |
12236 goto handle_unusual; | |
12237 } | |
12238 break; | |
12239 } | |
12240 | |
12241 // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_le
vel = 34 [default = IDEMPOTENCY_UNKNOWN]; | |
12242 case 34: { | |
12243 if (tag == 272u) { | |
12244 int value; | |
12245 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | |
12246 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>
( | |
12247 input, &value))); | |
12248 if (::google::protobuf::MethodOptions_IdempotencyLevel_IsValid(value))
{ | |
12249 set_idempotency_level(static_cast< ::google::protobuf::MethodOptions
_IdempotencyLevel >(value)); | |
12250 } else { | |
12251 mutable_unknown_fields()->AddVarint(34, value); | |
12252 } | |
12253 } else { | |
12254 goto handle_unusual; | |
12255 } | |
12256 break; | |
12257 } | |
12258 | |
12259 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99
9; | |
12260 case 999: { | |
12261 if (tag == 7994u) { | |
12262 DO_(input->IncrementRecursionDepth()); | |
12263 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | |
12264 input, add_uninterpreted_option())); | |
12265 } else { | |
12266 goto handle_unusual; | |
12267 } | |
12268 input->UnsafeDecrementRecursionDepth(); | |
12269 break; | |
12270 } | |
12271 | |
12272 default: { | |
12273 handle_unusual: | |
12274 if (tag == 0 || | |
12275 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | |
12276 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | |
12277 goto success; | |
12278 } | |
12279 if ((8000u <= tag)) { | |
12280 DO_(_extensions_.ParseField(tag, input, internal_default_instance(), | |
12281 mutable_unknown_fields())); | |
12282 continue; | |
12283 } | |
12284 DO_(::google::protobuf::internal::WireFormat::SkipField( | |
12285 input, tag, mutable_unknown_fields())); | |
12286 break; | |
12287 } | |
12288 } | |
12289 } | |
12290 success: | |
12291 // @@protoc_insertion_point(parse_success:google.protobuf.MethodOptions) | |
12292 return true; | |
12293 failure: | |
12294 // @@protoc_insertion_point(parse_failure:google.protobuf.MethodOptions) | |
12295 return false; | |
12296 #undef DO_ | |
12297 } | |
12298 | |
12299 void MethodOptions::SerializeWithCachedSizes( | |
12300 ::google::protobuf::io::CodedOutputStream* output) const { | |
12301 // @@protoc_insertion_point(serialize_start:google.protobuf.MethodOptions) | |
12302 // optional bool deprecated = 33 [default = false]; | |
12303 if (has_deprecated()) { | |
12304 ::google::protobuf::internal::WireFormatLite::WriteBool(33, this->deprecated
(), output); | |
12305 } | |
12306 | |
12307 // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level
= 34 [default = IDEMPOTENCY_UNKNOWN]; | |
12308 if (has_idempotency_level()) { | |
12309 ::google::protobuf::internal::WireFormatLite::WriteEnum( | |
12310 34, this->idempotency_level(), output); | |
12311 } | |
12312 | |
12313 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | |
12314 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { | |
12315 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | |
12316 999, this->uninterpreted_option(i), output); | |
12317 } | |
12318 | |
12319 // Extension range [1000, 536870912) | |
12320 _extensions_.SerializeWithCachedSizes( | |
12321 1000, 536870912, output); | |
12322 | |
12323 if (_internal_metadata_.have_unknown_fields()) { | |
12324 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | |
12325 unknown_fields(), output); | |
12326 } | |
12327 // @@protoc_insertion_point(serialize_end:google.protobuf.MethodOptions) | |
12328 } | |
12329 | |
12330 ::google::protobuf::uint8* MethodOptions::InternalSerializeWithCachedSizesToArra
y( | |
12331 bool deterministic, ::google::protobuf::uint8* target) const { | |
12332 (void)deterministic; // Unused | |
12333 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MethodOpt
ions) | |
12334 // optional bool deprecated = 33 [default = false]; | |
12335 if (has_deprecated()) { | |
12336 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(33,
this->deprecated(), target); | |
12337 } | |
12338 | |
12339 // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level
= 34 [default = IDEMPOTENCY_UNKNOWN]; | |
12340 if (has_idempotency_level()) { | |
12341 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( | |
12342 34, this->idempotency_level(), target); | |
12343 } | |
12344 | |
12345 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | |
12346 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { | |
12347 target = ::google::protobuf::internal::WireFormatLite:: | |
12348 InternalWriteMessageNoVirtualToArray( | |
12349 999, this->uninterpreted_option(i), false, target); | |
12350 } | |
12351 | |
12352 // Extension range [1000, 536870912) | |
12353 target = _extensions_.InternalSerializeWithCachedSizesToArray( | |
12354 1000, 536870912, false, target); | |
12355 | |
12356 if (_internal_metadata_.have_unknown_fields()) { | |
12357 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | |
12358 unknown_fields(), target); | |
12359 } | |
12360 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MethodOptio
ns) | |
12361 return target; | |
12362 } | |
12363 | |
12364 size_t MethodOptions::ByteSizeLong() const { | |
12365 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.MethodOption
s) | |
12366 size_t total_size = 0; | |
12367 | |
12368 total_size += _extensions_.ByteSize(); | |
12369 | |
12370 if (_internal_metadata_.have_unknown_fields()) { | |
12371 total_size += | |
12372 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | |
12373 unknown_fields()); | |
12374 } | |
12375 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | |
12376 { | |
12377 unsigned int count = this->uninterpreted_option_size(); | |
12378 total_size += 2UL * count; | |
12379 for (unsigned int i = 0; i < count; i++) { | |
12380 total_size += | |
12381 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
12382 this->uninterpreted_option(i)); | |
12383 } | |
12384 } | |
12385 | |
12386 if (_has_bits_[0 / 32] & 3u) { | |
12387 // optional bool deprecated = 33 [default = false]; | |
12388 if (has_deprecated()) { | |
12389 total_size += 2 + 1; | |
12390 } | |
12391 | |
12392 // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_leve
l = 34 [default = IDEMPOTENCY_UNKNOWN]; | |
12393 if (has_idempotency_level()) { | |
12394 total_size += 2 + | |
12395 ::google::protobuf::internal::WireFormatLite::EnumSize(this->idempotency
_level()); | |
12396 } | |
12397 | |
12398 } | |
12399 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | |
12400 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | |
12401 _cached_size_ = cached_size; | |
12402 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | |
12403 return total_size; | |
12404 } | |
12405 | |
12406 void MethodOptions::MergeFrom(const ::google::protobuf::Message& from) { | |
12407 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.MethodO
ptions) | |
12408 GOOGLE_DCHECK_NE(&from, this); | |
12409 const MethodOptions* source = | |
12410 ::google::protobuf::internal::DynamicCastToGenerated<const MethodOptions>( | |
12411 &from); | |
12412 if (source == NULL) { | |
12413 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.M
ethodOptions) | |
12414 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | |
12415 } else { | |
12416 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.MethodOptions) | |
12417 MergeFrom(*source); | |
12418 } | |
12419 } | |
12420 | |
12421 void MethodOptions::MergeFrom(const MethodOptions& from) { | |
12422 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Meth
odOptions) | |
12423 GOOGLE_DCHECK_NE(&from, this); | |
12424 _extensions_.MergeFrom(from._extensions_); | |
12425 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
12426 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); | |
12427 if (from._has_bits_[0 / 32] & 3u) { | |
12428 if (from.has_deprecated()) { | |
12429 set_deprecated(from.deprecated()); | |
12430 } | |
12431 if (from.has_idempotency_level()) { | |
12432 set_idempotency_level(from.idempotency_level()); | |
12433 } | |
12434 } | |
12435 } | |
12436 | |
12437 void MethodOptions::CopyFrom(const ::google::protobuf::Message& from) { | |
12438 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.MethodOp
tions) | |
12439 if (&from == this) return; | |
12440 Clear(); | |
12441 MergeFrom(from); | |
12442 } | |
12443 | |
12444 void MethodOptions::CopyFrom(const MethodOptions& from) { | |
12445 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Metho
dOptions) | |
12446 if (&from == this) return; | |
12447 Clear(); | |
12448 MergeFrom(from); | |
12449 } | |
12450 | |
12451 bool MethodOptions::IsInitialized() const { | |
12452 if (!_extensions_.IsInitialized()) { | |
12453 return false; | |
12454 } | |
12455 | |
12456 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio
n())) return false; | |
12457 return true; | |
12458 } | |
12459 | |
12460 void MethodOptions::Swap(MethodOptions* other) { | |
12461 if (other == this) return; | |
12462 InternalSwap(other); | |
12463 } | |
12464 void MethodOptions::InternalSwap(MethodOptions* other) { | |
12465 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); | |
12466 std::swap(deprecated_, other->deprecated_); | |
12467 std::swap(idempotency_level_, other->idempotency_level_); | |
12468 std::swap(_has_bits_[0], other->_has_bits_[0]); | |
12469 _internal_metadata_.Swap(&other->_internal_metadata_); | |
12470 std::swap(_cached_size_, other->_cached_size_); | |
12471 _extensions_.Swap(&other->_extensions_); | |
12472 } | |
12473 | |
12474 ::google::protobuf::Metadata MethodOptions::GetMetadata() const { | |
12475 protobuf_AssignDescriptorsOnce(); | |
12476 return file_level_metadata[18]; | |
12477 } | |
12478 | |
12479 #if PROTOBUF_INLINE_NOT_IN_HEADERS | |
12480 // MethodOptions | |
12481 | |
12482 // optional bool deprecated = 33 [default = false]; | |
12483 bool MethodOptions::has_deprecated() const { | |
12484 return (_has_bits_[0] & 0x00000001u) != 0; | |
12485 } | |
12486 void MethodOptions::set_has_deprecated() { | |
12487 _has_bits_[0] |= 0x00000001u; | |
12488 } | |
12489 void MethodOptions::clear_has_deprecated() { | |
12490 _has_bits_[0] &= ~0x00000001u; | |
12491 } | |
12492 void MethodOptions::clear_deprecated() { | |
12493 deprecated_ = false; | |
12494 clear_has_deprecated(); | |
12495 } | |
12496 bool MethodOptions::deprecated() const { | |
12497 // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.deprecated
) | |
12498 return deprecated_; | |
12499 } | |
12500 void MethodOptions::set_deprecated(bool value) { | |
12501 set_has_deprecated(); | |
12502 deprecated_ = value; | |
12503 // @@protoc_insertion_point(field_set:google.protobuf.MethodOptions.deprecated
) | |
12504 } | |
12505 | |
12506 // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level =
34 [default = IDEMPOTENCY_UNKNOWN]; | |
12507 bool MethodOptions::has_idempotency_level() const { | |
12508 return (_has_bits_[0] & 0x00000002u) != 0; | |
12509 } | |
12510 void MethodOptions::set_has_idempotency_level() { | |
12511 _has_bits_[0] |= 0x00000002u; | |
12512 } | |
12513 void MethodOptions::clear_has_idempotency_level() { | |
12514 _has_bits_[0] &= ~0x00000002u; | |
12515 } | |
12516 void MethodOptions::clear_idempotency_level() { | |
12517 idempotency_level_ = 0; | |
12518 clear_has_idempotency_level(); | |
12519 } | |
12520 ::google::protobuf::MethodOptions_IdempotencyLevel MethodOptions::idempotency_le
vel() const { | |
12521 // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.idempotenc
y_level) | |
12522 return static_cast< ::google::protobuf::MethodOptions_IdempotencyLevel >(idemp
otency_level_); | |
12523 } | |
12524 void MethodOptions::set_idempotency_level(::google::protobuf::MethodOptions_Idem
potencyLevel value) { | |
12525 assert(::google::protobuf::MethodOptions_IdempotencyLevel_IsValid(value)); | |
12526 set_has_idempotency_level(); | |
12527 idempotency_level_ = value; | |
12528 // @@protoc_insertion_point(field_set:google.protobuf.MethodOptions.idempotenc
y_level) | |
12529 } | |
12530 | |
12531 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; | |
12532 int MethodOptions::uninterpreted_option_size() const { | |
12533 return uninterpreted_option_.size(); | |
12534 } | |
12535 void MethodOptions::clear_uninterpreted_option() { | |
12536 uninterpreted_option_.Clear(); | |
12537 } | |
12538 const ::google::protobuf::UninterpretedOption& MethodOptions::uninterpreted_opti
on(int index) const { | |
12539 // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.uninterpre
ted_option) | |
12540 return uninterpreted_option_.Get(index); | |
12541 } | |
12542 ::google::protobuf::UninterpretedOption* MethodOptions::mutable_uninterpreted_op
tion(int index) { | |
12543 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodOptions.uninte
rpreted_option) | |
12544 return uninterpreted_option_.Mutable(index); | |
12545 } | |
12546 ::google::protobuf::UninterpretedOption* MethodOptions::add_uninterpreted_option
() { | |
12547 // @@protoc_insertion_point(field_add:google.protobuf.MethodOptions.uninterpre
ted_option) | |
12548 return uninterpreted_option_.Add(); | |
12549 } | |
12550 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* | |
12551 MethodOptions::mutable_uninterpreted_option() { | |
12552 // @@protoc_insertion_point(field_mutable_list:google.protobuf.MethodOptions.u
ninterpreted_option) | |
12553 return &uninterpreted_option_; | |
12554 } | |
12555 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt
ion >& | |
12556 MethodOptions::uninterpreted_option() const { | |
12557 // @@protoc_insertion_point(field_list:google.protobuf.MethodOptions.uninterpr
eted_option) | |
12558 return uninterpreted_option_; | |
12559 } | |
12560 | |
12561 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | |
12562 | |
12563 // =================================================================== | |
12564 | |
12565 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | |
12566 const int UninterpretedOption_NamePart::kNamePartFieldNumber; | 12139 const int UninterpretedOption_NamePart::kNamePartFieldNumber; |
12567 const int UninterpretedOption_NamePart::kIsExtensionFieldNumber; | 12140 const int UninterpretedOption_NamePart::kIsExtensionFieldNumber; |
12568 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 12141 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
12569 | 12142 |
12570 UninterpretedOption_NamePart::UninterpretedOption_NamePart() | 12143 UninterpretedOption_NamePart::UninterpretedOption_NamePart() |
12571 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 12144 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
12572 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
12573 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
12574 } | |
12575 SharedCtor(); | 12145 SharedCtor(); |
12576 // @@protoc_insertion_point(constructor:google.protobuf.UninterpretedOption.Na
mePart) | 12146 // @@protoc_insertion_point(constructor:google.protobuf.UninterpretedOption.Na
mePart) |
12577 } | 12147 } |
| 12148 |
| 12149 void UninterpretedOption_NamePart::InitAsDefaultInstance() { |
| 12150 } |
| 12151 |
12578 UninterpretedOption_NamePart::UninterpretedOption_NamePart(const UninterpretedOp
tion_NamePart& from) | 12152 UninterpretedOption_NamePart::UninterpretedOption_NamePart(const UninterpretedOp
tion_NamePart& from) |
12579 : ::google::protobuf::Message(), | 12153 : ::google::protobuf::Message(), |
12580 _internal_metadata_(NULL), | 12154 _internal_metadata_(NULL) { |
12581 _has_bits_(from._has_bits_), | 12155 SharedCtor(); |
12582 _cached_size_(0) { | 12156 MergeFrom(from); |
12583 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
12584 name_part_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | |
12585 if (from.has_name_part()) { | |
12586 name_part_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAl
readyInited(), from.name_part_); | |
12587 } | |
12588 is_extension_ = from.is_extension_; | |
12589 // @@protoc_insertion_point(copy_constructor:google.protobuf.UninterpretedOpti
on.NamePart) | 12157 // @@protoc_insertion_point(copy_constructor:google.protobuf.UninterpretedOpti
on.NamePart) |
12590 } | 12158 } |
12591 | 12159 |
12592 void UninterpretedOption_NamePart::SharedCtor() { | 12160 void UninterpretedOption_NamePart::SharedCtor() { |
| 12161 ::google::protobuf::internal::GetEmptyString(); |
12593 _cached_size_ = 0; | 12162 _cached_size_ = 0; |
12594 name_part_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 12163 name_part_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
12595 is_extension_ = false; | 12164 is_extension_ = false; |
| 12165 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
12596 } | 12166 } |
12597 | 12167 |
12598 UninterpretedOption_NamePart::~UninterpretedOption_NamePart() { | 12168 UninterpretedOption_NamePart::~UninterpretedOption_NamePart() { |
12599 // @@protoc_insertion_point(destructor:google.protobuf.UninterpretedOption.Nam
ePart) | 12169 // @@protoc_insertion_point(destructor:google.protobuf.UninterpretedOption.Nam
ePart) |
12600 SharedDtor(); | 12170 SharedDtor(); |
12601 } | 12171 } |
12602 | 12172 |
12603 void UninterpretedOption_NamePart::SharedDtor() { | 12173 void UninterpretedOption_NamePart::SharedDtor() { |
12604 name_part_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); | 12174 name_part_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); |
| 12175 if (this != default_instance_) { |
| 12176 } |
12605 } | 12177 } |
12606 | 12178 |
12607 void UninterpretedOption_NamePart::SetCachedSize(int size) const { | 12179 void UninterpretedOption_NamePart::SetCachedSize(int size) const { |
12608 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 12180 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
12609 _cached_size_ = size; | 12181 _cached_size_ = size; |
12610 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 12182 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
12611 } | 12183 } |
12612 const ::google::protobuf::Descriptor* UninterpretedOption_NamePart::descriptor()
{ | 12184 const ::google::protobuf::Descriptor* UninterpretedOption_NamePart::descriptor()
{ |
12613 protobuf_AssignDescriptorsOnce(); | 12185 protobuf_AssignDescriptorsOnce(); |
12614 return file_level_metadata[19].descriptor; | 12186 return UninterpretedOption_NamePart_descriptor_; |
12615 } | 12187 } |
12616 | 12188 |
12617 const UninterpretedOption_NamePart& UninterpretedOption_NamePart::default_instan
ce() { | 12189 const UninterpretedOption_NamePart& UninterpretedOption_NamePart::default_instan
ce() { |
12618 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 12190 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
12619 return *internal_default_instance(); | 12191 return *default_instance_; |
12620 } | 12192 } |
12621 | 12193 |
| 12194 UninterpretedOption_NamePart* UninterpretedOption_NamePart::default_instance_ =
NULL; |
| 12195 |
12622 UninterpretedOption_NamePart* UninterpretedOption_NamePart::New(::google::protob
uf::Arena* arena) const { | 12196 UninterpretedOption_NamePart* UninterpretedOption_NamePart::New(::google::protob
uf::Arena* arena) const { |
12623 UninterpretedOption_NamePart* n = new UninterpretedOption_NamePart; | 12197 UninterpretedOption_NamePart* n = new UninterpretedOption_NamePart; |
12624 if (arena != NULL) { | 12198 if (arena != NULL) { |
12625 arena->Own(n); | 12199 arena->Own(n); |
12626 } | 12200 } |
12627 return n; | 12201 return n; |
12628 } | 12202 } |
12629 | 12203 |
12630 void UninterpretedOption_NamePart::Clear() { | 12204 void UninterpretedOption_NamePart::Clear() { |
12631 // @@protoc_insertion_point(message_clear_start:google.protobuf.UninterpretedOpt
ion.NamePart) | 12205 // @@protoc_insertion_point(message_clear_start:google.protobuf.UninterpretedOpt
ion.NamePart) |
12632 if (has_name_part()) { | 12206 if (_has_bits_[0 / 32] & 3u) { |
12633 GOOGLE_DCHECK(!name_part_.IsDefault(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited())); | 12207 if (has_name_part()) { |
12634 (*name_part_.UnsafeRawStringPointer())->clear(); | 12208 name_part_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); |
| 12209 } |
| 12210 is_extension_ = false; |
12635 } | 12211 } |
12636 is_extension_ = false; | 12212 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
12637 _has_bits_.Clear(); | 12213 if (_internal_metadata_.have_unknown_fields()) { |
12638 _internal_metadata_.Clear(); | 12214 mutable_unknown_fields()->Clear(); |
| 12215 } |
12639 } | 12216 } |
12640 | 12217 |
12641 bool UninterpretedOption_NamePart::MergePartialFromCodedStream( | 12218 bool UninterpretedOption_NamePart::MergePartialFromCodedStream( |
12642 ::google::protobuf::io::CodedInputStream* input) { | 12219 ::google::protobuf::io::CodedInputStream* input) { |
12643 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 12220 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
12644 ::google::protobuf::uint32 tag; | 12221 ::google::protobuf::uint32 tag; |
12645 // @@protoc_insertion_point(parse_start:google.protobuf.UninterpretedOption.Na
mePart) | 12222 // @@protoc_insertion_point(parse_start:google.protobuf.UninterpretedOption.Na
mePart) |
12646 for (;;) { | 12223 for (;;) { |
12647 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 12224 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
12648 tag = p.first; | 12225 tag = p.first; |
12649 if (!p.second) goto handle_unusual; | 12226 if (!p.second) goto handle_unusual; |
12650 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 12227 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
12651 // required string name_part = 1; | 12228 // required string name_part = 1; |
12652 case 1: { | 12229 case 1: { |
12653 if (tag == 10u) { | 12230 if (tag == 10) { |
12654 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 12231 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
12655 input, this->mutable_name_part())); | 12232 input, this->mutable_name_part())); |
12656 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 12233 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
12657 this->name_part().data(), this->name_part().length(), | 12234 this->name_part().data(), this->name_part().length(), |
12658 ::google::protobuf::internal::WireFormat::PARSE, | 12235 ::google::protobuf::internal::WireFormat::PARSE, |
12659 "google.protobuf.UninterpretedOption.NamePart.name_part"); | 12236 "google.protobuf.UninterpretedOption.NamePart.name_part"); |
12660 } else { | 12237 } else { |
12661 goto handle_unusual; | 12238 goto handle_unusual; |
12662 } | 12239 } |
| 12240 if (input->ExpectTag(16)) goto parse_is_extension; |
12663 break; | 12241 break; |
12664 } | 12242 } |
12665 | 12243 |
12666 // required bool is_extension = 2; | 12244 // required bool is_extension = 2; |
12667 case 2: { | 12245 case 2: { |
12668 if (tag == 16u) { | 12246 if (tag == 16) { |
12669 set_has_is_extension(); | 12247 parse_is_extension: |
12670 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 12248 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
12671 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 12249 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
12672 input, &is_extension_))); | 12250 input, &is_extension_))); |
| 12251 set_has_is_extension(); |
12673 } else { | 12252 } else { |
12674 goto handle_unusual; | 12253 goto handle_unusual; |
12675 } | 12254 } |
| 12255 if (input->ExpectAtEnd()) goto success; |
12676 break; | 12256 break; |
12677 } | 12257 } |
12678 | 12258 |
12679 default: { | 12259 default: { |
12680 handle_unusual: | 12260 handle_unusual: |
12681 if (tag == 0 || | 12261 if (tag == 0 || |
12682 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 12262 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
12683 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 12263 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
12684 goto success; | 12264 goto success; |
12685 } | 12265 } |
(...skipping 30 matching lines...) Expand all Loading... |
12716 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_extensio
n(), output); | 12296 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_extensio
n(), output); |
12717 } | 12297 } |
12718 | 12298 |
12719 if (_internal_metadata_.have_unknown_fields()) { | 12299 if (_internal_metadata_.have_unknown_fields()) { |
12720 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 12300 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
12721 unknown_fields(), output); | 12301 unknown_fields(), output); |
12722 } | 12302 } |
12723 // @@protoc_insertion_point(serialize_end:google.protobuf.UninterpretedOption.
NamePart) | 12303 // @@protoc_insertion_point(serialize_end:google.protobuf.UninterpretedOption.
NamePart) |
12724 } | 12304 } |
12725 | 12305 |
12726 ::google::protobuf::uint8* UninterpretedOption_NamePart::InternalSerializeWithCa
chedSizesToArray( | 12306 ::google::protobuf::uint8* UninterpretedOption_NamePart::SerializeWithCachedSize
sToArray( |
12727 bool deterministic, ::google::protobuf::uint8* target) const { | 12307 ::google::protobuf::uint8* target) const { |
12728 (void)deterministic; // Unused | |
12729 // @@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) |
12730 // required string name_part = 1; | 12309 // required string name_part = 1; |
12731 if (has_name_part()) { | 12310 if (has_name_part()) { |
12732 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 12311 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
12733 this->name_part().data(), this->name_part().length(), | 12312 this->name_part().data(), this->name_part().length(), |
12734 ::google::protobuf::internal::WireFormat::SERIALIZE, | 12313 ::google::protobuf::internal::WireFormat::SERIALIZE, |
12735 "google.protobuf.UninterpretedOption.NamePart.name_part"); | 12314 "google.protobuf.UninterpretedOption.NamePart.name_part"); |
12736 target = | 12315 target = |
12737 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 12316 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
12738 1, this->name_part(), target); | 12317 1, this->name_part(), target); |
12739 } | 12318 } |
12740 | 12319 |
12741 // required bool is_extension = 2; | 12320 // required bool is_extension = 2; |
12742 if (has_is_extension()) { | 12321 if (has_is_extension()) { |
12743 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); |
12744 } | 12323 } |
12745 | 12324 |
12746 if (_internal_metadata_.have_unknown_fields()) { | 12325 if (_internal_metadata_.have_unknown_fields()) { |
12747 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 12326 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
12748 unknown_fields(), target); | 12327 unknown_fields(), target); |
12749 } | 12328 } |
12750 // @@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) |
12751 return target; | 12330 return target; |
12752 } | 12331 } |
12753 | 12332 |
12754 size_t UninterpretedOption_NamePart::RequiredFieldsByteSizeFallback() const { | 12333 int UninterpretedOption_NamePart::RequiredFieldsByteSizeFallback() const { |
12755 // @@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) |
12756 size_t total_size = 0; | 12335 int total_size = 0; |
12757 | 12336 |
12758 if (has_name_part()) { | 12337 if (has_name_part()) { |
12759 // required string name_part = 1; | 12338 // required string name_part = 1; |
12760 total_size += 1 + | 12339 total_size += 1 + |
12761 ::google::protobuf::internal::WireFormatLite::StringSize( | 12340 ::google::protobuf::internal::WireFormatLite::StringSize( |
12762 this->name_part()); | 12341 this->name_part()); |
12763 } | 12342 } |
12764 | 12343 |
12765 if (has_is_extension()) { | 12344 if (has_is_extension()) { |
12766 // required bool is_extension = 2; | 12345 // required bool is_extension = 2; |
12767 total_size += 1 + 1; | 12346 total_size += 1 + 1; |
12768 } | 12347 } |
12769 | 12348 |
12770 return total_size; | 12349 return total_size; |
12771 } | 12350 } |
12772 size_t UninterpretedOption_NamePart::ByteSizeLong() const { | 12351 int UninterpretedOption_NamePart::ByteSize() const { |
12773 // @@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) |
12774 size_t total_size = 0; | 12353 int total_size = 0; |
12775 | 12354 |
12776 if (_internal_metadata_.have_unknown_fields()) { | |
12777 total_size += | |
12778 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | |
12779 unknown_fields()); | |
12780 } | |
12781 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. |
12782 // required string name_part = 1; | 12356 // required string name_part = 1; |
12783 total_size += 1 + | 12357 total_size += 1 + |
12784 ::google::protobuf::internal::WireFormatLite::StringSize( | 12358 ::google::protobuf::internal::WireFormatLite::StringSize( |
12785 this->name_part()); | 12359 this->name_part()); |
12786 | 12360 |
12787 // required bool is_extension = 2; | 12361 // required bool is_extension = 2; |
12788 total_size += 1 + 1; | 12362 total_size += 1 + 1; |
12789 | 12363 |
12790 } else { | 12364 } else { |
12791 total_size += RequiredFieldsByteSizeFallback(); | 12365 total_size += RequiredFieldsByteSizeFallback(); |
12792 } | 12366 } |
12793 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 } |
12794 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 12372 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
12795 _cached_size_ = cached_size; | 12373 _cached_size_ = total_size; |
12796 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 12374 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
12797 return total_size; | 12375 return total_size; |
12798 } | 12376 } |
12799 | 12377 |
12800 void UninterpretedOption_NamePart::MergeFrom(const ::google::protobuf::Message&
from) { | 12378 void UninterpretedOption_NamePart::MergeFrom(const ::google::protobuf::Message&
from) { |
12801 // @@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) |
12802 GOOGLE_DCHECK_NE(&from, this); | 12380 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
12803 const UninterpretedOption_NamePart* source = | 12381 const UninterpretedOption_NamePart* source = |
12804 ::google::protobuf::internal::DynamicCastToGenerated<const UninterpretedOp
tion_NamePart>( | 12382 ::google::protobuf::internal::DynamicCastToGenerated<const UninterpretedOp
tion_NamePart>( |
12805 &from); | 12383 &from); |
12806 if (source == NULL) { | 12384 if (source == NULL) { |
12807 // @@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) |
12808 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 12386 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
12809 } else { | 12387 } else { |
12810 // @@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) |
12811 MergeFrom(*source); | 12389 MergeFrom(*source); |
12812 } | 12390 } |
12813 } | 12391 } |
12814 | 12392 |
12815 void UninterpretedOption_NamePart::MergeFrom(const UninterpretedOption_NamePart&
from) { | 12393 void UninterpretedOption_NamePart::MergeFrom(const UninterpretedOption_NamePart&
from) { |
12816 // @@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) |
12817 GOOGLE_DCHECK_NE(&from, this); | 12395 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
12818 _internal_metadata_.MergeFrom(from._internal_metadata_); | 12396 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
12819 if (from._has_bits_[0 / 32] & 3u) { | |
12820 if (from.has_name_part()) { | 12397 if (from.has_name_part()) { |
12821 set_has_name_part(); | 12398 set_has_name_part(); |
12822 name_part_.AssignWithDefault(&::google::protobuf::internal::GetEmptyString
AlreadyInited(), from.name_part_); | 12399 name_part_.AssignWithDefault(&::google::protobuf::internal::GetEmptyString
AlreadyInited(), from.name_part_); |
12823 } | 12400 } |
12824 if (from.has_is_extension()) { | 12401 if (from.has_is_extension()) { |
12825 set_is_extension(from.is_extension()); | 12402 set_is_extension(from.is_extension()); |
12826 } | 12403 } |
12827 } | 12404 } |
| 12405 if (from._internal_metadata_.have_unknown_fields()) { |
| 12406 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 12407 } |
12828 } | 12408 } |
12829 | 12409 |
12830 void UninterpretedOption_NamePart::CopyFrom(const ::google::protobuf::Message& f
rom) { | 12410 void UninterpretedOption_NamePart::CopyFrom(const ::google::protobuf::Message& f
rom) { |
12831 // @@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) |
12832 if (&from == this) return; | 12412 if (&from == this) return; |
12833 Clear(); | 12413 Clear(); |
12834 MergeFrom(from); | 12414 MergeFrom(from); |
12835 } | 12415 } |
12836 | 12416 |
12837 void UninterpretedOption_NamePart::CopyFrom(const UninterpretedOption_NamePart&
from) { | 12417 void UninterpretedOption_NamePart::CopyFrom(const UninterpretedOption_NamePart&
from) { |
12838 // @@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) |
12839 if (&from == this) return; | 12419 if (&from == this) return; |
12840 Clear(); | 12420 Clear(); |
12841 MergeFrom(from); | 12421 MergeFrom(from); |
12842 } | 12422 } |
12843 | 12423 |
12844 bool UninterpretedOption_NamePart::IsInitialized() const { | 12424 bool UninterpretedOption_NamePart::IsInitialized() const { |
12845 if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; | 12425 if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; |
| 12426 |
12846 return true; | 12427 return true; |
12847 } | 12428 } |
12848 | 12429 |
12849 void UninterpretedOption_NamePart::Swap(UninterpretedOption_NamePart* other) { | 12430 void UninterpretedOption_NamePart::Swap(UninterpretedOption_NamePart* other) { |
12850 if (other == this) return; | 12431 if (other == this) return; |
12851 InternalSwap(other); | 12432 InternalSwap(other); |
12852 } | 12433 } |
12853 void UninterpretedOption_NamePart::InternalSwap(UninterpretedOption_NamePart* ot
her) { | 12434 void UninterpretedOption_NamePart::InternalSwap(UninterpretedOption_NamePart* ot
her) { |
12854 name_part_.Swap(&other->name_part_); | 12435 name_part_.Swap(&other->name_part_); |
12855 std::swap(is_extension_, other->is_extension_); | 12436 std::swap(is_extension_, other->is_extension_); |
12856 std::swap(_has_bits_[0], other->_has_bits_[0]); | 12437 std::swap(_has_bits_[0], other->_has_bits_[0]); |
12857 _internal_metadata_.Swap(&other->_internal_metadata_); | 12438 _internal_metadata_.Swap(&other->_internal_metadata_); |
12858 std::swap(_cached_size_, other->_cached_size_); | 12439 std::swap(_cached_size_, other->_cached_size_); |
12859 } | 12440 } |
12860 | 12441 |
12861 ::google::protobuf::Metadata UninterpretedOption_NamePart::GetMetadata() const { | 12442 ::google::protobuf::Metadata UninterpretedOption_NamePart::GetMetadata() const { |
12862 protobuf_AssignDescriptorsOnce(); | 12443 protobuf_AssignDescriptorsOnce(); |
12863 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; |
12864 } | 12448 } |
12865 | 12449 |
12866 #if PROTOBUF_INLINE_NOT_IN_HEADERS | |
12867 // UninterpretedOption_NamePart | |
12868 | 12450 |
12869 // required string name_part = 1; | 12451 // ------------------------------------------------------------------- |
12870 bool UninterpretedOption_NamePart::has_name_part() const { | |
12871 return (_has_bits_[0] & 0x00000001u) != 0; | |
12872 } | |
12873 void UninterpretedOption_NamePart::set_has_name_part() { | |
12874 _has_bits_[0] |= 0x00000001u; | |
12875 } | |
12876 void UninterpretedOption_NamePart::clear_has_name_part() { | |
12877 _has_bits_[0] &= ~0x00000001u; | |
12878 } | |
12879 void UninterpretedOption_NamePart::clear_name_part() { | |
12880 name_part_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); | |
12881 clear_has_name_part(); | |
12882 } | |
12883 const ::std::string& UninterpretedOption_NamePart::name_part() const { | |
12884 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.Name
Part.name_part) | |
12885 return name_part_.GetNoArena(); | |
12886 } | |
12887 void UninterpretedOption_NamePart::set_name_part(const ::std::string& value) { | |
12888 set_has_name_part(); | |
12889 name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), value); | |
12890 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.Name
Part.name_part) | |
12891 } | |
12892 #if LANG_CXX11 | |
12893 void UninterpretedOption_NamePart::set_name_part(::std::string&& value) { | |
12894 set_has_name_part(); | |
12895 name_part_.SetNoArena( | |
12896 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va
lue)); | |
12897 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.UninterpretedOpti
on.NamePart.name_part) | |
12898 } | |
12899 #endif | |
12900 void UninterpretedOption_NamePart::set_name_part(const char* value) { | |
12901 set_has_name_part(); | |
12902 name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), ::std::string(value)); | |
12903 // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption
.NamePart.name_part) | |
12904 } | |
12905 void UninterpretedOption_NamePart::set_name_part(const char* value, size_t size)
{ | |
12906 set_has_name_part(); | |
12907 name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), | |
12908 ::std::string(reinterpret_cast<const char*>(value), size)); | |
12909 // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOpt
ion.NamePart.name_part) | |
12910 } | |
12911 ::std::string* UninterpretedOption_NamePart::mutable_name_part() { | |
12912 set_has_name_part(); | |
12913 // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.
NamePart.name_part) | |
12914 return name_part_.MutableNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); | |
12915 } | |
12916 ::std::string* UninterpretedOption_NamePart::release_name_part() { | |
12917 // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.
NamePart.name_part) | |
12918 clear_has_name_part(); | |
12919 return name_part_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); | |
12920 } | |
12921 void UninterpretedOption_NamePart::set_allocated_name_part(::std::string* name_p
art) { | |
12922 if (name_part != NULL) { | |
12923 set_has_name_part(); | |
12924 } else { | |
12925 clear_has_name_part(); | |
12926 } | |
12927 name_part_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited(), name_part); | |
12928 // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedO
ption.NamePart.name_part) | |
12929 } | |
12930 | |
12931 // required bool is_extension = 2; | |
12932 bool UninterpretedOption_NamePart::has_is_extension() const { | |
12933 return (_has_bits_[0] & 0x00000002u) != 0; | |
12934 } | |
12935 void UninterpretedOption_NamePart::set_has_is_extension() { | |
12936 _has_bits_[0] |= 0x00000002u; | |
12937 } | |
12938 void UninterpretedOption_NamePart::clear_has_is_extension() { | |
12939 _has_bits_[0] &= ~0x00000002u; | |
12940 } | |
12941 void UninterpretedOption_NamePart::clear_is_extension() { | |
12942 is_extension_ = false; | |
12943 clear_has_is_extension(); | |
12944 } | |
12945 bool UninterpretedOption_NamePart::is_extension() const { | |
12946 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.Name
Part.is_extension) | |
12947 return is_extension_; | |
12948 } | |
12949 void UninterpretedOption_NamePart::set_is_extension(bool value) { | |
12950 set_has_is_extension(); | |
12951 is_extension_ = value; | |
12952 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.Name
Part.is_extension) | |
12953 } | |
12954 | |
12955 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | |
12956 | |
12957 // =================================================================== | |
12958 | 12452 |
12959 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 12453 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
12960 const int UninterpretedOption::kNameFieldNumber; | 12454 const int UninterpretedOption::kNameFieldNumber; |
12961 const int UninterpretedOption::kIdentifierValueFieldNumber; | 12455 const int UninterpretedOption::kIdentifierValueFieldNumber; |
12962 const int UninterpretedOption::kPositiveIntValueFieldNumber; | 12456 const int UninterpretedOption::kPositiveIntValueFieldNumber; |
12963 const int UninterpretedOption::kNegativeIntValueFieldNumber; | 12457 const int UninterpretedOption::kNegativeIntValueFieldNumber; |
12964 const int UninterpretedOption::kDoubleValueFieldNumber; | 12458 const int UninterpretedOption::kDoubleValueFieldNumber; |
12965 const int UninterpretedOption::kStringValueFieldNumber; | 12459 const int UninterpretedOption::kStringValueFieldNumber; |
12966 const int UninterpretedOption::kAggregateValueFieldNumber; | 12460 const int UninterpretedOption::kAggregateValueFieldNumber; |
12967 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 12461 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
12968 | 12462 |
12969 UninterpretedOption::UninterpretedOption() | 12463 UninterpretedOption::UninterpretedOption() |
12970 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 12464 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
12971 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
12972 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
12973 } | |
12974 SharedCtor(); | 12465 SharedCtor(); |
12975 // @@protoc_insertion_point(constructor:google.protobuf.UninterpretedOption) | 12466 // @@protoc_insertion_point(constructor:google.protobuf.UninterpretedOption) |
12976 } | 12467 } |
| 12468 |
| 12469 void UninterpretedOption::InitAsDefaultInstance() { |
| 12470 } |
| 12471 |
12977 UninterpretedOption::UninterpretedOption(const UninterpretedOption& from) | 12472 UninterpretedOption::UninterpretedOption(const UninterpretedOption& from) |
12978 : ::google::protobuf::Message(), | 12473 : ::google::protobuf::Message(), |
12979 _internal_metadata_(NULL), | 12474 _internal_metadata_(NULL) { |
12980 _has_bits_(from._has_bits_), | 12475 SharedCtor(); |
12981 _cached_size_(0), | 12476 MergeFrom(from); |
12982 name_(from.name_) { | |
12983 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
12984 identifier_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); | |
12985 if (from.has_identifier_value()) { | |
12986 identifier_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited(), from.identifier_value_); | |
12987 } | |
12988 string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); | |
12989 if (from.has_string_value()) { | |
12990 string_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited(), from.string_value_); | |
12991 } | |
12992 aggregate_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); | |
12993 if (from.has_aggregate_value()) { | |
12994 aggregate_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited(), from.aggregate_value_); | |
12995 } | |
12996 ::memcpy(&positive_int_value_, &from.positive_int_value_, | |
12997 reinterpret_cast<char*>(&double_value_) - | |
12998 reinterpret_cast<char*>(&positive_int_value_) + sizeof(double_value_)); | |
12999 // @@protoc_insertion_point(copy_constructor:google.protobuf.UninterpretedOpti
on) | 12477 // @@protoc_insertion_point(copy_constructor:google.protobuf.UninterpretedOpti
on) |
13000 } | 12478 } |
13001 | 12479 |
13002 void UninterpretedOption::SharedCtor() { | 12480 void UninterpretedOption::SharedCtor() { |
| 12481 ::google::protobuf::internal::GetEmptyString(); |
13003 _cached_size_ = 0; | 12482 _cached_size_ = 0; |
13004 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; |
13005 string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); | 12487 string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); |
13006 aggregate_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); | 12488 aggregate_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); |
13007 ::memset(&positive_int_value_, 0, reinterpret_cast<char*>(&double_value_) - | 12489 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
13008 reinterpret_cast<char*>(&positive_int_value_) + sizeof(double_value_)); | |
13009 } | 12490 } |
13010 | 12491 |
13011 UninterpretedOption::~UninterpretedOption() { | 12492 UninterpretedOption::~UninterpretedOption() { |
13012 // @@protoc_insertion_point(destructor:google.protobuf.UninterpretedOption) | 12493 // @@protoc_insertion_point(destructor:google.protobuf.UninterpretedOption) |
13013 SharedDtor(); | 12494 SharedDtor(); |
13014 } | 12495 } |
13015 | 12496 |
13016 void UninterpretedOption::SharedDtor() { | 12497 void UninterpretedOption::SharedDtor() { |
13017 identifier_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); | 12498 identifier_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); |
13018 string_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); | 12499 string_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); |
13019 aggregate_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringA
lreadyInited()); | 12500 aggregate_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringA
lreadyInited()); |
| 12501 if (this != default_instance_) { |
| 12502 } |
13020 } | 12503 } |
13021 | 12504 |
13022 void UninterpretedOption::SetCachedSize(int size) const { | 12505 void UninterpretedOption::SetCachedSize(int size) const { |
13023 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 12506 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
13024 _cached_size_ = size; | 12507 _cached_size_ = size; |
13025 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 12508 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
13026 } | 12509 } |
13027 const ::google::protobuf::Descriptor* UninterpretedOption::descriptor() { | 12510 const ::google::protobuf::Descriptor* UninterpretedOption::descriptor() { |
13028 protobuf_AssignDescriptorsOnce(); | 12511 protobuf_AssignDescriptorsOnce(); |
13029 return file_level_metadata[20].descriptor; | 12512 return UninterpretedOption_descriptor_; |
13030 } | 12513 } |
13031 | 12514 |
13032 const UninterpretedOption& UninterpretedOption::default_instance() { | 12515 const UninterpretedOption& UninterpretedOption::default_instance() { |
13033 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 12516 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
13034 return *internal_default_instance(); | 12517 return *default_instance_; |
13035 } | 12518 } |
13036 | 12519 |
| 12520 UninterpretedOption* UninterpretedOption::default_instance_ = NULL; |
| 12521 |
13037 UninterpretedOption* UninterpretedOption::New(::google::protobuf::Arena* arena)
const { | 12522 UninterpretedOption* UninterpretedOption::New(::google::protobuf::Arena* arena)
const { |
13038 UninterpretedOption* n = new UninterpretedOption; | 12523 UninterpretedOption* n = new UninterpretedOption; |
13039 if (arena != NULL) { | 12524 if (arena != NULL) { |
13040 arena->Own(n); | 12525 arena->Own(n); |
13041 } | 12526 } |
13042 return n; | 12527 return n; |
13043 } | 12528 } |
13044 | 12529 |
13045 void UninterpretedOption::Clear() { | 12530 void UninterpretedOption::Clear() { |
13046 // @@protoc_insertion_point(message_clear_start:google.protobuf.UninterpretedOpt
ion) | 12531 // @@protoc_insertion_point(message_clear_start:google.protobuf.UninterpretedOpt
ion) |
13047 name_.Clear(); | 12532 #if defined(__clang__) |
13048 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_); |
13049 if (has_identifier_value()) { | 12550 if (has_identifier_value()) { |
13050 GOOGLE_DCHECK(!identifier_value_.IsDefault(&::google::protobuf::internal::
GetEmptyStringAlreadyInited())); | 12551 identifier_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEm
ptyStringAlreadyInited()); |
13051 (*identifier_value_.UnsafeRawStringPointer())->clear(); | |
13052 } | 12552 } |
13053 if (has_string_value()) { | 12553 if (has_string_value()) { |
13054 GOOGLE_DCHECK(!string_value_.IsDefault(&::google::protobuf::internal::GetE
mptyStringAlreadyInited())); | 12554 string_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited()); |
13055 (*string_value_.UnsafeRawStringPointer())->clear(); | |
13056 } | 12555 } |
13057 if (has_aggregate_value()) { | 12556 if (has_aggregate_value()) { |
13058 GOOGLE_DCHECK(!aggregate_value_.IsDefault(&::google::protobuf::internal::G
etEmptyStringAlreadyInited())); | 12557 aggregate_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmp
tyStringAlreadyInited()); |
13059 (*aggregate_value_.UnsafeRawStringPointer())->clear(); | |
13060 } | 12558 } |
13061 } | 12559 } |
13062 if (_has_bits_[0 / 32] & 56u) { | 12560 |
13063 ::memset(&positive_int_value_, 0, reinterpret_cast<char*>(&double_value_) - | 12561 #undef ZR_HELPER_ |
13064 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(); |
13065 } | 12568 } |
13066 _has_bits_.Clear(); | |
13067 _internal_metadata_.Clear(); | |
13068 } | 12569 } |
13069 | 12570 |
13070 bool UninterpretedOption::MergePartialFromCodedStream( | 12571 bool UninterpretedOption::MergePartialFromCodedStream( |
13071 ::google::protobuf::io::CodedInputStream* input) { | 12572 ::google::protobuf::io::CodedInputStream* input) { |
13072 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 12573 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
13073 ::google::protobuf::uint32 tag; | 12574 ::google::protobuf::uint32 tag; |
13074 // @@protoc_insertion_point(parse_start:google.protobuf.UninterpretedOption) | 12575 // @@protoc_insertion_point(parse_start:google.protobuf.UninterpretedOption) |
13075 for (;;) { | 12576 for (;;) { |
13076 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 12577 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
13077 tag = p.first; | 12578 tag = p.first; |
13078 if (!p.second) goto handle_unusual; | 12579 if (!p.second) goto handle_unusual; |
13079 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 12580 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
13080 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; | 12581 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; |
13081 case 2: { | 12582 case 2: { |
13082 if (tag == 18u) { | 12583 if (tag == 18) { |
13083 DO_(input->IncrementRecursionDepth()); | 12584 DO_(input->IncrementRecursionDepth()); |
| 12585 parse_loop_name: |
13084 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 12586 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
13085 input, add_name())); | 12587 input, add_name())); |
13086 } else { | 12588 } else { |
13087 goto handle_unusual; | 12589 goto handle_unusual; |
13088 } | 12590 } |
| 12591 if (input->ExpectTag(18)) goto parse_loop_name; |
13089 input->UnsafeDecrementRecursionDepth(); | 12592 input->UnsafeDecrementRecursionDepth(); |
| 12593 if (input->ExpectTag(26)) goto parse_identifier_value; |
13090 break; | 12594 break; |
13091 } | 12595 } |
13092 | 12596 |
13093 // optional string identifier_value = 3; | 12597 // optional string identifier_value = 3; |
13094 case 3: { | 12598 case 3: { |
13095 if (tag == 26u) { | 12599 if (tag == 26) { |
| 12600 parse_identifier_value: |
13096 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 12601 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
13097 input, this->mutable_identifier_value())); | 12602 input, this->mutable_identifier_value())); |
13098 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 12603 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
13099 this->identifier_value().data(), this->identifier_value().length(), | 12604 this->identifier_value().data(), this->identifier_value().length(), |
13100 ::google::protobuf::internal::WireFormat::PARSE, | 12605 ::google::protobuf::internal::WireFormat::PARSE, |
13101 "google.protobuf.UninterpretedOption.identifier_value"); | 12606 "google.protobuf.UninterpretedOption.identifier_value"); |
13102 } else { | 12607 } else { |
13103 goto handle_unusual; | 12608 goto handle_unusual; |
13104 } | 12609 } |
| 12610 if (input->ExpectTag(32)) goto parse_positive_int_value; |
13105 break; | 12611 break; |
13106 } | 12612 } |
13107 | 12613 |
13108 // optional uint64 positive_int_value = 4; | 12614 // optional uint64 positive_int_value = 4; |
13109 case 4: { | 12615 case 4: { |
13110 if (tag == 32u) { | 12616 if (tag == 32) { |
13111 set_has_positive_int_value(); | 12617 parse_positive_int_value: |
13112 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 12618 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
13113 ::google::protobuf::uint64, ::google::protobuf::internal::Wir
eFormatLite::TYPE_UINT64>( | 12619 ::google::protobuf::uint64, ::google::protobuf::internal::Wir
eFormatLite::TYPE_UINT64>( |
13114 input, &positive_int_value_))); | 12620 input, &positive_int_value_))); |
| 12621 set_has_positive_int_value(); |
13115 } else { | 12622 } else { |
13116 goto handle_unusual; | 12623 goto handle_unusual; |
13117 } | 12624 } |
| 12625 if (input->ExpectTag(40)) goto parse_negative_int_value; |
13118 break; | 12626 break; |
13119 } | 12627 } |
13120 | 12628 |
13121 // optional int64 negative_int_value = 5; | 12629 // optional int64 negative_int_value = 5; |
13122 case 5: { | 12630 case 5: { |
13123 if (tag == 40u) { | 12631 if (tag == 40) { |
13124 set_has_negative_int_value(); | 12632 parse_negative_int_value: |
13125 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 12633 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
13126 ::google::protobuf::int64, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT64>( | 12634 ::google::protobuf::int64, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT64>( |
13127 input, &negative_int_value_))); | 12635 input, &negative_int_value_))); |
| 12636 set_has_negative_int_value(); |
13128 } else { | 12637 } else { |
13129 goto handle_unusual; | 12638 goto handle_unusual; |
13130 } | 12639 } |
| 12640 if (input->ExpectTag(49)) goto parse_double_value; |
13131 break; | 12641 break; |
13132 } | 12642 } |
13133 | 12643 |
13134 // optional double double_value = 6; | 12644 // optional double double_value = 6; |
13135 case 6: { | 12645 case 6: { |
13136 if (tag == 49u) { | 12646 if (tag == 49) { |
13137 set_has_double_value(); | 12647 parse_double_value: |
13138 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 12648 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
13139 double, ::google::protobuf::internal::WireFormatLite::TYPE_DO
UBLE>( | 12649 double, ::google::protobuf::internal::WireFormatLite::TYPE_DO
UBLE>( |
13140 input, &double_value_))); | 12650 input, &double_value_))); |
| 12651 set_has_double_value(); |
13141 } else { | 12652 } else { |
13142 goto handle_unusual; | 12653 goto handle_unusual; |
13143 } | 12654 } |
| 12655 if (input->ExpectTag(58)) goto parse_string_value; |
13144 break; | 12656 break; |
13145 } | 12657 } |
13146 | 12658 |
13147 // optional bytes string_value = 7; | 12659 // optional bytes string_value = 7; |
13148 case 7: { | 12660 case 7: { |
13149 if (tag == 58u) { | 12661 if (tag == 58) { |
| 12662 parse_string_value: |
13150 DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( | 12663 DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
13151 input, this->mutable_string_value())); | 12664 input, this->mutable_string_value())); |
13152 } else { | 12665 } else { |
13153 goto handle_unusual; | 12666 goto handle_unusual; |
13154 } | 12667 } |
| 12668 if (input->ExpectTag(66)) goto parse_aggregate_value; |
13155 break; | 12669 break; |
13156 } | 12670 } |
13157 | 12671 |
13158 // optional string aggregate_value = 8; | 12672 // optional string aggregate_value = 8; |
13159 case 8: { | 12673 case 8: { |
13160 if (tag == 66u) { | 12674 if (tag == 66) { |
| 12675 parse_aggregate_value: |
13161 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 12676 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
13162 input, this->mutable_aggregate_value())); | 12677 input, this->mutable_aggregate_value())); |
13163 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 12678 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
13164 this->aggregate_value().data(), this->aggregate_value().length(), | 12679 this->aggregate_value().data(), this->aggregate_value().length(), |
13165 ::google::protobuf::internal::WireFormat::PARSE, | 12680 ::google::protobuf::internal::WireFormat::PARSE, |
13166 "google.protobuf.UninterpretedOption.aggregate_value"); | 12681 "google.protobuf.UninterpretedOption.aggregate_value"); |
13167 } else { | 12682 } else { |
13168 goto handle_unusual; | 12683 goto handle_unusual; |
13169 } | 12684 } |
| 12685 if (input->ExpectAtEnd()) goto success; |
13170 break; | 12686 break; |
13171 } | 12687 } |
13172 | 12688 |
13173 default: { | 12689 default: { |
13174 handle_unusual: | 12690 handle_unusual: |
13175 if (tag == 0 || | 12691 if (tag == 0 || |
13176 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 12692 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
13177 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 12693 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
13178 goto success; | 12694 goto success; |
13179 } | 12695 } |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13242 8, this->aggregate_value(), output); | 12758 8, this->aggregate_value(), output); |
13243 } | 12759 } |
13244 | 12760 |
13245 if (_internal_metadata_.have_unknown_fields()) { | 12761 if (_internal_metadata_.have_unknown_fields()) { |
13246 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 12762 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
13247 unknown_fields(), output); | 12763 unknown_fields(), output); |
13248 } | 12764 } |
13249 // @@protoc_insertion_point(serialize_end:google.protobuf.UninterpretedOption) | 12765 // @@protoc_insertion_point(serialize_end:google.protobuf.UninterpretedOption) |
13250 } | 12766 } |
13251 | 12767 |
13252 ::google::protobuf::uint8* UninterpretedOption::InternalSerializeWithCachedSizes
ToArray( | 12768 ::google::protobuf::uint8* UninterpretedOption::SerializeWithCachedSizesToArray( |
13253 bool deterministic, ::google::protobuf::uint8* target) const { | 12769 ::google::protobuf::uint8* target) const { |
13254 (void)deterministic; // Unused | |
13255 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Uninterpr
etedOption) | 12770 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Uninterpr
etedOption) |
13256 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; | 12771 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; |
13257 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++) { |
13258 target = ::google::protobuf::internal::WireFormatLite:: | 12773 target = ::google::protobuf::internal::WireFormatLite:: |
13259 InternalWriteMessageNoVirtualToArray( | 12774 WriteMessageNoVirtualToArray( |
13260 2, this->name(i), false, target); | 12775 2, this->name(i), target); |
13261 } | 12776 } |
13262 | 12777 |
13263 // optional string identifier_value = 3; | 12778 // optional string identifier_value = 3; |
13264 if (has_identifier_value()) { | 12779 if (has_identifier_value()) { |
13265 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 12780 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
13266 this->identifier_value().data(), this->identifier_value().length(), | 12781 this->identifier_value().data(), this->identifier_value().length(), |
13267 ::google::protobuf::internal::WireFormat::SERIALIZE, | 12782 ::google::protobuf::internal::WireFormat::SERIALIZE, |
13268 "google.protobuf.UninterpretedOption.identifier_value"); | 12783 "google.protobuf.UninterpretedOption.identifier_value"); |
13269 target = | 12784 target = |
13270 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 12785 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13305 } | 12820 } |
13306 | 12821 |
13307 if (_internal_metadata_.have_unknown_fields()) { | 12822 if (_internal_metadata_.have_unknown_fields()) { |
13308 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 12823 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
13309 unknown_fields(), target); | 12824 unknown_fields(), target); |
13310 } | 12825 } |
13311 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Uninterpret
edOption) | 12826 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Uninterpret
edOption) |
13312 return target; | 12827 return target; |
13313 } | 12828 } |
13314 | 12829 |
13315 size_t UninterpretedOption::ByteSizeLong() const { | 12830 int UninterpretedOption::ByteSize() const { |
13316 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Uninterprete
dOption) | 12831 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Uninterprete
dOption) |
13317 size_t total_size = 0; | 12832 int total_size = 0; |
13318 | 12833 |
13319 if (_internal_metadata_.have_unknown_fields()) { | 12834 if (_has_bits_[1 / 32] & 126u) { |
13320 total_size += | |
13321 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | |
13322 unknown_fields()); | |
13323 } | |
13324 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; | |
13325 { | |
13326 unsigned int count = this->name_size(); | |
13327 total_size += 1UL * count; | |
13328 for (unsigned int i = 0; i < count; i++) { | |
13329 total_size += | |
13330 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
13331 this->name(i)); | |
13332 } | |
13333 } | |
13334 | |
13335 if (_has_bits_[0 / 32] & 63u) { | |
13336 // optional string identifier_value = 3; | 12835 // optional string identifier_value = 3; |
13337 if (has_identifier_value()) { | 12836 if (has_identifier_value()) { |
13338 total_size += 1 + | 12837 total_size += 1 + |
13339 ::google::protobuf::internal::WireFormatLite::StringSize( | 12838 ::google::protobuf::internal::WireFormatLite::StringSize( |
13340 this->identifier_value()); | 12839 this->identifier_value()); |
13341 } | 12840 } |
13342 | 12841 |
13343 // optional bytes string_value = 7; | |
13344 if (has_string_value()) { | |
13345 total_size += 1 + | |
13346 ::google::protobuf::internal::WireFormatLite::BytesSize( | |
13347 this->string_value()); | |
13348 } | |
13349 | |
13350 // optional string aggregate_value = 8; | |
13351 if (has_aggregate_value()) { | |
13352 total_size += 1 + | |
13353 ::google::protobuf::internal::WireFormatLite::StringSize( | |
13354 this->aggregate_value()); | |
13355 } | |
13356 | |
13357 // optional uint64 positive_int_value = 4; | 12842 // optional uint64 positive_int_value = 4; |
13358 if (has_positive_int_value()) { | 12843 if (has_positive_int_value()) { |
13359 total_size += 1 + | 12844 total_size += 1 + |
13360 ::google::protobuf::internal::WireFormatLite::UInt64Size( | 12845 ::google::protobuf::internal::WireFormatLite::UInt64Size( |
13361 this->positive_int_value()); | 12846 this->positive_int_value()); |
13362 } | 12847 } |
13363 | 12848 |
13364 // optional int64 negative_int_value = 5; | 12849 // optional int64 negative_int_value = 5; |
13365 if (has_negative_int_value()) { | 12850 if (has_negative_int_value()) { |
13366 total_size += 1 + | 12851 total_size += 1 + |
13367 ::google::protobuf::internal::WireFormatLite::Int64Size( | 12852 ::google::protobuf::internal::WireFormatLite::Int64Size( |
13368 this->negative_int_value()); | 12853 this->negative_int_value()); |
13369 } | 12854 } |
13370 | 12855 |
13371 // optional double double_value = 6; | 12856 // optional double double_value = 6; |
13372 if (has_double_value()) { | 12857 if (has_double_value()) { |
13373 total_size += 1 + 8; | 12858 total_size += 1 + 8; |
13374 } | 12859 } |
13375 | 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 |
13376 } | 12875 } |
13377 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 } |
13378 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 12889 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
13379 _cached_size_ = cached_size; | 12890 _cached_size_ = total_size; |
13380 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 12891 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
13381 return total_size; | 12892 return total_size; |
13382 } | 12893 } |
13383 | 12894 |
13384 void UninterpretedOption::MergeFrom(const ::google::protobuf::Message& from) { | 12895 void UninterpretedOption::MergeFrom(const ::google::protobuf::Message& from) { |
13385 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Uninter
pretedOption) | 12896 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Uninter
pretedOption) |
13386 GOOGLE_DCHECK_NE(&from, this); | 12897 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
13387 const UninterpretedOption* source = | 12898 const UninterpretedOption* source = |
13388 ::google::protobuf::internal::DynamicCastToGenerated<const UninterpretedOp
tion>( | 12899 ::google::protobuf::internal::DynamicCastToGenerated<const UninterpretedOp
tion>( |
13389 &from); | 12900 &from); |
13390 if (source == NULL) { | 12901 if (source == NULL) { |
13391 // @@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) |
13392 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 12903 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
13393 } else { | 12904 } else { |
13394 // @@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) |
13395 MergeFrom(*source); | 12906 MergeFrom(*source); |
13396 } | 12907 } |
13397 } | 12908 } |
13398 | 12909 |
13399 void UninterpretedOption::MergeFrom(const UninterpretedOption& from) { | 12910 void UninterpretedOption::MergeFrom(const UninterpretedOption& from) { |
13400 // @@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) |
13401 GOOGLE_DCHECK_NE(&from, this); | 12912 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
13402 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
13403 name_.MergeFrom(from.name_); | 12913 name_.MergeFrom(from.name_); |
13404 if (from._has_bits_[0 / 32] & 63u) { | 12914 if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { |
13405 if (from.has_identifier_value()) { | 12915 if (from.has_identifier_value()) { |
13406 set_has_identifier_value(); | 12916 set_has_identifier_value(); |
13407 identifier_value_.AssignWithDefault(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited(), from.identifier_value_); | 12917 identifier_value_.AssignWithDefault(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited(), from.identifier_value_); |
13408 } | 12918 } |
13409 if (from.has_string_value()) { | |
13410 set_has_string_value(); | |
13411 string_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited(), from.string_value_); | |
13412 } | |
13413 if (from.has_aggregate_value()) { | |
13414 set_has_aggregate_value(); | |
13415 aggregate_value_.AssignWithDefault(&::google::protobuf::internal::GetEmpty
StringAlreadyInited(), from.aggregate_value_); | |
13416 } | |
13417 if (from.has_positive_int_value()) { | 12919 if (from.has_positive_int_value()) { |
13418 set_positive_int_value(from.positive_int_value()); | 12920 set_positive_int_value(from.positive_int_value()); |
13419 } | 12921 } |
13420 if (from.has_negative_int_value()) { | 12922 if (from.has_negative_int_value()) { |
13421 set_negative_int_value(from.negative_int_value()); | 12923 set_negative_int_value(from.negative_int_value()); |
13422 } | 12924 } |
13423 if (from.has_double_value()) { | 12925 if (from.has_double_value()) { |
13424 set_double_value(from.double_value()); | 12926 set_double_value(from.double_value()); |
13425 } | 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()); |
13426 } | 12939 } |
13427 } | 12940 } |
13428 | 12941 |
13429 void UninterpretedOption::CopyFrom(const ::google::protobuf::Message& from) { | 12942 void UninterpretedOption::CopyFrom(const ::google::protobuf::Message& from) { |
13430 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Uninterp
retedOption) | 12943 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Uninterp
retedOption) |
13431 if (&from == this) return; | 12944 if (&from == this) return; |
13432 Clear(); | 12945 Clear(); |
13433 MergeFrom(from); | 12946 MergeFrom(from); |
13434 } | 12947 } |
13435 | 12948 |
13436 void UninterpretedOption::CopyFrom(const UninterpretedOption& from) { | 12949 void UninterpretedOption::CopyFrom(const UninterpretedOption& from) { |
13437 // @@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) |
13438 if (&from == this) return; | 12951 if (&from == this) return; |
13439 Clear(); | 12952 Clear(); |
13440 MergeFrom(from); | 12953 MergeFrom(from); |
13441 } | 12954 } |
13442 | 12955 |
13443 bool UninterpretedOption::IsInitialized() const { | 12956 bool UninterpretedOption::IsInitialized() const { |
| 12957 |
13444 if (!::google::protobuf::internal::AllAreInitialized(this->name())) return fal
se; | 12958 if (!::google::protobuf::internal::AllAreInitialized(this->name())) return fal
se; |
13445 return true; | 12959 return true; |
13446 } | 12960 } |
13447 | 12961 |
13448 void UninterpretedOption::Swap(UninterpretedOption* other) { | 12962 void UninterpretedOption::Swap(UninterpretedOption* other) { |
13449 if (other == this) return; | 12963 if (other == this) return; |
13450 InternalSwap(other); | 12964 InternalSwap(other); |
13451 } | 12965 } |
13452 void UninterpretedOption::InternalSwap(UninterpretedOption* other) { | 12966 void UninterpretedOption::InternalSwap(UninterpretedOption* other) { |
13453 name_.UnsafeArenaSwap(&other->name_); | 12967 name_.UnsafeArenaSwap(&other->name_); |
13454 identifier_value_.Swap(&other->identifier_value_); | 12968 identifier_value_.Swap(&other->identifier_value_); |
13455 string_value_.Swap(&other->string_value_); | |
13456 aggregate_value_.Swap(&other->aggregate_value_); | |
13457 std::swap(positive_int_value_, other->positive_int_value_); | 12969 std::swap(positive_int_value_, other->positive_int_value_); |
13458 std::swap(negative_int_value_, other->negative_int_value_); | 12970 std::swap(negative_int_value_, other->negative_int_value_); |
13459 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_); |
13460 std::swap(_has_bits_[0], other->_has_bits_[0]); | 12974 std::swap(_has_bits_[0], other->_has_bits_[0]); |
13461 _internal_metadata_.Swap(&other->_internal_metadata_); | 12975 _internal_metadata_.Swap(&other->_internal_metadata_); |
13462 std::swap(_cached_size_, other->_cached_size_); | 12976 std::swap(_cached_size_, other->_cached_size_); |
13463 } | 12977 } |
13464 | 12978 |
13465 ::google::protobuf::Metadata UninterpretedOption::GetMetadata() const { | 12979 ::google::protobuf::Metadata UninterpretedOption::GetMetadata() const { |
13466 protobuf_AssignDescriptorsOnce(); | 12980 protobuf_AssignDescriptorsOnce(); |
13467 return file_level_metadata[20]; | 12981 ::google::protobuf::Metadata metadata; |
| 12982 metadata.descriptor = UninterpretedOption_descriptor_; |
| 12983 metadata.reflection = UninterpretedOption_reflection_; |
| 12984 return metadata; |
13468 } | 12985 } |
13469 | 12986 |
13470 #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 |
13471 // UninterpretedOption | 13070 // UninterpretedOption |
13472 | 13071 |
13473 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; | 13072 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; |
13474 int UninterpretedOption::name_size() const { | 13073 int UninterpretedOption::name_size() const { |
13475 return name_.size(); | 13074 return name_.size(); |
13476 } | 13075 } |
13477 void UninterpretedOption::clear_name() { | 13076 void UninterpretedOption::clear_name() { |
13478 name_.Clear(); | 13077 name_.Clear(); |
13479 } | 13078 } |
13480 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... |
13495 return &name_; | 13094 return &name_; |
13496 } | 13095 } |
13497 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt
ion_NamePart >& | 13096 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt
ion_NamePart >& |
13498 UninterpretedOption::name() const { | 13097 UninterpretedOption::name() const { |
13499 // @@protoc_insertion_point(field_list:google.protobuf.UninterpretedOption.nam
e) | 13098 // @@protoc_insertion_point(field_list:google.protobuf.UninterpretedOption.nam
e) |
13500 return name_; | 13099 return name_; |
13501 } | 13100 } |
13502 | 13101 |
13503 // optional string identifier_value = 3; | 13102 // optional string identifier_value = 3; |
13504 bool UninterpretedOption::has_identifier_value() const { | 13103 bool UninterpretedOption::has_identifier_value() const { |
13505 return (_has_bits_[0] & 0x00000001u) != 0; | 13104 return (_has_bits_[0] & 0x00000002u) != 0; |
13506 } | 13105 } |
13507 void UninterpretedOption::set_has_identifier_value() { | 13106 void UninterpretedOption::set_has_identifier_value() { |
13508 _has_bits_[0] |= 0x00000001u; | 13107 _has_bits_[0] |= 0x00000002u; |
13509 } | 13108 } |
13510 void UninterpretedOption::clear_has_identifier_value() { | 13109 void UninterpretedOption::clear_has_identifier_value() { |
13511 _has_bits_[0] &= ~0x00000001u; | 13110 _has_bits_[0] &= ~0x00000002u; |
13512 } | 13111 } |
13513 void UninterpretedOption::clear_identifier_value() { | 13112 void UninterpretedOption::clear_identifier_value() { |
13514 identifier_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited()); | 13113 identifier_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited()); |
13515 clear_has_identifier_value(); | 13114 clear_has_identifier_value(); |
13516 } | 13115 } |
13517 const ::std::string& UninterpretedOption::identifier_value() const { | 13116 const ::std::string& UninterpretedOption::identifier_value() const { |
13518 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.iden
tifier_value) | 13117 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.iden
tifier_value) |
13519 return identifier_value_.GetNoArena(); | 13118 return identifier_value_.GetNoArena(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited()); |
13520 } | 13119 } |
13521 void UninterpretedOption::set_identifier_value(const ::std::string& value) { | 13120 void UninterpretedOption::set_identifier_value(const ::std::string& value) { |
13522 set_has_identifier_value(); | 13121 set_has_identifier_value(); |
13523 identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), value); | 13122 identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), value); |
13524 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.iden
tifier_value) | 13123 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.iden
tifier_value) |
13525 } | 13124 } |
13526 #if LANG_CXX11 | 13125 void UninterpretedOption::set_identifier_value(const char* value) { |
13527 void UninterpretedOption::set_identifier_value(::std::string&& value) { | |
13528 set_has_identifier_value(); | |
13529 identifier_value_.SetNoArena( | |
13530 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va
lue)); | |
13531 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.UninterpretedOpti
on.identifier_value) | |
13532 } | |
13533 #endif | |
13534 void UninterpretedOption::set_identifier_value(const char* value) { | |
13535 set_has_identifier_value(); | 13126 set_has_identifier_value(); |
13536 identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), ::std::string(value)); | 13127 identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), ::std::string(value)); |
13537 // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption
.identifier_value) | 13128 // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption
.identifier_value) |
13538 } | 13129 } |
13539 void UninterpretedOption::set_identifier_value(const char* value, size_t size) { | 13130 void UninterpretedOption::set_identifier_value(const char* value, size_t size)
{ |
13540 set_has_identifier_value(); | 13131 set_has_identifier_value(); |
13541 identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), | 13132 identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), |
13542 ::std::string(reinterpret_cast<const char*>(value), size)); | 13133 ::std::string(reinterpret_cast<const char*>(value), size)); |
13543 // @@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) |
13544 } | 13135 } |
13545 ::std::string* UninterpretedOption::mutable_identifier_value() { | 13136 ::std::string* UninterpretedOption::mutable_identifier_value() { |
13546 set_has_identifier_value(); | 13137 set_has_identifier_value(); |
13547 // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.
identifier_value) | 13138 // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.
identifier_value) |
13548 return identifier_value_.MutableNoArena(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited()); | 13139 return identifier_value_.MutableNoArena(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited()); |
13549 } | 13140 } |
13550 ::std::string* UninterpretedOption::release_identifier_value() { | 13141 ::std::string* UninterpretedOption::release_identifier_value() { |
13551 // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.
identifier_value) | 13142 // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.
identifier_value) |
13552 clear_has_identifier_value(); | 13143 clear_has_identifier_value(); |
13553 return identifier_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited()); | 13144 return identifier_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited()); |
13554 } | 13145 } |
13555 void UninterpretedOption::set_allocated_identifier_value(::std::string* identifi
er_value) { | 13146 void UninterpretedOption::set_allocated_identifier_value(::std::string* identif
ier_value) { |
13556 if (identifier_value != NULL) { | 13147 if (identifier_value != NULL) { |
13557 set_has_identifier_value(); | 13148 set_has_identifier_value(); |
13558 } else { | 13149 } else { |
13559 clear_has_identifier_value(); | 13150 clear_has_identifier_value(); |
13560 } | 13151 } |
13561 identifier_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited(), identifier_value); | 13152 identifier_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited(), identifier_value); |
13562 // @@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) |
13563 } | 13154 } |
13564 | 13155 |
13565 // optional uint64 positive_int_value = 4; | 13156 // optional uint64 positive_int_value = 4; |
13566 bool UninterpretedOption::has_positive_int_value() const { | 13157 bool UninterpretedOption::has_positive_int_value() const { |
13567 return (_has_bits_[0] & 0x00000008u) != 0; | 13158 return (_has_bits_[0] & 0x00000004u) != 0; |
13568 } | 13159 } |
13569 void UninterpretedOption::set_has_positive_int_value() { | 13160 void UninterpretedOption::set_has_positive_int_value() { |
13570 _has_bits_[0] |= 0x00000008u; | 13161 _has_bits_[0] |= 0x00000004u; |
13571 } | 13162 } |
13572 void UninterpretedOption::clear_has_positive_int_value() { | 13163 void UninterpretedOption::clear_has_positive_int_value() { |
13573 _has_bits_[0] &= ~0x00000008u; | 13164 _has_bits_[0] &= ~0x00000004u; |
13574 } | 13165 } |
13575 void UninterpretedOption::clear_positive_int_value() { | 13166 void UninterpretedOption::clear_positive_int_value() { |
13576 positive_int_value_ = GOOGLE_ULONGLONG(0); | 13167 positive_int_value_ = GOOGLE_ULONGLONG(0); |
13577 clear_has_positive_int_value(); | 13168 clear_has_positive_int_value(); |
13578 } | 13169 } |
13579 ::google::protobuf::uint64 UninterpretedOption::positive_int_value() const { | 13170 ::google::protobuf::uint64 UninterpretedOption::positive_int_value() const { |
13580 // @@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) |
13581 return positive_int_value_; | 13172 return positive_int_value_; |
13582 } | 13173 } |
13583 void UninterpretedOption::set_positive_int_value(::google::protobuf::uint64 valu
e) { | 13174 void UninterpretedOption::set_positive_int_value(::google::protobuf::uint64 val
ue) { |
13584 set_has_positive_int_value(); | 13175 set_has_positive_int_value(); |
13585 positive_int_value_ = value; | 13176 positive_int_value_ = value; |
13586 // @@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) |
13587 } | 13178 } |
13588 | 13179 |
13589 // optional int64 negative_int_value = 5; | 13180 // optional int64 negative_int_value = 5; |
13590 bool UninterpretedOption::has_negative_int_value() const { | 13181 bool UninterpretedOption::has_negative_int_value() const { |
13591 return (_has_bits_[0] & 0x00000010u) != 0; | 13182 return (_has_bits_[0] & 0x00000008u) != 0; |
13592 } | 13183 } |
13593 void UninterpretedOption::set_has_negative_int_value() { | 13184 void UninterpretedOption::set_has_negative_int_value() { |
13594 _has_bits_[0] |= 0x00000010u; | 13185 _has_bits_[0] |= 0x00000008u; |
13595 } | 13186 } |
13596 void UninterpretedOption::clear_has_negative_int_value() { | 13187 void UninterpretedOption::clear_has_negative_int_value() { |
13597 _has_bits_[0] &= ~0x00000010u; | 13188 _has_bits_[0] &= ~0x00000008u; |
13598 } | 13189 } |
13599 void UninterpretedOption::clear_negative_int_value() { | 13190 void UninterpretedOption::clear_negative_int_value() { |
13600 negative_int_value_ = GOOGLE_LONGLONG(0); | 13191 negative_int_value_ = GOOGLE_LONGLONG(0); |
13601 clear_has_negative_int_value(); | 13192 clear_has_negative_int_value(); |
13602 } | 13193 } |
13603 ::google::protobuf::int64 UninterpretedOption::negative_int_value() const { | 13194 ::google::protobuf::int64 UninterpretedOption::negative_int_value() const { |
13604 // @@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) |
13605 return negative_int_value_; | 13196 return negative_int_value_; |
13606 } | 13197 } |
13607 void UninterpretedOption::set_negative_int_value(::google::protobuf::int64 value
) { | 13198 void UninterpretedOption::set_negative_int_value(::google::protobuf::int64 valu
e) { |
13608 set_has_negative_int_value(); | 13199 set_has_negative_int_value(); |
13609 negative_int_value_ = value; | 13200 negative_int_value_ = value; |
13610 // @@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) |
13611 } | 13202 } |
13612 | 13203 |
13613 // optional double double_value = 6; | 13204 // optional double double_value = 6; |
13614 bool UninterpretedOption::has_double_value() const { | 13205 bool UninterpretedOption::has_double_value() const { |
13615 return (_has_bits_[0] & 0x00000020u) != 0; | 13206 return (_has_bits_[0] & 0x00000010u) != 0; |
13616 } | 13207 } |
13617 void UninterpretedOption::set_has_double_value() { | 13208 void UninterpretedOption::set_has_double_value() { |
13618 _has_bits_[0] |= 0x00000020u; | 13209 _has_bits_[0] |= 0x00000010u; |
13619 } | 13210 } |
13620 void UninterpretedOption::clear_has_double_value() { | 13211 void UninterpretedOption::clear_has_double_value() { |
13621 _has_bits_[0] &= ~0x00000020u; | 13212 _has_bits_[0] &= ~0x00000010u; |
13622 } | 13213 } |
13623 void UninterpretedOption::clear_double_value() { | 13214 void UninterpretedOption::clear_double_value() { |
13624 double_value_ = 0; | 13215 double_value_ = 0; |
13625 clear_has_double_value(); | 13216 clear_has_double_value(); |
13626 } | 13217 } |
13627 double UninterpretedOption::double_value() const { | 13218 double UninterpretedOption::double_value() const { |
13628 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.doub
le_value) | 13219 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.doub
le_value) |
13629 return double_value_; | 13220 return double_value_; |
13630 } | 13221 } |
13631 void UninterpretedOption::set_double_value(double value) { | 13222 void UninterpretedOption::set_double_value(double value) { |
13632 set_has_double_value(); | 13223 set_has_double_value(); |
13633 double_value_ = value; | 13224 double_value_ = value; |
13634 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.doub
le_value) | 13225 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.doub
le_value) |
13635 } | 13226 } |
13636 | 13227 |
13637 // optional bytes string_value = 7; | 13228 // optional bytes string_value = 7; |
13638 bool UninterpretedOption::has_string_value() const { | 13229 bool UninterpretedOption::has_string_value() const { |
13639 return (_has_bits_[0] & 0x00000002u) != 0; | 13230 return (_has_bits_[0] & 0x00000020u) != 0; |
13640 } | 13231 } |
13641 void UninterpretedOption::set_has_string_value() { | 13232 void UninterpretedOption::set_has_string_value() { |
13642 _has_bits_[0] |= 0x00000002u; | 13233 _has_bits_[0] |= 0x00000020u; |
13643 } | 13234 } |
13644 void UninterpretedOption::clear_has_string_value() { | 13235 void UninterpretedOption::clear_has_string_value() { |
13645 _has_bits_[0] &= ~0x00000002u; | 13236 _has_bits_[0] &= ~0x00000020u; |
13646 } | 13237 } |
13647 void UninterpretedOption::clear_string_value() { | 13238 void UninterpretedOption::clear_string_value() { |
13648 string_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); | 13239 string_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); |
13649 clear_has_string_value(); | 13240 clear_has_string_value(); |
13650 } | 13241 } |
13651 const ::std::string& UninterpretedOption::string_value() const { | 13242 const ::std::string& UninterpretedOption::string_value() const { |
13652 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.stri
ng_value) | 13243 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.stri
ng_value) |
13653 return string_value_.GetNoArena(); | 13244 return string_value_.GetNoArena(&::google::protobuf::internal::GetEmptyStringA
lreadyInited()); |
13654 } | 13245 } |
13655 void UninterpretedOption::set_string_value(const ::std::string& value) { | 13246 void UninterpretedOption::set_string_value(const ::std::string& value) { |
13656 set_has_string_value(); | 13247 set_has_string_value(); |
13657 string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI
nited(), value); | 13248 string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI
nited(), value); |
13658 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.stri
ng_value) | 13249 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.stri
ng_value) |
13659 } | 13250 } |
13660 #if LANG_CXX11 | 13251 void UninterpretedOption::set_string_value(const char* value) { |
13661 void UninterpretedOption::set_string_value(::std::string&& value) { | |
13662 set_has_string_value(); | |
13663 string_value_.SetNoArena( | |
13664 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va
lue)); | |
13665 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.UninterpretedOpti
on.string_value) | |
13666 } | |
13667 #endif | |
13668 void UninterpretedOption::set_string_value(const char* value) { | |
13669 set_has_string_value(); | 13252 set_has_string_value(); |
13670 string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI
nited(), ::std::string(value)); | 13253 string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI
nited(), ::std::string(value)); |
13671 // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption
.string_value) | 13254 // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption
.string_value) |
13672 } | 13255 } |
13673 void UninterpretedOption::set_string_value(const void* value, size_t size) { | 13256 void UninterpretedOption::set_string_value(const void* value, size_t size) { |
13674 set_has_string_value(); | 13257 set_has_string_value(); |
13675 string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI
nited(), | 13258 string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI
nited(), |
13676 ::std::string(reinterpret_cast<const char*>(value), size)); | 13259 ::std::string(reinterpret_cast<const char*>(value), size)); |
13677 // @@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) |
13678 } | 13261 } |
13679 ::std::string* UninterpretedOption::mutable_string_value() { | 13262 ::std::string* UninterpretedOption::mutable_string_value() { |
13680 set_has_string_value(); | 13263 set_has_string_value(); |
13681 // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.
string_value) | 13264 // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.
string_value) |
13682 return string_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited()); | 13265 return string_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited()); |
13683 } | 13266 } |
13684 ::std::string* UninterpretedOption::release_string_value() { | 13267 ::std::string* UninterpretedOption::release_string_value() { |
13685 // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.
string_value) | 13268 // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.
string_value) |
13686 clear_has_string_value(); | 13269 clear_has_string_value(); |
13687 return string_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited()); | 13270 return string_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited()); |
13688 } | 13271 } |
13689 void UninterpretedOption::set_allocated_string_value(::std::string* string_value
) { | 13272 void UninterpretedOption::set_allocated_string_value(::std::string* string_valu
e) { |
13690 if (string_value != NULL) { | 13273 if (string_value != NULL) { |
13691 set_has_string_value(); | 13274 set_has_string_value(); |
13692 } else { | 13275 } else { |
13693 clear_has_string_value(); | 13276 clear_has_string_value(); |
13694 } | 13277 } |
13695 string_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited(), string_value); | 13278 string_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited(), string_value); |
13696 // @@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) |
13697 } | 13280 } |
13698 | 13281 |
13699 // optional string aggregate_value = 8; | 13282 // optional string aggregate_value = 8; |
13700 bool UninterpretedOption::has_aggregate_value() const { | 13283 bool UninterpretedOption::has_aggregate_value() const { |
13701 return (_has_bits_[0] & 0x00000004u) != 0; | 13284 return (_has_bits_[0] & 0x00000040u) != 0; |
13702 } | 13285 } |
13703 void UninterpretedOption::set_has_aggregate_value() { | 13286 void UninterpretedOption::set_has_aggregate_value() { |
13704 _has_bits_[0] |= 0x00000004u; | 13287 _has_bits_[0] |= 0x00000040u; |
13705 } | 13288 } |
13706 void UninterpretedOption::clear_has_aggregate_value() { | 13289 void UninterpretedOption::clear_has_aggregate_value() { |
13707 _has_bits_[0] &= ~0x00000004u; | 13290 _has_bits_[0] &= ~0x00000040u; |
13708 } | 13291 } |
13709 void UninterpretedOption::clear_aggregate_value() { | 13292 void UninterpretedOption::clear_aggregate_value() { |
13710 aggregate_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited()); | 13293 aggregate_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited()); |
13711 clear_has_aggregate_value(); | 13294 clear_has_aggregate_value(); |
13712 } | 13295 } |
13713 const ::std::string& UninterpretedOption::aggregate_value() const { | 13296 const ::std::string& UninterpretedOption::aggregate_value() const { |
13714 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.aggr
egate_value) | 13297 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.aggr
egate_value) |
13715 return aggregate_value_.GetNoArena(); | 13298 return aggregate_value_.GetNoArena(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); |
13716 } | 13299 } |
13717 void UninterpretedOption::set_aggregate_value(const ::std::string& value) { | 13300 void UninterpretedOption::set_aggregate_value(const ::std::string& value) { |
13718 set_has_aggregate_value(); | 13301 set_has_aggregate_value(); |
13719 aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), value); | 13302 aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), value); |
13720 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.aggr
egate_value) | 13303 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.aggr
egate_value) |
13721 } | 13304 } |
13722 #if LANG_CXX11 | 13305 void UninterpretedOption::set_aggregate_value(const char* value) { |
13723 void UninterpretedOption::set_aggregate_value(::std::string&& value) { | |
13724 set_has_aggregate_value(); | |
13725 aggregate_value_.SetNoArena( | |
13726 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va
lue)); | |
13727 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.UninterpretedOpti
on.aggregate_value) | |
13728 } | |
13729 #endif | |
13730 void UninterpretedOption::set_aggregate_value(const char* value) { | |
13731 set_has_aggregate_value(); | 13306 set_has_aggregate_value(); |
13732 aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), ::std::string(value)); | 13307 aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), ::std::string(value)); |
13733 // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption
.aggregate_value) | 13308 // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption
.aggregate_value) |
13734 } | 13309 } |
13735 void UninterpretedOption::set_aggregate_value(const char* value, size_t size) { | 13310 void UninterpretedOption::set_aggregate_value(const char* value, size_t size) { |
13736 set_has_aggregate_value(); | 13311 set_has_aggregate_value(); |
13737 aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), | 13312 aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited(), |
13738 ::std::string(reinterpret_cast<const char*>(value), size)); | 13313 ::std::string(reinterpret_cast<const char*>(value), size)); |
13739 // @@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) |
13740 } | 13315 } |
13741 ::std::string* UninterpretedOption::mutable_aggregate_value() { | 13316 ::std::string* UninterpretedOption::mutable_aggregate_value() { |
13742 set_has_aggregate_value(); | 13317 set_has_aggregate_value(); |
13743 // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.
aggregate_value) | 13318 // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.
aggregate_value) |
13744 return aggregate_value_.MutableNoArena(&::google::protobuf::internal::GetEmpty
StringAlreadyInited()); | 13319 return aggregate_value_.MutableNoArena(&::google::protobuf::internal::GetEmpty
StringAlreadyInited()); |
13745 } | 13320 } |
13746 ::std::string* UninterpretedOption::release_aggregate_value() { | 13321 ::std::string* UninterpretedOption::release_aggregate_value() { |
13747 // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.
aggregate_value) | 13322 // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.
aggregate_value) |
13748 clear_has_aggregate_value(); | 13323 clear_has_aggregate_value(); |
13749 return aggregate_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmpty
StringAlreadyInited()); | 13324 return aggregate_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmpty
StringAlreadyInited()); |
13750 } | 13325 } |
13751 void UninterpretedOption::set_allocated_aggregate_value(::std::string* aggregate
_value) { | 13326 void UninterpretedOption::set_allocated_aggregate_value(::std::string* aggregat
e_value) { |
13752 if (aggregate_value != NULL) { | 13327 if (aggregate_value != NULL) { |
13753 set_has_aggregate_value(); | 13328 set_has_aggregate_value(); |
13754 } else { | 13329 } else { |
13755 clear_has_aggregate_value(); | 13330 clear_has_aggregate_value(); |
13756 } | 13331 } |
13757 aggregate_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited(), aggregate_value); | 13332 aggregate_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited(), aggregate_value); |
13758 // @@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) |
13759 } | 13334 } |
13760 | 13335 |
13761 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 13336 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
13762 | 13337 |
13763 // =================================================================== | 13338 // =================================================================== |
13764 | 13339 |
13765 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 13340 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
13766 const int SourceCodeInfo_Location::kPathFieldNumber; | 13341 const int SourceCodeInfo_Location::kPathFieldNumber; |
13767 const int SourceCodeInfo_Location::kSpanFieldNumber; | 13342 const int SourceCodeInfo_Location::kSpanFieldNumber; |
13768 const int SourceCodeInfo_Location::kLeadingCommentsFieldNumber; | 13343 const int SourceCodeInfo_Location::kLeadingCommentsFieldNumber; |
13769 const int SourceCodeInfo_Location::kTrailingCommentsFieldNumber; | 13344 const int SourceCodeInfo_Location::kTrailingCommentsFieldNumber; |
13770 const int SourceCodeInfo_Location::kLeadingDetachedCommentsFieldNumber; | 13345 const int SourceCodeInfo_Location::kLeadingDetachedCommentsFieldNumber; |
13771 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 13346 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
13772 | 13347 |
13773 SourceCodeInfo_Location::SourceCodeInfo_Location() | 13348 SourceCodeInfo_Location::SourceCodeInfo_Location() |
13774 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 13349 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
13775 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
13776 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
13777 } | |
13778 SharedCtor(); | 13350 SharedCtor(); |
13779 // @@protoc_insertion_point(constructor:google.protobuf.SourceCodeInfo.Locatio
n) | 13351 // @@protoc_insertion_point(constructor:google.protobuf.SourceCodeInfo.Locatio
n) |
13780 } | 13352 } |
| 13353 |
| 13354 void SourceCodeInfo_Location::InitAsDefaultInstance() { |
| 13355 } |
| 13356 |
13781 SourceCodeInfo_Location::SourceCodeInfo_Location(const SourceCodeInfo_Location&
from) | 13357 SourceCodeInfo_Location::SourceCodeInfo_Location(const SourceCodeInfo_Location&
from) |
13782 : ::google::protobuf::Message(), | 13358 : ::google::protobuf::Message(), |
13783 _internal_metadata_(NULL), | 13359 _internal_metadata_(NULL) { |
13784 _has_bits_(from._has_bits_), | 13360 SharedCtor(); |
13785 _cached_size_(0), | 13361 MergeFrom(from); |
13786 path_(from.path_), | |
13787 span_(from.span_), | |
13788 leading_detached_comments_(from.leading_detached_comments_) { | |
13789 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
13790 leading_comments_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); | |
13791 if (from.has_leading_comments()) { | |
13792 leading_comments_.AssignWithDefault(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited(), from.leading_comments_); | |
13793 } | |
13794 trailing_comments_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited()); | |
13795 if (from.has_trailing_comments()) { | |
13796 trailing_comments_.AssignWithDefault(&::google::protobuf::internal::GetEmpty
StringAlreadyInited(), from.trailing_comments_); | |
13797 } | |
13798 // @@protoc_insertion_point(copy_constructor:google.protobuf.SourceCodeInfo.Lo
cation) | 13362 // @@protoc_insertion_point(copy_constructor:google.protobuf.SourceCodeInfo.Lo
cation) |
13799 } | 13363 } |
13800 | 13364 |
13801 void SourceCodeInfo_Location::SharedCtor() { | 13365 void SourceCodeInfo_Location::SharedCtor() { |
| 13366 ::google::protobuf::internal::GetEmptyString(); |
13802 _cached_size_ = 0; | 13367 _cached_size_ = 0; |
13803 leading_comments_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); | 13368 leading_comments_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); |
13804 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_)); |
13805 } | 13371 } |
13806 | 13372 |
13807 SourceCodeInfo_Location::~SourceCodeInfo_Location() { | 13373 SourceCodeInfo_Location::~SourceCodeInfo_Location() { |
13808 // @@protoc_insertion_point(destructor:google.protobuf.SourceCodeInfo.Location
) | 13374 // @@protoc_insertion_point(destructor:google.protobuf.SourceCodeInfo.Location
) |
13809 SharedDtor(); | 13375 SharedDtor(); |
13810 } | 13376 } |
13811 | 13377 |
13812 void SourceCodeInfo_Location::SharedDtor() { | 13378 void SourceCodeInfo_Location::SharedDtor() { |
13813 leading_comments_.DestroyNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); | 13379 leading_comments_.DestroyNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); |
13814 trailing_comments_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); | 13380 trailing_comments_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStrin
gAlreadyInited()); |
| 13381 if (this != default_instance_) { |
| 13382 } |
13815 } | 13383 } |
13816 | 13384 |
13817 void SourceCodeInfo_Location::SetCachedSize(int size) const { | 13385 void SourceCodeInfo_Location::SetCachedSize(int size) const { |
13818 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 13386 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
13819 _cached_size_ = size; | 13387 _cached_size_ = size; |
13820 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 13388 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
13821 } | 13389 } |
13822 const ::google::protobuf::Descriptor* SourceCodeInfo_Location::descriptor() { | 13390 const ::google::protobuf::Descriptor* SourceCodeInfo_Location::descriptor() { |
13823 protobuf_AssignDescriptorsOnce(); | 13391 protobuf_AssignDescriptorsOnce(); |
13824 return file_level_metadata[21].descriptor; | 13392 return SourceCodeInfo_Location_descriptor_; |
13825 } | 13393 } |
13826 | 13394 |
13827 const SourceCodeInfo_Location& SourceCodeInfo_Location::default_instance() { | 13395 const SourceCodeInfo_Location& SourceCodeInfo_Location::default_instance() { |
13828 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 13396 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
13829 return *internal_default_instance(); | 13397 return *default_instance_; |
13830 } | 13398 } |
13831 | 13399 |
| 13400 SourceCodeInfo_Location* SourceCodeInfo_Location::default_instance_ = NULL; |
| 13401 |
13832 SourceCodeInfo_Location* SourceCodeInfo_Location::New(::google::protobuf::Arena*
arena) const { | 13402 SourceCodeInfo_Location* SourceCodeInfo_Location::New(::google::protobuf::Arena*
arena) const { |
13833 SourceCodeInfo_Location* n = new SourceCodeInfo_Location; | 13403 SourceCodeInfo_Location* n = new SourceCodeInfo_Location; |
13834 if (arena != NULL) { | 13404 if (arena != NULL) { |
13835 arena->Own(n); | 13405 arena->Own(n); |
13836 } | 13406 } |
13837 return n; | 13407 return n; |
13838 } | 13408 } |
13839 | 13409 |
13840 void SourceCodeInfo_Location::Clear() { | 13410 void SourceCodeInfo_Location::Clear() { |
13841 // @@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 } |
13842 path_.Clear(); | 13420 path_.Clear(); |
13843 span_.Clear(); | 13421 span_.Clear(); |
13844 leading_detached_comments_.Clear(); | 13422 leading_detached_comments_.Clear(); |
13845 if (_has_bits_[0 / 32] & 3u) { | 13423 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
13846 if (has_leading_comments()) { | 13424 if (_internal_metadata_.have_unknown_fields()) { |
13847 GOOGLE_DCHECK(!leading_comments_.IsDefault(&::google::protobuf::internal::
GetEmptyStringAlreadyInited())); | 13425 mutable_unknown_fields()->Clear(); |
13848 (*leading_comments_.UnsafeRawStringPointer())->clear(); | |
13849 } | |
13850 if (has_trailing_comments()) { | |
13851 GOOGLE_DCHECK(!trailing_comments_.IsDefault(&::google::protobuf::internal:
:GetEmptyStringAlreadyInited())); | |
13852 (*trailing_comments_.UnsafeRawStringPointer())->clear(); | |
13853 } | |
13854 } | 13426 } |
13855 _has_bits_.Clear(); | |
13856 _internal_metadata_.Clear(); | |
13857 } | 13427 } |
13858 | 13428 |
13859 bool SourceCodeInfo_Location::MergePartialFromCodedStream( | 13429 bool SourceCodeInfo_Location::MergePartialFromCodedStream( |
13860 ::google::protobuf::io::CodedInputStream* input) { | 13430 ::google::protobuf::io::CodedInputStream* input) { |
13861 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 13431 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
13862 ::google::protobuf::uint32 tag; | 13432 ::google::protobuf::uint32 tag; |
13863 // @@protoc_insertion_point(parse_start:google.protobuf.SourceCodeInfo.Locatio
n) | 13433 // @@protoc_insertion_point(parse_start:google.protobuf.SourceCodeInfo.Locatio
n) |
13864 for (;;) { | 13434 for (;;) { |
13865 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 13435 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
13866 tag = p.first; | 13436 tag = p.first; |
13867 if (!p.second) goto handle_unusual; | 13437 if (!p.second) goto handle_unusual; |
13868 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 13438 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
13869 // repeated int32 path = 1 [packed = true]; | 13439 // repeated int32 path = 1 [packed = true]; |
13870 case 1: { | 13440 case 1: { |
13871 if (tag == 10u) { | 13441 if (tag == 10) { |
13872 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive
< | 13442 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive
< |
13873 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 13443 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
13874 input, this->mutable_path()))); | 13444 input, this->mutable_path()))); |
13875 } else if (tag == 8u) { | 13445 } else if (tag == 8) { |
13876 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimiti
veNoInline< | 13446 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimiti
veNoInline< |
13877 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 13447 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
13878 1, 10u, input, this->mutable_path()))); | 13448 1, 10, input, this->mutable_path()))); |
13879 } else { | 13449 } else { |
13880 goto handle_unusual; | 13450 goto handle_unusual; |
13881 } | 13451 } |
| 13452 if (input->ExpectTag(18)) goto parse_span; |
13882 break; | 13453 break; |
13883 } | 13454 } |
13884 | 13455 |
13885 // repeated int32 span = 2 [packed = true]; | 13456 // repeated int32 span = 2 [packed = true]; |
13886 case 2: { | 13457 case 2: { |
13887 if (tag == 18u) { | 13458 if (tag == 18) { |
| 13459 parse_span: |
13888 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive
< | 13460 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive
< |
13889 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 13461 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
13890 input, this->mutable_span()))); | 13462 input, this->mutable_span()))); |
13891 } else if (tag == 16u) { | 13463 } else if (tag == 16) { |
13892 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimiti
veNoInline< | 13464 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimiti
veNoInline< |
13893 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 13465 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
13894 1, 18u, input, this->mutable_span()))); | 13466 1, 18, input, this->mutable_span()))); |
13895 } else { | 13467 } else { |
13896 goto handle_unusual; | 13468 goto handle_unusual; |
13897 } | 13469 } |
| 13470 if (input->ExpectTag(26)) goto parse_leading_comments; |
13898 break; | 13471 break; |
13899 } | 13472 } |
13900 | 13473 |
13901 // optional string leading_comments = 3; | 13474 // optional string leading_comments = 3; |
13902 case 3: { | 13475 case 3: { |
13903 if (tag == 26u) { | 13476 if (tag == 26) { |
| 13477 parse_leading_comments: |
13904 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 13478 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
13905 input, this->mutable_leading_comments())); | 13479 input, this->mutable_leading_comments())); |
13906 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 13480 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
13907 this->leading_comments().data(), this->leading_comments().length(), | 13481 this->leading_comments().data(), this->leading_comments().length(), |
13908 ::google::protobuf::internal::WireFormat::PARSE, | 13482 ::google::protobuf::internal::WireFormat::PARSE, |
13909 "google.protobuf.SourceCodeInfo.Location.leading_comments"); | 13483 "google.protobuf.SourceCodeInfo.Location.leading_comments"); |
13910 } else { | 13484 } else { |
13911 goto handle_unusual; | 13485 goto handle_unusual; |
13912 } | 13486 } |
| 13487 if (input->ExpectTag(34)) goto parse_trailing_comments; |
13913 break; | 13488 break; |
13914 } | 13489 } |
13915 | 13490 |
13916 // optional string trailing_comments = 4; | 13491 // optional string trailing_comments = 4; |
13917 case 4: { | 13492 case 4: { |
13918 if (tag == 34u) { | 13493 if (tag == 34) { |
| 13494 parse_trailing_comments: |
13919 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 13495 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
13920 input, this->mutable_trailing_comments())); | 13496 input, this->mutable_trailing_comments())); |
13921 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 13497 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
13922 this->trailing_comments().data(), this->trailing_comments().length()
, | 13498 this->trailing_comments().data(), this->trailing_comments().length()
, |
13923 ::google::protobuf::internal::WireFormat::PARSE, | 13499 ::google::protobuf::internal::WireFormat::PARSE, |
13924 "google.protobuf.SourceCodeInfo.Location.trailing_comments"); | 13500 "google.protobuf.SourceCodeInfo.Location.trailing_comments"); |
13925 } else { | 13501 } else { |
13926 goto handle_unusual; | 13502 goto handle_unusual; |
13927 } | 13503 } |
| 13504 if (input->ExpectTag(50)) goto parse_leading_detached_comments; |
13928 break; | 13505 break; |
13929 } | 13506 } |
13930 | 13507 |
13931 // repeated string leading_detached_comments = 6; | 13508 // repeated string leading_detached_comments = 6; |
13932 case 6: { | 13509 case 6: { |
13933 if (tag == 50u) { | 13510 if (tag == 50) { |
| 13511 parse_leading_detached_comments: |
13934 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 13512 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
13935 input, this->add_leading_detached_comments())); | 13513 input, this->add_leading_detached_comments())); |
13936 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 13514 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
13937 this->leading_detached_comments(this->leading_detached_comments_size
() - 1).data(), | 13515 this->leading_detached_comments(this->leading_detached_comments_size
() - 1).data(), |
13938 this->leading_detached_comments(this->leading_detached_comments_size
() - 1).length(), | 13516 this->leading_detached_comments(this->leading_detached_comments_size
() - 1).length(), |
13939 ::google::protobuf::internal::WireFormat::PARSE, | 13517 ::google::protobuf::internal::WireFormat::PARSE, |
13940 "google.protobuf.SourceCodeInfo.Location.leading_detached_comments")
; | 13518 "google.protobuf.SourceCodeInfo.Location.leading_detached_comments")
; |
13941 } else { | 13519 } else { |
13942 goto handle_unusual; | 13520 goto handle_unusual; |
13943 } | 13521 } |
| 13522 if (input->ExpectTag(50)) goto parse_leading_detached_comments; |
| 13523 if (input->ExpectAtEnd()) goto success; |
13944 break; | 13524 break; |
13945 } | 13525 } |
13946 | 13526 |
13947 default: { | 13527 default: { |
13948 handle_unusual: | 13528 handle_unusual: |
13949 if (tag == 0 || | 13529 if (tag == 0 || |
13950 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 13530 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
13951 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 13531 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
13952 goto success; | 13532 goto success; |
13953 } | 13533 } |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14019 6, this->leading_detached_comments(i), output); | 13599 6, this->leading_detached_comments(i), output); |
14020 } | 13600 } |
14021 | 13601 |
14022 if (_internal_metadata_.have_unknown_fields()) { | 13602 if (_internal_metadata_.have_unknown_fields()) { |
14023 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 13603 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
14024 unknown_fields(), output); | 13604 unknown_fields(), output); |
14025 } | 13605 } |
14026 // @@protoc_insertion_point(serialize_end:google.protobuf.SourceCodeInfo.Locat
ion) | 13606 // @@protoc_insertion_point(serialize_end:google.protobuf.SourceCodeInfo.Locat
ion) |
14027 } | 13607 } |
14028 | 13608 |
14029 ::google::protobuf::uint8* SourceCodeInfo_Location::InternalSerializeWithCachedS
izesToArray( | 13609 ::google::protobuf::uint8* SourceCodeInfo_Location::SerializeWithCachedSizesToAr
ray( |
14030 bool deterministic, ::google::protobuf::uint8* target) const { | 13610 ::google::protobuf::uint8* target) const { |
14031 (void)deterministic; // Unused | |
14032 // @@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) |
14033 // repeated int32 path = 1 [packed = true]; | 13612 // repeated int32 path = 1 [packed = true]; |
14034 if (this->path_size() > 0) { | 13613 if (this->path_size() > 0) { |
14035 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( | 13614 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
14036 1, | 13615 1, |
14037 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, | 13616 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
14038 target); | 13617 target); |
14039 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( | 13618 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
14040 _path_cached_byte_size_, target); | 13619 _path_cached_byte_size_, target); |
14041 } | 13620 } |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14091 } | 13670 } |
14092 | 13671 |
14093 if (_internal_metadata_.have_unknown_fields()) { | 13672 if (_internal_metadata_.have_unknown_fields()) { |
14094 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 13673 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
14095 unknown_fields(), target); | 13674 unknown_fields(), target); |
14096 } | 13675 } |
14097 // @@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) |
14098 return target; | 13677 return target; |
14099 } | 13678 } |
14100 | 13679 |
14101 size_t SourceCodeInfo_Location::ByteSizeLong() const { | 13680 int SourceCodeInfo_Location::ByteSize() const { |
14102 // @@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) |
14103 size_t total_size = 0; | 13682 int total_size = 0; |
14104 | 13683 |
14105 if (_internal_metadata_.have_unknown_fields()) { | 13684 if (_has_bits_[2 / 32] & 12u) { |
14106 total_size += | 13685 // optional string leading_comments = 3; |
14107 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | 13686 if (has_leading_comments()) { |
14108 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 |
14109 } | 13699 } |
14110 // repeated int32 path = 1 [packed = true]; | 13700 // repeated int32 path = 1 [packed = true]; |
14111 { | 13701 { |
14112 size_t data_size = 0; | 13702 int data_size = 0; |
14113 unsigned int count = this->path_size(); | 13703 for (int i = 0; i < this->path_size(); i++) { |
14114 for (unsigned int i = 0; i < count; i++) { | |
14115 data_size += ::google::protobuf::internal::WireFormatLite:: | 13704 data_size += ::google::protobuf::internal::WireFormatLite:: |
14116 Int32Size(this->path(i)); | 13705 Int32Size(this->path(i)); |
14117 } | 13706 } |
14118 if (data_size > 0) { | 13707 if (data_size > 0) { |
14119 total_size += 1 + | 13708 total_size += 1 + |
14120 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); | 13709 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
14121 } | 13710 } |
14122 int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); | |
14123 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 13711 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
14124 _path_cached_byte_size_ = cached_size; | 13712 _path_cached_byte_size_ = data_size; |
14125 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 13713 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
14126 total_size += data_size; | 13714 total_size += data_size; |
14127 } | 13715 } |
14128 | 13716 |
14129 // repeated int32 span = 2 [packed = true]; | 13717 // repeated int32 span = 2 [packed = true]; |
14130 { | 13718 { |
14131 size_t data_size = 0; | 13719 int data_size = 0; |
14132 unsigned int count = this->span_size(); | 13720 for (int i = 0; i < this->span_size(); i++) { |
14133 for (unsigned int i = 0; i < count; i++) { | |
14134 data_size += ::google::protobuf::internal::WireFormatLite:: | 13721 data_size += ::google::protobuf::internal::WireFormatLite:: |
14135 Int32Size(this->span(i)); | 13722 Int32Size(this->span(i)); |
14136 } | 13723 } |
14137 if (data_size > 0) { | 13724 if (data_size > 0) { |
14138 total_size += 1 + | 13725 total_size += 1 + |
14139 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); | 13726 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
14140 } | 13727 } |
14141 int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); | |
14142 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 13728 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
14143 _span_cached_byte_size_ = cached_size; | 13729 _span_cached_byte_size_ = data_size; |
14144 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 13730 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
14145 total_size += data_size; | 13731 total_size += data_size; |
14146 } | 13732 } |
14147 | 13733 |
14148 // repeated string leading_detached_comments = 6; | 13734 // repeated string leading_detached_comments = 6; |
14149 total_size += 1 * | 13735 total_size += 1 * this->leading_detached_comments_size(); |
14150 ::google::protobuf::internal::FromIntSize(this->leading_detached_comments_
size()); | |
14151 for (int i = 0; i < this->leading_detached_comments_size(); i++) { | 13736 for (int i = 0; i < this->leading_detached_comments_size(); i++) { |
14152 total_size += ::google::protobuf::internal::WireFormatLite::StringSize( | 13737 total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
14153 this->leading_detached_comments(i)); | 13738 this->leading_detached_comments(i)); |
14154 } | 13739 } |
14155 | 13740 |
14156 if (_has_bits_[0 / 32] & 3u) { | 13741 if (_internal_metadata_.have_unknown_fields()) { |
14157 // optional string leading_comments = 3; | 13742 total_size += |
14158 if (has_leading_comments()) { | 13743 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
14159 total_size += 1 + | 13744 unknown_fields()); |
14160 ::google::protobuf::internal::WireFormatLite::StringSize( | |
14161 this->leading_comments()); | |
14162 } | |
14163 | |
14164 // optional string trailing_comments = 4; | |
14165 if (has_trailing_comments()) { | |
14166 total_size += 1 + | |
14167 ::google::protobuf::internal::WireFormatLite::StringSize( | |
14168 this->trailing_comments()); | |
14169 } | |
14170 | |
14171 } | 13745 } |
14172 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | |
14173 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 13746 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
14174 _cached_size_ = cached_size; | 13747 _cached_size_ = total_size; |
14175 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 13748 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
14176 return total_size; | 13749 return total_size; |
14177 } | 13750 } |
14178 | 13751 |
14179 void SourceCodeInfo_Location::MergeFrom(const ::google::protobuf::Message& from)
{ | 13752 void SourceCodeInfo_Location::MergeFrom(const ::google::protobuf::Message& from)
{ |
14180 // @@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) |
14181 GOOGLE_DCHECK_NE(&from, this); | 13754 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
14182 const SourceCodeInfo_Location* source = | 13755 const SourceCodeInfo_Location* source = |
14183 ::google::protobuf::internal::DynamicCastToGenerated<const SourceCodeInfo_
Location>( | 13756 ::google::protobuf::internal::DynamicCastToGenerated<const SourceCodeInfo_
Location>( |
14184 &from); | 13757 &from); |
14185 if (source == NULL) { | 13758 if (source == NULL) { |
14186 // @@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) |
14187 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 13760 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
14188 } else { | 13761 } else { |
14189 // @@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) |
14190 MergeFrom(*source); | 13763 MergeFrom(*source); |
14191 } | 13764 } |
14192 } | 13765 } |
14193 | 13766 |
14194 void SourceCodeInfo_Location::MergeFrom(const SourceCodeInfo_Location& from) { | 13767 void SourceCodeInfo_Location::MergeFrom(const SourceCodeInfo_Location& from) { |
14195 // @@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) |
14196 GOOGLE_DCHECK_NE(&from, this); | 13769 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
14197 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
14198 path_.MergeFrom(from.path_); | 13770 path_.MergeFrom(from.path_); |
14199 span_.MergeFrom(from.span_); | 13771 span_.MergeFrom(from.span_); |
14200 leading_detached_comments_.MergeFrom(from.leading_detached_comments_); | 13772 leading_detached_comments_.MergeFrom(from.leading_detached_comments_); |
14201 if (from._has_bits_[0 / 32] & 3u) { | 13773 if (from._has_bits_[2 / 32] & (0xffu << (2 % 32))) { |
14202 if (from.has_leading_comments()) { | 13774 if (from.has_leading_comments()) { |
14203 set_has_leading_comments(); | 13775 set_has_leading_comments(); |
14204 leading_comments_.AssignWithDefault(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited(), from.leading_comments_); | 13776 leading_comments_.AssignWithDefault(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited(), from.leading_comments_); |
14205 } | 13777 } |
14206 if (from.has_trailing_comments()) { | 13778 if (from.has_trailing_comments()) { |
14207 set_has_trailing_comments(); | 13779 set_has_trailing_comments(); |
14208 trailing_comments_.AssignWithDefault(&::google::protobuf::internal::GetEmp
tyStringAlreadyInited(), from.trailing_comments_); | 13780 trailing_comments_.AssignWithDefault(&::google::protobuf::internal::GetEmp
tyStringAlreadyInited(), from.trailing_comments_); |
14209 } | 13781 } |
14210 } | 13782 } |
| 13783 if (from._internal_metadata_.have_unknown_fields()) { |
| 13784 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 13785 } |
14211 } | 13786 } |
14212 | 13787 |
14213 void SourceCodeInfo_Location::CopyFrom(const ::google::protobuf::Message& from)
{ | 13788 void SourceCodeInfo_Location::CopyFrom(const ::google::protobuf::Message& from)
{ |
14214 // @@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) |
14215 if (&from == this) return; | 13790 if (&from == this) return; |
14216 Clear(); | 13791 Clear(); |
14217 MergeFrom(from); | 13792 MergeFrom(from); |
14218 } | 13793 } |
14219 | 13794 |
14220 void SourceCodeInfo_Location::CopyFrom(const SourceCodeInfo_Location& from) { | 13795 void SourceCodeInfo_Location::CopyFrom(const SourceCodeInfo_Location& from) { |
14221 // @@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) |
14222 if (&from == this) return; | 13797 if (&from == this) return; |
14223 Clear(); | 13798 Clear(); |
14224 MergeFrom(from); | 13799 MergeFrom(from); |
14225 } | 13800 } |
14226 | 13801 |
14227 bool SourceCodeInfo_Location::IsInitialized() const { | 13802 bool SourceCodeInfo_Location::IsInitialized() const { |
| 13803 |
14228 return true; | 13804 return true; |
14229 } | 13805 } |
14230 | 13806 |
14231 void SourceCodeInfo_Location::Swap(SourceCodeInfo_Location* other) { | 13807 void SourceCodeInfo_Location::Swap(SourceCodeInfo_Location* other) { |
14232 if (other == this) return; | 13808 if (other == this) return; |
14233 InternalSwap(other); | 13809 InternalSwap(other); |
14234 } | 13810 } |
14235 void SourceCodeInfo_Location::InternalSwap(SourceCodeInfo_Location* other) { | 13811 void SourceCodeInfo_Location::InternalSwap(SourceCodeInfo_Location* other) { |
14236 path_.UnsafeArenaSwap(&other->path_); | 13812 path_.UnsafeArenaSwap(&other->path_); |
14237 span_.UnsafeArenaSwap(&other->span_); | 13813 span_.UnsafeArenaSwap(&other->span_); |
14238 leading_detached_comments_.UnsafeArenaSwap(&other->leading_detached_comments_)
; | |
14239 leading_comments_.Swap(&other->leading_comments_); | 13814 leading_comments_.Swap(&other->leading_comments_); |
14240 trailing_comments_.Swap(&other->trailing_comments_); | 13815 trailing_comments_.Swap(&other->trailing_comments_); |
| 13816 leading_detached_comments_.UnsafeArenaSwap(&other->leading_detached_comments_)
; |
14241 std::swap(_has_bits_[0], other->_has_bits_[0]); | 13817 std::swap(_has_bits_[0], other->_has_bits_[0]); |
14242 _internal_metadata_.Swap(&other->_internal_metadata_); | 13818 _internal_metadata_.Swap(&other->_internal_metadata_); |
14243 std::swap(_cached_size_, other->_cached_size_); | 13819 std::swap(_cached_size_, other->_cached_size_); |
14244 } | 13820 } |
14245 | 13821 |
14246 ::google::protobuf::Metadata SourceCodeInfo_Location::GetMetadata() const { | 13822 ::google::protobuf::Metadata SourceCodeInfo_Location::GetMetadata() const { |
14247 protobuf_AssignDescriptorsOnce(); | 13823 protobuf_AssignDescriptorsOnce(); |
14248 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; |
14249 } | 14068 } |
14250 | 14069 |
14251 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 14070 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
14252 // SourceCodeInfo_Location | 14071 // SourceCodeInfo_Location |
14253 | 14072 |
14254 // repeated int32 path = 1 [packed = true]; | 14073 // repeated int32 path = 1 [packed = true]; |
14255 int SourceCodeInfo_Location::path_size() const { | 14074 int SourceCodeInfo_Location::path_size() const { |
14256 return path_.size(); | 14075 return path_.size(); |
14257 } | 14076 } |
14258 void SourceCodeInfo_Location::clear_path() { | 14077 void SourceCodeInfo_Location::clear_path() { |
14259 path_.Clear(); | 14078 path_.Clear(); |
14260 } | 14079 } |
14261 ::google::protobuf::int32 SourceCodeInfo_Location::path(int index) const { | 14080 ::google::protobuf::int32 SourceCodeInfo_Location::path(int index) const { |
14262 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.
path) | 14081 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.
path) |
14263 return path_.Get(index); | 14082 return path_.Get(index); |
14264 } | 14083 } |
14265 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) { |
14266 path_.Set(index, value); | 14085 path_.Set(index, value); |
14267 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.
path) | 14086 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.
path) |
14268 } | 14087 } |
14269 void SourceCodeInfo_Location::add_path(::google::protobuf::int32 value) { | 14088 void SourceCodeInfo_Location::add_path(::google::protobuf::int32 value) { |
14270 path_.Add(value); | 14089 path_.Add(value); |
14271 // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.
path) | 14090 // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.
path) |
14272 } | 14091 } |
14273 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& | 14092 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& |
14274 SourceCodeInfo_Location::path() const { | 14093 SourceCodeInfo_Location::path() const { |
14275 // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location
.path) | 14094 // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location
.path) |
14276 return path_; | 14095 return path_; |
14277 } | 14096 } |
14278 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* | 14097 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* |
14279 SourceCodeInfo_Location::mutable_path() { | 14098 SourceCodeInfo_Location::mutable_path() { |
14280 // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.
Location.path) | 14099 // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.
Location.path) |
14281 return &path_; | 14100 return &path_; |
14282 } | 14101 } |
14283 | 14102 |
14284 // repeated int32 span = 2 [packed = true]; | 14103 // repeated int32 span = 2 [packed = true]; |
14285 int SourceCodeInfo_Location::span_size() const { | 14104 int SourceCodeInfo_Location::span_size() const { |
14286 return span_.size(); | 14105 return span_.size(); |
14287 } | 14106 } |
14288 void SourceCodeInfo_Location::clear_span() { | 14107 void SourceCodeInfo_Location::clear_span() { |
14289 span_.Clear(); | 14108 span_.Clear(); |
14290 } | 14109 } |
14291 ::google::protobuf::int32 SourceCodeInfo_Location::span(int index) const { | 14110 ::google::protobuf::int32 SourceCodeInfo_Location::span(int index) const { |
14292 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.
span) | 14111 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.
span) |
14293 return span_.Get(index); | 14112 return span_.Get(index); |
14294 } | 14113 } |
14295 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) { |
14296 span_.Set(index, value); | 14115 span_.Set(index, value); |
14297 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.
span) | 14116 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.
span) |
14298 } | 14117 } |
14299 void SourceCodeInfo_Location::add_span(::google::protobuf::int32 value) { | 14118 void SourceCodeInfo_Location::add_span(::google::protobuf::int32 value) { |
14300 span_.Add(value); | 14119 span_.Add(value); |
14301 // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.
span) | 14120 // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.
span) |
14302 } | 14121 } |
14303 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& | 14122 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& |
14304 SourceCodeInfo_Location::span() const { | 14123 SourceCodeInfo_Location::span() const { |
14305 // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location
.span) | 14124 // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location
.span) |
14306 return span_; | 14125 return span_; |
14307 } | 14126 } |
14308 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* | 14127 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* |
14309 SourceCodeInfo_Location::mutable_span() { | 14128 SourceCodeInfo_Location::mutable_span() { |
14310 // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.
Location.span) | 14129 // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.
Location.span) |
14311 return &span_; | 14130 return &span_; |
14312 } | 14131 } |
14313 | 14132 |
14314 // optional string leading_comments = 3; | 14133 // optional string leading_comments = 3; |
14315 bool SourceCodeInfo_Location::has_leading_comments() const { | 14134 bool SourceCodeInfo_Location::has_leading_comments() const { |
14316 return (_has_bits_[0] & 0x00000001u) != 0; | 14135 return (_has_bits_[0] & 0x00000004u) != 0; |
14317 } | 14136 } |
14318 void SourceCodeInfo_Location::set_has_leading_comments() { | 14137 void SourceCodeInfo_Location::set_has_leading_comments() { |
14319 _has_bits_[0] |= 0x00000001u; | 14138 _has_bits_[0] |= 0x00000004u; |
14320 } | 14139 } |
14321 void SourceCodeInfo_Location::clear_has_leading_comments() { | 14140 void SourceCodeInfo_Location::clear_has_leading_comments() { |
14322 _has_bits_[0] &= ~0x00000001u; | 14141 _has_bits_[0] &= ~0x00000004u; |
14323 } | 14142 } |
14324 void SourceCodeInfo_Location::clear_leading_comments() { | 14143 void SourceCodeInfo_Location::clear_leading_comments() { |
14325 leading_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited()); | 14144 leading_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited()); |
14326 clear_has_leading_comments(); | 14145 clear_has_leading_comments(); |
14327 } | 14146 } |
14328 const ::std::string& SourceCodeInfo_Location::leading_comments() const { | 14147 const ::std::string& SourceCodeInfo_Location::leading_comments() const { |
14329 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.
leading_comments) | 14148 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.
leading_comments) |
14330 return leading_comments_.GetNoArena(); | 14149 return leading_comments_.GetNoArena(&::google::protobuf::internal::GetEmptyStr
ingAlreadyInited()); |
14331 } | 14150 } |
14332 void SourceCodeInfo_Location::set_leading_comments(const ::std::string& value) { | 14151 void SourceCodeInfo_Location::set_leading_comments(const ::std::string& value)
{ |
14333 set_has_leading_comments(); | 14152 set_has_leading_comments(); |
14334 leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), value); | 14153 leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), value); |
14335 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.
leading_comments) | 14154 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.
leading_comments) |
14336 } | 14155 } |
14337 #if LANG_CXX11 | 14156 void SourceCodeInfo_Location::set_leading_comments(const char* value) { |
14338 void SourceCodeInfo_Location::set_leading_comments(::std::string&& value) { | |
14339 set_has_leading_comments(); | |
14340 leading_comments_.SetNoArena( | |
14341 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va
lue)); | |
14342 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.SourceCodeInfo.Lo
cation.leading_comments) | |
14343 } | |
14344 #endif | |
14345 void SourceCodeInfo_Location::set_leading_comments(const char* value) { | |
14346 set_has_leading_comments(); | 14157 set_has_leading_comments(); |
14347 leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), ::std::string(value)); | 14158 leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), ::std::string(value)); |
14348 // @@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) |
14349 } | 14160 } |
14350 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) { |
14351 set_has_leading_comments(); | 14162 set_has_leading_comments(); |
14352 leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), | 14163 leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited(), |
14353 ::std::string(reinterpret_cast<const char*>(value), size)); | 14164 ::std::string(reinterpret_cast<const char*>(value), size)); |
14354 // @@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) |
14355 } | 14166 } |
14356 ::std::string* SourceCodeInfo_Location::mutable_leading_comments() { | 14167 ::std::string* SourceCodeInfo_Location::mutable_leading_comments() { |
14357 set_has_leading_comments(); | 14168 set_has_leading_comments(); |
14358 // @@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) |
14359 return leading_comments_.MutableNoArena(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited()); | 14170 return leading_comments_.MutableNoArena(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited()); |
14360 } | 14171 } |
14361 ::std::string* SourceCodeInfo_Location::release_leading_comments() { | 14172 ::std::string* SourceCodeInfo_Location::release_leading_comments() { |
14362 // @@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) |
14363 clear_has_leading_comments(); | 14174 clear_has_leading_comments(); |
14364 return leading_comments_.ReleaseNoArena(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited()); | 14175 return leading_comments_.ReleaseNoArena(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited()); |
14365 } | 14176 } |
14366 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) { |
14367 if (leading_comments != NULL) { | 14178 if (leading_comments != NULL) { |
14368 set_has_leading_comments(); | 14179 set_has_leading_comments(); |
14369 } else { | 14180 } else { |
14370 clear_has_leading_comments(); | 14181 clear_has_leading_comments(); |
14371 } | 14182 } |
14372 leading_comments_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited(), leading_comments); | 14183 leading_comments_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyS
tringAlreadyInited(), leading_comments); |
14373 // @@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) |
14374 } | 14185 } |
14375 | 14186 |
14376 // optional string trailing_comments = 4; | 14187 // optional string trailing_comments = 4; |
14377 bool SourceCodeInfo_Location::has_trailing_comments() const { | 14188 bool SourceCodeInfo_Location::has_trailing_comments() const { |
14378 return (_has_bits_[0] & 0x00000002u) != 0; | 14189 return (_has_bits_[0] & 0x00000008u) != 0; |
14379 } | 14190 } |
14380 void SourceCodeInfo_Location::set_has_trailing_comments() { | 14191 void SourceCodeInfo_Location::set_has_trailing_comments() { |
14381 _has_bits_[0] |= 0x00000002u; | 14192 _has_bits_[0] |= 0x00000008u; |
14382 } | 14193 } |
14383 void SourceCodeInfo_Location::clear_has_trailing_comments() { | 14194 void SourceCodeInfo_Location::clear_has_trailing_comments() { |
14384 _has_bits_[0] &= ~0x00000002u; | 14195 _has_bits_[0] &= ~0x00000008u; |
14385 } | 14196 } |
14386 void SourceCodeInfo_Location::clear_trailing_comments() { | 14197 void SourceCodeInfo_Location::clear_trailing_comments() { |
14387 trailing_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmpty
StringAlreadyInited()); | 14198 trailing_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmpty
StringAlreadyInited()); |
14388 clear_has_trailing_comments(); | 14199 clear_has_trailing_comments(); |
14389 } | 14200 } |
14390 const ::std::string& SourceCodeInfo_Location::trailing_comments() const { | 14201 const ::std::string& SourceCodeInfo_Location::trailing_comments() const { |
14391 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.
trailing_comments) | 14202 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.
trailing_comments) |
14392 return trailing_comments_.GetNoArena(); | 14203 return trailing_comments_.GetNoArena(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited()); |
14393 } | 14204 } |
14394 void SourceCodeInfo_Location::set_trailing_comments(const ::std::string& value)
{ | 14205 void SourceCodeInfo_Location::set_trailing_comments(const ::std::string& value)
{ |
14395 set_has_trailing_comments(); | 14206 set_has_trailing_comments(); |
14396 trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited(), value); | 14207 trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited(), value); |
14397 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.
trailing_comments) | 14208 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.
trailing_comments) |
14398 } | 14209 } |
14399 #if LANG_CXX11 | 14210 void SourceCodeInfo_Location::set_trailing_comments(const char* value) { |
14400 void SourceCodeInfo_Location::set_trailing_comments(::std::string&& value) { | |
14401 set_has_trailing_comments(); | |
14402 trailing_comments_.SetNoArena( | |
14403 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va
lue)); | |
14404 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.SourceCodeInfo.Lo
cation.trailing_comments) | |
14405 } | |
14406 #endif | |
14407 void SourceCodeInfo_Location::set_trailing_comments(const char* value) { | |
14408 set_has_trailing_comments(); | 14211 set_has_trailing_comments(); |
14409 trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited(), ::std::string(value)); | 14212 trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited(), ::std::string(value)); |
14410 // @@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) |
14411 } | 14214 } |
14412 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) { |
14413 set_has_trailing_comments(); | 14216 set_has_trailing_comments(); |
14414 trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited(), | 14217 trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited(), |
14415 ::std::string(reinterpret_cast<const char*>(value), size)); | 14218 ::std::string(reinterpret_cast<const char*>(value), size)); |
14416 // @@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) |
14417 } | 14220 } |
14418 ::std::string* SourceCodeInfo_Location::mutable_trailing_comments() { | 14221 ::std::string* SourceCodeInfo_Location::mutable_trailing_comments() { |
14419 set_has_trailing_comments(); | 14222 set_has_trailing_comments(); |
14420 // @@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) |
14421 return trailing_comments_.MutableNoArena(&::google::protobuf::internal::GetEmp
tyStringAlreadyInited()); | 14224 return trailing_comments_.MutableNoArena(&::google::protobuf::internal::GetEmp
tyStringAlreadyInited()); |
14422 } | 14225 } |
14423 ::std::string* SourceCodeInfo_Location::release_trailing_comments() { | 14226 ::std::string* SourceCodeInfo_Location::release_trailing_comments() { |
14424 // @@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) |
14425 clear_has_trailing_comments(); | 14228 clear_has_trailing_comments(); |
14426 return trailing_comments_.ReleaseNoArena(&::google::protobuf::internal::GetEmp
tyStringAlreadyInited()); | 14229 return trailing_comments_.ReleaseNoArena(&::google::protobuf::internal::GetEmp
tyStringAlreadyInited()); |
14427 } | 14230 } |
14428 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) { |
14429 if (trailing_comments != NULL) { | 14232 if (trailing_comments != NULL) { |
14430 set_has_trailing_comments(); | 14233 set_has_trailing_comments(); |
14431 } else { | 14234 } else { |
14432 clear_has_trailing_comments(); | 14235 clear_has_trailing_comments(); |
14433 } | 14236 } |
14434 trailing_comments_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmpty
StringAlreadyInited(), trailing_comments); | 14237 trailing_comments_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmpty
StringAlreadyInited(), trailing_comments); |
14435 // @@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) |
14436 } | 14239 } |
14437 | 14240 |
14438 // repeated string leading_detached_comments = 6; | 14241 // repeated string leading_detached_comments = 6; |
14439 int SourceCodeInfo_Location::leading_detached_comments_size() const { | 14242 int SourceCodeInfo_Location::leading_detached_comments_size() const { |
14440 return leading_detached_comments_.size(); | 14243 return leading_detached_comments_.size(); |
14441 } | 14244 } |
14442 void SourceCodeInfo_Location::clear_leading_detached_comments() { | 14245 void SourceCodeInfo_Location::clear_leading_detached_comments() { |
14443 leading_detached_comments_.Clear(); | 14246 leading_detached_comments_.Clear(); |
14444 } | 14247 } |
14445 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 { |
14446 // @@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) |
14447 return leading_detached_comments_.Get(index); | 14250 return leading_detached_comments_.Get(index); |
14448 } | 14251 } |
14449 ::std::string* SourceCodeInfo_Location::mutable_leading_detached_comments(int in
dex) { | 14252 ::std::string* SourceCodeInfo_Location::mutable_leading_detached_comments(int i
ndex) { |
14450 // @@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) |
14451 return leading_detached_comments_.Mutable(index); | 14254 return leading_detached_comments_.Mutable(index); |
14452 } | 14255 } |
14453 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) { |
14454 // @@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) |
14455 leading_detached_comments_.Mutable(index)->assign(value); | 14258 leading_detached_comments_.Mutable(index)->assign(value); |
14456 } | 14259 } |
14457 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) { |
14458 leading_detached_comments_.Mutable(index)->assign(value); | 14261 leading_detached_comments_.Mutable(index)->assign(value); |
14459 // @@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) |
14460 } | 14263 } |
14461 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) { |
14462 leading_detached_comments_.Mutable(index)->assign( | 14265 leading_detached_comments_.Mutable(index)->assign( |
14463 reinterpret_cast<const char*>(value), size); | 14266 reinterpret_cast<const char*>(value), size); |
14464 // @@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) |
14465 } | 14268 } |
14466 ::std::string* SourceCodeInfo_Location::add_leading_detached_comments() { | 14269 ::std::string* SourceCodeInfo_Location::add_leading_detached_comments() { |
14467 // @@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) |
14468 return leading_detached_comments_.Add(); | 14271 return leading_detached_comments_.Add(); |
14469 } | 14272 } |
14470 void SourceCodeInfo_Location::add_leading_detached_comments(const ::std::string&
value) { | 14273 void SourceCodeInfo_Location::add_leading_detached_comments(const ::std::string
& value) { |
14471 leading_detached_comments_.Add()->assign(value); | 14274 leading_detached_comments_.Add()->assign(value); |
14472 // @@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) |
14473 } | 14276 } |
14474 void SourceCodeInfo_Location::add_leading_detached_comments(const char* value) { | 14277 void SourceCodeInfo_Location::add_leading_detached_comments(const char* value)
{ |
14475 leading_detached_comments_.Add()->assign(value); | 14278 leading_detached_comments_.Add()->assign(value); |
14476 // @@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) |
14477 } | 14280 } |
14478 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) { |
14479 leading_detached_comments_.Add()->assign(reinterpret_cast<const char*>(value),
size); | 14282 leading_detached_comments_.Add()->assign(reinterpret_cast<const char*>(value),
size); |
14480 // @@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) |
14481 } | 14284 } |
14482 const ::google::protobuf::RepeatedPtrField< ::std::string>& | 14285 const ::google::protobuf::RepeatedPtrField< ::std::string>& |
14483 SourceCodeInfo_Location::leading_detached_comments() const { | 14286 SourceCodeInfo_Location::leading_detached_comments() const { |
14484 // @@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) |
14485 return leading_detached_comments_; | 14288 return leading_detached_comments_; |
14486 } | 14289 } |
14487 ::google::protobuf::RepeatedPtrField< ::std::string>* | 14290 ::google::protobuf::RepeatedPtrField< ::std::string>* |
14488 SourceCodeInfo_Location::mutable_leading_detached_comments() { | 14291 SourceCodeInfo_Location::mutable_leading_detached_comments() { |
14489 // @@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) |
14490 return &leading_detached_comments_; | 14293 return &leading_detached_comments_; |
14491 } | 14294 } |
14492 | 14295 |
14493 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 14296 // ------------------------------------------------------------------- |
14494 | 14297 |
14495 // =================================================================== | |
14496 | |
14497 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | |
14498 const int SourceCodeInfo::kLocationFieldNumber; | |
14499 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | |
14500 | |
14501 SourceCodeInfo::SourceCodeInfo() | |
14502 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | |
14503 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
14504 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
14505 } | |
14506 SharedCtor(); | |
14507 // @@protoc_insertion_point(constructor:google.protobuf.SourceCodeInfo) | |
14508 } | |
14509 SourceCodeInfo::SourceCodeInfo(const SourceCodeInfo& from) | |
14510 : ::google::protobuf::Message(), | |
14511 _internal_metadata_(NULL), | |
14512 _has_bits_(from._has_bits_), | |
14513 _cached_size_(0), | |
14514 location_(from.location_) { | |
14515 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
14516 // @@protoc_insertion_point(copy_constructor:google.protobuf.SourceCodeInfo) | |
14517 } | |
14518 | |
14519 void SourceCodeInfo::SharedCtor() { | |
14520 _cached_size_ = 0; | |
14521 } | |
14522 | |
14523 SourceCodeInfo::~SourceCodeInfo() { | |
14524 // @@protoc_insertion_point(destructor:google.protobuf.SourceCodeInfo) | |
14525 SharedDtor(); | |
14526 } | |
14527 | |
14528 void SourceCodeInfo::SharedDtor() { | |
14529 } | |
14530 | |
14531 void SourceCodeInfo::SetCachedSize(int size) const { | |
14532 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | |
14533 _cached_size_ = size; | |
14534 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | |
14535 } | |
14536 const ::google::protobuf::Descriptor* SourceCodeInfo::descriptor() { | |
14537 protobuf_AssignDescriptorsOnce(); | |
14538 return file_level_metadata[22].descriptor; | |
14539 } | |
14540 | |
14541 const SourceCodeInfo& SourceCodeInfo::default_instance() { | |
14542 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
14543 return *internal_default_instance(); | |
14544 } | |
14545 | |
14546 SourceCodeInfo* SourceCodeInfo::New(::google::protobuf::Arena* arena) const { | |
14547 SourceCodeInfo* n = new SourceCodeInfo; | |
14548 if (arena != NULL) { | |
14549 arena->Own(n); | |
14550 } | |
14551 return n; | |
14552 } | |
14553 | |
14554 void SourceCodeInfo::Clear() { | |
14555 // @@protoc_insertion_point(message_clear_start:google.protobuf.SourceCodeInfo) | |
14556 location_.Clear(); | |
14557 _has_bits_.Clear(); | |
14558 _internal_metadata_.Clear(); | |
14559 } | |
14560 | |
14561 bool SourceCodeInfo::MergePartialFromCodedStream( | |
14562 ::google::protobuf::io::CodedInputStream* input) { | |
14563 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | |
14564 ::google::protobuf::uint32 tag; | |
14565 // @@protoc_insertion_point(parse_start:google.protobuf.SourceCodeInfo) | |
14566 for (;;) { | |
14567 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | |
14568 tag = p.first; | |
14569 if (!p.second) goto handle_unusual; | |
14570 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | |
14571 // repeated .google.protobuf.SourceCodeInfo.Location location = 1; | |
14572 case 1: { | |
14573 if (tag == 10u) { | |
14574 DO_(input->IncrementRecursionDepth()); | |
14575 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | |
14576 input, add_location())); | |
14577 } else { | |
14578 goto handle_unusual; | |
14579 } | |
14580 input->UnsafeDecrementRecursionDepth(); | |
14581 break; | |
14582 } | |
14583 | |
14584 default: { | |
14585 handle_unusual: | |
14586 if (tag == 0 || | |
14587 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | |
14588 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | |
14589 goto success; | |
14590 } | |
14591 DO_(::google::protobuf::internal::WireFormat::SkipField( | |
14592 input, tag, mutable_unknown_fields())); | |
14593 break; | |
14594 } | |
14595 } | |
14596 } | |
14597 success: | |
14598 // @@protoc_insertion_point(parse_success:google.protobuf.SourceCodeInfo) | |
14599 return true; | |
14600 failure: | |
14601 // @@protoc_insertion_point(parse_failure:google.protobuf.SourceCodeInfo) | |
14602 return false; | |
14603 #undef DO_ | |
14604 } | |
14605 | |
14606 void SourceCodeInfo::SerializeWithCachedSizes( | |
14607 ::google::protobuf::io::CodedOutputStream* output) const { | |
14608 // @@protoc_insertion_point(serialize_start:google.protobuf.SourceCodeInfo) | |
14609 // repeated .google.protobuf.SourceCodeInfo.Location location = 1; | |
14610 for (unsigned int i = 0, n = this->location_size(); i < n; i++) { | |
14611 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | |
14612 1, this->location(i), output); | |
14613 } | |
14614 | |
14615 if (_internal_metadata_.have_unknown_fields()) { | |
14616 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | |
14617 unknown_fields(), output); | |
14618 } | |
14619 // @@protoc_insertion_point(serialize_end:google.protobuf.SourceCodeInfo) | |
14620 } | |
14621 | |
14622 ::google::protobuf::uint8* SourceCodeInfo::InternalSerializeWithCachedSizesToArr
ay( | |
14623 bool deterministic, ::google::protobuf::uint8* target) const { | |
14624 (void)deterministic; // Unused | |
14625 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.SourceCod
eInfo) | |
14626 // repeated .google.protobuf.SourceCodeInfo.Location location = 1; | |
14627 for (unsigned int i = 0, n = this->location_size(); i < n; i++) { | |
14628 target = ::google::protobuf::internal::WireFormatLite:: | |
14629 InternalWriteMessageNoVirtualToArray( | |
14630 1, this->location(i), false, target); | |
14631 } | |
14632 | |
14633 if (_internal_metadata_.have_unknown_fields()) { | |
14634 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | |
14635 unknown_fields(), target); | |
14636 } | |
14637 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.SourceCodeI
nfo) | |
14638 return target; | |
14639 } | |
14640 | |
14641 size_t SourceCodeInfo::ByteSizeLong() const { | |
14642 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.SourceCodeIn
fo) | |
14643 size_t total_size = 0; | |
14644 | |
14645 if (_internal_metadata_.have_unknown_fields()) { | |
14646 total_size += | |
14647 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | |
14648 unknown_fields()); | |
14649 } | |
14650 // repeated .google.protobuf.SourceCodeInfo.Location location = 1; | |
14651 { | |
14652 unsigned int count = this->location_size(); | |
14653 total_size += 1UL * count; | |
14654 for (unsigned int i = 0; i < count; i++) { | |
14655 total_size += | |
14656 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
14657 this->location(i)); | |
14658 } | |
14659 } | |
14660 | |
14661 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | |
14662 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | |
14663 _cached_size_ = cached_size; | |
14664 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | |
14665 return total_size; | |
14666 } | |
14667 | |
14668 void SourceCodeInfo::MergeFrom(const ::google::protobuf::Message& from) { | |
14669 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.SourceC
odeInfo) | |
14670 GOOGLE_DCHECK_NE(&from, this); | |
14671 const SourceCodeInfo* source = | |
14672 ::google::protobuf::internal::DynamicCastToGenerated<const SourceCodeInfo>
( | |
14673 &from); | |
14674 if (source == NULL) { | |
14675 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.S
ourceCodeInfo) | |
14676 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | |
14677 } else { | |
14678 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.SourceCodeInfo) | |
14679 MergeFrom(*source); | |
14680 } | |
14681 } | |
14682 | |
14683 void SourceCodeInfo::MergeFrom(const SourceCodeInfo& from) { | |
14684 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Sour
ceCodeInfo) | |
14685 GOOGLE_DCHECK_NE(&from, this); | |
14686 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
14687 location_.MergeFrom(from.location_); | |
14688 } | |
14689 | |
14690 void SourceCodeInfo::CopyFrom(const ::google::protobuf::Message& from) { | |
14691 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.SourceCo
deInfo) | |
14692 if (&from == this) return; | |
14693 Clear(); | |
14694 MergeFrom(from); | |
14695 } | |
14696 | |
14697 void SourceCodeInfo::CopyFrom(const SourceCodeInfo& from) { | |
14698 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Sourc
eCodeInfo) | |
14699 if (&from == this) return; | |
14700 Clear(); | |
14701 MergeFrom(from); | |
14702 } | |
14703 | |
14704 bool SourceCodeInfo::IsInitialized() const { | |
14705 return true; | |
14706 } | |
14707 | |
14708 void SourceCodeInfo::Swap(SourceCodeInfo* other) { | |
14709 if (other == this) return; | |
14710 InternalSwap(other); | |
14711 } | |
14712 void SourceCodeInfo::InternalSwap(SourceCodeInfo* other) { | |
14713 location_.UnsafeArenaSwap(&other->location_); | |
14714 std::swap(_has_bits_[0], other->_has_bits_[0]); | |
14715 _internal_metadata_.Swap(&other->_internal_metadata_); | |
14716 std::swap(_cached_size_, other->_cached_size_); | |
14717 } | |
14718 | |
14719 ::google::protobuf::Metadata SourceCodeInfo::GetMetadata() const { | |
14720 protobuf_AssignDescriptorsOnce(); | |
14721 return file_level_metadata[22]; | |
14722 } | |
14723 | |
14724 #if PROTOBUF_INLINE_NOT_IN_HEADERS | |
14725 // SourceCodeInfo | 14298 // SourceCodeInfo |
14726 | 14299 |
14727 // repeated .google.protobuf.SourceCodeInfo.Location location = 1; | 14300 // repeated .google.protobuf.SourceCodeInfo.Location location = 1; |
14728 int SourceCodeInfo::location_size() const { | 14301 int SourceCodeInfo::location_size() const { |
14729 return location_.size(); | 14302 return location_.size(); |
14730 } | 14303 } |
14731 void SourceCodeInfo::clear_location() { | 14304 void SourceCodeInfo::clear_location() { |
14732 location_.Clear(); | 14305 location_.Clear(); |
14733 } | 14306 } |
14734 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... |
14760 | 14333 |
14761 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 14334 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
14762 const int GeneratedCodeInfo_Annotation::kPathFieldNumber; | 14335 const int GeneratedCodeInfo_Annotation::kPathFieldNumber; |
14763 const int GeneratedCodeInfo_Annotation::kSourceFileFieldNumber; | 14336 const int GeneratedCodeInfo_Annotation::kSourceFileFieldNumber; |
14764 const int GeneratedCodeInfo_Annotation::kBeginFieldNumber; | 14337 const int GeneratedCodeInfo_Annotation::kBeginFieldNumber; |
14765 const int GeneratedCodeInfo_Annotation::kEndFieldNumber; | 14338 const int GeneratedCodeInfo_Annotation::kEndFieldNumber; |
14766 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 14339 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
14767 | 14340 |
14768 GeneratedCodeInfo_Annotation::GeneratedCodeInfo_Annotation() | 14341 GeneratedCodeInfo_Annotation::GeneratedCodeInfo_Annotation() |
14769 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 14342 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
14770 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
14771 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
14772 } | |
14773 SharedCtor(); | 14343 SharedCtor(); |
14774 // @@protoc_insertion_point(constructor:google.protobuf.GeneratedCodeInfo.Anno
tation) | 14344 // @@protoc_insertion_point(constructor:google.protobuf.GeneratedCodeInfo.Anno
tation) |
14775 } | 14345 } |
| 14346 |
| 14347 void GeneratedCodeInfo_Annotation::InitAsDefaultInstance() { |
| 14348 } |
| 14349 |
14776 GeneratedCodeInfo_Annotation::GeneratedCodeInfo_Annotation(const GeneratedCodeIn
fo_Annotation& from) | 14350 GeneratedCodeInfo_Annotation::GeneratedCodeInfo_Annotation(const GeneratedCodeIn
fo_Annotation& from) |
14777 : ::google::protobuf::Message(), | 14351 : ::google::protobuf::Message(), |
14778 _internal_metadata_(NULL), | 14352 _internal_metadata_(NULL) { |
14779 _has_bits_(from._has_bits_), | 14353 SharedCtor(); |
14780 _cached_size_(0), | 14354 MergeFrom(from); |
14781 path_(from.path_) { | |
14782 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
14783 source_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); | |
14784 if (from.has_source_file()) { | |
14785 source_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyString
AlreadyInited(), from.source_file_); | |
14786 } | |
14787 ::memcpy(&begin_, &from.begin_, | |
14788 reinterpret_cast<char*>(&end_) - | |
14789 reinterpret_cast<char*>(&begin_) + sizeof(end_)); | |
14790 // @@protoc_insertion_point(copy_constructor:google.protobuf.GeneratedCodeInfo
.Annotation) | 14355 // @@protoc_insertion_point(copy_constructor:google.protobuf.GeneratedCodeInfo
.Annotation) |
14791 } | 14356 } |
14792 | 14357 |
14793 void GeneratedCodeInfo_Annotation::SharedCtor() { | 14358 void GeneratedCodeInfo_Annotation::SharedCtor() { |
| 14359 ::google::protobuf::internal::GetEmptyString(); |
14794 _cached_size_ = 0; | 14360 _cached_size_ = 0; |
14795 source_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); | 14361 source_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited()); |
14796 ::memset(&begin_, 0, reinterpret_cast<char*>(&end_) - | 14362 begin_ = 0; |
14797 reinterpret_cast<char*>(&begin_) + sizeof(end_)); | 14363 end_ = 0; |
| 14364 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
14798 } | 14365 } |
14799 | 14366 |
14800 GeneratedCodeInfo_Annotation::~GeneratedCodeInfo_Annotation() { | 14367 GeneratedCodeInfo_Annotation::~GeneratedCodeInfo_Annotation() { |
14801 // @@protoc_insertion_point(destructor:google.protobuf.GeneratedCodeInfo.Annot
ation) | 14368 // @@protoc_insertion_point(destructor:google.protobuf.GeneratedCodeInfo.Annot
ation) |
14802 SharedDtor(); | 14369 SharedDtor(); |
14803 } | 14370 } |
14804 | 14371 |
14805 void GeneratedCodeInfo_Annotation::SharedDtor() { | 14372 void GeneratedCodeInfo_Annotation::SharedDtor() { |
14806 source_file_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | 14373 source_file_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
| 14374 if (this != default_instance_) { |
| 14375 } |
14807 } | 14376 } |
14808 | 14377 |
14809 void GeneratedCodeInfo_Annotation::SetCachedSize(int size) const { | 14378 void GeneratedCodeInfo_Annotation::SetCachedSize(int size) const { |
14810 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 14379 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
14811 _cached_size_ = size; | 14380 _cached_size_ = size; |
14812 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 14381 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
14813 } | 14382 } |
14814 const ::google::protobuf::Descriptor* GeneratedCodeInfo_Annotation::descriptor()
{ | 14383 const ::google::protobuf::Descriptor* GeneratedCodeInfo_Annotation::descriptor()
{ |
14815 protobuf_AssignDescriptorsOnce(); | 14384 protobuf_AssignDescriptorsOnce(); |
14816 return file_level_metadata[23].descriptor; | 14385 return GeneratedCodeInfo_Annotation_descriptor_; |
14817 } | 14386 } |
14818 | 14387 |
14819 const GeneratedCodeInfo_Annotation& GeneratedCodeInfo_Annotation::default_instan
ce() { | 14388 const GeneratedCodeInfo_Annotation& GeneratedCodeInfo_Annotation::default_instan
ce() { |
14820 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 14389 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
14821 return *internal_default_instance(); | 14390 return *default_instance_; |
14822 } | 14391 } |
14823 | 14392 |
| 14393 GeneratedCodeInfo_Annotation* GeneratedCodeInfo_Annotation::default_instance_ =
NULL; |
| 14394 |
14824 GeneratedCodeInfo_Annotation* GeneratedCodeInfo_Annotation::New(::google::protob
uf::Arena* arena) const { | 14395 GeneratedCodeInfo_Annotation* GeneratedCodeInfo_Annotation::New(::google::protob
uf::Arena* arena) const { |
14825 GeneratedCodeInfo_Annotation* n = new GeneratedCodeInfo_Annotation; | 14396 GeneratedCodeInfo_Annotation* n = new GeneratedCodeInfo_Annotation; |
14826 if (arena != NULL) { | 14397 if (arena != NULL) { |
14827 arena->Own(n); | 14398 arena->Own(n); |
14828 } | 14399 } |
14829 return n; | 14400 return n; |
14830 } | 14401 } |
14831 | 14402 |
14832 void GeneratedCodeInfo_Annotation::Clear() { | 14403 void GeneratedCodeInfo_Annotation::Clear() { |
14833 // @@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 |
14834 path_.Clear(); | 14431 path_.Clear(); |
14835 if (has_source_file()) { | 14432 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
14836 GOOGLE_DCHECK(!source_file_.IsDefault(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited())); | 14433 if (_internal_metadata_.have_unknown_fields()) { |
14837 (*source_file_.UnsafeRawStringPointer())->clear(); | 14434 mutable_unknown_fields()->Clear(); |
14838 } | 14435 } |
14839 if (_has_bits_[0 / 32] & 6u) { | |
14840 ::memset(&begin_, 0, reinterpret_cast<char*>(&end_) - | |
14841 reinterpret_cast<char*>(&begin_) + sizeof(end_)); | |
14842 } | |
14843 _has_bits_.Clear(); | |
14844 _internal_metadata_.Clear(); | |
14845 } | 14436 } |
14846 | 14437 |
14847 bool GeneratedCodeInfo_Annotation::MergePartialFromCodedStream( | 14438 bool GeneratedCodeInfo_Annotation::MergePartialFromCodedStream( |
14848 ::google::protobuf::io::CodedInputStream* input) { | 14439 ::google::protobuf::io::CodedInputStream* input) { |
14849 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 14440 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
14850 ::google::protobuf::uint32 tag; | 14441 ::google::protobuf::uint32 tag; |
14851 // @@protoc_insertion_point(parse_start:google.protobuf.GeneratedCodeInfo.Anno
tation) | 14442 // @@protoc_insertion_point(parse_start:google.protobuf.GeneratedCodeInfo.Anno
tation) |
14852 for (;;) { | 14443 for (;;) { |
14853 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 14444 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
14854 tag = p.first; | 14445 tag = p.first; |
14855 if (!p.second) goto handle_unusual; | 14446 if (!p.second) goto handle_unusual; |
14856 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 14447 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
14857 // repeated int32 path = 1 [packed = true]; | 14448 // repeated int32 path = 1 [packed = true]; |
14858 case 1: { | 14449 case 1: { |
14859 if (tag == 10u) { | 14450 if (tag == 10) { |
14860 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive
< | 14451 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive
< |
14861 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 14452 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
14862 input, this->mutable_path()))); | 14453 input, this->mutable_path()))); |
14863 } else if (tag == 8u) { | 14454 } else if (tag == 8) { |
14864 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimiti
veNoInline< | 14455 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimiti
veNoInline< |
14865 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 14456 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
14866 1, 10u, input, this->mutable_path()))); | 14457 1, 10, input, this->mutable_path()))); |
14867 } else { | 14458 } else { |
14868 goto handle_unusual; | 14459 goto handle_unusual; |
14869 } | 14460 } |
| 14461 if (input->ExpectTag(18)) goto parse_source_file; |
14870 break; | 14462 break; |
14871 } | 14463 } |
14872 | 14464 |
14873 // optional string source_file = 2; | 14465 // optional string source_file = 2; |
14874 case 2: { | 14466 case 2: { |
14875 if (tag == 18u) { | 14467 if (tag == 18) { |
| 14468 parse_source_file: |
14876 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 14469 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
14877 input, this->mutable_source_file())); | 14470 input, this->mutable_source_file())); |
14878 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( | 14471 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
14879 this->source_file().data(), this->source_file().length(), | 14472 this->source_file().data(), this->source_file().length(), |
14880 ::google::protobuf::internal::WireFormat::PARSE, | 14473 ::google::protobuf::internal::WireFormat::PARSE, |
14881 "google.protobuf.GeneratedCodeInfo.Annotation.source_file"); | 14474 "google.protobuf.GeneratedCodeInfo.Annotation.source_file"); |
14882 } else { | 14475 } else { |
14883 goto handle_unusual; | 14476 goto handle_unusual; |
14884 } | 14477 } |
| 14478 if (input->ExpectTag(24)) goto parse_begin; |
14885 break; | 14479 break; |
14886 } | 14480 } |
14887 | 14481 |
14888 // optional int32 begin = 3; | 14482 // optional int32 begin = 3; |
14889 case 3: { | 14483 case 3: { |
14890 if (tag == 24u) { | 14484 if (tag == 24) { |
14891 set_has_begin(); | 14485 parse_begin: |
14892 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 14486 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
14893 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 14487 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
14894 input, &begin_))); | 14488 input, &begin_))); |
| 14489 set_has_begin(); |
14895 } else { | 14490 } else { |
14896 goto handle_unusual; | 14491 goto handle_unusual; |
14897 } | 14492 } |
| 14493 if (input->ExpectTag(32)) goto parse_end; |
14898 break; | 14494 break; |
14899 } | 14495 } |
14900 | 14496 |
14901 // optional int32 end = 4; | 14497 // optional int32 end = 4; |
14902 case 4: { | 14498 case 4: { |
14903 if (tag == 32u) { | 14499 if (tag == 32) { |
14904 set_has_end(); | 14500 parse_end: |
14905 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 14501 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
14906 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 14502 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
14907 input, &end_))); | 14503 input, &end_))); |
| 14504 set_has_end(); |
14908 } else { | 14505 } else { |
14909 goto handle_unusual; | 14506 goto handle_unusual; |
14910 } | 14507 } |
| 14508 if (input->ExpectAtEnd()) goto success; |
14911 break; | 14509 break; |
14912 } | 14510 } |
14913 | 14511 |
14914 default: { | 14512 default: { |
14915 handle_unusual: | 14513 handle_unusual: |
14916 if (tag == 0 || | 14514 if (tag == 0 || |
14917 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 14515 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
14918 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 14516 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
14919 goto success; | 14517 goto success; |
14920 } | 14518 } |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14966 ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->end(), out
put); | 14564 ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->end(), out
put); |
14967 } | 14565 } |
14968 | 14566 |
14969 if (_internal_metadata_.have_unknown_fields()) { | 14567 if (_internal_metadata_.have_unknown_fields()) { |
14970 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 14568 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
14971 unknown_fields(), output); | 14569 unknown_fields(), output); |
14972 } | 14570 } |
14973 // @@protoc_insertion_point(serialize_end:google.protobuf.GeneratedCodeInfo.An
notation) | 14571 // @@protoc_insertion_point(serialize_end:google.protobuf.GeneratedCodeInfo.An
notation) |
14974 } | 14572 } |
14975 | 14573 |
14976 ::google::protobuf::uint8* GeneratedCodeInfo_Annotation::InternalSerializeWithCa
chedSizesToArray( | 14574 ::google::protobuf::uint8* GeneratedCodeInfo_Annotation::SerializeWithCachedSize
sToArray( |
14977 bool deterministic, ::google::protobuf::uint8* target) const { | 14575 ::google::protobuf::uint8* target) const { |
14978 (void)deterministic; // Unused | |
14979 // @@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) |
14980 // repeated int32 path = 1 [packed = true]; | 14577 // repeated int32 path = 1 [packed = true]; |
14981 if (this->path_size() > 0) { | 14578 if (this->path_size() > 0) { |
14982 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( | 14579 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
14983 1, | 14580 1, |
14984 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, | 14581 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
14985 target); | 14582 target); |
14986 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( | 14583 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
14987 _path_cached_byte_size_, target); | 14584 _path_cached_byte_size_, target); |
14988 } | 14585 } |
(...skipping 24 matching lines...) Expand all Loading... |
15013 } | 14610 } |
15014 | 14611 |
15015 if (_internal_metadata_.have_unknown_fields()) { | 14612 if (_internal_metadata_.have_unknown_fields()) { |
15016 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 14613 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
15017 unknown_fields(), target); | 14614 unknown_fields(), target); |
15018 } | 14615 } |
15019 // @@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) |
15020 return target; | 14617 return target; |
15021 } | 14618 } |
15022 | 14619 |
15023 size_t GeneratedCodeInfo_Annotation::ByteSizeLong() const { | 14620 int GeneratedCodeInfo_Annotation::ByteSize() const { |
15024 // @@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) |
15025 size_t total_size = 0; | 14622 int total_size = 0; |
15026 | 14623 |
15027 if (_internal_metadata_.have_unknown_fields()) { | 14624 if (_has_bits_[1 / 32] & 14u) { |
15028 total_size += | |
15029 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | |
15030 unknown_fields()); | |
15031 } | |
15032 // repeated int32 path = 1 [packed = true]; | |
15033 { | |
15034 size_t data_size = 0; | |
15035 unsigned int count = this->path_size(); | |
15036 for (unsigned int i = 0; i < count; i++) { | |
15037 data_size += ::google::protobuf::internal::WireFormatLite:: | |
15038 Int32Size(this->path(i)); | |
15039 } | |
15040 if (data_size > 0) { | |
15041 total_size += 1 + | |
15042 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); | |
15043 } | |
15044 int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); | |
15045 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | |
15046 _path_cached_byte_size_ = cached_size; | |
15047 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | |
15048 total_size += data_size; | |
15049 } | |
15050 | |
15051 if (_has_bits_[0 / 32] & 7u) { | |
15052 // optional string source_file = 2; | 14625 // optional string source_file = 2; |
15053 if (has_source_file()) { | 14626 if (has_source_file()) { |
15054 total_size += 1 + | 14627 total_size += 1 + |
15055 ::google::protobuf::internal::WireFormatLite::StringSize( | 14628 ::google::protobuf::internal::WireFormatLite::StringSize( |
15056 this->source_file()); | 14629 this->source_file()); |
15057 } | 14630 } |
15058 | 14631 |
15059 // optional int32 begin = 3; | 14632 // optional int32 begin = 3; |
15060 if (has_begin()) { | 14633 if (has_begin()) { |
15061 total_size += 1 + | 14634 total_size += 1 + |
15062 ::google::protobuf::internal::WireFormatLite::Int32Size( | 14635 ::google::protobuf::internal::WireFormatLite::Int32Size( |
15063 this->begin()); | 14636 this->begin()); |
15064 } | 14637 } |
15065 | 14638 |
15066 // optional int32 end = 4; | 14639 // optional int32 end = 4; |
15067 if (has_end()) { | 14640 if (has_end()) { |
15068 total_size += 1 + | 14641 total_size += 1 + |
15069 ::google::protobuf::internal::WireFormatLite::Int32Size( | 14642 ::google::protobuf::internal::WireFormatLite::Int32Size( |
15070 this->end()); | 14643 this->end()); |
15071 } | 14644 } |
15072 | 14645 |
15073 } | 14646 } |
15074 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 } |
15075 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 14669 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
15076 _cached_size_ = cached_size; | 14670 _cached_size_ = total_size; |
15077 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 14671 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
15078 return total_size; | 14672 return total_size; |
15079 } | 14673 } |
15080 | 14674 |
15081 void GeneratedCodeInfo_Annotation::MergeFrom(const ::google::protobuf::Message&
from) { | 14675 void GeneratedCodeInfo_Annotation::MergeFrom(const ::google::protobuf::Message&
from) { |
15082 // @@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) |
15083 GOOGLE_DCHECK_NE(&from, this); | 14677 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
15084 const GeneratedCodeInfo_Annotation* source = | 14678 const GeneratedCodeInfo_Annotation* source = |
15085 ::google::protobuf::internal::DynamicCastToGenerated<const GeneratedCodeIn
fo_Annotation>( | 14679 ::google::protobuf::internal::DynamicCastToGenerated<const GeneratedCodeIn
fo_Annotation>( |
15086 &from); | 14680 &from); |
15087 if (source == NULL) { | 14681 if (source == NULL) { |
15088 // @@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) |
15089 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 14683 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
15090 } else { | 14684 } else { |
15091 // @@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) |
15092 MergeFrom(*source); | 14686 MergeFrom(*source); |
15093 } | 14687 } |
15094 } | 14688 } |
15095 | 14689 |
15096 void GeneratedCodeInfo_Annotation::MergeFrom(const GeneratedCodeInfo_Annotation&
from) { | 14690 void GeneratedCodeInfo_Annotation::MergeFrom(const GeneratedCodeInfo_Annotation&
from) { |
15097 // @@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) |
15098 GOOGLE_DCHECK_NE(&from, this); | 14692 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
15099 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
15100 path_.MergeFrom(from.path_); | 14693 path_.MergeFrom(from.path_); |
15101 if (from._has_bits_[0 / 32] & 7u) { | 14694 if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { |
15102 if (from.has_source_file()) { | 14695 if (from.has_source_file()) { |
15103 set_has_source_file(); | 14696 set_has_source_file(); |
15104 source_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited(), from.source_file_); | 14697 source_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited(), from.source_file_); |
15105 } | 14698 } |
15106 if (from.has_begin()) { | 14699 if (from.has_begin()) { |
15107 set_begin(from.begin()); | 14700 set_begin(from.begin()); |
15108 } | 14701 } |
15109 if (from.has_end()) { | 14702 if (from.has_end()) { |
15110 set_end(from.end()); | 14703 set_end(from.end()); |
15111 } | 14704 } |
15112 } | 14705 } |
| 14706 if (from._internal_metadata_.have_unknown_fields()) { |
| 14707 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 14708 } |
15113 } | 14709 } |
15114 | 14710 |
15115 void GeneratedCodeInfo_Annotation::CopyFrom(const ::google::protobuf::Message& f
rom) { | 14711 void GeneratedCodeInfo_Annotation::CopyFrom(const ::google::protobuf::Message& f
rom) { |
15116 // @@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) |
15117 if (&from == this) return; | 14713 if (&from == this) return; |
15118 Clear(); | 14714 Clear(); |
15119 MergeFrom(from); | 14715 MergeFrom(from); |
15120 } | 14716 } |
15121 | 14717 |
15122 void GeneratedCodeInfo_Annotation::CopyFrom(const GeneratedCodeInfo_Annotation&
from) { | 14718 void GeneratedCodeInfo_Annotation::CopyFrom(const GeneratedCodeInfo_Annotation&
from) { |
15123 // @@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) |
15124 if (&from == this) return; | 14720 if (&from == this) return; |
15125 Clear(); | 14721 Clear(); |
15126 MergeFrom(from); | 14722 MergeFrom(from); |
15127 } | 14723 } |
15128 | 14724 |
15129 bool GeneratedCodeInfo_Annotation::IsInitialized() const { | 14725 bool GeneratedCodeInfo_Annotation::IsInitialized() const { |
| 14726 |
15130 return true; | 14727 return true; |
15131 } | 14728 } |
15132 | 14729 |
15133 void GeneratedCodeInfo_Annotation::Swap(GeneratedCodeInfo_Annotation* other) { | 14730 void GeneratedCodeInfo_Annotation::Swap(GeneratedCodeInfo_Annotation* other) { |
15134 if (other == this) return; | 14731 if (other == this) return; |
15135 InternalSwap(other); | 14732 InternalSwap(other); |
15136 } | 14733 } |
15137 void GeneratedCodeInfo_Annotation::InternalSwap(GeneratedCodeInfo_Annotation* ot
her) { | 14734 void GeneratedCodeInfo_Annotation::InternalSwap(GeneratedCodeInfo_Annotation* ot
her) { |
15138 path_.UnsafeArenaSwap(&other->path_); | 14735 path_.UnsafeArenaSwap(&other->path_); |
15139 source_file_.Swap(&other->source_file_); | 14736 source_file_.Swap(&other->source_file_); |
15140 std::swap(begin_, other->begin_); | 14737 std::swap(begin_, other->begin_); |
15141 std::swap(end_, other->end_); | 14738 std::swap(end_, other->end_); |
15142 std::swap(_has_bits_[0], other->_has_bits_[0]); | 14739 std::swap(_has_bits_[0], other->_has_bits_[0]); |
15143 _internal_metadata_.Swap(&other->_internal_metadata_); | 14740 _internal_metadata_.Swap(&other->_internal_metadata_); |
15144 std::swap(_cached_size_, other->_cached_size_); | 14741 std::swap(_cached_size_, other->_cached_size_); |
15145 } | 14742 } |
15146 | 14743 |
15147 ::google::protobuf::Metadata GeneratedCodeInfo_Annotation::GetMetadata() const { | 14744 ::google::protobuf::Metadata GeneratedCodeInfo_Annotation::GetMetadata() const { |
15148 protobuf_AssignDescriptorsOnce(); | 14745 protobuf_AssignDescriptorsOnce(); |
15149 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; |
15150 } | 14750 } |
15151 | 14751 |
15152 #if PROTOBUF_INLINE_NOT_IN_HEADERS | |
15153 // GeneratedCodeInfo_Annotation | |
15154 | 14752 |
15155 // repeated int32 path = 1 [packed = true]; | 14753 // ------------------------------------------------------------------- |
15156 int GeneratedCodeInfo_Annotation::path_size() const { | |
15157 return path_.size(); | |
15158 } | |
15159 void GeneratedCodeInfo_Annotation::clear_path() { | |
15160 path_.Clear(); | |
15161 } | |
15162 ::google::protobuf::int32 GeneratedCodeInfo_Annotation::path(int index) const { | |
15163 // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annota
tion.path) | |
15164 return path_.Get(index); | |
15165 } | |
15166 void GeneratedCodeInfo_Annotation::set_path(int index, ::google::protobuf::int32
value) { | |
15167 path_.Set(index, value); | |
15168 // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annota
tion.path) | |
15169 } | |
15170 void GeneratedCodeInfo_Annotation::add_path(::google::protobuf::int32 value) { | |
15171 path_.Add(value); | |
15172 // @@protoc_insertion_point(field_add:google.protobuf.GeneratedCodeInfo.Annota
tion.path) | |
15173 } | |
15174 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& | |
15175 GeneratedCodeInfo_Annotation::path() const { | |
15176 // @@protoc_insertion_point(field_list:google.protobuf.GeneratedCodeInfo.Annot
ation.path) | |
15177 return path_; | |
15178 } | |
15179 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* | |
15180 GeneratedCodeInfo_Annotation::mutable_path() { | |
15181 // @@protoc_insertion_point(field_mutable_list:google.protobuf.GeneratedCodeIn
fo.Annotation.path) | |
15182 return &path_; | |
15183 } | |
15184 | |
15185 // optional string source_file = 2; | |
15186 bool GeneratedCodeInfo_Annotation::has_source_file() const { | |
15187 return (_has_bits_[0] & 0x00000001u) != 0; | |
15188 } | |
15189 void GeneratedCodeInfo_Annotation::set_has_source_file() { | |
15190 _has_bits_[0] |= 0x00000001u; | |
15191 } | |
15192 void GeneratedCodeInfo_Annotation::clear_has_source_file() { | |
15193 _has_bits_[0] &= ~0x00000001u; | |
15194 } | |
15195 void GeneratedCodeInfo_Annotation::clear_source_file() { | |
15196 source_file_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); | |
15197 clear_has_source_file(); | |
15198 } | |
15199 const ::std::string& GeneratedCodeInfo_Annotation::source_file() const { | |
15200 // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annota
tion.source_file) | |
15201 return source_file_.GetNoArena(); | |
15202 } | |
15203 void GeneratedCodeInfo_Annotation::set_source_file(const ::std::string& value) { | |
15204 set_has_source_file(); | |
15205 source_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited(), value); | |
15206 // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annota
tion.source_file) | |
15207 } | |
15208 #if LANG_CXX11 | |
15209 void GeneratedCodeInfo_Annotation::set_source_file(::std::string&& value) { | |
15210 set_has_source_file(); | |
15211 source_file_.SetNoArena( | |
15212 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va
lue)); | |
15213 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.GeneratedCodeInfo
.Annotation.source_file) | |
15214 } | |
15215 #endif | |
15216 void GeneratedCodeInfo_Annotation::set_source_file(const char* value) { | |
15217 set_has_source_file(); | |
15218 source_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited(), ::std::string(value)); | |
15219 // @@protoc_insertion_point(field_set_char:google.protobuf.GeneratedCodeInfo.A
nnotation.source_file) | |
15220 } | |
15221 void GeneratedCodeInfo_Annotation::set_source_file(const char* value, size_t siz
e) { | |
15222 set_has_source_file(); | |
15223 source_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited(), | |
15224 ::std::string(reinterpret_cast<const char*>(value), size)); | |
15225 // @@protoc_insertion_point(field_set_pointer:google.protobuf.GeneratedCodeInf
o.Annotation.source_file) | |
15226 } | |
15227 ::std::string* GeneratedCodeInfo_Annotation::mutable_source_file() { | |
15228 set_has_source_file(); | |
15229 // @@protoc_insertion_point(field_mutable:google.protobuf.GeneratedCodeInfo.An
notation.source_file) | |
15230 return source_file_.MutableNoArena(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); | |
15231 } | |
15232 ::std::string* GeneratedCodeInfo_Annotation::release_source_file() { | |
15233 // @@protoc_insertion_point(field_release:google.protobuf.GeneratedCodeInfo.An
notation.source_file) | |
15234 clear_has_source_file(); | |
15235 return source_file_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited()); | |
15236 } | |
15237 void GeneratedCodeInfo_Annotation::set_allocated_source_file(::std::string* sour
ce_file) { | |
15238 if (source_file != NULL) { | |
15239 set_has_source_file(); | |
15240 } else { | |
15241 clear_has_source_file(); | |
15242 } | |
15243 source_file_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited(), source_file); | |
15244 // @@protoc_insertion_point(field_set_allocated:google.protobuf.GeneratedCodeI
nfo.Annotation.source_file) | |
15245 } | |
15246 | |
15247 // optional int32 begin = 3; | |
15248 bool GeneratedCodeInfo_Annotation::has_begin() const { | |
15249 return (_has_bits_[0] & 0x00000002u) != 0; | |
15250 } | |
15251 void GeneratedCodeInfo_Annotation::set_has_begin() { | |
15252 _has_bits_[0] |= 0x00000002u; | |
15253 } | |
15254 void GeneratedCodeInfo_Annotation::clear_has_begin() { | |
15255 _has_bits_[0] &= ~0x00000002u; | |
15256 } | |
15257 void GeneratedCodeInfo_Annotation::clear_begin() { | |
15258 begin_ = 0; | |
15259 clear_has_begin(); | |
15260 } | |
15261 ::google::protobuf::int32 GeneratedCodeInfo_Annotation::begin() const { | |
15262 // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annota
tion.begin) | |
15263 return begin_; | |
15264 } | |
15265 void GeneratedCodeInfo_Annotation::set_begin(::google::protobuf::int32 value) { | |
15266 set_has_begin(); | |
15267 begin_ = value; | |
15268 // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annota
tion.begin) | |
15269 } | |
15270 | |
15271 // optional int32 end = 4; | |
15272 bool GeneratedCodeInfo_Annotation::has_end() const { | |
15273 return (_has_bits_[0] & 0x00000004u) != 0; | |
15274 } | |
15275 void GeneratedCodeInfo_Annotation::set_has_end() { | |
15276 _has_bits_[0] |= 0x00000004u; | |
15277 } | |
15278 void GeneratedCodeInfo_Annotation::clear_has_end() { | |
15279 _has_bits_[0] &= ~0x00000004u; | |
15280 } | |
15281 void GeneratedCodeInfo_Annotation::clear_end() { | |
15282 end_ = 0; | |
15283 clear_has_end(); | |
15284 } | |
15285 ::google::protobuf::int32 GeneratedCodeInfo_Annotation::end() const { | |
15286 // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annota
tion.end) | |
15287 return end_; | |
15288 } | |
15289 void GeneratedCodeInfo_Annotation::set_end(::google::protobuf::int32 value) { | |
15290 set_has_end(); | |
15291 end_ = value; | |
15292 // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annota
tion.end) | |
15293 } | |
15294 | |
15295 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | |
15296 | |
15297 // =================================================================== | |
15298 | 14754 |
15299 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 14755 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
15300 const int GeneratedCodeInfo::kAnnotationFieldNumber; | 14756 const int GeneratedCodeInfo::kAnnotationFieldNumber; |
15301 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 14757 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
15302 | 14758 |
15303 GeneratedCodeInfo::GeneratedCodeInfo() | 14759 GeneratedCodeInfo::GeneratedCodeInfo() |
15304 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 14760 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
15305 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
15306 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | |
15307 } | |
15308 SharedCtor(); | 14761 SharedCtor(); |
15309 // @@protoc_insertion_point(constructor:google.protobuf.GeneratedCodeInfo) | 14762 // @@protoc_insertion_point(constructor:google.protobuf.GeneratedCodeInfo) |
15310 } | 14763 } |
| 14764 |
| 14765 void GeneratedCodeInfo::InitAsDefaultInstance() { |
| 14766 } |
| 14767 |
15311 GeneratedCodeInfo::GeneratedCodeInfo(const GeneratedCodeInfo& from) | 14768 GeneratedCodeInfo::GeneratedCodeInfo(const GeneratedCodeInfo& from) |
15312 : ::google::protobuf::Message(), | 14769 : ::google::protobuf::Message(), |
15313 _internal_metadata_(NULL), | 14770 _internal_metadata_(NULL) { |
15314 _has_bits_(from._has_bits_), | 14771 SharedCtor(); |
15315 _cached_size_(0), | 14772 MergeFrom(from); |
15316 annotation_(from.annotation_) { | |
15317 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
15318 // @@protoc_insertion_point(copy_constructor:google.protobuf.GeneratedCodeInfo
) | 14773 // @@protoc_insertion_point(copy_constructor:google.protobuf.GeneratedCodeInfo
) |
15319 } | 14774 } |
15320 | 14775 |
15321 void GeneratedCodeInfo::SharedCtor() { | 14776 void GeneratedCodeInfo::SharedCtor() { |
15322 _cached_size_ = 0; | 14777 _cached_size_ = 0; |
| 14778 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
15323 } | 14779 } |
15324 | 14780 |
15325 GeneratedCodeInfo::~GeneratedCodeInfo() { | 14781 GeneratedCodeInfo::~GeneratedCodeInfo() { |
15326 // @@protoc_insertion_point(destructor:google.protobuf.GeneratedCodeInfo) | 14782 // @@protoc_insertion_point(destructor:google.protobuf.GeneratedCodeInfo) |
15327 SharedDtor(); | 14783 SharedDtor(); |
15328 } | 14784 } |
15329 | 14785 |
15330 void GeneratedCodeInfo::SharedDtor() { | 14786 void GeneratedCodeInfo::SharedDtor() { |
| 14787 if (this != default_instance_) { |
| 14788 } |
15331 } | 14789 } |
15332 | 14790 |
15333 void GeneratedCodeInfo::SetCachedSize(int size) const { | 14791 void GeneratedCodeInfo::SetCachedSize(int size) const { |
15334 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 14792 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
15335 _cached_size_ = size; | 14793 _cached_size_ = size; |
15336 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 14794 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
15337 } | 14795 } |
15338 const ::google::protobuf::Descriptor* GeneratedCodeInfo::descriptor() { | 14796 const ::google::protobuf::Descriptor* GeneratedCodeInfo::descriptor() { |
15339 protobuf_AssignDescriptorsOnce(); | 14797 protobuf_AssignDescriptorsOnce(); |
15340 return file_level_metadata[24].descriptor; | 14798 return GeneratedCodeInfo_descriptor_; |
15341 } | 14799 } |
15342 | 14800 |
15343 const GeneratedCodeInfo& GeneratedCodeInfo::default_instance() { | 14801 const GeneratedCodeInfo& GeneratedCodeInfo::default_instance() { |
15344 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); | 14802 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor
_2eproto(); |
15345 return *internal_default_instance(); | 14803 return *default_instance_; |
15346 } | 14804 } |
15347 | 14805 |
| 14806 GeneratedCodeInfo* GeneratedCodeInfo::default_instance_ = NULL; |
| 14807 |
15348 GeneratedCodeInfo* GeneratedCodeInfo::New(::google::protobuf::Arena* arena) cons
t { | 14808 GeneratedCodeInfo* GeneratedCodeInfo::New(::google::protobuf::Arena* arena) cons
t { |
15349 GeneratedCodeInfo* n = new GeneratedCodeInfo; | 14809 GeneratedCodeInfo* n = new GeneratedCodeInfo; |
15350 if (arena != NULL) { | 14810 if (arena != NULL) { |
15351 arena->Own(n); | 14811 arena->Own(n); |
15352 } | 14812 } |
15353 return n; | 14813 return n; |
15354 } | 14814 } |
15355 | 14815 |
15356 void GeneratedCodeInfo::Clear() { | 14816 void GeneratedCodeInfo::Clear() { |
15357 // @@protoc_insertion_point(message_clear_start:google.protobuf.GeneratedCodeInf
o) | 14817 // @@protoc_insertion_point(message_clear_start:google.protobuf.GeneratedCodeInf
o) |
15358 annotation_.Clear(); | 14818 annotation_.Clear(); |
15359 _has_bits_.Clear(); | 14819 ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
15360 _internal_metadata_.Clear(); | 14820 if (_internal_metadata_.have_unknown_fields()) { |
| 14821 mutable_unknown_fields()->Clear(); |
| 14822 } |
15361 } | 14823 } |
15362 | 14824 |
15363 bool GeneratedCodeInfo::MergePartialFromCodedStream( | 14825 bool GeneratedCodeInfo::MergePartialFromCodedStream( |
15364 ::google::protobuf::io::CodedInputStream* input) { | 14826 ::google::protobuf::io::CodedInputStream* input) { |
15365 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 14827 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
15366 ::google::protobuf::uint32 tag; | 14828 ::google::protobuf::uint32 tag; |
15367 // @@protoc_insertion_point(parse_start:google.protobuf.GeneratedCodeInfo) | 14829 // @@protoc_insertion_point(parse_start:google.protobuf.GeneratedCodeInfo) |
15368 for (;;) { | 14830 for (;;) { |
15369 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 14831 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
15370 tag = p.first; | 14832 tag = p.first; |
15371 if (!p.second) goto handle_unusual; | 14833 if (!p.second) goto handle_unusual; |
15372 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 14834 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
15373 // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; | 14835 // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; |
15374 case 1: { | 14836 case 1: { |
15375 if (tag == 10u) { | 14837 if (tag == 10) { |
15376 DO_(input->IncrementRecursionDepth()); | 14838 DO_(input->IncrementRecursionDepth()); |
| 14839 parse_loop_annotation: |
15377 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 14840 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
15378 input, add_annotation())); | 14841 input, add_annotation())); |
15379 } else { | 14842 } else { |
15380 goto handle_unusual; | 14843 goto handle_unusual; |
15381 } | 14844 } |
| 14845 if (input->ExpectTag(10)) goto parse_loop_annotation; |
15382 input->UnsafeDecrementRecursionDepth(); | 14846 input->UnsafeDecrementRecursionDepth(); |
| 14847 if (input->ExpectAtEnd()) goto success; |
15383 break; | 14848 break; |
15384 } | 14849 } |
15385 | 14850 |
15386 default: { | 14851 default: { |
15387 handle_unusual: | 14852 handle_unusual: |
15388 if (tag == 0 || | 14853 if (tag == 0 || |
15389 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 14854 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
15390 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 14855 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
15391 goto success; | 14856 goto success; |
15392 } | 14857 } |
(...skipping 21 matching lines...) Expand all Loading... |
15414 1, this->annotation(i), output); | 14879 1, this->annotation(i), output); |
15415 } | 14880 } |
15416 | 14881 |
15417 if (_internal_metadata_.have_unknown_fields()) { | 14882 if (_internal_metadata_.have_unknown_fields()) { |
15418 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | 14883 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
15419 unknown_fields(), output); | 14884 unknown_fields(), output); |
15420 } | 14885 } |
15421 // @@protoc_insertion_point(serialize_end:google.protobuf.GeneratedCodeInfo) | 14886 // @@protoc_insertion_point(serialize_end:google.protobuf.GeneratedCodeInfo) |
15422 } | 14887 } |
15423 | 14888 |
15424 ::google::protobuf::uint8* GeneratedCodeInfo::InternalSerializeWithCachedSizesTo
Array( | 14889 ::google::protobuf::uint8* GeneratedCodeInfo::SerializeWithCachedSizesToArray( |
15425 bool deterministic, ::google::protobuf::uint8* target) const { | 14890 ::google::protobuf::uint8* target) const { |
15426 (void)deterministic; // Unused | |
15427 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Generated
CodeInfo) | 14891 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Generated
CodeInfo) |
15428 // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; | 14892 // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; |
15429 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++) { |
15430 target = ::google::protobuf::internal::WireFormatLite:: | 14894 target = ::google::protobuf::internal::WireFormatLite:: |
15431 InternalWriteMessageNoVirtualToArray( | 14895 WriteMessageNoVirtualToArray( |
15432 1, this->annotation(i), false, target); | 14896 1, this->annotation(i), target); |
15433 } | 14897 } |
15434 | 14898 |
15435 if (_internal_metadata_.have_unknown_fields()) { | 14899 if (_internal_metadata_.have_unknown_fields()) { |
15436 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( | 14900 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA
rray( |
15437 unknown_fields(), target); | 14901 unknown_fields(), target); |
15438 } | 14902 } |
15439 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.GeneratedCo
deInfo) | 14903 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.GeneratedCo
deInfo) |
15440 return target; | 14904 return target; |
15441 } | 14905 } |
15442 | 14906 |
15443 size_t GeneratedCodeInfo::ByteSizeLong() const { | 14907 int GeneratedCodeInfo::ByteSize() const { |
15444 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.GeneratedCod
eInfo) | 14908 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.GeneratedCod
eInfo) |
15445 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 } |
15446 | 14918 |
15447 if (_internal_metadata_.have_unknown_fields()) { | 14919 if (_internal_metadata_.have_unknown_fields()) { |
15448 total_size += | 14920 total_size += |
15449 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | 14921 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
15450 unknown_fields()); | 14922 unknown_fields()); |
15451 } | 14923 } |
15452 // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; | |
15453 { | |
15454 unsigned int count = this->annotation_size(); | |
15455 total_size += 1UL * count; | |
15456 for (unsigned int i = 0; i < count; i++) { | |
15457 total_size += | |
15458 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
15459 this->annotation(i)); | |
15460 } | |
15461 } | |
15462 | |
15463 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | |
15464 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 14924 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
15465 _cached_size_ = cached_size; | 14925 _cached_size_ = total_size; |
15466 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 14926 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
15467 return total_size; | 14927 return total_size; |
15468 } | 14928 } |
15469 | 14929 |
15470 void GeneratedCodeInfo::MergeFrom(const ::google::protobuf::Message& from) { | 14930 void GeneratedCodeInfo::MergeFrom(const ::google::protobuf::Message& from) { |
15471 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Generat
edCodeInfo) | 14931 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Generat
edCodeInfo) |
15472 GOOGLE_DCHECK_NE(&from, this); | 14932 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
15473 const GeneratedCodeInfo* source = | 14933 const GeneratedCodeInfo* source = |
15474 ::google::protobuf::internal::DynamicCastToGenerated<const GeneratedCodeIn
fo>( | 14934 ::google::protobuf::internal::DynamicCastToGenerated<const GeneratedCodeIn
fo>( |
15475 &from); | 14935 &from); |
15476 if (source == NULL) { | 14936 if (source == NULL) { |
15477 // @@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) |
15478 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 14938 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
15479 } else { | 14939 } else { |
15480 // @@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) |
15481 MergeFrom(*source); | 14941 MergeFrom(*source); |
15482 } | 14942 } |
15483 } | 14943 } |
15484 | 14944 |
15485 void GeneratedCodeInfo::MergeFrom(const GeneratedCodeInfo& from) { | 14945 void GeneratedCodeInfo::MergeFrom(const GeneratedCodeInfo& from) { |
15486 // @@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) |
15487 GOOGLE_DCHECK_NE(&from, this); | 14947 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
15488 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
15489 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 } |
15490 } | 14952 } |
15491 | 14953 |
15492 void GeneratedCodeInfo::CopyFrom(const ::google::protobuf::Message& from) { | 14954 void GeneratedCodeInfo::CopyFrom(const ::google::protobuf::Message& from) { |
15493 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Generate
dCodeInfo) | 14955 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Generate
dCodeInfo) |
15494 if (&from == this) return; | 14956 if (&from == this) return; |
15495 Clear(); | 14957 Clear(); |
15496 MergeFrom(from); | 14958 MergeFrom(from); |
15497 } | 14959 } |
15498 | 14960 |
15499 void GeneratedCodeInfo::CopyFrom(const GeneratedCodeInfo& from) { | 14961 void GeneratedCodeInfo::CopyFrom(const GeneratedCodeInfo& from) { |
15500 // @@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) |
15501 if (&from == this) return; | 14963 if (&from == this) return; |
15502 Clear(); | 14964 Clear(); |
15503 MergeFrom(from); | 14965 MergeFrom(from); |
15504 } | 14966 } |
15505 | 14967 |
15506 bool GeneratedCodeInfo::IsInitialized() const { | 14968 bool GeneratedCodeInfo::IsInitialized() const { |
| 14969 |
15507 return true; | 14970 return true; |
15508 } | 14971 } |
15509 | 14972 |
15510 void GeneratedCodeInfo::Swap(GeneratedCodeInfo* other) { | 14973 void GeneratedCodeInfo::Swap(GeneratedCodeInfo* other) { |
15511 if (other == this) return; | 14974 if (other == this) return; |
15512 InternalSwap(other); | 14975 InternalSwap(other); |
15513 } | 14976 } |
15514 void GeneratedCodeInfo::InternalSwap(GeneratedCodeInfo* other) { | 14977 void GeneratedCodeInfo::InternalSwap(GeneratedCodeInfo* other) { |
15515 annotation_.UnsafeArenaSwap(&other->annotation_); | 14978 annotation_.UnsafeArenaSwap(&other->annotation_); |
15516 std::swap(_has_bits_[0], other->_has_bits_[0]); | 14979 std::swap(_has_bits_[0], other->_has_bits_[0]); |
15517 _internal_metadata_.Swap(&other->_internal_metadata_); | 14980 _internal_metadata_.Swap(&other->_internal_metadata_); |
15518 std::swap(_cached_size_, other->_cached_size_); | 14981 std::swap(_cached_size_, other->_cached_size_); |
15519 } | 14982 } |
15520 | 14983 |
15521 ::google::protobuf::Metadata GeneratedCodeInfo::GetMetadata() const { | 14984 ::google::protobuf::Metadata GeneratedCodeInfo::GetMetadata() const { |
15522 protobuf_AssignDescriptorsOnce(); | 14985 protobuf_AssignDescriptorsOnce(); |
15523 return file_level_metadata[24]; | 14986 ::google::protobuf::Metadata metadata; |
| 14987 metadata.descriptor = GeneratedCodeInfo_descriptor_; |
| 14988 metadata.reflection = GeneratedCodeInfo_reflection_; |
| 14989 return metadata; |
15524 } | 14990 } |
15525 | 14991 |
15526 #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 |
15527 // GeneratedCodeInfo | 15129 // GeneratedCodeInfo |
15528 | 15130 |
15529 // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; | 15131 // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; |
15530 int GeneratedCodeInfo::annotation_size() const { | 15132 int GeneratedCodeInfo::annotation_size() const { |
15531 return annotation_.size(); | 15133 return annotation_.size(); |
15532 } | 15134 } |
15533 void GeneratedCodeInfo::clear_annotation() { | 15135 void GeneratedCodeInfo::clear_annotation() { |
15534 annotation_.Clear(); | 15136 annotation_.Clear(); |
15535 } | 15137 } |
15536 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... |
15557 } | 15159 } |
15558 | 15160 |
15559 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 15161 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
15560 | 15162 |
15561 // @@protoc_insertion_point(namespace_scope) | 15163 // @@protoc_insertion_point(namespace_scope) |
15562 | 15164 |
15563 } // namespace protobuf | 15165 } // namespace protobuf |
15564 } // namespace google | 15166 } // namespace google |
15565 | 15167 |
15566 // @@protoc_insertion_point(global_scope) | 15168 // @@protoc_insertion_point(global_scope) |
OLD | NEW |