Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: third_party/protobuf/src/google/protobuf/descriptor.pb.cc

Issue 2599263002: third_party/protobuf: Update to HEAD (f52e188fe4) (Closed)
Patch Set: Address comments Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_;
22 72
23 namespace { 73 namespace {
24 74
25 const ::google::protobuf::Descriptor* FileDescriptorSet_descriptor_ = NULL; 75 ::google::protobuf::Metadata file_level_metadata[25];
26 const ::google::protobuf::internal::GeneratedMessageReflection* 76 const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[6];
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;
102 77
103 } // namespace 78 } // namespace
104 79
105 80
106 void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() { 81 const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2fdescripto r_2eproto() GOOGLE_ATTRIBUTE_COLD;
107 protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); 82 const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2fdescripto r_2eproto() {
108 const ::google::protobuf::FileDescriptor* file = 83 static const ::google::protobuf::uint32 offsets[] = {
109 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( 84 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, _has_bits_ ),
110 "google/protobuf/descriptor.proto"); 85 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, _internal_ metadata_),
111 GOOGLE_CHECK(file != NULL); 86 ~0u, // no _extensions_
112 FileDescriptorSet_descriptor_ = file->message_type(0); 87 ~0u, // no _oneof_case_
113 static const int FileDescriptorSet_offsets_[1] = {
114 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, file_), 88 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, file_),
115 }; 89 0,
116 FileDescriptorSet_reflection_ = 90 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, _has_bit s_),
117 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag eReflection( 91 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, _interna l_metadata_),
118 FileDescriptorSet_descriptor_, 92 ~0u, // no _extensions_
119 FileDescriptorSet::default_instance_, 93 ~0u, // no _oneof_case_
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] = {
129 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, name_), 94 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, name_),
130 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, package_ ), 95 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, package_ ),
131 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, dependen cy_), 96 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, dependen cy_),
132 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, public_d ependency_), 97 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, public_d ependency_),
133 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, weak_dep endency_), 98 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, weak_dep endency_),
134 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, message_ type_), 99 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, message_ type_),
135 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, enum_typ e_), 100 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, enum_typ e_),
136 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, service_ ), 101 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, service_ ),
137 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, extensio n_), 102 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, extensio n_),
138 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, options_ ), 103 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, options_ ),
139 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, source_c ode_info_), 104 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, source_c ode_info_),
140 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, syntax_) , 105 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, syntax_) ,
141 }; 106 0,
142 FileDescriptorProto_reflection_ = 107 1,
143 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag eReflection( 108 5,
144 FileDescriptorProto_descriptor_, 109 6,
145 FileDescriptorProto::default_instance_, 110 7,
146 FileDescriptorProto_offsets_, 111 8,
147 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, _has_b its_[0]), 112 9,
148 -1, 113 10,
149 -1, 114 11,
150 sizeof(FileDescriptorProto), 115 3,
151 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, _inter nal_metadata_), 116 4,
152 -1); 117 2,
153 DescriptorProto_descriptor_ = file->message_type(2); 118 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRang e, _has_bits_),
154 static const int DescriptorProto_offsets_[10] = { 119 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRang e, _internal_metadata_),
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_
155 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, name_), 138 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, name_),
156 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, field_), 139 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, field_),
157 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, extension_), 140 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, extension_),
158 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, nested_type_ ), 141 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, nested_type_ ),
159 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, enum_type_), 142 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, enum_type_),
160 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, extension_ra nge_), 143 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, extension_ra nge_),
161 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, oneof_decl_) , 144 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, oneof_decl_) ,
162 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, options_), 145 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, options_),
163 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, reserved_ran ge_), 146 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, reserved_ran ge_),
164 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, reserved_nam e_), 147 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, reserved_nam e_),
165 }; 148 0,
166 DescriptorProto_reflection_ = 149 2,
167 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag eReflection( 150 3,
168 DescriptorProto_descriptor_, 151 4,
169 DescriptorProto::default_instance_, 152 5,
170 DescriptorProto_offsets_, 153 6,
171 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, _has_bits_ [0]), 154 7,
172 -1, 155 1,
173 -1, 156 8,
174 sizeof(DescriptorProto), 157 9,
175 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, _internal_ metadata_), 158 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, _has_bi ts_),
176 -1); 159 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, _intern al_metadata_),
177 DescriptorProto_ExtensionRange_descriptor_ = DescriptorProto_descriptor_->nest ed_type(0); 160 ~0u, // no _extensions_
178 static const int DescriptorProto_ExtensionRange_offsets_[2] = { 161 ~0u, // no _oneof_case_
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] = {
211 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, name_), 162 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, name_),
212 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, number_ ), 163 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, number_ ),
213 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, label_) , 164 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, label_) ,
214 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, type_), 165 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, type_),
215 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, type_na me_), 166 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, type_na me_),
216 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, extende e_), 167 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, extende e_),
217 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, default _value_), 168 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, default _value_),
218 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, oneof_i ndex_), 169 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, oneof_i ndex_),
219 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, json_na me_), 170 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, json_na me_),
220 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, options _), 171 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, options _),
221 }; 172 0,
222 FieldDescriptorProto_reflection_ = 173 6,
223 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag eReflection( 174 8,
224 FieldDescriptorProto_descriptor_, 175 9,
225 FieldDescriptorProto::default_instance_, 176 1,
226 FieldDescriptorProto_offsets_, 177 2,
227 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, _has_ bits_[0]), 178 3,
228 -1, 179 7,
229 -1, 180 4,
230 sizeof(FieldDescriptorProto), 181 5,
231 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, _inte rnal_metadata_), 182 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, _has_bi ts_),
232 -1); 183 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, _intern al_metadata_),
233 FieldDescriptorProto_Type_descriptor_ = FieldDescriptorProto_descriptor_->enum _type(0); 184 ~0u, // no _extensions_
234 FieldDescriptorProto_Label_descriptor_ = FieldDescriptorProto_descriptor_->enu m_type(1); 185 ~0u, // no _oneof_case_
235 OneofDescriptorProto_descriptor_ = file->message_type(4);
236 static const int OneofDescriptorProto_offsets_[1] = {
237 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, name_), 186 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, name_),
238 }; 187 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, options _),
239 OneofDescriptorProto_reflection_ = 188 0,
240 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag eReflection( 189 1,
241 OneofDescriptorProto_descriptor_, 190 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, _has_bit s_),
242 OneofDescriptorProto::default_instance_, 191 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, _interna l_metadata_),
243 OneofDescriptorProto_offsets_, 192 ~0u, // no _extensions_
244 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, _has_ bits_[0]), 193 ~0u, // no _oneof_case_
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] = {
252 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, name_), 194 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, name_),
253 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, value_), 195 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, value_),
254 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, options_ ), 196 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, options_ ),
255 }; 197 0,
256 EnumDescriptorProto_reflection_ = 198 2,
257 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag eReflection( 199 1,
258 EnumDescriptorProto_descriptor_, 200 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, _ha s_bits_),
259 EnumDescriptorProto::default_instance_, 201 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, _in ternal_metadata_),
260 EnumDescriptorProto_offsets_, 202 ~0u, // no _extensions_
261 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, _has_b its_[0]), 203 ~0u, // no _oneof_case_
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] = {
269 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, nam e_), 204 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, nam e_),
270 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, num ber_), 205 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, num ber_),
271 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, opt ions_), 206 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, opt ions_),
272 }; 207 0,
273 EnumValueDescriptorProto_reflection_ = 208 2,
274 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag eReflection( 209 1,
275 EnumValueDescriptorProto_descriptor_, 210 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, _has_ bits_),
276 EnumValueDescriptorProto::default_instance_, 211 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, _inte rnal_metadata_),
277 EnumValueDescriptorProto_offsets_, 212 ~0u, // no _extensions_
278 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, _ has_bits_[0]), 213 ~0u, // no _oneof_case_
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] = {
286 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, name_ ), 214 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, name_ ),
287 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, metho d_), 215 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, metho d_),
288 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, optio ns_), 216 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, optio ns_),
289 }; 217 0,
290 ServiceDescriptorProto_reflection_ = 218 2,
291 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag eReflection( 219 1,
292 ServiceDescriptorProto_descriptor_, 220 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, _has_b its_),
293 ServiceDescriptorProto::default_instance_, 221 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, _inter nal_metadata_),
294 ServiceDescriptorProto_offsets_, 222 ~0u, // no _extensions_
295 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, _ha s_bits_[0]), 223 ~0u, // no _oneof_case_
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] = {
303 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, name_) , 224 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, name_) ,
304 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, input_ type_), 225 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, input_ type_),
305 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, output _type_), 226 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, output _type_),
306 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, option s_), 227 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, option s_),
307 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, client _streaming_), 228 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, client _streaming_),
308 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, server _streaming_), 229 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, server _streaming_),
309 }; 230 0,
310 MethodDescriptorProto_reflection_ = 231 1,
311 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag eReflection( 232 2,
312 MethodDescriptorProto_descriptor_, 233 3,
313 MethodDescriptorProto::default_instance_, 234 4,
314 MethodDescriptorProto_offsets_, 235 5,
315 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, _has _bits_[0]), 236 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _has_bits_),
316 -1, 237 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _internal_metada ta_),
317 -1, 238 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _extensions_),
318 sizeof(MethodDescriptorProto), 239 ~0u, // no _oneof_case_
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] = {
323 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_package_), 240 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_package_),
324 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_outer_class name_), 241 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_outer_class name_),
325 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_multiple_fi les_), 242 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_multiple_fi les_),
326 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_generate_eq uals_and_hash_), 243 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_generate_eq uals_and_hash_),
327 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_string_chec k_utf8_), 244 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_string_chec k_utf8_),
328 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, optimize_for_), 245 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, optimize_for_),
329 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, go_package_), 246 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, go_package_),
330 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, cc_generic_servi ces_), 247 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, cc_generic_servi ces_),
331 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_generic_ser vices_), 248 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_generic_ser vices_),
332 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, py_generic_servi ces_), 249 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, py_generic_servi ces_),
333 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, deprecated_), 250 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, deprecated_),
334 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, cc_enable_arenas _), 251 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, cc_enable_arenas _),
335 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, objc_class_prefi x_), 252 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, objc_class_prefi x_),
336 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, csharp_namespace _), 253 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, csharp_namespace _),
254 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, swift_prefix_),
337 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, uninterpreted_op tion_), 255 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, uninterpreted_op tion_),
338 }; 256 0,
339 FileOptions_reflection_ = 257 1,
340 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag eReflection( 258 6,
341 FileOptions_descriptor_, 259 7,
342 FileOptions::default_instance_, 260 8,
343 FileOptions_offsets_, 261 14,
344 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _has_bits_[0]) , 262 2,
345 -1, 263 9,
346 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _extensions_), 264 10,
347 sizeof(FileOptions), 265 11,
348 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _internal_meta data_), 266 12,
349 -1); 267 13,
350 FileOptions_OptimizeMode_descriptor_ = FileOptions_descriptor_->enum_type(0); 268 3,
351 MessageOptions_descriptor_ = file->message_type(10); 269 4,
352 static const int MessageOptions_offsets_[5] = { 270 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_
353 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, message_set_w ire_format_), 276 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, message_set_w ire_format_),
354 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, no_standard_d escriptor_accessor_), 277 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, no_standard_d escriptor_accessor_),
355 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, deprecated_), 278 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, deprecated_),
356 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, map_entry_), 279 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, map_entry_),
357 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, uninterpreted _option_), 280 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, uninterpreted _option_),
358 }; 281 0,
359 MessageOptions_reflection_ = 282 1,
360 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag eReflection( 283 2,
361 MessageOptions_descriptor_, 284 3,
362 MessageOptions::default_instance_, 285 4,
363 MessageOptions_offsets_, 286 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _has_bits_),
364 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _has_bits_[ 0]), 287 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _internal_metad ata_),
365 -1, 288 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _extensions_),
366 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _extensions _), 289 ~0u, // no _oneof_case_
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] = {
372 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, ctype_), 290 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, ctype_),
373 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, packed_), 291 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, packed_),
374 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, jstype_), 292 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, jstype_),
375 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, lazy_), 293 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, lazy_),
376 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, deprecated_), 294 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, deprecated_),
377 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, weak_), 295 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, weak_),
378 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, uninterpreted_o ption_), 296 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, uninterpreted_o ption_),
379 }; 297 0,
380 FieldOptions_reflection_ = 298 2,
381 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag eReflection( 299 1,
382 FieldOptions_descriptor_, 300 3,
383 FieldOptions::default_instance_, 301 4,
384 FieldOptions_offsets_, 302 5,
385 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _has_bits_[0] ), 303 6,
386 -1, 304 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofOptions, _has_bits_),
387 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _extensions_) , 305 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofOptions, _internal_metad ata_),
388 sizeof(FieldOptions), 306 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofOptions, _extensions_),
389 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _internal_met adata_), 307 ~0u, // no _oneof_case_
390 -1); 308 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofOptions, uninterpreted_o ption_),
391 FieldOptions_CType_descriptor_ = FieldOptions_descriptor_->enum_type(0); 309 0,
392 FieldOptions_JSType_descriptor_ = FieldOptions_descriptor_->enum_type(1); 310 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _has_bits_),
393 EnumOptions_descriptor_ = file->message_type(12); 311 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _internal_metada ta_),
394 static const int EnumOptions_offsets_[3] = { 312 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _extensions_),
313 ~0u, // no _oneof_case_
395 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, allow_alias_), 314 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, allow_alias_),
396 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, deprecated_), 315 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, deprecated_),
397 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, uninterpreted_op tion_), 316 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, uninterpreted_op tion_),
398 }; 317 0,
399 EnumOptions_reflection_ = 318 1,
400 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag eReflection( 319 2,
401 EnumOptions_descriptor_, 320 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _has_bits_) ,
402 EnumOptions::default_instance_, 321 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _internal_m etadata_),
403 EnumOptions_offsets_, 322 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _extensions _),
404 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _has_bits_[0]) , 323 ~0u, // no _oneof_case_
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] = {
412 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, deprecated_ ), 324 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, deprecated_ ),
413 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, uninterpret ed_option_), 325 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, uninterpret ed_option_),
414 }; 326 0,
415 EnumValueOptions_reflection_ = 327 1,
416 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag eReflection( 328 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _has_bits_),
417 EnumValueOptions_descriptor_, 329 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _internal_met adata_),
418 EnumValueOptions::default_instance_, 330 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _extensions_) ,
419 EnumValueOptions_offsets_, 331 ~0u, // no _oneof_case_
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] = {
428 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, deprecated_), 332 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, deprecated_),
429 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, uninterpreted _option_), 333 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, uninterpreted _option_),
430 }; 334 0,
431 ServiceOptions_reflection_ = 335 1,
432 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag eReflection( 336 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _has_bits_),
433 ServiceOptions_descriptor_, 337 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _internal_meta data_),
434 ServiceOptions::default_instance_, 338 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _extensions_),
435 ServiceOptions_offsets_, 339 ~0u, // no _oneof_case_
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] = {
444 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, deprecated_), 340 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, deprecated_),
341 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, idempotency_le vel_),
445 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, uninterpreted_ option_), 342 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, uninterpreted_ option_),
446 }; 343 0,
447 MethodOptions_reflection_ = 344 1,
448 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag eReflection( 345 2,
449 MethodOptions_descriptor_, 346 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, _has_bits_),
450 MethodOptions::default_instance_, 347 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, _internal_metadata_),
451 MethodOptions_offsets_, 348 ~0u, // no _extensions_
452 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _has_bits_[0 ]), 349 ~0u, // no _oneof_case_
453 -1, 350 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, name_part_),
454 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _extensions_ ), 351 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, is_extension_),
455 sizeof(MethodOptions), 352 0,
456 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _internal_me tadata_), 353 1,
457 -1); 354 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, _has_bit s_),
458 UninterpretedOption_descriptor_ = file->message_type(16); 355 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, _interna l_metadata_),
459 static const int UninterpretedOption_offsets_[7] = { 356 ~0u, // no _extensions_
357 ~0u, // no _oneof_case_
460 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, name_), 358 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, name_),
461 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, identifi er_value_), 359 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, identifi er_value_),
462 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, positive _int_value_), 360 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, positive _int_value_),
463 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, negative _int_value_), 361 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, negative _int_value_),
464 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, double_v alue_), 362 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, double_v alue_),
465 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, string_v alue_), 363 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, string_v alue_),
466 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, aggregat e_value_), 364 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, aggregat e_value_),
467 }; 365 6,
468 UninterpretedOption_reflection_ = 366 0,
469 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag eReflection( 367 3,
470 UninterpretedOption_descriptor_, 368 4,
471 UninterpretedOption::default_instance_, 369 5,
472 UninterpretedOption_offsets_, 370 1,
473 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, _has_b its_[0]), 371 2,
474 -1, 372 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, _has _bits_),
475 -1, 373 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, _int ernal_metadata_),
476 sizeof(UninterpretedOption), 374 ~0u, // no _extensions_
477 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, _inter nal_metadata_), 375 ~0u, // no _oneof_case_
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] = {
512 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, path _), 376 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, path _),
513 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, span _), 377 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, span _),
514 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, lead ing_comments_), 378 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, lead ing_comments_),
515 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, trai ling_comments_), 379 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, trai ling_comments_),
516 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, lead ing_detached_comments_), 380 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, lead ing_detached_comments_),
517 }; 381 2,
518 SourceCodeInfo_Location_reflection_ = 382 3,
519 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag eReflection( 383 0,
520 SourceCodeInfo_Location_descriptor_, 384 1,
521 SourceCodeInfo_Location::default_instance_, 385 4,
522 SourceCodeInfo_Location_offsets_, 386 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, _has_bits_),
523 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, _h as_bits_[0]), 387 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, _internal_met adata_),
524 -1, 388 ~0u, // no _extensions_
525 -1, 389 ~0u, // no _oneof_case_
526 sizeof(SourceCodeInfo_Location), 390 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, location_),
527 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, _i nternal_metadata_), 391 0,
528 -1); 392 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation, _has_bits_),
529 GeneratedCodeInfo_descriptor_ = file->message_type(18); 393 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation, _internal_metadata_),
530 static const int GeneratedCodeInfo_offsets_[1] = { 394 ~0u, // no _extensions_
531 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo, annotation _), 395 ~0u, // no _oneof_case_
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] = {
546 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation, path_), 396 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation, path_),
547 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation, source_file_), 397 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation, source_file_),
548 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation, begin_), 398 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation, begin_),
549 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation, end_), 399 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation, end_),
400 3,
401 0,
402 1,
403 2,
404 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo, _has_bits_ ),
405 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo, _internal_ metadata_),
406 ~0u, // no _extensions_
407 ~0u, // no _oneof_case_
408 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo, annotation _),
409 0,
550 }; 410 };
551 GeneratedCodeInfo_Annotation_reflection_ = 411 return offsets;
552 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag eReflection( 412 }
553 GeneratedCodeInfo_Annotation_descriptor_, 413
554 GeneratedCodeInfo_Annotation::default_instance_, 414 static const ::google::protobuf::internal::MigrationSchema schemas[] = {
555 GeneratedCodeInfo_Annotation_offsets_, 415 { 0, 5, sizeof(FileDescriptorSet)},
556 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotatio n, _has_bits_[0]), 416 { 6, 22, sizeof(FileDescriptorProto)},
557 -1, 417 { 34, 40, sizeof(DescriptorProto_ExtensionRange)},
558 -1, 418 { 42, 48, sizeof(DescriptorProto_ReservedRange)},
559 sizeof(GeneratedCodeInfo_Annotation), 419 { 50, 64, sizeof(DescriptorProto)},
560 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotatio n, _internal_metadata_), 420 { 74, 88, sizeof(FieldDescriptorProto)},
561 -1); 421 { 98, 104, sizeof(OneofDescriptorProto)},
562 } 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 };
563 469
564 namespace { 470 namespace {
565 471
566 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); 472 void protobuf_AssignDescriptors() {
567 inline void protobuf_AssignDescriptorsOnce() { 473 protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
568 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, 474 ::google::protobuf::MessageFactory* factory = NULL;
569 &protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto); 475 AssignDescriptors(
570 } 476 "google/protobuf/descriptor.proto", schemas, file_default_instances, proto buf_Offsets_google_2fprotobuf_2fdescriptor_2eproto(), factory,
571 477 file_level_metadata, file_level_enum_descriptors, NULL);
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;
572 void protobuf_RegisterTypes(const ::std::string&) { 486 void protobuf_RegisterTypes(const ::std::string&) {
573 protobuf_AssignDescriptorsOnce(); 487 protobuf_AssignDescriptorsOnce();
574 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( 488 ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 25);
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());
622 } 489 }
623 490
624 } // namespace 491 } // namespace
625 492
626 void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto() { 493 void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto() {
627 delete FileDescriptorSet::default_instance_; 494 _FileDescriptorSet_default_instance_.Shutdown();
628 delete FileDescriptorSet_reflection_; 495 delete file_level_metadata[0].reflection;
629 delete FileDescriptorProto::default_instance_; 496 _FileDescriptorProto_default_instance_.Shutdown();
630 delete FileDescriptorProto_reflection_; 497 delete file_level_metadata[1].reflection;
631 delete DescriptorProto::default_instance_; 498 _DescriptorProto_ExtensionRange_default_instance_.Shutdown();
632 delete DescriptorProto_reflection_; 499 delete file_level_metadata[2].reflection;
633 delete DescriptorProto_ExtensionRange::default_instance_; 500 _DescriptorProto_ReservedRange_default_instance_.Shutdown();
634 delete DescriptorProto_ExtensionRange_reflection_; 501 delete file_level_metadata[3].reflection;
635 delete DescriptorProto_ReservedRange::default_instance_; 502 _DescriptorProto_default_instance_.Shutdown();
636 delete DescriptorProto_ReservedRange_reflection_; 503 delete file_level_metadata[4].reflection;
637 delete FieldDescriptorProto::default_instance_; 504 _FieldDescriptorProto_default_instance_.Shutdown();
638 delete FieldDescriptorProto_reflection_; 505 delete file_level_metadata[5].reflection;
639 delete OneofDescriptorProto::default_instance_; 506 _OneofDescriptorProto_default_instance_.Shutdown();
640 delete OneofDescriptorProto_reflection_; 507 delete file_level_metadata[6].reflection;
641 delete EnumDescriptorProto::default_instance_; 508 _EnumDescriptorProto_default_instance_.Shutdown();
642 delete EnumDescriptorProto_reflection_; 509 delete file_level_metadata[7].reflection;
643 delete EnumValueDescriptorProto::default_instance_; 510 _EnumValueDescriptorProto_default_instance_.Shutdown();
644 delete EnumValueDescriptorProto_reflection_; 511 delete file_level_metadata[8].reflection;
645 delete ServiceDescriptorProto::default_instance_; 512 _ServiceDescriptorProto_default_instance_.Shutdown();
646 delete ServiceDescriptorProto_reflection_; 513 delete file_level_metadata[9].reflection;
647 delete MethodDescriptorProto::default_instance_; 514 _MethodDescriptorProto_default_instance_.Shutdown();
648 delete MethodDescriptorProto_reflection_; 515 delete file_level_metadata[10].reflection;
649 delete FileOptions::default_instance_; 516 _FileOptions_default_instance_.Shutdown();
650 delete FileOptions_reflection_; 517 delete file_level_metadata[11].reflection;
651 delete MessageOptions::default_instance_; 518 _MessageOptions_default_instance_.Shutdown();
652 delete MessageOptions_reflection_; 519 delete file_level_metadata[12].reflection;
653 delete FieldOptions::default_instance_; 520 _FieldOptions_default_instance_.Shutdown();
654 delete FieldOptions_reflection_; 521 delete file_level_metadata[13].reflection;
655 delete EnumOptions::default_instance_; 522 _OneofOptions_default_instance_.Shutdown();
656 delete EnumOptions_reflection_; 523 delete file_level_metadata[14].reflection;
657 delete EnumValueOptions::default_instance_; 524 _EnumOptions_default_instance_.Shutdown();
658 delete EnumValueOptions_reflection_; 525 delete file_level_metadata[15].reflection;
659 delete ServiceOptions::default_instance_; 526 _EnumValueOptions_default_instance_.Shutdown();
660 delete ServiceOptions_reflection_; 527 delete file_level_metadata[16].reflection;
661 delete MethodOptions::default_instance_; 528 _ServiceOptions_default_instance_.Shutdown();
662 delete MethodOptions_reflection_; 529 delete file_level_metadata[17].reflection;
663 delete UninterpretedOption::default_instance_; 530 _MethodOptions_default_instance_.Shutdown();
664 delete UninterpretedOption_reflection_; 531 delete file_level_metadata[18].reflection;
665 delete UninterpretedOption_NamePart::default_instance_; 532 _UninterpretedOption_NamePart_default_instance_.Shutdown();
666 delete UninterpretedOption_NamePart_reflection_; 533 delete file_level_metadata[19].reflection;
667 delete SourceCodeInfo::default_instance_; 534 _UninterpretedOption_default_instance_.Shutdown();
668 delete SourceCodeInfo_reflection_; 535 delete file_level_metadata[20].reflection;
669 delete SourceCodeInfo_Location::default_instance_; 536 _SourceCodeInfo_Location_default_instance_.Shutdown();
670 delete SourceCodeInfo_Location_reflection_; 537 delete file_level_metadata[21].reflection;
671 delete GeneratedCodeInfo::default_instance_; 538 _SourceCodeInfo_default_instance_.Shutdown();
672 delete GeneratedCodeInfo_reflection_; 539 delete file_level_metadata[22].reflection;
673 delete GeneratedCodeInfo_Annotation::default_instance_; 540 _GeneratedCodeInfo_Annotation_default_instance_.Shutdown();
674 delete GeneratedCodeInfo_Annotation_reflection_; 541 delete file_level_metadata[23].reflection;
675 } 542 _GeneratedCodeInfo_default_instance_.Shutdown();
676 543 delete file_level_metadata[24].reflection;
677 void protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto() { 544 }
678 static bool already_here = false; 545
679 if (already_here) return; 546 void protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto_impl() {
680 already_here = true;
681 GOOGLE_PROTOBUF_VERIFY_VERSION; 547 GOOGLE_PROTOBUF_VERIFY_VERSION;
682 548
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 };
683 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( 742 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
684 "\n google/protobuf/descriptor.proto\022\017goog" 743 descriptor, 5553);
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);
813 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( 744 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
814 "google/protobuf/descriptor.proto", &protobuf_RegisterTypes); 745 "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();
863 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fproto buf_2fdescriptor_2eproto); 746 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fproto buf_2fdescriptor_2eproto);
864 } 747 }
865 748
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 }
866 // Force AddDescriptors() to be called at static initialization time. 754 // Force AddDescriptors() to be called at static initialization time.
867 struct StaticDescriptorInitializer_google_2fprotobuf_2fdescriptor_2eproto { 755 struct StaticDescriptorInitializer_google_2fprotobuf_2fdescriptor_2eproto {
868 StaticDescriptorInitializer_google_2fprotobuf_2fdescriptor_2eproto() { 756 StaticDescriptorInitializer_google_2fprotobuf_2fdescriptor_2eproto() {
869 protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); 757 protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
870 } 758 }
871 } static_descriptor_initializer_google_2fprotobuf_2fdescriptor_2eproto_; 759 } static_descriptor_initializer_google_2fprotobuf_2fdescriptor_2eproto_;
872 760 const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Type_descriptor() {
873 namespace { 761 protobuf_AssignDescriptorsOnce();
874 762 return file_level_enum_descriptors[0];
875 static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD; 763 }
876 static void MergeFromFail(int line) { 764 bool FieldDescriptorProto_Type_IsValid(int value) {
877 GOOGLE_CHECK(false) << __FILE__ << ":" << line; 765 switch (value) {
878 } 766 case 1:
879 767 case 2:
880 } // namespace 768 case 3:
881 769 case 4:
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
882 928
883 // =================================================================== 929 // ===================================================================
884 930
885 #if !defined(_MSC_VER) || _MSC_VER >= 1900 931 #if !defined(_MSC_VER) || _MSC_VER >= 1900
886 const int FileDescriptorSet::kFileFieldNumber; 932 const int FileDescriptorSet::kFileFieldNumber;
887 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 933 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
888 934
889 FileDescriptorSet::FileDescriptorSet() 935 FileDescriptorSet::FileDescriptorSet()
890 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 936 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
937 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
938 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
939 }
891 SharedCtor(); 940 SharedCtor();
892 // @@protoc_insertion_point(constructor:google.protobuf.FileDescriptorSet) 941 // @@protoc_insertion_point(constructor:google.protobuf.FileDescriptorSet)
893 } 942 }
894
895 void FileDescriptorSet::InitAsDefaultInstance() {
896 }
897
898 FileDescriptorSet::FileDescriptorSet(const FileDescriptorSet& from) 943 FileDescriptorSet::FileDescriptorSet(const FileDescriptorSet& from)
899 : ::google::protobuf::Message(), 944 : ::google::protobuf::Message(),
900 _internal_metadata_(NULL) { 945 _internal_metadata_(NULL),
901 SharedCtor(); 946 _has_bits_(from._has_bits_),
902 MergeFrom(from); 947 _cached_size_(0),
948 file_(from.file_) {
949 _internal_metadata_.MergeFrom(from._internal_metadata_);
903 // @@protoc_insertion_point(copy_constructor:google.protobuf.FileDescriptorSet ) 950 // @@protoc_insertion_point(copy_constructor:google.protobuf.FileDescriptorSet )
904 } 951 }
905 952
906 void FileDescriptorSet::SharedCtor() { 953 void FileDescriptorSet::SharedCtor() {
907 _cached_size_ = 0; 954 _cached_size_ = 0;
908 ::memset(_has_bits_, 0, sizeof(_has_bits_));
909 } 955 }
910 956
911 FileDescriptorSet::~FileDescriptorSet() { 957 FileDescriptorSet::~FileDescriptorSet() {
912 // @@protoc_insertion_point(destructor:google.protobuf.FileDescriptorSet) 958 // @@protoc_insertion_point(destructor:google.protobuf.FileDescriptorSet)
913 SharedDtor(); 959 SharedDtor();
914 } 960 }
915 961
916 void FileDescriptorSet::SharedDtor() { 962 void FileDescriptorSet::SharedDtor() {
917 if (this != default_instance_) {
918 }
919 } 963 }
920 964
921 void FileDescriptorSet::SetCachedSize(int size) const { 965 void FileDescriptorSet::SetCachedSize(int size) const {
922 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 966 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
923 _cached_size_ = size; 967 _cached_size_ = size;
924 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 968 GOOGLE_SAFE_CONCURRENT_WRITES_END();
925 } 969 }
926 const ::google::protobuf::Descriptor* FileDescriptorSet::descriptor() { 970 const ::google::protobuf::Descriptor* FileDescriptorSet::descriptor() {
927 protobuf_AssignDescriptorsOnce(); 971 protobuf_AssignDescriptorsOnce();
928 return FileDescriptorSet_descriptor_; 972 return file_level_metadata[0].descriptor;
929 } 973 }
930 974
931 const FileDescriptorSet& FileDescriptorSet::default_instance() { 975 const FileDescriptorSet& FileDescriptorSet::default_instance() {
932 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 976 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
933 return *default_instance_; 977 return *internal_default_instance();
934 } 978 }
935 979
936 FileDescriptorSet* FileDescriptorSet::default_instance_ = NULL;
937
938 FileDescriptorSet* FileDescriptorSet::New(::google::protobuf::Arena* arena) cons t { 980 FileDescriptorSet* FileDescriptorSet::New(::google::protobuf::Arena* arena) cons t {
939 FileDescriptorSet* n = new FileDescriptorSet; 981 FileDescriptorSet* n = new FileDescriptorSet;
940 if (arena != NULL) { 982 if (arena != NULL) {
941 arena->Own(n); 983 arena->Own(n);
942 } 984 }
943 return n; 985 return n;
944 } 986 }
945 987
946 void FileDescriptorSet::Clear() { 988 void FileDescriptorSet::Clear() {
947 // @@protoc_insertion_point(message_clear_start:google.protobuf.FileDescriptorSe t) 989 // @@protoc_insertion_point(message_clear_start:google.protobuf.FileDescriptorSe t)
948 file_.Clear(); 990 file_.Clear();
949 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 991 _has_bits_.Clear();
950 if (_internal_metadata_.have_unknown_fields()) { 992 _internal_metadata_.Clear();
951 mutable_unknown_fields()->Clear();
952 }
953 } 993 }
954 994
955 bool FileDescriptorSet::MergePartialFromCodedStream( 995 bool FileDescriptorSet::MergePartialFromCodedStream(
956 ::google::protobuf::io::CodedInputStream* input) { 996 ::google::protobuf::io::CodedInputStream* input) {
957 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 997 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
958 ::google::protobuf::uint32 tag; 998 ::google::protobuf::uint32 tag;
959 // @@protoc_insertion_point(parse_start:google.protobuf.FileDescriptorSet) 999 // @@protoc_insertion_point(parse_start:google.protobuf.FileDescriptorSet)
960 for (;;) { 1000 for (;;) {
961 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127); 1001 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u);
962 tag = p.first; 1002 tag = p.first;
963 if (!p.second) goto handle_unusual; 1003 if (!p.second) goto handle_unusual;
964 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 1004 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
965 // repeated .google.protobuf.FileDescriptorProto file = 1; 1005 // repeated .google.protobuf.FileDescriptorProto file = 1;
966 case 1: { 1006 case 1: {
967 if (tag == 10) { 1007 if (tag == 10u) {
968 DO_(input->IncrementRecursionDepth()); 1008 DO_(input->IncrementRecursionDepth());
969 parse_loop_file:
970 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 1009 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
971 input, add_file())); 1010 input, add_file()));
972 } else { 1011 } else {
973 goto handle_unusual; 1012 goto handle_unusual;
974 } 1013 }
975 if (input->ExpectTag(10)) goto parse_loop_file;
976 input->UnsafeDecrementRecursionDepth(); 1014 input->UnsafeDecrementRecursionDepth();
977 if (input->ExpectAtEnd()) goto success;
978 break; 1015 break;
979 } 1016 }
980 1017
981 default: { 1018 default: {
982 handle_unusual: 1019 handle_unusual:
983 if (tag == 0 || 1020 if (tag == 0 ||
984 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 1021 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
985 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 1022 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
986 goto success; 1023 goto success;
987 } 1024 }
(...skipping 21 matching lines...) Expand all
1009 1, this->file(i), output); 1046 1, this->file(i), output);
1010 } 1047 }
1011 1048
1012 if (_internal_metadata_.have_unknown_fields()) { 1049 if (_internal_metadata_.have_unknown_fields()) {
1013 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 1050 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1014 unknown_fields(), output); 1051 unknown_fields(), output);
1015 } 1052 }
1016 // @@protoc_insertion_point(serialize_end:google.protobuf.FileDescriptorSet) 1053 // @@protoc_insertion_point(serialize_end:google.protobuf.FileDescriptorSet)
1017 } 1054 }
1018 1055
1019 ::google::protobuf::uint8* FileDescriptorSet::SerializeWithCachedSizesToArray( 1056 ::google::protobuf::uint8* FileDescriptorSet::InternalSerializeWithCachedSizesTo Array(
1020 ::google::protobuf::uint8* target) const { 1057 bool deterministic, ::google::protobuf::uint8* target) const {
1058 (void)deterministic; // Unused
1021 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileDescr iptorSet) 1059 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileDescr iptorSet)
1022 // repeated .google.protobuf.FileDescriptorProto file = 1; 1060 // repeated .google.protobuf.FileDescriptorProto file = 1;
1023 for (unsigned int i = 0, n = this->file_size(); i < n; i++) { 1061 for (unsigned int i = 0, n = this->file_size(); i < n; i++) {
1024 target = ::google::protobuf::internal::WireFormatLite:: 1062 target = ::google::protobuf::internal::WireFormatLite::
1025 WriteMessageNoVirtualToArray( 1063 InternalWriteMessageNoVirtualToArray(
1026 1, this->file(i), target); 1064 1, this->file(i), false, target);
1027 } 1065 }
1028 1066
1029 if (_internal_metadata_.have_unknown_fields()) { 1067 if (_internal_metadata_.have_unknown_fields()) {
1030 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 1068 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
1031 unknown_fields(), target); 1069 unknown_fields(), target);
1032 } 1070 }
1033 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileDescrip torSet) 1071 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileDescrip torSet)
1034 return target; 1072 return target;
1035 } 1073 }
1036 1074
1037 int FileDescriptorSet::ByteSize() const { 1075 size_t FileDescriptorSet::ByteSizeLong() const {
1038 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FileDescript orSet) 1076 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FileDescript orSet)
1039 int total_size = 0; 1077 size_t 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 }
1048 1078
1049 if (_internal_metadata_.have_unknown_fields()) { 1079 if (_internal_metadata_.have_unknown_fields()) {
1050 total_size += 1080 total_size +=
1051 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( 1081 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1052 unknown_fields()); 1082 unknown_fields());
1053 } 1083 }
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);
1054 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 1096 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1055 _cached_size_ = total_size; 1097 _cached_size_ = cached_size;
1056 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 1098 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1057 return total_size; 1099 return total_size;
1058 } 1100 }
1059 1101
1060 void FileDescriptorSet::MergeFrom(const ::google::protobuf::Message& from) { 1102 void FileDescriptorSet::MergeFrom(const ::google::protobuf::Message& from) {
1061 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FileDes criptorSet) 1103 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FileDes criptorSet)
1062 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 1104 GOOGLE_DCHECK_NE(&from, this);
1063 const FileDescriptorSet* source = 1105 const FileDescriptorSet* source =
1064 ::google::protobuf::internal::DynamicCastToGenerated<const FileDescriptorS et>( 1106 ::google::protobuf::internal::DynamicCastToGenerated<const FileDescriptorS et>(
1065 &from); 1107 &from);
1066 if (source == NULL) { 1108 if (source == NULL) {
1067 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.F ileDescriptorSet) 1109 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.F ileDescriptorSet)
1068 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 1110 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1069 } else { 1111 } else {
1070 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.FileDescriptorSet) 1112 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.FileDescriptorSet)
1071 MergeFrom(*source); 1113 MergeFrom(*source);
1072 } 1114 }
1073 } 1115 }
1074 1116
1075 void FileDescriptorSet::MergeFrom(const FileDescriptorSet& from) { 1117 void FileDescriptorSet::MergeFrom(const FileDescriptorSet& from) {
1076 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.File DescriptorSet) 1118 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.File DescriptorSet)
1077 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 1119 GOOGLE_DCHECK_NE(&from, this);
1120 _internal_metadata_.MergeFrom(from._internal_metadata_);
1078 file_.MergeFrom(from.file_); 1121 file_.MergeFrom(from.file_);
1079 if (from._internal_metadata_.have_unknown_fields()) {
1080 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1081 }
1082 } 1122 }
1083 1123
1084 void FileDescriptorSet::CopyFrom(const ::google::protobuf::Message& from) { 1124 void FileDescriptorSet::CopyFrom(const ::google::protobuf::Message& from) {
1085 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FileDesc riptorSet) 1125 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FileDesc riptorSet)
1086 if (&from == this) return; 1126 if (&from == this) return;
1087 Clear(); 1127 Clear();
1088 MergeFrom(from); 1128 MergeFrom(from);
1089 } 1129 }
1090 1130
1091 void FileDescriptorSet::CopyFrom(const FileDescriptorSet& from) { 1131 void FileDescriptorSet::CopyFrom(const FileDescriptorSet& from) {
1092 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FileD escriptorSet) 1132 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FileD escriptorSet)
1093 if (&from == this) return; 1133 if (&from == this) return;
1094 Clear(); 1134 Clear();
1095 MergeFrom(from); 1135 MergeFrom(from);
1096 } 1136 }
1097 1137
1098 bool FileDescriptorSet::IsInitialized() const { 1138 bool FileDescriptorSet::IsInitialized() const {
1099
1100 if (!::google::protobuf::internal::AllAreInitialized(this->file())) return fal se; 1139 if (!::google::protobuf::internal::AllAreInitialized(this->file())) return fal se;
1101 return true; 1140 return true;
1102 } 1141 }
1103 1142
1104 void FileDescriptorSet::Swap(FileDescriptorSet* other) { 1143 void FileDescriptorSet::Swap(FileDescriptorSet* other) {
1105 if (other == this) return; 1144 if (other == this) return;
1106 InternalSwap(other); 1145 InternalSwap(other);
1107 } 1146 }
1108 void FileDescriptorSet::InternalSwap(FileDescriptorSet* other) { 1147 void FileDescriptorSet::InternalSwap(FileDescriptorSet* other) {
1109 file_.UnsafeArenaSwap(&other->file_); 1148 file_.UnsafeArenaSwap(&other->file_);
1110 std::swap(_has_bits_[0], other->_has_bits_[0]); 1149 std::swap(_has_bits_[0], other->_has_bits_[0]);
1111 _internal_metadata_.Swap(&other->_internal_metadata_); 1150 _internal_metadata_.Swap(&other->_internal_metadata_);
1112 std::swap(_cached_size_, other->_cached_size_); 1151 std::swap(_cached_size_, other->_cached_size_);
1113 } 1152 }
1114 1153
1115 ::google::protobuf::Metadata FileDescriptorSet::GetMetadata() const { 1154 ::google::protobuf::Metadata FileDescriptorSet::GetMetadata() const {
1116 protobuf_AssignDescriptorsOnce(); 1155 protobuf_AssignDescriptorsOnce();
1117 ::google::protobuf::Metadata metadata; 1156 return file_level_metadata[0];
1118 metadata.descriptor = FileDescriptorSet_descriptor_;
1119 metadata.reflection = FileDescriptorSet_reflection_;
1120 return metadata;
1121 } 1157 }
1122 1158
1123 #if PROTOBUF_INLINE_NOT_IN_HEADERS 1159 #if PROTOBUF_INLINE_NOT_IN_HEADERS
1124 // FileDescriptorSet 1160 // FileDescriptorSet
1125 1161
1126 // repeated .google.protobuf.FileDescriptorProto file = 1; 1162 // repeated .google.protobuf.FileDescriptorProto file = 1;
1127 int FileDescriptorSet::file_size() const { 1163 int FileDescriptorSet::file_size() const {
1128 return file_.size(); 1164 return file_.size();
1129 } 1165 }
1130 void FileDescriptorSet::clear_file() { 1166 void FileDescriptorSet::clear_file() {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
1167 const int FileDescriptorProto::kEnumTypeFieldNumber; 1203 const int FileDescriptorProto::kEnumTypeFieldNumber;
1168 const int FileDescriptorProto::kServiceFieldNumber; 1204 const int FileDescriptorProto::kServiceFieldNumber;
1169 const int FileDescriptorProto::kExtensionFieldNumber; 1205 const int FileDescriptorProto::kExtensionFieldNumber;
1170 const int FileDescriptorProto::kOptionsFieldNumber; 1206 const int FileDescriptorProto::kOptionsFieldNumber;
1171 const int FileDescriptorProto::kSourceCodeInfoFieldNumber; 1207 const int FileDescriptorProto::kSourceCodeInfoFieldNumber;
1172 const int FileDescriptorProto::kSyntaxFieldNumber; 1208 const int FileDescriptorProto::kSyntaxFieldNumber;
1173 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 1209 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1174 1210
1175 FileDescriptorProto::FileDescriptorProto() 1211 FileDescriptorProto::FileDescriptorProto()
1176 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 1212 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1213 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1214 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
1215 }
1177 SharedCtor(); 1216 SharedCtor();
1178 // @@protoc_insertion_point(constructor:google.protobuf.FileDescriptorProto) 1217 // @@protoc_insertion_point(constructor:google.protobuf.FileDescriptorProto)
1179 } 1218 }
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
1186 FileDescriptorProto::FileDescriptorProto(const FileDescriptorProto& from) 1219 FileDescriptorProto::FileDescriptorProto(const FileDescriptorProto& from)
1187 : ::google::protobuf::Message(), 1220 : ::google::protobuf::Message(),
1188 _internal_metadata_(NULL) { 1221 _internal_metadata_(NULL),
1189 SharedCtor(); 1222 _has_bits_(from._has_bits_),
1190 MergeFrom(from); 1223 _cached_size_(0),
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 }
1191 // @@protoc_insertion_point(copy_constructor:google.protobuf.FileDescriptorPro to) 1254 // @@protoc_insertion_point(copy_constructor:google.protobuf.FileDescriptorPro to)
1192 } 1255 }
1193 1256
1194 void FileDescriptorProto::SharedCtor() { 1257 void FileDescriptorProto::SharedCtor() {
1195 ::google::protobuf::internal::GetEmptyString();
1196 _cached_size_ = 0; 1258 _cached_size_ = 0;
1197 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted()); 1259 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
1198 package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 1260 package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlready Inited());
1199 options_ = NULL;
1200 source_code_info_ = NULL;
1201 syntax_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyI nited()); 1261 syntax_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyI nited());
1202 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 1262 ::memset(&options_, 0, reinterpret_cast<char*>(&source_code_info_) -
1263 reinterpret_cast<char*>(&options_) + sizeof(source_code_info_));
1203 } 1264 }
1204 1265
1205 FileDescriptorProto::~FileDescriptorProto() { 1266 FileDescriptorProto::~FileDescriptorProto() {
1206 // @@protoc_insertion_point(destructor:google.protobuf.FileDescriptorProto) 1267 // @@protoc_insertion_point(destructor:google.protobuf.FileDescriptorProto)
1207 SharedDtor(); 1268 SharedDtor();
1208 } 1269 }
1209 1270
1210 void FileDescriptorProto::SharedDtor() { 1271 void FileDescriptorProto::SharedDtor() {
1211 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d()); 1272 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d());
1212 package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited()); 1273 package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited());
1213 syntax_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted()); 1274 syntax_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
1214 if (this != default_instance_) { 1275 if (this != internal_default_instance()) {
1215 delete options_; 1276 delete options_;
1277 }
1278 if (this != internal_default_instance()) {
1216 delete source_code_info_; 1279 delete source_code_info_;
1217 } 1280 }
1218 } 1281 }
1219 1282
1220 void FileDescriptorProto::SetCachedSize(int size) const { 1283 void FileDescriptorProto::SetCachedSize(int size) const {
1221 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 1284 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1222 _cached_size_ = size; 1285 _cached_size_ = size;
1223 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 1286 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1224 } 1287 }
1225 const ::google::protobuf::Descriptor* FileDescriptorProto::descriptor() { 1288 const ::google::protobuf::Descriptor* FileDescriptorProto::descriptor() {
1226 protobuf_AssignDescriptorsOnce(); 1289 protobuf_AssignDescriptorsOnce();
1227 return FileDescriptorProto_descriptor_; 1290 return file_level_metadata[1].descriptor;
1228 } 1291 }
1229 1292
1230 const FileDescriptorProto& FileDescriptorProto::default_instance() { 1293 const FileDescriptorProto& FileDescriptorProto::default_instance() {
1231 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 1294 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
1232 return *default_instance_; 1295 return *internal_default_instance();
1233 } 1296 }
1234 1297
1235 FileDescriptorProto* FileDescriptorProto::default_instance_ = NULL;
1236
1237 FileDescriptorProto* FileDescriptorProto::New(::google::protobuf::Arena* arena) const { 1298 FileDescriptorProto* FileDescriptorProto::New(::google::protobuf::Arena* arena) const {
1238 FileDescriptorProto* n = new FileDescriptorProto; 1299 FileDescriptorProto* n = new FileDescriptorProto;
1239 if (arena != NULL) { 1300 if (arena != NULL) {
1240 arena->Own(n); 1301 arena->Own(n);
1241 } 1302 }
1242 return n; 1303 return n;
1243 } 1304 }
1244 1305
1245 void FileDescriptorProto::Clear() { 1306 void FileDescriptorProto::Clear() {
1246 // @@protoc_insertion_point(message_clear_start:google.protobuf.FileDescriptorPr oto) 1307 // @@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 }
1266 dependency_.Clear(); 1308 dependency_.Clear();
1267 public_dependency_.Clear(); 1309 public_dependency_.Clear();
1268 weak_dependency_.Clear(); 1310 weak_dependency_.Clear();
1269 message_type_.Clear(); 1311 message_type_.Clear();
1270 enum_type_.Clear(); 1312 enum_type_.Clear();
1271 service_.Clear(); 1313 service_.Clear();
1272 extension_.Clear(); 1314 extension_.Clear();
1273 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 1315 if (_has_bits_[0 / 32] & 31u) {
1274 if (_internal_metadata_.have_unknown_fields()) { 1316 if (has_name()) {
1275 mutable_unknown_fields()->Clear(); 1317 GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited()));
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 }
1276 } 1336 }
1337 _has_bits_.Clear();
1338 _internal_metadata_.Clear();
1277 } 1339 }
1278 1340
1279 bool FileDescriptorProto::MergePartialFromCodedStream( 1341 bool FileDescriptorProto::MergePartialFromCodedStream(
1280 ::google::protobuf::io::CodedInputStream* input) { 1342 ::google::protobuf::io::CodedInputStream* input) {
1281 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 1343 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1282 ::google::protobuf::uint32 tag; 1344 ::google::protobuf::uint32 tag;
1283 // @@protoc_insertion_point(parse_start:google.protobuf.FileDescriptorProto) 1345 // @@protoc_insertion_point(parse_start:google.protobuf.FileDescriptorProto)
1284 for (;;) { 1346 for (;;) {
1285 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127); 1347 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u);
1286 tag = p.first; 1348 tag = p.first;
1287 if (!p.second) goto handle_unusual; 1349 if (!p.second) goto handle_unusual;
1288 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 1350 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
1289 // optional string name = 1; 1351 // optional string name = 1;
1290 case 1: { 1352 case 1: {
1291 if (tag == 10) { 1353 if (tag == 10u) {
1292 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 1354 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1293 input, this->mutable_name())); 1355 input, this->mutable_name()));
1294 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 1356 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1295 this->name().data(), this->name().length(), 1357 this->name().data(), this->name().length(),
1296 ::google::protobuf::internal::WireFormat::PARSE, 1358 ::google::protobuf::internal::WireFormat::PARSE,
1297 "google.protobuf.FileDescriptorProto.name"); 1359 "google.protobuf.FileDescriptorProto.name");
1298 } else { 1360 } else {
1299 goto handle_unusual; 1361 goto handle_unusual;
1300 } 1362 }
1301 if (input->ExpectTag(18)) goto parse_package;
1302 break; 1363 break;
1303 } 1364 }
1304 1365
1305 // optional string package = 2; 1366 // optional string package = 2;
1306 case 2: { 1367 case 2: {
1307 if (tag == 18) { 1368 if (tag == 18u) {
1308 parse_package:
1309 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 1369 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1310 input, this->mutable_package())); 1370 input, this->mutable_package()));
1311 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 1371 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1312 this->package().data(), this->package().length(), 1372 this->package().data(), this->package().length(),
1313 ::google::protobuf::internal::WireFormat::PARSE, 1373 ::google::protobuf::internal::WireFormat::PARSE,
1314 "google.protobuf.FileDescriptorProto.package"); 1374 "google.protobuf.FileDescriptorProto.package");
1315 } else { 1375 } else {
1316 goto handle_unusual; 1376 goto handle_unusual;
1317 } 1377 }
1318 if (input->ExpectTag(26)) goto parse_dependency;
1319 break; 1378 break;
1320 } 1379 }
1321 1380
1322 // repeated string dependency = 3; 1381 // repeated string dependency = 3;
1323 case 3: { 1382 case 3: {
1324 if (tag == 26) { 1383 if (tag == 26u) {
1325 parse_dependency:
1326 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 1384 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1327 input, this->add_dependency())); 1385 input, this->add_dependency()));
1328 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 1386 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1329 this->dependency(this->dependency_size() - 1).data(), 1387 this->dependency(this->dependency_size() - 1).data(),
1330 this->dependency(this->dependency_size() - 1).length(), 1388 this->dependency(this->dependency_size() - 1).length(),
1331 ::google::protobuf::internal::WireFormat::PARSE, 1389 ::google::protobuf::internal::WireFormat::PARSE,
1332 "google.protobuf.FileDescriptorProto.dependency"); 1390 "google.protobuf.FileDescriptorProto.dependency");
1333 } else { 1391 } else {
1334 goto handle_unusual; 1392 goto handle_unusual;
1335 } 1393 }
1336 if (input->ExpectTag(26)) goto parse_dependency;
1337 if (input->ExpectTag(34)) goto parse_message_type;
1338 break; 1394 break;
1339 } 1395 }
1340 1396
1341 // repeated .google.protobuf.DescriptorProto message_type = 4; 1397 // repeated .google.protobuf.DescriptorProto message_type = 4;
1342 case 4: { 1398 case 4: {
1343 if (tag == 34) { 1399 if (tag == 34u) {
1344 parse_message_type:
1345 DO_(input->IncrementRecursionDepth()); 1400 DO_(input->IncrementRecursionDepth());
1346 parse_loop_message_type:
1347 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 1401 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
1348 input, add_message_type())); 1402 input, add_message_type()));
1349 } else { 1403 } else {
1350 goto handle_unusual; 1404 goto handle_unusual;
1351 } 1405 }
1352 if (input->ExpectTag(34)) goto parse_loop_message_type;
1353 if (input->ExpectTag(42)) goto parse_loop_enum_type;
1354 input->UnsafeDecrementRecursionDepth(); 1406 input->UnsafeDecrementRecursionDepth();
1355 break; 1407 break;
1356 } 1408 }
1357 1409
1358 // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; 1410 // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
1359 case 5: { 1411 case 5: {
1360 if (tag == 42) { 1412 if (tag == 42u) {
1361 DO_(input->IncrementRecursionDepth()); 1413 DO_(input->IncrementRecursionDepth());
1362 parse_loop_enum_type:
1363 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 1414 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
1364 input, add_enum_type())); 1415 input, add_enum_type()));
1365 } else { 1416 } else {
1366 goto handle_unusual; 1417 goto handle_unusual;
1367 } 1418 }
1368 if (input->ExpectTag(42)) goto parse_loop_enum_type;
1369 if (input->ExpectTag(50)) goto parse_loop_service;
1370 input->UnsafeDecrementRecursionDepth(); 1419 input->UnsafeDecrementRecursionDepth();
1371 break; 1420 break;
1372 } 1421 }
1373 1422
1374 // repeated .google.protobuf.ServiceDescriptorProto service = 6; 1423 // repeated .google.protobuf.ServiceDescriptorProto service = 6;
1375 case 6: { 1424 case 6: {
1376 if (tag == 50) { 1425 if (tag == 50u) {
1377 DO_(input->IncrementRecursionDepth()); 1426 DO_(input->IncrementRecursionDepth());
1378 parse_loop_service:
1379 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 1427 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
1380 input, add_service())); 1428 input, add_service()));
1381 } else { 1429 } else {
1382 goto handle_unusual; 1430 goto handle_unusual;
1383 } 1431 }
1384 if (input->ExpectTag(50)) goto parse_loop_service;
1385 if (input->ExpectTag(58)) goto parse_loop_extension;
1386 input->UnsafeDecrementRecursionDepth(); 1432 input->UnsafeDecrementRecursionDepth();
1387 break; 1433 break;
1388 } 1434 }
1389 1435
1390 // repeated .google.protobuf.FieldDescriptorProto extension = 7; 1436 // repeated .google.protobuf.FieldDescriptorProto extension = 7;
1391 case 7: { 1437 case 7: {
1392 if (tag == 58) { 1438 if (tag == 58u) {
1393 DO_(input->IncrementRecursionDepth()); 1439 DO_(input->IncrementRecursionDepth());
1394 parse_loop_extension:
1395 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 1440 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
1396 input, add_extension())); 1441 input, add_extension()));
1397 } else { 1442 } else {
1398 goto handle_unusual; 1443 goto handle_unusual;
1399 } 1444 }
1400 if (input->ExpectTag(58)) goto parse_loop_extension;
1401 input->UnsafeDecrementRecursionDepth(); 1445 input->UnsafeDecrementRecursionDepth();
1402 if (input->ExpectTag(66)) goto parse_options;
1403 break; 1446 break;
1404 } 1447 }
1405 1448
1406 // optional .google.protobuf.FileOptions options = 8; 1449 // optional .google.protobuf.FileOptions options = 8;
1407 case 8: { 1450 case 8: {
1408 if (tag == 66) { 1451 if (tag == 66u) {
1409 parse_options:
1410 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual ( 1452 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual (
1411 input, mutable_options())); 1453 input, mutable_options()));
1412 } else { 1454 } else {
1413 goto handle_unusual; 1455 goto handle_unusual;
1414 } 1456 }
1415 if (input->ExpectTag(74)) goto parse_source_code_info;
1416 break; 1457 break;
1417 } 1458 }
1418 1459
1419 // optional .google.protobuf.SourceCodeInfo source_code_info = 9; 1460 // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
1420 case 9: { 1461 case 9: {
1421 if (tag == 74) { 1462 if (tag == 74u) {
1422 parse_source_code_info:
1423 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual ( 1463 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual (
1424 input, mutable_source_code_info())); 1464 input, mutable_source_code_info()));
1425 } else { 1465 } else {
1426 goto handle_unusual; 1466 goto handle_unusual;
1427 } 1467 }
1428 if (input->ExpectTag(80)) goto parse_public_dependency;
1429 break; 1468 break;
1430 } 1469 }
1431 1470
1432 // repeated int32 public_dependency = 10; 1471 // repeated int32 public_dependency = 10;
1433 case 10: { 1472 case 10: {
1434 if (tag == 80) { 1473 if (tag == 80u) {
1435 parse_public_dependency:
1436 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimiti ve< 1474 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimiti ve<
1437 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>( 1475 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
1438 1, 80, input, this->mutable_public_dependency()))); 1476 1, 80u, input, this->mutable_public_dependency())));
1439 } else if (tag == 82) { 1477 } else if (tag == 82u) {
1440 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive NoInline< 1478 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive NoInline<
1441 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>( 1479 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
1442 input, this->mutable_public_dependency()))); 1480 input, this->mutable_public_dependency())));
1443 } else { 1481 } else {
1444 goto handle_unusual; 1482 goto handle_unusual;
1445 } 1483 }
1446 if (input->ExpectTag(80)) goto parse_public_dependency;
1447 if (input->ExpectTag(88)) goto parse_weak_dependency;
1448 break; 1484 break;
1449 } 1485 }
1450 1486
1451 // repeated int32 weak_dependency = 11; 1487 // repeated int32 weak_dependency = 11;
1452 case 11: { 1488 case 11: {
1453 if (tag == 88) { 1489 if (tag == 88u) {
1454 parse_weak_dependency:
1455 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimiti ve< 1490 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimiti ve<
1456 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>( 1491 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
1457 1, 88, input, this->mutable_weak_dependency()))); 1492 1, 88u, input, this->mutable_weak_dependency())));
1458 } else if (tag == 90) { 1493 } else if (tag == 90u) {
1459 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive NoInline< 1494 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive NoInline<
1460 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>( 1495 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
1461 input, this->mutable_weak_dependency()))); 1496 input, this->mutable_weak_dependency())));
1462 } else { 1497 } else {
1463 goto handle_unusual; 1498 goto handle_unusual;
1464 } 1499 }
1465 if (input->ExpectTag(88)) goto parse_weak_dependency;
1466 if (input->ExpectTag(98)) goto parse_syntax;
1467 break; 1500 break;
1468 } 1501 }
1469 1502
1470 // optional string syntax = 12; 1503 // optional string syntax = 12;
1471 case 12: { 1504 case 12: {
1472 if (tag == 98) { 1505 if (tag == 98u) {
1473 parse_syntax:
1474 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 1506 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1475 input, this->mutable_syntax())); 1507 input, this->mutable_syntax()));
1476 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 1508 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1477 this->syntax().data(), this->syntax().length(), 1509 this->syntax().data(), this->syntax().length(),
1478 ::google::protobuf::internal::WireFormat::PARSE, 1510 ::google::protobuf::internal::WireFormat::PARSE,
1479 "google.protobuf.FileDescriptorProto.syntax"); 1511 "google.protobuf.FileDescriptorProto.syntax");
1480 } else { 1512 } else {
1481 goto handle_unusual; 1513 goto handle_unusual;
1482 } 1514 }
1483 if (input->ExpectAtEnd()) goto success;
1484 break; 1515 break;
1485 } 1516 }
1486 1517
1487 default: { 1518 default: {
1488 handle_unusual: 1519 handle_unusual:
1489 if (tag == 0 || 1520 if (tag == 0 ||
1490 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 1521 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1491 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 1522 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1492 goto success; 1523 goto success;
1493 } 1524 }
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
1597 12, this->syntax(), output); 1628 12, this->syntax(), output);
1598 } 1629 }
1599 1630
1600 if (_internal_metadata_.have_unknown_fields()) { 1631 if (_internal_metadata_.have_unknown_fields()) {
1601 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 1632 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1602 unknown_fields(), output); 1633 unknown_fields(), output);
1603 } 1634 }
1604 // @@protoc_insertion_point(serialize_end:google.protobuf.FileDescriptorProto) 1635 // @@protoc_insertion_point(serialize_end:google.protobuf.FileDescriptorProto)
1605 } 1636 }
1606 1637
1607 ::google::protobuf::uint8* FileDescriptorProto::SerializeWithCachedSizesToArray( 1638 ::google::protobuf::uint8* FileDescriptorProto::InternalSerializeWithCachedSizes ToArray(
1608 ::google::protobuf::uint8* target) const { 1639 bool deterministic, ::google::protobuf::uint8* target) const {
1640 (void)deterministic; // Unused
1609 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileDescr iptorProto) 1641 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileDescr iptorProto)
1610 // optional string name = 1; 1642 // optional string name = 1;
1611 if (has_name()) { 1643 if (has_name()) {
1612 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 1644 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1613 this->name().data(), this->name().length(), 1645 this->name().data(), this->name().length(),
1614 ::google::protobuf::internal::WireFormat::SERIALIZE, 1646 ::google::protobuf::internal::WireFormat::SERIALIZE,
1615 "google.protobuf.FileDescriptorProto.name"); 1647 "google.protobuf.FileDescriptorProto.name");
1616 target = 1648 target =
1617 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1649 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1618 1, this->name(), target); 1650 1, this->name(), target);
(...skipping 16 matching lines...) Expand all
1635 this->dependency(i).data(), this->dependency(i).length(), 1667 this->dependency(i).data(), this->dependency(i).length(),
1636 ::google::protobuf::internal::WireFormat::SERIALIZE, 1668 ::google::protobuf::internal::WireFormat::SERIALIZE,
1637 "google.protobuf.FileDescriptorProto.dependency"); 1669 "google.protobuf.FileDescriptorProto.dependency");
1638 target = ::google::protobuf::internal::WireFormatLite:: 1670 target = ::google::protobuf::internal::WireFormatLite::
1639 WriteStringToArray(3, this->dependency(i), target); 1671 WriteStringToArray(3, this->dependency(i), target);
1640 } 1672 }
1641 1673
1642 // repeated .google.protobuf.DescriptorProto message_type = 4; 1674 // repeated .google.protobuf.DescriptorProto message_type = 4;
1643 for (unsigned int i = 0, n = this->message_type_size(); i < n; i++) { 1675 for (unsigned int i = 0, n = this->message_type_size(); i < n; i++) {
1644 target = ::google::protobuf::internal::WireFormatLite:: 1676 target = ::google::protobuf::internal::WireFormatLite::
1645 WriteMessageNoVirtualToArray( 1677 InternalWriteMessageNoVirtualToArray(
1646 4, this->message_type(i), target); 1678 4, this->message_type(i), false, target);
1647 } 1679 }
1648 1680
1649 // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; 1681 // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
1650 for (unsigned int i = 0, n = this->enum_type_size(); i < n; i++) { 1682 for (unsigned int i = 0, n = this->enum_type_size(); i < n; i++) {
1651 target = ::google::protobuf::internal::WireFormatLite:: 1683 target = ::google::protobuf::internal::WireFormatLite::
1652 WriteMessageNoVirtualToArray( 1684 InternalWriteMessageNoVirtualToArray(
1653 5, this->enum_type(i), target); 1685 5, this->enum_type(i), false, target);
1654 } 1686 }
1655 1687
1656 // repeated .google.protobuf.ServiceDescriptorProto service = 6; 1688 // repeated .google.protobuf.ServiceDescriptorProto service = 6;
1657 for (unsigned int i = 0, n = this->service_size(); i < n; i++) { 1689 for (unsigned int i = 0, n = this->service_size(); i < n; i++) {
1658 target = ::google::protobuf::internal::WireFormatLite:: 1690 target = ::google::protobuf::internal::WireFormatLite::
1659 WriteMessageNoVirtualToArray( 1691 InternalWriteMessageNoVirtualToArray(
1660 6, this->service(i), target); 1692 6, this->service(i), false, target);
1661 } 1693 }
1662 1694
1663 // repeated .google.protobuf.FieldDescriptorProto extension = 7; 1695 // repeated .google.protobuf.FieldDescriptorProto extension = 7;
1664 for (unsigned int i = 0, n = this->extension_size(); i < n; i++) { 1696 for (unsigned int i = 0, n = this->extension_size(); i < n; i++) {
1665 target = ::google::protobuf::internal::WireFormatLite:: 1697 target = ::google::protobuf::internal::WireFormatLite::
1666 WriteMessageNoVirtualToArray( 1698 InternalWriteMessageNoVirtualToArray(
1667 7, this->extension(i), target); 1699 7, this->extension(i), false, target);
1668 } 1700 }
1669 1701
1670 // optional .google.protobuf.FileOptions options = 8; 1702 // optional .google.protobuf.FileOptions options = 8;
1671 if (has_options()) { 1703 if (has_options()) {
1672 target = ::google::protobuf::internal::WireFormatLite:: 1704 target = ::google::protobuf::internal::WireFormatLite::
1673 WriteMessageNoVirtualToArray( 1705 InternalWriteMessageNoVirtualToArray(
1674 8, *this->options_, target); 1706 8, *this->options_, false, target);
1675 } 1707 }
1676 1708
1677 // optional .google.protobuf.SourceCodeInfo source_code_info = 9; 1709 // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
1678 if (has_source_code_info()) { 1710 if (has_source_code_info()) {
1679 target = ::google::protobuf::internal::WireFormatLite:: 1711 target = ::google::protobuf::internal::WireFormatLite::
1680 WriteMessageNoVirtualToArray( 1712 InternalWriteMessageNoVirtualToArray(
1681 9, *this->source_code_info_, target); 1713 9, *this->source_code_info_, false, target);
1682 } 1714 }
1683 1715
1684 // repeated int32 public_dependency = 10; 1716 // repeated int32 public_dependency = 10;
1685 for (int i = 0; i < this->public_dependency_size(); i++) { 1717 for (int i = 0; i < this->public_dependency_size(); i++) {
1686 target = ::google::protobuf::internal::WireFormatLite:: 1718 target = ::google::protobuf::internal::WireFormatLite::
1687 WriteInt32ToArray(10, this->public_dependency(i), target); 1719 WriteInt32ToArray(10, this->public_dependency(i), target);
1688 } 1720 }
1689 1721
1690 // repeated int32 weak_dependency = 11; 1722 // repeated int32 weak_dependency = 11;
1691 for (int i = 0; i < this->weak_dependency_size(); i++) { 1723 for (int i = 0; i < this->weak_dependency_size(); i++) {
(...skipping 13 matching lines...) Expand all
1705 } 1737 }
1706 1738
1707 if (_internal_metadata_.have_unknown_fields()) { 1739 if (_internal_metadata_.have_unknown_fields()) {
1708 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 1740 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
1709 unknown_fields(), target); 1741 unknown_fields(), target);
1710 } 1742 }
1711 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileDescrip torProto) 1743 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileDescrip torProto)
1712 return target; 1744 return target;
1713 } 1745 }
1714 1746
1715 int FileDescriptorProto::ByteSize() const { 1747 size_t FileDescriptorProto::ByteSizeLong() const {
1716 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FileDescript orProto) 1748 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FileDescript orProto)
1717 int total_size = 0; 1749 size_t total_size = 0;
1718 1750
1719 if (_has_bits_[0 / 32] & 3u) { 1751 if (_internal_metadata_.have_unknown_fields()) {
1720 // optional string name = 1; 1752 total_size +=
1721 if (has_name()) { 1753 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1722 total_size += 1 + 1754 unknown_fields());
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
1757 } 1755 }
1758 // repeated string dependency = 3; 1756 // repeated string dependency = 3;
1759 total_size += 1 * this->dependency_size(); 1757 total_size += 1 *
1758 ::google::protobuf::internal::FromIntSize(this->dependency_size());
1760 for (int i = 0; i < this->dependency_size(); i++) { 1759 for (int i = 0; i < this->dependency_size(); i++) {
1761 total_size += ::google::protobuf::internal::WireFormatLite::StringSize( 1760 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
1762 this->dependency(i)); 1761 this->dependency(i));
1763 } 1762 }
1764 1763
1765 // repeated int32 public_dependency = 10; 1764 // repeated int32 public_dependency = 10;
1766 { 1765 {
1767 int data_size = 0; 1766 size_t data_size = 0;
1768 for (int i = 0; i < this->public_dependency_size(); i++) { 1767 unsigned int count = this->public_dependency_size();
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 * this->public_dependency_size() + data_size; 1772 total_size += 1 *
1773 ::google::protobuf::internal::FromIntSize(this->public_depende ncy_size());
1774 total_size += data_size;
1773 } 1775 }
1774 1776
1775 // repeated int32 weak_dependency = 11; 1777 // repeated int32 weak_dependency = 11;
1776 { 1778 {
1777 int data_size = 0; 1779 size_t data_size = 0;
1778 for (int i = 0; i < this->weak_dependency_size(); i++) { 1780 unsigned int count = this->weak_dependency_size();
1781 for (unsigned int i = 0; i < count; i++) {
1779 data_size += ::google::protobuf::internal::WireFormatLite:: 1782 data_size += ::google::protobuf::internal::WireFormatLite::
1780 Int32Size(this->weak_dependency(i)); 1783 Int32Size(this->weak_dependency(i));
1781 } 1784 }
1782 total_size += 1 * this->weak_dependency_size() + data_size; 1785 total_size += 1 *
1786 ::google::protobuf::internal::FromIntSize(this->weak_dependenc y_size());
1787 total_size += data_size;
1783 } 1788 }
1784 1789
1785 // repeated .google.protobuf.DescriptorProto message_type = 4; 1790 // repeated .google.protobuf.DescriptorProto message_type = 4;
1786 total_size += 1 * this->message_type_size(); 1791 {
1787 for (int i = 0; i < this->message_type_size(); i++) { 1792 unsigned int count = this->message_type_size();
1788 total_size += 1793 total_size += 1UL * count;
1789 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( 1794 for (unsigned int i = 0; i < count; i++) {
1790 this->message_type(i)); 1795 total_size +=
1796 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1797 this->message_type(i));
1798 }
1791 } 1799 }
1792 1800
1793 // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; 1801 // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
1794 total_size += 1 * this->enum_type_size(); 1802 {
1795 for (int i = 0; i < this->enum_type_size(); i++) { 1803 unsigned int count = this->enum_type_size();
1796 total_size += 1804 total_size += 1UL * count;
1797 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( 1805 for (unsigned int i = 0; i < count; i++) {
1798 this->enum_type(i)); 1806 total_size +=
1807 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1808 this->enum_type(i));
1809 }
1799 } 1810 }
1800 1811
1801 // repeated .google.protobuf.ServiceDescriptorProto service = 6; 1812 // repeated .google.protobuf.ServiceDescriptorProto service = 6;
1802 total_size += 1 * this->service_size(); 1813 {
1803 for (int i = 0; i < this->service_size(); i++) { 1814 unsigned int count = this->service_size();
1804 total_size += 1815 total_size += 1UL * count;
1805 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( 1816 for (unsigned int i = 0; i < count; i++) {
1806 this->service(i)); 1817 total_size +=
1818 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1819 this->service(i));
1820 }
1807 } 1821 }
1808 1822
1809 // repeated .google.protobuf.FieldDescriptorProto extension = 7; 1823 // repeated .google.protobuf.FieldDescriptorProto extension = 7;
1810 total_size += 1 * this->extension_size(); 1824 {
1811 for (int i = 0; i < this->extension_size(); i++) { 1825 unsigned int count = this->extension_size();
1812 total_size += 1826 total_size += 1UL * count;
1813 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( 1827 for (unsigned int i = 0; i < count; i++) {
1814 this->extension(i)); 1828 total_size +=
1829 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1830 this->extension(i));
1831 }
1815 } 1832 }
1816 1833
1817 if (_internal_metadata_.have_unknown_fields()) { 1834 if (_has_bits_[0 / 32] & 31u) {
1818 total_size += 1835 // optional string name = 1;
1819 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( 1836 if (has_name()) {
1820 unknown_fields()); 1837 total_size += 1 +
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
1821 } 1870 }
1871 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1822 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 1872 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1823 _cached_size_ = total_size; 1873 _cached_size_ = cached_size;
1824 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 1874 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1825 return total_size; 1875 return total_size;
1826 } 1876 }
1827 1877
1828 void FileDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { 1878 void FileDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
1829 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FileDes criptorProto) 1879 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FileDes criptorProto)
1830 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 1880 GOOGLE_DCHECK_NE(&from, this);
1831 const FileDescriptorProto* source = 1881 const FileDescriptorProto* source =
1832 ::google::protobuf::internal::DynamicCastToGenerated<const FileDescriptorP roto>( 1882 ::google::protobuf::internal::DynamicCastToGenerated<const FileDescriptorP roto>(
1833 &from); 1883 &from);
1834 if (source == NULL) { 1884 if (source == NULL) {
1835 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.F ileDescriptorProto) 1885 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.F ileDescriptorProto)
1836 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 1886 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1837 } else { 1887 } else {
1838 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.FileDescriptorProto) 1888 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.FileDescriptorProto)
1839 MergeFrom(*source); 1889 MergeFrom(*source);
1840 } 1890 }
1841 } 1891 }
1842 1892
1843 void FileDescriptorProto::MergeFrom(const FileDescriptorProto& from) { 1893 void FileDescriptorProto::MergeFrom(const FileDescriptorProto& from) {
1844 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.File DescriptorProto) 1894 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.File DescriptorProto)
1845 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 1895 GOOGLE_DCHECK_NE(&from, this);
1896 _internal_metadata_.MergeFrom(from._internal_metadata_);
1846 dependency_.MergeFrom(from.dependency_); 1897 dependency_.MergeFrom(from.dependency_);
1847 public_dependency_.MergeFrom(from.public_dependency_); 1898 public_dependency_.MergeFrom(from.public_dependency_);
1848 weak_dependency_.MergeFrom(from.weak_dependency_); 1899 weak_dependency_.MergeFrom(from.weak_dependency_);
1849 message_type_.MergeFrom(from.message_type_); 1900 message_type_.MergeFrom(from.message_type_);
1850 enum_type_.MergeFrom(from.enum_type_); 1901 enum_type_.MergeFrom(from.enum_type_);
1851 service_.MergeFrom(from.service_); 1902 service_.MergeFrom(from.service_);
1852 extension_.MergeFrom(from.extension_); 1903 extension_.MergeFrom(from.extension_);
1853 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { 1904 if (from._has_bits_[0 / 32] & 31u) {
1854 if (from.has_name()) { 1905 if (from.has_name()) {
1855 set_has_name(); 1906 set_has_name();
1856 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), from.name_); 1907 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), from.name_);
1857 } 1908 }
1858 if (from.has_package()) { 1909 if (from.has_package()) {
1859 set_has_package(); 1910 set_has_package();
1860 package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAl readyInited(), from.package_); 1911 package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAl readyInited(), from.package_);
1861 } 1912 }
1862 } 1913 if (from.has_syntax()) {
1863 if (from._has_bits_[9 / 32] & (0xffu << (9 % 32))) { 1914 set_has_syntax();
1915 syntax_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), from.syntax_);
1916 }
1864 if (from.has_options()) { 1917 if (from.has_options()) {
1865 mutable_options()->::google::protobuf::FileOptions::MergeFrom(from.options ()); 1918 mutable_options()->::google::protobuf::FileOptions::MergeFrom(from.options ());
1866 } 1919 }
1867 if (from.has_source_code_info()) { 1920 if (from.has_source_code_info()) {
1868 mutable_source_code_info()->::google::protobuf::SourceCodeInfo::MergeFrom( from.source_code_info()); 1921 mutable_source_code_info()->::google::protobuf::SourceCodeInfo::MergeFrom( from.source_code_info());
1869 } 1922 }
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());
1877 } 1923 }
1878 } 1924 }
1879 1925
1880 void FileDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { 1926 void FileDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
1881 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FileDesc riptorProto) 1927 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FileDesc riptorProto)
1882 if (&from == this) return; 1928 if (&from == this) return;
1883 Clear(); 1929 Clear();
1884 MergeFrom(from); 1930 MergeFrom(from);
1885 } 1931 }
1886 1932
1887 void FileDescriptorProto::CopyFrom(const FileDescriptorProto& from) { 1933 void FileDescriptorProto::CopyFrom(const FileDescriptorProto& from) {
1888 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FileD escriptorProto) 1934 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FileD escriptorProto)
1889 if (&from == this) return; 1935 if (&from == this) return;
1890 Clear(); 1936 Clear();
1891 MergeFrom(from); 1937 MergeFrom(from);
1892 } 1938 }
1893 1939
1894 bool FileDescriptorProto::IsInitialized() const { 1940 bool FileDescriptorProto::IsInitialized() const {
1895
1896 if (!::google::protobuf::internal::AllAreInitialized(this->message_type())) re turn false; 1941 if (!::google::protobuf::internal::AllAreInitialized(this->message_type())) re turn false;
1897 if (!::google::protobuf::internal::AllAreInitialized(this->enum_type())) retur n false; 1942 if (!::google::protobuf::internal::AllAreInitialized(this->enum_type())) retur n false;
1898 if (!::google::protobuf::internal::AllAreInitialized(this->service())) return false; 1943 if (!::google::protobuf::internal::AllAreInitialized(this->service())) return false;
1899 if (!::google::protobuf::internal::AllAreInitialized(this->extension())) retur n false; 1944 if (!::google::protobuf::internal::AllAreInitialized(this->extension())) retur n false;
1900 if (has_options()) { 1945 if (has_options()) {
1901 if (!this->options_->IsInitialized()) return false; 1946 if (!this->options_->IsInitialized()) return false;
1902 } 1947 }
1903 return true; 1948 return true;
1904 } 1949 }
1905 1950
1906 void FileDescriptorProto::Swap(FileDescriptorProto* other) { 1951 void FileDescriptorProto::Swap(FileDescriptorProto* other) {
1907 if (other == this) return; 1952 if (other == this) return;
1908 InternalSwap(other); 1953 InternalSwap(other);
1909 } 1954 }
1910 void FileDescriptorProto::InternalSwap(FileDescriptorProto* other) { 1955 void FileDescriptorProto::InternalSwap(FileDescriptorProto* other) {
1911 name_.Swap(&other->name_);
1912 package_.Swap(&other->package_);
1913 dependency_.UnsafeArenaSwap(&other->dependency_); 1956 dependency_.UnsafeArenaSwap(&other->dependency_);
1914 public_dependency_.UnsafeArenaSwap(&other->public_dependency_); 1957 public_dependency_.UnsafeArenaSwap(&other->public_dependency_);
1915 weak_dependency_.UnsafeArenaSwap(&other->weak_dependency_); 1958 weak_dependency_.UnsafeArenaSwap(&other->weak_dependency_);
1916 message_type_.UnsafeArenaSwap(&other->message_type_); 1959 message_type_.UnsafeArenaSwap(&other->message_type_);
1917 enum_type_.UnsafeArenaSwap(&other->enum_type_); 1960 enum_type_.UnsafeArenaSwap(&other->enum_type_);
1918 service_.UnsafeArenaSwap(&other->service_); 1961 service_.UnsafeArenaSwap(&other->service_);
1919 extension_.UnsafeArenaSwap(&other->extension_); 1962 extension_.UnsafeArenaSwap(&other->extension_);
1963 name_.Swap(&other->name_);
1964 package_.Swap(&other->package_);
1965 syntax_.Swap(&other->syntax_);
1920 std::swap(options_, other->options_); 1966 std::swap(options_, other->options_);
1921 std::swap(source_code_info_, other->source_code_info_); 1967 std::swap(source_code_info_, other->source_code_info_);
1922 syntax_.Swap(&other->syntax_);
1923 std::swap(_has_bits_[0], other->_has_bits_[0]); 1968 std::swap(_has_bits_[0], other->_has_bits_[0]);
1924 _internal_metadata_.Swap(&other->_internal_metadata_); 1969 _internal_metadata_.Swap(&other->_internal_metadata_);
1925 std::swap(_cached_size_, other->_cached_size_); 1970 std::swap(_cached_size_, other->_cached_size_);
1926 } 1971 }
1927 1972
1928 ::google::protobuf::Metadata FileDescriptorProto::GetMetadata() const { 1973 ::google::protobuf::Metadata FileDescriptorProto::GetMetadata() const {
1929 protobuf_AssignDescriptorsOnce(); 1974 protobuf_AssignDescriptorsOnce();
1930 ::google::protobuf::Metadata metadata; 1975 return file_level_metadata[1];
1931 metadata.descriptor = FileDescriptorProto_descriptor_;
1932 metadata.reflection = FileDescriptorProto_reflection_;
1933 return metadata;
1934 } 1976 }
1935 1977
1936 #if PROTOBUF_INLINE_NOT_IN_HEADERS 1978 #if PROTOBUF_INLINE_NOT_IN_HEADERS
1937 // FileDescriptorProto 1979 // FileDescriptorProto
1938 1980
1939 // optional string name = 1; 1981 // optional string name = 1;
1940 bool FileDescriptorProto::has_name() const { 1982 bool FileDescriptorProto::has_name() const {
1941 return (_has_bits_[0] & 0x00000001u) != 0; 1983 return (_has_bits_[0] & 0x00000001u) != 0;
1942 } 1984 }
1943 void FileDescriptorProto::set_has_name() { 1985 void FileDescriptorProto::set_has_name() {
1944 _has_bits_[0] |= 0x00000001u; 1986 _has_bits_[0] |= 0x00000001u;
1945 } 1987 }
1946 void FileDescriptorProto::clear_has_name() { 1988 void FileDescriptorProto::clear_has_name() {
1947 _has_bits_[0] &= ~0x00000001u; 1989 _has_bits_[0] &= ~0x00000001u;
1948 } 1990 }
1949 void FileDescriptorProto::clear_name() { 1991 void FileDescriptorProto::clear_name() {
1950 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 1992 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
1951 clear_has_name(); 1993 clear_has_name();
1952 } 1994 }
1953 const ::std::string& FileDescriptorProto::name() const { 1995 const ::std::string& FileDescriptorProto::name() const {
1954 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.name ) 1996 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.name )
1955 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited()); 1997 return name_.GetNoArena();
1956 } 1998 }
1957 void FileDescriptorProto::set_name(const ::std::string& value) { 1999 void FileDescriptorProto::set_name(const ::std::string& value) {
1958 set_has_name(); 2000 set_has_name();
1959 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 2001 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1960 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.name ) 2002 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.name )
1961 } 2003 }
1962 void FileDescriptorProto::set_name(const char* value) { 2004 #if LANG_CXX11
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) {
1963 set_has_name(); 2013 set_has_name();
1964 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 2014 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1965 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto .name) 2015 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto .name)
1966 } 2016 }
1967 void FileDescriptorProto::set_name(const char* value, size_t size) { 2017 void FileDescriptorProto::set_name(const char* value, size_t size) {
1968 set_has_name(); 2018 set_has_name();
1969 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 2019 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1970 ::std::string(reinterpret_cast<const char*>(value), size)); 2020 ::std::string(reinterpret_cast<const char*>(value), size));
1971 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorPr oto.name) 2021 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorPr oto.name)
1972 } 2022 }
1973 ::std::string* FileDescriptorProto::mutable_name() { 2023 ::std::string* FileDescriptorProto::mutable_name() {
1974 set_has_name(); 2024 set_has_name();
1975 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto. name) 2025 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto. name)
1976 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 2026 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
1977 } 2027 }
1978 ::std::string* FileDescriptorProto::release_name() { 2028 ::std::string* FileDescriptorProto::release_name() {
1979 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto. name) 2029 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto. name)
1980 clear_has_name(); 2030 clear_has_name();
1981 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 2031 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
1982 } 2032 }
1983 void FileDescriptorProto::set_allocated_name(::std::string* name) { 2033 void FileDescriptorProto::set_allocated_name(::std::string* name) {
1984 if (name != NULL) { 2034 if (name != NULL) {
1985 set_has_name(); 2035 set_has_name();
1986 } else { 2036 } else {
1987 clear_has_name(); 2037 clear_has_name();
1988 } 2038 }
1989 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name); 2039 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name);
1990 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptor Proto.name) 2040 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptor Proto.name)
1991 } 2041 }
1992 2042
1993 // optional string package = 2; 2043 // optional string package = 2;
1994 bool FileDescriptorProto::has_package() const { 2044 bool FileDescriptorProto::has_package() const {
1995 return (_has_bits_[0] & 0x00000002u) != 0; 2045 return (_has_bits_[0] & 0x00000002u) != 0;
1996 } 2046 }
1997 void FileDescriptorProto::set_has_package() { 2047 void FileDescriptorProto::set_has_package() {
1998 _has_bits_[0] |= 0x00000002u; 2048 _has_bits_[0] |= 0x00000002u;
1999 } 2049 }
2000 void FileDescriptorProto::clear_has_package() { 2050 void FileDescriptorProto::clear_has_package() {
2001 _has_bits_[0] &= ~0x00000002u; 2051 _has_bits_[0] &= ~0x00000002u;
2002 } 2052 }
2003 void FileDescriptorProto::clear_package() { 2053 void FileDescriptorProto::clear_package() {
2004 package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited()); 2054 package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited());
2005 clear_has_package(); 2055 clear_has_package();
2006 } 2056 }
2007 const ::std::string& FileDescriptorProto::package() const { 2057 const ::std::string& FileDescriptorProto::package() const {
2008 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.pack age) 2058 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.pack age)
2009 return package_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlread yInited()); 2059 return package_.GetNoArena();
2010 } 2060 }
2011 void FileDescriptorProto::set_package(const ::std::string& value) { 2061 void FileDescriptorProto::set_package(const ::std::string& value) {
2012 set_has_package(); 2062 set_has_package();
2013 package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited (), value); 2063 package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited (), value);
2014 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.pack age) 2064 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.pack age)
2015 } 2065 }
2016 void FileDescriptorProto::set_package(const char* value) { 2066 #if LANG_CXX11
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) {
2017 set_has_package(); 2075 set_has_package();
2018 package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited (), ::std::string(value)); 2076 package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited (), ::std::string(value));
2019 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto .package) 2077 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto .package)
2020 } 2078 }
2021 void FileDescriptorProto::set_package(const char* value, size_t size) { 2079 void FileDescriptorProto::set_package(const char* value, size_t size) {
2022 set_has_package(); 2080 set_has_package();
2023 package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited (), 2081 package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited (),
2024 ::std::string(reinterpret_cast<const char*>(value), size)); 2082 ::std::string(reinterpret_cast<const char*>(value), size));
2025 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorPr oto.package) 2083 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorPr oto.package)
2026 } 2084 }
2027 ::std::string* FileDescriptorProto::mutable_package() { 2085 ::std::string* FileDescriptorProto::mutable_package() {
2028 set_has_package(); 2086 set_has_package();
2029 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto. package) 2087 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto. package)
2030 return package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited()); 2088 return package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited());
2031 } 2089 }
2032 ::std::string* FileDescriptorProto::release_package() { 2090 ::std::string* FileDescriptorProto::release_package() {
2033 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto. package) 2091 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto. package)
2034 clear_has_package(); 2092 clear_has_package();
2035 return package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited()); 2093 return package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited());
2036 } 2094 }
2037 void FileDescriptorProto::set_allocated_package(::std::string* package) { 2095 void FileDescriptorProto::set_allocated_package(::std::string* package) {
2038 if (package != NULL) { 2096 if (package != NULL) {
2039 set_has_package(); 2097 set_has_package();
2040 } else { 2098 } else {
2041 clear_has_package(); 2099 clear_has_package();
2042 } 2100 }
2043 package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), package); 2101 package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), package);
2044 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptor Proto.package) 2102 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptor Proto.package)
2045 } 2103 }
2046 2104
2047 // repeated string dependency = 3; 2105 // repeated string dependency = 3;
2048 int FileDescriptorProto::dependency_size() const { 2106 int FileDescriptorProto::dependency_size() const {
2049 return dependency_.size(); 2107 return dependency_.size();
2050 } 2108 }
2051 void FileDescriptorProto::clear_dependency() { 2109 void FileDescriptorProto::clear_dependency() {
2052 dependency_.Clear(); 2110 dependency_.Clear();
2053 } 2111 }
2054 const ::std::string& FileDescriptorProto::dependency(int index) const { 2112 const ::std::string& FileDescriptorProto::dependency(int index) const {
2055 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.depe ndency) 2113 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.depe ndency)
2056 return dependency_.Get(index); 2114 return dependency_.Get(index);
2057 } 2115 }
2058 ::std::string* FileDescriptorProto::mutable_dependency(int index) { 2116 ::std::string* FileDescriptorProto::mutable_dependency(int index) {
2059 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto. dependency) 2117 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto. dependency)
2060 return dependency_.Mutable(index); 2118 return dependency_.Mutable(index);
2061 } 2119 }
2062 void FileDescriptorProto::set_dependency(int index, const ::std::string& value) { 2120 void FileDescriptorProto::set_dependency(int index, const ::std::string& value) {
2063 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.depe ndency) 2121 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.depe ndency)
2064 dependency_.Mutable(index)->assign(value); 2122 dependency_.Mutable(index)->assign(value);
2065 } 2123 }
2066 void FileDescriptorProto::set_dependency(int index, const char* value) { 2124 void FileDescriptorProto::set_dependency(int index, const char* value) {
2067 dependency_.Mutable(index)->assign(value); 2125 dependency_.Mutable(index)->assign(value);
2068 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto .dependency) 2126 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto .dependency)
2069 } 2127 }
2070 void FileDescriptorProto::set_dependency(int index, const char* value, size_t s ize) { 2128 void FileDescriptorProto::set_dependency(int index, const char* value, size_t si ze) {
2071 dependency_.Mutable(index)->assign( 2129 dependency_.Mutable(index)->assign(
2072 reinterpret_cast<const char*>(value), size); 2130 reinterpret_cast<const char*>(value), size);
2073 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorPr oto.dependency) 2131 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorPr oto.dependency)
2074 } 2132 }
2075 ::std::string* FileDescriptorProto::add_dependency() { 2133 ::std::string* FileDescriptorProto::add_dependency() {
2076 // @@protoc_insertion_point(field_add_mutable:google.protobuf.FileDescriptorPr oto.dependency) 2134 // @@protoc_insertion_point(field_add_mutable:google.protobuf.FileDescriptorPr oto.dependency)
2077 return dependency_.Add(); 2135 return dependency_.Add();
2078 } 2136 }
2079 void FileDescriptorProto::add_dependency(const ::std::string& value) { 2137 void FileDescriptorProto::add_dependency(const ::std::string& value) {
2080 dependency_.Add()->assign(value); 2138 dependency_.Add()->assign(value);
2081 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.depe ndency) 2139 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.depe ndency)
2082 } 2140 }
2083 void FileDescriptorProto::add_dependency(const char* value) { 2141 void FileDescriptorProto::add_dependency(const char* value) {
2084 dependency_.Add()->assign(value); 2142 dependency_.Add()->assign(value);
2085 // @@protoc_insertion_point(field_add_char:google.protobuf.FileDescriptorProto .dependency) 2143 // @@protoc_insertion_point(field_add_char:google.protobuf.FileDescriptorProto .dependency)
2086 } 2144 }
2087 void FileDescriptorProto::add_dependency(const char* value, size_t size) { 2145 void FileDescriptorProto::add_dependency(const char* value, size_t size) {
2088 dependency_.Add()->assign(reinterpret_cast<const char*>(value), size); 2146 dependency_.Add()->assign(reinterpret_cast<const char*>(value), size);
2089 // @@protoc_insertion_point(field_add_pointer:google.protobuf.FileDescriptorPr oto.dependency) 2147 // @@protoc_insertion_point(field_add_pointer:google.protobuf.FileDescriptorPr oto.dependency)
2090 } 2148 }
2091 const ::google::protobuf::RepeatedPtrField< ::std::string>& 2149 const ::google::protobuf::RepeatedPtrField< ::std::string>&
2092 FileDescriptorProto::dependency() const { 2150 FileDescriptorProto::dependency() const {
2093 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.dep endency) 2151 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.dep endency)
2094 return dependency_; 2152 return dependency_;
2095 } 2153 }
2096 ::google::protobuf::RepeatedPtrField< ::std::string>* 2154 ::google::protobuf::RepeatedPtrField< ::std::string>*
2097 FileDescriptorProto::mutable_dependency() { 2155 FileDescriptorProto::mutable_dependency() {
2098 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorP roto.dependency) 2156 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorP roto.dependency)
2099 return &dependency_; 2157 return &dependency_;
2100 } 2158 }
2101 2159
2102 // repeated int32 public_dependency = 10; 2160 // repeated int32 public_dependency = 10;
2103 int FileDescriptorProto::public_dependency_size() const { 2161 int FileDescriptorProto::public_dependency_size() const {
2104 return public_dependency_.size(); 2162 return public_dependency_.size();
2105 } 2163 }
2106 void FileDescriptorProto::clear_public_dependency() { 2164 void FileDescriptorProto::clear_public_dependency() {
2107 public_dependency_.Clear(); 2165 public_dependency_.Clear();
2108 } 2166 }
2109 ::google::protobuf::int32 FileDescriptorProto::public_dependency(int index) con st { 2167 ::google::protobuf::int32 FileDescriptorProto::public_dependency(int index) cons t {
2110 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.publ ic_dependency) 2168 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.publ ic_dependency)
2111 return public_dependency_.Get(index); 2169 return public_dependency_.Get(index);
2112 } 2170 }
2113 void FileDescriptorProto::set_public_dependency(int index, ::google::protobuf:: int32 value) { 2171 void FileDescriptorProto::set_public_dependency(int index, ::google::protobuf::i nt32 value) {
2114 public_dependency_.Set(index, value); 2172 public_dependency_.Set(index, value);
2115 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.publ ic_dependency) 2173 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.publ ic_dependency)
2116 } 2174 }
2117 void FileDescriptorProto::add_public_dependency(::google::protobuf::int32 value ) { 2175 void FileDescriptorProto::add_public_dependency(::google::protobuf::int32 value) {
2118 public_dependency_.Add(value); 2176 public_dependency_.Add(value);
2119 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.publ ic_dependency) 2177 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.publ ic_dependency)
2120 } 2178 }
2121 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& 2179 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
2122 FileDescriptorProto::public_dependency() const { 2180 FileDescriptorProto::public_dependency() const {
2123 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.pub lic_dependency) 2181 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.pub lic_dependency)
2124 return public_dependency_; 2182 return public_dependency_;
2125 } 2183 }
2126 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* 2184 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
2127 FileDescriptorProto::mutable_public_dependency() { 2185 FileDescriptorProto::mutable_public_dependency() {
2128 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorP roto.public_dependency) 2186 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorP roto.public_dependency)
2129 return &public_dependency_; 2187 return &public_dependency_;
2130 } 2188 }
2131 2189
2132 // repeated int32 weak_dependency = 11; 2190 // repeated int32 weak_dependency = 11;
2133 int FileDescriptorProto::weak_dependency_size() const { 2191 int FileDescriptorProto::weak_dependency_size() const {
2134 return weak_dependency_.size(); 2192 return weak_dependency_.size();
2135 } 2193 }
2136 void FileDescriptorProto::clear_weak_dependency() { 2194 void FileDescriptorProto::clear_weak_dependency() {
2137 weak_dependency_.Clear(); 2195 weak_dependency_.Clear();
2138 } 2196 }
2139 ::google::protobuf::int32 FileDescriptorProto::weak_dependency(int index) const { 2197 ::google::protobuf::int32 FileDescriptorProto::weak_dependency(int index) const {
2140 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.weak _dependency) 2198 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.weak _dependency)
2141 return weak_dependency_.Get(index); 2199 return weak_dependency_.Get(index);
2142 } 2200 }
2143 void FileDescriptorProto::set_weak_dependency(int index, ::google::protobuf::in t32 value) { 2201 void FileDescriptorProto::set_weak_dependency(int index, ::google::protobuf::int 32 value) {
2144 weak_dependency_.Set(index, value); 2202 weak_dependency_.Set(index, value);
2145 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.weak _dependency) 2203 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.weak _dependency)
2146 } 2204 }
2147 void FileDescriptorProto::add_weak_dependency(::google::protobuf::int32 value) { 2205 void FileDescriptorProto::add_weak_dependency(::google::protobuf::int32 value) {
2148 weak_dependency_.Add(value); 2206 weak_dependency_.Add(value);
2149 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.weak _dependency) 2207 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.weak _dependency)
2150 } 2208 }
2151 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& 2209 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
2152 FileDescriptorProto::weak_dependency() const { 2210 FileDescriptorProto::weak_dependency() const {
2153 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.wea k_dependency) 2211 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.wea k_dependency)
2154 return weak_dependency_; 2212 return weak_dependency_;
2155 } 2213 }
2156 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* 2214 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
2157 FileDescriptorProto::mutable_weak_dependency() { 2215 FileDescriptorProto::mutable_weak_dependency() {
2158 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorP roto.weak_dependency) 2216 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorP roto.weak_dependency)
2159 return &weak_dependency_; 2217 return &weak_dependency_;
2160 } 2218 }
2161 2219
2162 // repeated .google.protobuf.DescriptorProto message_type = 4; 2220 // repeated .google.protobuf.DescriptorProto message_type = 4;
2163 int FileDescriptorProto::message_type_size() const { 2221 int FileDescriptorProto::message_type_size() const {
2164 return message_type_.size(); 2222 return message_type_.size();
2165 } 2223 }
2166 void FileDescriptorProto::clear_message_type() { 2224 void FileDescriptorProto::clear_message_type() {
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
2274 return &extension_; 2332 return &extension_;
2275 } 2333 }
2276 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorP roto >& 2334 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorP roto >&
2277 FileDescriptorProto::extension() const { 2335 FileDescriptorProto::extension() const {
2278 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.ext ension) 2336 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.ext ension)
2279 return extension_; 2337 return extension_;
2280 } 2338 }
2281 2339
2282 // optional .google.protobuf.FileOptions options = 8; 2340 // optional .google.protobuf.FileOptions options = 8;
2283 bool FileDescriptorProto::has_options() const { 2341 bool FileDescriptorProto::has_options() const {
2284 return (_has_bits_[0] & 0x00000200u) != 0; 2342 return (_has_bits_[0] & 0x00000008u) != 0;
2285 } 2343 }
2286 void FileDescriptorProto::set_has_options() { 2344 void FileDescriptorProto::set_has_options() {
2287 _has_bits_[0] |= 0x00000200u; 2345 _has_bits_[0] |= 0x00000008u;
2288 } 2346 }
2289 void FileDescriptorProto::clear_has_options() { 2347 void FileDescriptorProto::clear_has_options() {
2290 _has_bits_[0] &= ~0x00000200u; 2348 _has_bits_[0] &= ~0x00000008u;
2291 } 2349 }
2292 void FileDescriptorProto::clear_options() { 2350 void FileDescriptorProto::clear_options() {
2293 if (options_ != NULL) options_->::google::protobuf::FileOptions::Clear(); 2351 if (options_ != NULL) options_->::google::protobuf::FileOptions::Clear();
2294 clear_has_options(); 2352 clear_has_options();
2295 } 2353 }
2296 const ::google::protobuf::FileOptions& FileDescriptorProto::options() const { 2354 const ::google::protobuf::FileOptions& FileDescriptorProto::options() const {
2297 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.opti ons) 2355 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.opti ons)
2298 return options_ != NULL ? *options_ : *default_instance_->options_; 2356 return options_ != NULL ? *options_
2357 : *::google::protobuf::FileOptions::internal_default_in stance();
2299 } 2358 }
2300 ::google::protobuf::FileOptions* FileDescriptorProto::mutable_options() { 2359 ::google::protobuf::FileOptions* FileDescriptorProto::mutable_options() {
2301 set_has_options(); 2360 set_has_options();
2302 if (options_ == NULL) { 2361 if (options_ == NULL) {
2303 options_ = new ::google::protobuf::FileOptions; 2362 options_ = new ::google::protobuf::FileOptions;
2304 } 2363 }
2305 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto. options) 2364 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto. options)
2306 return options_; 2365 return options_;
2307 } 2366 }
2308 ::google::protobuf::FileOptions* FileDescriptorProto::release_options() { 2367 ::google::protobuf::FileOptions* FileDescriptorProto::release_options() {
2309 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto. options) 2368 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto. options)
2310 clear_has_options(); 2369 clear_has_options();
2311 ::google::protobuf::FileOptions* temp = options_; 2370 ::google::protobuf::FileOptions* temp = options_;
2312 options_ = NULL; 2371 options_ = NULL;
2313 return temp; 2372 return temp;
2314 } 2373 }
2315 void FileDescriptorProto::set_allocated_options(::google::protobuf::FileOptions* options) { 2374 void FileDescriptorProto::set_allocated_options(::google::protobuf::FileOptions* options) {
2316 delete options_; 2375 delete options_;
2317 options_ = options; 2376 options_ = options;
2318 if (options) { 2377 if (options) {
2319 set_has_options(); 2378 set_has_options();
2320 } else { 2379 } else {
2321 clear_has_options(); 2380 clear_has_options();
2322 } 2381 }
2323 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptor Proto.options) 2382 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptor Proto.options)
2324 } 2383 }
2325 2384
2326 // optional .google.protobuf.SourceCodeInfo source_code_info = 9; 2385 // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
2327 bool FileDescriptorProto::has_source_code_info() const { 2386 bool FileDescriptorProto::has_source_code_info() const {
2328 return (_has_bits_[0] & 0x00000400u) != 0; 2387 return (_has_bits_[0] & 0x00000010u) != 0;
2329 } 2388 }
2330 void FileDescriptorProto::set_has_source_code_info() { 2389 void FileDescriptorProto::set_has_source_code_info() {
2331 _has_bits_[0] |= 0x00000400u; 2390 _has_bits_[0] |= 0x00000010u;
2332 } 2391 }
2333 void FileDescriptorProto::clear_has_source_code_info() { 2392 void FileDescriptorProto::clear_has_source_code_info() {
2334 _has_bits_[0] &= ~0x00000400u; 2393 _has_bits_[0] &= ~0x00000010u;
2335 } 2394 }
2336 void FileDescriptorProto::clear_source_code_info() { 2395 void FileDescriptorProto::clear_source_code_info() {
2337 if (source_code_info_ != NULL) source_code_info_->::google::protobuf::SourceCo deInfo::Clear(); 2396 if (source_code_info_ != NULL) source_code_info_->::google::protobuf::SourceCo deInfo::Clear();
2338 clear_has_source_code_info(); 2397 clear_has_source_code_info();
2339 } 2398 }
2340 const ::google::protobuf::SourceCodeInfo& FileDescriptorProto::source_code_info( ) const { 2399 const ::google::protobuf::SourceCodeInfo& FileDescriptorProto::source_code_info( ) const {
2341 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.sour ce_code_info) 2400 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.sour ce_code_info)
2342 return source_code_info_ != NULL ? *source_code_info_ : *default_instance_->so urce_code_info_; 2401 return source_code_info_ != NULL ? *source_code_info_
2402 : *::google::protobuf::SourceCodeInfo::internal_default _instance();
2343 } 2403 }
2344 ::google::protobuf::SourceCodeInfo* FileDescriptorProto::mutable_source_code_inf o() { 2404 ::google::protobuf::SourceCodeInfo* FileDescriptorProto::mutable_source_code_inf o() {
2345 set_has_source_code_info(); 2405 set_has_source_code_info();
2346 if (source_code_info_ == NULL) { 2406 if (source_code_info_ == NULL) {
2347 source_code_info_ = new ::google::protobuf::SourceCodeInfo; 2407 source_code_info_ = new ::google::protobuf::SourceCodeInfo;
2348 } 2408 }
2349 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto. source_code_info) 2409 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto. source_code_info)
2350 return source_code_info_; 2410 return source_code_info_;
2351 } 2411 }
2352 ::google::protobuf::SourceCodeInfo* FileDescriptorProto::release_source_code_inf o() { 2412 ::google::protobuf::SourceCodeInfo* FileDescriptorProto::release_source_code_inf o() {
2353 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto. source_code_info) 2413 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto. source_code_info)
2354 clear_has_source_code_info(); 2414 clear_has_source_code_info();
2355 ::google::protobuf::SourceCodeInfo* temp = source_code_info_; 2415 ::google::protobuf::SourceCodeInfo* temp = source_code_info_;
2356 source_code_info_ = NULL; 2416 source_code_info_ = NULL;
2357 return temp; 2417 return temp;
2358 } 2418 }
2359 void FileDescriptorProto::set_allocated_source_code_info(::google::protobuf::Sou rceCodeInfo* source_code_info) { 2419 void FileDescriptorProto::set_allocated_source_code_info(::google::protobuf::Sou rceCodeInfo* source_code_info) {
2360 delete source_code_info_; 2420 delete source_code_info_;
2361 source_code_info_ = source_code_info; 2421 source_code_info_ = source_code_info;
2362 if (source_code_info) { 2422 if (source_code_info) {
2363 set_has_source_code_info(); 2423 set_has_source_code_info();
2364 } else { 2424 } else {
2365 clear_has_source_code_info(); 2425 clear_has_source_code_info();
2366 } 2426 }
2367 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptor Proto.source_code_info) 2427 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptor Proto.source_code_info)
2368 } 2428 }
2369 2429
2370 // optional string syntax = 12; 2430 // optional string syntax = 12;
2371 bool FileDescriptorProto::has_syntax() const { 2431 bool FileDescriptorProto::has_syntax() const {
2372 return (_has_bits_[0] & 0x00000800u) != 0; 2432 return (_has_bits_[0] & 0x00000004u) != 0;
2373 } 2433 }
2374 void FileDescriptorProto::set_has_syntax() { 2434 void FileDescriptorProto::set_has_syntax() {
2375 _has_bits_[0] |= 0x00000800u; 2435 _has_bits_[0] |= 0x00000004u;
2376 } 2436 }
2377 void FileDescriptorProto::clear_has_syntax() { 2437 void FileDescriptorProto::clear_has_syntax() {
2378 _has_bits_[0] &= ~0x00000800u; 2438 _has_bits_[0] &= ~0x00000004u;
2379 } 2439 }
2380 void FileDescriptorProto::clear_syntax() { 2440 void FileDescriptorProto::clear_syntax() {
2381 syntax_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 2441 syntax_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
2382 clear_has_syntax(); 2442 clear_has_syntax();
2383 } 2443 }
2384 const ::std::string& FileDescriptorProto::syntax() const { 2444 const ::std::string& FileDescriptorProto::syntax() const {
2385 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.synt ax) 2445 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.synt ax)
2386 return syntax_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 2446 return syntax_.GetNoArena();
2387 } 2447 }
2388 void FileDescriptorProto::set_syntax(const ::std::string& value) { 2448 void FileDescriptorProto::set_syntax(const ::std::string& value) {
2389 set_has_syntax(); 2449 set_has_syntax();
2390 syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), value); 2450 syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), value);
2391 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.synt ax) 2451 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.synt ax)
2392 } 2452 }
2393 void FileDescriptorProto::set_syntax(const char* value) { 2453 #if LANG_CXX11
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) {
2394 set_has_syntax(); 2462 set_has_syntax();
2395 syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), ::std::string(value)); 2463 syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), ::std::string(value));
2396 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto .syntax) 2464 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto .syntax)
2397 } 2465 }
2398 void FileDescriptorProto::set_syntax(const char* value, size_t size) { 2466 void FileDescriptorProto::set_syntax(const char* value, size_t size) {
2399 set_has_syntax(); 2467 set_has_syntax();
2400 syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), 2468 syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ),
2401 ::std::string(reinterpret_cast<const char*>(value), size)); 2469 ::std::string(reinterpret_cast<const char*>(value), size));
2402 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorPr oto.syntax) 2470 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorPr oto.syntax)
2403 } 2471 }
2404 ::std::string* FileDescriptorProto::mutable_syntax() { 2472 ::std::string* FileDescriptorProto::mutable_syntax() {
2405 set_has_syntax(); 2473 set_has_syntax();
2406 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto. syntax) 2474 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto. syntax)
2407 return syntax_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited()); 2475 return syntax_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited());
2408 } 2476 }
2409 ::std::string* FileDescriptorProto::release_syntax() { 2477 ::std::string* FileDescriptorProto::release_syntax() {
2410 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto. syntax) 2478 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto. syntax)
2411 clear_has_syntax(); 2479 clear_has_syntax();
2412 return syntax_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited()); 2480 return syntax_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited());
2413 } 2481 }
2414 void FileDescriptorProto::set_allocated_syntax(::std::string* syntax) { 2482 void FileDescriptorProto::set_allocated_syntax(::std::string* syntax) {
2415 if (syntax != NULL) { 2483 if (syntax != NULL) {
2416 set_has_syntax(); 2484 set_has_syntax();
2417 } else { 2485 } else {
2418 clear_has_syntax(); 2486 clear_has_syntax();
2419 } 2487 }
2420 syntax_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), syntax); 2488 syntax_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), syntax);
2421 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptor Proto.syntax) 2489 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptor Proto.syntax)
2422 } 2490 }
2423 2491
2424 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 2492 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
2425 2493
2426 // =================================================================== 2494 // ===================================================================
2427 2495
2428 #if !defined(_MSC_VER) || _MSC_VER >= 1900 2496 #if !defined(_MSC_VER) || _MSC_VER >= 1900
2429 const int DescriptorProto_ExtensionRange::kStartFieldNumber; 2497 const int DescriptorProto_ExtensionRange::kStartFieldNumber;
2430 const int DescriptorProto_ExtensionRange::kEndFieldNumber; 2498 const int DescriptorProto_ExtensionRange::kEndFieldNumber;
2431 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 2499 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
2432 2500
2433 DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange() 2501 DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange()
2434 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 2502 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2503 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2504 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
2505 }
2435 SharedCtor(); 2506 SharedCtor();
2436 // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto.Extens ionRange) 2507 // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto.Extens ionRange)
2437 } 2508 }
2438
2439 void DescriptorProto_ExtensionRange::InitAsDefaultInstance() {
2440 }
2441
2442 DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange(const DescriptorP roto_ExtensionRange& from) 2509 DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange(const DescriptorP roto_ExtensionRange& from)
2443 : ::google::protobuf::Message(), 2510 : ::google::protobuf::Message(),
2444 _internal_metadata_(NULL) { 2511 _internal_metadata_(NULL),
2445 SharedCtor(); 2512 _has_bits_(from._has_bits_),
2446 MergeFrom(from); 2513 _cached_size_(0) {
2514 _internal_metadata_.MergeFrom(from._internal_metadata_);
2515 ::memcpy(&start_, &from.start_,
2516 reinterpret_cast<char*>(&end_) -
2517 reinterpret_cast<char*>(&start_) + sizeof(end_));
2447 // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto.E xtensionRange) 2518 // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto.E xtensionRange)
2448 } 2519 }
2449 2520
2450 void DescriptorProto_ExtensionRange::SharedCtor() { 2521 void DescriptorProto_ExtensionRange::SharedCtor() {
2451 _cached_size_ = 0; 2522 _cached_size_ = 0;
2452 start_ = 0; 2523 ::memset(&start_, 0, reinterpret_cast<char*>(&end_) -
2453 end_ = 0; 2524 reinterpret_cast<char*>(&start_) + sizeof(end_));
2454 ::memset(_has_bits_, 0, sizeof(_has_bits_));
2455 } 2525 }
2456 2526
2457 DescriptorProto_ExtensionRange::~DescriptorProto_ExtensionRange() { 2527 DescriptorProto_ExtensionRange::~DescriptorProto_ExtensionRange() {
2458 // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto.Extensi onRange) 2528 // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto.Extensi onRange)
2459 SharedDtor(); 2529 SharedDtor();
2460 } 2530 }
2461 2531
2462 void DescriptorProto_ExtensionRange::SharedDtor() { 2532 void DescriptorProto_ExtensionRange::SharedDtor() {
2463 if (this != default_instance_) {
2464 }
2465 } 2533 }
2466 2534
2467 void DescriptorProto_ExtensionRange::SetCachedSize(int size) const { 2535 void DescriptorProto_ExtensionRange::SetCachedSize(int size) const {
2468 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 2536 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2469 _cached_size_ = size; 2537 _cached_size_ = size;
2470 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 2538 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2471 } 2539 }
2472 const ::google::protobuf::Descriptor* DescriptorProto_ExtensionRange::descriptor () { 2540 const ::google::protobuf::Descriptor* DescriptorProto_ExtensionRange::descriptor () {
2473 protobuf_AssignDescriptorsOnce(); 2541 protobuf_AssignDescriptorsOnce();
2474 return DescriptorProto_ExtensionRange_descriptor_; 2542 return file_level_metadata[2].descriptor;
2475 } 2543 }
2476 2544
2477 const DescriptorProto_ExtensionRange& DescriptorProto_ExtensionRange::default_in stance() { 2545 const DescriptorProto_ExtensionRange& DescriptorProto_ExtensionRange::default_in stance() {
2478 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 2546 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
2479 return *default_instance_; 2547 return *internal_default_instance();
2480 } 2548 }
2481 2549
2482 DescriptorProto_ExtensionRange* DescriptorProto_ExtensionRange::default_instance _ = NULL;
2483
2484 DescriptorProto_ExtensionRange* DescriptorProto_ExtensionRange::New(::google::pr otobuf::Arena* arena) const { 2550 DescriptorProto_ExtensionRange* DescriptorProto_ExtensionRange::New(::google::pr otobuf::Arena* arena) const {
2485 DescriptorProto_ExtensionRange* n = new DescriptorProto_ExtensionRange; 2551 DescriptorProto_ExtensionRange* n = new DescriptorProto_ExtensionRange;
2486 if (arena != NULL) { 2552 if (arena != NULL) {
2487 arena->Own(n); 2553 arena->Own(n);
2488 } 2554 }
2489 return n; 2555 return n;
2490 } 2556 }
2491 2557
2492 void DescriptorProto_ExtensionRange::Clear() { 2558 void DescriptorProto_ExtensionRange::Clear() {
2493 // @@protoc_insertion_point(message_clear_start:google.protobuf.DescriptorProto. ExtensionRange) 2559 // @@protoc_insertion_point(message_clear_start:google.protobuf.DescriptorProto. ExtensionRange)
2494 #if defined(__clang__) 2560 if (_has_bits_[0 / 32] & 3u) {
2495 #define ZR_HELPER_(f) \ 2561 ::memset(&start_, 0, reinterpret_cast<char*>(&end_) -
2496 _Pragma("clang diagnostic push") \ 2562 reinterpret_cast<char*>(&start_) + sizeof(end_));
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();
2518 } 2563 }
2564 _has_bits_.Clear();
2565 _internal_metadata_.Clear();
2519 } 2566 }
2520 2567
2521 bool DescriptorProto_ExtensionRange::MergePartialFromCodedStream( 2568 bool DescriptorProto_ExtensionRange::MergePartialFromCodedStream(
2522 ::google::protobuf::io::CodedInputStream* input) { 2569 ::google::protobuf::io::CodedInputStream* input) {
2523 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 2570 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2524 ::google::protobuf::uint32 tag; 2571 ::google::protobuf::uint32 tag;
2525 // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto.Extens ionRange) 2572 // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto.Extens ionRange)
2526 for (;;) { 2573 for (;;) {
2527 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127); 2574 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u);
2528 tag = p.first; 2575 tag = p.first;
2529 if (!p.second) goto handle_unusual; 2576 if (!p.second) goto handle_unusual;
2530 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 2577 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
2531 // optional int32 start = 1; 2578 // optional int32 start = 1;
2532 case 1: { 2579 case 1: {
2533 if (tag == 8) { 2580 if (tag == 8u) {
2581 set_has_start();
2534 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 2582 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2535 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>( 2583 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
2536 input, &start_))); 2584 input, &start_)));
2537 set_has_start();
2538 } else { 2585 } else {
2539 goto handle_unusual; 2586 goto handle_unusual;
2540 } 2587 }
2541 if (input->ExpectTag(16)) goto parse_end;
2542 break; 2588 break;
2543 } 2589 }
2544 2590
2545 // optional int32 end = 2; 2591 // optional int32 end = 2;
2546 case 2: { 2592 case 2: {
2547 if (tag == 16) { 2593 if (tag == 16u) {
2548 parse_end: 2594 set_has_end();
2549 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 2595 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2550 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>( 2596 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
2551 input, &end_))); 2597 input, &end_)));
2552 set_has_end();
2553 } else { 2598 } else {
2554 goto handle_unusual; 2599 goto handle_unusual;
2555 } 2600 }
2556 if (input->ExpectAtEnd()) goto success;
2557 break; 2601 break;
2558 } 2602 }
2559 2603
2560 default: { 2604 default: {
2561 handle_unusual: 2605 handle_unusual:
2562 if (tag == 0 || 2606 if (tag == 0 ||
2563 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 2607 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2564 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 2608 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2565 goto success; 2609 goto success;
2566 } 2610 }
(...skipping 25 matching lines...) Expand all
2592 ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end(), out put); 2636 ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end(), out put);
2593 } 2637 }
2594 2638
2595 if (_internal_metadata_.have_unknown_fields()) { 2639 if (_internal_metadata_.have_unknown_fields()) {
2596 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 2640 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2597 unknown_fields(), output); 2641 unknown_fields(), output);
2598 } 2642 }
2599 // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto.Exte nsionRange) 2643 // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto.Exte nsionRange)
2600 } 2644 }
2601 2645
2602 ::google::protobuf::uint8* DescriptorProto_ExtensionRange::SerializeWithCachedSi zesToArray( 2646 ::google::protobuf::uint8* DescriptorProto_ExtensionRange::InternalSerializeWith CachedSizesToArray(
2603 ::google::protobuf::uint8* target) const { 2647 bool deterministic, ::google::protobuf::uint8* target) const {
2648 (void)deterministic; // Unused
2604 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Descripto rProto.ExtensionRange) 2649 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Descripto rProto.ExtensionRange)
2605 // optional int32 start = 1; 2650 // optional int32 start = 1;
2606 if (has_start()) { 2651 if (has_start()) {
2607 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->start(), target); 2652 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->start(), target);
2608 } 2653 }
2609 2654
2610 // optional int32 end = 2; 2655 // optional int32 end = 2;
2611 if (has_end()) { 2656 if (has_end()) {
2612 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->end(), target); 2657 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->end(), target);
2613 } 2658 }
2614 2659
2615 if (_internal_metadata_.have_unknown_fields()) { 2660 if (_internal_metadata_.have_unknown_fields()) {
2616 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 2661 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
2617 unknown_fields(), target); 2662 unknown_fields(), target);
2618 } 2663 }
2619 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorP roto.ExtensionRange) 2664 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorP roto.ExtensionRange)
2620 return target; 2665 return target;
2621 } 2666 }
2622 2667
2623 int DescriptorProto_ExtensionRange::ByteSize() const { 2668 size_t DescriptorProto_ExtensionRange::ByteSizeLong() const {
2624 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DescriptorPr oto.ExtensionRange) 2669 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DescriptorPr oto.ExtensionRange)
2625 int total_size = 0; 2670 size_t total_size = 0;
2626 2671
2672 if (_internal_metadata_.have_unknown_fields()) {
2673 total_size +=
2674 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2675 unknown_fields());
2676 }
2627 if (_has_bits_[0 / 32] & 3u) { 2677 if (_has_bits_[0 / 32] & 3u) {
2628 // optional int32 start = 1; 2678 // optional int32 start = 1;
2629 if (has_start()) { 2679 if (has_start()) {
2630 total_size += 1 + 2680 total_size += 1 +
2631 ::google::protobuf::internal::WireFormatLite::Int32Size( 2681 ::google::protobuf::internal::WireFormatLite::Int32Size(
2632 this->start()); 2682 this->start());
2633 } 2683 }
2634 2684
2635 // optional int32 end = 2; 2685 // optional int32 end = 2;
2636 if (has_end()) { 2686 if (has_end()) {
2637 total_size += 1 + 2687 total_size += 1 +
2638 ::google::protobuf::internal::WireFormatLite::Int32Size( 2688 ::google::protobuf::internal::WireFormatLite::Int32Size(
2639 this->end()); 2689 this->end());
2640 } 2690 }
2641 2691
2642 } 2692 }
2643 if (_internal_metadata_.have_unknown_fields()) { 2693 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2644 total_size +=
2645 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2646 unknown_fields());
2647 }
2648 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 2694 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2649 _cached_size_ = total_size; 2695 _cached_size_ = cached_size;
2650 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 2696 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2651 return total_size; 2697 return total_size;
2652 } 2698 }
2653 2699
2654 void DescriptorProto_ExtensionRange::MergeFrom(const ::google::protobuf::Message & from) { 2700 void DescriptorProto_ExtensionRange::MergeFrom(const ::google::protobuf::Message & from) {
2655 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Descrip torProto.ExtensionRange) 2701 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Descrip torProto.ExtensionRange)
2656 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 2702 GOOGLE_DCHECK_NE(&from, this);
2657 const DescriptorProto_ExtensionRange* source = 2703 const DescriptorProto_ExtensionRange* source =
2658 ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto _ExtensionRange>( 2704 ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto _ExtensionRange>(
2659 &from); 2705 &from);
2660 if (source == NULL) { 2706 if (source == NULL) {
2661 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.D escriptorProto.ExtensionRange) 2707 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.D escriptorProto.ExtensionRange)
2662 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 2708 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2663 } else { 2709 } else {
2664 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.DescriptorProto.ExtensionRange) 2710 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.DescriptorProto.ExtensionRange)
2665 MergeFrom(*source); 2711 MergeFrom(*source);
2666 } 2712 }
2667 } 2713 }
2668 2714
2669 void DescriptorProto_ExtensionRange::MergeFrom(const DescriptorProto_ExtensionRa nge& from) { 2715 void DescriptorProto_ExtensionRange::MergeFrom(const DescriptorProto_ExtensionRa nge& from) {
2670 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Desc riptorProto.ExtensionRange) 2716 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Desc riptorProto.ExtensionRange)
2671 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 2717 GOOGLE_DCHECK_NE(&from, this);
2672 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { 2718 _internal_metadata_.MergeFrom(from._internal_metadata_);
2719 if (from._has_bits_[0 / 32] & 3u) {
2673 if (from.has_start()) { 2720 if (from.has_start()) {
2674 set_start(from.start()); 2721 set_start(from.start());
2675 } 2722 }
2676 if (from.has_end()) { 2723 if (from.has_end()) {
2677 set_end(from.end()); 2724 set_end(from.end());
2678 } 2725 }
2679 } 2726 }
2680 if (from._internal_metadata_.have_unknown_fields()) {
2681 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
2682 }
2683 } 2727 }
2684 2728
2685 void DescriptorProto_ExtensionRange::CopyFrom(const ::google::protobuf::Message& from) { 2729 void DescriptorProto_ExtensionRange::CopyFrom(const ::google::protobuf::Message& from) {
2686 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Descript orProto.ExtensionRange) 2730 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Descript orProto.ExtensionRange)
2687 if (&from == this) return; 2731 if (&from == this) return;
2688 Clear(); 2732 Clear();
2689 MergeFrom(from); 2733 MergeFrom(from);
2690 } 2734 }
2691 2735
2692 void DescriptorProto_ExtensionRange::CopyFrom(const DescriptorProto_ExtensionRan ge& from) { 2736 void DescriptorProto_ExtensionRange::CopyFrom(const DescriptorProto_ExtensionRan ge& from) {
2693 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Descr iptorProto.ExtensionRange) 2737 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Descr iptorProto.ExtensionRange)
2694 if (&from == this) return; 2738 if (&from == this) return;
2695 Clear(); 2739 Clear();
2696 MergeFrom(from); 2740 MergeFrom(from);
2697 } 2741 }
2698 2742
2699 bool DescriptorProto_ExtensionRange::IsInitialized() const { 2743 bool DescriptorProto_ExtensionRange::IsInitialized() const {
2700
2701 return true; 2744 return true;
2702 } 2745 }
2703 2746
2704 void DescriptorProto_ExtensionRange::Swap(DescriptorProto_ExtensionRange* other) { 2747 void DescriptorProto_ExtensionRange::Swap(DescriptorProto_ExtensionRange* other) {
2705 if (other == this) return; 2748 if (other == this) return;
2706 InternalSwap(other); 2749 InternalSwap(other);
2707 } 2750 }
2708 void DescriptorProto_ExtensionRange::InternalSwap(DescriptorProto_ExtensionRange * other) { 2751 void DescriptorProto_ExtensionRange::InternalSwap(DescriptorProto_ExtensionRange * other) {
2709 std::swap(start_, other->start_); 2752 std::swap(start_, other->start_);
2710 std::swap(end_, other->end_); 2753 std::swap(end_, other->end_);
2711 std::swap(_has_bits_[0], other->_has_bits_[0]); 2754 std::swap(_has_bits_[0], other->_has_bits_[0]);
2712 _internal_metadata_.Swap(&other->_internal_metadata_); 2755 _internal_metadata_.Swap(&other->_internal_metadata_);
2713 std::swap(_cached_size_, other->_cached_size_); 2756 std::swap(_cached_size_, other->_cached_size_);
2714 } 2757 }
2715 2758
2716 ::google::protobuf::Metadata DescriptorProto_ExtensionRange::GetMetadata() const { 2759 ::google::protobuf::Metadata DescriptorProto_ExtensionRange::GetMetadata() const {
2717 protobuf_AssignDescriptorsOnce(); 2760 protobuf_AssignDescriptorsOnce();
2718 ::google::protobuf::Metadata metadata; 2761 return file_level_metadata[2];
2719 metadata.descriptor = DescriptorProto_ExtensionRange_descriptor_;
2720 metadata.reflection = DescriptorProto_ExtensionRange_reflection_;
2721 return metadata;
2722 } 2762 }
2723 2763
2764 #if PROTOBUF_INLINE_NOT_IN_HEADERS
2765 // DescriptorProto_ExtensionRange
2724 2766
2725 // ------------------------------------------------------------------- 2767 // optional int32 start = 1;
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 // ===================================================================
2726 2818
2727 #if !defined(_MSC_VER) || _MSC_VER >= 1900 2819 #if !defined(_MSC_VER) || _MSC_VER >= 1900
2728 const int DescriptorProto_ReservedRange::kStartFieldNumber; 2820 const int DescriptorProto_ReservedRange::kStartFieldNumber;
2729 const int DescriptorProto_ReservedRange::kEndFieldNumber; 2821 const int DescriptorProto_ReservedRange::kEndFieldNumber;
2730 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 2822 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
2731 2823
2732 DescriptorProto_ReservedRange::DescriptorProto_ReservedRange() 2824 DescriptorProto_ReservedRange::DescriptorProto_ReservedRange()
2733 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 2825 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2826 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2827 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
2828 }
2734 SharedCtor(); 2829 SharedCtor();
2735 // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto.Reserv edRange) 2830 // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto.Reserv edRange)
2736 } 2831 }
2737
2738 void DescriptorProto_ReservedRange::InitAsDefaultInstance() {
2739 }
2740
2741 DescriptorProto_ReservedRange::DescriptorProto_ReservedRange(const DescriptorPro to_ReservedRange& from) 2832 DescriptorProto_ReservedRange::DescriptorProto_ReservedRange(const DescriptorPro to_ReservedRange& from)
2742 : ::google::protobuf::Message(), 2833 : ::google::protobuf::Message(),
2743 _internal_metadata_(NULL) { 2834 _internal_metadata_(NULL),
2744 SharedCtor(); 2835 _has_bits_(from._has_bits_),
2745 MergeFrom(from); 2836 _cached_size_(0) {
2837 _internal_metadata_.MergeFrom(from._internal_metadata_);
2838 ::memcpy(&start_, &from.start_,
2839 reinterpret_cast<char*>(&end_) -
2840 reinterpret_cast<char*>(&start_) + sizeof(end_));
2746 // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto.R eservedRange) 2841 // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto.R eservedRange)
2747 } 2842 }
2748 2843
2749 void DescriptorProto_ReservedRange::SharedCtor() { 2844 void DescriptorProto_ReservedRange::SharedCtor() {
2750 _cached_size_ = 0; 2845 _cached_size_ = 0;
2751 start_ = 0; 2846 ::memset(&start_, 0, reinterpret_cast<char*>(&end_) -
2752 end_ = 0; 2847 reinterpret_cast<char*>(&start_) + sizeof(end_));
2753 ::memset(_has_bits_, 0, sizeof(_has_bits_));
2754 } 2848 }
2755 2849
2756 DescriptorProto_ReservedRange::~DescriptorProto_ReservedRange() { 2850 DescriptorProto_ReservedRange::~DescriptorProto_ReservedRange() {
2757 // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto.Reserve dRange) 2851 // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto.Reserve dRange)
2758 SharedDtor(); 2852 SharedDtor();
2759 } 2853 }
2760 2854
2761 void DescriptorProto_ReservedRange::SharedDtor() { 2855 void DescriptorProto_ReservedRange::SharedDtor() {
2762 if (this != default_instance_) {
2763 }
2764 } 2856 }
2765 2857
2766 void DescriptorProto_ReservedRange::SetCachedSize(int size) const { 2858 void DescriptorProto_ReservedRange::SetCachedSize(int size) const {
2767 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 2859 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2768 _cached_size_ = size; 2860 _cached_size_ = size;
2769 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 2861 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2770 } 2862 }
2771 const ::google::protobuf::Descriptor* DescriptorProto_ReservedRange::descriptor( ) { 2863 const ::google::protobuf::Descriptor* DescriptorProto_ReservedRange::descriptor( ) {
2772 protobuf_AssignDescriptorsOnce(); 2864 protobuf_AssignDescriptorsOnce();
2773 return DescriptorProto_ReservedRange_descriptor_; 2865 return file_level_metadata[3].descriptor;
2774 } 2866 }
2775 2867
2776 const DescriptorProto_ReservedRange& DescriptorProto_ReservedRange::default_inst ance() { 2868 const DescriptorProto_ReservedRange& DescriptorProto_ReservedRange::default_inst ance() {
2777 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 2869 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
2778 return *default_instance_; 2870 return *internal_default_instance();
2779 } 2871 }
2780 2872
2781 DescriptorProto_ReservedRange* DescriptorProto_ReservedRange::default_instance_ = NULL;
2782
2783 DescriptorProto_ReservedRange* DescriptorProto_ReservedRange::New(::google::prot obuf::Arena* arena) const { 2873 DescriptorProto_ReservedRange* DescriptorProto_ReservedRange::New(::google::prot obuf::Arena* arena) const {
2784 DescriptorProto_ReservedRange* n = new DescriptorProto_ReservedRange; 2874 DescriptorProto_ReservedRange* n = new DescriptorProto_ReservedRange;
2785 if (arena != NULL) { 2875 if (arena != NULL) {
2786 arena->Own(n); 2876 arena->Own(n);
2787 } 2877 }
2788 return n; 2878 return n;
2789 } 2879 }
2790 2880
2791 void DescriptorProto_ReservedRange::Clear() { 2881 void DescriptorProto_ReservedRange::Clear() {
2792 // @@protoc_insertion_point(message_clear_start:google.protobuf.DescriptorProto. ReservedRange) 2882 // @@protoc_insertion_point(message_clear_start:google.protobuf.DescriptorProto. ReservedRange)
2793 #if defined(__clang__) 2883 if (_has_bits_[0 / 32] & 3u) {
2794 #define ZR_HELPER_(f) \ 2884 ::memset(&start_, 0, reinterpret_cast<char*>(&end_) -
2795 _Pragma("clang diagnostic push") \ 2885 reinterpret_cast<char*>(&start_) + sizeof(end_));
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();
2817 } 2886 }
2887 _has_bits_.Clear();
2888 _internal_metadata_.Clear();
2818 } 2889 }
2819 2890
2820 bool DescriptorProto_ReservedRange::MergePartialFromCodedStream( 2891 bool DescriptorProto_ReservedRange::MergePartialFromCodedStream(
2821 ::google::protobuf::io::CodedInputStream* input) { 2892 ::google::protobuf::io::CodedInputStream* input) {
2822 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 2893 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2823 ::google::protobuf::uint32 tag; 2894 ::google::protobuf::uint32 tag;
2824 // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto.Reserv edRange) 2895 // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto.Reserv edRange)
2825 for (;;) { 2896 for (;;) {
2826 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127); 2897 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u);
2827 tag = p.first; 2898 tag = p.first;
2828 if (!p.second) goto handle_unusual; 2899 if (!p.second) goto handle_unusual;
2829 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 2900 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
2830 // optional int32 start = 1; 2901 // optional int32 start = 1;
2831 case 1: { 2902 case 1: {
2832 if (tag == 8) { 2903 if (tag == 8u) {
2904 set_has_start();
2833 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 2905 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2834 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>( 2906 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
2835 input, &start_))); 2907 input, &start_)));
2836 set_has_start();
2837 } else { 2908 } else {
2838 goto handle_unusual; 2909 goto handle_unusual;
2839 } 2910 }
2840 if (input->ExpectTag(16)) goto parse_end;
2841 break; 2911 break;
2842 } 2912 }
2843 2913
2844 // optional int32 end = 2; 2914 // optional int32 end = 2;
2845 case 2: { 2915 case 2: {
2846 if (tag == 16) { 2916 if (tag == 16u) {
2847 parse_end: 2917 set_has_end();
2848 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 2918 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2849 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>( 2919 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
2850 input, &end_))); 2920 input, &end_)));
2851 set_has_end();
2852 } else { 2921 } else {
2853 goto handle_unusual; 2922 goto handle_unusual;
2854 } 2923 }
2855 if (input->ExpectAtEnd()) goto success;
2856 break; 2924 break;
2857 } 2925 }
2858 2926
2859 default: { 2927 default: {
2860 handle_unusual: 2928 handle_unusual:
2861 if (tag == 0 || 2929 if (tag == 0 ||
2862 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 2930 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2863 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 2931 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2864 goto success; 2932 goto success;
2865 } 2933 }
(...skipping 25 matching lines...) Expand all
2891 ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end(), out put); 2959 ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end(), out put);
2892 } 2960 }
2893 2961
2894 if (_internal_metadata_.have_unknown_fields()) { 2962 if (_internal_metadata_.have_unknown_fields()) {
2895 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 2963 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2896 unknown_fields(), output); 2964 unknown_fields(), output);
2897 } 2965 }
2898 // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto.Rese rvedRange) 2966 // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto.Rese rvedRange)
2899 } 2967 }
2900 2968
2901 ::google::protobuf::uint8* DescriptorProto_ReservedRange::SerializeWithCachedSiz esToArray( 2969 ::google::protobuf::uint8* DescriptorProto_ReservedRange::InternalSerializeWithC achedSizesToArray(
2902 ::google::protobuf::uint8* target) const { 2970 bool deterministic, ::google::protobuf::uint8* target) const {
2971 (void)deterministic; // Unused
2903 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Descripto rProto.ReservedRange) 2972 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Descripto rProto.ReservedRange)
2904 // optional int32 start = 1; 2973 // optional int32 start = 1;
2905 if (has_start()) { 2974 if (has_start()) {
2906 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->start(), target); 2975 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->start(), target);
2907 } 2976 }
2908 2977
2909 // optional int32 end = 2; 2978 // optional int32 end = 2;
2910 if (has_end()) { 2979 if (has_end()) {
2911 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->end(), target); 2980 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->end(), target);
2912 } 2981 }
2913 2982
2914 if (_internal_metadata_.have_unknown_fields()) { 2983 if (_internal_metadata_.have_unknown_fields()) {
2915 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 2984 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
2916 unknown_fields(), target); 2985 unknown_fields(), target);
2917 } 2986 }
2918 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorP roto.ReservedRange) 2987 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorP roto.ReservedRange)
2919 return target; 2988 return target;
2920 } 2989 }
2921 2990
2922 int DescriptorProto_ReservedRange::ByteSize() const { 2991 size_t DescriptorProto_ReservedRange::ByteSizeLong() const {
2923 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DescriptorPr oto.ReservedRange) 2992 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DescriptorPr oto.ReservedRange)
2924 int total_size = 0; 2993 size_t total_size = 0;
2925 2994
2995 if (_internal_metadata_.have_unknown_fields()) {
2996 total_size +=
2997 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2998 unknown_fields());
2999 }
2926 if (_has_bits_[0 / 32] & 3u) { 3000 if (_has_bits_[0 / 32] & 3u) {
2927 // optional int32 start = 1; 3001 // optional int32 start = 1;
2928 if (has_start()) { 3002 if (has_start()) {
2929 total_size += 1 + 3003 total_size += 1 +
2930 ::google::protobuf::internal::WireFormatLite::Int32Size( 3004 ::google::protobuf::internal::WireFormatLite::Int32Size(
2931 this->start()); 3005 this->start());
2932 } 3006 }
2933 3007
2934 // optional int32 end = 2; 3008 // optional int32 end = 2;
2935 if (has_end()) { 3009 if (has_end()) {
2936 total_size += 1 + 3010 total_size += 1 +
2937 ::google::protobuf::internal::WireFormatLite::Int32Size( 3011 ::google::protobuf::internal::WireFormatLite::Int32Size(
2938 this->end()); 3012 this->end());
2939 } 3013 }
2940 3014
2941 } 3015 }
2942 if (_internal_metadata_.have_unknown_fields()) { 3016 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2943 total_size +=
2944 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2945 unknown_fields());
2946 }
2947 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 3017 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2948 _cached_size_ = total_size; 3018 _cached_size_ = cached_size;
2949 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 3019 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2950 return total_size; 3020 return total_size;
2951 } 3021 }
2952 3022
2953 void DescriptorProto_ReservedRange::MergeFrom(const ::google::protobuf::Message& from) { 3023 void DescriptorProto_ReservedRange::MergeFrom(const ::google::protobuf::Message& from) {
2954 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Descrip torProto.ReservedRange) 3024 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Descrip torProto.ReservedRange)
2955 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 3025 GOOGLE_DCHECK_NE(&from, this);
2956 const DescriptorProto_ReservedRange* source = 3026 const DescriptorProto_ReservedRange* source =
2957 ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto _ReservedRange>( 3027 ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto _ReservedRange>(
2958 &from); 3028 &from);
2959 if (source == NULL) { 3029 if (source == NULL) {
2960 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.D escriptorProto.ReservedRange) 3030 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.D escriptorProto.ReservedRange)
2961 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 3031 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2962 } else { 3032 } else {
2963 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.DescriptorProto.ReservedRange) 3033 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.DescriptorProto.ReservedRange)
2964 MergeFrom(*source); 3034 MergeFrom(*source);
2965 } 3035 }
2966 } 3036 }
2967 3037
2968 void DescriptorProto_ReservedRange::MergeFrom(const DescriptorProto_ReservedRang e& from) { 3038 void DescriptorProto_ReservedRange::MergeFrom(const DescriptorProto_ReservedRang e& from) {
2969 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Desc riptorProto.ReservedRange) 3039 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Desc riptorProto.ReservedRange)
2970 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 3040 GOOGLE_DCHECK_NE(&from, this);
2971 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { 3041 _internal_metadata_.MergeFrom(from._internal_metadata_);
3042 if (from._has_bits_[0 / 32] & 3u) {
2972 if (from.has_start()) { 3043 if (from.has_start()) {
2973 set_start(from.start()); 3044 set_start(from.start());
2974 } 3045 }
2975 if (from.has_end()) { 3046 if (from.has_end()) {
2976 set_end(from.end()); 3047 set_end(from.end());
2977 } 3048 }
2978 } 3049 }
2979 if (from._internal_metadata_.have_unknown_fields()) {
2980 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
2981 }
2982 } 3050 }
2983 3051
2984 void DescriptorProto_ReservedRange::CopyFrom(const ::google::protobuf::Message& from) { 3052 void DescriptorProto_ReservedRange::CopyFrom(const ::google::protobuf::Message& from) {
2985 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Descript orProto.ReservedRange) 3053 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Descript orProto.ReservedRange)
2986 if (&from == this) return; 3054 if (&from == this) return;
2987 Clear(); 3055 Clear();
2988 MergeFrom(from); 3056 MergeFrom(from);
2989 } 3057 }
2990 3058
2991 void DescriptorProto_ReservedRange::CopyFrom(const DescriptorProto_ReservedRange & from) { 3059 void DescriptorProto_ReservedRange::CopyFrom(const DescriptorProto_ReservedRange & from) {
2992 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Descr iptorProto.ReservedRange) 3060 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Descr iptorProto.ReservedRange)
2993 if (&from == this) return; 3061 if (&from == this) return;
2994 Clear(); 3062 Clear();
2995 MergeFrom(from); 3063 MergeFrom(from);
2996 } 3064 }
2997 3065
2998 bool DescriptorProto_ReservedRange::IsInitialized() const { 3066 bool DescriptorProto_ReservedRange::IsInitialized() const {
2999
3000 return true; 3067 return true;
3001 } 3068 }
3002 3069
3003 void DescriptorProto_ReservedRange::Swap(DescriptorProto_ReservedRange* other) { 3070 void DescriptorProto_ReservedRange::Swap(DescriptorProto_ReservedRange* other) {
3004 if (other == this) return; 3071 if (other == this) return;
3005 InternalSwap(other); 3072 InternalSwap(other);
3006 } 3073 }
3007 void DescriptorProto_ReservedRange::InternalSwap(DescriptorProto_ReservedRange* other) { 3074 void DescriptorProto_ReservedRange::InternalSwap(DescriptorProto_ReservedRange* other) {
3008 std::swap(start_, other->start_); 3075 std::swap(start_, other->start_);
3009 std::swap(end_, other->end_); 3076 std::swap(end_, other->end_);
3010 std::swap(_has_bits_[0], other->_has_bits_[0]); 3077 std::swap(_has_bits_[0], other->_has_bits_[0]);
3011 _internal_metadata_.Swap(&other->_internal_metadata_); 3078 _internal_metadata_.Swap(&other->_internal_metadata_);
3012 std::swap(_cached_size_, other->_cached_size_); 3079 std::swap(_cached_size_, other->_cached_size_);
3013 } 3080 }
3014 3081
3015 ::google::protobuf::Metadata DescriptorProto_ReservedRange::GetMetadata() const { 3082 ::google::protobuf::Metadata DescriptorProto_ReservedRange::GetMetadata() const {
3016 protobuf_AssignDescriptorsOnce(); 3083 protobuf_AssignDescriptorsOnce();
3017 ::google::protobuf::Metadata metadata; 3084 return file_level_metadata[3];
3018 metadata.descriptor = DescriptorProto_ReservedRange_descriptor_;
3019 metadata.reflection = DescriptorProto_ReservedRange_reflection_;
3020 return metadata;
3021 } 3085 }
3022 3086
3087 #if PROTOBUF_INLINE_NOT_IN_HEADERS
3088 // DescriptorProto_ReservedRange
3023 3089
3024 // ------------------------------------------------------------------- 3090 // optional int32 start = 1;
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 // ===================================================================
3025 3141
3026 #if !defined(_MSC_VER) || _MSC_VER >= 1900 3142 #if !defined(_MSC_VER) || _MSC_VER >= 1900
3027 const int DescriptorProto::kNameFieldNumber; 3143 const int DescriptorProto::kNameFieldNumber;
3028 const int DescriptorProto::kFieldFieldNumber; 3144 const int DescriptorProto::kFieldFieldNumber;
3029 const int DescriptorProto::kExtensionFieldNumber; 3145 const int DescriptorProto::kExtensionFieldNumber;
3030 const int DescriptorProto::kNestedTypeFieldNumber; 3146 const int DescriptorProto::kNestedTypeFieldNumber;
3031 const int DescriptorProto::kEnumTypeFieldNumber; 3147 const int DescriptorProto::kEnumTypeFieldNumber;
3032 const int DescriptorProto::kExtensionRangeFieldNumber; 3148 const int DescriptorProto::kExtensionRangeFieldNumber;
3033 const int DescriptorProto::kOneofDeclFieldNumber; 3149 const int DescriptorProto::kOneofDeclFieldNumber;
3034 const int DescriptorProto::kOptionsFieldNumber; 3150 const int DescriptorProto::kOptionsFieldNumber;
3035 const int DescriptorProto::kReservedRangeFieldNumber; 3151 const int DescriptorProto::kReservedRangeFieldNumber;
3036 const int DescriptorProto::kReservedNameFieldNumber; 3152 const int DescriptorProto::kReservedNameFieldNumber;
3037 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 3153 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
3038 3154
3039 DescriptorProto::DescriptorProto() 3155 DescriptorProto::DescriptorProto()
3040 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 3156 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
3157 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
3158 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
3159 }
3041 SharedCtor(); 3160 SharedCtor();
3042 // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto) 3161 // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto)
3043 } 3162 }
3044
3045 void DescriptorProto::InitAsDefaultInstance() {
3046 options_ = const_cast< ::google::protobuf::MessageOptions*>(&::google::protobu f::MessageOptions::default_instance());
3047 }
3048
3049 DescriptorProto::DescriptorProto(const DescriptorProto& from) 3163 DescriptorProto::DescriptorProto(const DescriptorProto& from)
3050 : ::google::protobuf::Message(), 3164 : ::google::protobuf::Message(),
3051 _internal_metadata_(NULL) { 3165 _internal_metadata_(NULL),
3052 SharedCtor(); 3166 _has_bits_(from._has_bits_),
3053 MergeFrom(from); 3167 _cached_size_(0),
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 }
3054 // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto) 3186 // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto)
3055 } 3187 }
3056 3188
3057 void DescriptorProto::SharedCtor() { 3189 void DescriptorProto::SharedCtor() {
3058 ::google::protobuf::internal::GetEmptyString();
3059 _cached_size_ = 0; 3190 _cached_size_ = 0;
3060 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted()); 3191 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
3061 options_ = NULL; 3192 options_ = NULL;
3062 ::memset(_has_bits_, 0, sizeof(_has_bits_));
3063 } 3193 }
3064 3194
3065 DescriptorProto::~DescriptorProto() { 3195 DescriptorProto::~DescriptorProto() {
3066 // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto) 3196 // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto)
3067 SharedDtor(); 3197 SharedDtor();
3068 } 3198 }
3069 3199
3070 void DescriptorProto::SharedDtor() { 3200 void DescriptorProto::SharedDtor() {
3071 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d()); 3201 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d());
3072 if (this != default_instance_) { 3202 if (this != internal_default_instance()) {
3073 delete options_; 3203 delete options_;
3074 } 3204 }
3075 } 3205 }
3076 3206
3077 void DescriptorProto::SetCachedSize(int size) const { 3207 void DescriptorProto::SetCachedSize(int size) const {
3078 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 3208 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3079 _cached_size_ = size; 3209 _cached_size_ = size;
3080 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 3210 GOOGLE_SAFE_CONCURRENT_WRITES_END();
3081 } 3211 }
3082 const ::google::protobuf::Descriptor* DescriptorProto::descriptor() { 3212 const ::google::protobuf::Descriptor* DescriptorProto::descriptor() {
3083 protobuf_AssignDescriptorsOnce(); 3213 protobuf_AssignDescriptorsOnce();
3084 return DescriptorProto_descriptor_; 3214 return file_level_metadata[4].descriptor;
3085 } 3215 }
3086 3216
3087 const DescriptorProto& DescriptorProto::default_instance() { 3217 const DescriptorProto& DescriptorProto::default_instance() {
3088 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 3218 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
3089 return *default_instance_; 3219 return *internal_default_instance();
3090 } 3220 }
3091 3221
3092 DescriptorProto* DescriptorProto::default_instance_ = NULL;
3093
3094 DescriptorProto* DescriptorProto::New(::google::protobuf::Arena* arena) const { 3222 DescriptorProto* DescriptorProto::New(::google::protobuf::Arena* arena) const {
3095 DescriptorProto* n = new DescriptorProto; 3223 DescriptorProto* n = new DescriptorProto;
3096 if (arena != NULL) { 3224 if (arena != NULL) {
3097 arena->Own(n); 3225 arena->Own(n);
3098 } 3226 }
3099 return n; 3227 return n;
3100 } 3228 }
3101 3229
3102 void DescriptorProto::Clear() { 3230 void DescriptorProto::Clear() {
3103 // @@protoc_insertion_point(message_clear_start:google.protobuf.DescriptorProto) 3231 // @@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 }
3112 field_.Clear(); 3232 field_.Clear();
3113 extension_.Clear(); 3233 extension_.Clear();
3114 nested_type_.Clear(); 3234 nested_type_.Clear();
3115 enum_type_.Clear(); 3235 enum_type_.Clear();
3116 extension_range_.Clear(); 3236 extension_range_.Clear();
3117 oneof_decl_.Clear(); 3237 oneof_decl_.Clear();
3118 reserved_range_.Clear(); 3238 reserved_range_.Clear();
3119 reserved_name_.Clear(); 3239 reserved_name_.Clear();
3120 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 3240 if (_has_bits_[0 / 32] & 3u) {
3121 if (_internal_metadata_.have_unknown_fields()) { 3241 if (has_name()) {
3122 mutable_unknown_fields()->Clear(); 3242 GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited()));
3243 (*name_.UnsafeRawStringPointer())->clear();
3244 }
3245 if (has_options()) {
3246 GOOGLE_DCHECK(options_ != NULL);
3247 options_->::google::protobuf::MessageOptions::Clear();
3248 }
3123 } 3249 }
3250 _has_bits_.Clear();
3251 _internal_metadata_.Clear();
3124 } 3252 }
3125 3253
3126 bool DescriptorProto::MergePartialFromCodedStream( 3254 bool DescriptorProto::MergePartialFromCodedStream(
3127 ::google::protobuf::io::CodedInputStream* input) { 3255 ::google::protobuf::io::CodedInputStream* input) {
3128 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 3256 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
3129 ::google::protobuf::uint32 tag; 3257 ::google::protobuf::uint32 tag;
3130 // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto) 3258 // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto)
3131 for (;;) { 3259 for (;;) {
3132 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127); 3260 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u);
3133 tag = p.first; 3261 tag = p.first;
3134 if (!p.second) goto handle_unusual; 3262 if (!p.second) goto handle_unusual;
3135 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 3263 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
3136 // optional string name = 1; 3264 // optional string name = 1;
3137 case 1: { 3265 case 1: {
3138 if (tag == 10) { 3266 if (tag == 10u) {
3139 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 3267 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3140 input, this->mutable_name())); 3268 input, this->mutable_name()));
3141 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 3269 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3142 this->name().data(), this->name().length(), 3270 this->name().data(), this->name().length(),
3143 ::google::protobuf::internal::WireFormat::PARSE, 3271 ::google::protobuf::internal::WireFormat::PARSE,
3144 "google.protobuf.DescriptorProto.name"); 3272 "google.protobuf.DescriptorProto.name");
3145 } else { 3273 } else {
3146 goto handle_unusual; 3274 goto handle_unusual;
3147 } 3275 }
3148 if (input->ExpectTag(18)) goto parse_field;
3149 break; 3276 break;
3150 } 3277 }
3151 3278
3152 // repeated .google.protobuf.FieldDescriptorProto field = 2; 3279 // repeated .google.protobuf.FieldDescriptorProto field = 2;
3153 case 2: { 3280 case 2: {
3154 if (tag == 18) { 3281 if (tag == 18u) {
3155 parse_field:
3156 DO_(input->IncrementRecursionDepth()); 3282 DO_(input->IncrementRecursionDepth());
3157 parse_loop_field:
3158 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 3283 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
3159 input, add_field())); 3284 input, add_field()));
3160 } else { 3285 } else {
3161 goto handle_unusual; 3286 goto handle_unusual;
3162 } 3287 }
3163 if (input->ExpectTag(18)) goto parse_loop_field;
3164 if (input->ExpectTag(26)) goto parse_loop_nested_type;
3165 input->UnsafeDecrementRecursionDepth(); 3288 input->UnsafeDecrementRecursionDepth();
3166 break; 3289 break;
3167 } 3290 }
3168 3291
3169 // repeated .google.protobuf.DescriptorProto nested_type = 3; 3292 // repeated .google.protobuf.DescriptorProto nested_type = 3;
3170 case 3: { 3293 case 3: {
3171 if (tag == 26) { 3294 if (tag == 26u) {
3172 DO_(input->IncrementRecursionDepth()); 3295 DO_(input->IncrementRecursionDepth());
3173 parse_loop_nested_type:
3174 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 3296 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
3175 input, add_nested_type())); 3297 input, add_nested_type()));
3176 } else { 3298 } else {
3177 goto handle_unusual; 3299 goto handle_unusual;
3178 } 3300 }
3179 if (input->ExpectTag(26)) goto parse_loop_nested_type;
3180 if (input->ExpectTag(34)) goto parse_loop_enum_type;
3181 input->UnsafeDecrementRecursionDepth(); 3301 input->UnsafeDecrementRecursionDepth();
3182 break; 3302 break;
3183 } 3303 }
3184 3304
3185 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; 3305 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
3186 case 4: { 3306 case 4: {
3187 if (tag == 34) { 3307 if (tag == 34u) {
3188 DO_(input->IncrementRecursionDepth()); 3308 DO_(input->IncrementRecursionDepth());
3189 parse_loop_enum_type:
3190 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 3309 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
3191 input, add_enum_type())); 3310 input, add_enum_type()));
3192 } else { 3311 } else {
3193 goto handle_unusual; 3312 goto handle_unusual;
3194 } 3313 }
3195 if (input->ExpectTag(34)) goto parse_loop_enum_type;
3196 if (input->ExpectTag(42)) goto parse_loop_extension_range;
3197 input->UnsafeDecrementRecursionDepth(); 3314 input->UnsafeDecrementRecursionDepth();
3198 break; 3315 break;
3199 } 3316 }
3200 3317
3201 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_rang e = 5; 3318 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_rang e = 5;
3202 case 5: { 3319 case 5: {
3203 if (tag == 42) { 3320 if (tag == 42u) {
3204 DO_(input->IncrementRecursionDepth()); 3321 DO_(input->IncrementRecursionDepth());
3205 parse_loop_extension_range:
3206 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 3322 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
3207 input, add_extension_range())); 3323 input, add_extension_range()));
3208 } else { 3324 } else {
3209 goto handle_unusual; 3325 goto handle_unusual;
3210 } 3326 }
3211 if (input->ExpectTag(42)) goto parse_loop_extension_range;
3212 if (input->ExpectTag(50)) goto parse_loop_extension;
3213 input->UnsafeDecrementRecursionDepth(); 3327 input->UnsafeDecrementRecursionDepth();
3214 break; 3328 break;
3215 } 3329 }
3216 3330
3217 // repeated .google.protobuf.FieldDescriptorProto extension = 6; 3331 // repeated .google.protobuf.FieldDescriptorProto extension = 6;
3218 case 6: { 3332 case 6: {
3219 if (tag == 50) { 3333 if (tag == 50u) {
3220 DO_(input->IncrementRecursionDepth()); 3334 DO_(input->IncrementRecursionDepth());
3221 parse_loop_extension:
3222 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 3335 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
3223 input, add_extension())); 3336 input, add_extension()));
3224 } else { 3337 } else {
3225 goto handle_unusual; 3338 goto handle_unusual;
3226 } 3339 }
3227 if (input->ExpectTag(50)) goto parse_loop_extension;
3228 input->UnsafeDecrementRecursionDepth(); 3340 input->UnsafeDecrementRecursionDepth();
3229 if (input->ExpectTag(58)) goto parse_options;
3230 break; 3341 break;
3231 } 3342 }
3232 3343
3233 // optional .google.protobuf.MessageOptions options = 7; 3344 // optional .google.protobuf.MessageOptions options = 7;
3234 case 7: { 3345 case 7: {
3235 if (tag == 58) { 3346 if (tag == 58u) {
3236 parse_options:
3237 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual ( 3347 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual (
3238 input, mutable_options())); 3348 input, mutable_options()));
3239 } else { 3349 } else {
3240 goto handle_unusual; 3350 goto handle_unusual;
3241 } 3351 }
3242 if (input->ExpectTag(66)) goto parse_oneof_decl;
3243 break; 3352 break;
3244 } 3353 }
3245 3354
3246 // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; 3355 // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
3247 case 8: { 3356 case 8: {
3248 if (tag == 66) { 3357 if (tag == 66u) {
3249 parse_oneof_decl:
3250 DO_(input->IncrementRecursionDepth()); 3358 DO_(input->IncrementRecursionDepth());
3251 parse_loop_oneof_decl:
3252 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 3359 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
3253 input, add_oneof_decl())); 3360 input, add_oneof_decl()));
3254 } else { 3361 } else {
3255 goto handle_unusual; 3362 goto handle_unusual;
3256 } 3363 }
3257 if (input->ExpectTag(66)) goto parse_loop_oneof_decl;
3258 if (input->ExpectTag(74)) goto parse_loop_reserved_range;
3259 input->UnsafeDecrementRecursionDepth(); 3364 input->UnsafeDecrementRecursionDepth();
3260 break; 3365 break;
3261 } 3366 }
3262 3367
3263 // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; 3368 // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
3264 case 9: { 3369 case 9: {
3265 if (tag == 74) { 3370 if (tag == 74u) {
3266 DO_(input->IncrementRecursionDepth()); 3371 DO_(input->IncrementRecursionDepth());
3267 parse_loop_reserved_range:
3268 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 3372 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
3269 input, add_reserved_range())); 3373 input, add_reserved_range()));
3270 } else { 3374 } else {
3271 goto handle_unusual; 3375 goto handle_unusual;
3272 } 3376 }
3273 if (input->ExpectTag(74)) goto parse_loop_reserved_range;
3274 input->UnsafeDecrementRecursionDepth(); 3377 input->UnsafeDecrementRecursionDepth();
3275 if (input->ExpectTag(82)) goto parse_reserved_name;
3276 break; 3378 break;
3277 } 3379 }
3278 3380
3279 // repeated string reserved_name = 10; 3381 // repeated string reserved_name = 10;
3280 case 10: { 3382 case 10: {
3281 if (tag == 82) { 3383 if (tag == 82u) {
3282 parse_reserved_name:
3283 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 3384 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3284 input, this->add_reserved_name())); 3385 input, this->add_reserved_name()));
3285 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 3386 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3286 this->reserved_name(this->reserved_name_size() - 1).data(), 3387 this->reserved_name(this->reserved_name_size() - 1).data(),
3287 this->reserved_name(this->reserved_name_size() - 1).length(), 3388 this->reserved_name(this->reserved_name_size() - 1).length(),
3288 ::google::protobuf::internal::WireFormat::PARSE, 3389 ::google::protobuf::internal::WireFormat::PARSE,
3289 "google.protobuf.DescriptorProto.reserved_name"); 3390 "google.protobuf.DescriptorProto.reserved_name");
3290 } else { 3391 } else {
3291 goto handle_unusual; 3392 goto handle_unusual;
3292 } 3393 }
3293 if (input->ExpectTag(82)) goto parse_reserved_name;
3294 if (input->ExpectAtEnd()) goto success;
3295 break; 3394 break;
3296 } 3395 }
3297 3396
3298 default: { 3397 default: {
3299 handle_unusual: 3398 handle_unusual:
3300 if (tag == 0 || 3399 if (tag == 0 ||
3301 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 3400 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3302 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 3401 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
3303 goto success; 3402 goto success;
3304 } 3403 }
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
3388 10, this->reserved_name(i), output); 3487 10, this->reserved_name(i), output);
3389 } 3488 }
3390 3489
3391 if (_internal_metadata_.have_unknown_fields()) { 3490 if (_internal_metadata_.have_unknown_fields()) {
3392 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 3491 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3393 unknown_fields(), output); 3492 unknown_fields(), output);
3394 } 3493 }
3395 // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto) 3494 // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto)
3396 } 3495 }
3397 3496
3398 ::google::protobuf::uint8* DescriptorProto::SerializeWithCachedSizesToArray( 3497 ::google::protobuf::uint8* DescriptorProto::InternalSerializeWithCachedSizesToAr ray(
3399 ::google::protobuf::uint8* target) const { 3498 bool deterministic, ::google::protobuf::uint8* target) const {
3499 (void)deterministic; // Unused
3400 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Descripto rProto) 3500 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Descripto rProto)
3401 // optional string name = 1; 3501 // optional string name = 1;
3402 if (has_name()) { 3502 if (has_name()) {
3403 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 3503 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3404 this->name().data(), this->name().length(), 3504 this->name().data(), this->name().length(),
3405 ::google::protobuf::internal::WireFormat::SERIALIZE, 3505 ::google::protobuf::internal::WireFormat::SERIALIZE,
3406 "google.protobuf.DescriptorProto.name"); 3506 "google.protobuf.DescriptorProto.name");
3407 target = 3507 target =
3408 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 3508 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3409 1, this->name(), target); 3509 1, this->name(), target);
3410 } 3510 }
3411 3511
3412 // repeated .google.protobuf.FieldDescriptorProto field = 2; 3512 // repeated .google.protobuf.FieldDescriptorProto field = 2;
3413 for (unsigned int i = 0, n = this->field_size(); i < n; i++) { 3513 for (unsigned int i = 0, n = this->field_size(); i < n; i++) {
3414 target = ::google::protobuf::internal::WireFormatLite:: 3514 target = ::google::protobuf::internal::WireFormatLite::
3415 WriteMessageNoVirtualToArray( 3515 InternalWriteMessageNoVirtualToArray(
3416 2, this->field(i), target); 3516 2, this->field(i), false, target);
3417 } 3517 }
3418 3518
3419 // repeated .google.protobuf.DescriptorProto nested_type = 3; 3519 // repeated .google.protobuf.DescriptorProto nested_type = 3;
3420 for (unsigned int i = 0, n = this->nested_type_size(); i < n; i++) { 3520 for (unsigned int i = 0, n = this->nested_type_size(); i < n; i++) {
3421 target = ::google::protobuf::internal::WireFormatLite:: 3521 target = ::google::protobuf::internal::WireFormatLite::
3422 WriteMessageNoVirtualToArray( 3522 InternalWriteMessageNoVirtualToArray(
3423 3, this->nested_type(i), target); 3523 3, this->nested_type(i), false, target);
3424 } 3524 }
3425 3525
3426 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; 3526 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
3427 for (unsigned int i = 0, n = this->enum_type_size(); i < n; i++) { 3527 for (unsigned int i = 0, n = this->enum_type_size(); i < n; i++) {
3428 target = ::google::protobuf::internal::WireFormatLite:: 3528 target = ::google::protobuf::internal::WireFormatLite::
3429 WriteMessageNoVirtualToArray( 3529 InternalWriteMessageNoVirtualToArray(
3430 4, this->enum_type(i), target); 3530 4, this->enum_type(i), false, target);
3431 } 3531 }
3432 3532
3433 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; 3533 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
3434 for (unsigned int i = 0, n = this->extension_range_size(); i < n; i++) { 3534 for (unsigned int i = 0, n = this->extension_range_size(); i < n; i++) {
3435 target = ::google::protobuf::internal::WireFormatLite:: 3535 target = ::google::protobuf::internal::WireFormatLite::
3436 WriteMessageNoVirtualToArray( 3536 InternalWriteMessageNoVirtualToArray(
3437 5, this->extension_range(i), target); 3537 5, this->extension_range(i), false, target);
3438 } 3538 }
3439 3539
3440 // repeated .google.protobuf.FieldDescriptorProto extension = 6; 3540 // repeated .google.protobuf.FieldDescriptorProto extension = 6;
3441 for (unsigned int i = 0, n = this->extension_size(); i < n; i++) { 3541 for (unsigned int i = 0, n = this->extension_size(); i < n; i++) {
3442 target = ::google::protobuf::internal::WireFormatLite:: 3542 target = ::google::protobuf::internal::WireFormatLite::
3443 WriteMessageNoVirtualToArray( 3543 InternalWriteMessageNoVirtualToArray(
3444 6, this->extension(i), target); 3544 6, this->extension(i), false, target);
3445 } 3545 }
3446 3546
3447 // optional .google.protobuf.MessageOptions options = 7; 3547 // optional .google.protobuf.MessageOptions options = 7;
3448 if (has_options()) { 3548 if (has_options()) {
3449 target = ::google::protobuf::internal::WireFormatLite:: 3549 target = ::google::protobuf::internal::WireFormatLite::
3450 WriteMessageNoVirtualToArray( 3550 InternalWriteMessageNoVirtualToArray(
3451 7, *this->options_, target); 3551 7, *this->options_, false, target);
3452 } 3552 }
3453 3553
3454 // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; 3554 // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
3455 for (unsigned int i = 0, n = this->oneof_decl_size(); i < n; i++) { 3555 for (unsigned int i = 0, n = this->oneof_decl_size(); i < n; i++) {
3456 target = ::google::protobuf::internal::WireFormatLite:: 3556 target = ::google::protobuf::internal::WireFormatLite::
3457 WriteMessageNoVirtualToArray( 3557 InternalWriteMessageNoVirtualToArray(
3458 8, this->oneof_decl(i), target); 3558 8, this->oneof_decl(i), false, target);
3459 } 3559 }
3460 3560
3461 // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; 3561 // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
3462 for (unsigned int i = 0, n = this->reserved_range_size(); i < n; i++) { 3562 for (unsigned int i = 0, n = this->reserved_range_size(); i < n; i++) {
3463 target = ::google::protobuf::internal::WireFormatLite:: 3563 target = ::google::protobuf::internal::WireFormatLite::
3464 WriteMessageNoVirtualToArray( 3564 InternalWriteMessageNoVirtualToArray(
3465 9, this->reserved_range(i), target); 3565 9, this->reserved_range(i), false, target);
3466 } 3566 }
3467 3567
3468 // repeated string reserved_name = 10; 3568 // repeated string reserved_name = 10;
3469 for (int i = 0; i < this->reserved_name_size(); i++) { 3569 for (int i = 0; i < this->reserved_name_size(); i++) {
3470 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 3570 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3471 this->reserved_name(i).data(), this->reserved_name(i).length(), 3571 this->reserved_name(i).data(), this->reserved_name(i).length(),
3472 ::google::protobuf::internal::WireFormat::SERIALIZE, 3572 ::google::protobuf::internal::WireFormat::SERIALIZE,
3473 "google.protobuf.DescriptorProto.reserved_name"); 3573 "google.protobuf.DescriptorProto.reserved_name");
3474 target = ::google::protobuf::internal::WireFormatLite:: 3574 target = ::google::protobuf::internal::WireFormatLite::
3475 WriteStringToArray(10, this->reserved_name(i), target); 3575 WriteStringToArray(10, this->reserved_name(i), target);
3476 } 3576 }
3477 3577
3478 if (_internal_metadata_.have_unknown_fields()) { 3578 if (_internal_metadata_.have_unknown_fields()) {
3479 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 3579 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
3480 unknown_fields(), target); 3580 unknown_fields(), target);
3481 } 3581 }
3482 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorP roto) 3582 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorP roto)
3483 return target; 3583 return target;
3484 } 3584 }
3485 3585
3486 int DescriptorProto::ByteSize() const { 3586 size_t DescriptorProto::ByteSizeLong() const {
3487 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DescriptorPr oto) 3587 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DescriptorPr oto)
3488 int total_size = 0; 3588 size_t total_size = 0;
3489 3589
3490 if (_has_bits_[0 / 32] & 129u) { 3590 if (_internal_metadata_.have_unknown_fields()) {
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) {
3491 // optional string name = 1; 3681 // optional string name = 1;
3492 if (has_name()) { 3682 if (has_name()) {
3493 total_size += 1 + 3683 total_size += 1 +
3494 ::google::protobuf::internal::WireFormatLite::StringSize( 3684 ::google::protobuf::internal::WireFormatLite::StringSize(
3495 this->name()); 3685 this->name());
3496 } 3686 }
3497 3687
3498 // optional .google.protobuf.MessageOptions options = 7; 3688 // optional .google.protobuf.MessageOptions options = 7;
3499 if (has_options()) { 3689 if (has_options()) {
3500 total_size += 1 + 3690 total_size += 1 +
3501 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( 3691 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3502 *this->options_); 3692 *this->options_);
3503 } 3693 }
3504 3694
3505 } 3695 }
3506 // repeated .google.protobuf.FieldDescriptorProto field = 2; 3696 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
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 }
3574 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 3697 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3575 _cached_size_ = total_size; 3698 _cached_size_ = cached_size;
3576 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 3699 GOOGLE_SAFE_CONCURRENT_WRITES_END();
3577 return total_size; 3700 return total_size;
3578 } 3701 }
3579 3702
3580 void DescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { 3703 void DescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
3581 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Descrip torProto) 3704 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Descrip torProto)
3582 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 3705 GOOGLE_DCHECK_NE(&from, this);
3583 const DescriptorProto* source = 3706 const DescriptorProto* source =
3584 ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto >( 3707 ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto >(
3585 &from); 3708 &from);
3586 if (source == NULL) { 3709 if (source == NULL) {
3587 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.D escriptorProto) 3710 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.D escriptorProto)
3588 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 3711 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3589 } else { 3712 } else {
3590 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.DescriptorProto) 3713 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.DescriptorProto)
3591 MergeFrom(*source); 3714 MergeFrom(*source);
3592 } 3715 }
3593 } 3716 }
3594 3717
3595 void DescriptorProto::MergeFrom(const DescriptorProto& from) { 3718 void DescriptorProto::MergeFrom(const DescriptorProto& from) {
3596 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Desc riptorProto) 3719 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Desc riptorProto)
3597 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 3720 GOOGLE_DCHECK_NE(&from, this);
3721 _internal_metadata_.MergeFrom(from._internal_metadata_);
3598 field_.MergeFrom(from.field_); 3722 field_.MergeFrom(from.field_);
3599 extension_.MergeFrom(from.extension_); 3723 extension_.MergeFrom(from.extension_);
3600 nested_type_.MergeFrom(from.nested_type_); 3724 nested_type_.MergeFrom(from.nested_type_);
3601 enum_type_.MergeFrom(from.enum_type_); 3725 enum_type_.MergeFrom(from.enum_type_);
3602 extension_range_.MergeFrom(from.extension_range_); 3726 extension_range_.MergeFrom(from.extension_range_);
3603 oneof_decl_.MergeFrom(from.oneof_decl_); 3727 oneof_decl_.MergeFrom(from.oneof_decl_);
3604 reserved_range_.MergeFrom(from.reserved_range_); 3728 reserved_range_.MergeFrom(from.reserved_range_);
3605 reserved_name_.MergeFrom(from.reserved_name_); 3729 reserved_name_.MergeFrom(from.reserved_name_);
3606 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { 3730 if (from._has_bits_[0 / 32] & 3u) {
3607 if (from.has_name()) { 3731 if (from.has_name()) {
3608 set_has_name(); 3732 set_has_name();
3609 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), from.name_); 3733 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), from.name_);
3610 } 3734 }
3611 if (from.has_options()) { 3735 if (from.has_options()) {
3612 mutable_options()->::google::protobuf::MessageOptions::MergeFrom(from.opti ons()); 3736 mutable_options()->::google::protobuf::MessageOptions::MergeFrom(from.opti ons());
3613 } 3737 }
3614 } 3738 }
3615 if (from._internal_metadata_.have_unknown_fields()) {
3616 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
3617 }
3618 } 3739 }
3619 3740
3620 void DescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { 3741 void DescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
3621 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Descript orProto) 3742 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Descript orProto)
3622 if (&from == this) return; 3743 if (&from == this) return;
3623 Clear(); 3744 Clear();
3624 MergeFrom(from); 3745 MergeFrom(from);
3625 } 3746 }
3626 3747
3627 void DescriptorProto::CopyFrom(const DescriptorProto& from) { 3748 void DescriptorProto::CopyFrom(const DescriptorProto& from) {
3628 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Descr iptorProto) 3749 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Descr iptorProto)
3629 if (&from == this) return; 3750 if (&from == this) return;
3630 Clear(); 3751 Clear();
3631 MergeFrom(from); 3752 MergeFrom(from);
3632 } 3753 }
3633 3754
3634 bool DescriptorProto::IsInitialized() const { 3755 bool DescriptorProto::IsInitialized() const {
3635
3636 if (!::google::protobuf::internal::AllAreInitialized(this->field())) return fa lse; 3756 if (!::google::protobuf::internal::AllAreInitialized(this->field())) return fa lse;
3637 if (!::google::protobuf::internal::AllAreInitialized(this->extension())) retur n false; 3757 if (!::google::protobuf::internal::AllAreInitialized(this->extension())) retur n false;
3638 if (!::google::protobuf::internal::AllAreInitialized(this->nested_type())) ret urn false; 3758 if (!::google::protobuf::internal::AllAreInitialized(this->nested_type())) ret urn false;
3639 if (!::google::protobuf::internal::AllAreInitialized(this->enum_type())) retur n false; 3759 if (!::google::protobuf::internal::AllAreInitialized(this->enum_type())) retur n false;
3760 if (!::google::protobuf::internal::AllAreInitialized(this->oneof_decl())) retu rn false;
3640 if (has_options()) { 3761 if (has_options()) {
3641 if (!this->options_->IsInitialized()) return false; 3762 if (!this->options_->IsInitialized()) return false;
3642 } 3763 }
3643 return true; 3764 return true;
3644 } 3765 }
3645 3766
3646 void DescriptorProto::Swap(DescriptorProto* other) { 3767 void DescriptorProto::Swap(DescriptorProto* other) {
3647 if (other == this) return; 3768 if (other == this) return;
3648 InternalSwap(other); 3769 InternalSwap(other);
3649 } 3770 }
3650 void DescriptorProto::InternalSwap(DescriptorProto* other) { 3771 void DescriptorProto::InternalSwap(DescriptorProto* other) {
3651 name_.Swap(&other->name_);
3652 field_.UnsafeArenaSwap(&other->field_); 3772 field_.UnsafeArenaSwap(&other->field_);
3653 extension_.UnsafeArenaSwap(&other->extension_); 3773 extension_.UnsafeArenaSwap(&other->extension_);
3654 nested_type_.UnsafeArenaSwap(&other->nested_type_); 3774 nested_type_.UnsafeArenaSwap(&other->nested_type_);
3655 enum_type_.UnsafeArenaSwap(&other->enum_type_); 3775 enum_type_.UnsafeArenaSwap(&other->enum_type_);
3656 extension_range_.UnsafeArenaSwap(&other->extension_range_); 3776 extension_range_.UnsafeArenaSwap(&other->extension_range_);
3657 oneof_decl_.UnsafeArenaSwap(&other->oneof_decl_); 3777 oneof_decl_.UnsafeArenaSwap(&other->oneof_decl_);
3658 std::swap(options_, other->options_);
3659 reserved_range_.UnsafeArenaSwap(&other->reserved_range_); 3778 reserved_range_.UnsafeArenaSwap(&other->reserved_range_);
3660 reserved_name_.UnsafeArenaSwap(&other->reserved_name_); 3779 reserved_name_.UnsafeArenaSwap(&other->reserved_name_);
3780 name_.Swap(&other->name_);
3781 std::swap(options_, other->options_);
3661 std::swap(_has_bits_[0], other->_has_bits_[0]); 3782 std::swap(_has_bits_[0], other->_has_bits_[0]);
3662 _internal_metadata_.Swap(&other->_internal_metadata_); 3783 _internal_metadata_.Swap(&other->_internal_metadata_);
3663 std::swap(_cached_size_, other->_cached_size_); 3784 std::swap(_cached_size_, other->_cached_size_);
3664 } 3785 }
3665 3786
3666 ::google::protobuf::Metadata DescriptorProto::GetMetadata() const { 3787 ::google::protobuf::Metadata DescriptorProto::GetMetadata() const {
3667 protobuf_AssignDescriptorsOnce(); 3788 protobuf_AssignDescriptorsOnce();
3668 ::google::protobuf::Metadata metadata; 3789 return file_level_metadata[4];
3669 metadata.descriptor = DescriptorProto_descriptor_;
3670 metadata.reflection = DescriptorProto_reflection_;
3671 return metadata;
3672 } 3790 }
3673 3791
3674 #if PROTOBUF_INLINE_NOT_IN_HEADERS 3792 #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
3779 // DescriptorProto 3793 // DescriptorProto
3780 3794
3781 // optional string name = 1; 3795 // optional string name = 1;
3782 bool DescriptorProto::has_name() const { 3796 bool DescriptorProto::has_name() const {
3783 return (_has_bits_[0] & 0x00000001u) != 0; 3797 return (_has_bits_[0] & 0x00000001u) != 0;
3784 } 3798 }
3785 void DescriptorProto::set_has_name() { 3799 void DescriptorProto::set_has_name() {
3786 _has_bits_[0] |= 0x00000001u; 3800 _has_bits_[0] |= 0x00000001u;
3787 } 3801 }
3788 void DescriptorProto::clear_has_name() { 3802 void DescriptorProto::clear_has_name() {
3789 _has_bits_[0] &= ~0x00000001u; 3803 _has_bits_[0] &= ~0x00000001u;
3790 } 3804 }
3791 void DescriptorProto::clear_name() { 3805 void DescriptorProto::clear_name() {
3792 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 3806 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
3793 clear_has_name(); 3807 clear_has_name();
3794 } 3808 }
3795 const ::std::string& DescriptorProto::name() const { 3809 const ::std::string& DescriptorProto::name() const {
3796 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.name) 3810 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.name)
3797 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited()); 3811 return name_.GetNoArena();
3798 } 3812 }
3799 void DescriptorProto::set_name(const ::std::string& value) { 3813 void DescriptorProto::set_name(const ::std::string& value) {
3800 set_has_name(); 3814 set_has_name();
3801 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 3815 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
3802 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.name) 3816 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.name)
3803 } 3817 }
3804 void DescriptorProto::set_name(const char* value) { 3818 #if LANG_CXX11
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) {
3805 set_has_name(); 3827 set_has_name();
3806 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 3828 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
3807 // @@protoc_insertion_point(field_set_char:google.protobuf.DescriptorProto.nam e) 3829 // @@protoc_insertion_point(field_set_char:google.protobuf.DescriptorProto.nam e)
3808 } 3830 }
3809 void DescriptorProto::set_name(const char* value, size_t size) { 3831 void DescriptorProto::set_name(const char* value, size_t size) {
3810 set_has_name(); 3832 set_has_name();
3811 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 3833 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3812 ::std::string(reinterpret_cast<const char*>(value), size)); 3834 ::std::string(reinterpret_cast<const char*>(value), size));
3813 // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto. name) 3835 // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto. name)
3814 } 3836 }
3815 ::std::string* DescriptorProto::mutable_name() { 3837 ::std::string* DescriptorProto::mutable_name() {
3816 set_has_name(); 3838 set_has_name();
3817 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.name ) 3839 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.name )
3818 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 3840 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
3819 } 3841 }
3820 ::std::string* DescriptorProto::release_name() { 3842 ::std::string* DescriptorProto::release_name() {
3821 // @@protoc_insertion_point(field_release:google.protobuf.DescriptorProto.name ) 3843 // @@protoc_insertion_point(field_release:google.protobuf.DescriptorProto.name )
3822 clear_has_name(); 3844 clear_has_name();
3823 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 3845 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
3824 } 3846 }
3825 void DescriptorProto::set_allocated_name(::std::string* name) { 3847 void DescriptorProto::set_allocated_name(::std::string* name) {
3826 if (name != NULL) { 3848 if (name != NULL) {
3827 set_has_name(); 3849 set_has_name();
3828 } else { 3850 } else {
3829 clear_has_name(); 3851 clear_has_name();
3830 } 3852 }
3831 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name); 3853 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name);
3832 // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProt o.name) 3854 // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProt o.name)
3833 } 3855 }
3834 3856
3835 // repeated .google.protobuf.FieldDescriptorProto field = 2; 3857 // repeated .google.protobuf.FieldDescriptorProto field = 2;
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
4007 return &oneof_decl_; 4029 return &oneof_decl_;
4008 } 4030 }
4009 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorP roto >& 4031 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorP roto >&
4010 DescriptorProto::oneof_decl() const { 4032 DescriptorProto::oneof_decl() const {
4011 // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.oneof_d ecl) 4033 // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.oneof_d ecl)
4012 return oneof_decl_; 4034 return oneof_decl_;
4013 } 4035 }
4014 4036
4015 // optional .google.protobuf.MessageOptions options = 7; 4037 // optional .google.protobuf.MessageOptions options = 7;
4016 bool DescriptorProto::has_options() const { 4038 bool DescriptorProto::has_options() const {
4017 return (_has_bits_[0] & 0x00000080u) != 0; 4039 return (_has_bits_[0] & 0x00000002u) != 0;
4018 } 4040 }
4019 void DescriptorProto::set_has_options() { 4041 void DescriptorProto::set_has_options() {
4020 _has_bits_[0] |= 0x00000080u; 4042 _has_bits_[0] |= 0x00000002u;
4021 } 4043 }
4022 void DescriptorProto::clear_has_options() { 4044 void DescriptorProto::clear_has_options() {
4023 _has_bits_[0] &= ~0x00000080u; 4045 _has_bits_[0] &= ~0x00000002u;
4024 } 4046 }
4025 void DescriptorProto::clear_options() { 4047 void DescriptorProto::clear_options() {
4026 if (options_ != NULL) options_->::google::protobuf::MessageOptions::Clear(); 4048 if (options_ != NULL) options_->::google::protobuf::MessageOptions::Clear();
4027 clear_has_options(); 4049 clear_has_options();
4028 } 4050 }
4029 const ::google::protobuf::MessageOptions& DescriptorProto::options() const { 4051 const ::google::protobuf::MessageOptions& DescriptorProto::options() const {
4030 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.options) 4052 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.options)
4031 return options_ != NULL ? *options_ : *default_instance_->options_; 4053 return options_ != NULL ? *options_
4054 : *::google::protobuf::MessageOptions::internal_default _instance();
4032 } 4055 }
4033 ::google::protobuf::MessageOptions* DescriptorProto::mutable_options() { 4056 ::google::protobuf::MessageOptions* DescriptorProto::mutable_options() {
4034 set_has_options(); 4057 set_has_options();
4035 if (options_ == NULL) { 4058 if (options_ == NULL) {
4036 options_ = new ::google::protobuf::MessageOptions; 4059 options_ = new ::google::protobuf::MessageOptions;
4037 } 4060 }
4038 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.opti ons) 4061 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.opti ons)
4039 return options_; 4062 return options_;
4040 } 4063 }
4041 ::google::protobuf::MessageOptions* DescriptorProto::release_options() { 4064 ::google::protobuf::MessageOptions* DescriptorProto::release_options() {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
4086 return reserved_range_; 4109 return reserved_range_;
4087 } 4110 }
4088 4111
4089 // repeated string reserved_name = 10; 4112 // repeated string reserved_name = 10;
4090 int DescriptorProto::reserved_name_size() const { 4113 int DescriptorProto::reserved_name_size() const {
4091 return reserved_name_.size(); 4114 return reserved_name_.size();
4092 } 4115 }
4093 void DescriptorProto::clear_reserved_name() { 4116 void DescriptorProto::clear_reserved_name() {
4094 reserved_name_.Clear(); 4117 reserved_name_.Clear();
4095 } 4118 }
4096 const ::std::string& DescriptorProto::reserved_name(int index) const { 4119 const ::std::string& DescriptorProto::reserved_name(int index) const {
4097 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.reserved _name) 4120 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.reserved _name)
4098 return reserved_name_.Get(index); 4121 return reserved_name_.Get(index);
4099 } 4122 }
4100 ::std::string* DescriptorProto::mutable_reserved_name(int index) { 4123 ::std::string* DescriptorProto::mutable_reserved_name(int index) {
4101 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.rese rved_name) 4124 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.rese rved_name)
4102 return reserved_name_.Mutable(index); 4125 return reserved_name_.Mutable(index);
4103 } 4126 }
4104 void DescriptorProto::set_reserved_name(int index, const ::std::string& value) { 4127 void DescriptorProto::set_reserved_name(int index, const ::std::string& value) {
4105 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.reserved _name) 4128 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.reserved _name)
4106 reserved_name_.Mutable(index)->assign(value); 4129 reserved_name_.Mutable(index)->assign(value);
4107 } 4130 }
4108 void DescriptorProto::set_reserved_name(int index, const char* value) { 4131 void DescriptorProto::set_reserved_name(int index, const char* value) {
4109 reserved_name_.Mutable(index)->assign(value); 4132 reserved_name_.Mutable(index)->assign(value);
4110 // @@protoc_insertion_point(field_set_char:google.protobuf.DescriptorProto.res erved_name) 4133 // @@protoc_insertion_point(field_set_char:google.protobuf.DescriptorProto.res erved_name)
4111 } 4134 }
4112 void DescriptorProto::set_reserved_name(int index, const char* value, size_t si ze) { 4135 void DescriptorProto::set_reserved_name(int index, const char* value, size_t siz e) {
4113 reserved_name_.Mutable(index)->assign( 4136 reserved_name_.Mutable(index)->assign(
4114 reinterpret_cast<const char*>(value), size); 4137 reinterpret_cast<const char*>(value), size);
4115 // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto. reserved_name) 4138 // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto. reserved_name)
4116 } 4139 }
4117 ::std::string* DescriptorProto::add_reserved_name() { 4140 ::std::string* DescriptorProto::add_reserved_name() {
4118 // @@protoc_insertion_point(field_add_mutable:google.protobuf.DescriptorProto. reserved_name) 4141 // @@protoc_insertion_point(field_add_mutable:google.protobuf.DescriptorProto. reserved_name)
4119 return reserved_name_.Add(); 4142 return reserved_name_.Add();
4120 } 4143 }
4121 void DescriptorProto::add_reserved_name(const ::std::string& value) { 4144 void DescriptorProto::add_reserved_name(const ::std::string& value) {
4122 reserved_name_.Add()->assign(value); 4145 reserved_name_.Add()->assign(value);
4123 // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved _name) 4146 // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved _name)
4124 } 4147 }
4125 void DescriptorProto::add_reserved_name(const char* value) { 4148 void DescriptorProto::add_reserved_name(const char* value) {
4126 reserved_name_.Add()->assign(value); 4149 reserved_name_.Add()->assign(value);
4127 // @@protoc_insertion_point(field_add_char:google.protobuf.DescriptorProto.res erved_name) 4150 // @@protoc_insertion_point(field_add_char:google.protobuf.DescriptorProto.res erved_name)
4128 } 4151 }
4129 void DescriptorProto::add_reserved_name(const char* value, size_t size) { 4152 void DescriptorProto::add_reserved_name(const char* value, size_t size) {
4130 reserved_name_.Add()->assign(reinterpret_cast<const char*>(value), size); 4153 reserved_name_.Add()->assign(reinterpret_cast<const char*>(value), size);
4131 // @@protoc_insertion_point(field_add_pointer:google.protobuf.DescriptorProto. reserved_name) 4154 // @@protoc_insertion_point(field_add_pointer:google.protobuf.DescriptorProto. reserved_name)
4132 } 4155 }
4133 const ::google::protobuf::RepeatedPtrField< ::std::string>& 4156 const ::google::protobuf::RepeatedPtrField< ::std::string>&
4134 DescriptorProto::reserved_name() const { 4157 DescriptorProto::reserved_name() const {
4135 // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.reserve d_name) 4158 // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.reserve d_name)
4136 return reserved_name_; 4159 return reserved_name_;
4137 } 4160 }
4138 ::google::protobuf::RepeatedPtrField< ::std::string>* 4161 ::google::protobuf::RepeatedPtrField< ::std::string>*
4139 DescriptorProto::mutable_reserved_name() { 4162 DescriptorProto::mutable_reserved_name() {
4140 // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto .reserved_name) 4163 // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto .reserved_name)
4141 return &reserved_name_; 4164 return &reserved_name_;
4142 } 4165 }
4143 4166
4144 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 4167 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
4145 4168
4146 // =================================================================== 4169 // ===================================================================
4147 4170
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
4224 #if !defined(_MSC_VER) || _MSC_VER >= 1900 4171 #if !defined(_MSC_VER) || _MSC_VER >= 1900
4225 const int FieldDescriptorProto::kNameFieldNumber; 4172 const int FieldDescriptorProto::kNameFieldNumber;
4226 const int FieldDescriptorProto::kNumberFieldNumber; 4173 const int FieldDescriptorProto::kNumberFieldNumber;
4227 const int FieldDescriptorProto::kLabelFieldNumber; 4174 const int FieldDescriptorProto::kLabelFieldNumber;
4228 const int FieldDescriptorProto::kTypeFieldNumber; 4175 const int FieldDescriptorProto::kTypeFieldNumber;
4229 const int FieldDescriptorProto::kTypeNameFieldNumber; 4176 const int FieldDescriptorProto::kTypeNameFieldNumber;
4230 const int FieldDescriptorProto::kExtendeeFieldNumber; 4177 const int FieldDescriptorProto::kExtendeeFieldNumber;
4231 const int FieldDescriptorProto::kDefaultValueFieldNumber; 4178 const int FieldDescriptorProto::kDefaultValueFieldNumber;
4232 const int FieldDescriptorProto::kOneofIndexFieldNumber; 4179 const int FieldDescriptorProto::kOneofIndexFieldNumber;
4233 const int FieldDescriptorProto::kJsonNameFieldNumber; 4180 const int FieldDescriptorProto::kJsonNameFieldNumber;
4234 const int FieldDescriptorProto::kOptionsFieldNumber; 4181 const int FieldDescriptorProto::kOptionsFieldNumber;
4235 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 4182 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
4236 4183
4237 FieldDescriptorProto::FieldDescriptorProto() 4184 FieldDescriptorProto::FieldDescriptorProto()
4238 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 4185 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4186 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4187 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
4188 }
4239 SharedCtor(); 4189 SharedCtor();
4240 // @@protoc_insertion_point(constructor:google.protobuf.FieldDescriptorProto) 4190 // @@protoc_insertion_point(constructor:google.protobuf.FieldDescriptorProto)
4241 } 4191 }
4242
4243 void FieldDescriptorProto::InitAsDefaultInstance() {
4244 options_ = const_cast< ::google::protobuf::FieldOptions*>(&::google::protobuf: :FieldOptions::default_instance());
4245 }
4246
4247 FieldDescriptorProto::FieldDescriptorProto(const FieldDescriptorProto& from) 4192 FieldDescriptorProto::FieldDescriptorProto(const FieldDescriptorProto& from)
4248 : ::google::protobuf::Message(), 4193 : ::google::protobuf::Message(),
4249 _internal_metadata_(NULL) { 4194 _internal_metadata_(NULL),
4250 SharedCtor(); 4195 _has_bits_(from._has_bits_),
4251 MergeFrom(from); 4196 _cached_size_(0) {
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_));
4252 // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldDescriptorPr oto) 4226 // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldDescriptorPr oto)
4253 } 4227 }
4254 4228
4255 void FieldDescriptorProto::SharedCtor() { 4229 void FieldDescriptorProto::SharedCtor() {
4256 ::google::protobuf::internal::GetEmptyString();
4257 _cached_size_ = 0; 4230 _cached_size_ = 0;
4258 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted()); 4231 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
4259 number_ = 0;
4260 label_ = 1;
4261 type_ = 1;
4262 type_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 4232 type_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
4263 extendee_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlread yInited()); 4233 extendee_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlread yInited());
4264 default_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringA lreadyInited()); 4234 default_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringA lreadyInited());
4265 oneof_index_ = 0;
4266 json_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 4235 json_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
4267 options_ = NULL; 4236 ::memset(&options_, 0, reinterpret_cast<char*>(&oneof_index_) -
4268 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 4237 reinterpret_cast<char*>(&options_) + sizeof(oneof_index_));
4238 label_ = 1;
4239 type_ = 1;
4269 } 4240 }
4270 4241
4271 FieldDescriptorProto::~FieldDescriptorProto() { 4242 FieldDescriptorProto::~FieldDescriptorProto() {
4272 // @@protoc_insertion_point(destructor:google.protobuf.FieldDescriptorProto) 4243 // @@protoc_insertion_point(destructor:google.protobuf.FieldDescriptorProto)
4273 SharedDtor(); 4244 SharedDtor();
4274 } 4245 }
4275 4246
4276 void FieldDescriptorProto::SharedDtor() { 4247 void FieldDescriptorProto::SharedDtor() {
4277 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d()); 4248 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d());
4278 type_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 4249 type_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
4279 extendee_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI nited()); 4250 extendee_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI nited());
4280 default_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited()); 4251 default_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited());
4281 json_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 4252 json_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
4282 if (this != default_instance_) { 4253 if (this != internal_default_instance()) {
4283 delete options_; 4254 delete options_;
4284 } 4255 }
4285 } 4256 }
4286 4257
4287 void FieldDescriptorProto::SetCachedSize(int size) const { 4258 void FieldDescriptorProto::SetCachedSize(int size) const {
4288 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 4259 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4289 _cached_size_ = size; 4260 _cached_size_ = size;
4290 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 4261 GOOGLE_SAFE_CONCURRENT_WRITES_END();
4291 } 4262 }
4292 const ::google::protobuf::Descriptor* FieldDescriptorProto::descriptor() { 4263 const ::google::protobuf::Descriptor* FieldDescriptorProto::descriptor() {
4293 protobuf_AssignDescriptorsOnce(); 4264 protobuf_AssignDescriptorsOnce();
4294 return FieldDescriptorProto_descriptor_; 4265 return file_level_metadata[5].descriptor;
4295 } 4266 }
4296 4267
4297 const FieldDescriptorProto& FieldDescriptorProto::default_instance() { 4268 const FieldDescriptorProto& FieldDescriptorProto::default_instance() {
4298 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 4269 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
4299 return *default_instance_; 4270 return *internal_default_instance();
4300 } 4271 }
4301 4272
4302 FieldDescriptorProto* FieldDescriptorProto::default_instance_ = NULL;
4303
4304 FieldDescriptorProto* FieldDescriptorProto::New(::google::protobuf::Arena* arena ) const { 4273 FieldDescriptorProto* FieldDescriptorProto::New(::google::protobuf::Arena* arena ) const {
4305 FieldDescriptorProto* n = new FieldDescriptorProto; 4274 FieldDescriptorProto* n = new FieldDescriptorProto;
4306 if (arena != NULL) { 4275 if (arena != NULL) {
4307 arena->Own(n); 4276 arena->Own(n);
4308 } 4277 }
4309 return n; 4278 return n;
4310 } 4279 }
4311 4280
4312 void FieldDescriptorProto::Clear() { 4281 void FieldDescriptorProto::Clear() {
4313 // @@protoc_insertion_point(message_clear_start:google.protobuf.FieldDescriptorP roto) 4282 // @@protoc_insertion_point(message_clear_start:google.protobuf.FieldDescriptorP roto)
4314 if (_has_bits_[0 / 32] & 255u) { 4283 if (_has_bits_[0 / 32] & 63u) {
4315 if (has_name()) { 4284 if (has_name()) {
4316 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited()); 4285 GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited()));
4286 (*name_.UnsafeRawStringPointer())->clear();
4317 } 4287 }
4318 number_ = 0; 4288 if (has_type_name()) {
4289 GOOGLE_DCHECK(!type_name_.IsDefault(&::google::protobuf::internal::GetEmpt yStringAlreadyInited()));
4290 (*type_name_.UnsafeRawStringPointer())->clear();
4291 }
4292 if (has_extendee()) {
4293 GOOGLE_DCHECK(!extendee_.IsDefault(&::google::protobuf::internal::GetEmpty StringAlreadyInited()));
4294 (*extendee_.UnsafeRawStringPointer())->clear();
4295 }
4296 if (has_default_value()) {
4297 GOOGLE_DCHECK(!default_value_.IsDefault(&::google::protobuf::internal::Get EmptyStringAlreadyInited()));
4298 (*default_value_.UnsafeRawStringPointer())->clear();
4299 }
4300 if (has_json_name()) {
4301 GOOGLE_DCHECK(!json_name_.IsDefault(&::google::protobuf::internal::GetEmpt yStringAlreadyInited()));
4302 (*json_name_.UnsafeRawStringPointer())->clear();
4303 }
4304 if (has_options()) {
4305 GOOGLE_DCHECK(options_ != NULL);
4306 options_->::google::protobuf::FieldOptions::Clear();
4307 }
4308 }
4309 if (_has_bits_[0 / 32] & 192u) {
4310 ::memset(&number_, 0, reinterpret_cast<char*>(&oneof_index_) -
4311 reinterpret_cast<char*>(&number_) + sizeof(oneof_index_));
4312 }
4313 if (_has_bits_[8 / 32] & 768u) {
4319 label_ = 1; 4314 label_ = 1;
4320 type_ = 1; 4315 type_ = 1;
4321 if (has_type_name()) {
4322 type_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited());
4323 }
4324 if (has_extendee()) {
4325 extendee_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited());
4326 }
4327 if (has_default_value()) {
4328 default_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited());
4329 }
4330 oneof_index_ = 0;
4331 } 4316 }
4332 if (_has_bits_[8 / 32] & 768u) { 4317 _has_bits_.Clear();
4333 if (has_json_name()) { 4318 _internal_metadata_.Clear();
4334 json_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited());
4335 }
4336 if (has_options()) {
4337 if (options_ != NULL) options_->::google::protobuf::FieldOptions::Clear();
4338 }
4339 }
4340 ::memset(_has_bits_, 0, sizeof(_has_bits_));
4341 if (_internal_metadata_.have_unknown_fields()) {
4342 mutable_unknown_fields()->Clear();
4343 }
4344 } 4319 }
4345 4320
4346 bool FieldDescriptorProto::MergePartialFromCodedStream( 4321 bool FieldDescriptorProto::MergePartialFromCodedStream(
4347 ::google::protobuf::io::CodedInputStream* input) { 4322 ::google::protobuf::io::CodedInputStream* input) {
4348 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 4323 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
4349 ::google::protobuf::uint32 tag; 4324 ::google::protobuf::uint32 tag;
4350 // @@protoc_insertion_point(parse_start:google.protobuf.FieldDescriptorProto) 4325 // @@protoc_insertion_point(parse_start:google.protobuf.FieldDescriptorProto)
4351 for (;;) { 4326 for (;;) {
4352 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127); 4327 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u);
4353 tag = p.first; 4328 tag = p.first;
4354 if (!p.second) goto handle_unusual; 4329 if (!p.second) goto handle_unusual;
4355 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 4330 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
4356 // optional string name = 1; 4331 // optional string name = 1;
4357 case 1: { 4332 case 1: {
4358 if (tag == 10) { 4333 if (tag == 10u) {
4359 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 4334 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4360 input, this->mutable_name())); 4335 input, this->mutable_name()));
4361 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 4336 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4362 this->name().data(), this->name().length(), 4337 this->name().data(), this->name().length(),
4363 ::google::protobuf::internal::WireFormat::PARSE, 4338 ::google::protobuf::internal::WireFormat::PARSE,
4364 "google.protobuf.FieldDescriptorProto.name"); 4339 "google.protobuf.FieldDescriptorProto.name");
4365 } else { 4340 } else {
4366 goto handle_unusual; 4341 goto handle_unusual;
4367 } 4342 }
4368 if (input->ExpectTag(18)) goto parse_extendee;
4369 break; 4343 break;
4370 } 4344 }
4371 4345
4372 // optional string extendee = 2; 4346 // optional string extendee = 2;
4373 case 2: { 4347 case 2: {
4374 if (tag == 18) { 4348 if (tag == 18u) {
4375 parse_extendee:
4376 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 4349 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4377 input, this->mutable_extendee())); 4350 input, this->mutable_extendee()));
4378 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 4351 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4379 this->extendee().data(), this->extendee().length(), 4352 this->extendee().data(), this->extendee().length(),
4380 ::google::protobuf::internal::WireFormat::PARSE, 4353 ::google::protobuf::internal::WireFormat::PARSE,
4381 "google.protobuf.FieldDescriptorProto.extendee"); 4354 "google.protobuf.FieldDescriptorProto.extendee");
4382 } else { 4355 } else {
4383 goto handle_unusual; 4356 goto handle_unusual;
4384 } 4357 }
4385 if (input->ExpectTag(24)) goto parse_number;
4386 break; 4358 break;
4387 } 4359 }
4388 4360
4389 // optional int32 number = 3; 4361 // optional int32 number = 3;
4390 case 3: { 4362 case 3: {
4391 if (tag == 24) { 4363 if (tag == 24u) {
4392 parse_number: 4364 set_has_number();
4393 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 4365 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4394 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>( 4366 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
4395 input, &number_))); 4367 input, &number_)));
4396 set_has_number();
4397 } else { 4368 } else {
4398 goto handle_unusual; 4369 goto handle_unusual;
4399 } 4370 }
4400 if (input->ExpectTag(32)) goto parse_label;
4401 break; 4371 break;
4402 } 4372 }
4403 4373
4404 // optional .google.protobuf.FieldDescriptorProto.Label label = 4; 4374 // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
4405 case 4: { 4375 case 4: {
4406 if (tag == 32) { 4376 if (tag == 32u) {
4407 parse_label:
4408 int value; 4377 int value;
4409 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 4378 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4410 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM> ( 4379 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM> (
4411 input, &value))); 4380 input, &value)));
4412 if (::google::protobuf::FieldDescriptorProto_Label_IsValid(value)) { 4381 if (::google::protobuf::FieldDescriptorProto_Label_IsValid(value)) {
4413 set_label(static_cast< ::google::protobuf::FieldDescriptorProto_Labe l >(value)); 4382 set_label(static_cast< ::google::protobuf::FieldDescriptorProto_Labe l >(value));
4414 } else { 4383 } else {
4415 mutable_unknown_fields()->AddVarint(4, value); 4384 mutable_unknown_fields()->AddVarint(4, value);
4416 } 4385 }
4417 } else { 4386 } else {
4418 goto handle_unusual; 4387 goto handle_unusual;
4419 } 4388 }
4420 if (input->ExpectTag(40)) goto parse_type;
4421 break; 4389 break;
4422 } 4390 }
4423 4391
4424 // optional .google.protobuf.FieldDescriptorProto.Type type = 5; 4392 // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
4425 case 5: { 4393 case 5: {
4426 if (tag == 40) { 4394 if (tag == 40u) {
4427 parse_type:
4428 int value; 4395 int value;
4429 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 4396 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4430 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM> ( 4397 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM> (
4431 input, &value))); 4398 input, &value)));
4432 if (::google::protobuf::FieldDescriptorProto_Type_IsValid(value)) { 4399 if (::google::protobuf::FieldDescriptorProto_Type_IsValid(value)) {
4433 set_type(static_cast< ::google::protobuf::FieldDescriptorProto_Type >(value)); 4400 set_type(static_cast< ::google::protobuf::FieldDescriptorProto_Type >(value));
4434 } else { 4401 } else {
4435 mutable_unknown_fields()->AddVarint(5, value); 4402 mutable_unknown_fields()->AddVarint(5, value);
4436 } 4403 }
4437 } else { 4404 } else {
4438 goto handle_unusual; 4405 goto handle_unusual;
4439 } 4406 }
4440 if (input->ExpectTag(50)) goto parse_type_name;
4441 break; 4407 break;
4442 } 4408 }
4443 4409
4444 // optional string type_name = 6; 4410 // optional string type_name = 6;
4445 case 6: { 4411 case 6: {
4446 if (tag == 50) { 4412 if (tag == 50u) {
4447 parse_type_name:
4448 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 4413 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4449 input, this->mutable_type_name())); 4414 input, this->mutable_type_name()));
4450 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 4415 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4451 this->type_name().data(), this->type_name().length(), 4416 this->type_name().data(), this->type_name().length(),
4452 ::google::protobuf::internal::WireFormat::PARSE, 4417 ::google::protobuf::internal::WireFormat::PARSE,
4453 "google.protobuf.FieldDescriptorProto.type_name"); 4418 "google.protobuf.FieldDescriptorProto.type_name");
4454 } else { 4419 } else {
4455 goto handle_unusual; 4420 goto handle_unusual;
4456 } 4421 }
4457 if (input->ExpectTag(58)) goto parse_default_value;
4458 break; 4422 break;
4459 } 4423 }
4460 4424
4461 // optional string default_value = 7; 4425 // optional string default_value = 7;
4462 case 7: { 4426 case 7: {
4463 if (tag == 58) { 4427 if (tag == 58u) {
4464 parse_default_value:
4465 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 4428 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4466 input, this->mutable_default_value())); 4429 input, this->mutable_default_value()));
4467 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 4430 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4468 this->default_value().data(), this->default_value().length(), 4431 this->default_value().data(), this->default_value().length(),
4469 ::google::protobuf::internal::WireFormat::PARSE, 4432 ::google::protobuf::internal::WireFormat::PARSE,
4470 "google.protobuf.FieldDescriptorProto.default_value"); 4433 "google.protobuf.FieldDescriptorProto.default_value");
4471 } else { 4434 } else {
4472 goto handle_unusual; 4435 goto handle_unusual;
4473 } 4436 }
4474 if (input->ExpectTag(66)) goto parse_options;
4475 break; 4437 break;
4476 } 4438 }
4477 4439
4478 // optional .google.protobuf.FieldOptions options = 8; 4440 // optional .google.protobuf.FieldOptions options = 8;
4479 case 8: { 4441 case 8: {
4480 if (tag == 66) { 4442 if (tag == 66u) {
4481 parse_options:
4482 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual ( 4443 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual (
4483 input, mutable_options())); 4444 input, mutable_options()));
4484 } else { 4445 } else {
4485 goto handle_unusual; 4446 goto handle_unusual;
4486 } 4447 }
4487 if (input->ExpectTag(72)) goto parse_oneof_index;
4488 break; 4448 break;
4489 } 4449 }
4490 4450
4491 // optional int32 oneof_index = 9; 4451 // optional int32 oneof_index = 9;
4492 case 9: { 4452 case 9: {
4493 if (tag == 72) { 4453 if (tag == 72u) {
4494 parse_oneof_index: 4454 set_has_oneof_index();
4495 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 4455 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4496 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>( 4456 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
4497 input, &oneof_index_))); 4457 input, &oneof_index_)));
4498 set_has_oneof_index();
4499 } else { 4458 } else {
4500 goto handle_unusual; 4459 goto handle_unusual;
4501 } 4460 }
4502 if (input->ExpectTag(82)) goto parse_json_name;
4503 break; 4461 break;
4504 } 4462 }
4505 4463
4506 // optional string json_name = 10; 4464 // optional string json_name = 10;
4507 case 10: { 4465 case 10: {
4508 if (tag == 82) { 4466 if (tag == 82u) {
4509 parse_json_name:
4510 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 4467 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4511 input, this->mutable_json_name())); 4468 input, this->mutable_json_name()));
4512 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 4469 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4513 this->json_name().data(), this->json_name().length(), 4470 this->json_name().data(), this->json_name().length(),
4514 ::google::protobuf::internal::WireFormat::PARSE, 4471 ::google::protobuf::internal::WireFormat::PARSE,
4515 "google.protobuf.FieldDescriptorProto.json_name"); 4472 "google.protobuf.FieldDescriptorProto.json_name");
4516 } else { 4473 } else {
4517 goto handle_unusual; 4474 goto handle_unusual;
4518 } 4475 }
4519 if (input->ExpectAtEnd()) goto success;
4520 break; 4476 break;
4521 } 4477 }
4522 4478
4523 default: { 4479 default: {
4524 handle_unusual: 4480 handle_unusual:
4525 if (tag == 0 || 4481 if (tag == 0 ||
4526 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 4482 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4527 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 4483 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
4528 goto success; 4484 goto success;
4529 } 4485 }
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
4623 10, this->json_name(), output); 4579 10, this->json_name(), output);
4624 } 4580 }
4625 4581
4626 if (_internal_metadata_.have_unknown_fields()) { 4582 if (_internal_metadata_.have_unknown_fields()) {
4627 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 4583 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4628 unknown_fields(), output); 4584 unknown_fields(), output);
4629 } 4585 }
4630 // @@protoc_insertion_point(serialize_end:google.protobuf.FieldDescriptorProto ) 4586 // @@protoc_insertion_point(serialize_end:google.protobuf.FieldDescriptorProto )
4631 } 4587 }
4632 4588
4633 ::google::protobuf::uint8* FieldDescriptorProto::SerializeWithCachedSizesToArray ( 4589 ::google::protobuf::uint8* FieldDescriptorProto::InternalSerializeWithCachedSize sToArray(
4634 ::google::protobuf::uint8* target) const { 4590 bool deterministic, ::google::protobuf::uint8* target) const {
4591 (void)deterministic; // Unused
4635 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldDesc riptorProto) 4592 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldDesc riptorProto)
4636 // optional string name = 1; 4593 // optional string name = 1;
4637 if (has_name()) { 4594 if (has_name()) {
4638 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 4595 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4639 this->name().data(), this->name().length(), 4596 this->name().data(), this->name().length(),
4640 ::google::protobuf::internal::WireFormat::SERIALIZE, 4597 ::google::protobuf::internal::WireFormat::SERIALIZE,
4641 "google.protobuf.FieldDescriptorProto.name"); 4598 "google.protobuf.FieldDescriptorProto.name");
4642 target = 4599 target =
4643 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 4600 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4644 1, this->name(), target); 4601 1, this->name(), target);
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
4690 ::google::protobuf::internal::WireFormat::SERIALIZE, 4647 ::google::protobuf::internal::WireFormat::SERIALIZE,
4691 "google.protobuf.FieldDescriptorProto.default_value"); 4648 "google.protobuf.FieldDescriptorProto.default_value");
4692 target = 4649 target =
4693 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 4650 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4694 7, this->default_value(), target); 4651 7, this->default_value(), target);
4695 } 4652 }
4696 4653
4697 // optional .google.protobuf.FieldOptions options = 8; 4654 // optional .google.protobuf.FieldOptions options = 8;
4698 if (has_options()) { 4655 if (has_options()) {
4699 target = ::google::protobuf::internal::WireFormatLite:: 4656 target = ::google::protobuf::internal::WireFormatLite::
4700 WriteMessageNoVirtualToArray( 4657 InternalWriteMessageNoVirtualToArray(
4701 8, *this->options_, target); 4658 8, *this->options_, false, target);
4702 } 4659 }
4703 4660
4704 // optional int32 oneof_index = 9; 4661 // optional int32 oneof_index = 9;
4705 if (has_oneof_index()) { 4662 if (has_oneof_index()) {
4706 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->oneof_index(), target); 4663 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->oneof_index(), target);
4707 } 4664 }
4708 4665
4709 // optional string json_name = 10; 4666 // optional string json_name = 10;
4710 if (has_json_name()) { 4667 if (has_json_name()) {
4711 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 4668 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4712 this->json_name().data(), this->json_name().length(), 4669 this->json_name().data(), this->json_name().length(),
4713 ::google::protobuf::internal::WireFormat::SERIALIZE, 4670 ::google::protobuf::internal::WireFormat::SERIALIZE,
4714 "google.protobuf.FieldDescriptorProto.json_name"); 4671 "google.protobuf.FieldDescriptorProto.json_name");
4715 target = 4672 target =
4716 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 4673 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4717 10, this->json_name(), target); 4674 10, this->json_name(), target);
4718 } 4675 }
4719 4676
4720 if (_internal_metadata_.have_unknown_fields()) { 4677 if (_internal_metadata_.have_unknown_fields()) {
4721 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 4678 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
4722 unknown_fields(), target); 4679 unknown_fields(), target);
4723 } 4680 }
4724 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FieldDescri ptorProto) 4681 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FieldDescri ptorProto)
4725 return target; 4682 return target;
4726 } 4683 }
4727 4684
4728 int FieldDescriptorProto::ByteSize() const { 4685 size_t FieldDescriptorProto::ByteSizeLong() const {
4729 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FieldDescrip torProto) 4686 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FieldDescrip torProto)
4730 int total_size = 0; 4687 size_t total_size = 0;
4731 4688
4689 if (_internal_metadata_.have_unknown_fields()) {
4690 total_size +=
4691 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4692 unknown_fields());
4693 }
4732 if (_has_bits_[0 / 32] & 255u) { 4694 if (_has_bits_[0 / 32] & 255u) {
4733 // optional string name = 1; 4695 // optional string name = 1;
4734 if (has_name()) { 4696 if (has_name()) {
4735 total_size += 1 + 4697 total_size += 1 +
4736 ::google::protobuf::internal::WireFormatLite::StringSize( 4698 ::google::protobuf::internal::WireFormatLite::StringSize(
4737 this->name()); 4699 this->name());
4738 } 4700 }
4739 4701
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
4759 // optional string type_name = 6; 4702 // optional string type_name = 6;
4760 if (has_type_name()) { 4703 if (has_type_name()) {
4761 total_size += 1 + 4704 total_size += 1 +
4762 ::google::protobuf::internal::WireFormatLite::StringSize( 4705 ::google::protobuf::internal::WireFormatLite::StringSize(
4763 this->type_name()); 4706 this->type_name());
4764 } 4707 }
4765 4708
4766 // optional string extendee = 2; 4709 // optional string extendee = 2;
4767 if (has_extendee()) { 4710 if (has_extendee()) {
4768 total_size += 1 + 4711 total_size += 1 +
4769 ::google::protobuf::internal::WireFormatLite::StringSize( 4712 ::google::protobuf::internal::WireFormatLite::StringSize(
4770 this->extendee()); 4713 this->extendee());
4771 } 4714 }
4772 4715
4773 // optional string default_value = 7; 4716 // optional string default_value = 7;
4774 if (has_default_value()) { 4717 if (has_default_value()) {
4775 total_size += 1 + 4718 total_size += 1 +
4776 ::google::protobuf::internal::WireFormatLite::StringSize( 4719 ::google::protobuf::internal::WireFormatLite::StringSize(
4777 this->default_value()); 4720 this->default_value());
4778 } 4721 }
4779 4722
4780 // optional int32 oneof_index = 9;
4781 if (has_oneof_index()) {
4782 total_size += 1 +
4783 ::google::protobuf::internal::WireFormatLite::Int32Size(
4784 this->oneof_index());
4785 }
4786
4787 }
4788 if (_has_bits_[8 / 32] & 768u) {
4789 // optional string json_name = 10; 4723 // optional string json_name = 10;
4790 if (has_json_name()) { 4724 if (has_json_name()) {
4791 total_size += 1 + 4725 total_size += 1 +
4792 ::google::protobuf::internal::WireFormatLite::StringSize( 4726 ::google::protobuf::internal::WireFormatLite::StringSize(
4793 this->json_name()); 4727 this->json_name());
4794 } 4728 }
4795 4729
4796 // optional .google.protobuf.FieldOptions options = 8; 4730 // optional .google.protobuf.FieldOptions options = 8;
4797 if (has_options()) { 4731 if (has_options()) {
4798 total_size += 1 + 4732 total_size += 1 +
4799 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( 4733 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4800 *this->options_); 4734 *this->options_);
4801 } 4735 }
4802 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;
4745 if (has_oneof_index()) {
4746 total_size += 1 +
4747 ::google::protobuf::internal::WireFormatLite::Int32Size(
4748 this->oneof_index());
4749 }
4750
4803 } 4751 }
4804 if (_internal_metadata_.have_unknown_fields()) { 4752 if (_has_bits_[8 / 32] & 768u) {
4805 total_size += 4753 // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
4806 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( 4754 if (has_label()) {
4807 unknown_fields()); 4755 total_size += 1 +
4756 ::google::protobuf::internal::WireFormatLite::EnumSize(this->label());
4757 }
4758
4759 // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
4760 if (has_type()) {
4761 total_size += 1 +
4762 ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
4763 }
4764
4808 } 4765 }
4766 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4809 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 4767 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4810 _cached_size_ = total_size; 4768 _cached_size_ = cached_size;
4811 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 4769 GOOGLE_SAFE_CONCURRENT_WRITES_END();
4812 return total_size; 4770 return total_size;
4813 } 4771 }
4814 4772
4815 void FieldDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { 4773 void FieldDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
4816 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FieldDe scriptorProto) 4774 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FieldDe scriptorProto)
4817 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 4775 GOOGLE_DCHECK_NE(&from, this);
4818 const FieldDescriptorProto* source = 4776 const FieldDescriptorProto* source =
4819 ::google::protobuf::internal::DynamicCastToGenerated<const FieldDescriptor Proto>( 4777 ::google::protobuf::internal::DynamicCastToGenerated<const FieldDescriptor Proto>(
4820 &from); 4778 &from);
4821 if (source == NULL) { 4779 if (source == NULL) {
4822 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.F ieldDescriptorProto) 4780 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.F ieldDescriptorProto)
4823 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 4781 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4824 } else { 4782 } else {
4825 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.FieldDescriptorProto) 4783 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.FieldDescriptorProto)
4826 MergeFrom(*source); 4784 MergeFrom(*source);
4827 } 4785 }
4828 } 4786 }
4829 4787
4830 void FieldDescriptorProto::MergeFrom(const FieldDescriptorProto& from) { 4788 void FieldDescriptorProto::MergeFrom(const FieldDescriptorProto& from) {
4831 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Fiel dDescriptorProto) 4789 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Fiel dDescriptorProto)
4832 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 4790 GOOGLE_DCHECK_NE(&from, this);
4833 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { 4791 _internal_metadata_.MergeFrom(from._internal_metadata_);
4792 if (from._has_bits_[0 / 32] & 255u) {
4834 if (from.has_name()) { 4793 if (from.has_name()) {
4835 set_has_name(); 4794 set_has_name();
4836 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), from.name_); 4795 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), from.name_);
4837 } 4796 }
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 }
4847 if (from.has_type_name()) { 4797 if (from.has_type_name()) {
4848 set_has_type_name(); 4798 set_has_type_name();
4849 type_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyString AlreadyInited(), from.type_name_); 4799 type_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyString AlreadyInited(), from.type_name_);
4850 } 4800 }
4851 if (from.has_extendee()) { 4801 if (from.has_extendee()) {
4852 set_has_extendee(); 4802 set_has_extendee();
4853 extendee_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringA lreadyInited(), from.extendee_); 4803 extendee_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringA lreadyInited(), from.extendee_);
4854 } 4804 }
4855 if (from.has_default_value()) { 4805 if (from.has_default_value()) {
4856 set_has_default_value(); 4806 set_has_default_value();
4857 default_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptySt ringAlreadyInited(), from.default_value_); 4807 default_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptySt ringAlreadyInited(), from.default_value_);
4858 } 4808 }
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))) {
4864 if (from.has_json_name()) { 4809 if (from.has_json_name()) {
4865 set_has_json_name(); 4810 set_has_json_name();
4866 json_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyString AlreadyInited(), from.json_name_); 4811 json_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyString AlreadyInited(), from.json_name_);
4867 } 4812 }
4868 if (from.has_options()) { 4813 if (from.has_options()) {
4869 mutable_options()->::google::protobuf::FieldOptions::MergeFrom(from.option s()); 4814 mutable_options()->::google::protobuf::FieldOptions::MergeFrom(from.option s());
4870 } 4815 }
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 }
4871 } 4822 }
4872 if (from._internal_metadata_.have_unknown_fields()) { 4823 if (from._has_bits_[8 / 32] & 768u) {
4873 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); 4824 if (from.has_label()) {
4825 set_label(from.label());
4826 }
4827 if (from.has_type()) {
4828 set_type(from.type());
4829 }
4874 } 4830 }
4875 } 4831 }
4876 4832
4877 void FieldDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { 4833 void FieldDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
4878 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FieldDes criptorProto) 4834 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FieldDes criptorProto)
4879 if (&from == this) return; 4835 if (&from == this) return;
4880 Clear(); 4836 Clear();
4881 MergeFrom(from); 4837 MergeFrom(from);
4882 } 4838 }
4883 4839
4884 void FieldDescriptorProto::CopyFrom(const FieldDescriptorProto& from) { 4840 void FieldDescriptorProto::CopyFrom(const FieldDescriptorProto& from) {
4885 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Field DescriptorProto) 4841 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Field DescriptorProto)
4886 if (&from == this) return; 4842 if (&from == this) return;
4887 Clear(); 4843 Clear();
4888 MergeFrom(from); 4844 MergeFrom(from);
4889 } 4845 }
4890 4846
4891 bool FieldDescriptorProto::IsInitialized() const { 4847 bool FieldDescriptorProto::IsInitialized() const {
4892
4893 if (has_options()) { 4848 if (has_options()) {
4894 if (!this->options_->IsInitialized()) return false; 4849 if (!this->options_->IsInitialized()) return false;
4895 } 4850 }
4896 return true; 4851 return true;
4897 } 4852 }
4898 4853
4899 void FieldDescriptorProto::Swap(FieldDescriptorProto* other) { 4854 void FieldDescriptorProto::Swap(FieldDescriptorProto* other) {
4900 if (other == this) return; 4855 if (other == this) return;
4901 InternalSwap(other); 4856 InternalSwap(other);
4902 } 4857 }
4903 void FieldDescriptorProto::InternalSwap(FieldDescriptorProto* other) { 4858 void FieldDescriptorProto::InternalSwap(FieldDescriptorProto* other) {
4904 name_.Swap(&other->name_); 4859 name_.Swap(&other->name_);
4905 std::swap(number_, other->number_);
4906 std::swap(label_, other->label_);
4907 std::swap(type_, other->type_);
4908 type_name_.Swap(&other->type_name_); 4860 type_name_.Swap(&other->type_name_);
4909 extendee_.Swap(&other->extendee_); 4861 extendee_.Swap(&other->extendee_);
4910 default_value_.Swap(&other->default_value_); 4862 default_value_.Swap(&other->default_value_);
4911 std::swap(oneof_index_, other->oneof_index_);
4912 json_name_.Swap(&other->json_name_); 4863 json_name_.Swap(&other->json_name_);
4913 std::swap(options_, other->options_); 4864 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_);
4914 std::swap(_has_bits_[0], other->_has_bits_[0]); 4869 std::swap(_has_bits_[0], other->_has_bits_[0]);
4915 _internal_metadata_.Swap(&other->_internal_metadata_); 4870 _internal_metadata_.Swap(&other->_internal_metadata_);
4916 std::swap(_cached_size_, other->_cached_size_); 4871 std::swap(_cached_size_, other->_cached_size_);
4917 } 4872 }
4918 4873
4919 ::google::protobuf::Metadata FieldDescriptorProto::GetMetadata() const { 4874 ::google::protobuf::Metadata FieldDescriptorProto::GetMetadata() const {
4920 protobuf_AssignDescriptorsOnce(); 4875 protobuf_AssignDescriptorsOnce();
4921 ::google::protobuf::Metadata metadata; 4876 return file_level_metadata[5];
4922 metadata.descriptor = FieldDescriptorProto_descriptor_;
4923 metadata.reflection = FieldDescriptorProto_reflection_;
4924 return metadata;
4925 } 4877 }
4926 4878
4927 #if PROTOBUF_INLINE_NOT_IN_HEADERS 4879 #if PROTOBUF_INLINE_NOT_IN_HEADERS
4928 // FieldDescriptorProto 4880 // FieldDescriptorProto
4929 4881
4930 // optional string name = 1; 4882 // optional string name = 1;
4931 bool FieldDescriptorProto::has_name() const { 4883 bool FieldDescriptorProto::has_name() const {
4932 return (_has_bits_[0] & 0x00000001u) != 0; 4884 return (_has_bits_[0] & 0x00000001u) != 0;
4933 } 4885 }
4934 void FieldDescriptorProto::set_has_name() { 4886 void FieldDescriptorProto::set_has_name() {
4935 _has_bits_[0] |= 0x00000001u; 4887 _has_bits_[0] |= 0x00000001u;
4936 } 4888 }
4937 void FieldDescriptorProto::clear_has_name() { 4889 void FieldDescriptorProto::clear_has_name() {
4938 _has_bits_[0] &= ~0x00000001u; 4890 _has_bits_[0] &= ~0x00000001u;
4939 } 4891 }
4940 void FieldDescriptorProto::clear_name() { 4892 void FieldDescriptorProto::clear_name() {
4941 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 4893 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
4942 clear_has_name(); 4894 clear_has_name();
4943 } 4895 }
4944 const ::std::string& FieldDescriptorProto::name() const { 4896 const ::std::string& FieldDescriptorProto::name() const {
4945 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.nam e) 4897 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.nam e)
4946 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited()); 4898 return name_.GetNoArena();
4947 } 4899 }
4948 void FieldDescriptorProto::set_name(const ::std::string& value) { 4900 void FieldDescriptorProto::set_name(const ::std::string& value) {
4949 set_has_name(); 4901 set_has_name();
4950 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 4902 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4951 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.nam e) 4903 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.nam e)
4952 } 4904 }
4953 void FieldDescriptorProto::set_name(const char* value) { 4905 #if LANG_CXX11
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) {
4954 set_has_name(); 4914 set_has_name();
4955 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 4915 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4956 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProt o.name) 4916 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProt o.name)
4957 } 4917 }
4958 void FieldDescriptorProto::set_name(const char* value, size_t size) { 4918 void FieldDescriptorProto::set_name(const char* value, size_t size) {
4959 set_has_name(); 4919 set_has_name();
4960 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 4920 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4961 ::std::string(reinterpret_cast<const char*>(value), size)); 4921 ::std::string(reinterpret_cast<const char*>(value), size));
4962 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorP roto.name) 4922 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorP roto.name)
4963 } 4923 }
4964 ::std::string* FieldDescriptorProto::mutable_name() { 4924 ::std::string* FieldDescriptorProto::mutable_name() {
4965 set_has_name(); 4925 set_has_name();
4966 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto .name) 4926 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto .name)
4967 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 4927 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
4968 } 4928 }
4969 ::std::string* FieldDescriptorProto::release_name() { 4929 ::std::string* FieldDescriptorProto::release_name() {
4970 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto .name) 4930 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto .name)
4971 clear_has_name(); 4931 clear_has_name();
4972 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 4932 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
4973 } 4933 }
4974 void FieldDescriptorProto::set_allocated_name(::std::string* name) { 4934 void FieldDescriptorProto::set_allocated_name(::std::string* name) {
4975 if (name != NULL) { 4935 if (name != NULL) {
4976 set_has_name(); 4936 set_has_name();
4977 } else { 4937 } else {
4978 clear_has_name(); 4938 clear_has_name();
4979 } 4939 }
4980 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name); 4940 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name);
4981 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto rProto.name) 4941 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto rProto.name)
4982 } 4942 }
4983 4943
4984 // optional int32 number = 3; 4944 // optional int32 number = 3;
4985 bool FieldDescriptorProto::has_number() const { 4945 bool FieldDescriptorProto::has_number() const {
4986 return (_has_bits_[0] & 0x00000002u) != 0; 4946 return (_has_bits_[0] & 0x00000040u) != 0;
4987 } 4947 }
4988 void FieldDescriptorProto::set_has_number() { 4948 void FieldDescriptorProto::set_has_number() {
4989 _has_bits_[0] |= 0x00000002u; 4949 _has_bits_[0] |= 0x00000040u;
4990 } 4950 }
4991 void FieldDescriptorProto::clear_has_number() { 4951 void FieldDescriptorProto::clear_has_number() {
4992 _has_bits_[0] &= ~0x00000002u; 4952 _has_bits_[0] &= ~0x00000040u;
4993 } 4953 }
4994 void FieldDescriptorProto::clear_number() { 4954 void FieldDescriptorProto::clear_number() {
4995 number_ = 0; 4955 number_ = 0;
4996 clear_has_number(); 4956 clear_has_number();
4997 } 4957 }
4998 ::google::protobuf::int32 FieldDescriptorProto::number() const { 4958 ::google::protobuf::int32 FieldDescriptorProto::number() const {
4999 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.num ber) 4959 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.num ber)
5000 return number_; 4960 return number_;
5001 } 4961 }
5002 void FieldDescriptorProto::set_number(::google::protobuf::int32 value) { 4962 void FieldDescriptorProto::set_number(::google::protobuf::int32 value) {
5003 set_has_number(); 4963 set_has_number();
5004 number_ = value; 4964 number_ = value;
5005 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.num ber) 4965 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.num ber)
5006 } 4966 }
5007 4967
5008 // optional .google.protobuf.FieldDescriptorProto.Label label = 4; 4968 // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
5009 bool FieldDescriptorProto::has_label() const { 4969 bool FieldDescriptorProto::has_label() const {
5010 return (_has_bits_[0] & 0x00000004u) != 0; 4970 return (_has_bits_[0] & 0x00000100u) != 0;
5011 } 4971 }
5012 void FieldDescriptorProto::set_has_label() { 4972 void FieldDescriptorProto::set_has_label() {
5013 _has_bits_[0] |= 0x00000004u; 4973 _has_bits_[0] |= 0x00000100u;
5014 } 4974 }
5015 void FieldDescriptorProto::clear_has_label() { 4975 void FieldDescriptorProto::clear_has_label() {
5016 _has_bits_[0] &= ~0x00000004u; 4976 _has_bits_[0] &= ~0x00000100u;
5017 } 4977 }
5018 void FieldDescriptorProto::clear_label() { 4978 void FieldDescriptorProto::clear_label() {
5019 label_ = 1; 4979 label_ = 1;
5020 clear_has_label(); 4980 clear_has_label();
5021 } 4981 }
5022 ::google::protobuf::FieldDescriptorProto_Label FieldDescriptorProto::label() co nst { 4982 ::google::protobuf::FieldDescriptorProto_Label FieldDescriptorProto::label() con st {
5023 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.lab el) 4983 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.lab el)
5024 return static_cast< ::google::protobuf::FieldDescriptorProto_Label >(label_); 4984 return static_cast< ::google::protobuf::FieldDescriptorProto_Label >(label_);
5025 } 4985 }
5026 void FieldDescriptorProto::set_label(::google::protobuf::FieldDescriptorProto_L abel value) { 4986 void FieldDescriptorProto::set_label(::google::protobuf::FieldDescriptorProto_La bel value) {
5027 assert(::google::protobuf::FieldDescriptorProto_Label_IsValid(value)); 4987 assert(::google::protobuf::FieldDescriptorProto_Label_IsValid(value));
5028 set_has_label(); 4988 set_has_label();
5029 label_ = value; 4989 label_ = value;
5030 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.lab el) 4990 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.lab el)
5031 } 4991 }
5032 4992
5033 // optional .google.protobuf.FieldDescriptorProto.Type type = 5; 4993 // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
5034 bool FieldDescriptorProto::has_type() const { 4994 bool FieldDescriptorProto::has_type() const {
5035 return (_has_bits_[0] & 0x00000008u) != 0; 4995 return (_has_bits_[0] & 0x00000200u) != 0;
5036 } 4996 }
5037 void FieldDescriptorProto::set_has_type() { 4997 void FieldDescriptorProto::set_has_type() {
5038 _has_bits_[0] |= 0x00000008u; 4998 _has_bits_[0] |= 0x00000200u;
5039 } 4999 }
5040 void FieldDescriptorProto::clear_has_type() { 5000 void FieldDescriptorProto::clear_has_type() {
5041 _has_bits_[0] &= ~0x00000008u; 5001 _has_bits_[0] &= ~0x00000200u;
5042 } 5002 }
5043 void FieldDescriptorProto::clear_type() { 5003 void FieldDescriptorProto::clear_type() {
5044 type_ = 1; 5004 type_ = 1;
5045 clear_has_type(); 5005 clear_has_type();
5046 } 5006 }
5047 ::google::protobuf::FieldDescriptorProto_Type FieldDescriptorProto::type() cons t { 5007 ::google::protobuf::FieldDescriptorProto_Type FieldDescriptorProto::type() const {
5048 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.typ e) 5008 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.typ e)
5049 return static_cast< ::google::protobuf::FieldDescriptorProto_Type >(type_); 5009 return static_cast< ::google::protobuf::FieldDescriptorProto_Type >(type_);
5050 } 5010 }
5051 void FieldDescriptorProto::set_type(::google::protobuf::FieldDescriptorProto_Ty pe value) { 5011 void FieldDescriptorProto::set_type(::google::protobuf::FieldDescriptorProto_Typ e value) {
5052 assert(::google::protobuf::FieldDescriptorProto_Type_IsValid(value)); 5012 assert(::google::protobuf::FieldDescriptorProto_Type_IsValid(value));
5053 set_has_type(); 5013 set_has_type();
5054 type_ = value; 5014 type_ = value;
5055 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.typ e) 5015 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.typ e)
5056 } 5016 }
5057 5017
5058 // optional string type_name = 6; 5018 // optional string type_name = 6;
5059 bool FieldDescriptorProto::has_type_name() const { 5019 bool FieldDescriptorProto::has_type_name() const {
5060 return (_has_bits_[0] & 0x00000010u) != 0; 5020 return (_has_bits_[0] & 0x00000002u) != 0;
5061 } 5021 }
5062 void FieldDescriptorProto::set_has_type_name() { 5022 void FieldDescriptorProto::set_has_type_name() {
5063 _has_bits_[0] |= 0x00000010u; 5023 _has_bits_[0] |= 0x00000002u;
5064 } 5024 }
5065 void FieldDescriptorProto::clear_has_type_name() { 5025 void FieldDescriptorProto::clear_has_type_name() {
5066 _has_bits_[0] &= ~0x00000010u; 5026 _has_bits_[0] &= ~0x00000002u;
5067 } 5027 }
5068 void FieldDescriptorProto::clear_type_name() { 5028 void FieldDescriptorProto::clear_type_name() {
5069 type_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited()); 5029 type_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited());
5070 clear_has_type_name(); 5030 clear_has_type_name();
5071 } 5031 }
5072 const ::std::string& FieldDescriptorProto::type_name() const { 5032 const ::std::string& FieldDescriptorProto::type_name() const {
5073 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.typ e_name) 5033 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.typ e_name)
5074 return type_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited()); 5034 return type_name_.GetNoArena();
5075 } 5035 }
5076 void FieldDescriptorProto::set_type_name(const ::std::string& value) { 5036 void FieldDescriptorProto::set_type_name(const ::std::string& value) {
5077 set_has_type_name(); 5037 set_has_type_name();
5078 type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), value); 5038 type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), value);
5079 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.typ e_name) 5039 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.typ e_name)
5080 } 5040 }
5081 void FieldDescriptorProto::set_type_name(const char* value) { 5041 #if LANG_CXX11
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) {
5082 set_has_type_name(); 5050 set_has_type_name();
5083 type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), ::std::string(value)); 5051 type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), ::std::string(value));
5084 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProt o.type_name) 5052 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProt o.type_name)
5085 } 5053 }
5086 void FieldDescriptorProto::set_type_name(const char* value, size_t size) { 5054 void FieldDescriptorProto::set_type_name(const char* value, size_t size) {
5087 set_has_type_name(); 5055 set_has_type_name();
5088 type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), 5056 type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(),
5089 ::std::string(reinterpret_cast<const char*>(value), size)); 5057 ::std::string(reinterpret_cast<const char*>(value), size));
5090 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorP roto.type_name) 5058 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorP roto.type_name)
5091 } 5059 }
5092 ::std::string* FieldDescriptorProto::mutable_type_name() { 5060 ::std::string* FieldDescriptorProto::mutable_type_name() {
5093 set_has_type_name(); 5061 set_has_type_name();
5094 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto .type_name) 5062 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto .type_name)
5095 return type_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited()); 5063 return type_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited());
5096 } 5064 }
5097 ::std::string* FieldDescriptorProto::release_type_name() { 5065 ::std::string* FieldDescriptorProto::release_type_name() {
5098 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto .type_name) 5066 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto .type_name)
5099 clear_has_type_name(); 5067 clear_has_type_name();
5100 return type_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited()); 5068 return type_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited());
5101 } 5069 }
5102 void FieldDescriptorProto::set_allocated_type_name(::std::string* type_name) { 5070 void FieldDescriptorProto::set_allocated_type_name(::std::string* type_name) {
5103 if (type_name != NULL) { 5071 if (type_name != NULL) {
5104 set_has_type_name(); 5072 set_has_type_name();
5105 } else { 5073 } else {
5106 clear_has_type_name(); 5074 clear_has_type_name();
5107 } 5075 }
5108 type_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited(), type_name); 5076 type_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited(), type_name);
5109 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto rProto.type_name) 5077 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto rProto.type_name)
5110 } 5078 }
5111 5079
5112 // optional string extendee = 2; 5080 // optional string extendee = 2;
5113 bool FieldDescriptorProto::has_extendee() const { 5081 bool FieldDescriptorProto::has_extendee() const {
5114 return (_has_bits_[0] & 0x00000020u) != 0; 5082 return (_has_bits_[0] & 0x00000004u) != 0;
5115 } 5083 }
5116 void FieldDescriptorProto::set_has_extendee() { 5084 void FieldDescriptorProto::set_has_extendee() {
5117 _has_bits_[0] |= 0x00000020u; 5085 _has_bits_[0] |= 0x00000004u;
5118 } 5086 }
5119 void FieldDescriptorProto::clear_has_extendee() { 5087 void FieldDescriptorProto::clear_has_extendee() {
5120 _has_bits_[0] &= ~0x00000020u; 5088 _has_bits_[0] &= ~0x00000004u;
5121 } 5089 }
5122 void FieldDescriptorProto::clear_extendee() { 5090 void FieldDescriptorProto::clear_extendee() {
5123 extendee_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited()); 5091 extendee_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited());
5124 clear_has_extendee(); 5092 clear_has_extendee();
5125 } 5093 }
5126 const ::std::string& FieldDescriptorProto::extendee() const { 5094 const ::std::string& FieldDescriptorProto::extendee() const {
5127 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.ext endee) 5095 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.ext endee)
5128 return extendee_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 5096 return extendee_.GetNoArena();
5129 } 5097 }
5130 void FieldDescriptorProto::set_extendee(const ::std::string& value) { 5098 void FieldDescriptorProto::set_extendee(const ::std::string& value) {
5131 set_has_extendee(); 5099 set_has_extendee();
5132 extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d(), value); 5100 extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d(), value);
5133 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.ext endee) 5101 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.ext endee)
5134 } 5102 }
5135 void FieldDescriptorProto::set_extendee(const char* value) { 5103 #if LANG_CXX11
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) {
5136 set_has_extendee(); 5112 set_has_extendee();
5137 extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d(), ::std::string(value)); 5113 extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d(), ::std::string(value));
5138 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProt o.extendee) 5114 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProt o.extendee)
5139 } 5115 }
5140 void FieldDescriptorProto::set_extendee(const char* value, size_t size) { 5116 void FieldDescriptorProto::set_extendee(const char* value, size_t size) {
5141 set_has_extendee(); 5117 set_has_extendee();
5142 extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d(), 5118 extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d(),
5143 ::std::string(reinterpret_cast<const char*>(value), size)); 5119 ::std::string(reinterpret_cast<const char*>(value), size));
5144 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorP roto.extendee) 5120 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorP roto.extendee)
5145 } 5121 }
5146 ::std::string* FieldDescriptorProto::mutable_extendee() { 5122 ::std::string* FieldDescriptorProto::mutable_extendee() {
5147 set_has_extendee(); 5123 set_has_extendee();
5148 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto .extendee) 5124 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto .extendee)
5149 return extendee_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringA lreadyInited()); 5125 return extendee_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringA lreadyInited());
5150 } 5126 }
5151 ::std::string* FieldDescriptorProto::release_extendee() { 5127 ::std::string* FieldDescriptorProto::release_extendee() {
5152 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto .extendee) 5128 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto .extendee)
5153 clear_has_extendee(); 5129 clear_has_extendee();
5154 return extendee_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringA lreadyInited()); 5130 return extendee_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringA lreadyInited());
5155 } 5131 }
5156 void FieldDescriptorProto::set_allocated_extendee(::std::string* extendee) { 5132 void FieldDescriptorProto::set_allocated_extendee(::std::string* extendee) {
5157 if (extendee != NULL) { 5133 if (extendee != NULL) {
5158 set_has_extendee(); 5134 set_has_extendee();
5159 } else { 5135 } else {
5160 clear_has_extendee(); 5136 clear_has_extendee();
5161 } 5137 }
5162 extendee_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), extendee); 5138 extendee_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), extendee);
5163 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto rProto.extendee) 5139 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto rProto.extendee)
5164 } 5140 }
5165 5141
5166 // optional string default_value = 7; 5142 // optional string default_value = 7;
5167 bool FieldDescriptorProto::has_default_value() const { 5143 bool FieldDescriptorProto::has_default_value() const {
5168 return (_has_bits_[0] & 0x00000040u) != 0; 5144 return (_has_bits_[0] & 0x00000008u) != 0;
5169 } 5145 }
5170 void FieldDescriptorProto::set_has_default_value() { 5146 void FieldDescriptorProto::set_has_default_value() {
5171 _has_bits_[0] |= 0x00000040u; 5147 _has_bits_[0] |= 0x00000008u;
5172 } 5148 }
5173 void FieldDescriptorProto::clear_has_default_value() { 5149 void FieldDescriptorProto::clear_has_default_value() {
5174 _has_bits_[0] &= ~0x00000040u; 5150 _has_bits_[0] &= ~0x00000008u;
5175 } 5151 }
5176 void FieldDescriptorProto::clear_default_value() { 5152 void FieldDescriptorProto::clear_default_value() {
5177 default_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited()); 5153 default_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited());
5178 clear_has_default_value(); 5154 clear_has_default_value();
5179 } 5155 }
5180 const ::std::string& FieldDescriptorProto::default_value() const { 5156 const ::std::string& FieldDescriptorProto::default_value() const {
5181 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.def ault_value) 5157 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.def ault_value)
5182 return default_value_.GetNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited()); 5158 return default_value_.GetNoArena();
5183 } 5159 }
5184 void FieldDescriptorProto::set_default_value(const ::std::string& value) { 5160 void FieldDescriptorProto::set_default_value(const ::std::string& value) {
5185 set_has_default_value(); 5161 set_has_default_value();
5186 default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), value); 5162 default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), value);
5187 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.def ault_value) 5163 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.def ault_value)
5188 } 5164 }
5189 void FieldDescriptorProto::set_default_value(const char* value) { 5165 #if LANG_CXX11
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) {
5190 set_has_default_value(); 5174 set_has_default_value();
5191 default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), ::std::string(value)); 5175 default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), ::std::string(value));
5192 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProt o.default_value) 5176 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProt o.default_value)
5193 } 5177 }
5194 void FieldDescriptorProto::set_default_value(const char* value, size_t size) { 5178 void FieldDescriptorProto::set_default_value(const char* value, size_t size) {
5195 set_has_default_value(); 5179 set_has_default_value();
5196 default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), 5180 default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(),
5197 ::std::string(reinterpret_cast<const char*>(value), size)); 5181 ::std::string(reinterpret_cast<const char*>(value), size));
5198 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorP roto.default_value) 5182 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorP roto.default_value)
5199 } 5183 }
5200 ::std::string* FieldDescriptorProto::mutable_default_value() { 5184 ::std::string* FieldDescriptorProto::mutable_default_value() {
5201 set_has_default_value(); 5185 set_has_default_value();
5202 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto .default_value) 5186 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto .default_value)
5203 return default_value_.MutableNoArena(&::google::protobuf::internal::GetEmptySt ringAlreadyInited()); 5187 return default_value_.MutableNoArena(&::google::protobuf::internal::GetEmptySt ringAlreadyInited());
5204 } 5188 }
5205 ::std::string* FieldDescriptorProto::release_default_value() { 5189 ::std::string* FieldDescriptorProto::release_default_value() {
5206 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto .default_value) 5190 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto .default_value)
5207 clear_has_default_value(); 5191 clear_has_default_value();
5208 return default_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptySt ringAlreadyInited()); 5192 return default_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptySt ringAlreadyInited());
5209 } 5193 }
5210 void FieldDescriptorProto::set_allocated_default_value(::std::string* default_v alue) { 5194 void FieldDescriptorProto::set_allocated_default_value(::std::string* default_va lue) {
5211 if (default_value != NULL) { 5195 if (default_value != NULL) {
5212 set_has_default_value(); 5196 set_has_default_value();
5213 } else { 5197 } else {
5214 clear_has_default_value(); 5198 clear_has_default_value();
5215 } 5199 }
5216 default_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited(), default_value); 5200 default_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited(), default_value);
5217 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto rProto.default_value) 5201 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto rProto.default_value)
5218 } 5202 }
5219 5203
5220 // optional int32 oneof_index = 9; 5204 // optional int32 oneof_index = 9;
5221 bool FieldDescriptorProto::has_oneof_index() const { 5205 bool FieldDescriptorProto::has_oneof_index() const {
5222 return (_has_bits_[0] & 0x00000080u) != 0; 5206 return (_has_bits_[0] & 0x00000080u) != 0;
5223 } 5207 }
5224 void FieldDescriptorProto::set_has_oneof_index() { 5208 void FieldDescriptorProto::set_has_oneof_index() {
5225 _has_bits_[0] |= 0x00000080u; 5209 _has_bits_[0] |= 0x00000080u;
5226 } 5210 }
5227 void FieldDescriptorProto::clear_has_oneof_index() { 5211 void FieldDescriptorProto::clear_has_oneof_index() {
5228 _has_bits_[0] &= ~0x00000080u; 5212 _has_bits_[0] &= ~0x00000080u;
5229 } 5213 }
5230 void FieldDescriptorProto::clear_oneof_index() { 5214 void FieldDescriptorProto::clear_oneof_index() {
5231 oneof_index_ = 0; 5215 oneof_index_ = 0;
5232 clear_has_oneof_index(); 5216 clear_has_oneof_index();
5233 } 5217 }
5234 ::google::protobuf::int32 FieldDescriptorProto::oneof_index() const { 5218 ::google::protobuf::int32 FieldDescriptorProto::oneof_index() const {
5235 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.one of_index) 5219 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.one of_index)
5236 return oneof_index_; 5220 return oneof_index_;
5237 } 5221 }
5238 void FieldDescriptorProto::set_oneof_index(::google::protobuf::int32 value) { 5222 void FieldDescriptorProto::set_oneof_index(::google::protobuf::int32 value) {
5239 set_has_oneof_index(); 5223 set_has_oneof_index();
5240 oneof_index_ = value; 5224 oneof_index_ = value;
5241 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.one of_index) 5225 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.one of_index)
5242 } 5226 }
5243 5227
5244 // optional string json_name = 10; 5228 // optional string json_name = 10;
5245 bool FieldDescriptorProto::has_json_name() const { 5229 bool FieldDescriptorProto::has_json_name() const {
5246 return (_has_bits_[0] & 0x00000100u) != 0; 5230 return (_has_bits_[0] & 0x00000010u) != 0;
5247 } 5231 }
5248 void FieldDescriptorProto::set_has_json_name() { 5232 void FieldDescriptorProto::set_has_json_name() {
5249 _has_bits_[0] |= 0x00000100u; 5233 _has_bits_[0] |= 0x00000010u;
5250 } 5234 }
5251 void FieldDescriptorProto::clear_has_json_name() { 5235 void FieldDescriptorProto::clear_has_json_name() {
5252 _has_bits_[0] &= ~0x00000100u; 5236 _has_bits_[0] &= ~0x00000010u;
5253 } 5237 }
5254 void FieldDescriptorProto::clear_json_name() { 5238 void FieldDescriptorProto::clear_json_name() {
5255 json_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited()); 5239 json_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited());
5256 clear_has_json_name(); 5240 clear_has_json_name();
5257 } 5241 }
5258 const ::std::string& FieldDescriptorProto::json_name() const { 5242 const ::std::string& FieldDescriptorProto::json_name() const {
5259 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.jso n_name) 5243 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.jso n_name)
5260 return json_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited()); 5244 return json_name_.GetNoArena();
5261 } 5245 }
5262 void FieldDescriptorProto::set_json_name(const ::std::string& value) { 5246 void FieldDescriptorProto::set_json_name(const ::std::string& value) {
5263 set_has_json_name(); 5247 set_has_json_name();
5264 json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), value); 5248 json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), value);
5265 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.jso n_name) 5249 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.jso n_name)
5266 } 5250 }
5267 void FieldDescriptorProto::set_json_name(const char* value) { 5251 #if LANG_CXX11
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) {
5268 set_has_json_name(); 5260 set_has_json_name();
5269 json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), ::std::string(value)); 5261 json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), ::std::string(value));
5270 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProt o.json_name) 5262 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProt o.json_name)
5271 } 5263 }
5272 void FieldDescriptorProto::set_json_name(const char* value, size_t size) { 5264 void FieldDescriptorProto::set_json_name(const char* value, size_t size) {
5273 set_has_json_name(); 5265 set_has_json_name();
5274 json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), 5266 json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(),
5275 ::std::string(reinterpret_cast<const char*>(value), size)); 5267 ::std::string(reinterpret_cast<const char*>(value), size));
5276 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorP roto.json_name) 5268 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorP roto.json_name)
5277 } 5269 }
5278 ::std::string* FieldDescriptorProto::mutable_json_name() { 5270 ::std::string* FieldDescriptorProto::mutable_json_name() {
5279 set_has_json_name(); 5271 set_has_json_name();
5280 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto .json_name) 5272 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto .json_name)
5281 return json_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited()); 5273 return json_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited());
5282 } 5274 }
5283 ::std::string* FieldDescriptorProto::release_json_name() { 5275 ::std::string* FieldDescriptorProto::release_json_name() {
5284 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto .json_name) 5276 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto .json_name)
5285 clear_has_json_name(); 5277 clear_has_json_name();
5286 return json_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited()); 5278 return json_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited());
5287 } 5279 }
5288 void FieldDescriptorProto::set_allocated_json_name(::std::string* json_name) { 5280 void FieldDescriptorProto::set_allocated_json_name(::std::string* json_name) {
5289 if (json_name != NULL) { 5281 if (json_name != NULL) {
5290 set_has_json_name(); 5282 set_has_json_name();
5291 } else { 5283 } else {
5292 clear_has_json_name(); 5284 clear_has_json_name();
5293 } 5285 }
5294 json_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited(), json_name); 5286 json_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited(), json_name);
5295 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto rProto.json_name) 5287 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto rProto.json_name)
5296 } 5288 }
5297 5289
5298 // optional .google.protobuf.FieldOptions options = 8; 5290 // optional .google.protobuf.FieldOptions options = 8;
5299 bool FieldDescriptorProto::has_options() const { 5291 bool FieldDescriptorProto::has_options() const {
5300 return (_has_bits_[0] & 0x00000200u) != 0; 5292 return (_has_bits_[0] & 0x00000020u) != 0;
5301 } 5293 }
5302 void FieldDescriptorProto::set_has_options() { 5294 void FieldDescriptorProto::set_has_options() {
5303 _has_bits_[0] |= 0x00000200u; 5295 _has_bits_[0] |= 0x00000020u;
5304 } 5296 }
5305 void FieldDescriptorProto::clear_has_options() { 5297 void FieldDescriptorProto::clear_has_options() {
5306 _has_bits_[0] &= ~0x00000200u; 5298 _has_bits_[0] &= ~0x00000020u;
5307 } 5299 }
5308 void FieldDescriptorProto::clear_options() { 5300 void FieldDescriptorProto::clear_options() {
5309 if (options_ != NULL) options_->::google::protobuf::FieldOptions::Clear(); 5301 if (options_ != NULL) options_->::google::protobuf::FieldOptions::Clear();
5310 clear_has_options(); 5302 clear_has_options();
5311 } 5303 }
5312 const ::google::protobuf::FieldOptions& FieldDescriptorProto::options() const { 5304 const ::google::protobuf::FieldOptions& FieldDescriptorProto::options() const {
5313 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.opt ions) 5305 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.opt ions)
5314 return options_ != NULL ? *options_ : *default_instance_->options_; 5306 return options_ != NULL ? *options_
5307 : *::google::protobuf::FieldOptions::internal_default_i nstance();
5315 } 5308 }
5316 ::google::protobuf::FieldOptions* FieldDescriptorProto::mutable_options() { 5309 ::google::protobuf::FieldOptions* FieldDescriptorProto::mutable_options() {
5317 set_has_options(); 5310 set_has_options();
5318 if (options_ == NULL) { 5311 if (options_ == NULL) {
5319 options_ = new ::google::protobuf::FieldOptions; 5312 options_ = new ::google::protobuf::FieldOptions;
5320 } 5313 }
5321 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto .options) 5314 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto .options)
5322 return options_; 5315 return options_;
5323 } 5316 }
5324 ::google::protobuf::FieldOptions* FieldDescriptorProto::release_options() { 5317 ::google::protobuf::FieldOptions* FieldDescriptorProto::release_options() {
(...skipping 13 matching lines...) Expand all
5338 } 5331 }
5339 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto rProto.options) 5332 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto rProto.options)
5340 } 5333 }
5341 5334
5342 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 5335 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
5343 5336
5344 // =================================================================== 5337 // ===================================================================
5345 5338
5346 #if !defined(_MSC_VER) || _MSC_VER >= 1900 5339 #if !defined(_MSC_VER) || _MSC_VER >= 1900
5347 const int OneofDescriptorProto::kNameFieldNumber; 5340 const int OneofDescriptorProto::kNameFieldNumber;
5341 const int OneofDescriptorProto::kOptionsFieldNumber;
5348 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 5342 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
5349 5343
5350 OneofDescriptorProto::OneofDescriptorProto() 5344 OneofDescriptorProto::OneofDescriptorProto()
5351 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 5345 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
5346 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
5347 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
5348 }
5352 SharedCtor(); 5349 SharedCtor();
5353 // @@protoc_insertion_point(constructor:google.protobuf.OneofDescriptorProto) 5350 // @@protoc_insertion_point(constructor:google.protobuf.OneofDescriptorProto)
5354 } 5351 }
5355
5356 void OneofDescriptorProto::InitAsDefaultInstance() {
5357 }
5358
5359 OneofDescriptorProto::OneofDescriptorProto(const OneofDescriptorProto& from) 5352 OneofDescriptorProto::OneofDescriptorProto(const OneofDescriptorProto& from)
5360 : ::google::protobuf::Message(), 5353 : ::google::protobuf::Message(),
5361 _internal_metadata_(NULL) { 5354 _internal_metadata_(NULL),
5362 SharedCtor(); 5355 _has_bits_(from._has_bits_),
5363 MergeFrom(from); 5356 _cached_size_(0) {
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 }
5364 // @@protoc_insertion_point(copy_constructor:google.protobuf.OneofDescriptorPr oto) 5367 // @@protoc_insertion_point(copy_constructor:google.protobuf.OneofDescriptorPr oto)
5365 } 5368 }
5366 5369
5367 void OneofDescriptorProto::SharedCtor() { 5370 void OneofDescriptorProto::SharedCtor() {
5368 ::google::protobuf::internal::GetEmptyString();
5369 _cached_size_ = 0; 5371 _cached_size_ = 0;
5370 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted()); 5372 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
5371 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 5373 options_ = NULL;
5372 } 5374 }
5373 5375
5374 OneofDescriptorProto::~OneofDescriptorProto() { 5376 OneofDescriptorProto::~OneofDescriptorProto() {
5375 // @@protoc_insertion_point(destructor:google.protobuf.OneofDescriptorProto) 5377 // @@protoc_insertion_point(destructor:google.protobuf.OneofDescriptorProto)
5376 SharedDtor(); 5378 SharedDtor();
5377 } 5379 }
5378 5380
5379 void OneofDescriptorProto::SharedDtor() { 5381 void OneofDescriptorProto::SharedDtor() {
5380 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d()); 5382 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d());
5381 if (this != default_instance_) { 5383 if (this != internal_default_instance()) {
5384 delete options_;
5382 } 5385 }
5383 } 5386 }
5384 5387
5385 void OneofDescriptorProto::SetCachedSize(int size) const { 5388 void OneofDescriptorProto::SetCachedSize(int size) const {
5386 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 5389 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5387 _cached_size_ = size; 5390 _cached_size_ = size;
5388 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 5391 GOOGLE_SAFE_CONCURRENT_WRITES_END();
5389 } 5392 }
5390 const ::google::protobuf::Descriptor* OneofDescriptorProto::descriptor() { 5393 const ::google::protobuf::Descriptor* OneofDescriptorProto::descriptor() {
5391 protobuf_AssignDescriptorsOnce(); 5394 protobuf_AssignDescriptorsOnce();
5392 return OneofDescriptorProto_descriptor_; 5395 return file_level_metadata[6].descriptor;
5393 } 5396 }
5394 5397
5395 const OneofDescriptorProto& OneofDescriptorProto::default_instance() { 5398 const OneofDescriptorProto& OneofDescriptorProto::default_instance() {
5396 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 5399 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
5397 return *default_instance_; 5400 return *internal_default_instance();
5398 } 5401 }
5399 5402
5400 OneofDescriptorProto* OneofDescriptorProto::default_instance_ = NULL;
5401
5402 OneofDescriptorProto* OneofDescriptorProto::New(::google::protobuf::Arena* arena ) const { 5403 OneofDescriptorProto* OneofDescriptorProto::New(::google::protobuf::Arena* arena ) const {
5403 OneofDescriptorProto* n = new OneofDescriptorProto; 5404 OneofDescriptorProto* n = new OneofDescriptorProto;
5404 if (arena != NULL) { 5405 if (arena != NULL) {
5405 arena->Own(n); 5406 arena->Own(n);
5406 } 5407 }
5407 return n; 5408 return n;
5408 } 5409 }
5409 5410
5410 void OneofDescriptorProto::Clear() { 5411 void OneofDescriptorProto::Clear() {
5411 // @@protoc_insertion_point(message_clear_start:google.protobuf.OneofDescriptorP roto) 5412 // @@protoc_insertion_point(message_clear_start:google.protobuf.OneofDescriptorP roto)
5412 if (has_name()) { 5413 if (_has_bits_[0 / 32] & 3u) {
5413 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 5414 if (has_name()) {
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 }
5414 } 5422 }
5415 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 5423 _has_bits_.Clear();
5416 if (_internal_metadata_.have_unknown_fields()) { 5424 _internal_metadata_.Clear();
5417 mutable_unknown_fields()->Clear();
5418 }
5419 } 5425 }
5420 5426
5421 bool OneofDescriptorProto::MergePartialFromCodedStream( 5427 bool OneofDescriptorProto::MergePartialFromCodedStream(
5422 ::google::protobuf::io::CodedInputStream* input) { 5428 ::google::protobuf::io::CodedInputStream* input) {
5423 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 5429 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
5424 ::google::protobuf::uint32 tag; 5430 ::google::protobuf::uint32 tag;
5425 // @@protoc_insertion_point(parse_start:google.protobuf.OneofDescriptorProto) 5431 // @@protoc_insertion_point(parse_start:google.protobuf.OneofDescriptorProto)
5426 for (;;) { 5432 for (;;) {
5427 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127); 5433 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u);
5428 tag = p.first; 5434 tag = p.first;
5429 if (!p.second) goto handle_unusual; 5435 if (!p.second) goto handle_unusual;
5430 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 5436 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
5431 // optional string name = 1; 5437 // optional string name = 1;
5432 case 1: { 5438 case 1: {
5433 if (tag == 10) { 5439 if (tag == 10u) {
5434 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 5440 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5435 input, this->mutable_name())); 5441 input, this->mutable_name()));
5436 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 5442 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5437 this->name().data(), this->name().length(), 5443 this->name().data(), this->name().length(),
5438 ::google::protobuf::internal::WireFormat::PARSE, 5444 ::google::protobuf::internal::WireFormat::PARSE,
5439 "google.protobuf.OneofDescriptorProto.name"); 5445 "google.protobuf.OneofDescriptorProto.name");
5440 } else { 5446 } else {
5441 goto handle_unusual; 5447 goto handle_unusual;
5442 } 5448 }
5443 if (input->ExpectAtEnd()) goto success;
5444 break; 5449 break;
5445 } 5450 }
5446 5451
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
5447 default: { 5463 default: {
5448 handle_unusual: 5464 handle_unusual:
5449 if (tag == 0 || 5465 if (tag == 0 ||
5450 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 5466 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5451 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 5467 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
5452 goto success; 5468 goto success;
5453 } 5469 }
5454 DO_(::google::protobuf::internal::WireFormat::SkipField( 5470 DO_(::google::protobuf::internal::WireFormat::SkipField(
5455 input, tag, mutable_unknown_fields())); 5471 input, tag, mutable_unknown_fields()));
5456 break; 5472 break;
(...skipping 15 matching lines...) Expand all
5472 // optional string name = 1; 5488 // optional string name = 1;
5473 if (has_name()) { 5489 if (has_name()) {
5474 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 5490 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5475 this->name().data(), this->name().length(), 5491 this->name().data(), this->name().length(),
5476 ::google::protobuf::internal::WireFormat::SERIALIZE, 5492 ::google::protobuf::internal::WireFormat::SERIALIZE,
5477 "google.protobuf.OneofDescriptorProto.name"); 5493 "google.protobuf.OneofDescriptorProto.name");
5478 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 5494 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5479 1, this->name(), output); 5495 1, this->name(), output);
5480 } 5496 }
5481 5497
5498 // optional .google.protobuf.OneofOptions options = 2;
5499 if (has_options()) {
5500 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5501 2, *this->options_, output);
5502 }
5503
5482 if (_internal_metadata_.have_unknown_fields()) { 5504 if (_internal_metadata_.have_unknown_fields()) {
5483 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 5505 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5484 unknown_fields(), output); 5506 unknown_fields(), output);
5485 } 5507 }
5486 // @@protoc_insertion_point(serialize_end:google.protobuf.OneofDescriptorProto ) 5508 // @@protoc_insertion_point(serialize_end:google.protobuf.OneofDescriptorProto )
5487 } 5509 }
5488 5510
5489 ::google::protobuf::uint8* OneofDescriptorProto::SerializeWithCachedSizesToArray ( 5511 ::google::protobuf::uint8* OneofDescriptorProto::InternalSerializeWithCachedSize sToArray(
5490 ::google::protobuf::uint8* target) const { 5512 bool deterministic, ::google::protobuf::uint8* target) const {
5513 (void)deterministic; // Unused
5491 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.OneofDesc riptorProto) 5514 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.OneofDesc riptorProto)
5492 // optional string name = 1; 5515 // optional string name = 1;
5493 if (has_name()) { 5516 if (has_name()) {
5494 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 5517 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5495 this->name().data(), this->name().length(), 5518 this->name().data(), this->name().length(),
5496 ::google::protobuf::internal::WireFormat::SERIALIZE, 5519 ::google::protobuf::internal::WireFormat::SERIALIZE,
5497 "google.protobuf.OneofDescriptorProto.name"); 5520 "google.protobuf.OneofDescriptorProto.name");
5498 target = 5521 target =
5499 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 5522 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5500 1, this->name(), target); 5523 1, this->name(), target);
5501 } 5524 }
5502 5525
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
5503 if (_internal_metadata_.have_unknown_fields()) { 5533 if (_internal_metadata_.have_unknown_fields()) {
5504 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 5534 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
5505 unknown_fields(), target); 5535 unknown_fields(), target);
5506 } 5536 }
5507 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.OneofDescri ptorProto) 5537 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.OneofDescri ptorProto)
5508 return target; 5538 return target;
5509 } 5539 }
5510 5540
5511 int OneofDescriptorProto::ByteSize() const { 5541 size_t OneofDescriptorProto::ByteSizeLong() const {
5512 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.OneofDescrip torProto) 5542 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.OneofDescrip torProto)
5513 int total_size = 0; 5543 size_t 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 }
5521 5544
5522 if (_internal_metadata_.have_unknown_fields()) { 5545 if (_internal_metadata_.have_unknown_fields()) {
5523 total_size += 5546 total_size +=
5524 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( 5547 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5525 unknown_fields()); 5548 unknown_fields());
5526 } 5549 }
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);
5527 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 5567 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5528 _cached_size_ = total_size; 5568 _cached_size_ = cached_size;
5529 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 5569 GOOGLE_SAFE_CONCURRENT_WRITES_END();
5530 return total_size; 5570 return total_size;
5531 } 5571 }
5532 5572
5533 void OneofDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { 5573 void OneofDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
5534 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.OneofDe scriptorProto) 5574 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.OneofDe scriptorProto)
5535 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 5575 GOOGLE_DCHECK_NE(&from, this);
5536 const OneofDescriptorProto* source = 5576 const OneofDescriptorProto* source =
5537 ::google::protobuf::internal::DynamicCastToGenerated<const OneofDescriptor Proto>( 5577 ::google::protobuf::internal::DynamicCastToGenerated<const OneofDescriptor Proto>(
5538 &from); 5578 &from);
5539 if (source == NULL) { 5579 if (source == NULL) {
5540 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.O neofDescriptorProto) 5580 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.O neofDescriptorProto)
5541 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 5581 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5542 } else { 5582 } else {
5543 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.OneofDescriptorProto) 5583 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.OneofDescriptorProto)
5544 MergeFrom(*source); 5584 MergeFrom(*source);
5545 } 5585 }
5546 } 5586 }
5547 5587
5548 void OneofDescriptorProto::MergeFrom(const OneofDescriptorProto& from) { 5588 void OneofDescriptorProto::MergeFrom(const OneofDescriptorProto& from) {
5549 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Oneo fDescriptorProto) 5589 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Oneo fDescriptorProto)
5550 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 5590 GOOGLE_DCHECK_NE(&from, this);
5551 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { 5591 _internal_metadata_.MergeFrom(from._internal_metadata_);
5592 if (from._has_bits_[0 / 32] & 3u) {
5552 if (from.has_name()) { 5593 if (from.has_name()) {
5553 set_has_name(); 5594 set_has_name();
5554 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), from.name_); 5595 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), from.name_);
5555 } 5596 }
5556 } 5597 if (from.has_options()) {
5557 if (from._internal_metadata_.have_unknown_fields()) { 5598 mutable_options()->::google::protobuf::OneofOptions::MergeFrom(from.option s());
5558 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); 5599 }
5559 } 5600 }
5560 } 5601 }
5561 5602
5562 void OneofDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { 5603 void OneofDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
5563 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.OneofDes criptorProto) 5604 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.OneofDes criptorProto)
5564 if (&from == this) return; 5605 if (&from == this) return;
5565 Clear(); 5606 Clear();
5566 MergeFrom(from); 5607 MergeFrom(from);
5567 } 5608 }
5568 5609
5569 void OneofDescriptorProto::CopyFrom(const OneofDescriptorProto& from) { 5610 void OneofDescriptorProto::CopyFrom(const OneofDescriptorProto& from) {
5570 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Oneof DescriptorProto) 5611 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Oneof DescriptorProto)
5571 if (&from == this) return; 5612 if (&from == this) return;
5572 Clear(); 5613 Clear();
5573 MergeFrom(from); 5614 MergeFrom(from);
5574 } 5615 }
5575 5616
5576 bool OneofDescriptorProto::IsInitialized() const { 5617 bool OneofDescriptorProto::IsInitialized() const {
5577 5618 if (has_options()) {
5619 if (!this->options_->IsInitialized()) return false;
5620 }
5578 return true; 5621 return true;
5579 } 5622 }
5580 5623
5581 void OneofDescriptorProto::Swap(OneofDescriptorProto* other) { 5624 void OneofDescriptorProto::Swap(OneofDescriptorProto* other) {
5582 if (other == this) return; 5625 if (other == this) return;
5583 InternalSwap(other); 5626 InternalSwap(other);
5584 } 5627 }
5585 void OneofDescriptorProto::InternalSwap(OneofDescriptorProto* other) { 5628 void OneofDescriptorProto::InternalSwap(OneofDescriptorProto* other) {
5586 name_.Swap(&other->name_); 5629 name_.Swap(&other->name_);
5630 std::swap(options_, other->options_);
5587 std::swap(_has_bits_[0], other->_has_bits_[0]); 5631 std::swap(_has_bits_[0], other->_has_bits_[0]);
5588 _internal_metadata_.Swap(&other->_internal_metadata_); 5632 _internal_metadata_.Swap(&other->_internal_metadata_);
5589 std::swap(_cached_size_, other->_cached_size_); 5633 std::swap(_cached_size_, other->_cached_size_);
5590 } 5634 }
5591 5635
5592 ::google::protobuf::Metadata OneofDescriptorProto::GetMetadata() const { 5636 ::google::protobuf::Metadata OneofDescriptorProto::GetMetadata() const {
5593 protobuf_AssignDescriptorsOnce(); 5637 protobuf_AssignDescriptorsOnce();
5594 ::google::protobuf::Metadata metadata; 5638 return file_level_metadata[6];
5595 metadata.descriptor = OneofDescriptorProto_descriptor_;
5596 metadata.reflection = OneofDescriptorProto_reflection_;
5597 return metadata;
5598 } 5639 }
5599 5640
5600 #if PROTOBUF_INLINE_NOT_IN_HEADERS 5641 #if PROTOBUF_INLINE_NOT_IN_HEADERS
5601 // OneofDescriptorProto 5642 // OneofDescriptorProto
5602 5643
5603 // optional string name = 1; 5644 // optional string name = 1;
5604 bool OneofDescriptorProto::has_name() const { 5645 bool OneofDescriptorProto::has_name() const {
5605 return (_has_bits_[0] & 0x00000001u) != 0; 5646 return (_has_bits_[0] & 0x00000001u) != 0;
5606 } 5647 }
5607 void OneofDescriptorProto::set_has_name() { 5648 void OneofDescriptorProto::set_has_name() {
5608 _has_bits_[0] |= 0x00000001u; 5649 _has_bits_[0] |= 0x00000001u;
5609 } 5650 }
5610 void OneofDescriptorProto::clear_has_name() { 5651 void OneofDescriptorProto::clear_has_name() {
5611 _has_bits_[0] &= ~0x00000001u; 5652 _has_bits_[0] &= ~0x00000001u;
5612 } 5653 }
5613 void OneofDescriptorProto::clear_name() { 5654 void OneofDescriptorProto::clear_name() {
5614 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 5655 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
5615 clear_has_name(); 5656 clear_has_name();
5616 } 5657 }
5617 const ::std::string& OneofDescriptorProto::name() const { 5658 const ::std::string& OneofDescriptorProto::name() const {
5618 // @@protoc_insertion_point(field_get:google.protobuf.OneofDescriptorProto.nam e) 5659 // @@protoc_insertion_point(field_get:google.protobuf.OneofDescriptorProto.nam e)
5619 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited()); 5660 return name_.GetNoArena();
5620 } 5661 }
5621 void OneofDescriptorProto::set_name(const ::std::string& value) { 5662 void OneofDescriptorProto::set_name(const ::std::string& value) {
5622 set_has_name(); 5663 set_has_name();
5623 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 5664 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
5624 // @@protoc_insertion_point(field_set:google.protobuf.OneofDescriptorProto.nam e) 5665 // @@protoc_insertion_point(field_set:google.protobuf.OneofDescriptorProto.nam e)
5625 } 5666 }
5626 void OneofDescriptorProto::set_name(const char* value) { 5667 #if LANG_CXX11
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) {
5627 set_has_name(); 5676 set_has_name();
5628 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 5677 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
5629 // @@protoc_insertion_point(field_set_char:google.protobuf.OneofDescriptorProt o.name) 5678 // @@protoc_insertion_point(field_set_char:google.protobuf.OneofDescriptorProt o.name)
5630 } 5679 }
5631 void OneofDescriptorProto::set_name(const char* value, size_t size) { 5680 void OneofDescriptorProto::set_name(const char* value, size_t size) {
5632 set_has_name(); 5681 set_has_name();
5633 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 5682 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5634 ::std::string(reinterpret_cast<const char*>(value), size)); 5683 ::std::string(reinterpret_cast<const char*>(value), size));
5635 // @@protoc_insertion_point(field_set_pointer:google.protobuf.OneofDescriptorP roto.name) 5684 // @@protoc_insertion_point(field_set_pointer:google.protobuf.OneofDescriptorP roto.name)
5636 } 5685 }
5637 ::std::string* OneofDescriptorProto::mutable_name() { 5686 ::std::string* OneofDescriptorProto::mutable_name() {
5638 set_has_name(); 5687 set_has_name();
5639 // @@protoc_insertion_point(field_mutable:google.protobuf.OneofDescriptorProto .name) 5688 // @@protoc_insertion_point(field_mutable:google.protobuf.OneofDescriptorProto .name)
5640 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 5689 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
5641 } 5690 }
5642 ::std::string* OneofDescriptorProto::release_name() { 5691 ::std::string* OneofDescriptorProto::release_name() {
5643 // @@protoc_insertion_point(field_release:google.protobuf.OneofDescriptorProto .name) 5692 // @@protoc_insertion_point(field_release:google.protobuf.OneofDescriptorProto .name)
5644 clear_has_name(); 5693 clear_has_name();
5645 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 5694 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
5646 } 5695 }
5647 void OneofDescriptorProto::set_allocated_name(::std::string* name) { 5696 void OneofDescriptorProto::set_allocated_name(::std::string* name) {
5648 if (name != NULL) { 5697 if (name != NULL) {
5649 set_has_name(); 5698 set_has_name();
5650 } else { 5699 } else {
5651 clear_has_name(); 5700 clear_has_name();
5652 } 5701 }
5653 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name); 5702 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name);
5654 // @@protoc_insertion_point(field_set_allocated:google.protobuf.OneofDescripto rProto.name) 5703 // @@protoc_insertion_point(field_set_allocated:google.protobuf.OneofDescripto rProto.name)
5655 } 5704 }
5656 5705
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
5657 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 5751 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
5658 5752
5659 // =================================================================== 5753 // ===================================================================
5660 5754
5661 #if !defined(_MSC_VER) || _MSC_VER >= 1900 5755 #if !defined(_MSC_VER) || _MSC_VER >= 1900
5662 const int EnumDescriptorProto::kNameFieldNumber; 5756 const int EnumDescriptorProto::kNameFieldNumber;
5663 const int EnumDescriptorProto::kValueFieldNumber; 5757 const int EnumDescriptorProto::kValueFieldNumber;
5664 const int EnumDescriptorProto::kOptionsFieldNumber; 5758 const int EnumDescriptorProto::kOptionsFieldNumber;
5665 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 5759 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
5666 5760
5667 EnumDescriptorProto::EnumDescriptorProto() 5761 EnumDescriptorProto::EnumDescriptorProto()
5668 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 5762 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
5763 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
5764 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
5765 }
5669 SharedCtor(); 5766 SharedCtor();
5670 // @@protoc_insertion_point(constructor:google.protobuf.EnumDescriptorProto) 5767 // @@protoc_insertion_point(constructor:google.protobuf.EnumDescriptorProto)
5671 } 5768 }
5672
5673 void EnumDescriptorProto::InitAsDefaultInstance() {
5674 options_ = const_cast< ::google::protobuf::EnumOptions*>(&::google::protobuf:: EnumOptions::default_instance());
5675 }
5676
5677 EnumDescriptorProto::EnumDescriptorProto(const EnumDescriptorProto& from) 5769 EnumDescriptorProto::EnumDescriptorProto(const EnumDescriptorProto& from)
5678 : ::google::protobuf::Message(), 5770 : ::google::protobuf::Message(),
5679 _internal_metadata_(NULL) { 5771 _internal_metadata_(NULL),
5680 SharedCtor(); 5772 _has_bits_(from._has_bits_),
5681 MergeFrom(from); 5773 _cached_size_(0),
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 }
5682 // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumDescriptorPro to) 5785 // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumDescriptorPro to)
5683 } 5786 }
5684 5787
5685 void EnumDescriptorProto::SharedCtor() { 5788 void EnumDescriptorProto::SharedCtor() {
5686 ::google::protobuf::internal::GetEmptyString();
5687 _cached_size_ = 0; 5789 _cached_size_ = 0;
5688 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted()); 5790 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
5689 options_ = NULL; 5791 options_ = NULL;
5690 ::memset(_has_bits_, 0, sizeof(_has_bits_));
5691 } 5792 }
5692 5793
5693 EnumDescriptorProto::~EnumDescriptorProto() { 5794 EnumDescriptorProto::~EnumDescriptorProto() {
5694 // @@protoc_insertion_point(destructor:google.protobuf.EnumDescriptorProto) 5795 // @@protoc_insertion_point(destructor:google.protobuf.EnumDescriptorProto)
5695 SharedDtor(); 5796 SharedDtor();
5696 } 5797 }
5697 5798
5698 void EnumDescriptorProto::SharedDtor() { 5799 void EnumDescriptorProto::SharedDtor() {
5699 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d()); 5800 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d());
5700 if (this != default_instance_) { 5801 if (this != internal_default_instance()) {
5701 delete options_; 5802 delete options_;
5702 } 5803 }
5703 } 5804 }
5704 5805
5705 void EnumDescriptorProto::SetCachedSize(int size) const { 5806 void EnumDescriptorProto::SetCachedSize(int size) const {
5706 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 5807 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5707 _cached_size_ = size; 5808 _cached_size_ = size;
5708 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 5809 GOOGLE_SAFE_CONCURRENT_WRITES_END();
5709 } 5810 }
5710 const ::google::protobuf::Descriptor* EnumDescriptorProto::descriptor() { 5811 const ::google::protobuf::Descriptor* EnumDescriptorProto::descriptor() {
5711 protobuf_AssignDescriptorsOnce(); 5812 protobuf_AssignDescriptorsOnce();
5712 return EnumDescriptorProto_descriptor_; 5813 return file_level_metadata[7].descriptor;
5713 } 5814 }
5714 5815
5715 const EnumDescriptorProto& EnumDescriptorProto::default_instance() { 5816 const EnumDescriptorProto& EnumDescriptorProto::default_instance() {
5716 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 5817 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
5717 return *default_instance_; 5818 return *internal_default_instance();
5718 } 5819 }
5719 5820
5720 EnumDescriptorProto* EnumDescriptorProto::default_instance_ = NULL;
5721
5722 EnumDescriptorProto* EnumDescriptorProto::New(::google::protobuf::Arena* arena) const { 5821 EnumDescriptorProto* EnumDescriptorProto::New(::google::protobuf::Arena* arena) const {
5723 EnumDescriptorProto* n = new EnumDescriptorProto; 5822 EnumDescriptorProto* n = new EnumDescriptorProto;
5724 if (arena != NULL) { 5823 if (arena != NULL) {
5725 arena->Own(n); 5824 arena->Own(n);
5726 } 5825 }
5727 return n; 5826 return n;
5728 } 5827 }
5729 5828
5730 void EnumDescriptorProto::Clear() { 5829 void EnumDescriptorProto::Clear() {
5731 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumDescriptorPr oto) 5830 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumDescriptorPr oto)
5732 if (_has_bits_[0 / 32] & 5u) { 5831 value_.Clear();
5832 if (_has_bits_[0 / 32] & 3u) {
5733 if (has_name()) { 5833 if (has_name()) {
5734 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited()); 5834 GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited()));
5835 (*name_.UnsafeRawStringPointer())->clear();
5735 } 5836 }
5736 if (has_options()) { 5837 if (has_options()) {
5737 if (options_ != NULL) options_->::google::protobuf::EnumOptions::Clear(); 5838 GOOGLE_DCHECK(options_ != NULL);
5839 options_->::google::protobuf::EnumOptions::Clear();
5738 } 5840 }
5739 } 5841 }
5740 value_.Clear(); 5842 _has_bits_.Clear();
5741 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 5843 _internal_metadata_.Clear();
5742 if (_internal_metadata_.have_unknown_fields()) {
5743 mutable_unknown_fields()->Clear();
5744 }
5745 } 5844 }
5746 5845
5747 bool EnumDescriptorProto::MergePartialFromCodedStream( 5846 bool EnumDescriptorProto::MergePartialFromCodedStream(
5748 ::google::protobuf::io::CodedInputStream* input) { 5847 ::google::protobuf::io::CodedInputStream* input) {
5749 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 5848 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
5750 ::google::protobuf::uint32 tag; 5849 ::google::protobuf::uint32 tag;
5751 // @@protoc_insertion_point(parse_start:google.protobuf.EnumDescriptorProto) 5850 // @@protoc_insertion_point(parse_start:google.protobuf.EnumDescriptorProto)
5752 for (;;) { 5851 for (;;) {
5753 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127); 5852 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u);
5754 tag = p.first; 5853 tag = p.first;
5755 if (!p.second) goto handle_unusual; 5854 if (!p.second) goto handle_unusual;
5756 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 5855 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
5757 // optional string name = 1; 5856 // optional string name = 1;
5758 case 1: { 5857 case 1: {
5759 if (tag == 10) { 5858 if (tag == 10u) {
5760 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 5859 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5761 input, this->mutable_name())); 5860 input, this->mutable_name()));
5762 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 5861 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5763 this->name().data(), this->name().length(), 5862 this->name().data(), this->name().length(),
5764 ::google::protobuf::internal::WireFormat::PARSE, 5863 ::google::protobuf::internal::WireFormat::PARSE,
5765 "google.protobuf.EnumDescriptorProto.name"); 5864 "google.protobuf.EnumDescriptorProto.name");
5766 } else { 5865 } else {
5767 goto handle_unusual; 5866 goto handle_unusual;
5768 } 5867 }
5769 if (input->ExpectTag(18)) goto parse_value;
5770 break; 5868 break;
5771 } 5869 }
5772 5870
5773 // repeated .google.protobuf.EnumValueDescriptorProto value = 2; 5871 // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
5774 case 2: { 5872 case 2: {
5775 if (tag == 18) { 5873 if (tag == 18u) {
5776 parse_value:
5777 DO_(input->IncrementRecursionDepth()); 5874 DO_(input->IncrementRecursionDepth());
5778 parse_loop_value:
5779 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 5875 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
5780 input, add_value())); 5876 input, add_value()));
5781 } else { 5877 } else {
5782 goto handle_unusual; 5878 goto handle_unusual;
5783 } 5879 }
5784 if (input->ExpectTag(18)) goto parse_loop_value;
5785 input->UnsafeDecrementRecursionDepth(); 5880 input->UnsafeDecrementRecursionDepth();
5786 if (input->ExpectTag(26)) goto parse_options;
5787 break; 5881 break;
5788 } 5882 }
5789 5883
5790 // optional .google.protobuf.EnumOptions options = 3; 5884 // optional .google.protobuf.EnumOptions options = 3;
5791 case 3: { 5885 case 3: {
5792 if (tag == 26) { 5886 if (tag == 26u) {
5793 parse_options:
5794 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual ( 5887 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual (
5795 input, mutable_options())); 5888 input, mutable_options()));
5796 } else { 5889 } else {
5797 goto handle_unusual; 5890 goto handle_unusual;
5798 } 5891 }
5799 if (input->ExpectAtEnd()) goto success;
5800 break; 5892 break;
5801 } 5893 }
5802 5894
5803 default: { 5895 default: {
5804 handle_unusual: 5896 handle_unusual:
5805 if (tag == 0 || 5897 if (tag == 0 ||
5806 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 5898 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5807 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 5899 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
5808 goto success; 5900 goto success;
5809 } 5901 }
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
5847 3, *this->options_, output); 5939 3, *this->options_, output);
5848 } 5940 }
5849 5941
5850 if (_internal_metadata_.have_unknown_fields()) { 5942 if (_internal_metadata_.have_unknown_fields()) {
5851 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 5943 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5852 unknown_fields(), output); 5944 unknown_fields(), output);
5853 } 5945 }
5854 // @@protoc_insertion_point(serialize_end:google.protobuf.EnumDescriptorProto) 5946 // @@protoc_insertion_point(serialize_end:google.protobuf.EnumDescriptorProto)
5855 } 5947 }
5856 5948
5857 ::google::protobuf::uint8* EnumDescriptorProto::SerializeWithCachedSizesToArray( 5949 ::google::protobuf::uint8* EnumDescriptorProto::InternalSerializeWithCachedSizes ToArray(
5858 ::google::protobuf::uint8* target) const { 5950 bool deterministic, ::google::protobuf::uint8* target) const {
5951 (void)deterministic; // Unused
5859 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumDescr iptorProto) 5952 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumDescr iptorProto)
5860 // optional string name = 1; 5953 // optional string name = 1;
5861 if (has_name()) { 5954 if (has_name()) {
5862 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 5955 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5863 this->name().data(), this->name().length(), 5956 this->name().data(), this->name().length(),
5864 ::google::protobuf::internal::WireFormat::SERIALIZE, 5957 ::google::protobuf::internal::WireFormat::SERIALIZE,
5865 "google.protobuf.EnumDescriptorProto.name"); 5958 "google.protobuf.EnumDescriptorProto.name");
5866 target = 5959 target =
5867 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 5960 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5868 1, this->name(), target); 5961 1, this->name(), target);
5869 } 5962 }
5870 5963
5871 // repeated .google.protobuf.EnumValueDescriptorProto value = 2; 5964 // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
5872 for (unsigned int i = 0, n = this->value_size(); i < n; i++) { 5965 for (unsigned int i = 0, n = this->value_size(); i < n; i++) {
5873 target = ::google::protobuf::internal::WireFormatLite:: 5966 target = ::google::protobuf::internal::WireFormatLite::
5874 WriteMessageNoVirtualToArray( 5967 InternalWriteMessageNoVirtualToArray(
5875 2, this->value(i), target); 5968 2, this->value(i), false, target);
5876 } 5969 }
5877 5970
5878 // optional .google.protobuf.EnumOptions options = 3; 5971 // optional .google.protobuf.EnumOptions options = 3;
5879 if (has_options()) { 5972 if (has_options()) {
5880 target = ::google::protobuf::internal::WireFormatLite:: 5973 target = ::google::protobuf::internal::WireFormatLite::
5881 WriteMessageNoVirtualToArray( 5974 InternalWriteMessageNoVirtualToArray(
5882 3, *this->options_, target); 5975 3, *this->options_, false, target);
5883 } 5976 }
5884 5977
5885 if (_internal_metadata_.have_unknown_fields()) { 5978 if (_internal_metadata_.have_unknown_fields()) {
5886 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 5979 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
5887 unknown_fields(), target); 5980 unknown_fields(), target);
5888 } 5981 }
5889 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumDescrip torProto) 5982 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumDescrip torProto)
5890 return target; 5983 return target;
5891 } 5984 }
5892 5985
5893 int EnumDescriptorProto::ByteSize() const { 5986 size_t EnumDescriptorProto::ByteSizeLong() const {
5894 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumDescript orProto) 5987 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumDescript orProto)
5895 int total_size = 0; 5988 size_t total_size = 0;
5896 5989
5897 if (_has_bits_[0 / 32] & 5u) { 5990 if (_internal_metadata_.have_unknown_fields()) {
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) {
5898 // optional string name = 1; 6007 // optional string name = 1;
5899 if (has_name()) { 6008 if (has_name()) {
5900 total_size += 1 + 6009 total_size += 1 +
5901 ::google::protobuf::internal::WireFormatLite::StringSize( 6010 ::google::protobuf::internal::WireFormatLite::StringSize(
5902 this->name()); 6011 this->name());
5903 } 6012 }
5904 6013
5905 // optional .google.protobuf.EnumOptions options = 3; 6014 // optional .google.protobuf.EnumOptions options = 3;
5906 if (has_options()) { 6015 if (has_options()) {
5907 total_size += 1 + 6016 total_size += 1 +
5908 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( 6017 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
5909 *this->options_); 6018 *this->options_);
5910 } 6019 }
5911 6020
5912 } 6021 }
5913 // repeated .google.protobuf.EnumValueDescriptorProto value = 2; 6022 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
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 }
5926 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 6023 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5927 _cached_size_ = total_size; 6024 _cached_size_ = cached_size;
5928 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 6025 GOOGLE_SAFE_CONCURRENT_WRITES_END();
5929 return total_size; 6026 return total_size;
5930 } 6027 }
5931 6028
5932 void EnumDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { 6029 void EnumDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
5933 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumDes criptorProto) 6030 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumDes criptorProto)
5934 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 6031 GOOGLE_DCHECK_NE(&from, this);
5935 const EnumDescriptorProto* source = 6032 const EnumDescriptorProto* source =
5936 ::google::protobuf::internal::DynamicCastToGenerated<const EnumDescriptorP roto>( 6033 ::google::protobuf::internal::DynamicCastToGenerated<const EnumDescriptorP roto>(
5937 &from); 6034 &from);
5938 if (source == NULL) { 6035 if (source == NULL) {
5939 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.E numDescriptorProto) 6036 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.E numDescriptorProto)
5940 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 6037 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5941 } else { 6038 } else {
5942 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.EnumDescriptorProto) 6039 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.EnumDescriptorProto)
5943 MergeFrom(*source); 6040 MergeFrom(*source);
5944 } 6041 }
5945 } 6042 }
5946 6043
5947 void EnumDescriptorProto::MergeFrom(const EnumDescriptorProto& from) { 6044 void EnumDescriptorProto::MergeFrom(const EnumDescriptorProto& from) {
5948 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Enum DescriptorProto) 6045 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Enum DescriptorProto)
5949 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 6046 GOOGLE_DCHECK_NE(&from, this);
6047 _internal_metadata_.MergeFrom(from._internal_metadata_);
5950 value_.MergeFrom(from.value_); 6048 value_.MergeFrom(from.value_);
5951 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { 6049 if (from._has_bits_[0 / 32] & 3u) {
5952 if (from.has_name()) { 6050 if (from.has_name()) {
5953 set_has_name(); 6051 set_has_name();
5954 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), from.name_); 6052 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), from.name_);
5955 } 6053 }
5956 if (from.has_options()) { 6054 if (from.has_options()) {
5957 mutable_options()->::google::protobuf::EnumOptions::MergeFrom(from.options ()); 6055 mutable_options()->::google::protobuf::EnumOptions::MergeFrom(from.options ());
5958 } 6056 }
5959 } 6057 }
5960 if (from._internal_metadata_.have_unknown_fields()) {
5961 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
5962 }
5963 } 6058 }
5964 6059
5965 void EnumDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { 6060 void EnumDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
5966 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumDesc riptorProto) 6061 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumDesc riptorProto)
5967 if (&from == this) return; 6062 if (&from == this) return;
5968 Clear(); 6063 Clear();
5969 MergeFrom(from); 6064 MergeFrom(from);
5970 } 6065 }
5971 6066
5972 void EnumDescriptorProto::CopyFrom(const EnumDescriptorProto& from) { 6067 void EnumDescriptorProto::CopyFrom(const EnumDescriptorProto& from) {
5973 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumD escriptorProto) 6068 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumD escriptorProto)
5974 if (&from == this) return; 6069 if (&from == this) return;
5975 Clear(); 6070 Clear();
5976 MergeFrom(from); 6071 MergeFrom(from);
5977 } 6072 }
5978 6073
5979 bool EnumDescriptorProto::IsInitialized() const { 6074 bool EnumDescriptorProto::IsInitialized() const {
5980
5981 if (!::google::protobuf::internal::AllAreInitialized(this->value())) return fa lse; 6075 if (!::google::protobuf::internal::AllAreInitialized(this->value())) return fa lse;
5982 if (has_options()) { 6076 if (has_options()) {
5983 if (!this->options_->IsInitialized()) return false; 6077 if (!this->options_->IsInitialized()) return false;
5984 } 6078 }
5985 return true; 6079 return true;
5986 } 6080 }
5987 6081
5988 void EnumDescriptorProto::Swap(EnumDescriptorProto* other) { 6082 void EnumDescriptorProto::Swap(EnumDescriptorProto* other) {
5989 if (other == this) return; 6083 if (other == this) return;
5990 InternalSwap(other); 6084 InternalSwap(other);
5991 } 6085 }
5992 void EnumDescriptorProto::InternalSwap(EnumDescriptorProto* other) { 6086 void EnumDescriptorProto::InternalSwap(EnumDescriptorProto* other) {
6087 value_.UnsafeArenaSwap(&other->value_);
5993 name_.Swap(&other->name_); 6088 name_.Swap(&other->name_);
5994 value_.UnsafeArenaSwap(&other->value_);
5995 std::swap(options_, other->options_); 6089 std::swap(options_, other->options_);
5996 std::swap(_has_bits_[0], other->_has_bits_[0]); 6090 std::swap(_has_bits_[0], other->_has_bits_[0]);
5997 _internal_metadata_.Swap(&other->_internal_metadata_); 6091 _internal_metadata_.Swap(&other->_internal_metadata_);
5998 std::swap(_cached_size_, other->_cached_size_); 6092 std::swap(_cached_size_, other->_cached_size_);
5999 } 6093 }
6000 6094
6001 ::google::protobuf::Metadata EnumDescriptorProto::GetMetadata() const { 6095 ::google::protobuf::Metadata EnumDescriptorProto::GetMetadata() const {
6002 protobuf_AssignDescriptorsOnce(); 6096 protobuf_AssignDescriptorsOnce();
6003 ::google::protobuf::Metadata metadata; 6097 return file_level_metadata[7];
6004 metadata.descriptor = EnumDescriptorProto_descriptor_;
6005 metadata.reflection = EnumDescriptorProto_reflection_;
6006 return metadata;
6007 } 6098 }
6008 6099
6009 #if PROTOBUF_INLINE_NOT_IN_HEADERS 6100 #if PROTOBUF_INLINE_NOT_IN_HEADERS
6010 // EnumDescriptorProto 6101 // EnumDescriptorProto
6011 6102
6012 // optional string name = 1; 6103 // optional string name = 1;
6013 bool EnumDescriptorProto::has_name() const { 6104 bool EnumDescriptorProto::has_name() const {
6014 return (_has_bits_[0] & 0x00000001u) != 0; 6105 return (_has_bits_[0] & 0x00000001u) != 0;
6015 } 6106 }
6016 void EnumDescriptorProto::set_has_name() { 6107 void EnumDescriptorProto::set_has_name() {
6017 _has_bits_[0] |= 0x00000001u; 6108 _has_bits_[0] |= 0x00000001u;
6018 } 6109 }
6019 void EnumDescriptorProto::clear_has_name() { 6110 void EnumDescriptorProto::clear_has_name() {
6020 _has_bits_[0] &= ~0x00000001u; 6111 _has_bits_[0] &= ~0x00000001u;
6021 } 6112 }
6022 void EnumDescriptorProto::clear_name() { 6113 void EnumDescriptorProto::clear_name() {
6023 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 6114 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
6024 clear_has_name(); 6115 clear_has_name();
6025 } 6116 }
6026 const ::std::string& EnumDescriptorProto::name() const { 6117 const ::std::string& EnumDescriptorProto::name() const {
6027 // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.name ) 6118 // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.name )
6028 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited()); 6119 return name_.GetNoArena();
6029 } 6120 }
6030 void EnumDescriptorProto::set_name(const ::std::string& value) { 6121 void EnumDescriptorProto::set_name(const ::std::string& value) {
6031 set_has_name(); 6122 set_has_name();
6032 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 6123 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
6033 // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.name ) 6124 // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.name )
6034 } 6125 }
6035 void EnumDescriptorProto::set_name(const char* value) { 6126 #if LANG_CXX11
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) {
6036 set_has_name(); 6135 set_has_name();
6037 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 6136 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
6038 // @@protoc_insertion_point(field_set_char:google.protobuf.EnumDescriptorProto .name) 6137 // @@protoc_insertion_point(field_set_char:google.protobuf.EnumDescriptorProto .name)
6039 } 6138 }
6040 void EnumDescriptorProto::set_name(const char* value, size_t size) { 6139 void EnumDescriptorProto::set_name(const char* value, size_t size) {
6041 set_has_name(); 6140 set_has_name();
6042 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 6141 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6043 ::std::string(reinterpret_cast<const char*>(value), size)); 6142 ::std::string(reinterpret_cast<const char*>(value), size));
6044 // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumDescriptorPr oto.name) 6143 // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumDescriptorPr oto.name)
6045 } 6144 }
6046 ::std::string* EnumDescriptorProto::mutable_name() { 6145 ::std::string* EnumDescriptorProto::mutable_name() {
6047 set_has_name(); 6146 set_has_name();
6048 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto. name) 6147 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto. name)
6049 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 6148 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
6050 } 6149 }
6051 ::std::string* EnumDescriptorProto::release_name() { 6150 ::std::string* EnumDescriptorProto::release_name() {
6052 // @@protoc_insertion_point(field_release:google.protobuf.EnumDescriptorProto. name) 6151 // @@protoc_insertion_point(field_release:google.protobuf.EnumDescriptorProto. name)
6053 clear_has_name(); 6152 clear_has_name();
6054 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 6153 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
6055 } 6154 }
6056 void EnumDescriptorProto::set_allocated_name(::std::string* name) { 6155 void EnumDescriptorProto::set_allocated_name(::std::string* name) {
6057 if (name != NULL) { 6156 if (name != NULL) {
6058 set_has_name(); 6157 set_has_name();
6059 } else { 6158 } else {
6060 clear_has_name(); 6159 clear_has_name();
6061 } 6160 }
6062 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name); 6161 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name);
6063 // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumDescriptor Proto.name) 6162 // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumDescriptor Proto.name)
6064 } 6163 }
6065 6164
6066 // repeated .google.protobuf.EnumValueDescriptorProto value = 2; 6165 // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
(...skipping 21 matching lines...) Expand all
6088 return &value_; 6187 return &value_;
6089 } 6188 }
6090 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescrip torProto >& 6189 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescrip torProto >&
6091 EnumDescriptorProto::value() const { 6190 EnumDescriptorProto::value() const {
6092 // @@protoc_insertion_point(field_list:google.protobuf.EnumDescriptorProto.val ue) 6191 // @@protoc_insertion_point(field_list:google.protobuf.EnumDescriptorProto.val ue)
6093 return value_; 6192 return value_;
6094 } 6193 }
6095 6194
6096 // optional .google.protobuf.EnumOptions options = 3; 6195 // optional .google.protobuf.EnumOptions options = 3;
6097 bool EnumDescriptorProto::has_options() const { 6196 bool EnumDescriptorProto::has_options() const {
6098 return (_has_bits_[0] & 0x00000004u) != 0; 6197 return (_has_bits_[0] & 0x00000002u) != 0;
6099 } 6198 }
6100 void EnumDescriptorProto::set_has_options() { 6199 void EnumDescriptorProto::set_has_options() {
6101 _has_bits_[0] |= 0x00000004u; 6200 _has_bits_[0] |= 0x00000002u;
6102 } 6201 }
6103 void EnumDescriptorProto::clear_has_options() { 6202 void EnumDescriptorProto::clear_has_options() {
6104 _has_bits_[0] &= ~0x00000004u; 6203 _has_bits_[0] &= ~0x00000002u;
6105 } 6204 }
6106 void EnumDescriptorProto::clear_options() { 6205 void EnumDescriptorProto::clear_options() {
6107 if (options_ != NULL) options_->::google::protobuf::EnumOptions::Clear(); 6206 if (options_ != NULL) options_->::google::protobuf::EnumOptions::Clear();
6108 clear_has_options(); 6207 clear_has_options();
6109 } 6208 }
6110 const ::google::protobuf::EnumOptions& EnumDescriptorProto::options() const { 6209 const ::google::protobuf::EnumOptions& EnumDescriptorProto::options() const {
6111 // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.opti ons) 6210 // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.opti ons)
6112 return options_ != NULL ? *options_ : *default_instance_->options_; 6211 return options_ != NULL ? *options_
6212 : *::google::protobuf::EnumOptions::internal_default_in stance();
6113 } 6213 }
6114 ::google::protobuf::EnumOptions* EnumDescriptorProto::mutable_options() { 6214 ::google::protobuf::EnumOptions* EnumDescriptorProto::mutable_options() {
6115 set_has_options(); 6215 set_has_options();
6116 if (options_ == NULL) { 6216 if (options_ == NULL) {
6117 options_ = new ::google::protobuf::EnumOptions; 6217 options_ = new ::google::protobuf::EnumOptions;
6118 } 6218 }
6119 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto. options) 6219 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto. options)
6120 return options_; 6220 return options_;
6121 } 6221 }
6122 ::google::protobuf::EnumOptions* EnumDescriptorProto::release_options() { 6222 ::google::protobuf::EnumOptions* EnumDescriptorProto::release_options() {
(...skipping 19 matching lines...) Expand all
6142 // =================================================================== 6242 // ===================================================================
6143 6243
6144 #if !defined(_MSC_VER) || _MSC_VER >= 1900 6244 #if !defined(_MSC_VER) || _MSC_VER >= 1900
6145 const int EnumValueDescriptorProto::kNameFieldNumber; 6245 const int EnumValueDescriptorProto::kNameFieldNumber;
6146 const int EnumValueDescriptorProto::kNumberFieldNumber; 6246 const int EnumValueDescriptorProto::kNumberFieldNumber;
6147 const int EnumValueDescriptorProto::kOptionsFieldNumber; 6247 const int EnumValueDescriptorProto::kOptionsFieldNumber;
6148 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 6248 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
6149 6249
6150 EnumValueDescriptorProto::EnumValueDescriptorProto() 6250 EnumValueDescriptorProto::EnumValueDescriptorProto()
6151 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 6251 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
6252 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
6253 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
6254 }
6152 SharedCtor(); 6255 SharedCtor();
6153 // @@protoc_insertion_point(constructor:google.protobuf.EnumValueDescriptorPro to) 6256 // @@protoc_insertion_point(constructor:google.protobuf.EnumValueDescriptorPro to)
6154 } 6257 }
6155
6156 void EnumValueDescriptorProto::InitAsDefaultInstance() {
6157 options_ = const_cast< ::google::protobuf::EnumValueOptions*>(&::google::proto buf::EnumValueOptions::default_instance());
6158 }
6159
6160 EnumValueDescriptorProto::EnumValueDescriptorProto(const EnumValueDescriptorProt o& from) 6258 EnumValueDescriptorProto::EnumValueDescriptorProto(const EnumValueDescriptorProt o& from)
6161 : ::google::protobuf::Message(), 6259 : ::google::protobuf::Message(),
6162 _internal_metadata_(NULL) { 6260 _internal_metadata_(NULL),
6163 SharedCtor(); 6261 _has_bits_(from._has_bits_),
6164 MergeFrom(from); 6262 _cached_size_(0) {
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_;
6165 // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValueDescript orProto) 6274 // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValueDescript orProto)
6166 } 6275 }
6167 6276
6168 void EnumValueDescriptorProto::SharedCtor() { 6277 void EnumValueDescriptorProto::SharedCtor() {
6169 ::google::protobuf::internal::GetEmptyString();
6170 _cached_size_ = 0; 6278 _cached_size_ = 0;
6171 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted()); 6279 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
6172 number_ = 0; 6280 ::memset(&options_, 0, reinterpret_cast<char*>(&number_) -
6173 options_ = NULL; 6281 reinterpret_cast<char*>(&options_) + sizeof(number_));
6174 ::memset(_has_bits_, 0, sizeof(_has_bits_));
6175 } 6282 }
6176 6283
6177 EnumValueDescriptorProto::~EnumValueDescriptorProto() { 6284 EnumValueDescriptorProto::~EnumValueDescriptorProto() {
6178 // @@protoc_insertion_point(destructor:google.protobuf.EnumValueDescriptorProt o) 6285 // @@protoc_insertion_point(destructor:google.protobuf.EnumValueDescriptorProt o)
6179 SharedDtor(); 6286 SharedDtor();
6180 } 6287 }
6181 6288
6182 void EnumValueDescriptorProto::SharedDtor() { 6289 void EnumValueDescriptorProto::SharedDtor() {
6183 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d()); 6290 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d());
6184 if (this != default_instance_) { 6291 if (this != internal_default_instance()) {
6185 delete options_; 6292 delete options_;
6186 } 6293 }
6187 } 6294 }
6188 6295
6189 void EnumValueDescriptorProto::SetCachedSize(int size) const { 6296 void EnumValueDescriptorProto::SetCachedSize(int size) const {
6190 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 6297 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6191 _cached_size_ = size; 6298 _cached_size_ = size;
6192 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 6299 GOOGLE_SAFE_CONCURRENT_WRITES_END();
6193 } 6300 }
6194 const ::google::protobuf::Descriptor* EnumValueDescriptorProto::descriptor() { 6301 const ::google::protobuf::Descriptor* EnumValueDescriptorProto::descriptor() {
6195 protobuf_AssignDescriptorsOnce(); 6302 protobuf_AssignDescriptorsOnce();
6196 return EnumValueDescriptorProto_descriptor_; 6303 return file_level_metadata[8].descriptor;
6197 } 6304 }
6198 6305
6199 const EnumValueDescriptorProto& EnumValueDescriptorProto::default_instance() { 6306 const EnumValueDescriptorProto& EnumValueDescriptorProto::default_instance() {
6200 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 6307 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
6201 return *default_instance_; 6308 return *internal_default_instance();
6202 } 6309 }
6203 6310
6204 EnumValueDescriptorProto* EnumValueDescriptorProto::default_instance_ = NULL;
6205
6206 EnumValueDescriptorProto* EnumValueDescriptorProto::New(::google::protobuf::Aren a* arena) const { 6311 EnumValueDescriptorProto* EnumValueDescriptorProto::New(::google::protobuf::Aren a* arena) const {
6207 EnumValueDescriptorProto* n = new EnumValueDescriptorProto; 6312 EnumValueDescriptorProto* n = new EnumValueDescriptorProto;
6208 if (arena != NULL) { 6313 if (arena != NULL) {
6209 arena->Own(n); 6314 arena->Own(n);
6210 } 6315 }
6211 return n; 6316 return n;
6212 } 6317 }
6213 6318
6214 void EnumValueDescriptorProto::Clear() { 6319 void EnumValueDescriptorProto::Clear() {
6215 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumValueDescrip torProto) 6320 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumValueDescrip torProto)
6216 if (_has_bits_[0 / 32] & 7u) { 6321 if (_has_bits_[0 / 32] & 3u) {
6217 if (has_name()) { 6322 if (has_name()) {
6218 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited()); 6323 GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited()));
6324 (*name_.UnsafeRawStringPointer())->clear();
6219 } 6325 }
6220 number_ = 0;
6221 if (has_options()) { 6326 if (has_options()) {
6222 if (options_ != NULL) options_->::google::protobuf::EnumValueOptions::Clea r(); 6327 GOOGLE_DCHECK(options_ != NULL);
6328 options_->::google::protobuf::EnumValueOptions::Clear();
6223 } 6329 }
6224 } 6330 }
6225 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 6331 number_ = 0;
6226 if (_internal_metadata_.have_unknown_fields()) { 6332 _has_bits_.Clear();
6227 mutable_unknown_fields()->Clear(); 6333 _internal_metadata_.Clear();
6228 }
6229 } 6334 }
6230 6335
6231 bool EnumValueDescriptorProto::MergePartialFromCodedStream( 6336 bool EnumValueDescriptorProto::MergePartialFromCodedStream(
6232 ::google::protobuf::io::CodedInputStream* input) { 6337 ::google::protobuf::io::CodedInputStream* input) {
6233 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 6338 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
6234 ::google::protobuf::uint32 tag; 6339 ::google::protobuf::uint32 tag;
6235 // @@protoc_insertion_point(parse_start:google.protobuf.EnumValueDescriptorPro to) 6340 // @@protoc_insertion_point(parse_start:google.protobuf.EnumValueDescriptorPro to)
6236 for (;;) { 6341 for (;;) {
6237 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127); 6342 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u);
6238 tag = p.first; 6343 tag = p.first;
6239 if (!p.second) goto handle_unusual; 6344 if (!p.second) goto handle_unusual;
6240 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 6345 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
6241 // optional string name = 1; 6346 // optional string name = 1;
6242 case 1: { 6347 case 1: {
6243 if (tag == 10) { 6348 if (tag == 10u) {
6244 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 6349 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6245 input, this->mutable_name())); 6350 input, this->mutable_name()));
6246 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 6351 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6247 this->name().data(), this->name().length(), 6352 this->name().data(), this->name().length(),
6248 ::google::protobuf::internal::WireFormat::PARSE, 6353 ::google::protobuf::internal::WireFormat::PARSE,
6249 "google.protobuf.EnumValueDescriptorProto.name"); 6354 "google.protobuf.EnumValueDescriptorProto.name");
6250 } else { 6355 } else {
6251 goto handle_unusual; 6356 goto handle_unusual;
6252 } 6357 }
6253 if (input->ExpectTag(16)) goto parse_number;
6254 break; 6358 break;
6255 } 6359 }
6256 6360
6257 // optional int32 number = 2; 6361 // optional int32 number = 2;
6258 case 2: { 6362 case 2: {
6259 if (tag == 16) { 6363 if (tag == 16u) {
6260 parse_number: 6364 set_has_number();
6261 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 6365 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6262 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>( 6366 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
6263 input, &number_))); 6367 input, &number_)));
6264 set_has_number();
6265 } else { 6368 } else {
6266 goto handle_unusual; 6369 goto handle_unusual;
6267 } 6370 }
6268 if (input->ExpectTag(26)) goto parse_options;
6269 break; 6371 break;
6270 } 6372 }
6271 6373
6272 // optional .google.protobuf.EnumValueOptions options = 3; 6374 // optional .google.protobuf.EnumValueOptions options = 3;
6273 case 3: { 6375 case 3: {
6274 if (tag == 26) { 6376 if (tag == 26u) {
6275 parse_options:
6276 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual ( 6377 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual (
6277 input, mutable_options())); 6378 input, mutable_options()));
6278 } else { 6379 } else {
6279 goto handle_unusual; 6380 goto handle_unusual;
6280 } 6381 }
6281 if (input->ExpectAtEnd()) goto success;
6282 break; 6382 break;
6283 } 6383 }
6284 6384
6285 default: { 6385 default: {
6286 handle_unusual: 6386 handle_unusual:
6287 if (tag == 0 || 6387 if (tag == 0 ||
6288 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 6388 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6289 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 6389 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
6290 goto success; 6390 goto success;
6291 } 6391 }
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
6328 3, *this->options_, output); 6428 3, *this->options_, output);
6329 } 6429 }
6330 6430
6331 if (_internal_metadata_.have_unknown_fields()) { 6431 if (_internal_metadata_.have_unknown_fields()) {
6332 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 6432 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6333 unknown_fields(), output); 6433 unknown_fields(), output);
6334 } 6434 }
6335 // @@protoc_insertion_point(serialize_end:google.protobuf.EnumValueDescriptorP roto) 6435 // @@protoc_insertion_point(serialize_end:google.protobuf.EnumValueDescriptorP roto)
6336 } 6436 }
6337 6437
6338 ::google::protobuf::uint8* EnumValueDescriptorProto::SerializeWithCachedSizesToA rray( 6438 ::google::protobuf::uint8* EnumValueDescriptorProto::InternalSerializeWithCached SizesToArray(
6339 ::google::protobuf::uint8* target) const { 6439 bool deterministic, ::google::protobuf::uint8* target) const {
6440 (void)deterministic; // Unused
6340 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValue DescriptorProto) 6441 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValue DescriptorProto)
6341 // optional string name = 1; 6442 // optional string name = 1;
6342 if (has_name()) { 6443 if (has_name()) {
6343 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 6444 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6344 this->name().data(), this->name().length(), 6445 this->name().data(), this->name().length(),
6345 ::google::protobuf::internal::WireFormat::SERIALIZE, 6446 ::google::protobuf::internal::WireFormat::SERIALIZE,
6346 "google.protobuf.EnumValueDescriptorProto.name"); 6447 "google.protobuf.EnumValueDescriptorProto.name");
6347 target = 6448 target =
6348 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 6449 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6349 1, this->name(), target); 6450 1, this->name(), target);
6350 } 6451 }
6351 6452
6352 // optional int32 number = 2; 6453 // optional int32 number = 2;
6353 if (has_number()) { 6454 if (has_number()) {
6354 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->number(), target); 6455 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->number(), target);
6355 } 6456 }
6356 6457
6357 // optional .google.protobuf.EnumValueOptions options = 3; 6458 // optional .google.protobuf.EnumValueOptions options = 3;
6358 if (has_options()) { 6459 if (has_options()) {
6359 target = ::google::protobuf::internal::WireFormatLite:: 6460 target = ::google::protobuf::internal::WireFormatLite::
6360 WriteMessageNoVirtualToArray( 6461 InternalWriteMessageNoVirtualToArray(
6361 3, *this->options_, target); 6462 3, *this->options_, false, target);
6362 } 6463 }
6363 6464
6364 if (_internal_metadata_.have_unknown_fields()) { 6465 if (_internal_metadata_.have_unknown_fields()) {
6365 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 6466 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
6366 unknown_fields(), target); 6467 unknown_fields(), target);
6367 } 6468 }
6368 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumValueDe scriptorProto) 6469 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumValueDe scriptorProto)
6369 return target; 6470 return target;
6370 } 6471 }
6371 6472
6372 int EnumValueDescriptorProto::ByteSize() const { 6473 size_t EnumValueDescriptorProto::ByteSizeLong() const {
6373 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumValueDes criptorProto) 6474 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumValueDes criptorProto)
6374 int total_size = 0; 6475 size_t total_size = 0;
6375 6476
6477 if (_internal_metadata_.have_unknown_fields()) {
6478 total_size +=
6479 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6480 unknown_fields());
6481 }
6376 if (_has_bits_[0 / 32] & 7u) { 6482 if (_has_bits_[0 / 32] & 7u) {
6377 // optional string name = 1; 6483 // optional string name = 1;
6378 if (has_name()) { 6484 if (has_name()) {
6379 total_size += 1 + 6485 total_size += 1 +
6380 ::google::protobuf::internal::WireFormatLite::StringSize( 6486 ::google::protobuf::internal::WireFormatLite::StringSize(
6381 this->name()); 6487 this->name());
6382 } 6488 }
6383 6489
6384 // optional int32 number = 2;
6385 if (has_number()) {
6386 total_size += 1 +
6387 ::google::protobuf::internal::WireFormatLite::Int32Size(
6388 this->number());
6389 }
6390
6391 // optional .google.protobuf.EnumValueOptions options = 3; 6490 // optional .google.protobuf.EnumValueOptions options = 3;
6392 if (has_options()) { 6491 if (has_options()) {
6393 total_size += 1 + 6492 total_size += 1 +
6394 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( 6493 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6395 *this->options_); 6494 *this->options_);
6396 } 6495 }
6397 6496
6497 // optional int32 number = 2;
6498 if (has_number()) {
6499 total_size += 1 +
6500 ::google::protobuf::internal::WireFormatLite::Int32Size(
6501 this->number());
6502 }
6503
6398 } 6504 }
6399 if (_internal_metadata_.have_unknown_fields()) { 6505 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6400 total_size +=
6401 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6402 unknown_fields());
6403 }
6404 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 6506 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6405 _cached_size_ = total_size; 6507 _cached_size_ = cached_size;
6406 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 6508 GOOGLE_SAFE_CONCURRENT_WRITES_END();
6407 return total_size; 6509 return total_size;
6408 } 6510 }
6409 6511
6410 void EnumValueDescriptorProto::MergeFrom(const ::google::protobuf::Message& from ) { 6512 void EnumValueDescriptorProto::MergeFrom(const ::google::protobuf::Message& from ) {
6411 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumVal ueDescriptorProto) 6513 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumVal ueDescriptorProto)
6412 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 6514 GOOGLE_DCHECK_NE(&from, this);
6413 const EnumValueDescriptorProto* source = 6515 const EnumValueDescriptorProto* source =
6414 ::google::protobuf::internal::DynamicCastToGenerated<const EnumValueDescri ptorProto>( 6516 ::google::protobuf::internal::DynamicCastToGenerated<const EnumValueDescri ptorProto>(
6415 &from); 6517 &from);
6416 if (source == NULL) { 6518 if (source == NULL) {
6417 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.E numValueDescriptorProto) 6519 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.E numValueDescriptorProto)
6418 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 6520 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6419 } else { 6521 } else {
6420 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.EnumValueDescriptorProto) 6522 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.EnumValueDescriptorProto)
6421 MergeFrom(*source); 6523 MergeFrom(*source);
6422 } 6524 }
6423 } 6525 }
6424 6526
6425 void EnumValueDescriptorProto::MergeFrom(const EnumValueDescriptorProto& from) { 6527 void EnumValueDescriptorProto::MergeFrom(const EnumValueDescriptorProto& from) {
6426 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Enum ValueDescriptorProto) 6528 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Enum ValueDescriptorProto)
6427 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 6529 GOOGLE_DCHECK_NE(&from, this);
6428 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { 6530 _internal_metadata_.MergeFrom(from._internal_metadata_);
6531 if (from._has_bits_[0 / 32] & 7u) {
6429 if (from.has_name()) { 6532 if (from.has_name()) {
6430 set_has_name(); 6533 set_has_name();
6431 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), from.name_); 6534 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), from.name_);
6432 } 6535 }
6536 if (from.has_options()) {
6537 mutable_options()->::google::protobuf::EnumValueOptions::MergeFrom(from.op tions());
6538 }
6433 if (from.has_number()) { 6539 if (from.has_number()) {
6434 set_number(from.number()); 6540 set_number(from.number());
6435 } 6541 }
6436 if (from.has_options()) {
6437 mutable_options()->::google::protobuf::EnumValueOptions::MergeFrom(from.op tions());
6438 }
6439 }
6440 if (from._internal_metadata_.have_unknown_fields()) {
6441 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
6442 } 6542 }
6443 } 6543 }
6444 6544
6445 void EnumValueDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { 6545 void EnumValueDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
6446 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumValu eDescriptorProto) 6546 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumValu eDescriptorProto)
6447 if (&from == this) return; 6547 if (&from == this) return;
6448 Clear(); 6548 Clear();
6449 MergeFrom(from); 6549 MergeFrom(from);
6450 } 6550 }
6451 6551
6452 void EnumValueDescriptorProto::CopyFrom(const EnumValueDescriptorProto& from) { 6552 void EnumValueDescriptorProto::CopyFrom(const EnumValueDescriptorProto& from) {
6453 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumV alueDescriptorProto) 6553 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumV alueDescriptorProto)
6454 if (&from == this) return; 6554 if (&from == this) return;
6455 Clear(); 6555 Clear();
6456 MergeFrom(from); 6556 MergeFrom(from);
6457 } 6557 }
6458 6558
6459 bool EnumValueDescriptorProto::IsInitialized() const { 6559 bool EnumValueDescriptorProto::IsInitialized() const {
6460
6461 if (has_options()) { 6560 if (has_options()) {
6462 if (!this->options_->IsInitialized()) return false; 6561 if (!this->options_->IsInitialized()) return false;
6463 } 6562 }
6464 return true; 6563 return true;
6465 } 6564 }
6466 6565
6467 void EnumValueDescriptorProto::Swap(EnumValueDescriptorProto* other) { 6566 void EnumValueDescriptorProto::Swap(EnumValueDescriptorProto* other) {
6468 if (other == this) return; 6567 if (other == this) return;
6469 InternalSwap(other); 6568 InternalSwap(other);
6470 } 6569 }
6471 void EnumValueDescriptorProto::InternalSwap(EnumValueDescriptorProto* other) { 6570 void EnumValueDescriptorProto::InternalSwap(EnumValueDescriptorProto* other) {
6472 name_.Swap(&other->name_); 6571 name_.Swap(&other->name_);
6572 std::swap(options_, other->options_);
6473 std::swap(number_, other->number_); 6573 std::swap(number_, other->number_);
6474 std::swap(options_, other->options_);
6475 std::swap(_has_bits_[0], other->_has_bits_[0]); 6574 std::swap(_has_bits_[0], other->_has_bits_[0]);
6476 _internal_metadata_.Swap(&other->_internal_metadata_); 6575 _internal_metadata_.Swap(&other->_internal_metadata_);
6477 std::swap(_cached_size_, other->_cached_size_); 6576 std::swap(_cached_size_, other->_cached_size_);
6478 } 6577 }
6479 6578
6480 ::google::protobuf::Metadata EnumValueDescriptorProto::GetMetadata() const { 6579 ::google::protobuf::Metadata EnumValueDescriptorProto::GetMetadata() const {
6481 protobuf_AssignDescriptorsOnce(); 6580 protobuf_AssignDescriptorsOnce();
6482 ::google::protobuf::Metadata metadata; 6581 return file_level_metadata[8];
6483 metadata.descriptor = EnumValueDescriptorProto_descriptor_;
6484 metadata.reflection = EnumValueDescriptorProto_reflection_;
6485 return metadata;
6486 } 6582 }
6487 6583
6488 #if PROTOBUF_INLINE_NOT_IN_HEADERS 6584 #if PROTOBUF_INLINE_NOT_IN_HEADERS
6489 // EnumValueDescriptorProto 6585 // EnumValueDescriptorProto
6490 6586
6491 // optional string name = 1; 6587 // optional string name = 1;
6492 bool EnumValueDescriptorProto::has_name() const { 6588 bool EnumValueDescriptorProto::has_name() const {
6493 return (_has_bits_[0] & 0x00000001u) != 0; 6589 return (_has_bits_[0] & 0x00000001u) != 0;
6494 } 6590 }
6495 void EnumValueDescriptorProto::set_has_name() { 6591 void EnumValueDescriptorProto::set_has_name() {
6496 _has_bits_[0] |= 0x00000001u; 6592 _has_bits_[0] |= 0x00000001u;
6497 } 6593 }
6498 void EnumValueDescriptorProto::clear_has_name() { 6594 void EnumValueDescriptorProto::clear_has_name() {
6499 _has_bits_[0] &= ~0x00000001u; 6595 _has_bits_[0] &= ~0x00000001u;
6500 } 6596 }
6501 void EnumValueDescriptorProto::clear_name() { 6597 void EnumValueDescriptorProto::clear_name() {
6502 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 6598 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
6503 clear_has_name(); 6599 clear_has_name();
6504 } 6600 }
6505 const ::std::string& EnumValueDescriptorProto::name() const { 6601 const ::std::string& EnumValueDescriptorProto::name() const {
6506 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto .name) 6602 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto .name)
6507 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited()); 6603 return name_.GetNoArena();
6508 } 6604 }
6509 void EnumValueDescriptorProto::set_name(const ::std::string& value) { 6605 void EnumValueDescriptorProto::set_name(const ::std::string& value) {
6510 set_has_name(); 6606 set_has_name();
6511 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 6607 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
6512 // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto .name) 6608 // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto .name)
6513 } 6609 }
6514 void EnumValueDescriptorProto::set_name(const char* value) { 6610 #if LANG_CXX11
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) {
6515 set_has_name(); 6619 set_has_name();
6516 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 6620 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
6517 // @@protoc_insertion_point(field_set_char:google.protobuf.EnumValueDescriptor Proto.name) 6621 // @@protoc_insertion_point(field_set_char:google.protobuf.EnumValueDescriptor Proto.name)
6518 } 6622 }
6519 void EnumValueDescriptorProto::set_name(const char* value, size_t size) { 6623 void EnumValueDescriptorProto::set_name(const char* value, size_t size) {
6520 set_has_name(); 6624 set_has_name();
6521 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 6625 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6522 ::std::string(reinterpret_cast<const char*>(value), size)); 6626 ::std::string(reinterpret_cast<const char*>(value), size));
6523 // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumValueDescrip torProto.name) 6627 // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumValueDescrip torProto.name)
6524 } 6628 }
6525 ::std::string* EnumValueDescriptorProto::mutable_name() { 6629 ::std::string* EnumValueDescriptorProto::mutable_name() {
6526 set_has_name(); 6630 set_has_name();
6527 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorP roto.name) 6631 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorP roto.name)
6528 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 6632 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
6529 } 6633 }
6530 ::std::string* EnumValueDescriptorProto::release_name() { 6634 ::std::string* EnumValueDescriptorProto::release_name() {
6531 // @@protoc_insertion_point(field_release:google.protobuf.EnumValueDescriptorP roto.name) 6635 // @@protoc_insertion_point(field_release:google.protobuf.EnumValueDescriptorP roto.name)
6532 clear_has_name(); 6636 clear_has_name();
6533 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 6637 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
6534 } 6638 }
6535 void EnumValueDescriptorProto::set_allocated_name(::std::string* name) { 6639 void EnumValueDescriptorProto::set_allocated_name(::std::string* name) {
6536 if (name != NULL) { 6640 if (name != NULL) {
6537 set_has_name(); 6641 set_has_name();
6538 } else { 6642 } else {
6539 clear_has_name(); 6643 clear_has_name();
6540 } 6644 }
6541 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name); 6645 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name);
6542 // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValueDescr iptorProto.name) 6646 // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValueDescr iptorProto.name)
6543 } 6647 }
6544 6648
6545 // optional int32 number = 2; 6649 // optional int32 number = 2;
6546 bool EnumValueDescriptorProto::has_number() const { 6650 bool EnumValueDescriptorProto::has_number() const {
6547 return (_has_bits_[0] & 0x00000002u) != 0; 6651 return (_has_bits_[0] & 0x00000004u) != 0;
6548 } 6652 }
6549 void EnumValueDescriptorProto::set_has_number() { 6653 void EnumValueDescriptorProto::set_has_number() {
6550 _has_bits_[0] |= 0x00000002u; 6654 _has_bits_[0] |= 0x00000004u;
6551 } 6655 }
6552 void EnumValueDescriptorProto::clear_has_number() { 6656 void EnumValueDescriptorProto::clear_has_number() {
6553 _has_bits_[0] &= ~0x00000002u; 6657 _has_bits_[0] &= ~0x00000004u;
6554 } 6658 }
6555 void EnumValueDescriptorProto::clear_number() { 6659 void EnumValueDescriptorProto::clear_number() {
6556 number_ = 0; 6660 number_ = 0;
6557 clear_has_number(); 6661 clear_has_number();
6558 } 6662 }
6559 ::google::protobuf::int32 EnumValueDescriptorProto::number() const { 6663 ::google::protobuf::int32 EnumValueDescriptorProto::number() const {
6560 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto .number) 6664 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto .number)
6561 return number_; 6665 return number_;
6562 } 6666 }
6563 void EnumValueDescriptorProto::set_number(::google::protobuf::int32 value) { 6667 void EnumValueDescriptorProto::set_number(::google::protobuf::int32 value) {
6564 set_has_number(); 6668 set_has_number();
6565 number_ = value; 6669 number_ = value;
6566 // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto .number) 6670 // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto .number)
6567 } 6671 }
6568 6672
6569 // optional .google.protobuf.EnumValueOptions options = 3; 6673 // optional .google.protobuf.EnumValueOptions options = 3;
6570 bool EnumValueDescriptorProto::has_options() const { 6674 bool EnumValueDescriptorProto::has_options() const {
6571 return (_has_bits_[0] & 0x00000004u) != 0; 6675 return (_has_bits_[0] & 0x00000002u) != 0;
6572 } 6676 }
6573 void EnumValueDescriptorProto::set_has_options() { 6677 void EnumValueDescriptorProto::set_has_options() {
6574 _has_bits_[0] |= 0x00000004u; 6678 _has_bits_[0] |= 0x00000002u;
6575 } 6679 }
6576 void EnumValueDescriptorProto::clear_has_options() { 6680 void EnumValueDescriptorProto::clear_has_options() {
6577 _has_bits_[0] &= ~0x00000004u; 6681 _has_bits_[0] &= ~0x00000002u;
6578 } 6682 }
6579 void EnumValueDescriptorProto::clear_options() { 6683 void EnumValueDescriptorProto::clear_options() {
6580 if (options_ != NULL) options_->::google::protobuf::EnumValueOptions::Clear(); 6684 if (options_ != NULL) options_->::google::protobuf::EnumValueOptions::Clear();
6581 clear_has_options(); 6685 clear_has_options();
6582 } 6686 }
6583 const ::google::protobuf::EnumValueOptions& EnumValueDescriptorProto::options() const { 6687 const ::google::protobuf::EnumValueOptions& EnumValueDescriptorProto::options() const {
6584 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto .options) 6688 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto .options)
6585 return options_ != NULL ? *options_ : *default_instance_->options_; 6689 return options_ != NULL ? *options_
6690 : *::google::protobuf::EnumValueOptions::internal_defau lt_instance();
6586 } 6691 }
6587 ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::mutable_options( ) { 6692 ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::mutable_options( ) {
6588 set_has_options(); 6693 set_has_options();
6589 if (options_ == NULL) { 6694 if (options_ == NULL) {
6590 options_ = new ::google::protobuf::EnumValueOptions; 6695 options_ = new ::google::protobuf::EnumValueOptions;
6591 } 6696 }
6592 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorP roto.options) 6697 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorP roto.options)
6593 return options_; 6698 return options_;
6594 } 6699 }
6595 ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::release_options( ) { 6700 ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::release_options( ) {
(...skipping 19 matching lines...) Expand all
6615 // =================================================================== 6720 // ===================================================================
6616 6721
6617 #if !defined(_MSC_VER) || _MSC_VER >= 1900 6722 #if !defined(_MSC_VER) || _MSC_VER >= 1900
6618 const int ServiceDescriptorProto::kNameFieldNumber; 6723 const int ServiceDescriptorProto::kNameFieldNumber;
6619 const int ServiceDescriptorProto::kMethodFieldNumber; 6724 const int ServiceDescriptorProto::kMethodFieldNumber;
6620 const int ServiceDescriptorProto::kOptionsFieldNumber; 6725 const int ServiceDescriptorProto::kOptionsFieldNumber;
6621 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 6726 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
6622 6727
6623 ServiceDescriptorProto::ServiceDescriptorProto() 6728 ServiceDescriptorProto::ServiceDescriptorProto()
6624 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 6729 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
6730 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
6731 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
6732 }
6625 SharedCtor(); 6733 SharedCtor();
6626 // @@protoc_insertion_point(constructor:google.protobuf.ServiceDescriptorProto ) 6734 // @@protoc_insertion_point(constructor:google.protobuf.ServiceDescriptorProto )
6627 } 6735 }
6628
6629 void ServiceDescriptorProto::InitAsDefaultInstance() {
6630 options_ = const_cast< ::google::protobuf::ServiceOptions*>(&::google::protobu f::ServiceOptions::default_instance());
6631 }
6632
6633 ServiceDescriptorProto::ServiceDescriptorProto(const ServiceDescriptorProto& fro m) 6736 ServiceDescriptorProto::ServiceDescriptorProto(const ServiceDescriptorProto& fro m)
6634 : ::google::protobuf::Message(), 6737 : ::google::protobuf::Message(),
6635 _internal_metadata_(NULL) { 6738 _internal_metadata_(NULL),
6636 SharedCtor(); 6739 _has_bits_(from._has_bits_),
6637 MergeFrom(from); 6740 _cached_size_(0),
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 }
6638 // @@protoc_insertion_point(copy_constructor:google.protobuf.ServiceDescriptor Proto) 6752 // @@protoc_insertion_point(copy_constructor:google.protobuf.ServiceDescriptor Proto)
6639 } 6753 }
6640 6754
6641 void ServiceDescriptorProto::SharedCtor() { 6755 void ServiceDescriptorProto::SharedCtor() {
6642 ::google::protobuf::internal::GetEmptyString();
6643 _cached_size_ = 0; 6756 _cached_size_ = 0;
6644 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted()); 6757 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
6645 options_ = NULL; 6758 options_ = NULL;
6646 ::memset(_has_bits_, 0, sizeof(_has_bits_));
6647 } 6759 }
6648 6760
6649 ServiceDescriptorProto::~ServiceDescriptorProto() { 6761 ServiceDescriptorProto::~ServiceDescriptorProto() {
6650 // @@protoc_insertion_point(destructor:google.protobuf.ServiceDescriptorProto) 6762 // @@protoc_insertion_point(destructor:google.protobuf.ServiceDescriptorProto)
6651 SharedDtor(); 6763 SharedDtor();
6652 } 6764 }
6653 6765
6654 void ServiceDescriptorProto::SharedDtor() { 6766 void ServiceDescriptorProto::SharedDtor() {
6655 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d()); 6767 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d());
6656 if (this != default_instance_) { 6768 if (this != internal_default_instance()) {
6657 delete options_; 6769 delete options_;
6658 } 6770 }
6659 } 6771 }
6660 6772
6661 void ServiceDescriptorProto::SetCachedSize(int size) const { 6773 void ServiceDescriptorProto::SetCachedSize(int size) const {
6662 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 6774 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6663 _cached_size_ = size; 6775 _cached_size_ = size;
6664 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 6776 GOOGLE_SAFE_CONCURRENT_WRITES_END();
6665 } 6777 }
6666 const ::google::protobuf::Descriptor* ServiceDescriptorProto::descriptor() { 6778 const ::google::protobuf::Descriptor* ServiceDescriptorProto::descriptor() {
6667 protobuf_AssignDescriptorsOnce(); 6779 protobuf_AssignDescriptorsOnce();
6668 return ServiceDescriptorProto_descriptor_; 6780 return file_level_metadata[9].descriptor;
6669 } 6781 }
6670 6782
6671 const ServiceDescriptorProto& ServiceDescriptorProto::default_instance() { 6783 const ServiceDescriptorProto& ServiceDescriptorProto::default_instance() {
6672 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 6784 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
6673 return *default_instance_; 6785 return *internal_default_instance();
6674 } 6786 }
6675 6787
6676 ServiceDescriptorProto* ServiceDescriptorProto::default_instance_ = NULL;
6677
6678 ServiceDescriptorProto* ServiceDescriptorProto::New(::google::protobuf::Arena* a rena) const { 6788 ServiceDescriptorProto* ServiceDescriptorProto::New(::google::protobuf::Arena* a rena) const {
6679 ServiceDescriptorProto* n = new ServiceDescriptorProto; 6789 ServiceDescriptorProto* n = new ServiceDescriptorProto;
6680 if (arena != NULL) { 6790 if (arena != NULL) {
6681 arena->Own(n); 6791 arena->Own(n);
6682 } 6792 }
6683 return n; 6793 return n;
6684 } 6794 }
6685 6795
6686 void ServiceDescriptorProto::Clear() { 6796 void ServiceDescriptorProto::Clear() {
6687 // @@protoc_insertion_point(message_clear_start:google.protobuf.ServiceDescripto rProto) 6797 // @@protoc_insertion_point(message_clear_start:google.protobuf.ServiceDescripto rProto)
6688 if (_has_bits_[0 / 32] & 5u) { 6798 method_.Clear();
6799 if (_has_bits_[0 / 32] & 3u) {
6689 if (has_name()) { 6800 if (has_name()) {
6690 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited()); 6801 GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited()));
6802 (*name_.UnsafeRawStringPointer())->clear();
6691 } 6803 }
6692 if (has_options()) { 6804 if (has_options()) {
6693 if (options_ != NULL) options_->::google::protobuf::ServiceOptions::Clear( ); 6805 GOOGLE_DCHECK(options_ != NULL);
6806 options_->::google::protobuf::ServiceOptions::Clear();
6694 } 6807 }
6695 } 6808 }
6696 method_.Clear(); 6809 _has_bits_.Clear();
6697 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 6810 _internal_metadata_.Clear();
6698 if (_internal_metadata_.have_unknown_fields()) {
6699 mutable_unknown_fields()->Clear();
6700 }
6701 } 6811 }
6702 6812
6703 bool ServiceDescriptorProto::MergePartialFromCodedStream( 6813 bool ServiceDescriptorProto::MergePartialFromCodedStream(
6704 ::google::protobuf::io::CodedInputStream* input) { 6814 ::google::protobuf::io::CodedInputStream* input) {
6705 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 6815 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
6706 ::google::protobuf::uint32 tag; 6816 ::google::protobuf::uint32 tag;
6707 // @@protoc_insertion_point(parse_start:google.protobuf.ServiceDescriptorProto ) 6817 // @@protoc_insertion_point(parse_start:google.protobuf.ServiceDescriptorProto )
6708 for (;;) { 6818 for (;;) {
6709 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127); 6819 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u);
6710 tag = p.first; 6820 tag = p.first;
6711 if (!p.second) goto handle_unusual; 6821 if (!p.second) goto handle_unusual;
6712 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 6822 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
6713 // optional string name = 1; 6823 // optional string name = 1;
6714 case 1: { 6824 case 1: {
6715 if (tag == 10) { 6825 if (tag == 10u) {
6716 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 6826 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6717 input, this->mutable_name())); 6827 input, this->mutable_name()));
6718 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 6828 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6719 this->name().data(), this->name().length(), 6829 this->name().data(), this->name().length(),
6720 ::google::protobuf::internal::WireFormat::PARSE, 6830 ::google::protobuf::internal::WireFormat::PARSE,
6721 "google.protobuf.ServiceDescriptorProto.name"); 6831 "google.protobuf.ServiceDescriptorProto.name");
6722 } else { 6832 } else {
6723 goto handle_unusual; 6833 goto handle_unusual;
6724 } 6834 }
6725 if (input->ExpectTag(18)) goto parse_method;
6726 break; 6835 break;
6727 } 6836 }
6728 6837
6729 // repeated .google.protobuf.MethodDescriptorProto method = 2; 6838 // repeated .google.protobuf.MethodDescriptorProto method = 2;
6730 case 2: { 6839 case 2: {
6731 if (tag == 18) { 6840 if (tag == 18u) {
6732 parse_method:
6733 DO_(input->IncrementRecursionDepth()); 6841 DO_(input->IncrementRecursionDepth());
6734 parse_loop_method:
6735 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 6842 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
6736 input, add_method())); 6843 input, add_method()));
6737 } else { 6844 } else {
6738 goto handle_unusual; 6845 goto handle_unusual;
6739 } 6846 }
6740 if (input->ExpectTag(18)) goto parse_loop_method;
6741 input->UnsafeDecrementRecursionDepth(); 6847 input->UnsafeDecrementRecursionDepth();
6742 if (input->ExpectTag(26)) goto parse_options;
6743 break; 6848 break;
6744 } 6849 }
6745 6850
6746 // optional .google.protobuf.ServiceOptions options = 3; 6851 // optional .google.protobuf.ServiceOptions options = 3;
6747 case 3: { 6852 case 3: {
6748 if (tag == 26) { 6853 if (tag == 26u) {
6749 parse_options:
6750 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual ( 6854 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual (
6751 input, mutable_options())); 6855 input, mutable_options()));
6752 } else { 6856 } else {
6753 goto handle_unusual; 6857 goto handle_unusual;
6754 } 6858 }
6755 if (input->ExpectAtEnd()) goto success;
6756 break; 6859 break;
6757 } 6860 }
6758 6861
6759 default: { 6862 default: {
6760 handle_unusual: 6863 handle_unusual:
6761 if (tag == 0 || 6864 if (tag == 0 ||
6762 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 6865 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6763 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 6866 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
6764 goto success; 6867 goto success;
6765 } 6868 }
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
6803 3, *this->options_, output); 6906 3, *this->options_, output);
6804 } 6907 }
6805 6908
6806 if (_internal_metadata_.have_unknown_fields()) { 6909 if (_internal_metadata_.have_unknown_fields()) {
6807 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 6910 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6808 unknown_fields(), output); 6911 unknown_fields(), output);
6809 } 6912 }
6810 // @@protoc_insertion_point(serialize_end:google.protobuf.ServiceDescriptorPro to) 6913 // @@protoc_insertion_point(serialize_end:google.protobuf.ServiceDescriptorPro to)
6811 } 6914 }
6812 6915
6813 ::google::protobuf::uint8* ServiceDescriptorProto::SerializeWithCachedSizesToArr ay( 6916 ::google::protobuf::uint8* ServiceDescriptorProto::InternalSerializeWithCachedSi zesToArray(
6814 ::google::protobuf::uint8* target) const { 6917 bool deterministic, ::google::protobuf::uint8* target) const {
6918 (void)deterministic; // Unused
6815 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ServiceDe scriptorProto) 6919 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ServiceDe scriptorProto)
6816 // optional string name = 1; 6920 // optional string name = 1;
6817 if (has_name()) { 6921 if (has_name()) {
6818 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 6922 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6819 this->name().data(), this->name().length(), 6923 this->name().data(), this->name().length(),
6820 ::google::protobuf::internal::WireFormat::SERIALIZE, 6924 ::google::protobuf::internal::WireFormat::SERIALIZE,
6821 "google.protobuf.ServiceDescriptorProto.name"); 6925 "google.protobuf.ServiceDescriptorProto.name");
6822 target = 6926 target =
6823 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 6927 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6824 1, this->name(), target); 6928 1, this->name(), target);
6825 } 6929 }
6826 6930
6827 // repeated .google.protobuf.MethodDescriptorProto method = 2; 6931 // repeated .google.protobuf.MethodDescriptorProto method = 2;
6828 for (unsigned int i = 0, n = this->method_size(); i < n; i++) { 6932 for (unsigned int i = 0, n = this->method_size(); i < n; i++) {
6829 target = ::google::protobuf::internal::WireFormatLite:: 6933 target = ::google::protobuf::internal::WireFormatLite::
6830 WriteMessageNoVirtualToArray( 6934 InternalWriteMessageNoVirtualToArray(
6831 2, this->method(i), target); 6935 2, this->method(i), false, target);
6832 } 6936 }
6833 6937
6834 // optional .google.protobuf.ServiceOptions options = 3; 6938 // optional .google.protobuf.ServiceOptions options = 3;
6835 if (has_options()) { 6939 if (has_options()) {
6836 target = ::google::protobuf::internal::WireFormatLite:: 6940 target = ::google::protobuf::internal::WireFormatLite::
6837 WriteMessageNoVirtualToArray( 6941 InternalWriteMessageNoVirtualToArray(
6838 3, *this->options_, target); 6942 3, *this->options_, false, target);
6839 } 6943 }
6840 6944
6841 if (_internal_metadata_.have_unknown_fields()) { 6945 if (_internal_metadata_.have_unknown_fields()) {
6842 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 6946 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
6843 unknown_fields(), target); 6947 unknown_fields(), target);
6844 } 6948 }
6845 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ServiceDesc riptorProto) 6949 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ServiceDesc riptorProto)
6846 return target; 6950 return target;
6847 } 6951 }
6848 6952
6849 int ServiceDescriptorProto::ByteSize() const { 6953 size_t ServiceDescriptorProto::ByteSizeLong() const {
6850 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.ServiceDescr iptorProto) 6954 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.ServiceDescr iptorProto)
6851 int total_size = 0; 6955 size_t total_size = 0;
6852 6956
6853 if (_has_bits_[0 / 32] & 5u) { 6957 if (_internal_metadata_.have_unknown_fields()) {
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) {
6854 // optional string name = 1; 6974 // optional string name = 1;
6855 if (has_name()) { 6975 if (has_name()) {
6856 total_size += 1 + 6976 total_size += 1 +
6857 ::google::protobuf::internal::WireFormatLite::StringSize( 6977 ::google::protobuf::internal::WireFormatLite::StringSize(
6858 this->name()); 6978 this->name());
6859 } 6979 }
6860 6980
6861 // optional .google.protobuf.ServiceOptions options = 3; 6981 // optional .google.protobuf.ServiceOptions options = 3;
6862 if (has_options()) { 6982 if (has_options()) {
6863 total_size += 1 + 6983 total_size += 1 +
6864 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( 6984 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6865 *this->options_); 6985 *this->options_);
6866 } 6986 }
6867 6987
6868 } 6988 }
6869 // repeated .google.protobuf.MethodDescriptorProto method = 2; 6989 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
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 }
6882 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 6990 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6883 _cached_size_ = total_size; 6991 _cached_size_ = cached_size;
6884 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 6992 GOOGLE_SAFE_CONCURRENT_WRITES_END();
6885 return total_size; 6993 return total_size;
6886 } 6994 }
6887 6995
6888 void ServiceDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { 6996 void ServiceDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
6889 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Service DescriptorProto) 6997 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Service DescriptorProto)
6890 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 6998 GOOGLE_DCHECK_NE(&from, this);
6891 const ServiceDescriptorProto* source = 6999 const ServiceDescriptorProto* source =
6892 ::google::protobuf::internal::DynamicCastToGenerated<const ServiceDescript orProto>( 7000 ::google::protobuf::internal::DynamicCastToGenerated<const ServiceDescript orProto>(
6893 &from); 7001 &from);
6894 if (source == NULL) { 7002 if (source == NULL) {
6895 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.S erviceDescriptorProto) 7003 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.S erviceDescriptorProto)
6896 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 7004 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6897 } else { 7005 } else {
6898 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.ServiceDescriptorProto) 7006 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.ServiceDescriptorProto)
6899 MergeFrom(*source); 7007 MergeFrom(*source);
6900 } 7008 }
6901 } 7009 }
6902 7010
6903 void ServiceDescriptorProto::MergeFrom(const ServiceDescriptorProto& from) { 7011 void ServiceDescriptorProto::MergeFrom(const ServiceDescriptorProto& from) {
6904 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Serv iceDescriptorProto) 7012 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Serv iceDescriptorProto)
6905 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 7013 GOOGLE_DCHECK_NE(&from, this);
7014 _internal_metadata_.MergeFrom(from._internal_metadata_);
6906 method_.MergeFrom(from.method_); 7015 method_.MergeFrom(from.method_);
6907 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { 7016 if (from._has_bits_[0 / 32] & 3u) {
6908 if (from.has_name()) { 7017 if (from.has_name()) {
6909 set_has_name(); 7018 set_has_name();
6910 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), from.name_); 7019 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), from.name_);
6911 } 7020 }
6912 if (from.has_options()) { 7021 if (from.has_options()) {
6913 mutable_options()->::google::protobuf::ServiceOptions::MergeFrom(from.opti ons()); 7022 mutable_options()->::google::protobuf::ServiceOptions::MergeFrom(from.opti ons());
6914 } 7023 }
6915 } 7024 }
6916 if (from._internal_metadata_.have_unknown_fields()) {
6917 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
6918 }
6919 } 7025 }
6920 7026
6921 void ServiceDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { 7027 void ServiceDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
6922 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.ServiceD escriptorProto) 7028 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.ServiceD escriptorProto)
6923 if (&from == this) return; 7029 if (&from == this) return;
6924 Clear(); 7030 Clear();
6925 MergeFrom(from); 7031 MergeFrom(from);
6926 } 7032 }
6927 7033
6928 void ServiceDescriptorProto::CopyFrom(const ServiceDescriptorProto& from) { 7034 void ServiceDescriptorProto::CopyFrom(const ServiceDescriptorProto& from) {
6929 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Servi ceDescriptorProto) 7035 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Servi ceDescriptorProto)
6930 if (&from == this) return; 7036 if (&from == this) return;
6931 Clear(); 7037 Clear();
6932 MergeFrom(from); 7038 MergeFrom(from);
6933 } 7039 }
6934 7040
6935 bool ServiceDescriptorProto::IsInitialized() const { 7041 bool ServiceDescriptorProto::IsInitialized() const {
6936
6937 if (!::google::protobuf::internal::AllAreInitialized(this->method())) return f alse; 7042 if (!::google::protobuf::internal::AllAreInitialized(this->method())) return f alse;
6938 if (has_options()) { 7043 if (has_options()) {
6939 if (!this->options_->IsInitialized()) return false; 7044 if (!this->options_->IsInitialized()) return false;
6940 } 7045 }
6941 return true; 7046 return true;
6942 } 7047 }
6943 7048
6944 void ServiceDescriptorProto::Swap(ServiceDescriptorProto* other) { 7049 void ServiceDescriptorProto::Swap(ServiceDescriptorProto* other) {
6945 if (other == this) return; 7050 if (other == this) return;
6946 InternalSwap(other); 7051 InternalSwap(other);
6947 } 7052 }
6948 void ServiceDescriptorProto::InternalSwap(ServiceDescriptorProto* other) { 7053 void ServiceDescriptorProto::InternalSwap(ServiceDescriptorProto* other) {
7054 method_.UnsafeArenaSwap(&other->method_);
6949 name_.Swap(&other->name_); 7055 name_.Swap(&other->name_);
6950 method_.UnsafeArenaSwap(&other->method_);
6951 std::swap(options_, other->options_); 7056 std::swap(options_, other->options_);
6952 std::swap(_has_bits_[0], other->_has_bits_[0]); 7057 std::swap(_has_bits_[0], other->_has_bits_[0]);
6953 _internal_metadata_.Swap(&other->_internal_metadata_); 7058 _internal_metadata_.Swap(&other->_internal_metadata_);
6954 std::swap(_cached_size_, other->_cached_size_); 7059 std::swap(_cached_size_, other->_cached_size_);
6955 } 7060 }
6956 7061
6957 ::google::protobuf::Metadata ServiceDescriptorProto::GetMetadata() const { 7062 ::google::protobuf::Metadata ServiceDescriptorProto::GetMetadata() const {
6958 protobuf_AssignDescriptorsOnce(); 7063 protobuf_AssignDescriptorsOnce();
6959 ::google::protobuf::Metadata metadata; 7064 return file_level_metadata[9];
6960 metadata.descriptor = ServiceDescriptorProto_descriptor_;
6961 metadata.reflection = ServiceDescriptorProto_reflection_;
6962 return metadata;
6963 } 7065 }
6964 7066
6965 #if PROTOBUF_INLINE_NOT_IN_HEADERS 7067 #if PROTOBUF_INLINE_NOT_IN_HEADERS
6966 // ServiceDescriptorProto 7068 // ServiceDescriptorProto
6967 7069
6968 // optional string name = 1; 7070 // optional string name = 1;
6969 bool ServiceDescriptorProto::has_name() const { 7071 bool ServiceDescriptorProto::has_name() const {
6970 return (_has_bits_[0] & 0x00000001u) != 0; 7072 return (_has_bits_[0] & 0x00000001u) != 0;
6971 } 7073 }
6972 void ServiceDescriptorProto::set_has_name() { 7074 void ServiceDescriptorProto::set_has_name() {
6973 _has_bits_[0] |= 0x00000001u; 7075 _has_bits_[0] |= 0x00000001u;
6974 } 7076 }
6975 void ServiceDescriptorProto::clear_has_name() { 7077 void ServiceDescriptorProto::clear_has_name() {
6976 _has_bits_[0] &= ~0x00000001u; 7078 _has_bits_[0] &= ~0x00000001u;
6977 } 7079 }
6978 void ServiceDescriptorProto::clear_name() { 7080 void ServiceDescriptorProto::clear_name() {
6979 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 7081 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
6980 clear_has_name(); 7082 clear_has_name();
6981 } 7083 }
6982 const ::std::string& ServiceDescriptorProto::name() const { 7084 const ::std::string& ServiceDescriptorProto::name() const {
6983 // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.n ame) 7085 // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.n ame)
6984 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited()); 7086 return name_.GetNoArena();
6985 } 7087 }
6986 void ServiceDescriptorProto::set_name(const ::std::string& value) { 7088 void ServiceDescriptorProto::set_name(const ::std::string& value) {
6987 set_has_name(); 7089 set_has_name();
6988 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 7090 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
6989 // @@protoc_insertion_point(field_set:google.protobuf.ServiceDescriptorProto.n ame) 7091 // @@protoc_insertion_point(field_set:google.protobuf.ServiceDescriptorProto.n ame)
6990 } 7092 }
6991 void ServiceDescriptorProto::set_name(const char* value) { 7093 #if LANG_CXX11
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) {
6992 set_has_name(); 7102 set_has_name();
6993 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 7103 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
6994 // @@protoc_insertion_point(field_set_char:google.protobuf.ServiceDescriptorPr oto.name) 7104 // @@protoc_insertion_point(field_set_char:google.protobuf.ServiceDescriptorPr oto.name)
6995 } 7105 }
6996 void ServiceDescriptorProto::set_name(const char* value, size_t size) { 7106 void ServiceDescriptorProto::set_name(const char* value, size_t size) {
6997 set_has_name(); 7107 set_has_name();
6998 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 7108 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6999 ::std::string(reinterpret_cast<const char*>(value), size)); 7109 ::std::string(reinterpret_cast<const char*>(value), size));
7000 // @@protoc_insertion_point(field_set_pointer:google.protobuf.ServiceDescripto rProto.name) 7110 // @@protoc_insertion_point(field_set_pointer:google.protobuf.ServiceDescripto rProto.name)
7001 } 7111 }
7002 ::std::string* ServiceDescriptorProto::mutable_name() { 7112 ::std::string* ServiceDescriptorProto::mutable_name() {
7003 set_has_name(); 7113 set_has_name();
7004 // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorPro to.name) 7114 // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorPro to.name)
7005 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 7115 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
7006 } 7116 }
7007 ::std::string* ServiceDescriptorProto::release_name() { 7117 ::std::string* ServiceDescriptorProto::release_name() {
7008 // @@protoc_insertion_point(field_release:google.protobuf.ServiceDescriptorPro to.name) 7118 // @@protoc_insertion_point(field_release:google.protobuf.ServiceDescriptorPro to.name)
7009 clear_has_name(); 7119 clear_has_name();
7010 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 7120 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
7011 } 7121 }
7012 void ServiceDescriptorProto::set_allocated_name(::std::string* name) { 7122 void ServiceDescriptorProto::set_allocated_name(::std::string* name) {
7013 if (name != NULL) { 7123 if (name != NULL) {
7014 set_has_name(); 7124 set_has_name();
7015 } else { 7125 } else {
7016 clear_has_name(); 7126 clear_has_name();
7017 } 7127 }
7018 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name); 7128 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name);
7019 // @@protoc_insertion_point(field_set_allocated:google.protobuf.ServiceDescrip torProto.name) 7129 // @@protoc_insertion_point(field_set_allocated:google.protobuf.ServiceDescrip torProto.name)
7020 } 7130 }
7021 7131
7022 // repeated .google.protobuf.MethodDescriptorProto method = 2; 7132 // repeated .google.protobuf.MethodDescriptorProto method = 2;
(...skipping 21 matching lines...) Expand all
7044 return &method_; 7154 return &method_;
7045 } 7155 }
7046 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptor Proto >& 7156 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptor Proto >&
7047 ServiceDescriptorProto::method() const { 7157 ServiceDescriptorProto::method() const {
7048 // @@protoc_insertion_point(field_list:google.protobuf.ServiceDescriptorProto. method) 7158 // @@protoc_insertion_point(field_list:google.protobuf.ServiceDescriptorProto. method)
7049 return method_; 7159 return method_;
7050 } 7160 }
7051 7161
7052 // optional .google.protobuf.ServiceOptions options = 3; 7162 // optional .google.protobuf.ServiceOptions options = 3;
7053 bool ServiceDescriptorProto::has_options() const { 7163 bool ServiceDescriptorProto::has_options() const {
7054 return (_has_bits_[0] & 0x00000004u) != 0; 7164 return (_has_bits_[0] & 0x00000002u) != 0;
7055 } 7165 }
7056 void ServiceDescriptorProto::set_has_options() { 7166 void ServiceDescriptorProto::set_has_options() {
7057 _has_bits_[0] |= 0x00000004u; 7167 _has_bits_[0] |= 0x00000002u;
7058 } 7168 }
7059 void ServiceDescriptorProto::clear_has_options() { 7169 void ServiceDescriptorProto::clear_has_options() {
7060 _has_bits_[0] &= ~0x00000004u; 7170 _has_bits_[0] &= ~0x00000002u;
7061 } 7171 }
7062 void ServiceDescriptorProto::clear_options() { 7172 void ServiceDescriptorProto::clear_options() {
7063 if (options_ != NULL) options_->::google::protobuf::ServiceOptions::Clear(); 7173 if (options_ != NULL) options_->::google::protobuf::ServiceOptions::Clear();
7064 clear_has_options(); 7174 clear_has_options();
7065 } 7175 }
7066 const ::google::protobuf::ServiceOptions& ServiceDescriptorProto::options() cons t { 7176 const ::google::protobuf::ServiceOptions& ServiceDescriptorProto::options() cons t {
7067 // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.o ptions) 7177 // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.o ptions)
7068 return options_ != NULL ? *options_ : *default_instance_->options_; 7178 return options_ != NULL ? *options_
7179 : *::google::protobuf::ServiceOptions::internal_default _instance();
7069 } 7180 }
7070 ::google::protobuf::ServiceOptions* ServiceDescriptorProto::mutable_options() { 7181 ::google::protobuf::ServiceOptions* ServiceDescriptorProto::mutable_options() {
7071 set_has_options(); 7182 set_has_options();
7072 if (options_ == NULL) { 7183 if (options_ == NULL) {
7073 options_ = new ::google::protobuf::ServiceOptions; 7184 options_ = new ::google::protobuf::ServiceOptions;
7074 } 7185 }
7075 // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorPro to.options) 7186 // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorPro to.options)
7076 return options_; 7187 return options_;
7077 } 7188 }
7078 ::google::protobuf::ServiceOptions* ServiceDescriptorProto::release_options() { 7189 ::google::protobuf::ServiceOptions* ServiceDescriptorProto::release_options() {
(...skipping 22 matching lines...) Expand all
7101 const int MethodDescriptorProto::kNameFieldNumber; 7212 const int MethodDescriptorProto::kNameFieldNumber;
7102 const int MethodDescriptorProto::kInputTypeFieldNumber; 7213 const int MethodDescriptorProto::kInputTypeFieldNumber;
7103 const int MethodDescriptorProto::kOutputTypeFieldNumber; 7214 const int MethodDescriptorProto::kOutputTypeFieldNumber;
7104 const int MethodDescriptorProto::kOptionsFieldNumber; 7215 const int MethodDescriptorProto::kOptionsFieldNumber;
7105 const int MethodDescriptorProto::kClientStreamingFieldNumber; 7216 const int MethodDescriptorProto::kClientStreamingFieldNumber;
7106 const int MethodDescriptorProto::kServerStreamingFieldNumber; 7217 const int MethodDescriptorProto::kServerStreamingFieldNumber;
7107 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 7218 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
7108 7219
7109 MethodDescriptorProto::MethodDescriptorProto() 7220 MethodDescriptorProto::MethodDescriptorProto()
7110 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 7221 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
7222 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
7223 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
7224 }
7111 SharedCtor(); 7225 SharedCtor();
7112 // @@protoc_insertion_point(constructor:google.protobuf.MethodDescriptorProto) 7226 // @@protoc_insertion_point(constructor:google.protobuf.MethodDescriptorProto)
7113 } 7227 }
7114
7115 void MethodDescriptorProto::InitAsDefaultInstance() {
7116 options_ = const_cast< ::google::protobuf::MethodOptions*>(&::google::protobuf ::MethodOptions::default_instance());
7117 }
7118
7119 MethodDescriptorProto::MethodDescriptorProto(const MethodDescriptorProto& from) 7228 MethodDescriptorProto::MethodDescriptorProto(const MethodDescriptorProto& from)
7120 : ::google::protobuf::Message(), 7229 : ::google::protobuf::Message(),
7121 _internal_metadata_(NULL) { 7230 _internal_metadata_(NULL),
7122 SharedCtor(); 7231 _has_bits_(from._has_bits_),
7123 MergeFrom(from); 7232 _cached_size_(0) {
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_));
7124 // @@protoc_insertion_point(copy_constructor:google.protobuf.MethodDescriptorP roto) 7254 // @@protoc_insertion_point(copy_constructor:google.protobuf.MethodDescriptorP roto)
7125 } 7255 }
7126 7256
7127 void MethodDescriptorProto::SharedCtor() { 7257 void MethodDescriptorProto::SharedCtor() {
7128 ::google::protobuf::internal::GetEmptyString();
7129 _cached_size_ = 0; 7258 _cached_size_ = 0;
7130 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted()); 7259 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
7131 input_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlre adyInited()); 7260 input_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlre adyInited());
7132 output_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlr eadyInited()); 7261 output_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlr eadyInited());
7133 options_ = NULL; 7262 ::memset(&options_, 0, reinterpret_cast<char*>(&server_streaming_) -
7134 client_streaming_ = false; 7263 reinterpret_cast<char*>(&options_) + sizeof(server_streaming_));
7135 server_streaming_ = false;
7136 ::memset(_has_bits_, 0, sizeof(_has_bits_));
7137 } 7264 }
7138 7265
7139 MethodDescriptorProto::~MethodDescriptorProto() { 7266 MethodDescriptorProto::~MethodDescriptorProto() {
7140 // @@protoc_insertion_point(destructor:google.protobuf.MethodDescriptorProto) 7267 // @@protoc_insertion_point(destructor:google.protobuf.MethodDescriptorProto)
7141 SharedDtor(); 7268 SharedDtor();
7142 } 7269 }
7143 7270
7144 void MethodDescriptorProto::SharedDtor() { 7271 void MethodDescriptorProto::SharedDtor() {
7145 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d()); 7272 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d());
7146 input_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlread yInited()); 7273 input_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlread yInited());
7147 output_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 7274 output_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
7148 if (this != default_instance_) { 7275 if (this != internal_default_instance()) {
7149 delete options_; 7276 delete options_;
7150 } 7277 }
7151 } 7278 }
7152 7279
7153 void MethodDescriptorProto::SetCachedSize(int size) const { 7280 void MethodDescriptorProto::SetCachedSize(int size) const {
7154 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 7281 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7155 _cached_size_ = size; 7282 _cached_size_ = size;
7156 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 7283 GOOGLE_SAFE_CONCURRENT_WRITES_END();
7157 } 7284 }
7158 const ::google::protobuf::Descriptor* MethodDescriptorProto::descriptor() { 7285 const ::google::protobuf::Descriptor* MethodDescriptorProto::descriptor() {
7159 protobuf_AssignDescriptorsOnce(); 7286 protobuf_AssignDescriptorsOnce();
7160 return MethodDescriptorProto_descriptor_; 7287 return file_level_metadata[10].descriptor;
7161 } 7288 }
7162 7289
7163 const MethodDescriptorProto& MethodDescriptorProto::default_instance() { 7290 const MethodDescriptorProto& MethodDescriptorProto::default_instance() {
7164 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 7291 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
7165 return *default_instance_; 7292 return *internal_default_instance();
7166 } 7293 }
7167 7294
7168 MethodDescriptorProto* MethodDescriptorProto::default_instance_ = NULL;
7169
7170 MethodDescriptorProto* MethodDescriptorProto::New(::google::protobuf::Arena* are na) const { 7295 MethodDescriptorProto* MethodDescriptorProto::New(::google::protobuf::Arena* are na) const {
7171 MethodDescriptorProto* n = new MethodDescriptorProto; 7296 MethodDescriptorProto* n = new MethodDescriptorProto;
7172 if (arena != NULL) { 7297 if (arena != NULL) {
7173 arena->Own(n); 7298 arena->Own(n);
7174 } 7299 }
7175 return n; 7300 return n;
7176 } 7301 }
7177 7302
7178 void MethodDescriptorProto::Clear() { 7303 void MethodDescriptorProto::Clear() {
7179 // @@protoc_insertion_point(message_clear_start:google.protobuf.MethodDescriptor Proto) 7304 // @@protoc_insertion_point(message_clear_start:google.protobuf.MethodDescriptor Proto)
7180 #if defined(__clang__) 7305 if (_has_bits_[0 / 32] & 15u) {
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_);
7198 if (has_name()) { 7306 if (has_name()) {
7199 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited()); 7307 GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited()));
7308 (*name_.UnsafeRawStringPointer())->clear();
7200 } 7309 }
7201 if (has_input_type()) { 7310 if (has_input_type()) {
7202 input_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited()); 7311 GOOGLE_DCHECK(!input_type_.IsDefault(&::google::protobuf::internal::GetEmp tyStringAlreadyInited()));
7312 (*input_type_.UnsafeRawStringPointer())->clear();
7203 } 7313 }
7204 if (has_output_type()) { 7314 if (has_output_type()) {
7205 output_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptySt ringAlreadyInited()); 7315 GOOGLE_DCHECK(!output_type_.IsDefault(&::google::protobuf::internal::GetEm ptyStringAlreadyInited()));
7316 (*output_type_.UnsafeRawStringPointer())->clear();
7206 } 7317 }
7207 if (has_options()) { 7318 if (has_options()) {
7208 if (options_ != NULL) options_->::google::protobuf::MethodOptions::Clear() ; 7319 GOOGLE_DCHECK(options_ != NULL);
7320 options_->::google::protobuf::MethodOptions::Clear();
7209 } 7321 }
7210 } 7322 }
7211 7323 if (_has_bits_[0 / 32] & 48u) {
7212 #undef ZR_HELPER_ 7324 ::memset(&client_streaming_, 0, reinterpret_cast<char*>(&server_streaming_) -
7213 #undef ZR_ 7325 reinterpret_cast<char*>(&client_streaming_) + sizeof(server_streaming_));
7214
7215 ::memset(_has_bits_, 0, sizeof(_has_bits_));
7216 if (_internal_metadata_.have_unknown_fields()) {
7217 mutable_unknown_fields()->Clear();
7218 } 7326 }
7327 _has_bits_.Clear();
7328 _internal_metadata_.Clear();
7219 } 7329 }
7220 7330
7221 bool MethodDescriptorProto::MergePartialFromCodedStream( 7331 bool MethodDescriptorProto::MergePartialFromCodedStream(
7222 ::google::protobuf::io::CodedInputStream* input) { 7332 ::google::protobuf::io::CodedInputStream* input) {
7223 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 7333 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
7224 ::google::protobuf::uint32 tag; 7334 ::google::protobuf::uint32 tag;
7225 // @@protoc_insertion_point(parse_start:google.protobuf.MethodDescriptorProto) 7335 // @@protoc_insertion_point(parse_start:google.protobuf.MethodDescriptorProto)
7226 for (;;) { 7336 for (;;) {
7227 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127); 7337 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u);
7228 tag = p.first; 7338 tag = p.first;
7229 if (!p.second) goto handle_unusual; 7339 if (!p.second) goto handle_unusual;
7230 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 7340 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
7231 // optional string name = 1; 7341 // optional string name = 1;
7232 case 1: { 7342 case 1: {
7233 if (tag == 10) { 7343 if (tag == 10u) {
7234 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 7344 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7235 input, this->mutable_name())); 7345 input, this->mutable_name()));
7236 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 7346 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7237 this->name().data(), this->name().length(), 7347 this->name().data(), this->name().length(),
7238 ::google::protobuf::internal::WireFormat::PARSE, 7348 ::google::protobuf::internal::WireFormat::PARSE,
7239 "google.protobuf.MethodDescriptorProto.name"); 7349 "google.protobuf.MethodDescriptorProto.name");
7240 } else { 7350 } else {
7241 goto handle_unusual; 7351 goto handle_unusual;
7242 } 7352 }
7243 if (input->ExpectTag(18)) goto parse_input_type;
7244 break; 7353 break;
7245 } 7354 }
7246 7355
7247 // optional string input_type = 2; 7356 // optional string input_type = 2;
7248 case 2: { 7357 case 2: {
7249 if (tag == 18) { 7358 if (tag == 18u) {
7250 parse_input_type:
7251 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 7359 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7252 input, this->mutable_input_type())); 7360 input, this->mutable_input_type()));
7253 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 7361 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7254 this->input_type().data(), this->input_type().length(), 7362 this->input_type().data(), this->input_type().length(),
7255 ::google::protobuf::internal::WireFormat::PARSE, 7363 ::google::protobuf::internal::WireFormat::PARSE,
7256 "google.protobuf.MethodDescriptorProto.input_type"); 7364 "google.protobuf.MethodDescriptorProto.input_type");
7257 } else { 7365 } else {
7258 goto handle_unusual; 7366 goto handle_unusual;
7259 } 7367 }
7260 if (input->ExpectTag(26)) goto parse_output_type;
7261 break; 7368 break;
7262 } 7369 }
7263 7370
7264 // optional string output_type = 3; 7371 // optional string output_type = 3;
7265 case 3: { 7372 case 3: {
7266 if (tag == 26) { 7373 if (tag == 26u) {
7267 parse_output_type:
7268 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 7374 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7269 input, this->mutable_output_type())); 7375 input, this->mutable_output_type()));
7270 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 7376 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7271 this->output_type().data(), this->output_type().length(), 7377 this->output_type().data(), this->output_type().length(),
7272 ::google::protobuf::internal::WireFormat::PARSE, 7378 ::google::protobuf::internal::WireFormat::PARSE,
7273 "google.protobuf.MethodDescriptorProto.output_type"); 7379 "google.protobuf.MethodDescriptorProto.output_type");
7274 } else { 7380 } else {
7275 goto handle_unusual; 7381 goto handle_unusual;
7276 } 7382 }
7277 if (input->ExpectTag(34)) goto parse_options;
7278 break; 7383 break;
7279 } 7384 }
7280 7385
7281 // optional .google.protobuf.MethodOptions options = 4; 7386 // optional .google.protobuf.MethodOptions options = 4;
7282 case 4: { 7387 case 4: {
7283 if (tag == 34) { 7388 if (tag == 34u) {
7284 parse_options:
7285 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual ( 7389 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual (
7286 input, mutable_options())); 7390 input, mutable_options()));
7287 } else { 7391 } else {
7288 goto handle_unusual; 7392 goto handle_unusual;
7289 } 7393 }
7290 if (input->ExpectTag(40)) goto parse_client_streaming;
7291 break; 7394 break;
7292 } 7395 }
7293 7396
7294 // optional bool client_streaming = 5 [default = false]; 7397 // optional bool client_streaming = 5 [default = false];
7295 case 5: { 7398 case 5: {
7296 if (tag == 40) { 7399 if (tag == 40u) {
7297 parse_client_streaming: 7400 set_has_client_streaming();
7298 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 7401 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7299 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 7402 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
7300 input, &client_streaming_))); 7403 input, &client_streaming_)));
7301 set_has_client_streaming();
7302 } else { 7404 } else {
7303 goto handle_unusual; 7405 goto handle_unusual;
7304 } 7406 }
7305 if (input->ExpectTag(48)) goto parse_server_streaming;
7306 break; 7407 break;
7307 } 7408 }
7308 7409
7309 // optional bool server_streaming = 6 [default = false]; 7410 // optional bool server_streaming = 6 [default = false];
7310 case 6: { 7411 case 6: {
7311 if (tag == 48) { 7412 if (tag == 48u) {
7312 parse_server_streaming: 7413 set_has_server_streaming();
7313 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 7414 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7314 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 7415 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
7315 input, &server_streaming_))); 7416 input, &server_streaming_)));
7316 set_has_server_streaming();
7317 } else { 7417 } else {
7318 goto handle_unusual; 7418 goto handle_unusual;
7319 } 7419 }
7320 if (input->ExpectAtEnd()) goto success;
7321 break; 7420 break;
7322 } 7421 }
7323 7422
7324 default: { 7423 default: {
7325 handle_unusual: 7424 handle_unusual:
7326 if (tag == 0 || 7425 if (tag == 0 ||
7327 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 7426 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7328 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 7427 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
7329 goto success; 7428 goto success;
7330 } 7429 }
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
7392 ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->server_stre aming(), output); 7491 ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->server_stre aming(), output);
7393 } 7492 }
7394 7493
7395 if (_internal_metadata_.have_unknown_fields()) { 7494 if (_internal_metadata_.have_unknown_fields()) {
7396 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 7495 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7397 unknown_fields(), output); 7496 unknown_fields(), output);
7398 } 7497 }
7399 // @@protoc_insertion_point(serialize_end:google.protobuf.MethodDescriptorProt o) 7498 // @@protoc_insertion_point(serialize_end:google.protobuf.MethodDescriptorProt o)
7400 } 7499 }
7401 7500
7402 ::google::protobuf::uint8* MethodDescriptorProto::SerializeWithCachedSizesToArra y( 7501 ::google::protobuf::uint8* MethodDescriptorProto::InternalSerializeWithCachedSiz esToArray(
7403 ::google::protobuf::uint8* target) const { 7502 bool deterministic, ::google::protobuf::uint8* target) const {
7503 (void)deterministic; // Unused
7404 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MethodDes criptorProto) 7504 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MethodDes criptorProto)
7405 // optional string name = 1; 7505 // optional string name = 1;
7406 if (has_name()) { 7506 if (has_name()) {
7407 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 7507 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7408 this->name().data(), this->name().length(), 7508 this->name().data(), this->name().length(),
7409 ::google::protobuf::internal::WireFormat::SERIALIZE, 7509 ::google::protobuf::internal::WireFormat::SERIALIZE,
7410 "google.protobuf.MethodDescriptorProto.name"); 7510 "google.protobuf.MethodDescriptorProto.name");
7411 target = 7511 target =
7412 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 7512 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7413 1, this->name(), target); 7513 1, this->name(), target);
(...skipping 17 matching lines...) Expand all
7431 ::google::protobuf::internal::WireFormat::SERIALIZE, 7531 ::google::protobuf::internal::WireFormat::SERIALIZE,
7432 "google.protobuf.MethodDescriptorProto.output_type"); 7532 "google.protobuf.MethodDescriptorProto.output_type");
7433 target = 7533 target =
7434 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 7534 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7435 3, this->output_type(), target); 7535 3, this->output_type(), target);
7436 } 7536 }
7437 7537
7438 // optional .google.protobuf.MethodOptions options = 4; 7538 // optional .google.protobuf.MethodOptions options = 4;
7439 if (has_options()) { 7539 if (has_options()) {
7440 target = ::google::protobuf::internal::WireFormatLite:: 7540 target = ::google::protobuf::internal::WireFormatLite::
7441 WriteMessageNoVirtualToArray( 7541 InternalWriteMessageNoVirtualToArray(
7442 4, *this->options_, target); 7542 4, *this->options_, false, target);
7443 } 7543 }
7444 7544
7445 // optional bool client_streaming = 5 [default = false]; 7545 // optional bool client_streaming = 5 [default = false];
7446 if (has_client_streaming()) { 7546 if (has_client_streaming()) {
7447 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, t his->client_streaming(), target); 7547 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, t his->client_streaming(), target);
7448 } 7548 }
7449 7549
7450 // optional bool server_streaming = 6 [default = false]; 7550 // optional bool server_streaming = 6 [default = false];
7451 if (has_server_streaming()) { 7551 if (has_server_streaming()) {
7452 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, t his->server_streaming(), target); 7552 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, t his->server_streaming(), target);
7453 } 7553 }
7454 7554
7455 if (_internal_metadata_.have_unknown_fields()) { 7555 if (_internal_metadata_.have_unknown_fields()) {
7456 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 7556 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
7457 unknown_fields(), target); 7557 unknown_fields(), target);
7458 } 7558 }
7459 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MethodDescr iptorProto) 7559 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MethodDescr iptorProto)
7460 return target; 7560 return target;
7461 } 7561 }
7462 7562
7463 int MethodDescriptorProto::ByteSize() const { 7563 size_t MethodDescriptorProto::ByteSizeLong() const {
7464 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.MethodDescri ptorProto) 7564 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.MethodDescri ptorProto)
7465 int total_size = 0; 7565 size_t total_size = 0;
7466 7566
7567 if (_internal_metadata_.have_unknown_fields()) {
7568 total_size +=
7569 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7570 unknown_fields());
7571 }
7467 if (_has_bits_[0 / 32] & 63u) { 7572 if (_has_bits_[0 / 32] & 63u) {
7468 // optional string name = 1; 7573 // optional string name = 1;
7469 if (has_name()) { 7574 if (has_name()) {
7470 total_size += 1 + 7575 total_size += 1 +
7471 ::google::protobuf::internal::WireFormatLite::StringSize( 7576 ::google::protobuf::internal::WireFormatLite::StringSize(
7472 this->name()); 7577 this->name());
7473 } 7578 }
7474 7579
7475 // optional string input_type = 2; 7580 // optional string input_type = 2;
7476 if (has_input_type()) { 7581 if (has_input_type()) {
(...skipping 20 matching lines...) Expand all
7497 if (has_client_streaming()) { 7602 if (has_client_streaming()) {
7498 total_size += 1 + 1; 7603 total_size += 1 + 1;
7499 } 7604 }
7500 7605
7501 // optional bool server_streaming = 6 [default = false]; 7606 // optional bool server_streaming = 6 [default = false];
7502 if (has_server_streaming()) { 7607 if (has_server_streaming()) {
7503 total_size += 1 + 1; 7608 total_size += 1 + 1;
7504 } 7609 }
7505 7610
7506 } 7611 }
7507 if (_internal_metadata_.have_unknown_fields()) { 7612 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7508 total_size +=
7509 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7510 unknown_fields());
7511 }
7512 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 7613 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7513 _cached_size_ = total_size; 7614 _cached_size_ = cached_size;
7514 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 7615 GOOGLE_SAFE_CONCURRENT_WRITES_END();
7515 return total_size; 7616 return total_size;
7516 } 7617 }
7517 7618
7518 void MethodDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { 7619 void MethodDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
7519 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.MethodD escriptorProto) 7620 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.MethodD escriptorProto)
7520 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 7621 GOOGLE_DCHECK_NE(&from, this);
7521 const MethodDescriptorProto* source = 7622 const MethodDescriptorProto* source =
7522 ::google::protobuf::internal::DynamicCastToGenerated<const MethodDescripto rProto>( 7623 ::google::protobuf::internal::DynamicCastToGenerated<const MethodDescripto rProto>(
7523 &from); 7624 &from);
7524 if (source == NULL) { 7625 if (source == NULL) {
7525 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.M ethodDescriptorProto) 7626 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.M ethodDescriptorProto)
7526 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 7627 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7527 } else { 7628 } else {
7528 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.MethodDescriptorProto) 7629 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.MethodDescriptorProto)
7529 MergeFrom(*source); 7630 MergeFrom(*source);
7530 } 7631 }
7531 } 7632 }
7532 7633
7533 void MethodDescriptorProto::MergeFrom(const MethodDescriptorProto& from) { 7634 void MethodDescriptorProto::MergeFrom(const MethodDescriptorProto& from) {
7534 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Meth odDescriptorProto) 7635 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Meth odDescriptorProto)
7535 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 7636 GOOGLE_DCHECK_NE(&from, this);
7536 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { 7637 _internal_metadata_.MergeFrom(from._internal_metadata_);
7638 if (from._has_bits_[0 / 32] & 63u) {
7537 if (from.has_name()) { 7639 if (from.has_name()) {
7538 set_has_name(); 7640 set_has_name();
7539 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), from.name_); 7641 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), from.name_);
7540 } 7642 }
7541 if (from.has_input_type()) { 7643 if (from.has_input_type()) {
7542 set_has_input_type(); 7644 set_has_input_type();
7543 input_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited(), from.input_type_); 7645 input_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited(), from.input_type_);
7544 } 7646 }
7545 if (from.has_output_type()) { 7647 if (from.has_output_type()) {
7546 set_has_output_type(); 7648 set_has_output_type();
7547 output_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited(), from.output_type_); 7649 output_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited(), from.output_type_);
7548 } 7650 }
7549 if (from.has_options()) { 7651 if (from.has_options()) {
7550 mutable_options()->::google::protobuf::MethodOptions::MergeFrom(from.optio ns()); 7652 mutable_options()->::google::protobuf::MethodOptions::MergeFrom(from.optio ns());
7551 } 7653 }
7552 if (from.has_client_streaming()) { 7654 if (from.has_client_streaming()) {
7553 set_client_streaming(from.client_streaming()); 7655 set_client_streaming(from.client_streaming());
7554 } 7656 }
7555 if (from.has_server_streaming()) { 7657 if (from.has_server_streaming()) {
7556 set_server_streaming(from.server_streaming()); 7658 set_server_streaming(from.server_streaming());
7557 } 7659 }
7558 } 7660 }
7559 if (from._internal_metadata_.have_unknown_fields()) {
7560 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
7561 }
7562 } 7661 }
7563 7662
7564 void MethodDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { 7663 void MethodDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
7565 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.MethodDe scriptorProto) 7664 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.MethodDe scriptorProto)
7566 if (&from == this) return; 7665 if (&from == this) return;
7567 Clear(); 7666 Clear();
7568 MergeFrom(from); 7667 MergeFrom(from);
7569 } 7668 }
7570 7669
7571 void MethodDescriptorProto::CopyFrom(const MethodDescriptorProto& from) { 7670 void MethodDescriptorProto::CopyFrom(const MethodDescriptorProto& from) {
7572 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Metho dDescriptorProto) 7671 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Metho dDescriptorProto)
7573 if (&from == this) return; 7672 if (&from == this) return;
7574 Clear(); 7673 Clear();
7575 MergeFrom(from); 7674 MergeFrom(from);
7576 } 7675 }
7577 7676
7578 bool MethodDescriptorProto::IsInitialized() const { 7677 bool MethodDescriptorProto::IsInitialized() const {
7579
7580 if (has_options()) { 7678 if (has_options()) {
7581 if (!this->options_->IsInitialized()) return false; 7679 if (!this->options_->IsInitialized()) return false;
7582 } 7680 }
7583 return true; 7681 return true;
7584 } 7682 }
7585 7683
7586 void MethodDescriptorProto::Swap(MethodDescriptorProto* other) { 7684 void MethodDescriptorProto::Swap(MethodDescriptorProto* other) {
7587 if (other == this) return; 7685 if (other == this) return;
7588 InternalSwap(other); 7686 InternalSwap(other);
7589 } 7687 }
7590 void MethodDescriptorProto::InternalSwap(MethodDescriptorProto* other) { 7688 void MethodDescriptorProto::InternalSwap(MethodDescriptorProto* other) {
7591 name_.Swap(&other->name_); 7689 name_.Swap(&other->name_);
7592 input_type_.Swap(&other->input_type_); 7690 input_type_.Swap(&other->input_type_);
7593 output_type_.Swap(&other->output_type_); 7691 output_type_.Swap(&other->output_type_);
7594 std::swap(options_, other->options_); 7692 std::swap(options_, other->options_);
7595 std::swap(client_streaming_, other->client_streaming_); 7693 std::swap(client_streaming_, other->client_streaming_);
7596 std::swap(server_streaming_, other->server_streaming_); 7694 std::swap(server_streaming_, other->server_streaming_);
7597 std::swap(_has_bits_[0], other->_has_bits_[0]); 7695 std::swap(_has_bits_[0], other->_has_bits_[0]);
7598 _internal_metadata_.Swap(&other->_internal_metadata_); 7696 _internal_metadata_.Swap(&other->_internal_metadata_);
7599 std::swap(_cached_size_, other->_cached_size_); 7697 std::swap(_cached_size_, other->_cached_size_);
7600 } 7698 }
7601 7699
7602 ::google::protobuf::Metadata MethodDescriptorProto::GetMetadata() const { 7700 ::google::protobuf::Metadata MethodDescriptorProto::GetMetadata() const {
7603 protobuf_AssignDescriptorsOnce(); 7701 protobuf_AssignDescriptorsOnce();
7604 ::google::protobuf::Metadata metadata; 7702 return file_level_metadata[10];
7605 metadata.descriptor = MethodDescriptorProto_descriptor_;
7606 metadata.reflection = MethodDescriptorProto_reflection_;
7607 return metadata;
7608 } 7703 }
7609 7704
7610 #if PROTOBUF_INLINE_NOT_IN_HEADERS 7705 #if PROTOBUF_INLINE_NOT_IN_HEADERS
7611 // MethodDescriptorProto 7706 // MethodDescriptorProto
7612 7707
7613 // optional string name = 1; 7708 // optional string name = 1;
7614 bool MethodDescriptorProto::has_name() const { 7709 bool MethodDescriptorProto::has_name() const {
7615 return (_has_bits_[0] & 0x00000001u) != 0; 7710 return (_has_bits_[0] & 0x00000001u) != 0;
7616 } 7711 }
7617 void MethodDescriptorProto::set_has_name() { 7712 void MethodDescriptorProto::set_has_name() {
7618 _has_bits_[0] |= 0x00000001u; 7713 _has_bits_[0] |= 0x00000001u;
7619 } 7714 }
7620 void MethodDescriptorProto::clear_has_name() { 7715 void MethodDescriptorProto::clear_has_name() {
7621 _has_bits_[0] &= ~0x00000001u; 7716 _has_bits_[0] &= ~0x00000001u;
7622 } 7717 }
7623 void MethodDescriptorProto::clear_name() { 7718 void MethodDescriptorProto::clear_name() {
7624 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 7719 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
7625 clear_has_name(); 7720 clear_has_name();
7626 } 7721 }
7627 const ::std::string& MethodDescriptorProto::name() const { 7722 const ::std::string& MethodDescriptorProto::name() const {
7628 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.na me) 7723 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.na me)
7629 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited()); 7724 return name_.GetNoArena();
7630 } 7725 }
7631 void MethodDescriptorProto::set_name(const ::std::string& value) { 7726 void MethodDescriptorProto::set_name(const ::std::string& value) {
7632 set_has_name(); 7727 set_has_name();
7633 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 7728 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
7634 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.na me) 7729 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.na me)
7635 } 7730 }
7636 void MethodDescriptorProto::set_name(const char* value) { 7731 #if LANG_CXX11
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) {
7637 set_has_name(); 7740 set_has_name();
7638 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 7741 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
7639 // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorPro to.name) 7742 // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorPro to.name)
7640 } 7743 }
7641 void MethodDescriptorProto::set_name(const char* value, size_t size) { 7744 void MethodDescriptorProto::set_name(const char* value, size_t size) {
7642 set_has_name(); 7745 set_has_name();
7643 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 7746 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7644 ::std::string(reinterpret_cast<const char*>(value), size)); 7747 ::std::string(reinterpret_cast<const char*>(value), size));
7645 // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptor Proto.name) 7748 // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptor Proto.name)
7646 } 7749 }
7647 ::std::string* MethodDescriptorProto::mutable_name() { 7750 ::std::string* MethodDescriptorProto::mutable_name() {
7648 set_has_name(); 7751 set_has_name();
7649 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProt o.name) 7752 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProt o.name)
7650 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 7753 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
7651 } 7754 }
7652 ::std::string* MethodDescriptorProto::release_name() { 7755 ::std::string* MethodDescriptorProto::release_name() {
7653 // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProt o.name) 7756 // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProt o.name)
7654 clear_has_name(); 7757 clear_has_name();
7655 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 7758 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
7656 } 7759 }
7657 void MethodDescriptorProto::set_allocated_name(::std::string* name) { 7760 void MethodDescriptorProto::set_allocated_name(::std::string* name) {
7658 if (name != NULL) { 7761 if (name != NULL) {
7659 set_has_name(); 7762 set_has_name();
7660 } else { 7763 } else {
7661 clear_has_name(); 7764 clear_has_name();
7662 } 7765 }
7663 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name); 7766 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name);
7664 // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescript orProto.name) 7767 // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescript orProto.name)
7665 } 7768 }
7666 7769
7667 // optional string input_type = 2; 7770 // optional string input_type = 2;
7668 bool MethodDescriptorProto::has_input_type() const { 7771 bool MethodDescriptorProto::has_input_type() const {
7669 return (_has_bits_[0] & 0x00000002u) != 0; 7772 return (_has_bits_[0] & 0x00000002u) != 0;
7670 } 7773 }
7671 void MethodDescriptorProto::set_has_input_type() { 7774 void MethodDescriptorProto::set_has_input_type() {
7672 _has_bits_[0] |= 0x00000002u; 7775 _has_bits_[0] |= 0x00000002u;
7673 } 7776 }
7674 void MethodDescriptorProto::clear_has_input_type() { 7777 void MethodDescriptorProto::clear_has_input_type() {
7675 _has_bits_[0] &= ~0x00000002u; 7778 _has_bits_[0] &= ~0x00000002u;
7676 } 7779 }
7677 void MethodDescriptorProto::clear_input_type() { 7780 void MethodDescriptorProto::clear_input_type() {
7678 input_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringA lreadyInited()); 7781 input_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringA lreadyInited());
7679 clear_has_input_type(); 7782 clear_has_input_type();
7680 } 7783 }
7681 const ::std::string& MethodDescriptorProto::input_type() const { 7784 const ::std::string& MethodDescriptorProto::input_type() const {
7682 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.in put_type) 7785 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.in put_type)
7683 return input_type_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited()); 7786 return input_type_.GetNoArena();
7684 } 7787 }
7685 void MethodDescriptorProto::set_input_type(const ::std::string& value) { 7788 void MethodDescriptorProto::set_input_type(const ::std::string& value) {
7686 set_has_input_type(); 7789 set_has_input_type();
7687 input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted(), value); 7790 input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted(), value);
7688 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.in put_type) 7791 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.in put_type)
7689 } 7792 }
7690 void MethodDescriptorProto::set_input_type(const char* value) { 7793 #if LANG_CXX11
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) {
7691 set_has_input_type(); 7802 set_has_input_type();
7692 input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted(), ::std::string(value)); 7803 input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted(), ::std::string(value));
7693 // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorPro to.input_type) 7804 // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorPro to.input_type)
7694 } 7805 }
7695 void MethodDescriptorProto::set_input_type(const char* value, size_t size) { 7806 void MethodDescriptorProto::set_input_type(const char* value, size_t size) {
7696 set_has_input_type(); 7807 set_has_input_type();
7697 input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted(), 7808 input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted(),
7698 ::std::string(reinterpret_cast<const char*>(value), size)); 7809 ::std::string(reinterpret_cast<const char*>(value), size));
7699 // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptor Proto.input_type) 7810 // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptor Proto.input_type)
7700 } 7811 }
7701 ::std::string* MethodDescriptorProto::mutable_input_type() { 7812 ::std::string* MethodDescriptorProto::mutable_input_type() {
7702 set_has_input_type(); 7813 set_has_input_type();
7703 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProt o.input_type) 7814 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProt o.input_type)
7704 return input_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited()); 7815 return input_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited());
7705 } 7816 }
7706 ::std::string* MethodDescriptorProto::release_input_type() { 7817 ::std::string* MethodDescriptorProto::release_input_type() {
7707 // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProt o.input_type) 7818 // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProt o.input_type)
7708 clear_has_input_type(); 7819 clear_has_input_type();
7709 return input_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited()); 7820 return input_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited());
7710 } 7821 }
7711 void MethodDescriptorProto::set_allocated_input_type(::std::string* input_type) { 7822 void MethodDescriptorProto::set_allocated_input_type(::std::string* input_type) {
7712 if (input_type != NULL) { 7823 if (input_type != NULL) {
7713 set_has_input_type(); 7824 set_has_input_type();
7714 } else { 7825 } else {
7715 clear_has_input_type(); 7826 clear_has_input_type();
7716 } 7827 }
7717 input_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringA lreadyInited(), input_type); 7828 input_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringA lreadyInited(), input_type);
7718 // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescript orProto.input_type) 7829 // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescript orProto.input_type)
7719 } 7830 }
7720 7831
7721 // optional string output_type = 3; 7832 // optional string output_type = 3;
7722 bool MethodDescriptorProto::has_output_type() const { 7833 bool MethodDescriptorProto::has_output_type() const {
7723 return (_has_bits_[0] & 0x00000004u) != 0; 7834 return (_has_bits_[0] & 0x00000004u) != 0;
7724 } 7835 }
7725 void MethodDescriptorProto::set_has_output_type() { 7836 void MethodDescriptorProto::set_has_output_type() {
7726 _has_bits_[0] |= 0x00000004u; 7837 _has_bits_[0] |= 0x00000004u;
7727 } 7838 }
7728 void MethodDescriptorProto::clear_has_output_type() { 7839 void MethodDescriptorProto::clear_has_output_type() {
7729 _has_bits_[0] &= ~0x00000004u; 7840 _has_bits_[0] &= ~0x00000004u;
7730 } 7841 }
7731 void MethodDescriptorProto::clear_output_type() { 7842 void MethodDescriptorProto::clear_output_type() {
7732 output_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited()); 7843 output_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited());
7733 clear_has_output_type(); 7844 clear_has_output_type();
7734 } 7845 }
7735 const ::std::string& MethodDescriptorProto::output_type() const { 7846 const ::std::string& MethodDescriptorProto::output_type() const {
7736 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.ou tput_type) 7847 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.ou tput_type)
7737 return output_type_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited()); 7848 return output_type_.GetNoArena();
7738 } 7849 }
7739 void MethodDescriptorProto::set_output_type(const ::std::string& value) { 7850 void MethodDescriptorProto::set_output_type(const ::std::string& value) {
7740 set_has_output_type(); 7851 set_has_output_type();
7741 output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited(), value); 7852 output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited(), value);
7742 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.ou tput_type) 7853 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.ou tput_type)
7743 } 7854 }
7744 void MethodDescriptorProto::set_output_type(const char* value) { 7855 #if LANG_CXX11
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) {
7745 set_has_output_type(); 7864 set_has_output_type();
7746 output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited(), ::std::string(value)); 7865 output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited(), ::std::string(value));
7747 // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorPro to.output_type) 7866 // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorPro to.output_type)
7748 } 7867 }
7749 void MethodDescriptorProto::set_output_type(const char* value, size_t size) { 7868 void MethodDescriptorProto::set_output_type(const char* value, size_t size) {
7750 set_has_output_type(); 7869 set_has_output_type();
7751 output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited(), 7870 output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited(),
7752 ::std::string(reinterpret_cast<const char*>(value), size)); 7871 ::std::string(reinterpret_cast<const char*>(value), size));
7753 // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptor Proto.output_type) 7872 // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptor Proto.output_type)
7754 } 7873 }
7755 ::std::string* MethodDescriptorProto::mutable_output_type() { 7874 ::std::string* MethodDescriptorProto::mutable_output_type() {
7756 set_has_output_type(); 7875 set_has_output_type();
7757 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProt o.output_type) 7876 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProt o.output_type)
7758 return output_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited()); 7877 return output_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited());
7759 } 7878 }
7760 ::std::string* MethodDescriptorProto::release_output_type() { 7879 ::std::string* MethodDescriptorProto::release_output_type() {
7761 // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProt o.output_type) 7880 // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProt o.output_type)
7762 clear_has_output_type(); 7881 clear_has_output_type();
7763 return output_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited()); 7882 return output_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited());
7764 } 7883 }
7765 void MethodDescriptorProto::set_allocated_output_type(::std::string* output_typ e) { 7884 void MethodDescriptorProto::set_allocated_output_type(::std::string* output_type ) {
7766 if (output_type != NULL) { 7885 if (output_type != NULL) {
7767 set_has_output_type(); 7886 set_has_output_type();
7768 } else { 7887 } else {
7769 clear_has_output_type(); 7888 clear_has_output_type();
7770 } 7889 }
7771 output_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited(), output_type); 7890 output_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited(), output_type);
7772 // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescript orProto.output_type) 7891 // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescript orProto.output_type)
7773 } 7892 }
7774 7893
7775 // optional .google.protobuf.MethodOptions options = 4; 7894 // optional .google.protobuf.MethodOptions options = 4;
7776 bool MethodDescriptorProto::has_options() const { 7895 bool MethodDescriptorProto::has_options() const {
7777 return (_has_bits_[0] & 0x00000008u) != 0; 7896 return (_has_bits_[0] & 0x00000008u) != 0;
7778 } 7897 }
7779 void MethodDescriptorProto::set_has_options() { 7898 void MethodDescriptorProto::set_has_options() {
7780 _has_bits_[0] |= 0x00000008u; 7899 _has_bits_[0] |= 0x00000008u;
7781 } 7900 }
7782 void MethodDescriptorProto::clear_has_options() { 7901 void MethodDescriptorProto::clear_has_options() {
7783 _has_bits_[0] &= ~0x00000008u; 7902 _has_bits_[0] &= ~0x00000008u;
7784 } 7903 }
7785 void MethodDescriptorProto::clear_options() { 7904 void MethodDescriptorProto::clear_options() {
7786 if (options_ != NULL) options_->::google::protobuf::MethodOptions::Clear(); 7905 if (options_ != NULL) options_->::google::protobuf::MethodOptions::Clear();
7787 clear_has_options(); 7906 clear_has_options();
7788 } 7907 }
7789 const ::google::protobuf::MethodOptions& MethodDescriptorProto::options() const { 7908 const ::google::protobuf::MethodOptions& MethodDescriptorProto::options() const {
7790 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.op tions) 7909 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.op tions)
7791 return options_ != NULL ? *options_ : *default_instance_->options_; 7910 return options_ != NULL ? *options_
7911 : *::google::protobuf::MethodOptions::internal_default_ instance();
7792 } 7912 }
7793 ::google::protobuf::MethodOptions* MethodDescriptorProto::mutable_options() { 7913 ::google::protobuf::MethodOptions* MethodDescriptorProto::mutable_options() {
7794 set_has_options(); 7914 set_has_options();
7795 if (options_ == NULL) { 7915 if (options_ == NULL) {
7796 options_ = new ::google::protobuf::MethodOptions; 7916 options_ = new ::google::protobuf::MethodOptions;
7797 } 7917 }
7798 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProt o.options) 7918 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProt o.options)
7799 return options_; 7919 return options_;
7800 } 7920 }
7801 ::google::protobuf::MethodOptions* MethodDescriptorProto::release_options() { 7921 ::google::protobuf::MethodOptions* MethodDescriptorProto::release_options() {
(...skipping 21 matching lines...) Expand all
7823 void MethodDescriptorProto::set_has_client_streaming() { 7943 void MethodDescriptorProto::set_has_client_streaming() {
7824 _has_bits_[0] |= 0x00000010u; 7944 _has_bits_[0] |= 0x00000010u;
7825 } 7945 }
7826 void MethodDescriptorProto::clear_has_client_streaming() { 7946 void MethodDescriptorProto::clear_has_client_streaming() {
7827 _has_bits_[0] &= ~0x00000010u; 7947 _has_bits_[0] &= ~0x00000010u;
7828 } 7948 }
7829 void MethodDescriptorProto::clear_client_streaming() { 7949 void MethodDescriptorProto::clear_client_streaming() {
7830 client_streaming_ = false; 7950 client_streaming_ = false;
7831 clear_has_client_streaming(); 7951 clear_has_client_streaming();
7832 } 7952 }
7833 bool MethodDescriptorProto::client_streaming() const { 7953 bool MethodDescriptorProto::client_streaming() const {
7834 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.cl ient_streaming) 7954 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.cl ient_streaming)
7835 return client_streaming_; 7955 return client_streaming_;
7836 } 7956 }
7837 void MethodDescriptorProto::set_client_streaming(bool value) { 7957 void MethodDescriptorProto::set_client_streaming(bool value) {
7838 set_has_client_streaming(); 7958 set_has_client_streaming();
7839 client_streaming_ = value; 7959 client_streaming_ = value;
7840 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.cl ient_streaming) 7960 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.cl ient_streaming)
7841 } 7961 }
7842 7962
7843 // optional bool server_streaming = 6 [default = false]; 7963 // optional bool server_streaming = 6 [default = false];
7844 bool MethodDescriptorProto::has_server_streaming() const { 7964 bool MethodDescriptorProto::has_server_streaming() const {
7845 return (_has_bits_[0] & 0x00000020u) != 0; 7965 return (_has_bits_[0] & 0x00000020u) != 0;
7846 } 7966 }
7847 void MethodDescriptorProto::set_has_server_streaming() { 7967 void MethodDescriptorProto::set_has_server_streaming() {
7848 _has_bits_[0] |= 0x00000020u; 7968 _has_bits_[0] |= 0x00000020u;
7849 } 7969 }
7850 void MethodDescriptorProto::clear_has_server_streaming() { 7970 void MethodDescriptorProto::clear_has_server_streaming() {
7851 _has_bits_[0] &= ~0x00000020u; 7971 _has_bits_[0] &= ~0x00000020u;
7852 } 7972 }
7853 void MethodDescriptorProto::clear_server_streaming() { 7973 void MethodDescriptorProto::clear_server_streaming() {
7854 server_streaming_ = false; 7974 server_streaming_ = false;
7855 clear_has_server_streaming(); 7975 clear_has_server_streaming();
7856 } 7976 }
7857 bool MethodDescriptorProto::server_streaming() const { 7977 bool MethodDescriptorProto::server_streaming() const {
7858 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.se rver_streaming) 7978 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.se rver_streaming)
7859 return server_streaming_; 7979 return server_streaming_;
7860 } 7980 }
7861 void MethodDescriptorProto::set_server_streaming(bool value) { 7981 void MethodDescriptorProto::set_server_streaming(bool value) {
7862 set_has_server_streaming(); 7982 set_has_server_streaming();
7863 server_streaming_ = value; 7983 server_streaming_ = value;
7864 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.se rver_streaming) 7984 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.se rver_streaming)
7865 } 7985 }
7866 7986
7867 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 7987 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
7868 7988
7869 // =================================================================== 7989 // ===================================================================
7870 7990
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
7894 #if !defined(_MSC_VER) || _MSC_VER >= 1900 7991 #if !defined(_MSC_VER) || _MSC_VER >= 1900
7895 const int FileOptions::kJavaPackageFieldNumber; 7992 const int FileOptions::kJavaPackageFieldNumber;
7896 const int FileOptions::kJavaOuterClassnameFieldNumber; 7993 const int FileOptions::kJavaOuterClassnameFieldNumber;
7897 const int FileOptions::kJavaMultipleFilesFieldNumber; 7994 const int FileOptions::kJavaMultipleFilesFieldNumber;
7898 const int FileOptions::kJavaGenerateEqualsAndHashFieldNumber; 7995 const int FileOptions::kJavaGenerateEqualsAndHashFieldNumber;
7899 const int FileOptions::kJavaStringCheckUtf8FieldNumber; 7996 const int FileOptions::kJavaStringCheckUtf8FieldNumber;
7900 const int FileOptions::kOptimizeForFieldNumber; 7997 const int FileOptions::kOptimizeForFieldNumber;
7901 const int FileOptions::kGoPackageFieldNumber; 7998 const int FileOptions::kGoPackageFieldNumber;
7902 const int FileOptions::kCcGenericServicesFieldNumber; 7999 const int FileOptions::kCcGenericServicesFieldNumber;
7903 const int FileOptions::kJavaGenericServicesFieldNumber; 8000 const int FileOptions::kJavaGenericServicesFieldNumber;
7904 const int FileOptions::kPyGenericServicesFieldNumber; 8001 const int FileOptions::kPyGenericServicesFieldNumber;
7905 const int FileOptions::kDeprecatedFieldNumber; 8002 const int FileOptions::kDeprecatedFieldNumber;
7906 const int FileOptions::kCcEnableArenasFieldNumber; 8003 const int FileOptions::kCcEnableArenasFieldNumber;
7907 const int FileOptions::kObjcClassPrefixFieldNumber; 8004 const int FileOptions::kObjcClassPrefixFieldNumber;
7908 const int FileOptions::kCsharpNamespaceFieldNumber; 8005 const int FileOptions::kCsharpNamespaceFieldNumber;
8006 const int FileOptions::kSwiftPrefixFieldNumber;
7909 const int FileOptions::kUninterpretedOptionFieldNumber; 8007 const int FileOptions::kUninterpretedOptionFieldNumber;
7910 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 8008 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
7911 8009
7912 FileOptions::FileOptions() 8010 FileOptions::FileOptions()
7913 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 8011 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
8012 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
8013 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
8014 }
7914 SharedCtor(); 8015 SharedCtor();
7915 // @@protoc_insertion_point(constructor:google.protobuf.FileOptions) 8016 // @@protoc_insertion_point(constructor:google.protobuf.FileOptions)
7916 } 8017 }
7917
7918 void FileOptions::InitAsDefaultInstance() {
7919 }
7920
7921 FileOptions::FileOptions(const FileOptions& from) 8018 FileOptions::FileOptions(const FileOptions& from)
7922 : ::google::protobuf::Message(), 8019 : ::google::protobuf::Message(),
7923 _internal_metadata_(NULL) { 8020 _internal_metadata_(NULL),
7924 SharedCtor(); 8021 _has_bits_(from._has_bits_),
7925 MergeFrom(from); 8022 _cached_size_(0),
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_));
7926 // @@protoc_insertion_point(copy_constructor:google.protobuf.FileOptions) 8053 // @@protoc_insertion_point(copy_constructor:google.protobuf.FileOptions)
7927 } 8054 }
7928 8055
7929 void FileOptions::SharedCtor() { 8056 void FileOptions::SharedCtor() {
7930 ::google::protobuf::internal::GetEmptyString();
7931 _cached_size_ = 0; 8057 _cached_size_ = 0;
7932 java_package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAl readyInited()); 8058 java_package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAl readyInited());
7933 java_outer_classname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmpty StringAlreadyInited()); 8059 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;
7938 go_package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlre adyInited()); 8060 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;
7944 objc_class_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited()); 8061 objc_class_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited());
7945 csharp_namespace_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited()); 8062 csharp_namespace_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited());
7946 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 8063 swift_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAl readyInited());
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;
7947 } 8067 }
7948 8068
7949 FileOptions::~FileOptions() { 8069 FileOptions::~FileOptions() {
7950 // @@protoc_insertion_point(destructor:google.protobuf.FileOptions) 8070 // @@protoc_insertion_point(destructor:google.protobuf.FileOptions)
7951 SharedDtor(); 8071 SharedDtor();
7952 } 8072 }
7953 8073
7954 void FileOptions::SharedDtor() { 8074 void FileOptions::SharedDtor() {
7955 java_package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited()); 8075 java_package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited());
7956 java_outer_classname_.DestroyNoArena(&::google::protobuf::internal::GetEmptySt ringAlreadyInited()); 8076 java_outer_classname_.DestroyNoArena(&::google::protobuf::internal::GetEmptySt ringAlreadyInited());
7957 go_package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlread yInited()); 8077 go_package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlread yInited());
7958 objc_class_prefix_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited()); 8078 objc_class_prefix_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited());
7959 csharp_namespace_.DestroyNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited()); 8079 csharp_namespace_.DestroyNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited());
7960 if (this != default_instance_) { 8080 swift_prefix_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited());
7961 }
7962 } 8081 }
7963 8082
7964 void FileOptions::SetCachedSize(int size) const { 8083 void FileOptions::SetCachedSize(int size) const {
7965 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 8084 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7966 _cached_size_ = size; 8085 _cached_size_ = size;
7967 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 8086 GOOGLE_SAFE_CONCURRENT_WRITES_END();
7968 } 8087 }
7969 const ::google::protobuf::Descriptor* FileOptions::descriptor() { 8088 const ::google::protobuf::Descriptor* FileOptions::descriptor() {
7970 protobuf_AssignDescriptorsOnce(); 8089 protobuf_AssignDescriptorsOnce();
7971 return FileOptions_descriptor_; 8090 return file_level_metadata[11].descriptor;
7972 } 8091 }
7973 8092
7974 const FileOptions& FileOptions::default_instance() { 8093 const FileOptions& FileOptions::default_instance() {
7975 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 8094 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
7976 return *default_instance_; 8095 return *internal_default_instance();
7977 } 8096 }
7978 8097
7979 FileOptions* FileOptions::default_instance_ = NULL;
7980
7981 FileOptions* FileOptions::New(::google::protobuf::Arena* arena) const { 8098 FileOptions* FileOptions::New(::google::protobuf::Arena* arena) const {
7982 FileOptions* n = new FileOptions; 8099 FileOptions* n = new FileOptions;
7983 if (arena != NULL) { 8100 if (arena != NULL) {
7984 arena->Own(n); 8101 arena->Own(n);
7985 } 8102 }
7986 return n; 8103 return n;
7987 } 8104 }
7988 8105
7989 void FileOptions::Clear() { 8106 void FileOptions::Clear() {
7990 // @@protoc_insertion_point(message_clear_start:google.protobuf.FileOptions) 8107 // @@protoc_insertion_point(message_clear_start:google.protobuf.FileOptions)
7991 _extensions_.Clear(); 8108 _extensions_.Clear();
7992 #if defined(__clang__) 8109 uninterpreted_option_.Clear();
7993 #define ZR_HELPER_(f) \ 8110 if (_has_bits_[0 / 32] & 63u) {
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_);
8010 if (has_java_package()) { 8111 if (has_java_package()) {
8011 java_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyS tringAlreadyInited()); 8112 GOOGLE_DCHECK(!java_package_.IsDefault(&::google::protobuf::internal::GetE mptyStringAlreadyInited()));
8113 (*java_package_.UnsafeRawStringPointer())->clear();
8012 } 8114 }
8013 if (has_java_outer_classname()) { 8115 if (has_java_outer_classname()) {
8014 java_outer_classname_.ClearToEmptyNoArena(&::google::protobuf::internal::G etEmptyStringAlreadyInited()); 8116 GOOGLE_DCHECK(!java_outer_classname_.IsDefault(&::google::protobuf::intern al::GetEmptyStringAlreadyInited()));
8117 (*java_outer_classname_.UnsafeRawStringPointer())->clear();
8015 } 8118 }
8016 optimize_for_ = 1;
8017 if (has_go_package()) { 8119 if (has_go_package()) {
8018 go_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited()); 8120 GOOGLE_DCHECK(!go_package_.IsDefault(&::google::protobuf::internal::GetEmp tyStringAlreadyInited()));
8121 (*go_package_.UnsafeRawStringPointer())->clear();
8122 }
8123 if (has_objc_class_prefix()) {
8124 GOOGLE_DCHECK(!objc_class_prefix_.IsDefault(&::google::protobuf::internal: :GetEmptyStringAlreadyInited()));
8125 (*objc_class_prefix_.UnsafeRawStringPointer())->clear();
8126 }
8127 if (has_csharp_namespace()) {
8128 GOOGLE_DCHECK(!csharp_namespace_.IsDefault(&::google::protobuf::internal:: GetEmptyStringAlreadyInited()));
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();
8019 } 8134 }
8020 } 8135 }
8021 if (_has_bits_[8 / 32] & 16128u) { 8136 if (_has_bits_[0 / 32] & 192u) {
8022 ZR_(java_generic_services_, cc_enable_arenas_); 8137 ::memset(&java_multiple_files_, 0, reinterpret_cast<char*>(&java_generate_eq uals_and_hash_) -
8023 if (has_objc_class_prefix()) { 8138 reinterpret_cast<char*>(&java_multiple_files_) + sizeof(java_generate_equa ls_and_hash_));
8024 objc_class_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetE mptyStringAlreadyInited());
8025 }
8026 if (has_csharp_namespace()) {
8027 csharp_namespace_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEm ptyStringAlreadyInited());
8028 }
8029 } 8139 }
8030 8140 if (_has_bits_[8 / 32] & 32512u) {
8031 #undef ZR_HELPER_ 8141 ::memset(&java_string_check_utf8_, 0, reinterpret_cast<char*>(&cc_enable_are nas_) -
8032 #undef ZR_ 8142 reinterpret_cast<char*>(&java_string_check_utf8_) + sizeof(cc_enable_arena s_));
8033 8143 optimize_for_ = 1;
8034 uninterpreted_option_.Clear();
8035 ::memset(_has_bits_, 0, sizeof(_has_bits_));
8036 if (_internal_metadata_.have_unknown_fields()) {
8037 mutable_unknown_fields()->Clear();
8038 } 8144 }
8145 _has_bits_.Clear();
8146 _internal_metadata_.Clear();
8039 } 8147 }
8040 8148
8041 bool FileOptions::MergePartialFromCodedStream( 8149 bool FileOptions::MergePartialFromCodedStream(
8042 ::google::protobuf::io::CodedInputStream* input) { 8150 ::google::protobuf::io::CodedInputStream* input) {
8043 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 8151 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
8044 ::google::protobuf::uint32 tag; 8152 ::google::protobuf::uint32 tag;
8045 // @@protoc_insertion_point(parse_start:google.protobuf.FileOptions) 8153 // @@protoc_insertion_point(parse_start:google.protobuf.FileOptions)
8046 for (;;) { 8154 for (;;) {
8047 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 16383); 8155 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(16383u);
8048 tag = p.first; 8156 tag = p.first;
8049 if (!p.second) goto handle_unusual; 8157 if (!p.second) goto handle_unusual;
8050 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 8158 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
8051 // optional string java_package = 1; 8159 // optional string java_package = 1;
8052 case 1: { 8160 case 1: {
8053 if (tag == 10) { 8161 if (tag == 10u) {
8054 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 8162 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8055 input, this->mutable_java_package())); 8163 input, this->mutable_java_package()));
8056 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 8164 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8057 this->java_package().data(), this->java_package().length(), 8165 this->java_package().data(), this->java_package().length(),
8058 ::google::protobuf::internal::WireFormat::PARSE, 8166 ::google::protobuf::internal::WireFormat::PARSE,
8059 "google.protobuf.FileOptions.java_package"); 8167 "google.protobuf.FileOptions.java_package");
8060 } else { 8168 } else {
8061 goto handle_unusual; 8169 goto handle_unusual;
8062 } 8170 }
8063 if (input->ExpectTag(66)) goto parse_java_outer_classname;
8064 break; 8171 break;
8065 } 8172 }
8066 8173
8067 // optional string java_outer_classname = 8; 8174 // optional string java_outer_classname = 8;
8068 case 8: { 8175 case 8: {
8069 if (tag == 66) { 8176 if (tag == 66u) {
8070 parse_java_outer_classname:
8071 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 8177 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8072 input, this->mutable_java_outer_classname())); 8178 input, this->mutable_java_outer_classname()));
8073 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 8179 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8074 this->java_outer_classname().data(), this->java_outer_classname().le ngth(), 8180 this->java_outer_classname().data(), this->java_outer_classname().le ngth(),
8075 ::google::protobuf::internal::WireFormat::PARSE, 8181 ::google::protobuf::internal::WireFormat::PARSE,
8076 "google.protobuf.FileOptions.java_outer_classname"); 8182 "google.protobuf.FileOptions.java_outer_classname");
8077 } else { 8183 } else {
8078 goto handle_unusual; 8184 goto handle_unusual;
8079 } 8185 }
8080 if (input->ExpectTag(72)) goto parse_optimize_for;
8081 break; 8186 break;
8082 } 8187 }
8083 8188
8084 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [de fault = SPEED]; 8189 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [de fault = SPEED];
8085 case 9: { 8190 case 9: {
8086 if (tag == 72) { 8191 if (tag == 72u) {
8087 parse_optimize_for:
8088 int value; 8192 int value;
8089 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 8193 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8090 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM> ( 8194 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM> (
8091 input, &value))); 8195 input, &value)));
8092 if (::google::protobuf::FileOptions_OptimizeMode_IsValid(value)) { 8196 if (::google::protobuf::FileOptions_OptimizeMode_IsValid(value)) {
8093 set_optimize_for(static_cast< ::google::protobuf::FileOptions_Optimi zeMode >(value)); 8197 set_optimize_for(static_cast< ::google::protobuf::FileOptions_Optimi zeMode >(value));
8094 } else { 8198 } else {
8095 mutable_unknown_fields()->AddVarint(9, value); 8199 mutable_unknown_fields()->AddVarint(9, value);
8096 } 8200 }
8097 } else { 8201 } else {
8098 goto handle_unusual; 8202 goto handle_unusual;
8099 } 8203 }
8100 if (input->ExpectTag(80)) goto parse_java_multiple_files;
8101 break; 8204 break;
8102 } 8205 }
8103 8206
8104 // optional bool java_multiple_files = 10 [default = false]; 8207 // optional bool java_multiple_files = 10 [default = false];
8105 case 10: { 8208 case 10: {
8106 if (tag == 80) { 8209 if (tag == 80u) {
8107 parse_java_multiple_files: 8210 set_has_java_multiple_files();
8108 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 8211 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8109 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 8212 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
8110 input, &java_multiple_files_))); 8213 input, &java_multiple_files_)));
8111 set_has_java_multiple_files();
8112 } else { 8214 } else {
8113 goto handle_unusual; 8215 goto handle_unusual;
8114 } 8216 }
8115 if (input->ExpectTag(90)) goto parse_go_package;
8116 break; 8217 break;
8117 } 8218 }
8118 8219
8119 // optional string go_package = 11; 8220 // optional string go_package = 11;
8120 case 11: { 8221 case 11: {
8121 if (tag == 90) { 8222 if (tag == 90u) {
8122 parse_go_package:
8123 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 8223 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8124 input, this->mutable_go_package())); 8224 input, this->mutable_go_package()));
8125 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 8225 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8126 this->go_package().data(), this->go_package().length(), 8226 this->go_package().data(), this->go_package().length(),
8127 ::google::protobuf::internal::WireFormat::PARSE, 8227 ::google::protobuf::internal::WireFormat::PARSE,
8128 "google.protobuf.FileOptions.go_package"); 8228 "google.protobuf.FileOptions.go_package");
8129 } else { 8229 } else {
8130 goto handle_unusual; 8230 goto handle_unusual;
8131 } 8231 }
8132 if (input->ExpectTag(128)) goto parse_cc_generic_services;
8133 break; 8232 break;
8134 } 8233 }
8135 8234
8136 // optional bool cc_generic_services = 16 [default = false]; 8235 // optional bool cc_generic_services = 16 [default = false];
8137 case 16: { 8236 case 16: {
8138 if (tag == 128) { 8237 if (tag == 128u) {
8139 parse_cc_generic_services: 8238 set_has_cc_generic_services();
8140 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 8239 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8141 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 8240 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
8142 input, &cc_generic_services_))); 8241 input, &cc_generic_services_)));
8143 set_has_cc_generic_services();
8144 } else { 8242 } else {
8145 goto handle_unusual; 8243 goto handle_unusual;
8146 } 8244 }
8147 if (input->ExpectTag(136)) goto parse_java_generic_services;
8148 break; 8245 break;
8149 } 8246 }
8150 8247
8151 // optional bool java_generic_services = 17 [default = false]; 8248 // optional bool java_generic_services = 17 [default = false];
8152 case 17: { 8249 case 17: {
8153 if (tag == 136) { 8250 if (tag == 136u) {
8154 parse_java_generic_services: 8251 set_has_java_generic_services();
8155 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 8252 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8156 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 8253 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
8157 input, &java_generic_services_))); 8254 input, &java_generic_services_)));
8158 set_has_java_generic_services();
8159 } else { 8255 } else {
8160 goto handle_unusual; 8256 goto handle_unusual;
8161 } 8257 }
8162 if (input->ExpectTag(144)) goto parse_py_generic_services;
8163 break; 8258 break;
8164 } 8259 }
8165 8260
8166 // optional bool py_generic_services = 18 [default = false]; 8261 // optional bool py_generic_services = 18 [default = false];
8167 case 18: { 8262 case 18: {
8168 if (tag == 144) { 8263 if (tag == 144u) {
8169 parse_py_generic_services: 8264 set_has_py_generic_services();
8170 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 8265 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8171 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 8266 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
8172 input, &py_generic_services_))); 8267 input, &py_generic_services_)));
8173 set_has_py_generic_services();
8174 } else { 8268 } else {
8175 goto handle_unusual; 8269 goto handle_unusual;
8176 } 8270 }
8177 if (input->ExpectTag(160)) goto parse_java_generate_equals_and_hash;
8178 break; 8271 break;
8179 } 8272 }
8180 8273
8181 // optional bool java_generate_equals_and_hash = 20 [default = false]; 8274 // optional bool java_generate_equals_and_hash = 20 [deprecated = true];
8182 case 20: { 8275 case 20: {
8183 if (tag == 160) { 8276 if (tag == 160u) {
8184 parse_java_generate_equals_and_hash: 8277 set_has_java_generate_equals_and_hash();
8185 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 8278 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8186 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 8279 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
8187 input, &java_generate_equals_and_hash_))); 8280 input, &java_generate_equals_and_hash_)));
8188 set_has_java_generate_equals_and_hash();
8189 } else { 8281 } else {
8190 goto handle_unusual; 8282 goto handle_unusual;
8191 } 8283 }
8192 if (input->ExpectTag(184)) goto parse_deprecated;
8193 break; 8284 break;
8194 } 8285 }
8195 8286
8196 // optional bool deprecated = 23 [default = false]; 8287 // optional bool deprecated = 23 [default = false];
8197 case 23: { 8288 case 23: {
8198 if (tag == 184) { 8289 if (tag == 184u) {
8199 parse_deprecated: 8290 set_has_deprecated();
8200 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 8291 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8201 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 8292 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
8202 input, &deprecated_))); 8293 input, &deprecated_)));
8203 set_has_deprecated();
8204 } else { 8294 } else {
8205 goto handle_unusual; 8295 goto handle_unusual;
8206 } 8296 }
8207 if (input->ExpectTag(216)) goto parse_java_string_check_utf8;
8208 break; 8297 break;
8209 } 8298 }
8210 8299
8211 // optional bool java_string_check_utf8 = 27 [default = false]; 8300 // optional bool java_string_check_utf8 = 27 [default = false];
8212 case 27: { 8301 case 27: {
8213 if (tag == 216) { 8302 if (tag == 216u) {
8214 parse_java_string_check_utf8: 8303 set_has_java_string_check_utf8();
8215 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 8304 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8216 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 8305 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
8217 input, &java_string_check_utf8_))); 8306 input, &java_string_check_utf8_)));
8218 set_has_java_string_check_utf8();
8219 } else { 8307 } else {
8220 goto handle_unusual; 8308 goto handle_unusual;
8221 } 8309 }
8222 if (input->ExpectTag(248)) goto parse_cc_enable_arenas;
8223 break; 8310 break;
8224 } 8311 }
8225 8312
8226 // optional bool cc_enable_arenas = 31 [default = false]; 8313 // optional bool cc_enable_arenas = 31 [default = false];
8227 case 31: { 8314 case 31: {
8228 if (tag == 248) { 8315 if (tag == 248u) {
8229 parse_cc_enable_arenas: 8316 set_has_cc_enable_arenas();
8230 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 8317 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8231 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 8318 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
8232 input, &cc_enable_arenas_))); 8319 input, &cc_enable_arenas_)));
8233 set_has_cc_enable_arenas();
8234 } else { 8320 } else {
8235 goto handle_unusual; 8321 goto handle_unusual;
8236 } 8322 }
8237 if (input->ExpectTag(290)) goto parse_objc_class_prefix;
8238 break; 8323 break;
8239 } 8324 }
8240 8325
8241 // optional string objc_class_prefix = 36; 8326 // optional string objc_class_prefix = 36;
8242 case 36: { 8327 case 36: {
8243 if (tag == 290) { 8328 if (tag == 290u) {
8244 parse_objc_class_prefix:
8245 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 8329 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8246 input, this->mutable_objc_class_prefix())); 8330 input, this->mutable_objc_class_prefix()));
8247 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 8331 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8248 this->objc_class_prefix().data(), this->objc_class_prefix().length() , 8332 this->objc_class_prefix().data(), this->objc_class_prefix().length() ,
8249 ::google::protobuf::internal::WireFormat::PARSE, 8333 ::google::protobuf::internal::WireFormat::PARSE,
8250 "google.protobuf.FileOptions.objc_class_prefix"); 8334 "google.protobuf.FileOptions.objc_class_prefix");
8251 } else { 8335 } else {
8252 goto handle_unusual; 8336 goto handle_unusual;
8253 } 8337 }
8254 if (input->ExpectTag(298)) goto parse_csharp_namespace;
8255 break; 8338 break;
8256 } 8339 }
8257 8340
8258 // optional string csharp_namespace = 37; 8341 // optional string csharp_namespace = 37;
8259 case 37: { 8342 case 37: {
8260 if (tag == 298) { 8343 if (tag == 298u) {
8261 parse_csharp_namespace:
8262 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 8344 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8263 input, this->mutable_csharp_namespace())); 8345 input, this->mutable_csharp_namespace()));
8264 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 8346 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8265 this->csharp_namespace().data(), this->csharp_namespace().length(), 8347 this->csharp_namespace().data(), this->csharp_namespace().length(),
8266 ::google::protobuf::internal::WireFormat::PARSE, 8348 ::google::protobuf::internal::WireFormat::PARSE,
8267 "google.protobuf.FileOptions.csharp_namespace"); 8349 "google.protobuf.FileOptions.csharp_namespace");
8268 } else { 8350 } else {
8269 goto handle_unusual; 8351 goto handle_unusual;
8270 } 8352 }
8271 if (input->ExpectTag(7994)) goto parse_uninterpreted_option; 8353 break;
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 }
8272 break; 8368 break;
8273 } 8369 }
8274 8370
8275 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99 9; 8371 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99 9;
8276 case 999: { 8372 case 999: {
8277 if (tag == 7994) { 8373 if (tag == 7994u) {
8278 parse_uninterpreted_option:
8279 DO_(input->IncrementRecursionDepth()); 8374 DO_(input->IncrementRecursionDepth());
8280 parse_loop_uninterpreted_option:
8281 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 8375 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
8282 input, add_uninterpreted_option())); 8376 input, add_uninterpreted_option()));
8283 } else { 8377 } else {
8284 goto handle_unusual; 8378 goto handle_unusual;
8285 } 8379 }
8286 if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option;
8287 input->UnsafeDecrementRecursionDepth(); 8380 input->UnsafeDecrementRecursionDepth();
8288 if (input->ExpectAtEnd()) goto success;
8289 break; 8381 break;
8290 } 8382 }
8291 8383
8292 default: { 8384 default: {
8293 handle_unusual: 8385 handle_unusual:
8294 if (tag == 0 || 8386 if (tag == 0 ||
8295 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 8387 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
8296 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 8388 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
8297 goto success; 8389 goto success;
8298 } 8390 }
8299 if ((8000u <= tag)) { 8391 if ((8000u <= tag)) {
8300 DO_(_extensions_.ParseField(tag, input, default_instance_, 8392 DO_(_extensions_.ParseField(tag, input, internal_default_instance(),
8301 mutable_unknown_fields())); 8393 mutable_unknown_fields()));
8302 continue; 8394 continue;
8303 } 8395 }
8304 DO_(::google::protobuf::internal::WireFormat::SkipField( 8396 DO_(::google::protobuf::internal::WireFormat::SkipField(
8305 input, tag, mutable_unknown_fields())); 8397 input, tag, mutable_unknown_fields()));
8306 break; 8398 break;
8307 } 8399 }
8308 } 8400 }
8309 } 8401 }
8310 success: 8402 success:
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
8368 // optional bool java_generic_services = 17 [default = false]; 8460 // optional bool java_generic_services = 17 [default = false];
8369 if (has_java_generic_services()) { 8461 if (has_java_generic_services()) {
8370 ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->java_gener ic_services(), output); 8462 ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->java_gener ic_services(), output);
8371 } 8463 }
8372 8464
8373 // optional bool py_generic_services = 18 [default = false]; 8465 // optional bool py_generic_services = 18 [default = false];
8374 if (has_py_generic_services()) { 8466 if (has_py_generic_services()) {
8375 ::google::protobuf::internal::WireFormatLite::WriteBool(18, this->py_generic _services(), output); 8467 ::google::protobuf::internal::WireFormatLite::WriteBool(18, this->py_generic _services(), output);
8376 } 8468 }
8377 8469
8378 // optional bool java_generate_equals_and_hash = 20 [default = false]; 8470 // optional bool java_generate_equals_and_hash = 20 [deprecated = true];
8379 if (has_java_generate_equals_and_hash()) { 8471 if (has_java_generate_equals_and_hash()) {
8380 ::google::protobuf::internal::WireFormatLite::WriteBool(20, this->java_gener ate_equals_and_hash(), output); 8472 ::google::protobuf::internal::WireFormatLite::WriteBool(20, this->java_gener ate_equals_and_hash(), output);
8381 } 8473 }
8382 8474
8383 // optional bool deprecated = 23 [default = false]; 8475 // optional bool deprecated = 23 [default = false];
8384 if (has_deprecated()) { 8476 if (has_deprecated()) {
8385 ::google::protobuf::internal::WireFormatLite::WriteBool(23, this->deprecated (), output); 8477 ::google::protobuf::internal::WireFormatLite::WriteBool(23, this->deprecated (), output);
8386 } 8478 }
8387 8479
8388 // optional bool java_string_check_utf8 = 27 [default = false]; 8480 // optional bool java_string_check_utf8 = 27 [default = false];
(...skipping 19 matching lines...) Expand all
8408 // optional string csharp_namespace = 37; 8500 // optional string csharp_namespace = 37;
8409 if (has_csharp_namespace()) { 8501 if (has_csharp_namespace()) {
8410 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 8502 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8411 this->csharp_namespace().data(), this->csharp_namespace().length(), 8503 this->csharp_namespace().data(), this->csharp_namespace().length(),
8412 ::google::protobuf::internal::WireFormat::SERIALIZE, 8504 ::google::protobuf::internal::WireFormat::SERIALIZE,
8413 "google.protobuf.FileOptions.csharp_namespace"); 8505 "google.protobuf.FileOptions.csharp_namespace");
8414 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 8506 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8415 37, this->csharp_namespace(), output); 8507 37, this->csharp_namespace(), output);
8416 } 8508 }
8417 8509
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
8418 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 8520 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
8419 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { 8521 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
8420 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 8522 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8421 999, this->uninterpreted_option(i), output); 8523 999, this->uninterpreted_option(i), output);
8422 } 8524 }
8423 8525
8424 // Extension range [1000, 536870912) 8526 // Extension range [1000, 536870912)
8425 _extensions_.SerializeWithCachedSizes( 8527 _extensions_.SerializeWithCachedSizes(
8426 1000, 536870912, output); 8528 1000, 536870912, output);
8427 8529
8428 if (_internal_metadata_.have_unknown_fields()) { 8530 if (_internal_metadata_.have_unknown_fields()) {
8429 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 8531 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
8430 unknown_fields(), output); 8532 unknown_fields(), output);
8431 } 8533 }
8432 // @@protoc_insertion_point(serialize_end:google.protobuf.FileOptions) 8534 // @@protoc_insertion_point(serialize_end:google.protobuf.FileOptions)
8433 } 8535 }
8434 8536
8435 ::google::protobuf::uint8* FileOptions::SerializeWithCachedSizesToArray( 8537 ::google::protobuf::uint8* FileOptions::InternalSerializeWithCachedSizesToArray(
8436 ::google::protobuf::uint8* target) const { 8538 bool deterministic, ::google::protobuf::uint8* target) const {
8539 (void)deterministic; // Unused
8437 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileOptio ns) 8540 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileOptio ns)
8438 // optional string java_package = 1; 8541 // optional string java_package = 1;
8439 if (has_java_package()) { 8542 if (has_java_package()) {
8440 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 8543 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8441 this->java_package().data(), this->java_package().length(), 8544 this->java_package().data(), this->java_package().length(),
8442 ::google::protobuf::internal::WireFormat::SERIALIZE, 8545 ::google::protobuf::internal::WireFormat::SERIALIZE,
8443 "google.protobuf.FileOptions.java_package"); 8546 "google.protobuf.FileOptions.java_package");
8444 target = 8547 target =
8445 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 8548 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
8446 1, this->java_package(), target); 8549 1, this->java_package(), target);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
8487 // optional bool java_generic_services = 17 [default = false]; 8590 // optional bool java_generic_services = 17 [default = false];
8488 if (has_java_generic_services()) { 8591 if (has_java_generic_services()) {
8489 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17, this->java_generic_services(), target); 8592 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17, this->java_generic_services(), target);
8490 } 8593 }
8491 8594
8492 // optional bool py_generic_services = 18 [default = false]; 8595 // optional bool py_generic_services = 18 [default = false];
8493 if (has_py_generic_services()) { 8596 if (has_py_generic_services()) {
8494 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(18, this->py_generic_services(), target); 8597 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(18, this->py_generic_services(), target);
8495 } 8598 }
8496 8599
8497 // optional bool java_generate_equals_and_hash = 20 [default = false]; 8600 // optional bool java_generate_equals_and_hash = 20 [deprecated = true];
8498 if (has_java_generate_equals_and_hash()) { 8601 if (has_java_generate_equals_and_hash()) {
8499 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(20, this->java_generate_equals_and_hash(), target); 8602 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(20, this->java_generate_equals_and_hash(), target);
8500 } 8603 }
8501 8604
8502 // optional bool deprecated = 23 [default = false]; 8605 // optional bool deprecated = 23 [default = false];
8503 if (has_deprecated()) { 8606 if (has_deprecated()) {
8504 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(23, this->deprecated(), target); 8607 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(23, this->deprecated(), target);
8505 } 8608 }
8506 8609
8507 // optional bool java_string_check_utf8 = 27 [default = false]; 8610 // optional bool java_string_check_utf8 = 27 [default = false];
(...skipping 21 matching lines...) Expand all
8529 if (has_csharp_namespace()) { 8632 if (has_csharp_namespace()) {
8530 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 8633 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8531 this->csharp_namespace().data(), this->csharp_namespace().length(), 8634 this->csharp_namespace().data(), this->csharp_namespace().length(),
8532 ::google::protobuf::internal::WireFormat::SERIALIZE, 8635 ::google::protobuf::internal::WireFormat::SERIALIZE,
8533 "google.protobuf.FileOptions.csharp_namespace"); 8636 "google.protobuf.FileOptions.csharp_namespace");
8534 target = 8637 target =
8535 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 8638 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
8536 37, this->csharp_namespace(), target); 8639 37, this->csharp_namespace(), target);
8537 } 8640 }
8538 8641
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
8539 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 8653 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
8540 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { 8654 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
8541 target = ::google::protobuf::internal::WireFormatLite:: 8655 target = ::google::protobuf::internal::WireFormatLite::
8542 WriteMessageNoVirtualToArray( 8656 InternalWriteMessageNoVirtualToArray(
8543 999, this->uninterpreted_option(i), target); 8657 999, this->uninterpreted_option(i), false, target);
8544 } 8658 }
8545 8659
8546 // Extension range [1000, 536870912) 8660 // Extension range [1000, 536870912)
8547 target = _extensions_.SerializeWithCachedSizesToArray( 8661 target = _extensions_.InternalSerializeWithCachedSizesToArray(
8548 1000, 536870912, target); 8662 1000, 536870912, false, target);
8549 8663
8550 if (_internal_metadata_.have_unknown_fields()) { 8664 if (_internal_metadata_.have_unknown_fields()) {
8551 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 8665 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
8552 unknown_fields(), target); 8666 unknown_fields(), target);
8553 } 8667 }
8554 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileOptions ) 8668 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileOptions )
8555 return target; 8669 return target;
8556 } 8670 }
8557 8671
8558 int FileOptions::ByteSize() const { 8672 size_t FileOptions::ByteSizeLong() const {
8559 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FileOptions) 8673 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FileOptions)
8560 int total_size = 0; 8674 size_t 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 }
8561 8693
8562 if (_has_bits_[0 / 32] & 255u) { 8694 if (_has_bits_[0 / 32] & 255u) {
8563 // optional string java_package = 1; 8695 // optional string java_package = 1;
8564 if (has_java_package()) { 8696 if (has_java_package()) {
8565 total_size += 1 + 8697 total_size += 1 +
8566 ::google::protobuf::internal::WireFormatLite::StringSize( 8698 ::google::protobuf::internal::WireFormatLite::StringSize(
8567 this->java_package()); 8699 this->java_package());
8568 } 8700 }
8569 8701
8570 // optional string java_outer_classname = 8; 8702 // optional string java_outer_classname = 8;
8571 if (has_java_outer_classname()) { 8703 if (has_java_outer_classname()) {
8572 total_size += 1 + 8704 total_size += 1 +
8573 ::google::protobuf::internal::WireFormatLite::StringSize( 8705 ::google::protobuf::internal::WireFormatLite::StringSize(
8574 this->java_outer_classname()); 8706 this->java_outer_classname());
8575 } 8707 }
8576 8708
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
8598 // optional string go_package = 11; 8709 // optional string go_package = 11;
8599 if (has_go_package()) { 8710 if (has_go_package()) {
8600 total_size += 1 + 8711 total_size += 1 +
8601 ::google::protobuf::internal::WireFormatLite::StringSize( 8712 ::google::protobuf::internal::WireFormatLite::StringSize(
8602 this->go_package()); 8713 this->go_package());
8603 } 8714 }
8604 8715
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
8605 // optional bool cc_generic_services = 16 [default = false]; 8754 // optional bool cc_generic_services = 16 [default = false];
8606 if (has_cc_generic_services()) { 8755 if (has_cc_generic_services()) {
8607 total_size += 2 + 1; 8756 total_size += 2 + 1;
8608 } 8757 }
8609 8758
8610 }
8611 if (_has_bits_[8 / 32] & 16128u) {
8612 // optional bool java_generic_services = 17 [default = false]; 8759 // optional bool java_generic_services = 17 [default = false];
8613 if (has_java_generic_services()) { 8760 if (has_java_generic_services()) {
8614 total_size += 2 + 1; 8761 total_size += 2 + 1;
8615 } 8762 }
8616 8763
8617 // optional bool py_generic_services = 18 [default = false]; 8764 // optional bool py_generic_services = 18 [default = false];
8618 if (has_py_generic_services()) { 8765 if (has_py_generic_services()) {
8619 total_size += 2 + 1; 8766 total_size += 2 + 1;
8620 } 8767 }
8621 8768
8622 // optional bool deprecated = 23 [default = false]; 8769 // optional bool deprecated = 23 [default = false];
8623 if (has_deprecated()) { 8770 if (has_deprecated()) {
8624 total_size += 2 + 1; 8771 total_size += 2 + 1;
8625 } 8772 }
8626 8773
8627 // optional bool cc_enable_arenas = 31 [default = false]; 8774 // optional bool cc_enable_arenas = 31 [default = false];
8628 if (has_cc_enable_arenas()) { 8775 if (has_cc_enable_arenas()) {
8629 total_size += 2 + 1; 8776 total_size += 2 + 1;
8630 } 8777 }
8631 8778
8632 // optional string objc_class_prefix = 36; 8779 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [defa ult = SPEED];
8633 if (has_objc_class_prefix()) { 8780 if (has_optimize_for()) {
8634 total_size += 2 + 8781 total_size += 1 +
8635 ::google::protobuf::internal::WireFormatLite::StringSize( 8782 ::google::protobuf::internal::WireFormatLite::EnumSize(this->optimize_fo r());
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());
8644 } 8783 }
8645 8784
8646 } 8785 }
8647 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 8786 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
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 }
8662 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 8787 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8663 _cached_size_ = total_size; 8788 _cached_size_ = cached_size;
8664 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 8789 GOOGLE_SAFE_CONCURRENT_WRITES_END();
8665 return total_size; 8790 return total_size;
8666 } 8791 }
8667 8792
8668 void FileOptions::MergeFrom(const ::google::protobuf::Message& from) { 8793 void FileOptions::MergeFrom(const ::google::protobuf::Message& from) {
8669 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FileOpt ions) 8794 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FileOpt ions)
8670 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 8795 GOOGLE_DCHECK_NE(&from, this);
8671 const FileOptions* source = 8796 const FileOptions* source =
8672 ::google::protobuf::internal::DynamicCastToGenerated<const FileOptions>( 8797 ::google::protobuf::internal::DynamicCastToGenerated<const FileOptions>(
8673 &from); 8798 &from);
8674 if (source == NULL) { 8799 if (source == NULL) {
8675 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.F ileOptions) 8800 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.F ileOptions)
8676 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 8801 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
8677 } else { 8802 } else {
8678 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.FileOptions) 8803 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.FileOptions)
8679 MergeFrom(*source); 8804 MergeFrom(*source);
8680 } 8805 }
8681 } 8806 }
8682 8807
8683 void FileOptions::MergeFrom(const FileOptions& from) { 8808 void FileOptions::MergeFrom(const FileOptions& from) {
8684 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.File Options) 8809 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.File Options)
8685 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 8810 GOOGLE_DCHECK_NE(&from, this);
8811 _extensions_.MergeFrom(from._extensions_);
8812 _internal_metadata_.MergeFrom(from._internal_metadata_);
8686 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); 8813 uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
8687 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { 8814 if (from._has_bits_[0 / 32] & 255u) {
8688 if (from.has_java_package()) { 8815 if (from.has_java_package()) {
8689 set_has_java_package(); 8816 set_has_java_package();
8690 java_package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited(), from.java_package_); 8817 java_package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited(), from.java_package_);
8691 } 8818 }
8692 if (from.has_java_outer_classname()) { 8819 if (from.has_java_outer_classname()) {
8693 set_has_java_outer_classname(); 8820 set_has_java_outer_classname();
8694 java_outer_classname_.AssignWithDefault(&::google::protobuf::internal::Get EmptyStringAlreadyInited(), from.java_outer_classname_); 8821 java_outer_classname_.AssignWithDefault(&::google::protobuf::internal::Get EmptyStringAlreadyInited(), from.java_outer_classname_);
8695 } 8822 }
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 }
8696 if (from.has_java_multiple_files()) { 8839 if (from.has_java_multiple_files()) {
8697 set_java_multiple_files(from.java_multiple_files()); 8840 set_java_multiple_files(from.java_multiple_files());
8698 } 8841 }
8699 if (from.has_java_generate_equals_and_hash()) { 8842 if (from.has_java_generate_equals_and_hash()) {
8700 set_java_generate_equals_and_hash(from.java_generate_equals_and_hash()); 8843 set_java_generate_equals_and_hash(from.java_generate_equals_and_hash());
8701 } 8844 }
8845 }
8846 if (from._has_bits_[8 / 32] & 32512u) {
8702 if (from.has_java_string_check_utf8()) { 8847 if (from.has_java_string_check_utf8()) {
8703 set_java_string_check_utf8(from.java_string_check_utf8()); 8848 set_java_string_check_utf8(from.java_string_check_utf8());
8704 } 8849 }
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 }
8712 if (from.has_cc_generic_services()) { 8850 if (from.has_cc_generic_services()) {
8713 set_cc_generic_services(from.cc_generic_services()); 8851 set_cc_generic_services(from.cc_generic_services());
8714 } 8852 }
8715 }
8716 if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
8717 if (from.has_java_generic_services()) { 8853 if (from.has_java_generic_services()) {
8718 set_java_generic_services(from.java_generic_services()); 8854 set_java_generic_services(from.java_generic_services());
8719 } 8855 }
8720 if (from.has_py_generic_services()) { 8856 if (from.has_py_generic_services()) {
8721 set_py_generic_services(from.py_generic_services()); 8857 set_py_generic_services(from.py_generic_services());
8722 } 8858 }
8723 if (from.has_deprecated()) { 8859 if (from.has_deprecated()) {
8724 set_deprecated(from.deprecated()); 8860 set_deprecated(from.deprecated());
8725 } 8861 }
8726 if (from.has_cc_enable_arenas()) { 8862 if (from.has_cc_enable_arenas()) {
8727 set_cc_enable_arenas(from.cc_enable_arenas()); 8863 set_cc_enable_arenas(from.cc_enable_arenas());
8728 } 8864 }
8729 if (from.has_objc_class_prefix()) { 8865 if (from.has_optimize_for()) {
8730 set_has_objc_class_prefix(); 8866 set_optimize_for(from.optimize_for());
8731 objc_class_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmp tyStringAlreadyInited(), from.objc_class_prefix_);
8732 } 8867 }
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());
8741 } 8868 }
8742 } 8869 }
8743 8870
8744 void FileOptions::CopyFrom(const ::google::protobuf::Message& from) { 8871 void FileOptions::CopyFrom(const ::google::protobuf::Message& from) {
8745 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FileOpti ons) 8872 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FileOpti ons)
8746 if (&from == this) return; 8873 if (&from == this) return;
8747 Clear(); 8874 Clear();
8748 MergeFrom(from); 8875 MergeFrom(from);
8749 } 8876 }
8750 8877
8751 void FileOptions::CopyFrom(const FileOptions& from) { 8878 void FileOptions::CopyFrom(const FileOptions& from) {
8752 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FileO ptions) 8879 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FileO ptions)
8753 if (&from == this) return; 8880 if (&from == this) return;
8754 Clear(); 8881 Clear();
8755 MergeFrom(from); 8882 MergeFrom(from);
8756 } 8883 }
8757 8884
8758 bool FileOptions::IsInitialized() const { 8885 bool FileOptions::IsInitialized() const {
8886 if (!_extensions_.IsInitialized()) {
8887 return false;
8888 }
8759 8889
8760 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio n())) return false; 8890 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio n())) return false;
8761 8891 return true;
8762 if (!_extensions_.IsInitialized()) return false; return true;
8763 } 8892 }
8764 8893
8765 void FileOptions::Swap(FileOptions* other) { 8894 void FileOptions::Swap(FileOptions* other) {
8766 if (other == this) return; 8895 if (other == this) return;
8767 InternalSwap(other); 8896 InternalSwap(other);
8768 } 8897 }
8769 void FileOptions::InternalSwap(FileOptions* other) { 8898 void FileOptions::InternalSwap(FileOptions* other) {
8899 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
8770 java_package_.Swap(&other->java_package_); 8900 java_package_.Swap(&other->java_package_);
8771 java_outer_classname_.Swap(&other->java_outer_classname_); 8901 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_);
8772 std::swap(java_multiple_files_, other->java_multiple_files_); 8906 std::swap(java_multiple_files_, other->java_multiple_files_);
8773 std::swap(java_generate_equals_and_hash_, other->java_generate_equals_and_hash _); 8907 std::swap(java_generate_equals_and_hash_, other->java_generate_equals_and_hash _);
8774 std::swap(java_string_check_utf8_, other->java_string_check_utf8_); 8908 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_);
8777 std::swap(cc_generic_services_, other->cc_generic_services_); 8909 std::swap(cc_generic_services_, other->cc_generic_services_);
8778 std::swap(java_generic_services_, other->java_generic_services_); 8910 std::swap(java_generic_services_, other->java_generic_services_);
8779 std::swap(py_generic_services_, other->py_generic_services_); 8911 std::swap(py_generic_services_, other->py_generic_services_);
8780 std::swap(deprecated_, other->deprecated_); 8912 std::swap(deprecated_, other->deprecated_);
8781 std::swap(cc_enable_arenas_, other->cc_enable_arenas_); 8913 std::swap(cc_enable_arenas_, other->cc_enable_arenas_);
8782 objc_class_prefix_.Swap(&other->objc_class_prefix_); 8914 std::swap(optimize_for_, other->optimize_for_);
8783 csharp_namespace_.Swap(&other->csharp_namespace_);
8784 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
8785 std::swap(_has_bits_[0], other->_has_bits_[0]); 8915 std::swap(_has_bits_[0], other->_has_bits_[0]);
8786 _internal_metadata_.Swap(&other->_internal_metadata_); 8916 _internal_metadata_.Swap(&other->_internal_metadata_);
8787 std::swap(_cached_size_, other->_cached_size_); 8917 std::swap(_cached_size_, other->_cached_size_);
8788 _extensions_.Swap(&other->_extensions_); 8918 _extensions_.Swap(&other->_extensions_);
8789 } 8919 }
8790 8920
8791 ::google::protobuf::Metadata FileOptions::GetMetadata() const { 8921 ::google::protobuf::Metadata FileOptions::GetMetadata() const {
8792 protobuf_AssignDescriptorsOnce(); 8922 protobuf_AssignDescriptorsOnce();
8793 ::google::protobuf::Metadata metadata; 8923 return file_level_metadata[11];
8794 metadata.descriptor = FileOptions_descriptor_;
8795 metadata.reflection = FileOptions_reflection_;
8796 return metadata;
8797 } 8924 }
8798 8925
8799 #if PROTOBUF_INLINE_NOT_IN_HEADERS 8926 #if PROTOBUF_INLINE_NOT_IN_HEADERS
8800 // FileOptions 8927 // FileOptions
8801 8928
8802 // optional string java_package = 1; 8929 // optional string java_package = 1;
8803 bool FileOptions::has_java_package() const { 8930 bool FileOptions::has_java_package() const {
8804 return (_has_bits_[0] & 0x00000001u) != 0; 8931 return (_has_bits_[0] & 0x00000001u) != 0;
8805 } 8932 }
8806 void FileOptions::set_has_java_package() { 8933 void FileOptions::set_has_java_package() {
8807 _has_bits_[0] |= 0x00000001u; 8934 _has_bits_[0] |= 0x00000001u;
8808 } 8935 }
8809 void FileOptions::clear_has_java_package() { 8936 void FileOptions::clear_has_java_package() {
8810 _has_bits_[0] &= ~0x00000001u; 8937 _has_bits_[0] &= ~0x00000001u;
8811 } 8938 }
8812 void FileOptions::clear_java_package() { 8939 void FileOptions::clear_java_package() {
8813 java_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited()); 8940 java_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited());
8814 clear_has_java_package(); 8941 clear_has_java_package();
8815 } 8942 }
8816 const ::std::string& FileOptions::java_package() const { 8943 const ::std::string& FileOptions::java_package() const {
8817 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_package ) 8944 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_package )
8818 return java_package_.GetNoArena(&::google::protobuf::internal::GetEmptyStringA lreadyInited()); 8945 return java_package_.GetNoArena();
8819 } 8946 }
8820 void FileOptions::set_java_package(const ::std::string& value) { 8947 void FileOptions::set_java_package(const ::std::string& value) {
8821 set_has_java_package(); 8948 set_has_java_package();
8822 java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI nited(), value); 8949 java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI nited(), value);
8823 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_package ) 8950 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_package )
8824 } 8951 }
8825 void FileOptions::set_java_package(const char* value) { 8952 #if LANG_CXX11
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) {
8826 set_has_java_package(); 8961 set_has_java_package();
8827 java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI nited(), ::std::string(value)); 8962 java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI nited(), ::std::string(value));
8828 // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.java_pa ckage) 8963 // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.java_pa ckage)
8829 } 8964 }
8830 void FileOptions::set_java_package(const char* value, size_t size) { 8965 void FileOptions::set_java_package(const char* value, size_t size) {
8831 set_has_java_package(); 8966 set_has_java_package();
8832 java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI nited(), 8967 java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI nited(),
8833 ::std::string(reinterpret_cast<const char*>(value), size)); 8968 ::std::string(reinterpret_cast<const char*>(value), size));
8834 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.java _package) 8969 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.java _package)
8835 } 8970 }
8836 ::std::string* FileOptions::mutable_java_package() { 8971 ::std::string* FileOptions::mutable_java_package() {
8837 set_has_java_package(); 8972 set_has_java_package();
8838 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_pac kage) 8973 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_pac kage)
8839 return java_package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited()); 8974 return java_package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited());
8840 } 8975 }
8841 ::std::string* FileOptions::release_java_package() { 8976 ::std::string* FileOptions::release_java_package() {
8842 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.java_pac kage) 8977 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.java_pac kage)
8843 clear_has_java_package(); 8978 clear_has_java_package();
8844 return java_package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited()); 8979 return java_package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited());
8845 } 8980 }
8846 void FileOptions::set_allocated_java_package(::std::string* java_package) { 8981 void FileOptions::set_allocated_java_package(::std::string* java_package) {
8847 if (java_package != NULL) { 8982 if (java_package != NULL) {
8848 set_has_java_package(); 8983 set_has_java_package();
8849 } else { 8984 } else {
8850 clear_has_java_package(); 8985 clear_has_java_package();
8851 } 8986 }
8852 java_package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited(), java_package); 8987 java_package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited(), java_package);
8853 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.ja va_package) 8988 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.ja va_package)
8854 } 8989 }
8855 8990
8856 // optional string java_outer_classname = 8; 8991 // optional string java_outer_classname = 8;
8857 bool FileOptions::has_java_outer_classname() const { 8992 bool FileOptions::has_java_outer_classname() const {
8858 return (_has_bits_[0] & 0x00000002u) != 0; 8993 return (_has_bits_[0] & 0x00000002u) != 0;
8859 } 8994 }
8860 void FileOptions::set_has_java_outer_classname() { 8995 void FileOptions::set_has_java_outer_classname() {
8861 _has_bits_[0] |= 0x00000002u; 8996 _has_bits_[0] |= 0x00000002u;
8862 } 8997 }
8863 void FileOptions::clear_has_java_outer_classname() { 8998 void FileOptions::clear_has_java_outer_classname() {
8864 _has_bits_[0] &= ~0x00000002u; 8999 _has_bits_[0] &= ~0x00000002u;
8865 } 9000 }
8866 void FileOptions::clear_java_outer_classname() { 9001 void FileOptions::clear_java_outer_classname() {
8867 java_outer_classname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEm ptyStringAlreadyInited()); 9002 java_outer_classname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEm ptyStringAlreadyInited());
8868 clear_has_java_outer_classname(); 9003 clear_has_java_outer_classname();
8869 } 9004 }
8870 const ::std::string& FileOptions::java_outer_classname() const { 9005 const ::std::string& FileOptions::java_outer_classname() const {
8871 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_outer_c lassname) 9006 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_outer_c lassname)
8872 return java_outer_classname_.GetNoArena(&::google::protobuf::internal::GetEmpt yStringAlreadyInited()); 9007 return java_outer_classname_.GetNoArena();
8873 } 9008 }
8874 void FileOptions::set_java_outer_classname(const ::std::string& value) { 9009 void FileOptions::set_java_outer_classname(const ::std::string& value) {
8875 set_has_java_outer_classname(); 9010 set_has_java_outer_classname();
8876 java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited(), value); 9011 java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited(), value);
8877 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_outer_c lassname) 9012 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_outer_c lassname)
8878 } 9013 }
8879 void FileOptions::set_java_outer_classname(const char* value) { 9014 #if LANG_CXX11
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) {
8880 set_has_java_outer_classname(); 9023 set_has_java_outer_classname();
8881 java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited(), ::std::string(value)); 9024 java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited(), ::std::string(value));
8882 // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.java_ou ter_classname) 9025 // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.java_ou ter_classname)
8883 } 9026 }
8884 void FileOptions::set_java_outer_classname(const char* value, size_t size) { 9027 void FileOptions::set_java_outer_classname(const char* value, size_t size) {
8885 set_has_java_outer_classname(); 9028 set_has_java_outer_classname();
8886 java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited(), 9029 java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited(),
8887 ::std::string(reinterpret_cast<const char*>(value), size)); 9030 ::std::string(reinterpret_cast<const char*>(value), size));
8888 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.java _outer_classname) 9031 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.java _outer_classname)
8889 } 9032 }
8890 ::std::string* FileOptions::mutable_java_outer_classname() { 9033 ::std::string* FileOptions::mutable_java_outer_classname() {
8891 set_has_java_outer_classname(); 9034 set_has_java_outer_classname();
8892 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_out er_classname) 9035 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_out er_classname)
8893 return java_outer_classname_.MutableNoArena(&::google::protobuf::internal::Get EmptyStringAlreadyInited()); 9036 return java_outer_classname_.MutableNoArena(&::google::protobuf::internal::Get EmptyStringAlreadyInited());
8894 } 9037 }
8895 ::std::string* FileOptions::release_java_outer_classname() { 9038 ::std::string* FileOptions::release_java_outer_classname() {
8896 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.java_out er_classname) 9039 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.java_out er_classname)
8897 clear_has_java_outer_classname(); 9040 clear_has_java_outer_classname();
8898 return java_outer_classname_.ReleaseNoArena(&::google::protobuf::internal::Get EmptyStringAlreadyInited()); 9041 return java_outer_classname_.ReleaseNoArena(&::google::protobuf::internal::Get EmptyStringAlreadyInited());
8899 } 9042 }
8900 void FileOptions::set_allocated_java_outer_classname(::std::string* java_outer_ classname) { 9043 void FileOptions::set_allocated_java_outer_classname(::std::string* java_outer_c lassname) {
8901 if (java_outer_classname != NULL) { 9044 if (java_outer_classname != NULL) {
8902 set_has_java_outer_classname(); 9045 set_has_java_outer_classname();
8903 } else { 9046 } else {
8904 clear_has_java_outer_classname(); 9047 clear_has_java_outer_classname();
8905 } 9048 }
8906 java_outer_classname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEm ptyStringAlreadyInited(), java_outer_classname); 9049 java_outer_classname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEm ptyStringAlreadyInited(), java_outer_classname);
8907 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.ja va_outer_classname) 9050 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.ja va_outer_classname)
8908 } 9051 }
8909 9052
8910 // optional bool java_multiple_files = 10 [default = false]; 9053 // optional bool java_multiple_files = 10 [default = false];
8911 bool FileOptions::has_java_multiple_files() const { 9054 bool FileOptions::has_java_multiple_files() const {
8912 return (_has_bits_[0] & 0x00000004u) != 0; 9055 return (_has_bits_[0] & 0x00000040u) != 0;
8913 } 9056 }
8914 void FileOptions::set_has_java_multiple_files() { 9057 void FileOptions::set_has_java_multiple_files() {
8915 _has_bits_[0] |= 0x00000004u; 9058 _has_bits_[0] |= 0x00000040u;
8916 } 9059 }
8917 void FileOptions::clear_has_java_multiple_files() { 9060 void FileOptions::clear_has_java_multiple_files() {
8918 _has_bits_[0] &= ~0x00000004u; 9061 _has_bits_[0] &= ~0x00000040u;
8919 } 9062 }
8920 void FileOptions::clear_java_multiple_files() { 9063 void FileOptions::clear_java_multiple_files() {
8921 java_multiple_files_ = false; 9064 java_multiple_files_ = false;
8922 clear_has_java_multiple_files(); 9065 clear_has_java_multiple_files();
8923 } 9066 }
8924 bool FileOptions::java_multiple_files() const { 9067 bool FileOptions::java_multiple_files() const {
8925 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_multipl e_files) 9068 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_multipl e_files)
8926 return java_multiple_files_; 9069 return java_multiple_files_;
8927 } 9070 }
8928 void FileOptions::set_java_multiple_files(bool value) { 9071 void FileOptions::set_java_multiple_files(bool value) {
8929 set_has_java_multiple_files(); 9072 set_has_java_multiple_files();
8930 java_multiple_files_ = value; 9073 java_multiple_files_ = value;
8931 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_multipl e_files) 9074 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_multipl e_files)
8932 } 9075 }
8933 9076
8934 // optional bool java_generate_equals_and_hash = 20 [default = false]; 9077 // optional bool java_generate_equals_and_hash = 20 [deprecated = true];
8935 bool FileOptions::has_java_generate_equals_and_hash() const { 9078 bool FileOptions::has_java_generate_equals_and_hash() const {
8936 return (_has_bits_[0] & 0x00000008u) != 0; 9079 return (_has_bits_[0] & 0x00000080u) != 0;
8937 } 9080 }
8938 void FileOptions::set_has_java_generate_equals_and_hash() { 9081 void FileOptions::set_has_java_generate_equals_and_hash() {
8939 _has_bits_[0] |= 0x00000008u; 9082 _has_bits_[0] |= 0x00000080u;
8940 } 9083 }
8941 void FileOptions::clear_has_java_generate_equals_and_hash() { 9084 void FileOptions::clear_has_java_generate_equals_and_hash() {
8942 _has_bits_[0] &= ~0x00000008u; 9085 _has_bits_[0] &= ~0x00000080u;
8943 } 9086 }
8944 void FileOptions::clear_java_generate_equals_and_hash() { 9087 void FileOptions::clear_java_generate_equals_and_hash() {
8945 java_generate_equals_and_hash_ = false; 9088 java_generate_equals_and_hash_ = false;
8946 clear_has_java_generate_equals_and_hash(); 9089 clear_has_java_generate_equals_and_hash();
8947 } 9090 }
8948 bool FileOptions::java_generate_equals_and_hash() const { 9091 bool FileOptions::java_generate_equals_and_hash() const {
8949 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generat e_equals_and_hash) 9092 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generat e_equals_and_hash)
8950 return java_generate_equals_and_hash_; 9093 return java_generate_equals_and_hash_;
8951 } 9094 }
8952 void FileOptions::set_java_generate_equals_and_hash(bool value) { 9095 void FileOptions::set_java_generate_equals_and_hash(bool value) {
8953 set_has_java_generate_equals_and_hash(); 9096 set_has_java_generate_equals_and_hash();
8954 java_generate_equals_and_hash_ = value; 9097 java_generate_equals_and_hash_ = value;
8955 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generat e_equals_and_hash) 9098 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generat e_equals_and_hash)
8956 } 9099 }
8957 9100
8958 // optional bool java_string_check_utf8 = 27 [default = false]; 9101 // optional bool java_string_check_utf8 = 27 [default = false];
8959 bool FileOptions::has_java_string_check_utf8() const { 9102 bool FileOptions::has_java_string_check_utf8() const {
8960 return (_has_bits_[0] & 0x00000010u) != 0; 9103 return (_has_bits_[0] & 0x00000100u) != 0;
8961 } 9104 }
8962 void FileOptions::set_has_java_string_check_utf8() { 9105 void FileOptions::set_has_java_string_check_utf8() {
8963 _has_bits_[0] |= 0x00000010u; 9106 _has_bits_[0] |= 0x00000100u;
8964 } 9107 }
8965 void FileOptions::clear_has_java_string_check_utf8() { 9108 void FileOptions::clear_has_java_string_check_utf8() {
8966 _has_bits_[0] &= ~0x00000010u; 9109 _has_bits_[0] &= ~0x00000100u;
8967 } 9110 }
8968 void FileOptions::clear_java_string_check_utf8() { 9111 void FileOptions::clear_java_string_check_utf8() {
8969 java_string_check_utf8_ = false; 9112 java_string_check_utf8_ = false;
8970 clear_has_java_string_check_utf8(); 9113 clear_has_java_string_check_utf8();
8971 } 9114 }
8972 bool FileOptions::java_string_check_utf8() const { 9115 bool FileOptions::java_string_check_utf8() const {
8973 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_string_ check_utf8) 9116 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_string_ check_utf8)
8974 return java_string_check_utf8_; 9117 return java_string_check_utf8_;
8975 } 9118 }
8976 void FileOptions::set_java_string_check_utf8(bool value) { 9119 void FileOptions::set_java_string_check_utf8(bool value) {
8977 set_has_java_string_check_utf8(); 9120 set_has_java_string_check_utf8();
8978 java_string_check_utf8_ = value; 9121 java_string_check_utf8_ = value;
8979 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_string_ check_utf8) 9122 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_string_ check_utf8)
8980 } 9123 }
8981 9124
8982 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; 9125 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
8983 bool FileOptions::has_optimize_for() const { 9126 bool FileOptions::has_optimize_for() const {
8984 return (_has_bits_[0] & 0x00000020u) != 0; 9127 return (_has_bits_[0] & 0x00004000u) != 0;
8985 } 9128 }
8986 void FileOptions::set_has_optimize_for() { 9129 void FileOptions::set_has_optimize_for() {
8987 _has_bits_[0] |= 0x00000020u; 9130 _has_bits_[0] |= 0x00004000u;
8988 } 9131 }
8989 void FileOptions::clear_has_optimize_for() { 9132 void FileOptions::clear_has_optimize_for() {
8990 _has_bits_[0] &= ~0x00000020u; 9133 _has_bits_[0] &= ~0x00004000u;
8991 } 9134 }
8992 void FileOptions::clear_optimize_for() { 9135 void FileOptions::clear_optimize_for() {
8993 optimize_for_ = 1; 9136 optimize_for_ = 1;
8994 clear_has_optimize_for(); 9137 clear_has_optimize_for();
8995 } 9138 }
8996 ::google::protobuf::FileOptions_OptimizeMode FileOptions::optimize_for() const { 9139 ::google::protobuf::FileOptions_OptimizeMode FileOptions::optimize_for() const {
8997 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.optimize_for ) 9140 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.optimize_for )
8998 return static_cast< ::google::protobuf::FileOptions_OptimizeMode >(optimize_fo r_); 9141 return static_cast< ::google::protobuf::FileOptions_OptimizeMode >(optimize_fo r_);
8999 } 9142 }
9000 void FileOptions::set_optimize_for(::google::protobuf::FileOptions_OptimizeMode value) { 9143 void FileOptions::set_optimize_for(::google::protobuf::FileOptions_OptimizeMode value) {
9001 assert(::google::protobuf::FileOptions_OptimizeMode_IsValid(value)); 9144 assert(::google::protobuf::FileOptions_OptimizeMode_IsValid(value));
9002 set_has_optimize_for(); 9145 set_has_optimize_for();
9003 optimize_for_ = value; 9146 optimize_for_ = value;
9004 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.optimize_for ) 9147 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.optimize_for )
9005 } 9148 }
9006 9149
9007 // optional string go_package = 11; 9150 // optional string go_package = 11;
9008 bool FileOptions::has_go_package() const { 9151 bool FileOptions::has_go_package() const {
9009 return (_has_bits_[0] & 0x00000040u) != 0; 9152 return (_has_bits_[0] & 0x00000004u) != 0;
9010 } 9153 }
9011 void FileOptions::set_has_go_package() { 9154 void FileOptions::set_has_go_package() {
9012 _has_bits_[0] |= 0x00000040u; 9155 _has_bits_[0] |= 0x00000004u;
9013 } 9156 }
9014 void FileOptions::clear_has_go_package() { 9157 void FileOptions::clear_has_go_package() {
9015 _has_bits_[0] &= ~0x00000040u; 9158 _has_bits_[0] &= ~0x00000004u;
9016 } 9159 }
9017 void FileOptions::clear_go_package() { 9160 void FileOptions::clear_go_package() {
9018 go_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringA lreadyInited()); 9161 go_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringA lreadyInited());
9019 clear_has_go_package(); 9162 clear_has_go_package();
9020 } 9163 }
9021 const ::std::string& FileOptions::go_package() const { 9164 const ::std::string& FileOptions::go_package() const {
9022 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.go_package) 9165 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.go_package)
9023 return go_package_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited()); 9166 return go_package_.GetNoArena();
9024 } 9167 }
9025 void FileOptions::set_go_package(const ::std::string& value) { 9168 void FileOptions::set_go_package(const ::std::string& value) {
9026 set_has_go_package(); 9169 set_has_go_package();
9027 go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted(), value); 9170 go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted(), value);
9028 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.go_package) 9171 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.go_package)
9029 } 9172 }
9030 void FileOptions::set_go_package(const char* value) { 9173 #if LANG_CXX11
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) {
9031 set_has_go_package(); 9182 set_has_go_package();
9032 go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted(), ::std::string(value)); 9183 go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted(), ::std::string(value));
9033 // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.go_pack age) 9184 // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.go_pack age)
9034 } 9185 }
9035 void FileOptions::set_go_package(const char* value, size_t size) { 9186 void FileOptions::set_go_package(const char* value, size_t size) {
9036 set_has_go_package(); 9187 set_has_go_package();
9037 go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted(), 9188 go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted(),
9038 ::std::string(reinterpret_cast<const char*>(value), size)); 9189 ::std::string(reinterpret_cast<const char*>(value), size));
9039 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.go_p ackage) 9190 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.go_p ackage)
9040 } 9191 }
9041 ::std::string* FileOptions::mutable_go_package() { 9192 ::std::string* FileOptions::mutable_go_package() {
9042 set_has_go_package(); 9193 set_has_go_package();
9043 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.go_packa ge) 9194 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.go_packa ge)
9044 return go_package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited()); 9195 return go_package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited());
9045 } 9196 }
9046 ::std::string* FileOptions::release_go_package() { 9197 ::std::string* FileOptions::release_go_package() {
9047 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.go_packa ge) 9198 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.go_packa ge)
9048 clear_has_go_package(); 9199 clear_has_go_package();
9049 return go_package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited()); 9200 return go_package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited());
9050 } 9201 }
9051 void FileOptions::set_allocated_go_package(::std::string* go_package) { 9202 void FileOptions::set_allocated_go_package(::std::string* go_package) {
9052 if (go_package != NULL) { 9203 if (go_package != NULL) {
9053 set_has_go_package(); 9204 set_has_go_package();
9054 } else { 9205 } else {
9055 clear_has_go_package(); 9206 clear_has_go_package();
9056 } 9207 }
9057 go_package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringA lreadyInited(), go_package); 9208 go_package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringA lreadyInited(), go_package);
9058 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.go _package) 9209 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.go _package)
9059 } 9210 }
9060 9211
9061 // optional bool cc_generic_services = 16 [default = false]; 9212 // optional bool cc_generic_services = 16 [default = false];
9062 bool FileOptions::has_cc_generic_services() const { 9213 bool FileOptions::has_cc_generic_services() const {
9063 return (_has_bits_[0] & 0x00000080u) != 0; 9214 return (_has_bits_[0] & 0x00000200u) != 0;
9064 } 9215 }
9065 void FileOptions::set_has_cc_generic_services() { 9216 void FileOptions::set_has_cc_generic_services() {
9066 _has_bits_[0] |= 0x00000080u; 9217 _has_bits_[0] |= 0x00000200u;
9067 } 9218 }
9068 void FileOptions::clear_has_cc_generic_services() { 9219 void FileOptions::clear_has_cc_generic_services() {
9069 _has_bits_[0] &= ~0x00000080u; 9220 _has_bits_[0] &= ~0x00000200u;
9070 } 9221 }
9071 void FileOptions::clear_cc_generic_services() { 9222 void FileOptions::clear_cc_generic_services() {
9072 cc_generic_services_ = false; 9223 cc_generic_services_ = false;
9073 clear_has_cc_generic_services(); 9224 clear_has_cc_generic_services();
9074 } 9225 }
9075 bool FileOptions::cc_generic_services() const { 9226 bool FileOptions::cc_generic_services() const {
9076 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_generic_s ervices) 9227 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_generic_s ervices)
9077 return cc_generic_services_; 9228 return cc_generic_services_;
9078 } 9229 }
9079 void FileOptions::set_cc_generic_services(bool value) { 9230 void FileOptions::set_cc_generic_services(bool value) {
9080 set_has_cc_generic_services(); 9231 set_has_cc_generic_services();
9081 cc_generic_services_ = value; 9232 cc_generic_services_ = value;
9082 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.cc_generic_s ervices) 9233 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.cc_generic_s ervices)
9083 } 9234 }
9084 9235
9085 // optional bool java_generic_services = 17 [default = false]; 9236 // optional bool java_generic_services = 17 [default = false];
9086 bool FileOptions::has_java_generic_services() const { 9237 bool FileOptions::has_java_generic_services() const {
9087 return (_has_bits_[0] & 0x00000100u) != 0; 9238 return (_has_bits_[0] & 0x00000400u) != 0;
9088 } 9239 }
9089 void FileOptions::set_has_java_generic_services() { 9240 void FileOptions::set_has_java_generic_services() {
9090 _has_bits_[0] |= 0x00000100u; 9241 _has_bits_[0] |= 0x00000400u;
9091 } 9242 }
9092 void FileOptions::clear_has_java_generic_services() { 9243 void FileOptions::clear_has_java_generic_services() {
9093 _has_bits_[0] &= ~0x00000100u; 9244 _has_bits_[0] &= ~0x00000400u;
9094 } 9245 }
9095 void FileOptions::clear_java_generic_services() { 9246 void FileOptions::clear_java_generic_services() {
9096 java_generic_services_ = false; 9247 java_generic_services_ = false;
9097 clear_has_java_generic_services(); 9248 clear_has_java_generic_services();
9098 } 9249 }
9099 bool FileOptions::java_generic_services() const { 9250 bool FileOptions::java_generic_services() const {
9100 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generic _services) 9251 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generic _services)
9101 return java_generic_services_; 9252 return java_generic_services_;
9102 } 9253 }
9103 void FileOptions::set_java_generic_services(bool value) { 9254 void FileOptions::set_java_generic_services(bool value) {
9104 set_has_java_generic_services(); 9255 set_has_java_generic_services();
9105 java_generic_services_ = value; 9256 java_generic_services_ = value;
9106 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generic _services) 9257 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generic _services)
9107 } 9258 }
9108 9259
9109 // optional bool py_generic_services = 18 [default = false]; 9260 // optional bool py_generic_services = 18 [default = false];
9110 bool FileOptions::has_py_generic_services() const { 9261 bool FileOptions::has_py_generic_services() const {
9111 return (_has_bits_[0] & 0x00000200u) != 0; 9262 return (_has_bits_[0] & 0x00000800u) != 0;
9112 } 9263 }
9113 void FileOptions::set_has_py_generic_services() { 9264 void FileOptions::set_has_py_generic_services() {
9114 _has_bits_[0] |= 0x00000200u; 9265 _has_bits_[0] |= 0x00000800u;
9115 } 9266 }
9116 void FileOptions::clear_has_py_generic_services() { 9267 void FileOptions::clear_has_py_generic_services() {
9117 _has_bits_[0] &= ~0x00000200u; 9268 _has_bits_[0] &= ~0x00000800u;
9118 } 9269 }
9119 void FileOptions::clear_py_generic_services() { 9270 void FileOptions::clear_py_generic_services() {
9120 py_generic_services_ = false; 9271 py_generic_services_ = false;
9121 clear_has_py_generic_services(); 9272 clear_has_py_generic_services();
9122 } 9273 }
9123 bool FileOptions::py_generic_services() const { 9274 bool FileOptions::py_generic_services() const {
9124 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.py_generic_s ervices) 9275 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.py_generic_s ervices)
9125 return py_generic_services_; 9276 return py_generic_services_;
9126 } 9277 }
9127 void FileOptions::set_py_generic_services(bool value) { 9278 void FileOptions::set_py_generic_services(bool value) {
9128 set_has_py_generic_services(); 9279 set_has_py_generic_services();
9129 py_generic_services_ = value; 9280 py_generic_services_ = value;
9130 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.py_generic_s ervices) 9281 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.py_generic_s ervices)
9131 } 9282 }
9132 9283
9133 // optional bool deprecated = 23 [default = false]; 9284 // optional bool deprecated = 23 [default = false];
9134 bool FileOptions::has_deprecated() const { 9285 bool FileOptions::has_deprecated() const {
9135 return (_has_bits_[0] & 0x00000400u) != 0; 9286 return (_has_bits_[0] & 0x00001000u) != 0;
9136 } 9287 }
9137 void FileOptions::set_has_deprecated() { 9288 void FileOptions::set_has_deprecated() {
9138 _has_bits_[0] |= 0x00000400u; 9289 _has_bits_[0] |= 0x00001000u;
9139 } 9290 }
9140 void FileOptions::clear_has_deprecated() { 9291 void FileOptions::clear_has_deprecated() {
9141 _has_bits_[0] &= ~0x00000400u; 9292 _has_bits_[0] &= ~0x00001000u;
9142 } 9293 }
9143 void FileOptions::clear_deprecated() { 9294 void FileOptions::clear_deprecated() {
9144 deprecated_ = false; 9295 deprecated_ = false;
9145 clear_has_deprecated(); 9296 clear_has_deprecated();
9146 } 9297 }
9147 bool FileOptions::deprecated() const { 9298 bool FileOptions::deprecated() const {
9148 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.deprecated) 9299 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.deprecated)
9149 return deprecated_; 9300 return deprecated_;
9150 } 9301 }
9151 void FileOptions::set_deprecated(bool value) { 9302 void FileOptions::set_deprecated(bool value) {
9152 set_has_deprecated(); 9303 set_has_deprecated();
9153 deprecated_ = value; 9304 deprecated_ = value;
9154 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.deprecated) 9305 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.deprecated)
9155 } 9306 }
9156 9307
9157 // optional bool cc_enable_arenas = 31 [default = false]; 9308 // optional bool cc_enable_arenas = 31 [default = false];
9158 bool FileOptions::has_cc_enable_arenas() const { 9309 bool FileOptions::has_cc_enable_arenas() const {
9159 return (_has_bits_[0] & 0x00000800u) != 0; 9310 return (_has_bits_[0] & 0x00002000u) != 0;
9160 } 9311 }
9161 void FileOptions::set_has_cc_enable_arenas() { 9312 void FileOptions::set_has_cc_enable_arenas() {
9162 _has_bits_[0] |= 0x00000800u; 9313 _has_bits_[0] |= 0x00002000u;
9163 } 9314 }
9164 void FileOptions::clear_has_cc_enable_arenas() { 9315 void FileOptions::clear_has_cc_enable_arenas() {
9165 _has_bits_[0] &= ~0x00000800u; 9316 _has_bits_[0] &= ~0x00002000u;
9166 } 9317 }
9167 void FileOptions::clear_cc_enable_arenas() { 9318 void FileOptions::clear_cc_enable_arenas() {
9168 cc_enable_arenas_ = false; 9319 cc_enable_arenas_ = false;
9169 clear_has_cc_enable_arenas(); 9320 clear_has_cc_enable_arenas();
9170 } 9321 }
9171 bool FileOptions::cc_enable_arenas() const { 9322 bool FileOptions::cc_enable_arenas() const {
9172 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_enable_ar enas) 9323 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_enable_ar enas)
9173 return cc_enable_arenas_; 9324 return cc_enable_arenas_;
9174 } 9325 }
9175 void FileOptions::set_cc_enable_arenas(bool value) { 9326 void FileOptions::set_cc_enable_arenas(bool value) {
9176 set_has_cc_enable_arenas(); 9327 set_has_cc_enable_arenas();
9177 cc_enable_arenas_ = value; 9328 cc_enable_arenas_ = value;
9178 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.cc_enable_ar enas) 9329 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.cc_enable_ar enas)
9179 } 9330 }
9180 9331
9181 // optional string objc_class_prefix = 36; 9332 // optional string objc_class_prefix = 36;
9182 bool FileOptions::has_objc_class_prefix() const { 9333 bool FileOptions::has_objc_class_prefix() const {
9183 return (_has_bits_[0] & 0x00001000u) != 0; 9334 return (_has_bits_[0] & 0x00000008u) != 0;
9184 } 9335 }
9185 void FileOptions::set_has_objc_class_prefix() { 9336 void FileOptions::set_has_objc_class_prefix() {
9186 _has_bits_[0] |= 0x00001000u; 9337 _has_bits_[0] |= 0x00000008u;
9187 } 9338 }
9188 void FileOptions::clear_has_objc_class_prefix() { 9339 void FileOptions::clear_has_objc_class_prefix() {
9189 _has_bits_[0] &= ~0x00001000u; 9340 _has_bits_[0] &= ~0x00000008u;
9190 } 9341 }
9191 void FileOptions::clear_objc_class_prefix() { 9342 void FileOptions::clear_objc_class_prefix() {
9192 objc_class_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited()); 9343 objc_class_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited());
9193 clear_has_objc_class_prefix(); 9344 clear_has_objc_class_prefix();
9194 } 9345 }
9195 const ::std::string& FileOptions::objc_class_prefix() const { 9346 const ::std::string& FileOptions::objc_class_prefix() const {
9196 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.objc_class_p refix) 9347 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.objc_class_p refix)
9197 return objc_class_prefix_.GetNoArena(&::google::protobuf::internal::GetEmptySt ringAlreadyInited()); 9348 return objc_class_prefix_.GetNoArena();
9198 } 9349 }
9199 void FileOptions::set_objc_class_prefix(const ::std::string& value) { 9350 void FileOptions::set_objc_class_prefix(const ::std::string& value) {
9200 set_has_objc_class_prefix(); 9351 set_has_objc_class_prefix();
9201 objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), value); 9352 objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), value);
9202 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.objc_class_p refix) 9353 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.objc_class_p refix)
9203 } 9354 }
9204 void FileOptions::set_objc_class_prefix(const char* value) { 9355 #if LANG_CXX11
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) {
9205 set_has_objc_class_prefix(); 9364 set_has_objc_class_prefix();
9206 objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), ::std::string(value)); 9365 objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), ::std::string(value));
9207 // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.objc_cl ass_prefix) 9366 // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.objc_cl ass_prefix)
9208 } 9367 }
9209 void FileOptions::set_objc_class_prefix(const char* value, size_t size) { 9368 void FileOptions::set_objc_class_prefix(const char* value, size_t size) {
9210 set_has_objc_class_prefix(); 9369 set_has_objc_class_prefix();
9211 objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), 9370 objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(),
9212 ::std::string(reinterpret_cast<const char*>(value), size)); 9371 ::std::string(reinterpret_cast<const char*>(value), size));
9213 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.objc _class_prefix) 9372 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.objc _class_prefix)
9214 } 9373 }
9215 ::std::string* FileOptions::mutable_objc_class_prefix() { 9374 ::std::string* FileOptions::mutable_objc_class_prefix() {
9216 set_has_objc_class_prefix(); 9375 set_has_objc_class_prefix();
9217 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.objc_cla ss_prefix) 9376 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.objc_cla ss_prefix)
9218 return objc_class_prefix_.MutableNoArena(&::google::protobuf::internal::GetEmp tyStringAlreadyInited()); 9377 return objc_class_prefix_.MutableNoArena(&::google::protobuf::internal::GetEmp tyStringAlreadyInited());
9219 } 9378 }
9220 ::std::string* FileOptions::release_objc_class_prefix() { 9379 ::std::string* FileOptions::release_objc_class_prefix() {
9221 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.objc_cla ss_prefix) 9380 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.objc_cla ss_prefix)
9222 clear_has_objc_class_prefix(); 9381 clear_has_objc_class_prefix();
9223 return objc_class_prefix_.ReleaseNoArena(&::google::protobuf::internal::GetEmp tyStringAlreadyInited()); 9382 return objc_class_prefix_.ReleaseNoArena(&::google::protobuf::internal::GetEmp tyStringAlreadyInited());
9224 } 9383 }
9225 void FileOptions::set_allocated_objc_class_prefix(::std::string* objc_class_pre fix) { 9384 void FileOptions::set_allocated_objc_class_prefix(::std::string* objc_class_pref ix) {
9226 if (objc_class_prefix != NULL) { 9385 if (objc_class_prefix != NULL) {
9227 set_has_objc_class_prefix(); 9386 set_has_objc_class_prefix();
9228 } else { 9387 } else {
9229 clear_has_objc_class_prefix(); 9388 clear_has_objc_class_prefix();
9230 } 9389 }
9231 objc_class_prefix_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited(), objc_class_prefix); 9390 objc_class_prefix_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited(), objc_class_prefix);
9232 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.ob jc_class_prefix) 9391 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.ob jc_class_prefix)
9233 } 9392 }
9234 9393
9235 // optional string csharp_namespace = 37; 9394 // optional string csharp_namespace = 37;
9236 bool FileOptions::has_csharp_namespace() const { 9395 bool FileOptions::has_csharp_namespace() const {
9237 return (_has_bits_[0] & 0x00002000u) != 0; 9396 return (_has_bits_[0] & 0x00000010u) != 0;
9238 } 9397 }
9239 void FileOptions::set_has_csharp_namespace() { 9398 void FileOptions::set_has_csharp_namespace() {
9240 _has_bits_[0] |= 0x00002000u; 9399 _has_bits_[0] |= 0x00000010u;
9241 } 9400 }
9242 void FileOptions::clear_has_csharp_namespace() { 9401 void FileOptions::clear_has_csharp_namespace() {
9243 _has_bits_[0] &= ~0x00002000u; 9402 _has_bits_[0] &= ~0x00000010u;
9244 } 9403 }
9245 void FileOptions::clear_csharp_namespace() { 9404 void FileOptions::clear_csharp_namespace() {
9246 csharp_namespace_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyS tringAlreadyInited()); 9405 csharp_namespace_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyS tringAlreadyInited());
9247 clear_has_csharp_namespace(); 9406 clear_has_csharp_namespace();
9248 } 9407 }
9249 const ::std::string& FileOptions::csharp_namespace() const { 9408 const ::std::string& FileOptions::csharp_namespace() const {
9250 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.csharp_names pace) 9409 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.csharp_names pace)
9251 return csharp_namespace_.GetNoArena(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited()); 9410 return csharp_namespace_.GetNoArena();
9252 } 9411 }
9253 void FileOptions::set_csharp_namespace(const ::std::string& value) { 9412 void FileOptions::set_csharp_namespace(const ::std::string& value) {
9254 set_has_csharp_namespace(); 9413 set_has_csharp_namespace();
9255 csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), value); 9414 csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), value);
9256 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.csharp_names pace) 9415 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.csharp_names pace)
9257 } 9416 }
9258 void FileOptions::set_csharp_namespace(const char* value) { 9417 #if LANG_CXX11
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) {
9259 set_has_csharp_namespace(); 9426 set_has_csharp_namespace();
9260 csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), ::std::string(value)); 9427 csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), ::std::string(value));
9261 // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.csharp_ namespace) 9428 // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.csharp_ namespace)
9262 } 9429 }
9263 void FileOptions::set_csharp_namespace(const char* value, size_t size) { 9430 void FileOptions::set_csharp_namespace(const char* value, size_t size) {
9264 set_has_csharp_namespace(); 9431 set_has_csharp_namespace();
9265 csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), 9432 csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(),
9266 ::std::string(reinterpret_cast<const char*>(value), size)); 9433 ::std::string(reinterpret_cast<const char*>(value), size));
9267 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.csha rp_namespace) 9434 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.csha rp_namespace)
9268 } 9435 }
9269 ::std::string* FileOptions::mutable_csharp_namespace() { 9436 ::std::string* FileOptions::mutable_csharp_namespace() {
9270 set_has_csharp_namespace(); 9437 set_has_csharp_namespace();
9271 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.csharp_n amespace) 9438 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.csharp_n amespace)
9272 return csharp_namespace_.MutableNoArena(&::google::protobuf::internal::GetEmpt yStringAlreadyInited()); 9439 return csharp_namespace_.MutableNoArena(&::google::protobuf::internal::GetEmpt yStringAlreadyInited());
9273 } 9440 }
9274 ::std::string* FileOptions::release_csharp_namespace() { 9441 ::std::string* FileOptions::release_csharp_namespace() {
9275 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.csharp_n amespace) 9442 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.csharp_n amespace)
9276 clear_has_csharp_namespace(); 9443 clear_has_csharp_namespace();
9277 return csharp_namespace_.ReleaseNoArena(&::google::protobuf::internal::GetEmpt yStringAlreadyInited()); 9444 return csharp_namespace_.ReleaseNoArena(&::google::protobuf::internal::GetEmpt yStringAlreadyInited());
9278 } 9445 }
9279 void FileOptions::set_allocated_csharp_namespace(::std::string* csharp_namespac e) { 9446 void FileOptions::set_allocated_csharp_namespace(::std::string* csharp_namespace ) {
9280 if (csharp_namespace != NULL) { 9447 if (csharp_namespace != NULL) {
9281 set_has_csharp_namespace(); 9448 set_has_csharp_namespace();
9282 } else { 9449 } else {
9283 clear_has_csharp_namespace(); 9450 clear_has_csharp_namespace();
9284 } 9451 }
9285 csharp_namespace_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyS tringAlreadyInited(), csharp_namespace); 9452 csharp_namespace_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyS tringAlreadyInited(), csharp_namespace);
9286 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.cs harp_namespace) 9453 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.cs harp_namespace)
9287 } 9454 }
9288 9455
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
9289 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 9518 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
9290 int FileOptions::uninterpreted_option_size() const { 9519 int FileOptions::uninterpreted_option_size() const {
9291 return uninterpreted_option_.size(); 9520 return uninterpreted_option_.size();
9292 } 9521 }
9293 void FileOptions::clear_uninterpreted_option() { 9522 void FileOptions::clear_uninterpreted_option() {
9294 uninterpreted_option_.Clear(); 9523 uninterpreted_option_.Clear();
9295 } 9524 }
9296 const ::google::protobuf::UninterpretedOption& FileOptions::uninterpreted_option (int index) const { 9525 const ::google::protobuf::UninterpretedOption& FileOptions::uninterpreted_option (int index) const {
9297 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.uninterprete d_option) 9526 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.uninterprete d_option)
9298 return uninterpreted_option_.Get(index); 9527 return uninterpreted_option_.Get(index);
(...skipping 24 matching lines...) Expand all
9323 #if !defined(_MSC_VER) || _MSC_VER >= 1900 9552 #if !defined(_MSC_VER) || _MSC_VER >= 1900
9324 const int MessageOptions::kMessageSetWireFormatFieldNumber; 9553 const int MessageOptions::kMessageSetWireFormatFieldNumber;
9325 const int MessageOptions::kNoStandardDescriptorAccessorFieldNumber; 9554 const int MessageOptions::kNoStandardDescriptorAccessorFieldNumber;
9326 const int MessageOptions::kDeprecatedFieldNumber; 9555 const int MessageOptions::kDeprecatedFieldNumber;
9327 const int MessageOptions::kMapEntryFieldNumber; 9556 const int MessageOptions::kMapEntryFieldNumber;
9328 const int MessageOptions::kUninterpretedOptionFieldNumber; 9557 const int MessageOptions::kUninterpretedOptionFieldNumber;
9329 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 9558 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
9330 9559
9331 MessageOptions::MessageOptions() 9560 MessageOptions::MessageOptions()
9332 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 9561 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
9562 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
9563 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
9564 }
9333 SharedCtor(); 9565 SharedCtor();
9334 // @@protoc_insertion_point(constructor:google.protobuf.MessageOptions) 9566 // @@protoc_insertion_point(constructor:google.protobuf.MessageOptions)
9335 } 9567 }
9336
9337 void MessageOptions::InitAsDefaultInstance() {
9338 }
9339
9340 MessageOptions::MessageOptions(const MessageOptions& from) 9568 MessageOptions::MessageOptions(const MessageOptions& from)
9341 : ::google::protobuf::Message(), 9569 : ::google::protobuf::Message(),
9342 _internal_metadata_(NULL) { 9570 _internal_metadata_(NULL),
9343 SharedCtor(); 9571 _has_bits_(from._has_bits_),
9344 MergeFrom(from); 9572 _cached_size_(0),
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_));
9345 // @@protoc_insertion_point(copy_constructor:google.protobuf.MessageOptions) 9579 // @@protoc_insertion_point(copy_constructor:google.protobuf.MessageOptions)
9346 } 9580 }
9347 9581
9348 void MessageOptions::SharedCtor() { 9582 void MessageOptions::SharedCtor() {
9349 _cached_size_ = 0; 9583 _cached_size_ = 0;
9350 message_set_wire_format_ = false; 9584 ::memset(&message_set_wire_format_, 0, reinterpret_cast<char*>(&map_entry_) -
9351 no_standard_descriptor_accessor_ = false; 9585 reinterpret_cast<char*>(&message_set_wire_format_) + sizeof(map_entry_));
9352 deprecated_ = false;
9353 map_entry_ = false;
9354 ::memset(_has_bits_, 0, sizeof(_has_bits_));
9355 } 9586 }
9356 9587
9357 MessageOptions::~MessageOptions() { 9588 MessageOptions::~MessageOptions() {
9358 // @@protoc_insertion_point(destructor:google.protobuf.MessageOptions) 9589 // @@protoc_insertion_point(destructor:google.protobuf.MessageOptions)
9359 SharedDtor(); 9590 SharedDtor();
9360 } 9591 }
9361 9592
9362 void MessageOptions::SharedDtor() { 9593 void MessageOptions::SharedDtor() {
9363 if (this != default_instance_) {
9364 }
9365 } 9594 }
9366 9595
9367 void MessageOptions::SetCachedSize(int size) const { 9596 void MessageOptions::SetCachedSize(int size) const {
9368 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 9597 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9369 _cached_size_ = size; 9598 _cached_size_ = size;
9370 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 9599 GOOGLE_SAFE_CONCURRENT_WRITES_END();
9371 } 9600 }
9372 const ::google::protobuf::Descriptor* MessageOptions::descriptor() { 9601 const ::google::protobuf::Descriptor* MessageOptions::descriptor() {
9373 protobuf_AssignDescriptorsOnce(); 9602 protobuf_AssignDescriptorsOnce();
9374 return MessageOptions_descriptor_; 9603 return file_level_metadata[12].descriptor;
9375 } 9604 }
9376 9605
9377 const MessageOptions& MessageOptions::default_instance() { 9606 const MessageOptions& MessageOptions::default_instance() {
9378 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 9607 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
9379 return *default_instance_; 9608 return *internal_default_instance();
9380 } 9609 }
9381 9610
9382 MessageOptions* MessageOptions::default_instance_ = NULL;
9383
9384 MessageOptions* MessageOptions::New(::google::protobuf::Arena* arena) const { 9611 MessageOptions* MessageOptions::New(::google::protobuf::Arena* arena) const {
9385 MessageOptions* n = new MessageOptions; 9612 MessageOptions* n = new MessageOptions;
9386 if (arena != NULL) { 9613 if (arena != NULL) {
9387 arena->Own(n); 9614 arena->Own(n);
9388 } 9615 }
9389 return n; 9616 return n;
9390 } 9617 }
9391 9618
9392 void MessageOptions::Clear() { 9619 void MessageOptions::Clear() {
9393 // @@protoc_insertion_point(message_clear_start:google.protobuf.MessageOptions) 9620 // @@protoc_insertion_point(message_clear_start:google.protobuf.MessageOptions)
9394 _extensions_.Clear(); 9621 _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
9416 uninterpreted_option_.Clear(); 9622 uninterpreted_option_.Clear();
9417 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 9623 if (_has_bits_[0 / 32] & 15u) {
9418 if (_internal_metadata_.have_unknown_fields()) { 9624 ::memset(&message_set_wire_format_, 0, reinterpret_cast<char*>(&map_entry_) -
9419 mutable_unknown_fields()->Clear(); 9625 reinterpret_cast<char*>(&message_set_wire_format_) + sizeof(map_entry_));
9420 } 9626 }
9627 _has_bits_.Clear();
9628 _internal_metadata_.Clear();
9421 } 9629 }
9422 9630
9423 bool MessageOptions::MergePartialFromCodedStream( 9631 bool MessageOptions::MergePartialFromCodedStream(
9424 ::google::protobuf::io::CodedInputStream* input) { 9632 ::google::protobuf::io::CodedInputStream* input) {
9425 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 9633 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
9426 ::google::protobuf::uint32 tag; 9634 ::google::protobuf::uint32 tag;
9427 // @@protoc_insertion_point(parse_start:google.protobuf.MessageOptions) 9635 // @@protoc_insertion_point(parse_start:google.protobuf.MessageOptions)
9428 for (;;) { 9636 for (;;) {
9429 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 16383); 9637 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(16383u);
9430 tag = p.first; 9638 tag = p.first;
9431 if (!p.second) goto handle_unusual; 9639 if (!p.second) goto handle_unusual;
9432 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 9640 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
9433 // optional bool message_set_wire_format = 1 [default = false]; 9641 // optional bool message_set_wire_format = 1 [default = false];
9434 case 1: { 9642 case 1: {
9435 if (tag == 8) { 9643 if (tag == 8u) {
9644 set_has_message_set_wire_format();
9436 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 9645 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9437 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 9646 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
9438 input, &message_set_wire_format_))); 9647 input, &message_set_wire_format_)));
9439 set_has_message_set_wire_format();
9440 } else { 9648 } else {
9441 goto handle_unusual; 9649 goto handle_unusual;
9442 } 9650 }
9443 if (input->ExpectTag(16)) goto parse_no_standard_descriptor_accessor;
9444 break; 9651 break;
9445 } 9652 }
9446 9653
9447 // optional bool no_standard_descriptor_accessor = 2 [default = false]; 9654 // optional bool no_standard_descriptor_accessor = 2 [default = false];
9448 case 2: { 9655 case 2: {
9449 if (tag == 16) { 9656 if (tag == 16u) {
9450 parse_no_standard_descriptor_accessor: 9657 set_has_no_standard_descriptor_accessor();
9451 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 9658 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9452 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 9659 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
9453 input, &no_standard_descriptor_accessor_))); 9660 input, &no_standard_descriptor_accessor_)));
9454 set_has_no_standard_descriptor_accessor();
9455 } else { 9661 } else {
9456 goto handle_unusual; 9662 goto handle_unusual;
9457 } 9663 }
9458 if (input->ExpectTag(24)) goto parse_deprecated;
9459 break; 9664 break;
9460 } 9665 }
9461 9666
9462 // optional bool deprecated = 3 [default = false]; 9667 // optional bool deprecated = 3 [default = false];
9463 case 3: { 9668 case 3: {
9464 if (tag == 24) { 9669 if (tag == 24u) {
9465 parse_deprecated: 9670 set_has_deprecated();
9466 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 9671 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9467 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 9672 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
9468 input, &deprecated_))); 9673 input, &deprecated_)));
9469 set_has_deprecated();
9470 } else { 9674 } else {
9471 goto handle_unusual; 9675 goto handle_unusual;
9472 } 9676 }
9473 if (input->ExpectTag(56)) goto parse_map_entry;
9474 break; 9677 break;
9475 } 9678 }
9476 9679
9477 // optional bool map_entry = 7; 9680 // optional bool map_entry = 7;
9478 case 7: { 9681 case 7: {
9479 if (tag == 56) { 9682 if (tag == 56u) {
9480 parse_map_entry: 9683 set_has_map_entry();
9481 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 9684 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9482 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 9685 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
9483 input, &map_entry_))); 9686 input, &map_entry_)));
9484 set_has_map_entry();
9485 } else { 9687 } else {
9486 goto handle_unusual; 9688 goto handle_unusual;
9487 } 9689 }
9488 if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
9489 break; 9690 break;
9490 } 9691 }
9491 9692
9492 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99 9; 9693 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99 9;
9493 case 999: { 9694 case 999: {
9494 if (tag == 7994) { 9695 if (tag == 7994u) {
9495 parse_uninterpreted_option:
9496 DO_(input->IncrementRecursionDepth()); 9696 DO_(input->IncrementRecursionDepth());
9497 parse_loop_uninterpreted_option:
9498 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 9697 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
9499 input, add_uninterpreted_option())); 9698 input, add_uninterpreted_option()));
9500 } else { 9699 } else {
9501 goto handle_unusual; 9700 goto handle_unusual;
9502 } 9701 }
9503 if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option;
9504 input->UnsafeDecrementRecursionDepth(); 9702 input->UnsafeDecrementRecursionDepth();
9505 if (input->ExpectAtEnd()) goto success;
9506 break; 9703 break;
9507 } 9704 }
9508 9705
9509 default: { 9706 default: {
9510 handle_unusual: 9707 handle_unusual:
9511 if (tag == 0 || 9708 if (tag == 0 ||
9512 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 9709 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
9513 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 9710 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
9514 goto success; 9711 goto success;
9515 } 9712 }
9516 if ((8000u <= tag)) { 9713 if ((8000u <= tag)) {
9517 DO_(_extensions_.ParseField(tag, input, default_instance_, 9714 DO_(_extensions_.ParseField(tag, input, internal_default_instance(),
9518 mutable_unknown_fields())); 9715 mutable_unknown_fields()));
9519 continue; 9716 continue;
9520 } 9717 }
9521 DO_(::google::protobuf::internal::WireFormat::SkipField( 9718 DO_(::google::protobuf::internal::WireFormat::SkipField(
9522 input, tag, mutable_unknown_fields())); 9719 input, tag, mutable_unknown_fields()));
9523 break; 9720 break;
9524 } 9721 }
9525 } 9722 }
9526 } 9723 }
9527 success: 9724 success:
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
9566 _extensions_.SerializeWithCachedSizes( 9763 _extensions_.SerializeWithCachedSizes(
9567 1000, 536870912, output); 9764 1000, 536870912, output);
9568 9765
9569 if (_internal_metadata_.have_unknown_fields()) { 9766 if (_internal_metadata_.have_unknown_fields()) {
9570 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 9767 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
9571 unknown_fields(), output); 9768 unknown_fields(), output);
9572 } 9769 }
9573 // @@protoc_insertion_point(serialize_end:google.protobuf.MessageOptions) 9770 // @@protoc_insertion_point(serialize_end:google.protobuf.MessageOptions)
9574 } 9771 }
9575 9772
9576 ::google::protobuf::uint8* MessageOptions::SerializeWithCachedSizesToArray( 9773 ::google::protobuf::uint8* MessageOptions::InternalSerializeWithCachedSizesToArr ay(
9577 ::google::protobuf::uint8* target) const { 9774 bool deterministic, ::google::protobuf::uint8* target) const {
9775 (void)deterministic; // Unused
9578 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MessageOp tions) 9776 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MessageOp tions)
9579 // optional bool message_set_wire_format = 1 [default = false]; 9777 // optional bool message_set_wire_format = 1 [default = false];
9580 if (has_message_set_wire_format()) { 9778 if (has_message_set_wire_format()) {
9581 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, t his->message_set_wire_format(), target); 9779 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, t his->message_set_wire_format(), target);
9582 } 9780 }
9583 9781
9584 // optional bool no_standard_descriptor_accessor = 2 [default = false]; 9782 // optional bool no_standard_descriptor_accessor = 2 [default = false];
9585 if (has_no_standard_descriptor_accessor()) { 9783 if (has_no_standard_descriptor_accessor()) {
9586 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, t his->no_standard_descriptor_accessor(), target); 9784 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, t his->no_standard_descriptor_accessor(), target);
9587 } 9785 }
9588 9786
9589 // optional bool deprecated = 3 [default = false]; 9787 // optional bool deprecated = 3 [default = false];
9590 if (has_deprecated()) { 9788 if (has_deprecated()) {
9591 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, t his->deprecated(), target); 9789 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, t his->deprecated(), target);
9592 } 9790 }
9593 9791
9594 // optional bool map_entry = 7; 9792 // optional bool map_entry = 7;
9595 if (has_map_entry()) { 9793 if (has_map_entry()) {
9596 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, t his->map_entry(), target); 9794 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, t his->map_entry(), target);
9597 } 9795 }
9598 9796
9599 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 9797 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
9600 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { 9798 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
9601 target = ::google::protobuf::internal::WireFormatLite:: 9799 target = ::google::protobuf::internal::WireFormatLite::
9602 WriteMessageNoVirtualToArray( 9800 InternalWriteMessageNoVirtualToArray(
9603 999, this->uninterpreted_option(i), target); 9801 999, this->uninterpreted_option(i), false, target);
9604 } 9802 }
9605 9803
9606 // Extension range [1000, 536870912) 9804 // Extension range [1000, 536870912)
9607 target = _extensions_.SerializeWithCachedSizesToArray( 9805 target = _extensions_.InternalSerializeWithCachedSizesToArray(
9608 1000, 536870912, target); 9806 1000, 536870912, false, target);
9609 9807
9610 if (_internal_metadata_.have_unknown_fields()) { 9808 if (_internal_metadata_.have_unknown_fields()) {
9611 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 9809 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
9612 unknown_fields(), target); 9810 unknown_fields(), target);
9613 } 9811 }
9614 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MessageOpti ons) 9812 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MessageOpti ons)
9615 return target; 9813 return target;
9616 } 9814 }
9617 9815
9618 int MessageOptions::ByteSize() const { 9816 size_t MessageOptions::ByteSizeLong() const {
9619 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.MessageOptio ns) 9817 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.MessageOptio ns)
9620 int total_size = 0; 9818 size_t 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 }
9621 9837
9622 if (_has_bits_[0 / 32] & 15u) { 9838 if (_has_bits_[0 / 32] & 15u) {
9623 // optional bool message_set_wire_format = 1 [default = false]; 9839 // optional bool message_set_wire_format = 1 [default = false];
9624 if (has_message_set_wire_format()) { 9840 if (has_message_set_wire_format()) {
9625 total_size += 1 + 1; 9841 total_size += 1 + 1;
9626 } 9842 }
9627 9843
9628 // optional bool no_standard_descriptor_accessor = 2 [default = false]; 9844 // optional bool no_standard_descriptor_accessor = 2 [default = false];
9629 if (has_no_standard_descriptor_accessor()) { 9845 if (has_no_standard_descriptor_accessor()) {
9630 total_size += 1 + 1; 9846 total_size += 1 + 1;
9631 } 9847 }
9632 9848
9633 // optional bool deprecated = 3 [default = false]; 9849 // optional bool deprecated = 3 [default = false];
9634 if (has_deprecated()) { 9850 if (has_deprecated()) {
9635 total_size += 1 + 1; 9851 total_size += 1 + 1;
9636 } 9852 }
9637 9853
9638 // optional bool map_entry = 7; 9854 // optional bool map_entry = 7;
9639 if (has_map_entry()) { 9855 if (has_map_entry()) {
9640 total_size += 1 + 1; 9856 total_size += 1 + 1;
9641 } 9857 }
9642 9858
9643 } 9859 }
9644 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 9860 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
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 }
9659 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 9861 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9660 _cached_size_ = total_size; 9862 _cached_size_ = cached_size;
9661 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 9863 GOOGLE_SAFE_CONCURRENT_WRITES_END();
9662 return total_size; 9864 return total_size;
9663 } 9865 }
9664 9866
9665 void MessageOptions::MergeFrom(const ::google::protobuf::Message& from) { 9867 void MessageOptions::MergeFrom(const ::google::protobuf::Message& from) {
9666 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Message Options) 9868 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Message Options)
9667 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 9869 GOOGLE_DCHECK_NE(&from, this);
9668 const MessageOptions* source = 9870 const MessageOptions* source =
9669 ::google::protobuf::internal::DynamicCastToGenerated<const MessageOptions> ( 9871 ::google::protobuf::internal::DynamicCastToGenerated<const MessageOptions> (
9670 &from); 9872 &from);
9671 if (source == NULL) { 9873 if (source == NULL) {
9672 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.M essageOptions) 9874 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.M essageOptions)
9673 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 9875 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
9674 } else { 9876 } else {
9675 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.MessageOptions) 9877 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.MessageOptions)
9676 MergeFrom(*source); 9878 MergeFrom(*source);
9677 } 9879 }
9678 } 9880 }
9679 9881
9680 void MessageOptions::MergeFrom(const MessageOptions& from) { 9882 void MessageOptions::MergeFrom(const MessageOptions& from) {
9681 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Mess ageOptions) 9883 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Mess ageOptions)
9682 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 9884 GOOGLE_DCHECK_NE(&from, this);
9885 _extensions_.MergeFrom(from._extensions_);
9886 _internal_metadata_.MergeFrom(from._internal_metadata_);
9683 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); 9887 uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
9684 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { 9888 if (from._has_bits_[0 / 32] & 15u) {
9685 if (from.has_message_set_wire_format()) { 9889 if (from.has_message_set_wire_format()) {
9686 set_message_set_wire_format(from.message_set_wire_format()); 9890 set_message_set_wire_format(from.message_set_wire_format());
9687 } 9891 }
9688 if (from.has_no_standard_descriptor_accessor()) { 9892 if (from.has_no_standard_descriptor_accessor()) {
9689 set_no_standard_descriptor_accessor(from.no_standard_descriptor_accessor() ); 9893 set_no_standard_descriptor_accessor(from.no_standard_descriptor_accessor() );
9690 } 9894 }
9691 if (from.has_deprecated()) { 9895 if (from.has_deprecated()) {
9692 set_deprecated(from.deprecated()); 9896 set_deprecated(from.deprecated());
9693 } 9897 }
9694 if (from.has_map_entry()) { 9898 if (from.has_map_entry()) {
9695 set_map_entry(from.map_entry()); 9899 set_map_entry(from.map_entry());
9696 } 9900 }
9697 } 9901 }
9698 _extensions_.MergeFrom(from._extensions_);
9699 if (from._internal_metadata_.have_unknown_fields()) {
9700 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
9701 }
9702 } 9902 }
9703 9903
9704 void MessageOptions::CopyFrom(const ::google::protobuf::Message& from) { 9904 void MessageOptions::CopyFrom(const ::google::protobuf::Message& from) {
9705 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.MessageO ptions) 9905 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.MessageO ptions)
9706 if (&from == this) return; 9906 if (&from == this) return;
9707 Clear(); 9907 Clear();
9708 MergeFrom(from); 9908 MergeFrom(from);
9709 } 9909 }
9710 9910
9711 void MessageOptions::CopyFrom(const MessageOptions& from) { 9911 void MessageOptions::CopyFrom(const MessageOptions& from) {
9712 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Messa geOptions) 9912 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Messa geOptions)
9713 if (&from == this) return; 9913 if (&from == this) return;
9714 Clear(); 9914 Clear();
9715 MergeFrom(from); 9915 MergeFrom(from);
9716 } 9916 }
9717 9917
9718 bool MessageOptions::IsInitialized() const { 9918 bool MessageOptions::IsInitialized() const {
9919 if (!_extensions_.IsInitialized()) {
9920 return false;
9921 }
9719 9922
9720 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio n())) return false; 9923 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio n())) return false;
9721 9924 return true;
9722 if (!_extensions_.IsInitialized()) return false; return true;
9723 } 9925 }
9724 9926
9725 void MessageOptions::Swap(MessageOptions* other) { 9927 void MessageOptions::Swap(MessageOptions* other) {
9726 if (other == this) return; 9928 if (other == this) return;
9727 InternalSwap(other); 9929 InternalSwap(other);
9728 } 9930 }
9729 void MessageOptions::InternalSwap(MessageOptions* other) { 9931 void MessageOptions::InternalSwap(MessageOptions* other) {
9932 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
9730 std::swap(message_set_wire_format_, other->message_set_wire_format_); 9933 std::swap(message_set_wire_format_, other->message_set_wire_format_);
9731 std::swap(no_standard_descriptor_accessor_, other->no_standard_descriptor_acce ssor_); 9934 std::swap(no_standard_descriptor_accessor_, other->no_standard_descriptor_acce ssor_);
9732 std::swap(deprecated_, other->deprecated_); 9935 std::swap(deprecated_, other->deprecated_);
9733 std::swap(map_entry_, other->map_entry_); 9936 std::swap(map_entry_, other->map_entry_);
9734 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
9735 std::swap(_has_bits_[0], other->_has_bits_[0]); 9937 std::swap(_has_bits_[0], other->_has_bits_[0]);
9736 _internal_metadata_.Swap(&other->_internal_metadata_); 9938 _internal_metadata_.Swap(&other->_internal_metadata_);
9737 std::swap(_cached_size_, other->_cached_size_); 9939 std::swap(_cached_size_, other->_cached_size_);
9738 _extensions_.Swap(&other->_extensions_); 9940 _extensions_.Swap(&other->_extensions_);
9739 } 9941 }
9740 9942
9741 ::google::protobuf::Metadata MessageOptions::GetMetadata() const { 9943 ::google::protobuf::Metadata MessageOptions::GetMetadata() const {
9742 protobuf_AssignDescriptorsOnce(); 9944 protobuf_AssignDescriptorsOnce();
9743 ::google::protobuf::Metadata metadata; 9945 return file_level_metadata[12];
9744 metadata.descriptor = MessageOptions_descriptor_;
9745 metadata.reflection = MessageOptions_reflection_;
9746 return metadata;
9747 } 9946 }
9748 9947
9749 #if PROTOBUF_INLINE_NOT_IN_HEADERS 9948 #if PROTOBUF_INLINE_NOT_IN_HEADERS
9750 // MessageOptions 9949 // MessageOptions
9751 9950
9752 // optional bool message_set_wire_format = 1 [default = false]; 9951 // optional bool message_set_wire_format = 1 [default = false];
9753 bool MessageOptions::has_message_set_wire_format() const { 9952 bool MessageOptions::has_message_set_wire_format() const {
9754 return (_has_bits_[0] & 0x00000001u) != 0; 9953 return (_has_bits_[0] & 0x00000001u) != 0;
9755 } 9954 }
9756 void MessageOptions::set_has_message_set_wire_format() { 9955 void MessageOptions::set_has_message_set_wire_format() {
9757 _has_bits_[0] |= 0x00000001u; 9956 _has_bits_[0] |= 0x00000001u;
9758 } 9957 }
9759 void MessageOptions::clear_has_message_set_wire_format() { 9958 void MessageOptions::clear_has_message_set_wire_format() {
9760 _has_bits_[0] &= ~0x00000001u; 9959 _has_bits_[0] &= ~0x00000001u;
9761 } 9960 }
9762 void MessageOptions::clear_message_set_wire_format() { 9961 void MessageOptions::clear_message_set_wire_format() {
9763 message_set_wire_format_ = false; 9962 message_set_wire_format_ = false;
9764 clear_has_message_set_wire_format(); 9963 clear_has_message_set_wire_format();
9765 } 9964 }
9766 bool MessageOptions::message_set_wire_format() const { 9965 bool MessageOptions::message_set_wire_format() const {
9767 // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.message_s et_wire_format) 9966 // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.message_s et_wire_format)
9768 return message_set_wire_format_; 9967 return message_set_wire_format_;
9769 } 9968 }
9770 void MessageOptions::set_message_set_wire_format(bool value) { 9969 void MessageOptions::set_message_set_wire_format(bool value) {
9771 set_has_message_set_wire_format(); 9970 set_has_message_set_wire_format();
9772 message_set_wire_format_ = value; 9971 message_set_wire_format_ = value;
9773 // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.message_s et_wire_format) 9972 // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.message_s et_wire_format)
9774 } 9973 }
9775 9974
9776 // optional bool no_standard_descriptor_accessor = 2 [default = false]; 9975 // optional bool no_standard_descriptor_accessor = 2 [default = false];
9777 bool MessageOptions::has_no_standard_descriptor_accessor() const { 9976 bool MessageOptions::has_no_standard_descriptor_accessor() const {
9778 return (_has_bits_[0] & 0x00000002u) != 0; 9977 return (_has_bits_[0] & 0x00000002u) != 0;
9779 } 9978 }
9780 void MessageOptions::set_has_no_standard_descriptor_accessor() { 9979 void MessageOptions::set_has_no_standard_descriptor_accessor() {
9781 _has_bits_[0] |= 0x00000002u; 9980 _has_bits_[0] |= 0x00000002u;
9782 } 9981 }
9783 void MessageOptions::clear_has_no_standard_descriptor_accessor() { 9982 void MessageOptions::clear_has_no_standard_descriptor_accessor() {
9784 _has_bits_[0] &= ~0x00000002u; 9983 _has_bits_[0] &= ~0x00000002u;
9785 } 9984 }
9786 void MessageOptions::clear_no_standard_descriptor_accessor() { 9985 void MessageOptions::clear_no_standard_descriptor_accessor() {
9787 no_standard_descriptor_accessor_ = false; 9986 no_standard_descriptor_accessor_ = false;
9788 clear_has_no_standard_descriptor_accessor(); 9987 clear_has_no_standard_descriptor_accessor();
9789 } 9988 }
9790 bool MessageOptions::no_standard_descriptor_accessor() const { 9989 bool MessageOptions::no_standard_descriptor_accessor() const {
9791 // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.no_standa rd_descriptor_accessor) 9990 // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.no_standa rd_descriptor_accessor)
9792 return no_standard_descriptor_accessor_; 9991 return no_standard_descriptor_accessor_;
9793 } 9992 }
9794 void MessageOptions::set_no_standard_descriptor_accessor(bool value) { 9993 void MessageOptions::set_no_standard_descriptor_accessor(bool value) {
9795 set_has_no_standard_descriptor_accessor(); 9994 set_has_no_standard_descriptor_accessor();
9796 no_standard_descriptor_accessor_ = value; 9995 no_standard_descriptor_accessor_ = value;
9797 // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.no_standa rd_descriptor_accessor) 9996 // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.no_standa rd_descriptor_accessor)
9798 } 9997 }
9799 9998
9800 // optional bool deprecated = 3 [default = false]; 9999 // optional bool deprecated = 3 [default = false];
9801 bool MessageOptions::has_deprecated() const { 10000 bool MessageOptions::has_deprecated() const {
9802 return (_has_bits_[0] & 0x00000004u) != 0; 10001 return (_has_bits_[0] & 0x00000004u) != 0;
9803 } 10002 }
9804 void MessageOptions::set_has_deprecated() { 10003 void MessageOptions::set_has_deprecated() {
9805 _has_bits_[0] |= 0x00000004u; 10004 _has_bits_[0] |= 0x00000004u;
9806 } 10005 }
9807 void MessageOptions::clear_has_deprecated() { 10006 void MessageOptions::clear_has_deprecated() {
9808 _has_bits_[0] &= ~0x00000004u; 10007 _has_bits_[0] &= ~0x00000004u;
9809 } 10008 }
9810 void MessageOptions::clear_deprecated() { 10009 void MessageOptions::clear_deprecated() {
9811 deprecated_ = false; 10010 deprecated_ = false;
9812 clear_has_deprecated(); 10011 clear_has_deprecated();
9813 } 10012 }
9814 bool MessageOptions::deprecated() const { 10013 bool MessageOptions::deprecated() const {
9815 // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.deprecate d) 10014 // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.deprecate d)
9816 return deprecated_; 10015 return deprecated_;
9817 } 10016 }
9818 void MessageOptions::set_deprecated(bool value) { 10017 void MessageOptions::set_deprecated(bool value) {
9819 set_has_deprecated(); 10018 set_has_deprecated();
9820 deprecated_ = value; 10019 deprecated_ = value;
9821 // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.deprecate d) 10020 // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.deprecate d)
9822 } 10021 }
9823 10022
9824 // optional bool map_entry = 7; 10023 // optional bool map_entry = 7;
9825 bool MessageOptions::has_map_entry() const { 10024 bool MessageOptions::has_map_entry() const {
9826 return (_has_bits_[0] & 0x00000008u) != 0; 10025 return (_has_bits_[0] & 0x00000008u) != 0;
9827 } 10026 }
9828 void MessageOptions::set_has_map_entry() { 10027 void MessageOptions::set_has_map_entry() {
9829 _has_bits_[0] |= 0x00000008u; 10028 _has_bits_[0] |= 0x00000008u;
9830 } 10029 }
9831 void MessageOptions::clear_has_map_entry() { 10030 void MessageOptions::clear_has_map_entry() {
9832 _has_bits_[0] &= ~0x00000008u; 10031 _has_bits_[0] &= ~0x00000008u;
9833 } 10032 }
9834 void MessageOptions::clear_map_entry() { 10033 void MessageOptions::clear_map_entry() {
9835 map_entry_ = false; 10034 map_entry_ = false;
9836 clear_has_map_entry(); 10035 clear_has_map_entry();
9837 } 10036 }
9838 bool MessageOptions::map_entry() const { 10037 bool MessageOptions::map_entry() const {
9839 // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.map_entry ) 10038 // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.map_entry )
9840 return map_entry_; 10039 return map_entry_;
9841 } 10040 }
9842 void MessageOptions::set_map_entry(bool value) { 10041 void MessageOptions::set_map_entry(bool value) {
9843 set_has_map_entry(); 10042 set_has_map_entry();
9844 map_entry_ = value; 10043 map_entry_ = value;
9845 // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.map_entry ) 10044 // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.map_entry )
9846 } 10045 }
9847 10046
9848 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 10047 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
9849 int MessageOptions::uninterpreted_option_size() const { 10048 int MessageOptions::uninterpreted_option_size() const {
9850 return uninterpreted_option_.size(); 10049 return uninterpreted_option_.size();
9851 } 10050 }
9852 void MessageOptions::clear_uninterpreted_option() { 10051 void MessageOptions::clear_uninterpreted_option() {
(...skipping 19 matching lines...) Expand all
9872 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt ion >& 10071 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt ion >&
9873 MessageOptions::uninterpreted_option() const { 10072 MessageOptions::uninterpreted_option() const {
9874 // @@protoc_insertion_point(field_list:google.protobuf.MessageOptions.uninterp reted_option) 10073 // @@protoc_insertion_point(field_list:google.protobuf.MessageOptions.uninterp reted_option)
9875 return uninterpreted_option_; 10074 return uninterpreted_option_;
9876 } 10075 }
9877 10076
9878 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 10077 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
9879 10078
9880 // =================================================================== 10079 // ===================================================================
9881 10080
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
9928 #if !defined(_MSC_VER) || _MSC_VER >= 1900 10081 #if !defined(_MSC_VER) || _MSC_VER >= 1900
9929 const int FieldOptions::kCtypeFieldNumber; 10082 const int FieldOptions::kCtypeFieldNumber;
9930 const int FieldOptions::kPackedFieldNumber; 10083 const int FieldOptions::kPackedFieldNumber;
9931 const int FieldOptions::kJstypeFieldNumber; 10084 const int FieldOptions::kJstypeFieldNumber;
9932 const int FieldOptions::kLazyFieldNumber; 10085 const int FieldOptions::kLazyFieldNumber;
9933 const int FieldOptions::kDeprecatedFieldNumber; 10086 const int FieldOptions::kDeprecatedFieldNumber;
9934 const int FieldOptions::kWeakFieldNumber; 10087 const int FieldOptions::kWeakFieldNumber;
9935 const int FieldOptions::kUninterpretedOptionFieldNumber; 10088 const int FieldOptions::kUninterpretedOptionFieldNumber;
9936 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 10089 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
9937 10090
9938 FieldOptions::FieldOptions() 10091 FieldOptions::FieldOptions()
9939 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 10092 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
10093 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
10094 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
10095 }
9940 SharedCtor(); 10096 SharedCtor();
9941 // @@protoc_insertion_point(constructor:google.protobuf.FieldOptions) 10097 // @@protoc_insertion_point(constructor:google.protobuf.FieldOptions)
9942 } 10098 }
9943
9944 void FieldOptions::InitAsDefaultInstance() {
9945 }
9946
9947 FieldOptions::FieldOptions(const FieldOptions& from) 10099 FieldOptions::FieldOptions(const FieldOptions& from)
9948 : ::google::protobuf::Message(), 10100 : ::google::protobuf::Message(),
9949 _internal_metadata_(NULL) { 10101 _internal_metadata_(NULL),
9950 SharedCtor(); 10102 _has_bits_(from._has_bits_),
9951 MergeFrom(from); 10103 _cached_size_(0),
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_));
9952 // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldOptions) 10110 // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldOptions)
9953 } 10111 }
9954 10112
9955 void FieldOptions::SharedCtor() { 10113 void FieldOptions::SharedCtor() {
9956 _cached_size_ = 0; 10114 _cached_size_ = 0;
9957 ctype_ = 0; 10115 ::memset(&ctype_, 0, reinterpret_cast<char*>(&weak_) -
9958 packed_ = false; 10116 reinterpret_cast<char*>(&ctype_) + sizeof(weak_));
9959 jstype_ = 0;
9960 lazy_ = false;
9961 deprecated_ = false;
9962 weak_ = false;
9963 ::memset(_has_bits_, 0, sizeof(_has_bits_));
9964 } 10117 }
9965 10118
9966 FieldOptions::~FieldOptions() { 10119 FieldOptions::~FieldOptions() {
9967 // @@protoc_insertion_point(destructor:google.protobuf.FieldOptions) 10120 // @@protoc_insertion_point(destructor:google.protobuf.FieldOptions)
9968 SharedDtor(); 10121 SharedDtor();
9969 } 10122 }
9970 10123
9971 void FieldOptions::SharedDtor() { 10124 void FieldOptions::SharedDtor() {
9972 if (this != default_instance_) {
9973 }
9974 } 10125 }
9975 10126
9976 void FieldOptions::SetCachedSize(int size) const { 10127 void FieldOptions::SetCachedSize(int size) const {
9977 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 10128 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9978 _cached_size_ = size; 10129 _cached_size_ = size;
9979 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 10130 GOOGLE_SAFE_CONCURRENT_WRITES_END();
9980 } 10131 }
9981 const ::google::protobuf::Descriptor* FieldOptions::descriptor() { 10132 const ::google::protobuf::Descriptor* FieldOptions::descriptor() {
9982 protobuf_AssignDescriptorsOnce(); 10133 protobuf_AssignDescriptorsOnce();
9983 return FieldOptions_descriptor_; 10134 return file_level_metadata[13].descriptor;
9984 } 10135 }
9985 10136
9986 const FieldOptions& FieldOptions::default_instance() { 10137 const FieldOptions& FieldOptions::default_instance() {
9987 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 10138 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
9988 return *default_instance_; 10139 return *internal_default_instance();
9989 } 10140 }
9990 10141
9991 FieldOptions* FieldOptions::default_instance_ = NULL;
9992
9993 FieldOptions* FieldOptions::New(::google::protobuf::Arena* arena) const { 10142 FieldOptions* FieldOptions::New(::google::protobuf::Arena* arena) const {
9994 FieldOptions* n = new FieldOptions; 10143 FieldOptions* n = new FieldOptions;
9995 if (arena != NULL) { 10144 if (arena != NULL) {
9996 arena->Own(n); 10145 arena->Own(n);
9997 } 10146 }
9998 return n; 10147 return n;
9999 } 10148 }
10000 10149
10001 void FieldOptions::Clear() { 10150 void FieldOptions::Clear() {
10002 // @@protoc_insertion_point(message_clear_start:google.protobuf.FieldOptions) 10151 // @@protoc_insertion_point(message_clear_start:google.protobuf.FieldOptions)
10003 _extensions_.Clear(); 10152 _extensions_.Clear();
10004 #if defined(__clang__) 10153 uninterpreted_option_.Clear();
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) { 10154 if (_has_bits_[0 / 32] & 63u) {
10021 ZR_(ctype_, jstype_); 10155 ::memset(&ctype_, 0, reinterpret_cast<char*>(&weak_) -
10022 ZR_(packed_, weak_); 10156 reinterpret_cast<char*>(&ctype_) + sizeof(weak_));
10023 } 10157 }
10024 10158 _has_bits_.Clear();
10025 #undef ZR_HELPER_ 10159 _internal_metadata_.Clear();
10026 #undef ZR_
10027
10028 uninterpreted_option_.Clear();
10029 ::memset(_has_bits_, 0, sizeof(_has_bits_));
10030 if (_internal_metadata_.have_unknown_fields()) {
10031 mutable_unknown_fields()->Clear();
10032 }
10033 } 10160 }
10034 10161
10035 bool FieldOptions::MergePartialFromCodedStream( 10162 bool FieldOptions::MergePartialFromCodedStream(
10036 ::google::protobuf::io::CodedInputStream* input) { 10163 ::google::protobuf::io::CodedInputStream* input) {
10037 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 10164 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
10038 ::google::protobuf::uint32 tag; 10165 ::google::protobuf::uint32 tag;
10039 // @@protoc_insertion_point(parse_start:google.protobuf.FieldOptions) 10166 // @@protoc_insertion_point(parse_start:google.protobuf.FieldOptions)
10040 for (;;) { 10167 for (;;) {
10041 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 16383); 10168 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(16383u);
10042 tag = p.first; 10169 tag = p.first;
10043 if (!p.second) goto handle_unusual; 10170 if (!p.second) goto handle_unusual;
10044 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 10171 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
10045 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRIN G]; 10172 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRIN G];
10046 case 1: { 10173 case 1: {
10047 if (tag == 8) { 10174 if (tag == 8u) {
10048 int value; 10175 int value;
10049 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 10176 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10050 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM> ( 10177 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM> (
10051 input, &value))); 10178 input, &value)));
10052 if (::google::protobuf::FieldOptions_CType_IsValid(value)) { 10179 if (::google::protobuf::FieldOptions_CType_IsValid(value)) {
10053 set_ctype(static_cast< ::google::protobuf::FieldOptions_CType >(valu e)); 10180 set_ctype(static_cast< ::google::protobuf::FieldOptions_CType >(valu e));
10054 } else { 10181 } else {
10055 mutable_unknown_fields()->AddVarint(1, value); 10182 mutable_unknown_fields()->AddVarint(1, value);
10056 } 10183 }
10057 } else { 10184 } else {
10058 goto handle_unusual; 10185 goto handle_unusual;
10059 } 10186 }
10060 if (input->ExpectTag(16)) goto parse_packed;
10061 break; 10187 break;
10062 } 10188 }
10063 10189
10064 // optional bool packed = 2; 10190 // optional bool packed = 2;
10065 case 2: { 10191 case 2: {
10066 if (tag == 16) { 10192 if (tag == 16u) {
10067 parse_packed: 10193 set_has_packed();
10068 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 10194 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10069 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 10195 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
10070 input, &packed_))); 10196 input, &packed_)));
10071 set_has_packed();
10072 } else { 10197 } else {
10073 goto handle_unusual; 10198 goto handle_unusual;
10074 } 10199 }
10075 if (input->ExpectTag(24)) goto parse_deprecated;
10076 break; 10200 break;
10077 } 10201 }
10078 10202
10079 // optional bool deprecated = 3 [default = false]; 10203 // optional bool deprecated = 3 [default = false];
10080 case 3: { 10204 case 3: {
10081 if (tag == 24) { 10205 if (tag == 24u) {
10082 parse_deprecated: 10206 set_has_deprecated();
10083 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 10207 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10084 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 10208 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
10085 input, &deprecated_))); 10209 input, &deprecated_)));
10086 set_has_deprecated();
10087 } else { 10210 } else {
10088 goto handle_unusual; 10211 goto handle_unusual;
10089 } 10212 }
10090 if (input->ExpectTag(40)) goto parse_lazy;
10091 break; 10213 break;
10092 } 10214 }
10093 10215
10094 // optional bool lazy = 5 [default = false]; 10216 // optional bool lazy = 5 [default = false];
10095 case 5: { 10217 case 5: {
10096 if (tag == 40) { 10218 if (tag == 40u) {
10097 parse_lazy: 10219 set_has_lazy();
10098 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 10220 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10099 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 10221 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
10100 input, &lazy_))); 10222 input, &lazy_)));
10101 set_has_lazy();
10102 } else { 10223 } else {
10103 goto handle_unusual; 10224 goto handle_unusual;
10104 } 10225 }
10105 if (input->ExpectTag(48)) goto parse_jstype;
10106 break; 10226 break;
10107 } 10227 }
10108 10228
10109 // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_ NORMAL]; 10229 // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_ NORMAL];
10110 case 6: { 10230 case 6: {
10111 if (tag == 48) { 10231 if (tag == 48u) {
10112 parse_jstype:
10113 int value; 10232 int value;
10114 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 10233 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10115 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM> ( 10234 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM> (
10116 input, &value))); 10235 input, &value)));
10117 if (::google::protobuf::FieldOptions_JSType_IsValid(value)) { 10236 if (::google::protobuf::FieldOptions_JSType_IsValid(value)) {
10118 set_jstype(static_cast< ::google::protobuf::FieldOptions_JSType >(va lue)); 10237 set_jstype(static_cast< ::google::protobuf::FieldOptions_JSType >(va lue));
10119 } else { 10238 } else {
10120 mutable_unknown_fields()->AddVarint(6, value); 10239 mutable_unknown_fields()->AddVarint(6, value);
10121 } 10240 }
10122 } else { 10241 } else {
10123 goto handle_unusual; 10242 goto handle_unusual;
10124 } 10243 }
10125 if (input->ExpectTag(80)) goto parse_weak;
10126 break; 10244 break;
10127 } 10245 }
10128 10246
10129 // optional bool weak = 10 [default = false]; 10247 // optional bool weak = 10 [default = false];
10130 case 10: { 10248 case 10: {
10131 if (tag == 80) { 10249 if (tag == 80u) {
10132 parse_weak: 10250 set_has_weak();
10133 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 10251 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10134 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 10252 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
10135 input, &weak_))); 10253 input, &weak_)));
10136 set_has_weak();
10137 } else { 10254 } else {
10138 goto handle_unusual; 10255 goto handle_unusual;
10139 } 10256 }
10140 if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
10141 break; 10257 break;
10142 } 10258 }
10143 10259
10144 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99 9; 10260 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99 9;
10145 case 999: { 10261 case 999: {
10146 if (tag == 7994) { 10262 if (tag == 7994u) {
10147 parse_uninterpreted_option:
10148 DO_(input->IncrementRecursionDepth()); 10263 DO_(input->IncrementRecursionDepth());
10149 parse_loop_uninterpreted_option:
10150 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 10264 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
10151 input, add_uninterpreted_option())); 10265 input, add_uninterpreted_option()));
10152 } else { 10266 } else {
10153 goto handle_unusual; 10267 goto handle_unusual;
10154 } 10268 }
10155 if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option;
10156 input->UnsafeDecrementRecursionDepth(); 10269 input->UnsafeDecrementRecursionDepth();
10157 if (input->ExpectAtEnd()) goto success;
10158 break; 10270 break;
10159 } 10271 }
10160 10272
10161 default: { 10273 default: {
10162 handle_unusual: 10274 handle_unusual:
10163 if (tag == 0 || 10275 if (tag == 0 ||
10164 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 10276 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
10165 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 10277 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
10166 goto success; 10278 goto success;
10167 } 10279 }
10168 if ((8000u <= tag)) { 10280 if ((8000u <= tag)) {
10169 DO_(_extensions_.ParseField(tag, input, default_instance_, 10281 DO_(_extensions_.ParseField(tag, input, internal_default_instance(),
10170 mutable_unknown_fields())); 10282 mutable_unknown_fields()));
10171 continue; 10283 continue;
10172 } 10284 }
10173 DO_(::google::protobuf::internal::WireFormat::SkipField( 10285 DO_(::google::protobuf::internal::WireFormat::SkipField(
10174 input, tag, mutable_unknown_fields())); 10286 input, tag, mutable_unknown_fields()));
10175 break; 10287 break;
10176 } 10288 }
10177 } 10289 }
10178 } 10290 }
10179 success: 10291 success:
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
10230 _extensions_.SerializeWithCachedSizes( 10342 _extensions_.SerializeWithCachedSizes(
10231 1000, 536870912, output); 10343 1000, 536870912, output);
10232 10344
10233 if (_internal_metadata_.have_unknown_fields()) { 10345 if (_internal_metadata_.have_unknown_fields()) {
10234 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 10346 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
10235 unknown_fields(), output); 10347 unknown_fields(), output);
10236 } 10348 }
10237 // @@protoc_insertion_point(serialize_end:google.protobuf.FieldOptions) 10349 // @@protoc_insertion_point(serialize_end:google.protobuf.FieldOptions)
10238 } 10350 }
10239 10351
10240 ::google::protobuf::uint8* FieldOptions::SerializeWithCachedSizesToArray( 10352 ::google::protobuf::uint8* FieldOptions::InternalSerializeWithCachedSizesToArray (
10241 ::google::protobuf::uint8* target) const { 10353 bool deterministic, ::google::protobuf::uint8* target) const {
10354 (void)deterministic; // Unused
10242 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldOpti ons) 10355 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldOpti ons)
10243 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; 10356 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
10244 if (has_ctype()) { 10357 if (has_ctype()) {
10245 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 10358 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
10246 1, this->ctype(), target); 10359 1, this->ctype(), target);
10247 } 10360 }
10248 10361
10249 // optional bool packed = 2; 10362 // optional bool packed = 2;
10250 if (has_packed()) { 10363 if (has_packed()) {
10251 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, t his->packed(), target); 10364 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, t his->packed(), target);
(...skipping 16 matching lines...) Expand all
10268 } 10381 }
10269 10382
10270 // optional bool weak = 10 [default = false]; 10383 // optional bool weak = 10 [default = false];
10271 if (has_weak()) { 10384 if (has_weak()) {
10272 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->weak(), target); 10385 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->weak(), target);
10273 } 10386 }
10274 10387
10275 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 10388 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10276 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { 10389 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
10277 target = ::google::protobuf::internal::WireFormatLite:: 10390 target = ::google::protobuf::internal::WireFormatLite::
10278 WriteMessageNoVirtualToArray( 10391 InternalWriteMessageNoVirtualToArray(
10279 999, this->uninterpreted_option(i), target); 10392 999, this->uninterpreted_option(i), false, target);
10280 } 10393 }
10281 10394
10282 // Extension range [1000, 536870912) 10395 // Extension range [1000, 536870912)
10283 target = _extensions_.SerializeWithCachedSizesToArray( 10396 target = _extensions_.InternalSerializeWithCachedSizesToArray(
10284 1000, 536870912, target); 10397 1000, 536870912, false, target);
10285 10398
10286 if (_internal_metadata_.have_unknown_fields()) { 10399 if (_internal_metadata_.have_unknown_fields()) {
10287 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 10400 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
10288 unknown_fields(), target); 10401 unknown_fields(), target);
10289 } 10402 }
10290 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FieldOption s) 10403 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FieldOption s)
10291 return target; 10404 return target;
10292 } 10405 }
10293 10406
10294 int FieldOptions::ByteSize() const { 10407 size_t FieldOptions::ByteSizeLong() const {
10295 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FieldOptions ) 10408 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FieldOptions )
10296 int total_size = 0; 10409 size_t 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 }
10297 10428
10298 if (_has_bits_[0 / 32] & 63u) { 10429 if (_has_bits_[0 / 32] & 63u) {
10299 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING] ; 10430 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING] ;
10300 if (has_ctype()) { 10431 if (has_ctype()) {
10301 total_size += 1 + 10432 total_size += 1 +
10302 ::google::protobuf::internal::WireFormatLite::EnumSize(this->ctype()); 10433 ::google::protobuf::internal::WireFormatLite::EnumSize(this->ctype());
10303 } 10434 }
10304 10435
10305 // optional bool packed = 2;
10306 if (has_packed()) {
10307 total_size += 1 + 1;
10308 }
10309
10310 // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NO RMAL]; 10436 // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NO RMAL];
10311 if (has_jstype()) { 10437 if (has_jstype()) {
10312 total_size += 1 + 10438 total_size += 1 +
10313 ::google::protobuf::internal::WireFormatLite::EnumSize(this->jstype()); 10439 ::google::protobuf::internal::WireFormatLite::EnumSize(this->jstype());
10314 } 10440 }
10315 10441
10442 // optional bool packed = 2;
10443 if (has_packed()) {
10444 total_size += 1 + 1;
10445 }
10446
10316 // optional bool lazy = 5 [default = false]; 10447 // optional bool lazy = 5 [default = false];
10317 if (has_lazy()) { 10448 if (has_lazy()) {
10318 total_size += 1 + 1; 10449 total_size += 1 + 1;
10319 } 10450 }
10320 10451
10321 // optional bool deprecated = 3 [default = false]; 10452 // optional bool deprecated = 3 [default = false];
10322 if (has_deprecated()) { 10453 if (has_deprecated()) {
10323 total_size += 1 + 1; 10454 total_size += 1 + 1;
10324 } 10455 }
10325 10456
10326 // optional bool weak = 10 [default = false]; 10457 // optional bool weak = 10 [default = false];
10327 if (has_weak()) { 10458 if (has_weak()) {
10328 total_size += 1 + 1; 10459 total_size += 1 + 1;
10329 } 10460 }
10330 10461
10331 } 10462 }
10332 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 10463 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
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 }
10347 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 10464 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10348 _cached_size_ = total_size; 10465 _cached_size_ = cached_size;
10349 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 10466 GOOGLE_SAFE_CONCURRENT_WRITES_END();
10350 return total_size; 10467 return total_size;
10351 } 10468 }
10352 10469
10353 void FieldOptions::MergeFrom(const ::google::protobuf::Message& from) { 10470 void FieldOptions::MergeFrom(const ::google::protobuf::Message& from) {
10354 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FieldOp tions) 10471 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FieldOp tions)
10355 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 10472 GOOGLE_DCHECK_NE(&from, this);
10356 const FieldOptions* source = 10473 const FieldOptions* source =
10357 ::google::protobuf::internal::DynamicCastToGenerated<const FieldOptions>( 10474 ::google::protobuf::internal::DynamicCastToGenerated<const FieldOptions>(
10358 &from); 10475 &from);
10359 if (source == NULL) { 10476 if (source == NULL) {
10360 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.F ieldOptions) 10477 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.F ieldOptions)
10361 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 10478 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
10362 } else { 10479 } else {
10363 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.FieldOptions) 10480 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.FieldOptions)
10364 MergeFrom(*source); 10481 MergeFrom(*source);
10365 } 10482 }
10366 } 10483 }
10367 10484
10368 void FieldOptions::MergeFrom(const FieldOptions& from) { 10485 void FieldOptions::MergeFrom(const FieldOptions& from) {
10369 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Fiel dOptions) 10486 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Fiel dOptions)
10370 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 10487 GOOGLE_DCHECK_NE(&from, this);
10488 _extensions_.MergeFrom(from._extensions_);
10489 _internal_metadata_.MergeFrom(from._internal_metadata_);
10371 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); 10490 uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
10372 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { 10491 if (from._has_bits_[0 / 32] & 63u) {
10373 if (from.has_ctype()) { 10492 if (from.has_ctype()) {
10374 set_ctype(from.ctype()); 10493 set_ctype(from.ctype());
10375 } 10494 }
10495 if (from.has_jstype()) {
10496 set_jstype(from.jstype());
10497 }
10376 if (from.has_packed()) { 10498 if (from.has_packed()) {
10377 set_packed(from.packed()); 10499 set_packed(from.packed());
10378 } 10500 }
10379 if (from.has_jstype()) {
10380 set_jstype(from.jstype());
10381 }
10382 if (from.has_lazy()) { 10501 if (from.has_lazy()) {
10383 set_lazy(from.lazy()); 10502 set_lazy(from.lazy());
10384 } 10503 }
10385 if (from.has_deprecated()) { 10504 if (from.has_deprecated()) {
10386 set_deprecated(from.deprecated()); 10505 set_deprecated(from.deprecated());
10387 } 10506 }
10388 if (from.has_weak()) { 10507 if (from.has_weak()) {
10389 set_weak(from.weak()); 10508 set_weak(from.weak());
10390 } 10509 }
10391 } 10510 }
10392 _extensions_.MergeFrom(from._extensions_);
10393 if (from._internal_metadata_.have_unknown_fields()) {
10394 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
10395 }
10396 } 10511 }
10397 10512
10398 void FieldOptions::CopyFrom(const ::google::protobuf::Message& from) { 10513 void FieldOptions::CopyFrom(const ::google::protobuf::Message& from) {
10399 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FieldOpt ions) 10514 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FieldOpt ions)
10400 if (&from == this) return; 10515 if (&from == this) return;
10401 Clear(); 10516 Clear();
10402 MergeFrom(from); 10517 MergeFrom(from);
10403 } 10518 }
10404 10519
10405 void FieldOptions::CopyFrom(const FieldOptions& from) { 10520 void FieldOptions::CopyFrom(const FieldOptions& from) {
10406 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Field Options) 10521 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Field Options)
10407 if (&from == this) return; 10522 if (&from == this) return;
10408 Clear(); 10523 Clear();
10409 MergeFrom(from); 10524 MergeFrom(from);
10410 } 10525 }
10411 10526
10412 bool FieldOptions::IsInitialized() const { 10527 bool FieldOptions::IsInitialized() const {
10528 if (!_extensions_.IsInitialized()) {
10529 return false;
10530 }
10413 10531
10414 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio n())) return false; 10532 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio n())) return false;
10415 10533 return true;
10416 if (!_extensions_.IsInitialized()) return false; return true;
10417 } 10534 }
10418 10535
10419 void FieldOptions::Swap(FieldOptions* other) { 10536 void FieldOptions::Swap(FieldOptions* other) {
10420 if (other == this) return; 10537 if (other == this) return;
10421 InternalSwap(other); 10538 InternalSwap(other);
10422 } 10539 }
10423 void FieldOptions::InternalSwap(FieldOptions* other) { 10540 void FieldOptions::InternalSwap(FieldOptions* other) {
10541 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
10424 std::swap(ctype_, other->ctype_); 10542 std::swap(ctype_, other->ctype_);
10543 std::swap(jstype_, other->jstype_);
10425 std::swap(packed_, other->packed_); 10544 std::swap(packed_, other->packed_);
10426 std::swap(jstype_, other->jstype_);
10427 std::swap(lazy_, other->lazy_); 10545 std::swap(lazy_, other->lazy_);
10428 std::swap(deprecated_, other->deprecated_); 10546 std::swap(deprecated_, other->deprecated_);
10429 std::swap(weak_, other->weak_); 10547 std::swap(weak_, other->weak_);
10430 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
10431 std::swap(_has_bits_[0], other->_has_bits_[0]); 10548 std::swap(_has_bits_[0], other->_has_bits_[0]);
10432 _internal_metadata_.Swap(&other->_internal_metadata_); 10549 _internal_metadata_.Swap(&other->_internal_metadata_);
10433 std::swap(_cached_size_, other->_cached_size_); 10550 std::swap(_cached_size_, other->_cached_size_);
10434 _extensions_.Swap(&other->_extensions_); 10551 _extensions_.Swap(&other->_extensions_);
10435 } 10552 }
10436 10553
10437 ::google::protobuf::Metadata FieldOptions::GetMetadata() const { 10554 ::google::protobuf::Metadata FieldOptions::GetMetadata() const {
10438 protobuf_AssignDescriptorsOnce(); 10555 protobuf_AssignDescriptorsOnce();
10439 ::google::protobuf::Metadata metadata; 10556 return file_level_metadata[13];
10440 metadata.descriptor = FieldOptions_descriptor_;
10441 metadata.reflection = FieldOptions_reflection_;
10442 return metadata;
10443 } 10557 }
10444 10558
10445 #if PROTOBUF_INLINE_NOT_IN_HEADERS 10559 #if PROTOBUF_INLINE_NOT_IN_HEADERS
10446 // FieldOptions 10560 // FieldOptions
10447 10561
10448 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; 10562 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
10449 bool FieldOptions::has_ctype() const { 10563 bool FieldOptions::has_ctype() const {
10450 return (_has_bits_[0] & 0x00000001u) != 0; 10564 return (_has_bits_[0] & 0x00000001u) != 0;
10451 } 10565 }
10452 void FieldOptions::set_has_ctype() { 10566 void FieldOptions::set_has_ctype() {
10453 _has_bits_[0] |= 0x00000001u; 10567 _has_bits_[0] |= 0x00000001u;
10454 } 10568 }
10455 void FieldOptions::clear_has_ctype() { 10569 void FieldOptions::clear_has_ctype() {
10456 _has_bits_[0] &= ~0x00000001u; 10570 _has_bits_[0] &= ~0x00000001u;
10457 } 10571 }
10458 void FieldOptions::clear_ctype() { 10572 void FieldOptions::clear_ctype() {
10459 ctype_ = 0; 10573 ctype_ = 0;
10460 clear_has_ctype(); 10574 clear_has_ctype();
10461 } 10575 }
10462 ::google::protobuf::FieldOptions_CType FieldOptions::ctype() const { 10576 ::google::protobuf::FieldOptions_CType FieldOptions::ctype() const {
10463 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.ctype) 10577 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.ctype)
10464 return static_cast< ::google::protobuf::FieldOptions_CType >(ctype_); 10578 return static_cast< ::google::protobuf::FieldOptions_CType >(ctype_);
10465 } 10579 }
10466 void FieldOptions::set_ctype(::google::protobuf::FieldOptions_CType value) { 10580 void FieldOptions::set_ctype(::google::protobuf::FieldOptions_CType value) {
10467 assert(::google::protobuf::FieldOptions_CType_IsValid(value)); 10581 assert(::google::protobuf::FieldOptions_CType_IsValid(value));
10468 set_has_ctype(); 10582 set_has_ctype();
10469 ctype_ = value; 10583 ctype_ = value;
10470 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.ctype) 10584 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.ctype)
10471 } 10585 }
10472 10586
10473 // optional bool packed = 2; 10587 // optional bool packed = 2;
10474 bool FieldOptions::has_packed() const { 10588 bool FieldOptions::has_packed() const {
10475 return (_has_bits_[0] & 0x00000002u) != 0; 10589 return (_has_bits_[0] & 0x00000004u) != 0;
10476 } 10590 }
10477 void FieldOptions::set_has_packed() { 10591 void FieldOptions::set_has_packed() {
10478 _has_bits_[0] |= 0x00000002u; 10592 _has_bits_[0] |= 0x00000004u;
10479 } 10593 }
10480 void FieldOptions::clear_has_packed() { 10594 void FieldOptions::clear_has_packed() {
10481 _has_bits_[0] &= ~0x00000002u; 10595 _has_bits_[0] &= ~0x00000004u;
10482 } 10596 }
10483 void FieldOptions::clear_packed() { 10597 void FieldOptions::clear_packed() {
10484 packed_ = false; 10598 packed_ = false;
10485 clear_has_packed(); 10599 clear_has_packed();
10486 } 10600 }
10487 bool FieldOptions::packed() const { 10601 bool FieldOptions::packed() const {
10488 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.packed) 10602 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.packed)
10489 return packed_; 10603 return packed_;
10490 } 10604 }
10491 void FieldOptions::set_packed(bool value) { 10605 void FieldOptions::set_packed(bool value) {
10492 set_has_packed(); 10606 set_has_packed();
10493 packed_ = value; 10607 packed_ = value;
10494 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.packed) 10608 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.packed)
10495 } 10609 }
10496 10610
10497 // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL ]; 10611 // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL ];
10498 bool FieldOptions::has_jstype() const { 10612 bool FieldOptions::has_jstype() const {
10499 return (_has_bits_[0] & 0x00000004u) != 0; 10613 return (_has_bits_[0] & 0x00000002u) != 0;
10500 } 10614 }
10501 void FieldOptions::set_has_jstype() { 10615 void FieldOptions::set_has_jstype() {
10502 _has_bits_[0] |= 0x00000004u; 10616 _has_bits_[0] |= 0x00000002u;
10503 } 10617 }
10504 void FieldOptions::clear_has_jstype() { 10618 void FieldOptions::clear_has_jstype() {
10505 _has_bits_[0] &= ~0x00000004u; 10619 _has_bits_[0] &= ~0x00000002u;
10506 } 10620 }
10507 void FieldOptions::clear_jstype() { 10621 void FieldOptions::clear_jstype() {
10508 jstype_ = 0; 10622 jstype_ = 0;
10509 clear_has_jstype(); 10623 clear_has_jstype();
10510 } 10624 }
10511 ::google::protobuf::FieldOptions_JSType FieldOptions::jstype() const { 10625 ::google::protobuf::FieldOptions_JSType FieldOptions::jstype() const {
10512 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.jstype) 10626 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.jstype)
10513 return static_cast< ::google::protobuf::FieldOptions_JSType >(jstype_); 10627 return static_cast< ::google::protobuf::FieldOptions_JSType >(jstype_);
10514 } 10628 }
10515 void FieldOptions::set_jstype(::google::protobuf::FieldOptions_JSType value) { 10629 void FieldOptions::set_jstype(::google::protobuf::FieldOptions_JSType value) {
10516 assert(::google::protobuf::FieldOptions_JSType_IsValid(value)); 10630 assert(::google::protobuf::FieldOptions_JSType_IsValid(value));
10517 set_has_jstype(); 10631 set_has_jstype();
10518 jstype_ = value; 10632 jstype_ = value;
10519 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.jstype) 10633 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.jstype)
10520 } 10634 }
10521 10635
10522 // optional bool lazy = 5 [default = false]; 10636 // optional bool lazy = 5 [default = false];
10523 bool FieldOptions::has_lazy() const { 10637 bool FieldOptions::has_lazy() const {
10524 return (_has_bits_[0] & 0x00000008u) != 0; 10638 return (_has_bits_[0] & 0x00000008u) != 0;
10525 } 10639 }
10526 void FieldOptions::set_has_lazy() { 10640 void FieldOptions::set_has_lazy() {
10527 _has_bits_[0] |= 0x00000008u; 10641 _has_bits_[0] |= 0x00000008u;
10528 } 10642 }
10529 void FieldOptions::clear_has_lazy() { 10643 void FieldOptions::clear_has_lazy() {
10530 _has_bits_[0] &= ~0x00000008u; 10644 _has_bits_[0] &= ~0x00000008u;
10531 } 10645 }
10532 void FieldOptions::clear_lazy() { 10646 void FieldOptions::clear_lazy() {
10533 lazy_ = false; 10647 lazy_ = false;
10534 clear_has_lazy(); 10648 clear_has_lazy();
10535 } 10649 }
10536 bool FieldOptions::lazy() const { 10650 bool FieldOptions::lazy() const {
10537 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.lazy) 10651 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.lazy)
10538 return lazy_; 10652 return lazy_;
10539 } 10653 }
10540 void FieldOptions::set_lazy(bool value) { 10654 void FieldOptions::set_lazy(bool value) {
10541 set_has_lazy(); 10655 set_has_lazy();
10542 lazy_ = value; 10656 lazy_ = value;
10543 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.lazy) 10657 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.lazy)
10544 } 10658 }
10545 10659
10546 // optional bool deprecated = 3 [default = false]; 10660 // optional bool deprecated = 3 [default = false];
10547 bool FieldOptions::has_deprecated() const { 10661 bool FieldOptions::has_deprecated() const {
10548 return (_has_bits_[0] & 0x00000010u) != 0; 10662 return (_has_bits_[0] & 0x00000010u) != 0;
10549 } 10663 }
10550 void FieldOptions::set_has_deprecated() { 10664 void FieldOptions::set_has_deprecated() {
10551 _has_bits_[0] |= 0x00000010u; 10665 _has_bits_[0] |= 0x00000010u;
10552 } 10666 }
10553 void FieldOptions::clear_has_deprecated() { 10667 void FieldOptions::clear_has_deprecated() {
10554 _has_bits_[0] &= ~0x00000010u; 10668 _has_bits_[0] &= ~0x00000010u;
10555 } 10669 }
10556 void FieldOptions::clear_deprecated() { 10670 void FieldOptions::clear_deprecated() {
10557 deprecated_ = false; 10671 deprecated_ = false;
10558 clear_has_deprecated(); 10672 clear_has_deprecated();
10559 } 10673 }
10560 bool FieldOptions::deprecated() const { 10674 bool FieldOptions::deprecated() const {
10561 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.deprecated) 10675 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.deprecated)
10562 return deprecated_; 10676 return deprecated_;
10563 } 10677 }
10564 void FieldOptions::set_deprecated(bool value) { 10678 void FieldOptions::set_deprecated(bool value) {
10565 set_has_deprecated(); 10679 set_has_deprecated();
10566 deprecated_ = value; 10680 deprecated_ = value;
10567 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.deprecated) 10681 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.deprecated)
10568 } 10682 }
10569 10683
10570 // optional bool weak = 10 [default = false]; 10684 // optional bool weak = 10 [default = false];
10571 bool FieldOptions::has_weak() const { 10685 bool FieldOptions::has_weak() const {
10572 return (_has_bits_[0] & 0x00000020u) != 0; 10686 return (_has_bits_[0] & 0x00000020u) != 0;
10573 } 10687 }
10574 void FieldOptions::set_has_weak() { 10688 void FieldOptions::set_has_weak() {
10575 _has_bits_[0] |= 0x00000020u; 10689 _has_bits_[0] |= 0x00000020u;
10576 } 10690 }
10577 void FieldOptions::clear_has_weak() { 10691 void FieldOptions::clear_has_weak() {
10578 _has_bits_[0] &= ~0x00000020u; 10692 _has_bits_[0] &= ~0x00000020u;
10579 } 10693 }
10580 void FieldOptions::clear_weak() { 10694 void FieldOptions::clear_weak() {
10581 weak_ = false; 10695 weak_ = false;
10582 clear_has_weak(); 10696 clear_has_weak();
10583 } 10697 }
10584 bool FieldOptions::weak() const { 10698 bool FieldOptions::weak() const {
10585 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.weak) 10699 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.weak)
10586 return weak_; 10700 return weak_;
10587 } 10701 }
10588 void FieldOptions::set_weak(bool value) { 10702 void FieldOptions::set_weak(bool value) {
10589 set_has_weak(); 10703 set_has_weak();
10590 weak_ = value; 10704 weak_ = value;
10591 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.weak) 10705 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.weak)
10592 } 10706 }
10593 10707
10594 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 10708 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10595 int FieldOptions::uninterpreted_option_size() const { 10709 int FieldOptions::uninterpreted_option_size() const {
10596 return uninterpreted_option_.size(); 10710 return uninterpreted_option_.size();
10597 } 10711 }
10598 void FieldOptions::clear_uninterpreted_option() { 10712 void FieldOptions::clear_uninterpreted_option() {
(...skipping 20 matching lines...) Expand all
10619 FieldOptions::uninterpreted_option() const { 10733 FieldOptions::uninterpreted_option() const {
10620 // @@protoc_insertion_point(field_list:google.protobuf.FieldOptions.uninterpre ted_option) 10734 // @@protoc_insertion_point(field_list:google.protobuf.FieldOptions.uninterpre ted_option)
10621 return uninterpreted_option_; 10735 return uninterpreted_option_;
10622 } 10736 }
10623 10737
10624 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 10738 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
10625 10739
10626 // =================================================================== 10740 // ===================================================================
10627 10741
10628 #if !defined(_MSC_VER) || _MSC_VER >= 1900 10742 #if !defined(_MSC_VER) || _MSC_VER >= 1900
10629 const int EnumOptions::kAllowAliasFieldNumber; 10743 const int OneofOptions::kUninterpretedOptionFieldNumber;
10630 const int EnumOptions::kDeprecatedFieldNumber;
10631 const int EnumOptions::kUninterpretedOptionFieldNumber;
10632 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 10744 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
10633 10745
10634 EnumOptions::EnumOptions() 10746 OneofOptions::OneofOptions()
10635 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 10747 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
10748 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
10749 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
10750 }
10636 SharedCtor(); 10751 SharedCtor();
10637 // @@protoc_insertion_point(constructor:google.protobuf.EnumOptions) 10752 // @@protoc_insertion_point(constructor:google.protobuf.OneofOptions)
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)
10638 } 10763 }
10639 10764
10640 void EnumOptions::InitAsDefaultInstance() { 10765 void OneofOptions::SharedCtor() {
10766 _cached_size_ = 0;
10641 } 10767 }
10642 10768
10643 EnumOptions::EnumOptions(const EnumOptions& from) 10769 OneofOptions::~OneofOptions() {
10644 : ::google::protobuf::Message(), 10770 // @@protoc_insertion_point(destructor:google.protobuf.OneofOptions)
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)
10660 SharedDtor(); 10771 SharedDtor();
10661 } 10772 }
10662 10773
10663 void EnumOptions::SharedDtor() { 10774 void OneofOptions::SharedDtor() {
10664 if (this != default_instance_) {
10665 }
10666 } 10775 }
10667 10776
10668 void EnumOptions::SetCachedSize(int size) const { 10777 void OneofOptions::SetCachedSize(int size) const {
10669 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 10778 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10670 _cached_size_ = size; 10779 _cached_size_ = size;
10671 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 10780 GOOGLE_SAFE_CONCURRENT_WRITES_END();
10672 } 10781 }
10673 const ::google::protobuf::Descriptor* EnumOptions::descriptor() { 10782 const ::google::protobuf::Descriptor* OneofOptions::descriptor() {
10674 protobuf_AssignDescriptorsOnce(); 10783 protobuf_AssignDescriptorsOnce();
10675 return EnumOptions_descriptor_; 10784 return file_level_metadata[14].descriptor;
10676 } 10785 }
10677 10786
10678 const EnumOptions& EnumOptions::default_instance() { 10787 const OneofOptions& OneofOptions::default_instance() {
10679 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 10788 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
10680 return *default_instance_; 10789 return *internal_default_instance();
10681 } 10790 }
10682 10791
10683 EnumOptions* EnumOptions::default_instance_ = NULL; 10792 OneofOptions* OneofOptions::New(::google::protobuf::Arena* arena) const {
10684 10793 OneofOptions* n = new OneofOptions;
10685 EnumOptions* EnumOptions::New(::google::protobuf::Arena* arena) const {
10686 EnumOptions* n = new EnumOptions;
10687 if (arena != NULL) { 10794 if (arena != NULL) {
10688 arena->Own(n); 10795 arena->Own(n);
10689 } 10796 }
10690 return n; 10797 return n;
10691 } 10798 }
10692 10799
10693 void EnumOptions::Clear() { 10800 void OneofOptions::Clear() {
10694 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumOptions) 10801 // @@protoc_insertion_point(message_clear_start:google.protobuf.OneofOptions)
10695 _extensions_.Clear(); 10802 _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
10717 uninterpreted_option_.Clear(); 10803 uninterpreted_option_.Clear();
10718 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 10804 _has_bits_.Clear();
10719 if (_internal_metadata_.have_unknown_fields()) { 10805 _internal_metadata_.Clear();
10720 mutable_unknown_fields()->Clear();
10721 }
10722 } 10806 }
10723 10807
10724 bool EnumOptions::MergePartialFromCodedStream( 10808 bool OneofOptions::MergePartialFromCodedStream(
10725 ::google::protobuf::io::CodedInputStream* input) { 10809 ::google::protobuf::io::CodedInputStream* input) {
10726 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 10810 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
10727 ::google::protobuf::uint32 tag; 10811 ::google::protobuf::uint32 tag;
10728 // @@protoc_insertion_point(parse_start:google.protobuf.EnumOptions) 10812 // @@protoc_insertion_point(parse_start:google.protobuf.OneofOptions)
10729 for (;;) { 10813 for (;;) {
10730 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 16383); 10814 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(16383u);
10731 tag = p.first; 10815 tag = p.first;
10732 if (!p.second) goto handle_unusual; 10816 if (!p.second) goto handle_unusual;
10733 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 10817 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
10763 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99 9; 10818 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99 9;
10764 case 999: { 10819 case 999: {
10765 if (tag == 7994) { 10820 if (tag == 7994u) {
10766 parse_uninterpreted_option:
10767 DO_(input->IncrementRecursionDepth()); 10821 DO_(input->IncrementRecursionDepth());
10768 parse_loop_uninterpreted_option:
10769 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 10822 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
10770 input, add_uninterpreted_option())); 10823 input, add_uninterpreted_option()));
10771 } else { 10824 } else {
10772 goto handle_unusual; 10825 goto handle_unusual;
10773 } 10826 }
10774 if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option;
10775 input->UnsafeDecrementRecursionDepth(); 10827 input->UnsafeDecrementRecursionDepth();
10776 if (input->ExpectAtEnd()) goto success;
10777 break; 10828 break;
10778 } 10829 }
10779 10830
10780 default: { 10831 default: {
10781 handle_unusual: 10832 handle_unusual:
10782 if (tag == 0 || 10833 if (tag == 0 ||
10783 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 10834 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
10784 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 10835 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
10785 goto success; 10836 goto success;
10786 } 10837 }
10787 if ((8000u <= tag)) { 10838 if ((8000u <= tag)) {
10788 DO_(_extensions_.ParseField(tag, input, default_instance_, 10839 DO_(_extensions_.ParseField(tag, input, internal_default_instance(),
10789 mutable_unknown_fields())); 10840 mutable_unknown_fields()));
10790 continue; 10841 continue;
10791 } 10842 }
10792 DO_(::google::protobuf::internal::WireFormat::SkipField( 10843 DO_(::google::protobuf::internal::WireFormat::SkipField(
10793 input, tag, mutable_unknown_fields())); 10844 input, tag, mutable_unknown_fields()));
10794 break; 10845 break;
10795 } 10846 }
10796 } 10847 }
10797 } 10848 }
10798 success: 10849 success:
10799 // @@protoc_insertion_point(parse_success:google.protobuf.EnumOptions) 10850 // @@protoc_insertion_point(parse_success:google.protobuf.OneofOptions)
10800 return true; 10851 return true;
10801 failure: 10852 failure:
10802 // @@protoc_insertion_point(parse_failure:google.protobuf.EnumOptions) 10853 // @@protoc_insertion_point(parse_failure:google.protobuf.OneofOptions)
10803 return false; 10854 return false;
10804 #undef DO_ 10855 #undef DO_
10805 } 10856 }
10806 10857
10807 void EnumOptions::SerializeWithCachedSizes( 10858 void OneofOptions::SerializeWithCachedSizes(
10808 ::google::protobuf::io::CodedOutputStream* output) const { 10859 ::google::protobuf::io::CodedOutputStream* output) const {
10809 // @@protoc_insertion_point(serialize_start:google.protobuf.EnumOptions) 10860 // @@protoc_insertion_point(serialize_start:google.protobuf.OneofOptions)
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
10820 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 10861 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10821 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { 10862 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
10822 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 10863 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10823 999, this->uninterpreted_option(i), output); 10864 999, this->uninterpreted_option(i), output);
10824 } 10865 }
10825 10866
10826 // Extension range [1000, 536870912) 10867 // Extension range [1000, 536870912)
10827 _extensions_.SerializeWithCachedSizes( 10868 _extensions_.SerializeWithCachedSizes(
10828 1000, 536870912, output); 10869 1000, 536870912, output);
10829 10870
10830 if (_internal_metadata_.have_unknown_fields()) { 10871 if (_internal_metadata_.have_unknown_fields()) {
10831 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 10872 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
10832 unknown_fields(), output); 10873 unknown_fields(), output);
10833 } 10874 }
10834 // @@protoc_insertion_point(serialize_end:google.protobuf.EnumOptions) 10875 // @@protoc_insertion_point(serialize_end:google.protobuf.OneofOptions)
10835 } 10876 }
10836 10877
10837 ::google::protobuf::uint8* EnumOptions::SerializeWithCachedSizesToArray( 10878 ::google::protobuf::uint8* OneofOptions::InternalSerializeWithCachedSizesToArray (
10838 ::google::protobuf::uint8* target) const { 10879 bool deterministic, ::google::protobuf::uint8* target) const {
10839 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumOptio ns) 10880 (void)deterministic; // Unused
10840 // optional bool allow_alias = 2; 10881 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.OneofOpti ons)
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
10850 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 10882 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10851 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { 10883 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
10852 target = ::google::protobuf::internal::WireFormatLite:: 10884 target = ::google::protobuf::internal::WireFormatLite::
10853 WriteMessageNoVirtualToArray( 10885 InternalWriteMessageNoVirtualToArray(
10854 999, this->uninterpreted_option(i), target); 10886 999, this->uninterpreted_option(i), false, target);
10855 } 10887 }
10856 10888
10857 // Extension range [1000, 536870912) 10889 // Extension range [1000, 536870912)
10858 target = _extensions_.SerializeWithCachedSizesToArray( 10890 target = _extensions_.InternalSerializeWithCachedSizesToArray(
10859 1000, 536870912, target); 10891 1000, 536870912, false, target);
10860 10892
10861 if (_internal_metadata_.have_unknown_fields()) { 10893 if (_internal_metadata_.have_unknown_fields()) {
10862 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 10894 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
10863 unknown_fields(), target); 10895 unknown_fields(), target);
10864 } 10896 }
10865 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumOptions ) 10897 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.OneofOption s)
10866 return target; 10898 return target;
10867 } 10899 }
10868 10900
10869 int EnumOptions::ByteSize() const { 10901 size_t OneofOptions::ByteSizeLong() const {
10870 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumOptions) 10902 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.OneofOptions )
10871 int total_size = 0; 10903 size_t 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 }
10892 10904
10893 total_size += _extensions_.ByteSize(); 10905 total_size += _extensions_.ByteSize();
10894 10906
10895 if (_internal_metadata_.have_unknown_fields()) { 10907 if (_internal_metadata_.have_unknown_fields()) {
10896 total_size += 10908 total_size +=
10897 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( 10909 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
10898 unknown_fields()); 10910 unknown_fields());
10899 } 10911 }
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);
10900 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 10924 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10901 _cached_size_ = total_size; 10925 _cached_size_ = cached_size;
10902 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 10926 GOOGLE_SAFE_CONCURRENT_WRITES_END();
10903 return total_size; 10927 return total_size;
10904 } 10928 }
10905 10929
10906 void EnumOptions::MergeFrom(const ::google::protobuf::Message& from) { 10930 void OneofOptions::MergeFrom(const ::google::protobuf::Message& from) {
10907 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumOpt ions) 10931 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.OneofOp tions)
10908 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 10932 GOOGLE_DCHECK_NE(&from, this);
10909 const EnumOptions* source = 10933 const OneofOptions* source =
10910 ::google::protobuf::internal::DynamicCastToGenerated<const EnumOptions>( 10934 ::google::protobuf::internal::DynamicCastToGenerated<const OneofOptions>(
10911 &from); 10935 &from);
10912 if (source == NULL) { 10936 if (source == NULL) {
10913 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.E numOptions) 10937 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.O neofOptions)
10914 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 10938 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
10915 } else { 10939 } else {
10916 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.EnumOptions) 10940 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.OneofOptions)
10917 MergeFrom(*source); 10941 MergeFrom(*source);
10918 } 10942 }
10919 } 10943 }
10920 10944
10921 void EnumOptions::MergeFrom(const EnumOptions& from) { 10945 void OneofOptions::MergeFrom(const OneofOptions& from) {
10922 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Enum Options) 10946 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Oneo fOptions)
10923 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 10947 GOOGLE_DCHECK_NE(&from, this);
10948 _extensions_.MergeFrom(from._extensions_);
10949 _internal_metadata_.MergeFrom(from._internal_metadata_);
10924 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); 10950 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 }
10933 _extensions_.MergeFrom(from._extensions_);
10934 if (from._internal_metadata_.have_unknown_fields()) {
10935 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
10936 }
10937 } 10951 }
10938 10952
10939 void EnumOptions::CopyFrom(const ::google::protobuf::Message& from) { 10953 void OneofOptions::CopyFrom(const ::google::protobuf::Message& from) {
10940 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumOpti ons) 10954 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.OneofOpt ions)
10941 if (&from == this) return; 10955 if (&from == this) return;
10942 Clear(); 10956 Clear();
10943 MergeFrom(from); 10957 MergeFrom(from);
10944 } 10958 }
10945 10959
10946 void EnumOptions::CopyFrom(const EnumOptions& from) { 10960 void OneofOptions::CopyFrom(const OneofOptions& from) {
10947 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumO ptions) 10961 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Oneof Options)
10948 if (&from == this) return; 10962 if (&from == this) return;
10949 Clear(); 10963 Clear();
10950 MergeFrom(from); 10964 MergeFrom(from);
10951 } 10965 }
10952 10966
10953 bool EnumOptions::IsInitialized() const { 10967 bool OneofOptions::IsInitialized() const {
10968 if (!_extensions_.IsInitialized()) {
10969 return false;
10970 }
10954 10971
10955 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio n())) return false; 10972 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio n())) return false;
10956 10973 return true;
10957 if (!_extensions_.IsInitialized()) return false; return true;
10958 } 10974 }
10959 10975
10960 void EnumOptions::Swap(EnumOptions* other) { 10976 void OneofOptions::Swap(OneofOptions* other) {
10961 if (other == this) return; 10977 if (other == this) return;
10962 InternalSwap(other); 10978 InternalSwap(other);
10963 } 10979 }
10964 void EnumOptions::InternalSwap(EnumOptions* other) { 10980 void OneofOptions::InternalSwap(OneofOptions* other) {
10965 std::swap(allow_alias_, other->allow_alias_);
10966 std::swap(deprecated_, other->deprecated_);
10967 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); 10981 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
10968 std::swap(_has_bits_[0], other->_has_bits_[0]); 10982 std::swap(_has_bits_[0], other->_has_bits_[0]);
10969 _internal_metadata_.Swap(&other->_internal_metadata_); 10983 _internal_metadata_.Swap(&other->_internal_metadata_);
10970 std::swap(_cached_size_, other->_cached_size_); 10984 std::swap(_cached_size_, other->_cached_size_);
10971 _extensions_.Swap(&other->_extensions_); 10985 _extensions_.Swap(&other->_extensions_);
10972 } 10986 }
10973 10987
10974 ::google::protobuf::Metadata EnumOptions::GetMetadata() const { 10988 ::google::protobuf::Metadata OneofOptions::GetMetadata() const {
10975 protobuf_AssignDescriptorsOnce(); 10989 protobuf_AssignDescriptorsOnce();
10976 ::google::protobuf::Metadata metadata; 10990 return file_level_metadata[14];
10977 metadata.descriptor = EnumOptions_descriptor_;
10978 metadata.reflection = EnumOptions_reflection_;
10979 return metadata;
10980 } 10991 }
10981 10992
10982 #if PROTOBUF_INLINE_NOT_IN_HEADERS 10993 #if PROTOBUF_INLINE_NOT_IN_HEADERS
10983 // EnumOptions 10994 // OneofOptions
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 }
11032 10995
11033 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 10996 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11034 int EnumOptions::uninterpreted_option_size() const { 10997 int OneofOptions::uninterpreted_option_size() const {
11035 return uninterpreted_option_.size(); 10998 return uninterpreted_option_.size();
11036 } 10999 }
11037 void EnumOptions::clear_uninterpreted_option() { 11000 void OneofOptions::clear_uninterpreted_option() {
11038 uninterpreted_option_.Clear(); 11001 uninterpreted_option_.Clear();
11039 } 11002 }
11040 const ::google::protobuf::UninterpretedOption& EnumOptions::uninterpreted_option (int index) const { 11003 const ::google::protobuf::UninterpretedOption& OneofOptions::uninterpreted_optio n(int index) const {
11041 // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.uninterprete d_option) 11004 // @@protoc_insertion_point(field_get:google.protobuf.OneofOptions.uninterpret ed_option)
11042 return uninterpreted_option_.Get(index); 11005 return uninterpreted_option_.Get(index);
11043 } 11006 }
11044 ::google::protobuf::UninterpretedOption* EnumOptions::mutable_uninterpreted_opti on(int index) { 11007 ::google::protobuf::UninterpretedOption* OneofOptions::mutable_uninterpreted_opt ion(int index) {
11045 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumOptions.uninterp reted_option) 11008 // @@protoc_insertion_point(field_mutable:google.protobuf.OneofOptions.uninter preted_option)
11046 return uninterpreted_option_.Mutable(index); 11009 return uninterpreted_option_.Mutable(index);
11047 } 11010 }
11048 ::google::protobuf::UninterpretedOption* EnumOptions::add_uninterpreted_option() { 11011 ::google::protobuf::UninterpretedOption* OneofOptions::add_uninterpreted_option( ) {
11049 // @@protoc_insertion_point(field_add:google.protobuf.EnumOptions.uninterprete d_option) 11012 // @@protoc_insertion_point(field_add:google.protobuf.OneofOptions.uninterpret ed_option)
11050 return uninterpreted_option_.Add(); 11013 return uninterpreted_option_.Add();
11051 } 11014 }
11052 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* 11015 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
11053 EnumOptions::mutable_uninterpreted_option() { 11016 OneofOptions::mutable_uninterpreted_option() {
11054 // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumOptions.uni nterpreted_option) 11017 // @@protoc_insertion_point(field_mutable_list:google.protobuf.OneofOptions.un interpreted_option)
11055 return &uninterpreted_option_; 11018 return &uninterpreted_option_;
11056 } 11019 }
11057 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt ion >& 11020 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt ion >&
11058 EnumOptions::uninterpreted_option() const { 11021 OneofOptions::uninterpreted_option() const {
11059 // @@protoc_insertion_point(field_list:google.protobuf.EnumOptions.uninterpret ed_option) 11022 // @@protoc_insertion_point(field_list:google.protobuf.OneofOptions.uninterpre ted_option)
11060 return uninterpreted_option_; 11023 return uninterpreted_option_;
11061 } 11024 }
11062 11025
11063 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 11026 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
11064 11027
11065 // =================================================================== 11028 // ===================================================================
11066 11029
11067 #if !defined(_MSC_VER) || _MSC_VER >= 1900 11030 #if !defined(_MSC_VER) || _MSC_VER >= 1900
11068 const int EnumValueOptions::kDeprecatedFieldNumber; 11031 const int EnumOptions::kAllowAliasFieldNumber;
11069 const int EnumValueOptions::kUninterpretedOptionFieldNumber; 11032 const int EnumOptions::kDeprecatedFieldNumber;
11033 const int EnumOptions::kUninterpretedOptionFieldNumber;
11070 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 11034 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
11071 11035
11072 EnumValueOptions::EnumValueOptions() 11036 EnumOptions::EnumOptions()
11073 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 11037 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
11038 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
11039 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
11040 }
11074 SharedCtor(); 11041 SharedCtor();
11075 // @@protoc_insertion_point(constructor:google.protobuf.EnumValueOptions) 11042 // @@protoc_insertion_point(constructor:google.protobuf.EnumOptions)
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)
11076 } 11056 }
11077 11057
11078 void EnumValueOptions::InitAsDefaultInstance() { 11058 void EnumOptions::SharedCtor() {
11059 _cached_size_ = 0;
11060 ::memset(&allow_alias_, 0, reinterpret_cast<char*>(&deprecated_) -
11061 reinterpret_cast<char*>(&allow_alias_) + sizeof(deprecated_));
11079 } 11062 }
11080 11063
11081 EnumValueOptions::EnumValueOptions(const EnumValueOptions& from) 11064 EnumOptions::~EnumOptions() {
11082 : ::google::protobuf::Message(), 11065 // @@protoc_insertion_point(destructor:google.protobuf.EnumOptions)
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)
11097 SharedDtor(); 11066 SharedDtor();
11098 } 11067 }
11099 11068
11100 void EnumValueOptions::SharedDtor() { 11069 void EnumOptions::SharedDtor() {
11101 if (this != default_instance_) {
11102 }
11103 } 11070 }
11104 11071
11105 void EnumValueOptions::SetCachedSize(int size) const { 11072 void EnumOptions::SetCachedSize(int size) const {
11106 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 11073 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11107 _cached_size_ = size; 11074 _cached_size_ = size;
11108 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 11075 GOOGLE_SAFE_CONCURRENT_WRITES_END();
11109 } 11076 }
11110 const ::google::protobuf::Descriptor* EnumValueOptions::descriptor() { 11077 const ::google::protobuf::Descriptor* EnumOptions::descriptor() {
11111 protobuf_AssignDescriptorsOnce(); 11078 protobuf_AssignDescriptorsOnce();
11112 return EnumValueOptions_descriptor_; 11079 return file_level_metadata[15].descriptor;
11113 } 11080 }
11114 11081
11115 const EnumValueOptions& EnumValueOptions::default_instance() { 11082 const EnumOptions& EnumOptions::default_instance() {
11116 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 11083 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
11117 return *default_instance_; 11084 return *internal_default_instance();
11118 } 11085 }
11119 11086
11120 EnumValueOptions* EnumValueOptions::default_instance_ = NULL; 11087 EnumOptions* EnumOptions::New(::google::protobuf::Arena* arena) const {
11121 11088 EnumOptions* n = new EnumOptions;
11122 EnumValueOptions* EnumValueOptions::New(::google::protobuf::Arena* arena) const {
11123 EnumValueOptions* n = new EnumValueOptions;
11124 if (arena != NULL) { 11089 if (arena != NULL) {
11125 arena->Own(n); 11090 arena->Own(n);
11126 } 11091 }
11127 return n; 11092 return n;
11128 } 11093 }
11129 11094
11130 void EnumValueOptions::Clear() { 11095 void EnumOptions::Clear() {
11131 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumValueOptions ) 11096 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumOptions)
11132 _extensions_.Clear(); 11097 _extensions_.Clear();
11133 deprecated_ = false;
11134 uninterpreted_option_.Clear(); 11098 uninterpreted_option_.Clear();
11135 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 11099 if (_has_bits_[0 / 32] & 3u) {
11136 if (_internal_metadata_.have_unknown_fields()) { 11100 ::memset(&allow_alias_, 0, reinterpret_cast<char*>(&deprecated_) -
11137 mutable_unknown_fields()->Clear(); 11101 reinterpret_cast<char*>(&allow_alias_) + sizeof(deprecated_));
11138 } 11102 }
11103 _has_bits_.Clear();
11104 _internal_metadata_.Clear();
11139 } 11105 }
11140 11106
11141 bool EnumValueOptions::MergePartialFromCodedStream( 11107 bool EnumOptions::MergePartialFromCodedStream(
11142 ::google::protobuf::io::CodedInputStream* input) { 11108 ::google::protobuf::io::CodedInputStream* input) {
11143 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 11109 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
11144 ::google::protobuf::uint32 tag; 11110 ::google::protobuf::uint32 tag;
11145 // @@protoc_insertion_point(parse_start:google.protobuf.EnumValueOptions) 11111 // @@protoc_insertion_point(parse_start:google.protobuf.EnumOptions)
11146 for (;;) { 11112 for (;;) {
11147 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 16383); 11113 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(16383u);
11148 tag = p.first; 11114 tag = p.first;
11149 if (!p.second) goto handle_unusual; 11115 if (!p.second) goto handle_unusual;
11150 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 11116 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
11151 // optional bool deprecated = 1 [default = false]; 11117 // optional bool allow_alias = 2;
11152 case 1: { 11118 case 2: {
11153 if (tag == 8) { 11119 if (tag == 16u) {
11120 set_has_allow_alias();
11121 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
11122 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
11123 input, &allow_alias_)));
11124 } else {
11125 goto handle_unusual;
11126 }
11127 break;
11128 }
11129
11130 // optional bool deprecated = 3 [default = false];
11131 case 3: {
11132 if (tag == 24u) {
11133 set_has_deprecated();
11154 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 11134 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
11155 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 11135 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
11156 input, &deprecated_))); 11136 input, &deprecated_)));
11157 set_has_deprecated();
11158 } else { 11137 } else {
11159 goto handle_unusual; 11138 goto handle_unusual;
11160 } 11139 }
11161 if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
11162 break; 11140 break;
11163 } 11141 }
11164 11142
11165 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99 9; 11143 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99 9;
11166 case 999: { 11144 case 999: {
11167 if (tag == 7994) { 11145 if (tag == 7994u) {
11168 parse_uninterpreted_option:
11169 DO_(input->IncrementRecursionDepth()); 11146 DO_(input->IncrementRecursionDepth());
11170 parse_loop_uninterpreted_option:
11171 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 11147 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
11172 input, add_uninterpreted_option())); 11148 input, add_uninterpreted_option()));
11173 } else { 11149 } else {
11174 goto handle_unusual; 11150 goto handle_unusual;
11175 } 11151 }
11176 if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option;
11177 input->UnsafeDecrementRecursionDepth(); 11152 input->UnsafeDecrementRecursionDepth();
11178 if (input->ExpectAtEnd()) goto success;
11179 break; 11153 break;
11180 } 11154 }
11181 11155
11182 default: { 11156 default: {
11183 handle_unusual: 11157 handle_unusual:
11184 if (tag == 0 || 11158 if (tag == 0 ||
11185 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 11159 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
11186 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 11160 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
11187 goto success; 11161 goto success;
11188 } 11162 }
11189 if ((8000u <= tag)) { 11163 if ((8000u <= tag)) {
11190 DO_(_extensions_.ParseField(tag, input, default_instance_, 11164 DO_(_extensions_.ParseField(tag, input, internal_default_instance(),
11191 mutable_unknown_fields())); 11165 mutable_unknown_fields()));
11192 continue; 11166 continue;
11193 } 11167 }
11194 DO_(::google::protobuf::internal::WireFormat::SkipField( 11168 DO_(::google::protobuf::internal::WireFormat::SkipField(
11195 input, tag, mutable_unknown_fields())); 11169 input, tag, mutable_unknown_fields()));
11196 break; 11170 break;
11197 } 11171 }
11198 } 11172 }
11199 } 11173 }
11200 success: 11174 success:
11201 // @@protoc_insertion_point(parse_success:google.protobuf.EnumValueOptions) 11175 // @@protoc_insertion_point(parse_success:google.protobuf.EnumOptions)
11202 return true; 11176 return true;
11203 failure: 11177 failure:
11204 // @@protoc_insertion_point(parse_failure:google.protobuf.EnumValueOptions) 11178 // @@protoc_insertion_point(parse_failure:google.protobuf.EnumOptions)
11205 return false; 11179 return false;
11206 #undef DO_ 11180 #undef DO_
11207 } 11181 }
11208 11182
11209 void EnumValueOptions::SerializeWithCachedSizes( 11183 void EnumOptions::SerializeWithCachedSizes(
11210 ::google::protobuf::io::CodedOutputStream* output) const { 11184 ::google::protobuf::io::CodedOutputStream* output) const {
11211 // @@protoc_insertion_point(serialize_start:google.protobuf.EnumValueOptions) 11185 // @@protoc_insertion_point(serialize_start:google.protobuf.EnumOptions)
11212 // optional bool deprecated = 1 [default = false]; 11186 // optional bool allow_alias = 2;
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];
11213 if (has_deprecated()) { 11192 if (has_deprecated()) {
11214 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->deprecated( ), output); 11193 ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->deprecated( ), output);
11215 } 11194 }
11216 11195
11217 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 11196 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11218 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { 11197 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
11219 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 11198 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
11220 999, this->uninterpreted_option(i), output); 11199 999, this->uninterpreted_option(i), output);
11221 } 11200 }
11222 11201
11223 // Extension range [1000, 536870912) 11202 // Extension range [1000, 536870912)
11224 _extensions_.SerializeWithCachedSizes( 11203 _extensions_.SerializeWithCachedSizes(
11225 1000, 536870912, output); 11204 1000, 536870912, output);
11226 11205
11227 if (_internal_metadata_.have_unknown_fields()) { 11206 if (_internal_metadata_.have_unknown_fields()) {
11228 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 11207 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
11229 unknown_fields(), output); 11208 unknown_fields(), output);
11230 } 11209 }
11231 // @@protoc_insertion_point(serialize_end:google.protobuf.EnumValueOptions) 11210 // @@protoc_insertion_point(serialize_end:google.protobuf.EnumOptions)
11232 } 11211 }
11233 11212
11234 ::google::protobuf::uint8* EnumValueOptions::SerializeWithCachedSizesToArray( 11213 ::google::protobuf::uint8* EnumOptions::InternalSerializeWithCachedSizesToArray(
11235 ::google::protobuf::uint8* target) const { 11214 bool deterministic, ::google::protobuf::uint8* target) const {
11236 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValue Options) 11215 (void)deterministic; // Unused
11237 // optional bool deprecated = 1 [default = false]; 11216 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumOptio ns)
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];
11238 if (has_deprecated()) { 11223 if (has_deprecated()) {
11239 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, t his->deprecated(), target); 11224 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, t his->deprecated(), target);
11240 } 11225 }
11241 11226
11242 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 11227 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11243 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { 11228 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
11244 target = ::google::protobuf::internal::WireFormatLite:: 11229 target = ::google::protobuf::internal::WireFormatLite::
11245 WriteMessageNoVirtualToArray( 11230 InternalWriteMessageNoVirtualToArray(
11246 999, this->uninterpreted_option(i), target); 11231 999, this->uninterpreted_option(i), false, target);
11247 } 11232 }
11248 11233
11249 // Extension range [1000, 536870912) 11234 // Extension range [1000, 536870912)
11250 target = _extensions_.SerializeWithCachedSizesToArray( 11235 target = _extensions_.InternalSerializeWithCachedSizesToArray(
11251 1000, 536870912, target); 11236 1000, 536870912, false, target);
11252 11237
11253 if (_internal_metadata_.have_unknown_fields()) { 11238 if (_internal_metadata_.have_unknown_fields()) {
11254 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 11239 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
11255 unknown_fields(), target); 11240 unknown_fields(), target);
11256 } 11241 }
11257 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumValueOp tions) 11242 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumOptions )
11258 return target; 11243 return target;
11259 } 11244 }
11260 11245
11261 int EnumValueOptions::ByteSize() const { 11246 size_t EnumOptions::ByteSizeLong() const {
11262 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumValueOpt ions) 11247 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumOptions)
11263 int total_size = 0; 11248 size_t 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 }
11277 11249
11278 total_size += _extensions_.ByteSize(); 11250 total_size += _extensions_.ByteSize();
11279 11251
11280 if (_internal_metadata_.have_unknown_fields()) { 11252 if (_internal_metadata_.have_unknown_fields()) {
11281 total_size += 11253 total_size +=
11282 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( 11254 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
11283 unknown_fields()); 11255 unknown_fields());
11284 } 11256 }
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);
11285 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 11281 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11286 _cached_size_ = total_size; 11282 _cached_size_ = cached_size;
11287 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 11283 GOOGLE_SAFE_CONCURRENT_WRITES_END();
11288 return total_size; 11284 return total_size;
11289 } 11285 }
11290 11286
11291 void EnumValueOptions::MergeFrom(const ::google::protobuf::Message& from) { 11287 void EnumOptions::MergeFrom(const ::google::protobuf::Message& from) {
11292 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumVal ueOptions) 11288 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumOpt ions)
11293 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 11289 GOOGLE_DCHECK_NE(&from, this);
11294 const EnumValueOptions* source = 11290 const EnumOptions* source =
11295 ::google::protobuf::internal::DynamicCastToGenerated<const EnumValueOption s>( 11291 ::google::protobuf::internal::DynamicCastToGenerated<const EnumOptions>(
11296 &from); 11292 &from);
11297 if (source == NULL) { 11293 if (source == NULL) {
11298 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.E numValueOptions) 11294 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.E numOptions)
11299 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 11295 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
11300 } else { 11296 } else {
11301 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.EnumValueOptions) 11297 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.EnumOptions)
11302 MergeFrom(*source); 11298 MergeFrom(*source);
11303 } 11299 }
11304 } 11300 }
11305 11301
11306 void EnumValueOptions::MergeFrom(const EnumValueOptions& from) { 11302 void EnumOptions::MergeFrom(const EnumOptions& from) {
11307 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Enum ValueOptions) 11303 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Enum Options)
11308 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 11304 GOOGLE_DCHECK_NE(&from, this);
11305 _extensions_.MergeFrom(from._extensions_);
11306 _internal_metadata_.MergeFrom(from._internal_metadata_);
11309 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); 11307 uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
11310 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { 11308 if (from._has_bits_[0 / 32] & 3u) {
11309 if (from.has_allow_alias()) {
11310 set_allow_alias(from.allow_alias());
11311 }
11311 if (from.has_deprecated()) { 11312 if (from.has_deprecated()) {
11312 set_deprecated(from.deprecated()); 11313 set_deprecated(from.deprecated());
11313 } 11314 }
11314 } 11315 }
11315 _extensions_.MergeFrom(from._extensions_);
11316 if (from._internal_metadata_.have_unknown_fields()) {
11317 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
11318 }
11319 } 11316 }
11320 11317
11321 void EnumValueOptions::CopyFrom(const ::google::protobuf::Message& from) { 11318 void EnumOptions::CopyFrom(const ::google::protobuf::Message& from) {
11322 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumValu eOptions) 11319 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumOpti ons)
11323 if (&from == this) return; 11320 if (&from == this) return;
11324 Clear(); 11321 Clear();
11325 MergeFrom(from); 11322 MergeFrom(from);
11326 } 11323 }
11327 11324
11328 void EnumValueOptions::CopyFrom(const EnumValueOptions& from) { 11325 void EnumOptions::CopyFrom(const EnumOptions& from) {
11329 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumV alueOptions) 11326 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumO ptions)
11330 if (&from == this) return; 11327 if (&from == this) return;
11331 Clear(); 11328 Clear();
11332 MergeFrom(from); 11329 MergeFrom(from);
11333 } 11330 }
11334 11331
11335 bool EnumValueOptions::IsInitialized() const { 11332 bool EnumOptions::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 11338 return true;
11339 if (!_extensions_.IsInitialized()) return false; return true;
11340 } 11339 }
11341 11340
11342 void EnumValueOptions::Swap(EnumValueOptions* other) { 11341 void EnumOptions::Swap(EnumOptions* other) {
11343 if (other == this) return; 11342 if (other == this) return;
11344 InternalSwap(other); 11343 InternalSwap(other);
11345 } 11344 }
11346 void EnumValueOptions::InternalSwap(EnumValueOptions* other) { 11345 void EnumOptions::InternalSwap(EnumOptions* other) {
11346 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
11347 std::swap(allow_alias_, other->allow_alias_);
11347 std::swap(deprecated_, other->deprecated_); 11348 std::swap(deprecated_, other->deprecated_);
11348 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
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 EnumValueOptions::GetMetadata() const { 11355 ::google::protobuf::Metadata EnumOptions::GetMetadata() const {
11356 protobuf_AssignDescriptorsOnce(); 11356 protobuf_AssignDescriptorsOnce();
11357 ::google::protobuf::Metadata metadata; 11357 return file_level_metadata[15];
11358 metadata.descriptor = EnumValueOptions_descriptor_;
11359 metadata.reflection = EnumValueOptions_reflection_;
11360 return metadata;
11361 } 11358 }
11362 11359
11363 #if PROTOBUF_INLINE_NOT_IN_HEADERS 11360 #if PROTOBUF_INLINE_NOT_IN_HEADERS
11364 // EnumValueOptions 11361 // EnumOptions
11365 11362
11366 // optional bool deprecated = 1 [default = false]; 11363 // optional bool allow_alias = 2;
11367 bool EnumValueOptions::has_deprecated() const { 11364 bool EnumOptions::has_allow_alias() const {
11368 return (_has_bits_[0] & 0x00000001u) != 0; 11365 return (_has_bits_[0] & 0x00000001u) != 0;
11369 } 11366 }
11370 void EnumValueOptions::set_has_deprecated() { 11367 void EnumOptions::set_has_allow_alias() {
11371 _has_bits_[0] |= 0x00000001u; 11368 _has_bits_[0] |= 0x00000001u;
11372 } 11369 }
11373 void EnumValueOptions::clear_has_deprecated() { 11370 void EnumOptions::clear_has_allow_alias() {
11374 _has_bits_[0] &= ~0x00000001u; 11371 _has_bits_[0] &= ~0x00000001u;
11375 } 11372 }
11376 void EnumValueOptions::clear_deprecated() { 11373 void EnumOptions::clear_allow_alias() {
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() {
11377 deprecated_ = false; 11398 deprecated_ = false;
11378 clear_has_deprecated(); 11399 clear_has_deprecated();
11379 } 11400 }
11380 bool EnumValueOptions::deprecated() const { 11401 bool EnumOptions::deprecated() const {
11381 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.depreca ted) 11402 // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.deprecated)
11382 return deprecated_; 11403 return deprecated_;
11383 } 11404 }
11384 void EnumValueOptions::set_deprecated(bool value) { 11405 void EnumOptions::set_deprecated(bool value) {
11385 set_has_deprecated(); 11406 set_has_deprecated();
11386 deprecated_ = value; 11407 deprecated_ = value;
11387 // @@protoc_insertion_point(field_set:google.protobuf.EnumValueOptions.depreca ted) 11408 // @@protoc_insertion_point(field_set:google.protobuf.EnumOptions.deprecated)
11388 } 11409 }
11389 11410
11390 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 11411 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11391 int EnumValueOptions::uninterpreted_option_size() const { 11412 int EnumOptions::uninterpreted_option_size() const {
11392 return uninterpreted_option_.size(); 11413 return uninterpreted_option_.size();
11393 } 11414 }
11394 void EnumValueOptions::clear_uninterpreted_option() { 11415 void EnumOptions::clear_uninterpreted_option() {
11395 uninterpreted_option_.Clear(); 11416 uninterpreted_option_.Clear();
11396 } 11417 }
11397 const ::google::protobuf::UninterpretedOption& EnumValueOptions::uninterpreted_o ption(int index) const { 11418 const ::google::protobuf::UninterpretedOption& EnumOptions::uninterpreted_option (int index) const {
11398 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.uninter preted_option) 11419 // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.uninterprete d_option)
11399 return uninterpreted_option_.Get(index); 11420 return uninterpreted_option_.Get(index);
11400 } 11421 }
11401 ::google::protobuf::UninterpretedOption* EnumValueOptions::mutable_uninterpreted _option(int index) { 11422 ::google::protobuf::UninterpretedOption* EnumOptions::mutable_uninterpreted_opti on(int index) {
11402 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueOptions.uni nterpreted_option) 11423 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumOptions.uninterp reted_option)
11403 return uninterpreted_option_.Mutable(index); 11424 return uninterpreted_option_.Mutable(index);
11404 } 11425 }
11405 ::google::protobuf::UninterpretedOption* EnumValueOptions::add_uninterpreted_opt ion() { 11426 ::google::protobuf::UninterpretedOption* EnumOptions::add_uninterpreted_option() {
11406 // @@protoc_insertion_point(field_add:google.protobuf.EnumValueOptions.uninter preted_option) 11427 // @@protoc_insertion_point(field_add:google.protobuf.EnumOptions.uninterprete d_option)
11407 return uninterpreted_option_.Add(); 11428 return uninterpreted_option_.Add();
11408 } 11429 }
11409 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* 11430 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
11410 EnumValueOptions::mutable_uninterpreted_option() { 11431 EnumOptions::mutable_uninterpreted_option() {
11411 // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumValueOption s.uninterpreted_option) 11432 // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumOptions.uni nterpreted_option)
11412 return &uninterpreted_option_; 11433 return &uninterpreted_option_;
11413 } 11434 }
11414 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt ion >& 11435 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt ion >&
11415 EnumValueOptions::uninterpreted_option() const { 11436 EnumOptions::uninterpreted_option() const {
11416 // @@protoc_insertion_point(field_list:google.protobuf.EnumValueOptions.uninte rpreted_option) 11437 // @@protoc_insertion_point(field_list:google.protobuf.EnumOptions.uninterpret ed_option)
11417 return uninterpreted_option_; 11438 return uninterpreted_option_;
11418 } 11439 }
11419 11440
11420 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 11441 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
11421 11442
11422 // =================================================================== 11443 // ===================================================================
11423 11444
11424 #if !defined(_MSC_VER) || _MSC_VER >= 1900 11445 #if !defined(_MSC_VER) || _MSC_VER >= 1900
11425 const int ServiceOptions::kDeprecatedFieldNumber; 11446 const int EnumValueOptions::kDeprecatedFieldNumber;
11426 const int ServiceOptions::kUninterpretedOptionFieldNumber; 11447 const int EnumValueOptions::kUninterpretedOptionFieldNumber;
11427 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 11448 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
11428 11449
11429 ServiceOptions::ServiceOptions() 11450 EnumValueOptions::EnumValueOptions()
11430 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 11451 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
11452 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
11453 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
11454 }
11431 SharedCtor(); 11455 SharedCtor();
11432 // @@protoc_insertion_point(constructor:google.protobuf.ServiceOptions) 11456 // @@protoc_insertion_point(constructor:google.protobuf.EnumValueOptions)
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)
11433 } 11468 }
11434 11469
11435 void ServiceOptions::InitAsDefaultInstance() { 11470 void EnumValueOptions::SharedCtor() {
11471 _cached_size_ = 0;
11472 deprecated_ = false;
11436 } 11473 }
11437 11474
11438 ServiceOptions::ServiceOptions(const ServiceOptions& from) 11475 EnumValueOptions::~EnumValueOptions() {
11439 : ::google::protobuf::Message(), 11476 // @@protoc_insertion_point(destructor:google.protobuf.EnumValueOptions)
11440 _internal_metadata_(NULL) {
11441 SharedCtor();
11442 MergeFrom(from);
11443 // @@protoc_insertion_point(copy_constructor:google.protobuf.ServiceOptions)
11444 }
11445
11446 void ServiceOptions::SharedCtor() {
11447 _cached_size_ = 0;
11448 deprecated_ = false;
11449 ::memset(_has_bits_, 0, sizeof(_has_bits_));
11450 }
11451
11452 ServiceOptions::~ServiceOptions() {
11453 // @@protoc_insertion_point(destructor:google.protobuf.ServiceOptions)
11454 SharedDtor(); 11477 SharedDtor();
11455 } 11478 }
11456 11479
11457 void ServiceOptions::SharedDtor() { 11480 void EnumValueOptions::SharedDtor() {
11458 if (this != default_instance_) {
11459 }
11460 } 11481 }
11461 11482
11462 void ServiceOptions::SetCachedSize(int size) const { 11483 void EnumValueOptions::SetCachedSize(int size) const {
11463 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 11484 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11464 _cached_size_ = size; 11485 _cached_size_ = size;
11465 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 11486 GOOGLE_SAFE_CONCURRENT_WRITES_END();
11466 } 11487 }
11467 const ::google::protobuf::Descriptor* ServiceOptions::descriptor() { 11488 const ::google::protobuf::Descriptor* EnumValueOptions::descriptor() {
11468 protobuf_AssignDescriptorsOnce(); 11489 protobuf_AssignDescriptorsOnce();
11469 return ServiceOptions_descriptor_; 11490 return file_level_metadata[16].descriptor;
11470 } 11491 }
11471 11492
11472 const ServiceOptions& ServiceOptions::default_instance() { 11493 const EnumValueOptions& EnumValueOptions::default_instance() {
11473 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 11494 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
11474 return *default_instance_; 11495 return *internal_default_instance();
11475 } 11496 }
11476 11497
11477 ServiceOptions* ServiceOptions::default_instance_ = NULL; 11498 EnumValueOptions* EnumValueOptions::New(::google::protobuf::Arena* arena) const {
11478 11499 EnumValueOptions* n = new EnumValueOptions;
11479 ServiceOptions* ServiceOptions::New(::google::protobuf::Arena* arena) const {
11480 ServiceOptions* n = new ServiceOptions;
11481 if (arena != NULL) { 11500 if (arena != NULL) {
11482 arena->Own(n); 11501 arena->Own(n);
11483 } 11502 }
11484 return n; 11503 return n;
11485 } 11504 }
11486 11505
11487 void ServiceOptions::Clear() { 11506 void EnumValueOptions::Clear() {
11488 // @@protoc_insertion_point(message_clear_start:google.protobuf.ServiceOptions) 11507 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumValueOptions )
11489 _extensions_.Clear(); 11508 _extensions_.Clear();
11509 uninterpreted_option_.Clear();
11490 deprecated_ = false; 11510 deprecated_ = false;
11491 uninterpreted_option_.Clear(); 11511 _has_bits_.Clear();
11492 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 11512 _internal_metadata_.Clear();
11493 if (_internal_metadata_.have_unknown_fields()) {
11494 mutable_unknown_fields()->Clear();
11495 }
11496 } 11513 }
11497 11514
11498 bool ServiceOptions::MergePartialFromCodedStream( 11515 bool EnumValueOptions::MergePartialFromCodedStream(
11499 ::google::protobuf::io::CodedInputStream* input) { 11516 ::google::protobuf::io::CodedInputStream* input) {
11500 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 11517 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
11501 ::google::protobuf::uint32 tag; 11518 ::google::protobuf::uint32 tag;
11502 // @@protoc_insertion_point(parse_start:google.protobuf.ServiceOptions) 11519 // @@protoc_insertion_point(parse_start:google.protobuf.EnumValueOptions)
11503 for (;;) { 11520 for (;;) {
11504 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 16383); 11521 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(16383u);
11505 tag = p.first; 11522 tag = p.first;
11506 if (!p.second) goto handle_unusual; 11523 if (!p.second) goto handle_unusual;
11507 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 11524 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
11508 // optional bool deprecated = 33 [default = false]; 11525 // optional bool deprecated = 1 [default = false];
11509 case 33: { 11526 case 1: {
11510 if (tag == 264) { 11527 if (tag == 8u) {
11528 set_has_deprecated();
11511 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 11529 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
11512 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 11530 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
11513 input, &deprecated_))); 11531 input, &deprecated_)));
11514 set_has_deprecated();
11515 } else { 11532 } else {
11516 goto handle_unusual; 11533 goto handle_unusual;
11517 } 11534 }
11518 if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
11519 break; 11535 break;
11520 } 11536 }
11521 11537
11522 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99 9; 11538 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99 9;
11523 case 999: { 11539 case 999: {
11524 if (tag == 7994) { 11540 if (tag == 7994u) {
11525 parse_uninterpreted_option:
11526 DO_(input->IncrementRecursionDepth()); 11541 DO_(input->IncrementRecursionDepth());
11527 parse_loop_uninterpreted_option:
11528 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 11542 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
11529 input, add_uninterpreted_option())); 11543 input, add_uninterpreted_option()));
11530 } else { 11544 } else {
11531 goto handle_unusual; 11545 goto handle_unusual;
11532 } 11546 }
11533 if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option;
11534 input->UnsafeDecrementRecursionDepth(); 11547 input->UnsafeDecrementRecursionDepth();
11535 if (input->ExpectAtEnd()) goto success;
11536 break; 11548 break;
11537 } 11549 }
11538 11550
11539 default: { 11551 default: {
11540 handle_unusual: 11552 handle_unusual:
11541 if (tag == 0 || 11553 if (tag == 0 ||
11542 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 11554 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
11543 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 11555 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
11544 goto success; 11556 goto success;
11545 } 11557 }
11546 if ((8000u <= tag)) { 11558 if ((8000u <= tag)) {
11547 DO_(_extensions_.ParseField(tag, input, default_instance_, 11559 DO_(_extensions_.ParseField(tag, input, internal_default_instance(),
11548 mutable_unknown_fields())); 11560 mutable_unknown_fields()));
11549 continue; 11561 continue;
11550 } 11562 }
11551 DO_(::google::protobuf::internal::WireFormat::SkipField( 11563 DO_(::google::protobuf::internal::WireFormat::SkipField(
11552 input, tag, mutable_unknown_fields())); 11564 input, tag, mutable_unknown_fields()));
11553 break; 11565 break;
11554 } 11566 }
11555 } 11567 }
11556 } 11568 }
11557 success: 11569 success:
11558 // @@protoc_insertion_point(parse_success:google.protobuf.ServiceOptions) 11570 // @@protoc_insertion_point(parse_success:google.protobuf.EnumValueOptions)
11559 return true; 11571 return true;
11560 failure: 11572 failure:
11561 // @@protoc_insertion_point(parse_failure:google.protobuf.ServiceOptions) 11573 // @@protoc_insertion_point(parse_failure:google.protobuf.EnumValueOptions)
11562 return false; 11574 return false;
11563 #undef DO_ 11575 #undef DO_
11564 } 11576 }
11565 11577
11566 void ServiceOptions::SerializeWithCachedSizes( 11578 void EnumValueOptions::SerializeWithCachedSizes(
11567 ::google::protobuf::io::CodedOutputStream* output) const { 11579 ::google::protobuf::io::CodedOutputStream* output) const {
11568 // @@protoc_insertion_point(serialize_start:google.protobuf.ServiceOptions) 11580 // @@protoc_insertion_point(serialize_start:google.protobuf.EnumValueOptions)
11569 // optional bool deprecated = 33 [default = false]; 11581 // optional bool deprecated = 1 [default = false];
11570 if (has_deprecated()) { 11582 if (has_deprecated()) {
11571 ::google::protobuf::internal::WireFormatLite::WriteBool(33, this->deprecated (), output); 11583 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->deprecated( ), output);
11572 } 11584 }
11573 11585
11574 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 11586 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11575 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { 11587 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
11576 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 11588 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
11577 999, this->uninterpreted_option(i), output); 11589 999, this->uninterpreted_option(i), output);
11578 } 11590 }
11579 11591
11580 // Extension range [1000, 536870912) 11592 // Extension range [1000, 536870912)
11581 _extensions_.SerializeWithCachedSizes( 11593 _extensions_.SerializeWithCachedSizes(
11582 1000, 536870912, output); 11594 1000, 536870912, output);
11583 11595
11584 if (_internal_metadata_.have_unknown_fields()) { 11596 if (_internal_metadata_.have_unknown_fields()) {
11585 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 11597 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
11586 unknown_fields(), output); 11598 unknown_fields(), output);
11587 } 11599 }
11588 // @@protoc_insertion_point(serialize_end:google.protobuf.ServiceOptions) 11600 // @@protoc_insertion_point(serialize_end:google.protobuf.EnumValueOptions)
11589 } 11601 }
11590 11602
11591 ::google::protobuf::uint8* ServiceOptions::SerializeWithCachedSizesToArray( 11603 ::google::protobuf::uint8* EnumValueOptions::InternalSerializeWithCachedSizesToA rray(
11592 ::google::protobuf::uint8* target) const { 11604 bool deterministic, ::google::protobuf::uint8* target) const {
11593 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ServiceOp tions) 11605 (void)deterministic; // Unused
11594 // optional bool deprecated = 33 [default = false]; 11606 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValue Options)
11607 // optional bool deprecated = 1 [default = false];
11595 if (has_deprecated()) { 11608 if (has_deprecated()) {
11596 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(33, this->deprecated(), target); 11609 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, t his->deprecated(), target);
11597 } 11610 }
11598 11611
11599 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 11612 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11600 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { 11613 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
11601 target = ::google::protobuf::internal::WireFormatLite:: 11614 target = ::google::protobuf::internal::WireFormatLite::
11602 WriteMessageNoVirtualToArray( 11615 InternalWriteMessageNoVirtualToArray(
11603 999, this->uninterpreted_option(i), target); 11616 999, this->uninterpreted_option(i), false, target);
11604 } 11617 }
11605 11618
11606 // Extension range [1000, 536870912) 11619 // Extension range [1000, 536870912)
11607 target = _extensions_.SerializeWithCachedSizesToArray( 11620 target = _extensions_.InternalSerializeWithCachedSizesToArray(
11608 1000, 536870912, target); 11621 1000, 536870912, false, target);
11609 11622
11610 if (_internal_metadata_.have_unknown_fields()) { 11623 if (_internal_metadata_.have_unknown_fields()) {
11611 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 11624 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
11612 unknown_fields(), target); 11625 unknown_fields(), target);
11613 } 11626 }
11614 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ServiceOpti ons) 11627 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumValueOp tions)
11615 return target; 11628 return target;
11616 } 11629 }
11617 11630
11618 int ServiceOptions::ByteSize() const { 11631 size_t EnumValueOptions::ByteSizeLong() const {
11619 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.ServiceOptio ns) 11632 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumValueOpt ions)
11620 int total_size = 0; 11633 size_t 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);
11642 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 11659 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11643 _cached_size_ = total_size; 11660 _cached_size_ = cached_size;
11644 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 11661 GOOGLE_SAFE_CONCURRENT_WRITES_END();
11645 return total_size; 11662 return total_size;
11646 } 11663 }
11647 11664
11648 void ServiceOptions::MergeFrom(const ::google::protobuf::Message& from) { 11665 void EnumValueOptions::MergeFrom(const ::google::protobuf::Message& from) {
11649 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Service Options) 11666 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumVal ueOptions)
11650 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 11667 GOOGLE_DCHECK_NE(&from, this);
11651 const ServiceOptions* source = 11668 const EnumValueOptions* source =
11652 ::google::protobuf::internal::DynamicCastToGenerated<const ServiceOptions> ( 11669 ::google::protobuf::internal::DynamicCastToGenerated<const EnumValueOption s>(
11653 &from); 11670 &from);
11654 if (source == NULL) { 11671 if (source == NULL) {
11655 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.S erviceOptions) 11672 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.E numValueOptions)
11656 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 11673 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
11657 } else { 11674 } else {
11658 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.ServiceOptions) 11675 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.EnumValueOptions)
11659 MergeFrom(*source); 11676 MergeFrom(*source);
11660 } 11677 }
11661 } 11678 }
11662 11679
11663 void ServiceOptions::MergeFrom(const ServiceOptions& from) { 11680 void EnumValueOptions::MergeFrom(const EnumValueOptions& from) {
11664 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Serv iceOptions) 11681 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Enum ValueOptions)
11665 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 11682 GOOGLE_DCHECK_NE(&from, this);
11683 _extensions_.MergeFrom(from._extensions_);
11684 _internal_metadata_.MergeFrom(from._internal_metadata_);
11666 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); 11685 uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
11667 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { 11686 if (from.has_deprecated()) {
11668 if (from.has_deprecated()) { 11687 set_deprecated(from.deprecated());
11669 set_deprecated(from.deprecated());
11670 }
11671 }
11672 _extensions_.MergeFrom(from._extensions_);
11673 if (from._internal_metadata_.have_unknown_fields()) {
11674 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
11675 } 11688 }
11676 } 11689 }
11677 11690
11678 void ServiceOptions::CopyFrom(const ::google::protobuf::Message& from) { 11691 void EnumValueOptions::CopyFrom(const ::google::protobuf::Message& from) {
11679 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.ServiceO ptions) 11692 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumValu eOptions)
11680 if (&from == this) return; 11693 if (&from == this) return;
11681 Clear(); 11694 Clear();
11682 MergeFrom(from); 11695 MergeFrom(from);
11683 } 11696 }
11684 11697
11685 void ServiceOptions::CopyFrom(const ServiceOptions& from) { 11698 void EnumValueOptions::CopyFrom(const EnumValueOptions& from) {
11686 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Servi ceOptions) 11699 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumV alueOptions)
11687 if (&from == this) return; 11700 if (&from == this) return;
11688 Clear(); 11701 Clear();
11689 MergeFrom(from); 11702 MergeFrom(from);
11690 } 11703 }
11691 11704
11692 bool ServiceOptions::IsInitialized() const { 11705 bool EnumValueOptions::IsInitialized() const {
11706 if (!_extensions_.IsInitialized()) {
11707 return false;
11708 }
11693 11709
11694 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio n())) return false; 11710 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio n())) return false;
11695 11711 return true;
11696 if (!_extensions_.IsInitialized()) return false; return true;
11697 } 11712 }
11698 11713
11699 void ServiceOptions::Swap(ServiceOptions* other) { 11714 void EnumValueOptions::Swap(EnumValueOptions* other) {
11700 if (other == this) return; 11715 if (other == this) return;
11701 InternalSwap(other); 11716 InternalSwap(other);
11702 } 11717 }
11703 void ServiceOptions::InternalSwap(ServiceOptions* other) { 11718 void EnumValueOptions::InternalSwap(EnumValueOptions* other) {
11719 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
11704 std::swap(deprecated_, other->deprecated_); 11720 std::swap(deprecated_, other->deprecated_);
11705 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
11706 std::swap(_has_bits_[0], other->_has_bits_[0]); 11721 std::swap(_has_bits_[0], other->_has_bits_[0]);
11707 _internal_metadata_.Swap(&other->_internal_metadata_); 11722 _internal_metadata_.Swap(&other->_internal_metadata_);
11708 std::swap(_cached_size_, other->_cached_size_); 11723 std::swap(_cached_size_, other->_cached_size_);
11709 _extensions_.Swap(&other->_extensions_); 11724 _extensions_.Swap(&other->_extensions_);
11710 } 11725 }
11711 11726
11712 ::google::protobuf::Metadata ServiceOptions::GetMetadata() const { 11727 ::google::protobuf::Metadata EnumValueOptions::GetMetadata() const {
11713 protobuf_AssignDescriptorsOnce(); 11728 protobuf_AssignDescriptorsOnce();
11714 ::google::protobuf::Metadata metadata; 11729 return file_level_metadata[16];
11715 metadata.descriptor = ServiceOptions_descriptor_;
11716 metadata.reflection = ServiceOptions_reflection_;
11717 return metadata;
11718 } 11730 }
11719 11731
11720 #if PROTOBUF_INLINE_NOT_IN_HEADERS 11732 #if PROTOBUF_INLINE_NOT_IN_HEADERS
11721 // ServiceOptions 11733 // EnumValueOptions
11722 11734
11723 // optional bool deprecated = 33 [default = false]; 11735 // optional bool deprecated = 1 [default = false];
11724 bool ServiceOptions::has_deprecated() const { 11736 bool EnumValueOptions::has_deprecated() const {
11725 return (_has_bits_[0] & 0x00000001u) != 0; 11737 return (_has_bits_[0] & 0x00000001u) != 0;
11726 } 11738 }
11727 void ServiceOptions::set_has_deprecated() { 11739 void EnumValueOptions::set_has_deprecated() {
11728 _has_bits_[0] |= 0x00000001u; 11740 _has_bits_[0] |= 0x00000001u;
11729 } 11741 }
11730 void ServiceOptions::clear_has_deprecated() { 11742 void EnumValueOptions::clear_has_deprecated() {
11731 _has_bits_[0] &= ~0x00000001u; 11743 _has_bits_[0] &= ~0x00000001u;
11732 } 11744 }
11733 void ServiceOptions::clear_deprecated() { 11745 void EnumValueOptions::clear_deprecated() {
11734 deprecated_ = false; 11746 deprecated_ = false;
11735 clear_has_deprecated(); 11747 clear_has_deprecated();
11736 } 11748 }
11737 bool ServiceOptions::deprecated() const { 11749 bool EnumValueOptions::deprecated() const {
11738 // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.deprecate d) 11750 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.depreca ted)
11739 return deprecated_; 11751 return deprecated_;
11740 } 11752 }
11741 void ServiceOptions::set_deprecated(bool value) { 11753 void EnumValueOptions::set_deprecated(bool value) {
11742 set_has_deprecated(); 11754 set_has_deprecated();
11743 deprecated_ = value; 11755 deprecated_ = value;
11744 // @@protoc_insertion_point(field_set:google.protobuf.ServiceOptions.deprecate d) 11756 // @@protoc_insertion_point(field_set:google.protobuf.EnumValueOptions.depreca ted)
11745 } 11757 }
11746 11758
11747 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 11759 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11748 int ServiceOptions::uninterpreted_option_size() const { 11760 int EnumValueOptions::uninterpreted_option_size() const {
11749 return uninterpreted_option_.size(); 11761 return uninterpreted_option_.size();
11750 } 11762 }
11751 void ServiceOptions::clear_uninterpreted_option() { 11763 void EnumValueOptions::clear_uninterpreted_option() {
11752 uninterpreted_option_.Clear(); 11764 uninterpreted_option_.Clear();
11753 } 11765 }
11754 const ::google::protobuf::UninterpretedOption& ServiceOptions::uninterpreted_opt ion(int index) const { 11766 const ::google::protobuf::UninterpretedOption& EnumValueOptions::uninterpreted_o ption(int index) const {
11755 // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.uninterpr eted_option) 11767 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.uninter preted_option)
11756 return uninterpreted_option_.Get(index); 11768 return uninterpreted_option_.Get(index);
11757 } 11769 }
11758 ::google::protobuf::UninterpretedOption* ServiceOptions::mutable_uninterpreted_o ption(int index) { 11770 ::google::protobuf::UninterpretedOption* EnumValueOptions::mutable_uninterpreted _option(int index) {
11759 // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceOptions.unint erpreted_option) 11771 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueOptions.uni nterpreted_option)
11760 return uninterpreted_option_.Mutable(index); 11772 return uninterpreted_option_.Mutable(index);
11761 } 11773 }
11762 ::google::protobuf::UninterpretedOption* ServiceOptions::add_uninterpreted_optio n() { 11774 ::google::protobuf::UninterpretedOption* EnumValueOptions::add_uninterpreted_opt ion() {
11763 // @@protoc_insertion_point(field_add:google.protobuf.ServiceOptions.uninterpr eted_option) 11775 // @@protoc_insertion_point(field_add:google.protobuf.EnumValueOptions.uninter preted_option)
11764 return uninterpreted_option_.Add(); 11776 return uninterpreted_option_.Add();
11765 } 11777 }
11766 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* 11778 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
11767 ServiceOptions::mutable_uninterpreted_option() { 11779 EnumValueOptions::mutable_uninterpreted_option() {
11768 // @@protoc_insertion_point(field_mutable_list:google.protobuf.ServiceOptions. uninterpreted_option) 11780 // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumValueOption s.uninterpreted_option)
11769 return &uninterpreted_option_; 11781 return &uninterpreted_option_;
11770 } 11782 }
11771 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt ion >& 11783 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt ion >&
11772 ServiceOptions::uninterpreted_option() const { 11784 EnumValueOptions::uninterpreted_option() const {
11773 // @@protoc_insertion_point(field_list:google.protobuf.ServiceOptions.uninterp reted_option) 11785 // @@protoc_insertion_point(field_list:google.protobuf.EnumValueOptions.uninte rpreted_option)
11774 return uninterpreted_option_; 11786 return uninterpreted_option_;
11775 } 11787 }
11776 11788
11777 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 11789 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
11778 11790
11779 // =================================================================== 11791 // ===================================================================
11780 11792
11781 #if !defined(_MSC_VER) || _MSC_VER >= 1900 11793 #if !defined(_MSC_VER) || _MSC_VER >= 1900
11782 const int MethodOptions::kDeprecatedFieldNumber; 11794 const int ServiceOptions::kDeprecatedFieldNumber;
11783 const int MethodOptions::kUninterpretedOptionFieldNumber; 11795 const int ServiceOptions::kUninterpretedOptionFieldNumber;
11784 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 11796 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
11785 11797
11786 MethodOptions::MethodOptions() 11798 ServiceOptions::ServiceOptions()
11787 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 11799 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
11800 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
11801 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
11802 }
11788 SharedCtor(); 11803 SharedCtor();
11789 // @@protoc_insertion_point(constructor:google.protobuf.MethodOptions) 11804 // @@protoc_insertion_point(constructor:google.protobuf.ServiceOptions)
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)
11790 } 11816 }
11791 11817
11792 void MethodOptions::InitAsDefaultInstance() { 11818 void ServiceOptions::SharedCtor() {
11819 _cached_size_ = 0;
11820 deprecated_ = false;
11793 } 11821 }
11794 11822
11795 MethodOptions::MethodOptions(const MethodOptions& from) 11823 ServiceOptions::~ServiceOptions() {
11796 : ::google::protobuf::Message(), 11824 // @@protoc_insertion_point(destructor:google.protobuf.ServiceOptions)
11797 _internal_metadata_(NULL) {
11798 SharedCtor();
11799 MergeFrom(from);
11800 // @@protoc_insertion_point(copy_constructor:google.protobuf.MethodOptions)
11801 }
11802
11803 void MethodOptions::SharedCtor() {
11804 _cached_size_ = 0;
11805 deprecated_ = false;
11806 ::memset(_has_bits_, 0, sizeof(_has_bits_));
11807 }
11808
11809 MethodOptions::~MethodOptions() {
11810 // @@protoc_insertion_point(destructor:google.protobuf.MethodOptions)
11811 SharedDtor(); 11825 SharedDtor();
11812 } 11826 }
11813 11827
11814 void MethodOptions::SharedDtor() { 11828 void ServiceOptions::SharedDtor() {
11815 if (this != default_instance_) {
11816 }
11817 } 11829 }
11818 11830
11819 void MethodOptions::SetCachedSize(int size) const { 11831 void ServiceOptions::SetCachedSize(int size) const {
11820 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 11832 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11821 _cached_size_ = size; 11833 _cached_size_ = size;
11822 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 11834 GOOGLE_SAFE_CONCURRENT_WRITES_END();
11823 } 11835 }
11824 const ::google::protobuf::Descriptor* MethodOptions::descriptor() { 11836 const ::google::protobuf::Descriptor* ServiceOptions::descriptor() {
11825 protobuf_AssignDescriptorsOnce(); 11837 protobuf_AssignDescriptorsOnce();
11826 return MethodOptions_descriptor_; 11838 return file_level_metadata[17].descriptor;
11827 } 11839 }
11828 11840
11829 const MethodOptions& MethodOptions::default_instance() { 11841 const ServiceOptions& ServiceOptions::default_instance() {
11830 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 11842 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
11831 return *default_instance_; 11843 return *internal_default_instance();
11832 } 11844 }
11833 11845
11834 MethodOptions* MethodOptions::default_instance_ = NULL; 11846 ServiceOptions* ServiceOptions::New(::google::protobuf::Arena* arena) const {
11835 11847 ServiceOptions* n = new ServiceOptions;
11836 MethodOptions* MethodOptions::New(::google::protobuf::Arena* arena) const {
11837 MethodOptions* n = new MethodOptions;
11838 if (arena != NULL) { 11848 if (arena != NULL) {
11839 arena->Own(n); 11849 arena->Own(n);
11840 } 11850 }
11841 return n; 11851 return n;
11842 } 11852 }
11843 11853
11844 void MethodOptions::Clear() { 11854 void ServiceOptions::Clear() {
11845 // @@protoc_insertion_point(message_clear_start:google.protobuf.MethodOptions) 11855 // @@protoc_insertion_point(message_clear_start:google.protobuf.ServiceOptions)
11846 _extensions_.Clear(); 11856 _extensions_.Clear();
11857 uninterpreted_option_.Clear();
11847 deprecated_ = false; 11858 deprecated_ = false;
11848 uninterpreted_option_.Clear(); 11859 _has_bits_.Clear();
11849 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 11860 _internal_metadata_.Clear();
11850 if (_internal_metadata_.have_unknown_fields()) {
11851 mutable_unknown_fields()->Clear();
11852 }
11853 } 11861 }
11854 11862
11855 bool MethodOptions::MergePartialFromCodedStream( 11863 bool ServiceOptions::MergePartialFromCodedStream(
11856 ::google::protobuf::io::CodedInputStream* input) { 11864 ::google::protobuf::io::CodedInputStream* input) {
11857 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 11865 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
11858 ::google::protobuf::uint32 tag; 11866 ::google::protobuf::uint32 tag;
11859 // @@protoc_insertion_point(parse_start:google.protobuf.MethodOptions) 11867 // @@protoc_insertion_point(parse_start:google.protobuf.ServiceOptions)
11860 for (;;) { 11868 for (;;) {
11861 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 16383); 11869 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(16383u);
11862 tag = p.first; 11870 tag = p.first;
11863 if (!p.second) goto handle_unusual; 11871 if (!p.second) goto handle_unusual;
11864 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 11872 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
11865 // optional bool deprecated = 33 [default = false]; 11873 // optional bool deprecated = 33 [default = false];
11866 case 33: { 11874 case 33: {
11867 if (tag == 264) { 11875 if (tag == 264u) {
11876 set_has_deprecated();
11868 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 11877 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
11869 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 11878 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
11870 input, &deprecated_))); 11879 input, &deprecated_)));
11871 set_has_deprecated();
11872 } else { 11880 } else {
11873 goto handle_unusual; 11881 goto handle_unusual;
11874 } 11882 }
11875 if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
11876 break; 11883 break;
11877 } 11884 }
11878 11885
11879 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99 9; 11886 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99 9;
11880 case 999: { 11887 case 999: {
11881 if (tag == 7994) { 11888 if (tag == 7994u) {
11882 parse_uninterpreted_option:
11883 DO_(input->IncrementRecursionDepth()); 11889 DO_(input->IncrementRecursionDepth());
11884 parse_loop_uninterpreted_option:
11885 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 11890 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
11886 input, add_uninterpreted_option())); 11891 input, add_uninterpreted_option()));
11887 } else { 11892 } else {
11888 goto handle_unusual; 11893 goto handle_unusual;
11889 } 11894 }
11890 if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option;
11891 input->UnsafeDecrementRecursionDepth(); 11895 input->UnsafeDecrementRecursionDepth();
11892 if (input->ExpectAtEnd()) goto success;
11893 break; 11896 break;
11894 } 11897 }
11895 11898
11896 default: { 11899 default: {
11897 handle_unusual: 11900 handle_unusual:
11898 if (tag == 0 || 11901 if (tag == 0 ||
11899 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 11902 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
11900 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 11903 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
11901 goto success; 11904 goto success;
11902 } 11905 }
11903 if ((8000u <= tag)) { 11906 if ((8000u <= tag)) {
11904 DO_(_extensions_.ParseField(tag, input, default_instance_, 11907 DO_(_extensions_.ParseField(tag, input, internal_default_instance(),
11905 mutable_unknown_fields())); 11908 mutable_unknown_fields()));
11906 continue; 11909 continue;
11907 } 11910 }
11908 DO_(::google::protobuf::internal::WireFormat::SkipField( 11911 DO_(::google::protobuf::internal::WireFormat::SkipField(
11909 input, tag, mutable_unknown_fields())); 11912 input, tag, mutable_unknown_fields()));
11910 break; 11913 break;
11911 } 11914 }
11912 } 11915 }
11913 } 11916 }
11914 success: 11917 success:
11915 // @@protoc_insertion_point(parse_success:google.protobuf.MethodOptions) 11918 // @@protoc_insertion_point(parse_success:google.protobuf.ServiceOptions)
11916 return true; 11919 return true;
11917 failure: 11920 failure:
11918 // @@protoc_insertion_point(parse_failure:google.protobuf.MethodOptions) 11921 // @@protoc_insertion_point(parse_failure:google.protobuf.ServiceOptions)
11919 return false; 11922 return false;
11920 #undef DO_ 11923 #undef DO_
11921 } 11924 }
11922 11925
11923 void MethodOptions::SerializeWithCachedSizes( 11926 void ServiceOptions::SerializeWithCachedSizes(
11924 ::google::protobuf::io::CodedOutputStream* output) const { 11927 ::google::protobuf::io::CodedOutputStream* output) const {
11925 // @@protoc_insertion_point(serialize_start:google.protobuf.MethodOptions) 11928 // @@protoc_insertion_point(serialize_start:google.protobuf.ServiceOptions)
11926 // optional bool deprecated = 33 [default = false]; 11929 // optional bool deprecated = 33 [default = false];
11927 if (has_deprecated()) { 11930 if (has_deprecated()) {
11928 ::google::protobuf::internal::WireFormatLite::WriteBool(33, this->deprecated (), output); 11931 ::google::protobuf::internal::WireFormatLite::WriteBool(33, this->deprecated (), output);
11929 } 11932 }
11930 11933
11931 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 11934 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11932 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { 11935 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
11933 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 11936 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
11934 999, this->uninterpreted_option(i), output); 11937 999, this->uninterpreted_option(i), output);
11935 } 11938 }
11936 11939
11937 // Extension range [1000, 536870912) 11940 // Extension range [1000, 536870912)
11938 _extensions_.SerializeWithCachedSizes( 11941 _extensions_.SerializeWithCachedSizes(
11939 1000, 536870912, output); 11942 1000, 536870912, output);
11940 11943
11941 if (_internal_metadata_.have_unknown_fields()) { 11944 if (_internal_metadata_.have_unknown_fields()) {
11942 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 11945 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
11943 unknown_fields(), output); 11946 unknown_fields(), output);
11944 } 11947 }
11945 // @@protoc_insertion_point(serialize_end:google.protobuf.MethodOptions) 11948 // @@protoc_insertion_point(serialize_end:google.protobuf.ServiceOptions)
11946 } 11949 }
11947 11950
11948 ::google::protobuf::uint8* MethodOptions::SerializeWithCachedSizesToArray( 11951 ::google::protobuf::uint8* ServiceOptions::InternalSerializeWithCachedSizesToArr ay(
11949 ::google::protobuf::uint8* target) const { 11952 bool deterministic, ::google::protobuf::uint8* target) const {
11950 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MethodOpt ions) 11953 (void)deterministic; // Unused
11954 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ServiceOp tions)
11951 // optional bool deprecated = 33 [default = false]; 11955 // optional bool deprecated = 33 [default = false];
11952 if (has_deprecated()) { 11956 if (has_deprecated()) {
11953 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(33, this->deprecated(), target); 11957 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(33, this->deprecated(), target);
11954 } 11958 }
11955 11959
11956 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 11960 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11957 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { 11961 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
11958 target = ::google::protobuf::internal::WireFormatLite:: 11962 target = ::google::protobuf::internal::WireFormatLite::
11959 WriteMessageNoVirtualToArray( 11963 InternalWriteMessageNoVirtualToArray(
11960 999, this->uninterpreted_option(i), target); 11964 999, this->uninterpreted_option(i), false, target);
11961 } 11965 }
11962 11966
11963 // Extension range [1000, 536870912) 11967 // Extension range [1000, 536870912)
11964 target = _extensions_.SerializeWithCachedSizesToArray( 11968 target = _extensions_.InternalSerializeWithCachedSizesToArray(
11965 1000, 536870912, target); 11969 1000, 536870912, false, target);
11966 11970
11967 if (_internal_metadata_.have_unknown_fields()) { 11971 if (_internal_metadata_.have_unknown_fields()) {
11968 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 11972 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
11969 unknown_fields(), target); 11973 unknown_fields(), target);
11970 } 11974 }
11971 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MethodOptio ns) 11975 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ServiceOpti ons)
11972 return target; 11976 return target;
11973 } 11977 }
11974 11978
11975 int MethodOptions::ByteSize() const { 11979 size_t ServiceOptions::ByteSizeLong() const {
11976 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.MethodOption s) 11980 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.ServiceOptio ns)
11977 int total_size = 0; 11981 size_t 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 }
11991 11982
11992 total_size += _extensions_.ByteSize(); 11983 total_size += _extensions_.ByteSize();
11993 11984
11994 if (_internal_metadata_.have_unknown_fields()) { 11985 if (_internal_metadata_.have_unknown_fields()) {
11995 total_size += 11986 total_size +=
11996 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( 11987 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
11997 unknown_fields()); 11988 unknown_fields());
11998 } 11989 }
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);
11999 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 12007 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12000 _cached_size_ = total_size; 12008 _cached_size_ = cached_size;
12001 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 12009 GOOGLE_SAFE_CONCURRENT_WRITES_END();
12002 return total_size; 12010 return total_size;
12003 } 12011 }
12004 12012
12005 void MethodOptions::MergeFrom(const ::google::protobuf::Message& from) { 12013 void ServiceOptions::MergeFrom(const ::google::protobuf::Message& from) {
12006 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.MethodO ptions) 12014 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Service Options)
12007 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 12015 GOOGLE_DCHECK_NE(&from, this);
12008 const MethodOptions* source = 12016 const ServiceOptions* source =
12009 ::google::protobuf::internal::DynamicCastToGenerated<const MethodOptions>( 12017 ::google::protobuf::internal::DynamicCastToGenerated<const ServiceOptions> (
12010 &from); 12018 &from);
12011 if (source == NULL) { 12019 if (source == NULL) {
12012 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.M ethodOptions) 12020 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.S erviceOptions)
12013 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 12021 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
12014 } else { 12022 } else {
12015 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.MethodOptions) 12023 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.ServiceOptions)
12016 MergeFrom(*source); 12024 MergeFrom(*source);
12017 } 12025 }
12018 } 12026 }
12019 12027
12020 void MethodOptions::MergeFrom(const MethodOptions& from) { 12028 void ServiceOptions::MergeFrom(const ServiceOptions& from) {
12021 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Meth odOptions) 12029 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Serv iceOptions)
12022 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 12030 GOOGLE_DCHECK_NE(&from, this);
12031 _extensions_.MergeFrom(from._extensions_);
12032 _internal_metadata_.MergeFrom(from._internal_metadata_);
12023 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); 12033 uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
12024 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { 12034 if (from.has_deprecated()) {
12025 if (from.has_deprecated()) { 12035 set_deprecated(from.deprecated());
12026 set_deprecated(from.deprecated());
12027 }
12028 }
12029 _extensions_.MergeFrom(from._extensions_);
12030 if (from._internal_metadata_.have_unknown_fields()) {
12031 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
12032 } 12036 }
12033 } 12037 }
12034 12038
12035 void MethodOptions::CopyFrom(const ::google::protobuf::Message& from) { 12039 void ServiceOptions::CopyFrom(const ::google::protobuf::Message& from) {
12036 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.MethodOp tions) 12040 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.ServiceO ptions)
12037 if (&from == this) return; 12041 if (&from == this) return;
12038 Clear(); 12042 Clear();
12039 MergeFrom(from); 12043 MergeFrom(from);
12040 } 12044 }
12041 12045
12042 void MethodOptions::CopyFrom(const MethodOptions& from) { 12046 void ServiceOptions::CopyFrom(const ServiceOptions& from) {
12043 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Metho dOptions) 12047 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Servi ceOptions)
12044 if (&from == this) return; 12048 if (&from == this) return;
12045 Clear(); 12049 Clear();
12046 MergeFrom(from); 12050 MergeFrom(from);
12047 } 12051 }
12048 12052
12049 bool MethodOptions::IsInitialized() const { 12053 bool ServiceOptions::IsInitialized() const {
12054 if (!_extensions_.IsInitialized()) {
12055 return false;
12056 }
12050 12057
12051 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio n())) return false; 12058 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio n())) return false;
12052 12059 return true;
12053 if (!_extensions_.IsInitialized()) return false; return true;
12054 } 12060 }
12055 12061
12056 void MethodOptions::Swap(MethodOptions* other) { 12062 void ServiceOptions::Swap(ServiceOptions* other) {
12057 if (other == this) return; 12063 if (other == this) return;
12058 InternalSwap(other); 12064 InternalSwap(other);
12059 } 12065 }
12060 void MethodOptions::InternalSwap(MethodOptions* other) { 12066 void ServiceOptions::InternalSwap(ServiceOptions* other) {
12067 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
12061 std::swap(deprecated_, other->deprecated_); 12068 std::swap(deprecated_, other->deprecated_);
12062 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
12063 std::swap(_has_bits_[0], other->_has_bits_[0]); 12069 std::swap(_has_bits_[0], other->_has_bits_[0]);
12064 _internal_metadata_.Swap(&other->_internal_metadata_); 12070 _internal_metadata_.Swap(&other->_internal_metadata_);
12065 std::swap(_cached_size_, other->_cached_size_); 12071 std::swap(_cached_size_, other->_cached_size_);
12066 _extensions_.Swap(&other->_extensions_); 12072 _extensions_.Swap(&other->_extensions_);
12067 } 12073 }
12068 12074
12069 ::google::protobuf::Metadata MethodOptions::GetMetadata() const { 12075 ::google::protobuf::Metadata ServiceOptions::GetMetadata() const {
12070 protobuf_AssignDescriptorsOnce(); 12076 protobuf_AssignDescriptorsOnce();
12071 ::google::protobuf::Metadata metadata; 12077 return file_level_metadata[17];
12072 metadata.descriptor = MethodOptions_descriptor_;
12073 metadata.reflection = MethodOptions_reflection_;
12074 return metadata;
12075 } 12078 }
12076 12079
12077 #if PROTOBUF_INLINE_NOT_IN_HEADERS 12080 #if PROTOBUF_INLINE_NOT_IN_HEADERS
12078 // MethodOptions 12081 // ServiceOptions
12079 12082
12080 // optional bool deprecated = 33 [default = false]; 12083 // optional bool deprecated = 33 [default = false];
12081 bool MethodOptions::has_deprecated() const { 12084 bool ServiceOptions::has_deprecated() const {
12082 return (_has_bits_[0] & 0x00000001u) != 0; 12085 return (_has_bits_[0] & 0x00000001u) != 0;
12083 } 12086 }
12084 void MethodOptions::set_has_deprecated() { 12087 void ServiceOptions::set_has_deprecated() {
12085 _has_bits_[0] |= 0x00000001u; 12088 _has_bits_[0] |= 0x00000001u;
12086 } 12089 }
12087 void MethodOptions::clear_has_deprecated() { 12090 void ServiceOptions::clear_has_deprecated() {
12088 _has_bits_[0] &= ~0x00000001u; 12091 _has_bits_[0] &= ~0x00000001u;
12089 } 12092 }
12090 void MethodOptions::clear_deprecated() { 12093 void ServiceOptions::clear_deprecated() {
12091 deprecated_ = false; 12094 deprecated_ = false;
12092 clear_has_deprecated(); 12095 clear_has_deprecated();
12093 } 12096 }
12094 bool MethodOptions::deprecated() const { 12097 bool ServiceOptions::deprecated() const {
12095 // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.deprecated ) 12098 // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.deprecate d)
12096 return deprecated_; 12099 return deprecated_;
12097 } 12100 }
12098 void MethodOptions::set_deprecated(bool value) { 12101 void ServiceOptions::set_deprecated(bool value) {
12099 set_has_deprecated(); 12102 set_has_deprecated();
12100 deprecated_ = value; 12103 deprecated_ = value;
12101 // @@protoc_insertion_point(field_set:google.protobuf.MethodOptions.deprecated ) 12104 // @@protoc_insertion_point(field_set:google.protobuf.ServiceOptions.deprecate d)
12102 } 12105 }
12103 12106
12104 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 12107 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
12105 int MethodOptions::uninterpreted_option_size() const { 12108 int ServiceOptions::uninterpreted_option_size() const {
12106 return uninterpreted_option_.size(); 12109 return uninterpreted_option_.size();
12107 } 12110 }
12108 void MethodOptions::clear_uninterpreted_option() { 12111 void ServiceOptions::clear_uninterpreted_option() {
12109 uninterpreted_option_.Clear(); 12112 uninterpreted_option_.Clear();
12110 } 12113 }
12111 const ::google::protobuf::UninterpretedOption& MethodOptions::uninterpreted_opti on(int index) const { 12114 const ::google::protobuf::UninterpretedOption& ServiceOptions::uninterpreted_opt ion(int index) const {
12112 // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.uninterpre ted_option) 12115 // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.uninterpr eted_option)
12113 return uninterpreted_option_.Get(index); 12116 return uninterpreted_option_.Get(index);
12114 } 12117 }
12115 ::google::protobuf::UninterpretedOption* MethodOptions::mutable_uninterpreted_op tion(int index) { 12118 ::google::protobuf::UninterpretedOption* ServiceOptions::mutable_uninterpreted_o ption(int index) {
12116 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodOptions.uninte rpreted_option) 12119 // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceOptions.unint erpreted_option)
12117 return uninterpreted_option_.Mutable(index); 12120 return uninterpreted_option_.Mutable(index);
12118 } 12121 }
12119 ::google::protobuf::UninterpretedOption* MethodOptions::add_uninterpreted_option () { 12122 ::google::protobuf::UninterpretedOption* ServiceOptions::add_uninterpreted_optio n() {
12120 // @@protoc_insertion_point(field_add:google.protobuf.MethodOptions.uninterpre ted_option) 12123 // @@protoc_insertion_point(field_add:google.protobuf.ServiceOptions.uninterpr eted_option)
12121 return uninterpreted_option_.Add(); 12124 return uninterpreted_option_.Add();
12122 } 12125 }
12123 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* 12126 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
12124 MethodOptions::mutable_uninterpreted_option() { 12127 ServiceOptions::mutable_uninterpreted_option() {
12125 // @@protoc_insertion_point(field_mutable_list:google.protobuf.MethodOptions.u ninterpreted_option) 12128 // @@protoc_insertion_point(field_mutable_list:google.protobuf.ServiceOptions. uninterpreted_option)
12126 return &uninterpreted_option_; 12129 return &uninterpreted_option_;
12127 } 12130 }
12128 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt ion >& 12131 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt ion >&
12129 MethodOptions::uninterpreted_option() const { 12132 ServiceOptions::uninterpreted_option() const {
12130 // @@protoc_insertion_point(field_list:google.protobuf.MethodOptions.uninterpr eted_option) 12133 // @@protoc_insertion_point(field_list:google.protobuf.ServiceOptions.uninterp reted_option)
12131 return uninterpreted_option_; 12134 return uninterpreted_option_;
12132 } 12135 }
12133 12136
12134 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 12137 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
12135 12138
12136 // =================================================================== 12139 // ===================================================================
12137 12140
12138 #if !defined(_MSC_VER) || _MSC_VER >= 1900 12141 #if !defined(_MSC_VER) || _MSC_VER >= 1900
12139 const int UninterpretedOption_NamePart::kNamePartFieldNumber; 12142 const int MethodOptions::kDeprecatedFieldNumber;
12140 const int UninterpretedOption_NamePart::kIsExtensionFieldNumber; 12143 const int MethodOptions::kIdempotencyLevelFieldNumber;
12144 const int MethodOptions::kUninterpretedOptionFieldNumber;
12141 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 12145 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
12142 12146
12143 UninterpretedOption_NamePart::UninterpretedOption_NamePart() 12147 MethodOptions::MethodOptions()
12144 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 12148 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
12149 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
12150 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
12151 }
12145 SharedCtor(); 12152 SharedCtor();
12146 // @@protoc_insertion_point(constructor:google.protobuf.UninterpretedOption.Na mePart) 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)
12147 } 12167 }
12148 12168
12149 void UninterpretedOption_NamePart::InitAsDefaultInstance() { 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_));
12150 } 12173 }
12151 12174
12152 UninterpretedOption_NamePart::UninterpretedOption_NamePart(const UninterpretedOp tion_NamePart& from) 12175 MethodOptions::~MethodOptions() {
12153 : ::google::protobuf::Message(), 12176 // @@protoc_insertion_point(destructor:google.protobuf.MethodOptions)
12154 _internal_metadata_(NULL) {
12155 SharedCtor();
12156 MergeFrom(from);
12157 // @@protoc_insertion_point(copy_constructor:google.protobuf.UninterpretedOpti on.NamePart)
12158 }
12159
12160 void UninterpretedOption_NamePart::SharedCtor() {
12161 ::google::protobuf::internal::GetEmptyString();
12162 _cached_size_ = 0;
12163 name_part_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
12164 is_extension_ = false;
12165 ::memset(_has_bits_, 0, sizeof(_has_bits_));
12166 }
12167
12168 UninterpretedOption_NamePart::~UninterpretedOption_NamePart() {
12169 // @@protoc_insertion_point(destructor:google.protobuf.UninterpretedOption.Nam ePart)
12170 SharedDtor(); 12177 SharedDtor();
12171 } 12178 }
12172 12179
12173 void UninterpretedOption_NamePart::SharedDtor() { 12180 void MethodOptions::SharedDtor() {
12174 name_part_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
12175 if (this != default_instance_) {
12176 }
12177 } 12181 }
12178 12182
12179 void UninterpretedOption_NamePart::SetCachedSize(int size) const { 12183 void MethodOptions::SetCachedSize(int size) const {
12180 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 12184 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12181 _cached_size_ = size; 12185 _cached_size_ = size;
12182 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 12186 GOOGLE_SAFE_CONCURRENT_WRITES_END();
12183 } 12187 }
12184 const ::google::protobuf::Descriptor* UninterpretedOption_NamePart::descriptor() { 12188 const ::google::protobuf::Descriptor* MethodOptions::descriptor() {
12185 protobuf_AssignDescriptorsOnce(); 12189 protobuf_AssignDescriptorsOnce();
12186 return UninterpretedOption_NamePart_descriptor_; 12190 return file_level_metadata[18].descriptor;
12187 } 12191 }
12188 12192
12189 const UninterpretedOption_NamePart& UninterpretedOption_NamePart::default_instan ce() { 12193 const MethodOptions& MethodOptions::default_instance() {
12190 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 12194 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
12191 return *default_instance_; 12195 return *internal_default_instance();
12192 } 12196 }
12193 12197
12194 UninterpretedOption_NamePart* UninterpretedOption_NamePart::default_instance_ = NULL; 12198 MethodOptions* MethodOptions::New(::google::protobuf::Arena* arena) const {
12195 12199 MethodOptions* n = new MethodOptions;
12196 UninterpretedOption_NamePart* UninterpretedOption_NamePart::New(::google::protob uf::Arena* arena) const {
12197 UninterpretedOption_NamePart* n = new UninterpretedOption_NamePart;
12198 if (arena != NULL) { 12200 if (arena != NULL) {
12199 arena->Own(n); 12201 arena->Own(n);
12200 } 12202 }
12201 return n; 12203 return n;
12202 } 12204 }
12203 12205
12204 void UninterpretedOption_NamePart::Clear() { 12206 void MethodOptions::Clear() {
12205 // @@protoc_insertion_point(message_clear_start:google.protobuf.UninterpretedOpt ion.NamePart) 12207 // @@protoc_insertion_point(message_clear_start:google.protobuf.MethodOptions)
12208 _extensions_.Clear();
12209 uninterpreted_option_.Clear();
12206 if (_has_bits_[0 / 32] & 3u) { 12210 if (_has_bits_[0 / 32] & 3u) {
12207 if (has_name_part()) { 12211 ::memset(&deprecated_, 0, reinterpret_cast<char*>(&idempotency_level_) -
12208 name_part_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited()); 12212 reinterpret_cast<char*>(&deprecated_) + sizeof(idempotency_level_));
12209 }
12210 is_extension_ = false;
12211 } 12213 }
12212 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 12214 _has_bits_.Clear();
12213 if (_internal_metadata_.have_unknown_fields()) { 12215 _internal_metadata_.Clear();
12214 mutable_unknown_fields()->Clear();
12215 }
12216 } 12216 }
12217 12217
12218 bool UninterpretedOption_NamePart::MergePartialFromCodedStream( 12218 bool MethodOptions::MergePartialFromCodedStream(
12219 ::google::protobuf::io::CodedInputStream* input) { 12219 ::google::protobuf::io::CodedInputStream* input) {
12220 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 12220 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
12221 ::google::protobuf::uint32 tag; 12221 ::google::protobuf::uint32 tag;
12222 // @@protoc_insertion_point(parse_start:google.protobuf.UninterpretedOption.Na mePart) 12222 // @@protoc_insertion_point(parse_start:google.protobuf.MethodOptions)
12223 for (;;) { 12223 for (;;) {
12224 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127); 12224 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(16383u);
12225 tag = p.first; 12225 tag = p.first;
12226 if (!p.second) goto handle_unusual; 12226 if (!p.second) goto handle_unusual;
12227 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 12227 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
12228 // required string name_part = 1; 12228 // optional bool deprecated = 33 [default = false];
12229 case 1: { 12229 case 33: {
12230 if (tag == 10) { 12230 if (tag == 264u) {
12231 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 12231 set_has_deprecated();
12232 input, this->mutable_name_part())); 12232 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
12233 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 12233 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
12234 this->name_part().data(), this->name_part().length(), 12234 input, &deprecated_)));
12235 ::google::protobuf::internal::WireFormat::PARSE,
12236 "google.protobuf.UninterpretedOption.NamePart.name_part");
12237 } else { 12235 } else {
12238 goto handle_unusual; 12236 goto handle_unusual;
12239 } 12237 }
12240 if (input->ExpectTag(16)) goto parse_is_extension;
12241 break; 12238 break;
12242 } 12239 }
12243 12240
12244 // required bool is_extension = 2; 12241 // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_le vel = 34 [default = IDEMPOTENCY_UNKNOWN];
12245 case 2: { 12242 case 34: {
12246 if (tag == 16) { 12243 if (tag == 272u) {
12247 parse_is_extension: 12244 int value;
12248 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 12245 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
12249 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 12246 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM> (
12250 input, &is_extension_))); 12247 input, &value)));
12251 set_has_is_extension(); 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 }
12252 } else { 12253 } else {
12253 goto handle_unusual; 12254 goto handle_unusual;
12254 } 12255 }
12255 if (input->ExpectAtEnd()) goto success;
12256 break; 12256 break;
12257 } 12257 }
12258 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
12259 default: { 12272 default: {
12260 handle_unusual: 12273 handle_unusual:
12261 if (tag == 0 || 12274 if (tag == 0 ||
12262 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 12275 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
12263 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 12276 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
12264 goto success; 12277 goto success;
12265 } 12278 }
12279 if ((8000u <= tag)) {
12280 DO_(_extensions_.ParseField(tag, input, internal_default_instance(),
12281 mutable_unknown_fields()));
12282 continue;
12283 }
12266 DO_(::google::protobuf::internal::WireFormat::SkipField( 12284 DO_(::google::protobuf::internal::WireFormat::SkipField(
12267 input, tag, mutable_unknown_fields())); 12285 input, tag, mutable_unknown_fields()));
12268 break; 12286 break;
12269 } 12287 }
12270 } 12288 }
12271 } 12289 }
12272 success: 12290 success:
12273 // @@protoc_insertion_point(parse_success:google.protobuf.UninterpretedOption. NamePart) 12291 // @@protoc_insertion_point(parse_success:google.protobuf.MethodOptions)
12274 return true; 12292 return true;
12275 failure: 12293 failure:
12276 // @@protoc_insertion_point(parse_failure:google.protobuf.UninterpretedOption. NamePart) 12294 // @@protoc_insertion_point(parse_failure:google.protobuf.MethodOptions)
12277 return false; 12295 return false;
12278 #undef DO_ 12296 #undef DO_
12279 } 12297 }
12280 12298
12281 void UninterpretedOption_NamePart::SerializeWithCachedSizes( 12299 void MethodOptions::SerializeWithCachedSizes(
12282 ::google::protobuf::io::CodedOutputStream* output) const { 12300 ::google::protobuf::io::CodedOutputStream* output) const {
12283 // @@protoc_insertion_point(serialize_start:google.protobuf.UninterpretedOptio n.NamePart) 12301 // @@protoc_insertion_point(serialize_start:google.protobuf.MethodOptions)
12284 // required string name_part = 1; 12302 // optional bool deprecated = 33 [default = false];
12285 if (has_name_part()) { 12303 if (has_deprecated()) {
12286 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 12304 ::google::protobuf::internal::WireFormatLite::WriteBool(33, this->deprecated (), output);
12287 this->name_part().data(), this->name_part().length(), 12305 }
12288 ::google::protobuf::internal::WireFormat::SERIALIZE, 12306
12289 "google.protobuf.UninterpretedOption.NamePart.name_part"); 12307 // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
12290 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 12308 if (has_idempotency_level()) {
12291 1, this->name_part(), output); 12309 ::google::protobuf::internal::WireFormatLite::WriteEnum(
12292 } 12310 34, this->idempotency_level(), output);
12293 12311 }
12294 // required bool is_extension = 2; 12312
12295 if (has_is_extension()) { 12313 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
12296 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_extensio n(), output); 12314 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
12297 } 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);
12298 12322
12299 if (_internal_metadata_.have_unknown_fields()) { 12323 if (_internal_metadata_.have_unknown_fields()) {
12300 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 12324 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
12301 unknown_fields(), output); 12325 unknown_fields(), output);
12302 } 12326 }
12303 // @@protoc_insertion_point(serialize_end:google.protobuf.UninterpretedOption. NamePart) 12327 // @@protoc_insertion_point(serialize_end:google.protobuf.MethodOptions)
12304 } 12328 }
12305 12329
12306 ::google::protobuf::uint8* UninterpretedOption_NamePart::SerializeWithCachedSize sToArray( 12330 ::google::protobuf::uint8* MethodOptions::InternalSerializeWithCachedSizesToArra y(
12307 ::google::protobuf::uint8* target) const { 12331 bool deterministic, ::google::protobuf::uint8* target) const {
12308 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Uninterpr etedOption.NamePart) 12332 (void)deterministic; // Unused
12309 // required string name_part = 1; 12333 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MethodOpt ions)
12310 if (has_name_part()) { 12334 // optional bool deprecated = 33 [default = false];
12311 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 12335 if (has_deprecated()) {
12312 this->name_part().data(), this->name_part().length(), 12336 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(33, this->deprecated(), target);
12313 ::google::protobuf::internal::WireFormat::SERIALIZE, 12337 }
12314 "google.protobuf.UninterpretedOption.NamePart.name_part"); 12338
12315 target = 12339 // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
12316 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 12340 if (has_idempotency_level()) {
12317 1, this->name_part(), target); 12341 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
12318 } 12342 34, this->idempotency_level(), target);
12319 12343 }
12320 // required bool is_extension = 2; 12344
12321 if (has_is_extension()) { 12345 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
12322 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, t his->is_extension(), target); 12346 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
12323 } 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);
12324 12355
12325 if (_internal_metadata_.have_unknown_fields()) { 12356 if (_internal_metadata_.have_unknown_fields()) {
12326 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 12357 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
12327 unknown_fields(), target); 12358 unknown_fields(), target);
12328 } 12359 }
12329 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Uninterpret edOption.NamePart) 12360 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MethodOptio ns)
12330 return target; 12361 return target;
12331 } 12362 }
12332 12363
12333 int UninterpretedOption_NamePart::RequiredFieldsByteSizeFallback() const { 12364 size_t MethodOptions::ByteSizeLong() const {
12334 // @@protoc_insertion_point(required_fields_byte_size_fallback_start:google.prot obuf.UninterpretedOption.NamePart) 12365 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.MethodOption s)
12335 int total_size = 0; 12366 size_t total_size = 0;
12336 12367
12337 if (has_name_part()) { 12368 total_size += _extensions_.ByteSize();
12338 // required string name_part = 1; 12369
12339 total_size += 1 +
12340 ::google::protobuf::internal::WireFormatLite::StringSize(
12341 this->name_part());
12342 }
12343
12344 if (has_is_extension()) {
12345 // required bool is_extension = 2;
12346 total_size += 1 + 1;
12347 }
12348
12349 return total_size;
12350 }
12351 int UninterpretedOption_NamePart::ByteSize() const {
12352 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Uninterprete dOption.NamePart)
12353 int total_size = 0;
12354
12355 if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required field s are present.
12356 // required string name_part = 1;
12357 total_size += 1 +
12358 ::google::protobuf::internal::WireFormatLite::StringSize(
12359 this->name_part());
12360
12361 // required bool is_extension = 2;
12362 total_size += 1 + 1;
12363
12364 } else {
12365 total_size += RequiredFieldsByteSizeFallback();
12366 }
12367 if (_internal_metadata_.have_unknown_fields()) { 12370 if (_internal_metadata_.have_unknown_fields()) {
12368 total_size += 12371 total_size +=
12369 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( 12372 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
12370 unknown_fields()); 12373 unknown_fields());
12371 } 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);
12372 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 12400 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12373 _cached_size_ = total_size; 12401 _cached_size_ = cached_size;
12374 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 12402 GOOGLE_SAFE_CONCURRENT_WRITES_END();
12375 return total_size; 12403 return total_size;
12376 } 12404 }
12377 12405
12378 void UninterpretedOption_NamePart::MergeFrom(const ::google::protobuf::Message& from) { 12406 void MethodOptions::MergeFrom(const ::google::protobuf::Message& from) {
12379 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Uninter pretedOption.NamePart) 12407 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.MethodO ptions)
12380 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 12408 GOOGLE_DCHECK_NE(&from, this);
12381 const UninterpretedOption_NamePart* source = 12409 const MethodOptions* source =
12382 ::google::protobuf::internal::DynamicCastToGenerated<const UninterpretedOp tion_NamePart>( 12410 ::google::protobuf::internal::DynamicCastToGenerated<const MethodOptions>(
12383 &from); 12411 &from);
12384 if (source == NULL) { 12412 if (source == NULL) {
12385 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.U ninterpretedOption.NamePart) 12413 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.M ethodOptions)
12386 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 12414 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
12387 } else { 12415 } else {
12388 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.UninterpretedOption.NamePart) 12416 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.MethodOptions)
12389 MergeFrom(*source); 12417 MergeFrom(*source);
12390 } 12418 }
12391 } 12419 }
12392 12420
12393 void UninterpretedOption_NamePart::MergeFrom(const UninterpretedOption_NamePart& from) { 12421 void MethodOptions::MergeFrom(const MethodOptions& from) {
12394 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Unin terpretedOption.NamePart) 12422 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Meth odOptions)
12395 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 12423 GOOGLE_DCHECK_NE(&from, this);
12396 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { 12424 _extensions_.MergeFrom(from._extensions_);
12397 if (from.has_name_part()) { 12425 _internal_metadata_.MergeFrom(from._internal_metadata_);
12398 set_has_name_part(); 12426 uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
12399 name_part_.AssignWithDefault(&::google::protobuf::internal::GetEmptyString AlreadyInited(), from.name_part_); 12427 if (from._has_bits_[0 / 32] & 3u) {
12400 } 12428 if (from.has_deprecated()) {
12401 if (from.has_is_extension()) { 12429 set_deprecated(from.deprecated());
12402 set_is_extension(from.is_extension()); 12430 }
12403 } 12431 if (from.has_idempotency_level()) {
12404 } 12432 set_idempotency_level(from.idempotency_level());
12405 if (from._internal_metadata_.have_unknown_fields()) { 12433 }
12406 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); 12434 }
12407 } 12435 }
12408 } 12436
12409 12437 void MethodOptions::CopyFrom(const ::google::protobuf::Message& from) {
12410 void UninterpretedOption_NamePart::CopyFrom(const ::google::protobuf::Message& f rom) { 12438 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.MethodOp tions)
12411 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Uninterp retedOption.NamePart)
12412 if (&from == this) return; 12439 if (&from == this) return;
12413 Clear(); 12440 Clear();
12414 MergeFrom(from); 12441 MergeFrom(from);
12415 } 12442 }
12416 12443
12417 void UninterpretedOption_NamePart::CopyFrom(const UninterpretedOption_NamePart& from) { 12444 void MethodOptions::CopyFrom(const MethodOptions& from) {
12418 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Unint erpretedOption.NamePart) 12445 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Metho dOptions)
12419 if (&from == this) return; 12446 if (&from == this) return;
12420 Clear(); 12447 Clear();
12421 MergeFrom(from); 12448 MergeFrom(from);
12422 } 12449 }
12423 12450
12424 bool UninterpretedOption_NamePart::IsInitialized() const { 12451 bool MethodOptions::IsInitialized() const {
12425 if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; 12452 if (!_extensions_.IsInitialized()) {
12426 12453 return false;
12454 }
12455
12456 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio n())) return false;
12427 return true; 12457 return true;
12428 } 12458 }
12429 12459
12430 void UninterpretedOption_NamePart::Swap(UninterpretedOption_NamePart* other) { 12460 void MethodOptions::Swap(MethodOptions* other) {
12431 if (other == this) return; 12461 if (other == this) return;
12432 InternalSwap(other); 12462 InternalSwap(other);
12433 } 12463 }
12434 void UninterpretedOption_NamePart::InternalSwap(UninterpretedOption_NamePart* ot her) { 12464 void MethodOptions::InternalSwap(MethodOptions* other) {
12435 name_part_.Swap(&other->name_part_); 12465 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
12436 std::swap(is_extension_, other->is_extension_); 12466 std::swap(deprecated_, other->deprecated_);
12467 std::swap(idempotency_level_, other->idempotency_level_);
12437 std::swap(_has_bits_[0], other->_has_bits_[0]); 12468 std::swap(_has_bits_[0], other->_has_bits_[0]);
12438 _internal_metadata_.Swap(&other->_internal_metadata_); 12469 _internal_metadata_.Swap(&other->_internal_metadata_);
12439 std::swap(_cached_size_, other->_cached_size_); 12470 std::swap(_cached_size_, other->_cached_size_);
12440 } 12471 _extensions_.Swap(&other->_extensions_);
12441 12472 }
12442 ::google::protobuf::Metadata UninterpretedOption_NamePart::GetMetadata() const { 12473
12474 ::google::protobuf::Metadata MethodOptions::GetMetadata() const {
12443 protobuf_AssignDescriptorsOnce(); 12475 protobuf_AssignDescriptorsOnce();
12444 ::google::protobuf::Metadata metadata; 12476 return file_level_metadata[18];
12445 metadata.descriptor = UninterpretedOption_NamePart_descriptor_; 12477 }
12446 metadata.reflection = UninterpretedOption_NamePart_reflection_; 12478
12447 return metadata; 12479 #if PROTOBUF_INLINE_NOT_IN_HEADERS
12448 } 12480 // MethodOptions
12449 12481
12450 12482 // optional bool deprecated = 33 [default = false];
12451 // ------------------------------------------------------------------- 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 // ===================================================================
12452 12564
12453 #if !defined(_MSC_VER) || _MSC_VER >= 1900 12565 #if !defined(_MSC_VER) || _MSC_VER >= 1900
12454 const int UninterpretedOption::kNameFieldNumber; 12566 const int UninterpretedOption_NamePart::kNamePartFieldNumber;
12455 const int UninterpretedOption::kIdentifierValueFieldNumber; 12567 const int UninterpretedOption_NamePart::kIsExtensionFieldNumber;
12456 const int UninterpretedOption::kPositiveIntValueFieldNumber;
12457 const int UninterpretedOption::kNegativeIntValueFieldNumber;
12458 const int UninterpretedOption::kDoubleValueFieldNumber;
12459 const int UninterpretedOption::kStringValueFieldNumber;
12460 const int UninterpretedOption::kAggregateValueFieldNumber;
12461 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 12568 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
12462 12569
12463 UninterpretedOption::UninterpretedOption() 12570 UninterpretedOption_NamePart::UninterpretedOption_NamePart()
12464 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 12571 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
12572 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
12573 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
12574 }
12465 SharedCtor(); 12575 SharedCtor();
12466 // @@protoc_insertion_point(constructor:google.protobuf.UninterpretedOption) 12576 // @@protoc_insertion_point(constructor:google.protobuf.UninterpretedOption.Na mePart)
12467 } 12577 }
12468 12578 UninterpretedOption_NamePart::UninterpretedOption_NamePart(const UninterpretedOp tion_NamePart& from)
12469 void UninterpretedOption::InitAsDefaultInstance() {
12470 }
12471
12472 UninterpretedOption::UninterpretedOption(const UninterpretedOption& from)
12473 : ::google::protobuf::Message(), 12579 : ::google::protobuf::Message(),
12474 _internal_metadata_(NULL) { 12580 _internal_metadata_(NULL),
12475 SharedCtor(); 12581 _has_bits_(from._has_bits_),
12476 MergeFrom(from); 12582 _cached_size_(0) {
12477 // @@protoc_insertion_point(copy_constructor:google.protobuf.UninterpretedOpti on) 12583 _internal_metadata_.MergeFrom(from._internal_metadata_);
12478 } 12584 name_part_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
12479 12585 if (from.has_name_part()) {
12480 void UninterpretedOption::SharedCtor() { 12586 name_part_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAl readyInited(), from.name_part_);
12481 ::google::protobuf::internal::GetEmptyString(); 12587 }
12588 is_extension_ = from.is_extension_;
12589 // @@protoc_insertion_point(copy_constructor:google.protobuf.UninterpretedOpti on.NamePart)
12590 }
12591
12592 void UninterpretedOption_NamePart::SharedCtor() {
12482 _cached_size_ = 0; 12593 _cached_size_ = 0;
12483 identifier_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited()); 12594 name_part_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
12484 positive_int_value_ = GOOGLE_ULONGLONG(0); 12595 is_extension_ = false;
12485 negative_int_value_ = GOOGLE_LONGLONG(0); 12596 }
12486 double_value_ = 0; 12597
12487 string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAl readyInited()); 12598 UninterpretedOption_NamePart::~UninterpretedOption_NamePart() {
12488 aggregate_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited()); 12599 // @@protoc_insertion_point(destructor:google.protobuf.UninterpretedOption.Nam ePart)
12489 ::memset(_has_bits_, 0, sizeof(_has_bits_));
12490 }
12491
12492 UninterpretedOption::~UninterpretedOption() {
12493 // @@protoc_insertion_point(destructor:google.protobuf.UninterpretedOption)
12494 SharedDtor(); 12600 SharedDtor();
12495 } 12601 }
12496 12602
12497 void UninterpretedOption::SharedDtor() { 12603 void UninterpretedOption_NamePart::SharedDtor() {
12498 identifier_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited()); 12604 name_part_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
12499 string_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited()); 12605 }
12500 aggregate_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringA lreadyInited()); 12606
12501 if (this != default_instance_) { 12607 void UninterpretedOption_NamePart::SetCachedSize(int size) const {
12502 }
12503 }
12504
12505 void UninterpretedOption::SetCachedSize(int size) const {
12506 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 12608 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12507 _cached_size_ = size; 12609 _cached_size_ = size;
12508 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 12610 GOOGLE_SAFE_CONCURRENT_WRITES_END();
12509 } 12611 }
12510 const ::google::protobuf::Descriptor* UninterpretedOption::descriptor() { 12612 const ::google::protobuf::Descriptor* UninterpretedOption_NamePart::descriptor() {
12511 protobuf_AssignDescriptorsOnce(); 12613 protobuf_AssignDescriptorsOnce();
12512 return UninterpretedOption_descriptor_; 12614 return file_level_metadata[19].descriptor;
12513 } 12615 }
12514 12616
12515 const UninterpretedOption& UninterpretedOption::default_instance() { 12617 const UninterpretedOption_NamePart& UninterpretedOption_NamePart::default_instan ce() {
12516 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 12618 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
12517 return *default_instance_; 12619 return *internal_default_instance();
12518 } 12620 }
12519 12621
12520 UninterpretedOption* UninterpretedOption::default_instance_ = NULL; 12622 UninterpretedOption_NamePart* UninterpretedOption_NamePart::New(::google::protob uf::Arena* arena) const {
12521 12623 UninterpretedOption_NamePart* n = new UninterpretedOption_NamePart;
12522 UninterpretedOption* UninterpretedOption::New(::google::protobuf::Arena* arena) const {
12523 UninterpretedOption* n = new UninterpretedOption;
12524 if (arena != NULL) { 12624 if (arena != NULL) {
12525 arena->Own(n); 12625 arena->Own(n);
12526 } 12626 }
12527 return n; 12627 return n;
12528 } 12628 }
12529 12629
12530 void UninterpretedOption::Clear() { 12630 void UninterpretedOption_NamePart::Clear() {
12531 // @@protoc_insertion_point(message_clear_start:google.protobuf.UninterpretedOpt ion) 12631 // @@protoc_insertion_point(message_clear_start:google.protobuf.UninterpretedOpt ion.NamePart)
12532 #if defined(__clang__) 12632 if (has_name_part()) {
12533 #define ZR_HELPER_(f) \ 12633 GOOGLE_DCHECK(!name_part_.IsDefault(&::google::protobuf::internal::GetEmptyS tringAlreadyInited()));
12534 _Pragma("clang diagnostic push") \ 12634 (*name_part_.UnsafeRawStringPointer())->clear();
12535 _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ 12635 }
12536 __builtin_offsetof(UninterpretedOption, f) \ 12636 is_extension_ = false;
12537 _Pragma("clang diagnostic pop") 12637 _has_bits_.Clear();
12538 #else 12638 _internal_metadata_.Clear();
12539 #define ZR_HELPER_(f) reinterpret_cast<char*>(\ 12639 }
12540 &reinterpret_cast<UninterpretedOption*>(16)->f) 12640
12541 #endif 12641 bool UninterpretedOption_NamePart::MergePartialFromCodedStream(
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_);
12550 if (has_identifier_value()) {
12551 identifier_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEm ptyStringAlreadyInited());
12552 }
12553 if (has_string_value()) {
12554 string_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyS tringAlreadyInited());
12555 }
12556 if (has_aggregate_value()) {
12557 aggregate_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmp tyStringAlreadyInited());
12558 }
12559 }
12560
12561 #undef ZR_HELPER_
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();
12568 }
12569 }
12570
12571 bool UninterpretedOption::MergePartialFromCodedStream(
12572 ::google::protobuf::io::CodedInputStream* input) { 12642 ::google::protobuf::io::CodedInputStream* input) {
12573 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 12643 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
12574 ::google::protobuf::uint32 tag; 12644 ::google::protobuf::uint32 tag;
12575 // @@protoc_insertion_point(parse_start:google.protobuf.UninterpretedOption) 12645 // @@protoc_insertion_point(parse_start:google.protobuf.UninterpretedOption.Na mePart)
12576 for (;;) { 12646 for (;;) {
12577 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127); 12647 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u);
12578 tag = p.first; 12648 tag = p.first;
12579 if (!p.second) goto handle_unusual; 12649 if (!p.second) goto handle_unusual;
12580 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 12650 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
12581 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; 12651 // required string name_part = 1;
12582 case 2: { 12652 case 1: {
12583 if (tag == 18) { 12653 if (tag == 10u) {
12584 DO_(input->IncrementRecursionDepth()); 12654 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
12585 parse_loop_name: 12655 input, this->mutable_name_part()));
12586 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 12656 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
12587 input, add_name())); 12657 this->name_part().data(), this->name_part().length(),
12658 ::google::protobuf::internal::WireFormat::PARSE,
12659 "google.protobuf.UninterpretedOption.NamePart.name_part");
12588 } else { 12660 } else {
12589 goto handle_unusual; 12661 goto handle_unusual;
12590 } 12662 }
12591 if (input->ExpectTag(18)) goto parse_loop_name;
12592 input->UnsafeDecrementRecursionDepth();
12593 if (input->ExpectTag(26)) goto parse_identifier_value;
12594 break; 12663 break;
12595 } 12664 }
12596 12665
12597 // optional string identifier_value = 3; 12666 // required bool is_extension = 2;
12598 case 3: { 12667 case 2: {
12599 if (tag == 26) { 12668 if (tag == 16u) {
12600 parse_identifier_value: 12669 set_has_is_extension();
12601 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 12670 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
12602 input, this->mutable_identifier_value())); 12671 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
12603 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 12672 input, &is_extension_)));
12604 this->identifier_value().data(), this->identifier_value().length(),
12605 ::google::protobuf::internal::WireFormat::PARSE,
12606 "google.protobuf.UninterpretedOption.identifier_value");
12607 } else { 12673 } else {
12608 goto handle_unusual; 12674 goto handle_unusual;
12609 } 12675 }
12610 if (input->ExpectTag(32)) goto parse_positive_int_value;
12611 break; 12676 break;
12612 } 12677 }
12613 12678
12614 // optional uint64 positive_int_value = 4;
12615 case 4: {
12616 if (tag == 32) {
12617 parse_positive_int_value:
12618 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
12619 ::google::protobuf::uint64, ::google::protobuf::internal::Wir eFormatLite::TYPE_UINT64>(
12620 input, &positive_int_value_)));
12621 set_has_positive_int_value();
12622 } else {
12623 goto handle_unusual;
12624 }
12625 if (input->ExpectTag(40)) goto parse_negative_int_value;
12626 break;
12627 }
12628
12629 // optional int64 negative_int_value = 5;
12630 case 5: {
12631 if (tag == 40) {
12632 parse_negative_int_value:
12633 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
12634 ::google::protobuf::int64, ::google::protobuf::internal::Wire FormatLite::TYPE_INT64>(
12635 input, &negative_int_value_)));
12636 set_has_negative_int_value();
12637 } else {
12638 goto handle_unusual;
12639 }
12640 if (input->ExpectTag(49)) goto parse_double_value;
12641 break;
12642 }
12643
12644 // optional double double_value = 6;
12645 case 6: {
12646 if (tag == 49) {
12647 parse_double_value:
12648 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
12649 double, ::google::protobuf::internal::WireFormatLite::TYPE_DO UBLE>(
12650 input, &double_value_)));
12651 set_has_double_value();
12652 } else {
12653 goto handle_unusual;
12654 }
12655 if (input->ExpectTag(58)) goto parse_string_value;
12656 break;
12657 }
12658
12659 // optional bytes string_value = 7;
12660 case 7: {
12661 if (tag == 58) {
12662 parse_string_value:
12663 DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
12664 input, this->mutable_string_value()));
12665 } else {
12666 goto handle_unusual;
12667 }
12668 if (input->ExpectTag(66)) goto parse_aggregate_value;
12669 break;
12670 }
12671
12672 // optional string aggregate_value = 8;
12673 case 8: {
12674 if (tag == 66) {
12675 parse_aggregate_value:
12676 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
12677 input, this->mutable_aggregate_value()));
12678 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
12679 this->aggregate_value().data(), this->aggregate_value().length(),
12680 ::google::protobuf::internal::WireFormat::PARSE,
12681 "google.protobuf.UninterpretedOption.aggregate_value");
12682 } else {
12683 goto handle_unusual;
12684 }
12685 if (input->ExpectAtEnd()) goto success;
12686 break;
12687 }
12688
12689 default: { 12679 default: {
12690 handle_unusual: 12680 handle_unusual:
12691 if (tag == 0 || 12681 if (tag == 0 ||
12692 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 12682 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
12693 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 12683 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
12694 goto success; 12684 goto success;
12695 } 12685 }
12696 DO_(::google::protobuf::internal::WireFormat::SkipField( 12686 DO_(::google::protobuf::internal::WireFormat::SkipField(
12697 input, tag, mutable_unknown_fields())); 12687 input, tag, mutable_unknown_fields()));
12698 break; 12688 break;
12699 } 12689 }
12700 } 12690 }
12701 } 12691 }
12702 success: 12692 success:
12703 // @@protoc_insertion_point(parse_success:google.protobuf.UninterpretedOption) 12693 // @@protoc_insertion_point(parse_success:google.protobuf.UninterpretedOption. NamePart)
12704 return true; 12694 return true;
12705 failure: 12695 failure:
12706 // @@protoc_insertion_point(parse_failure:google.protobuf.UninterpretedOption) 12696 // @@protoc_insertion_point(parse_failure:google.protobuf.UninterpretedOption. NamePart)
12707 return false; 12697 return false;
12708 #undef DO_ 12698 #undef DO_
12709 } 12699 }
12710 12700
12711 void UninterpretedOption::SerializeWithCachedSizes( 12701 void UninterpretedOption_NamePart::SerializeWithCachedSizes(
12712 ::google::protobuf::io::CodedOutputStream* output) const { 12702 ::google::protobuf::io::CodedOutputStream* output) const {
12713 // @@protoc_insertion_point(serialize_start:google.protobuf.UninterpretedOptio n) 12703 // @@protoc_insertion_point(serialize_start:google.protobuf.UninterpretedOptio n.NamePart)
12714 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; 12704 // required string name_part = 1;
12715 for (unsigned int i = 0, n = this->name_size(); i < n; i++) { 12705 if (has_name_part()) {
12716 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 12706 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
12717 2, this->name(i), output); 12707 this->name_part().data(), this->name_part().length(),
12708 ::google::protobuf::internal::WireFormat::SERIALIZE,
12709 "google.protobuf.UninterpretedOption.NamePart.name_part");
12710 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
12711 1, this->name_part(), output);
12718 } 12712 }
12719 12713
12720 // optional string identifier_value = 3; 12714 // required bool is_extension = 2;
12721 if (has_identifier_value()) { 12715 if (has_is_extension()) {
12722 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 12716 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_extensio n(), output);
12723 this->identifier_value().data(), this->identifier_value().length(),
12724 ::google::protobuf::internal::WireFormat::SERIALIZE,
12725 "google.protobuf.UninterpretedOption.identifier_value");
12726 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
12727 3, this->identifier_value(), output);
12728 }
12729
12730 // optional uint64 positive_int_value = 4;
12731 if (has_positive_int_value()) {
12732 ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->positive_ int_value(), output);
12733 }
12734
12735 // optional int64 negative_int_value = 5;
12736 if (has_negative_int_value()) {
12737 ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->negative_i nt_value(), output);
12738 }
12739
12740 // optional double double_value = 6;
12741 if (has_double_value()) {
12742 ::google::protobuf::internal::WireFormatLite::WriteDouble(6, this->double_va lue(), output);
12743 }
12744
12745 // optional bytes string_value = 7;
12746 if (has_string_value()) {
12747 ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
12748 7, this->string_value(), output);
12749 }
12750
12751 // optional string aggregate_value = 8;
12752 if (has_aggregate_value()) {
12753 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
12754 this->aggregate_value().data(), this->aggregate_value().length(),
12755 ::google::protobuf::internal::WireFormat::SERIALIZE,
12756 "google.protobuf.UninterpretedOption.aggregate_value");
12757 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
12758 8, this->aggregate_value(), output);
12759 } 12717 }
12760 12718
12761 if (_internal_metadata_.have_unknown_fields()) { 12719 if (_internal_metadata_.have_unknown_fields()) {
12762 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 12720 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
12763 unknown_fields(), output); 12721 unknown_fields(), output);
12764 } 12722 }
12765 // @@protoc_insertion_point(serialize_end:google.protobuf.UninterpretedOption) 12723 // @@protoc_insertion_point(serialize_end:google.protobuf.UninterpretedOption. NamePart)
12766 } 12724 }
12767 12725
12768 ::google::protobuf::uint8* UninterpretedOption::SerializeWithCachedSizesToArray( 12726 ::google::protobuf::uint8* UninterpretedOption_NamePart::InternalSerializeWithCa chedSizesToArray(
12769 ::google::protobuf::uint8* target) const { 12727 bool deterministic, ::google::protobuf::uint8* target) const {
12770 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Uninterpr etedOption) 12728 (void)deterministic; // Unused
12771 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; 12729 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Uninterpr etedOption.NamePart)
12772 for (unsigned int i = 0, n = this->name_size(); i < n; i++) { 12730 // required string name_part = 1;
12773 target = ::google::protobuf::internal::WireFormatLite:: 12731 if (has_name_part()) {
12774 WriteMessageNoVirtualToArray( 12732 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
12775 2, this->name(i), target); 12733 this->name_part().data(), this->name_part().length(),
12734 ::google::protobuf::internal::WireFormat::SERIALIZE,
12735 "google.protobuf.UninterpretedOption.NamePart.name_part");
12736 target =
12737 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
12738 1, this->name_part(), target);
12776 } 12739 }
12777 12740
12778 // optional string identifier_value = 3; 12741 // required bool is_extension = 2;
12779 if (has_identifier_value()) { 12742 if (has_is_extension()) {
12780 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 12743 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, t his->is_extension(), target);
12781 this->identifier_value().data(), this->identifier_value().length(),
12782 ::google::protobuf::internal::WireFormat::SERIALIZE,
12783 "google.protobuf.UninterpretedOption.identifier_value");
12784 target =
12785 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
12786 3, this->identifier_value(), target);
12787 }
12788
12789 // optional uint64 positive_int_value = 4;
12790 if (has_positive_int_value()) {
12791 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->positive_int_value(), target);
12792 }
12793
12794 // optional int64 negative_int_value = 5;
12795 if (has_negative_int_value()) {
12796 target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(5, this->negative_int_value(), target);
12797 }
12798
12799 // optional double double_value = 6;
12800 if (has_double_value()) {
12801 target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(6, this->double_value(), target);
12802 }
12803
12804 // optional bytes string_value = 7;
12805 if (has_string_value()) {
12806 target =
12807 ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
12808 7, this->string_value(), target);
12809 }
12810
12811 // optional string aggregate_value = 8;
12812 if (has_aggregate_value()) {
12813 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
12814 this->aggregate_value().data(), this->aggregate_value().length(),
12815 ::google::protobuf::internal::WireFormat::SERIALIZE,
12816 "google.protobuf.UninterpretedOption.aggregate_value");
12817 target =
12818 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
12819 8, this->aggregate_value(), target);
12820 } 12744 }
12821 12745
12822 if (_internal_metadata_.have_unknown_fields()) { 12746 if (_internal_metadata_.have_unknown_fields()) {
12823 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 12747 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
12824 unknown_fields(), target); 12748 unknown_fields(), target);
12825 } 12749 }
12826 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Uninterpret edOption) 12750 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Uninterpret edOption.NamePart)
12827 return target; 12751 return target;
12828 } 12752 }
12829 12753
12830 int UninterpretedOption::ByteSize() const { 12754 size_t UninterpretedOption_NamePart::RequiredFieldsByteSizeFallback() const {
12831 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Uninterprete dOption) 12755 // @@protoc_insertion_point(required_fields_byte_size_fallback_start:google.prot obuf.UninterpretedOption.NamePart)
12832 int total_size = 0; 12756 size_t total_size = 0;
12833 12757
12834 if (_has_bits_[1 / 32] & 126u) { 12758 if (has_name_part()) {
12835 // optional string identifier_value = 3; 12759 // required string name_part = 1;
12836 if (has_identifier_value()) { 12760 total_size += 1 +
12837 total_size += 1 + 12761 ::google::protobuf::internal::WireFormatLite::StringSize(
12838 ::google::protobuf::internal::WireFormatLite::StringSize( 12762 this->name_part());
12839 this->identifier_value()); 12763 }
12840 }
12841 12764
12842 // optional uint64 positive_int_value = 4; 12765 if (has_is_extension()) {
12843 if (has_positive_int_value()) { 12766 // required bool is_extension = 2;
12844 total_size += 1 + 12767 total_size += 1 + 1;
12845 ::google::protobuf::internal::WireFormatLite::UInt64Size( 12768 }
12846 this->positive_int_value());
12847 }
12848 12769
12849 // optional int64 negative_int_value = 5; 12770 return total_size;
12850 if (has_negative_int_value()) { 12771 }
12851 total_size += 1 + 12772 size_t UninterpretedOption_NamePart::ByteSizeLong() const {
12852 ::google::protobuf::internal::WireFormatLite::Int64Size( 12773 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Uninterprete dOption.NamePart)
12853 this->negative_int_value()); 12774 size_t total_size = 0;
12854 }
12855
12856 // optional double double_value = 6;
12857 if (has_double_value()) {
12858 total_size += 1 + 8;
12859 }
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
12875 }
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 12775
12884 if (_internal_metadata_.have_unknown_fields()) { 12776 if (_internal_metadata_.have_unknown_fields()) {
12885 total_size += 12777 total_size +=
12886 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( 12778 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
12887 unknown_fields()); 12779 unknown_fields());
12888 } 12780 }
12781 if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required field s are present.
12782 // required string name_part = 1;
12783 total_size += 1 +
12784 ::google::protobuf::internal::WireFormatLite::StringSize(
12785 this->name_part());
12786
12787 // required bool is_extension = 2;
12788 total_size += 1 + 1;
12789
12790 } else {
12791 total_size += RequiredFieldsByteSizeFallback();
12792 }
12793 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
12889 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 12794 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12890 _cached_size_ = total_size; 12795 _cached_size_ = cached_size;
12891 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 12796 GOOGLE_SAFE_CONCURRENT_WRITES_END();
12892 return total_size; 12797 return total_size;
12893 } 12798 }
12894 12799
12895 void UninterpretedOption::MergeFrom(const ::google::protobuf::Message& from) { 12800 void UninterpretedOption_NamePart::MergeFrom(const ::google::protobuf::Message& from) {
12896 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Uninter pretedOption) 12801 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Uninter pretedOption.NamePart)
12897 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 12802 GOOGLE_DCHECK_NE(&from, this);
12898 const UninterpretedOption* source = 12803 const UninterpretedOption_NamePart* source =
12899 ::google::protobuf::internal::DynamicCastToGenerated<const UninterpretedOp tion>( 12804 ::google::protobuf::internal::DynamicCastToGenerated<const UninterpretedOp tion_NamePart>(
12900 &from); 12805 &from);
12901 if (source == NULL) { 12806 if (source == NULL) {
12902 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.U ninterpretedOption) 12807 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.U ninterpretedOption.NamePart)
12903 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 12808 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
12904 } else { 12809 } else {
12905 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.UninterpretedOption) 12810 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.UninterpretedOption.NamePart)
12906 MergeFrom(*source); 12811 MergeFrom(*source);
12907 } 12812 }
12908 } 12813 }
12909 12814
12910 void UninterpretedOption::MergeFrom(const UninterpretedOption& from) { 12815 void UninterpretedOption_NamePart::MergeFrom(const UninterpretedOption_NamePart& from) {
12911 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Unin terpretedOption) 12816 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Unin terpretedOption.NamePart)
12912 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 12817 GOOGLE_DCHECK_NE(&from, this);
12913 name_.MergeFrom(from.name_); 12818 _internal_metadata_.MergeFrom(from._internal_metadata_);
12914 if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { 12819 if (from._has_bits_[0 / 32] & 3u) {
12915 if (from.has_identifier_value()) { 12820 if (from.has_name_part()) {
12916 set_has_identifier_value(); 12821 set_has_name_part();
12917 identifier_value_.AssignWithDefault(&::google::protobuf::internal::GetEmpt yStringAlreadyInited(), from.identifier_value_); 12822 name_part_.AssignWithDefault(&::google::protobuf::internal::GetEmptyString AlreadyInited(), from.name_part_);
12918 } 12823 }
12919 if (from.has_positive_int_value()) { 12824 if (from.has_is_extension()) {
12920 set_positive_int_value(from.positive_int_value()); 12825 set_is_extension(from.is_extension());
12921 } 12826 }
12922 if (from.has_negative_int_value()) {
12923 set_negative_int_value(from.negative_int_value());
12924 }
12925 if (from.has_double_value()) {
12926 set_double_value(from.double_value());
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());
12939 } 12827 }
12940 } 12828 }
12941 12829
12942 void UninterpretedOption::CopyFrom(const ::google::protobuf::Message& from) { 12830 void UninterpretedOption_NamePart::CopyFrom(const ::google::protobuf::Message& f rom) {
12943 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Uninterp retedOption) 12831 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Uninterp retedOption.NamePart)
12944 if (&from == this) return; 12832 if (&from == this) return;
12945 Clear(); 12833 Clear();
12946 MergeFrom(from); 12834 MergeFrom(from);
12947 } 12835 }
12948 12836
12949 void UninterpretedOption::CopyFrom(const UninterpretedOption& from) { 12837 void UninterpretedOption_NamePart::CopyFrom(const UninterpretedOption_NamePart& from) {
12950 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Unint erpretedOption) 12838 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Unint erpretedOption.NamePart)
12951 if (&from == this) return; 12839 if (&from == this) return;
12952 Clear(); 12840 Clear();
12953 MergeFrom(from); 12841 MergeFrom(from);
12954 } 12842 }
12955 12843
12956 bool UninterpretedOption::IsInitialized() const { 12844 bool UninterpretedOption_NamePart::IsInitialized() const {
12957 12845 if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
12958 if (!::google::protobuf::internal::AllAreInitialized(this->name())) return fal se;
12959 return true; 12846 return true;
12960 } 12847 }
12961 12848
12962 void UninterpretedOption::Swap(UninterpretedOption* other) { 12849 void UninterpretedOption_NamePart::Swap(UninterpretedOption_NamePart* other) {
12963 if (other == this) return; 12850 if (other == this) return;
12964 InternalSwap(other); 12851 InternalSwap(other);
12965 } 12852 }
12966 void UninterpretedOption::InternalSwap(UninterpretedOption* other) { 12853 void UninterpretedOption_NamePart::InternalSwap(UninterpretedOption_NamePart* ot her) {
12967 name_.UnsafeArenaSwap(&other->name_); 12854 name_part_.Swap(&other->name_part_);
12968 identifier_value_.Swap(&other->identifier_value_); 12855 std::swap(is_extension_, other->is_extension_);
12969 std::swap(positive_int_value_, other->positive_int_value_);
12970 std::swap(negative_int_value_, other->negative_int_value_);
12971 std::swap(double_value_, other->double_value_);
12972 string_value_.Swap(&other->string_value_);
12973 aggregate_value_.Swap(&other->aggregate_value_);
12974 std::swap(_has_bits_[0], other->_has_bits_[0]); 12856 std::swap(_has_bits_[0], other->_has_bits_[0]);
12975 _internal_metadata_.Swap(&other->_internal_metadata_); 12857 _internal_metadata_.Swap(&other->_internal_metadata_);
12976 std::swap(_cached_size_, other->_cached_size_); 12858 std::swap(_cached_size_, other->_cached_size_);
12977 } 12859 }
12978 12860
12979 ::google::protobuf::Metadata UninterpretedOption::GetMetadata() const { 12861 ::google::protobuf::Metadata UninterpretedOption_NamePart::GetMetadata() const {
12980 protobuf_AssignDescriptorsOnce(); 12862 protobuf_AssignDescriptorsOnce();
12981 ::google::protobuf::Metadata metadata; 12863 return file_level_metadata[19];
12982 metadata.descriptor = UninterpretedOption_descriptor_;
12983 metadata.reflection = UninterpretedOption_reflection_;
12984 return metadata;
12985 } 12864 }
12986 12865
12987 #if PROTOBUF_INLINE_NOT_IN_HEADERS 12866 #if PROTOBUF_INLINE_NOT_IN_HEADERS
12988 // UninterpretedOption_NamePart 12867 // UninterpretedOption_NamePart
12989 12868
12990 // required string name_part = 1; 12869 // required string name_part = 1;
12991 bool UninterpretedOption_NamePart::has_name_part() const { 12870 bool UninterpretedOption_NamePart::has_name_part() const {
12992 return (_has_bits_[0] & 0x00000001u) != 0; 12871 return (_has_bits_[0] & 0x00000001u) != 0;
12993 } 12872 }
12994 void UninterpretedOption_NamePart::set_has_name_part() { 12873 void UninterpretedOption_NamePart::set_has_name_part() {
12995 _has_bits_[0] |= 0x00000001u; 12874 _has_bits_[0] |= 0x00000001u;
12996 } 12875 }
12997 void UninterpretedOption_NamePart::clear_has_name_part() { 12876 void UninterpretedOption_NamePart::clear_has_name_part() {
12998 _has_bits_[0] &= ~0x00000001u; 12877 _has_bits_[0] &= ~0x00000001u;
12999 } 12878 }
13000 void UninterpretedOption_NamePart::clear_name_part() { 12879 void UninterpretedOption_NamePart::clear_name_part() {
13001 name_part_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited()); 12880 name_part_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited());
13002 clear_has_name_part(); 12881 clear_has_name_part();
13003 } 12882 }
13004 const ::std::string& UninterpretedOption_NamePart::name_part() const { 12883 const ::std::string& UninterpretedOption_NamePart::name_part() const {
13005 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.Name Part.name_part) 12884 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.Name Part.name_part)
13006 return name_part_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited()); 12885 return name_part_.GetNoArena();
13007 } 12886 }
13008 void UninterpretedOption_NamePart::set_name_part(const ::std::string& value) { 12887 void UninterpretedOption_NamePart::set_name_part(const ::std::string& value) {
13009 set_has_name_part(); 12888 set_has_name_part();
13010 name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), value); 12889 name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), value);
13011 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.Name Part.name_part) 12890 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.Name Part.name_part)
13012 } 12891 }
13013 void UninterpretedOption_NamePart::set_name_part(const char* value) { 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) {
13014 set_has_name_part(); 12901 set_has_name_part();
13015 name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), ::std::string(value)); 12902 name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), ::std::string(value));
13016 // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption .NamePart.name_part) 12903 // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption .NamePart.name_part)
13017 } 12904 }
13018 void UninterpretedOption_NamePart::set_name_part(const char* value, size_t size ) { 12905 void UninterpretedOption_NamePart::set_name_part(const char* value, size_t size) {
13019 set_has_name_part(); 12906 set_has_name_part();
13020 name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), 12907 name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(),
13021 ::std::string(reinterpret_cast<const char*>(value), size)); 12908 ::std::string(reinterpret_cast<const char*>(value), size));
13022 // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOpt ion.NamePart.name_part) 12909 // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOpt ion.NamePart.name_part)
13023 } 12910 }
13024 ::std::string* UninterpretedOption_NamePart::mutable_name_part() { 12911 ::std::string* UninterpretedOption_NamePart::mutable_name_part() {
13025 set_has_name_part(); 12912 set_has_name_part();
13026 // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption. NamePart.name_part) 12913 // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption. NamePart.name_part)
13027 return name_part_.MutableNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited()); 12914 return name_part_.MutableNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited());
13028 } 12915 }
13029 ::std::string* UninterpretedOption_NamePart::release_name_part() { 12916 ::std::string* UninterpretedOption_NamePart::release_name_part() {
13030 // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption. NamePart.name_part) 12917 // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption. NamePart.name_part)
13031 clear_has_name_part(); 12918 clear_has_name_part();
13032 return name_part_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited()); 12919 return name_part_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited());
13033 } 12920 }
13034 void UninterpretedOption_NamePart::set_allocated_name_part(::std::string* name_ part) { 12921 void UninterpretedOption_NamePart::set_allocated_name_part(::std::string* name_p art) {
13035 if (name_part != NULL) { 12922 if (name_part != NULL) {
13036 set_has_name_part(); 12923 set_has_name_part();
13037 } else { 12924 } else {
13038 clear_has_name_part(); 12925 clear_has_name_part();
13039 } 12926 }
13040 name_part_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited(), name_part); 12927 name_part_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited(), name_part);
13041 // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedO ption.NamePart.name_part) 12928 // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedO ption.NamePart.name_part)
13042 } 12929 }
13043 12930
13044 // required bool is_extension = 2; 12931 // required bool is_extension = 2;
13045 bool UninterpretedOption_NamePart::has_is_extension() const { 12932 bool UninterpretedOption_NamePart::has_is_extension() const {
13046 return (_has_bits_[0] & 0x00000002u) != 0; 12933 return (_has_bits_[0] & 0x00000002u) != 0;
13047 } 12934 }
13048 void UninterpretedOption_NamePart::set_has_is_extension() { 12935 void UninterpretedOption_NamePart::set_has_is_extension() {
13049 _has_bits_[0] |= 0x00000002u; 12936 _has_bits_[0] |= 0x00000002u;
13050 } 12937 }
13051 void UninterpretedOption_NamePart::clear_has_is_extension() { 12938 void UninterpretedOption_NamePart::clear_has_is_extension() {
13052 _has_bits_[0] &= ~0x00000002u; 12939 _has_bits_[0] &= ~0x00000002u;
13053 } 12940 }
13054 void UninterpretedOption_NamePart::clear_is_extension() { 12941 void UninterpretedOption_NamePart::clear_is_extension() {
13055 is_extension_ = false; 12942 is_extension_ = false;
13056 clear_has_is_extension(); 12943 clear_has_is_extension();
13057 } 12944 }
13058 bool UninterpretedOption_NamePart::is_extension() const { 12945 bool UninterpretedOption_NamePart::is_extension() const {
13059 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.Name Part.is_extension) 12946 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.Name Part.is_extension)
13060 return is_extension_; 12947 return is_extension_;
13061 } 12948 }
13062 void UninterpretedOption_NamePart::set_is_extension(bool value) { 12949 void UninterpretedOption_NamePart::set_is_extension(bool value) {
13063 set_has_is_extension(); 12950 set_has_is_extension();
13064 is_extension_ = value; 12951 is_extension_ = value;
13065 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.Name Part.is_extension) 12952 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.Name Part.is_extension)
13066 } 12953 }
13067 12954
13068 // -------------------------------------------------------------------
13069
13070 // UninterpretedOption
13071
13072 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
13073 int UninterpretedOption::name_size() const {
13074 return name_.size();
13075 }
13076 void UninterpretedOption::clear_name() {
13077 name_.Clear();
13078 }
13079 const ::google::protobuf::UninterpretedOption_NamePart& UninterpretedOption::nam e(int index) const {
13080 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.name )
13081 return name_.Get(index);
13082 }
13083 ::google::protobuf::UninterpretedOption_NamePart* UninterpretedOption::mutable_n ame(int index) {
13084 // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption. name)
13085 return name_.Mutable(index);
13086 }
13087 ::google::protobuf::UninterpretedOption_NamePart* UninterpretedOption::add_name( ) {
13088 // @@protoc_insertion_point(field_add:google.protobuf.UninterpretedOption.name )
13089 return name_.Add();
13090 }
13091 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_Na mePart >*
13092 UninterpretedOption::mutable_name() {
13093 // @@protoc_insertion_point(field_mutable_list:google.protobuf.UninterpretedOp tion.name)
13094 return &name_;
13095 }
13096 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt ion_NamePart >&
13097 UninterpretedOption::name() const {
13098 // @@protoc_insertion_point(field_list:google.protobuf.UninterpretedOption.nam e)
13099 return name_;
13100 }
13101
13102 // optional string identifier_value = 3;
13103 bool UninterpretedOption::has_identifier_value() const {
13104 return (_has_bits_[0] & 0x00000002u) != 0;
13105 }
13106 void UninterpretedOption::set_has_identifier_value() {
13107 _has_bits_[0] |= 0x00000002u;
13108 }
13109 void UninterpretedOption::clear_has_identifier_value() {
13110 _has_bits_[0] &= ~0x00000002u;
13111 }
13112 void UninterpretedOption::clear_identifier_value() {
13113 identifier_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyS tringAlreadyInited());
13114 clear_has_identifier_value();
13115 }
13116 const ::std::string& UninterpretedOption::identifier_value() const {
13117 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.iden tifier_value)
13118 return identifier_value_.GetNoArena(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited());
13119 }
13120 void UninterpretedOption::set_identifier_value(const ::std::string& value) {
13121 set_has_identifier_value();
13122 identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), value);
13123 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.iden tifier_value)
13124 }
13125 void UninterpretedOption::set_identifier_value(const char* value) {
13126 set_has_identifier_value();
13127 identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), ::std::string(value));
13128 // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption .identifier_value)
13129 }
13130 void UninterpretedOption::set_identifier_value(const char* value, size_t size) {
13131 set_has_identifier_value();
13132 identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(),
13133 ::std::string(reinterpret_cast<const char*>(value), size));
13134 // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOpt ion.identifier_value)
13135 }
13136 ::std::string* UninterpretedOption::mutable_identifier_value() {
13137 set_has_identifier_value();
13138 // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption. identifier_value)
13139 return identifier_value_.MutableNoArena(&::google::protobuf::internal::GetEmpt yStringAlreadyInited());
13140 }
13141 ::std::string* UninterpretedOption::release_identifier_value() {
13142 // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption. identifier_value)
13143 clear_has_identifier_value();
13144 return identifier_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmpt yStringAlreadyInited());
13145 }
13146 void UninterpretedOption::set_allocated_identifier_value(::std::string* identif ier_value) {
13147 if (identifier_value != NULL) {
13148 set_has_identifier_value();
13149 } else {
13150 clear_has_identifier_value();
13151 }
13152 identifier_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyS tringAlreadyInited(), identifier_value);
13153 // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedO ption.identifier_value)
13154 }
13155
13156 // optional uint64 positive_int_value = 4;
13157 bool UninterpretedOption::has_positive_int_value() const {
13158 return (_has_bits_[0] & 0x00000004u) != 0;
13159 }
13160 void UninterpretedOption::set_has_positive_int_value() {
13161 _has_bits_[0] |= 0x00000004u;
13162 }
13163 void UninterpretedOption::clear_has_positive_int_value() {
13164 _has_bits_[0] &= ~0x00000004u;
13165 }
13166 void UninterpretedOption::clear_positive_int_value() {
13167 positive_int_value_ = GOOGLE_ULONGLONG(0);
13168 clear_has_positive_int_value();
13169 }
13170 ::google::protobuf::uint64 UninterpretedOption::positive_int_value() const {
13171 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.posi tive_int_value)
13172 return positive_int_value_;
13173 }
13174 void UninterpretedOption::set_positive_int_value(::google::protobuf::uint64 val ue) {
13175 set_has_positive_int_value();
13176 positive_int_value_ = value;
13177 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.posi tive_int_value)
13178 }
13179
13180 // optional int64 negative_int_value = 5;
13181 bool UninterpretedOption::has_negative_int_value() const {
13182 return (_has_bits_[0] & 0x00000008u) != 0;
13183 }
13184 void UninterpretedOption::set_has_negative_int_value() {
13185 _has_bits_[0] |= 0x00000008u;
13186 }
13187 void UninterpretedOption::clear_has_negative_int_value() {
13188 _has_bits_[0] &= ~0x00000008u;
13189 }
13190 void UninterpretedOption::clear_negative_int_value() {
13191 negative_int_value_ = GOOGLE_LONGLONG(0);
13192 clear_has_negative_int_value();
13193 }
13194 ::google::protobuf::int64 UninterpretedOption::negative_int_value() const {
13195 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.nega tive_int_value)
13196 return negative_int_value_;
13197 }
13198 void UninterpretedOption::set_negative_int_value(::google::protobuf::int64 valu e) {
13199 set_has_negative_int_value();
13200 negative_int_value_ = value;
13201 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.nega tive_int_value)
13202 }
13203
13204 // optional double double_value = 6;
13205 bool UninterpretedOption::has_double_value() const {
13206 return (_has_bits_[0] & 0x00000010u) != 0;
13207 }
13208 void UninterpretedOption::set_has_double_value() {
13209 _has_bits_[0] |= 0x00000010u;
13210 }
13211 void UninterpretedOption::clear_has_double_value() {
13212 _has_bits_[0] &= ~0x00000010u;
13213 }
13214 void UninterpretedOption::clear_double_value() {
13215 double_value_ = 0;
13216 clear_has_double_value();
13217 }
13218 double UninterpretedOption::double_value() const {
13219 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.doub le_value)
13220 return double_value_;
13221 }
13222 void UninterpretedOption::set_double_value(double value) {
13223 set_has_double_value();
13224 double_value_ = value;
13225 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.doub le_value)
13226 }
13227
13228 // optional bytes string_value = 7;
13229 bool UninterpretedOption::has_string_value() const {
13230 return (_has_bits_[0] & 0x00000020u) != 0;
13231 }
13232 void UninterpretedOption::set_has_string_value() {
13233 _has_bits_[0] |= 0x00000020u;
13234 }
13235 void UninterpretedOption::clear_has_string_value() {
13236 _has_bits_[0] &= ~0x00000020u;
13237 }
13238 void UninterpretedOption::clear_string_value() {
13239 string_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited());
13240 clear_has_string_value();
13241 }
13242 const ::std::string& UninterpretedOption::string_value() const {
13243 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.stri ng_value)
13244 return string_value_.GetNoArena(&::google::protobuf::internal::GetEmptyStringA lreadyInited());
13245 }
13246 void UninterpretedOption::set_string_value(const ::std::string& value) {
13247 set_has_string_value();
13248 string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI nited(), value);
13249 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.stri ng_value)
13250 }
13251 void UninterpretedOption::set_string_value(const char* value) {
13252 set_has_string_value();
13253 string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI nited(), ::std::string(value));
13254 // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption .string_value)
13255 }
13256 void UninterpretedOption::set_string_value(const void* value, size_t size) {
13257 set_has_string_value();
13258 string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI nited(),
13259 ::std::string(reinterpret_cast<const char*>(value), size));
13260 // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOpt ion.string_value)
13261 }
13262 ::std::string* UninterpretedOption::mutable_string_value() {
13263 set_has_string_value();
13264 // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption. string_value)
13265 return string_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited());
13266 }
13267 ::std::string* UninterpretedOption::release_string_value() {
13268 // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption. string_value)
13269 clear_has_string_value();
13270 return string_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited());
13271 }
13272 void UninterpretedOption::set_allocated_string_value(::std::string* string_valu e) {
13273 if (string_value != NULL) {
13274 set_has_string_value();
13275 } else {
13276 clear_has_string_value();
13277 }
13278 string_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited(), string_value);
13279 // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedO ption.string_value)
13280 }
13281
13282 // optional string aggregate_value = 8;
13283 bool UninterpretedOption::has_aggregate_value() const {
13284 return (_has_bits_[0] & 0x00000040u) != 0;
13285 }
13286 void UninterpretedOption::set_has_aggregate_value() {
13287 _has_bits_[0] |= 0x00000040u;
13288 }
13289 void UninterpretedOption::clear_has_aggregate_value() {
13290 _has_bits_[0] &= ~0x00000040u;
13291 }
13292 void UninterpretedOption::clear_aggregate_value() {
13293 aggregate_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptySt ringAlreadyInited());
13294 clear_has_aggregate_value();
13295 }
13296 const ::std::string& UninterpretedOption::aggregate_value() const {
13297 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.aggr egate_value)
13298 return aggregate_value_.GetNoArena(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited());
13299 }
13300 void UninterpretedOption::set_aggregate_value(const ::std::string& value) {
13301 set_has_aggregate_value();
13302 aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), value);
13303 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.aggr egate_value)
13304 }
13305 void UninterpretedOption::set_aggregate_value(const char* value) {
13306 set_has_aggregate_value();
13307 aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), ::std::string(value));
13308 // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption .aggregate_value)
13309 }
13310 void UninterpretedOption::set_aggregate_value(const char* value, size_t size) {
13311 set_has_aggregate_value();
13312 aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(),
13313 ::std::string(reinterpret_cast<const char*>(value), size));
13314 // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOpt ion.aggregate_value)
13315 }
13316 ::std::string* UninterpretedOption::mutable_aggregate_value() {
13317 set_has_aggregate_value();
13318 // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption. aggregate_value)
13319 return aggregate_value_.MutableNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited());
13320 }
13321 ::std::string* UninterpretedOption::release_aggregate_value() {
13322 // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption. aggregate_value)
13323 clear_has_aggregate_value();
13324 return aggregate_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited());
13325 }
13326 void UninterpretedOption::set_allocated_aggregate_value(::std::string* aggregat e_value) {
13327 if (aggregate_value != NULL) {
13328 set_has_aggregate_value();
13329 } else {
13330 clear_has_aggregate_value();
13331 }
13332 aggregate_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptySt ringAlreadyInited(), aggregate_value);
13333 // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedO ption.aggregate_value)
13334 }
13335
13336 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 12955 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
13337 12956
13338 // =================================================================== 12957 // ===================================================================
13339 12958
13340 #if !defined(_MSC_VER) || _MSC_VER >= 1900 12959 #if !defined(_MSC_VER) || _MSC_VER >= 1900
13341 const int SourceCodeInfo_Location::kPathFieldNumber; 12960 const int UninterpretedOption::kNameFieldNumber;
13342 const int SourceCodeInfo_Location::kSpanFieldNumber; 12961 const int UninterpretedOption::kIdentifierValueFieldNumber;
13343 const int SourceCodeInfo_Location::kLeadingCommentsFieldNumber; 12962 const int UninterpretedOption::kPositiveIntValueFieldNumber;
13344 const int SourceCodeInfo_Location::kTrailingCommentsFieldNumber; 12963 const int UninterpretedOption::kNegativeIntValueFieldNumber;
13345 const int SourceCodeInfo_Location::kLeadingDetachedCommentsFieldNumber; 12964 const int UninterpretedOption::kDoubleValueFieldNumber;
12965 const int UninterpretedOption::kStringValueFieldNumber;
12966 const int UninterpretedOption::kAggregateValueFieldNumber;
13346 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 12967 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
13347 12968
13348 SourceCodeInfo_Location::SourceCodeInfo_Location() 12969 UninterpretedOption::UninterpretedOption()
13349 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 12970 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
12971 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
12972 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
12973 }
13350 SharedCtor(); 12974 SharedCtor();
13351 // @@protoc_insertion_point(constructor:google.protobuf.SourceCodeInfo.Locatio n) 12975 // @@protoc_insertion_point(constructor:google.protobuf.UninterpretedOption)
13352 } 12976 }
13353 12977 UninterpretedOption::UninterpretedOption(const UninterpretedOption& from)
13354 void SourceCodeInfo_Location::InitAsDefaultInstance() {
13355 }
13356
13357 SourceCodeInfo_Location::SourceCodeInfo_Location(const SourceCodeInfo_Location& from)
13358 : ::google::protobuf::Message(), 12978 : ::google::protobuf::Message(),
13359 _internal_metadata_(NULL) { 12979 _internal_metadata_(NULL),
13360 SharedCtor(); 12980 _has_bits_(from._has_bits_),
13361 MergeFrom(from); 12981 _cached_size_(0),
13362 // @@protoc_insertion_point(copy_constructor:google.protobuf.SourceCodeInfo.Lo cation) 12982 name_(from.name_) {
13363 } 12983 _internal_metadata_.MergeFrom(from._internal_metadata_);
13364 12984 identifier_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited());
13365 void SourceCodeInfo_Location::SharedCtor() { 12985 if (from.has_identifier_value()) {
13366 ::google::protobuf::internal::GetEmptyString(); 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)
13000 }
13001
13002 void UninterpretedOption::SharedCtor() {
13367 _cached_size_ = 0; 13003 _cached_size_ = 0;
13368 leading_comments_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited()); 13004 identifier_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited());
13369 trailing_comments_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited()); 13005 string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAl readyInited());
13370 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 13006 aggregate_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited());
13371 } 13007 ::memset(&positive_int_value_, 0, reinterpret_cast<char*>(&double_value_) -
13372 13008 reinterpret_cast<char*>(&positive_int_value_) + sizeof(double_value_));
13373 SourceCodeInfo_Location::~SourceCodeInfo_Location() { 13009 }
13374 // @@protoc_insertion_point(destructor:google.protobuf.SourceCodeInfo.Location ) 13010
13011 UninterpretedOption::~UninterpretedOption() {
13012 // @@protoc_insertion_point(destructor:google.protobuf.UninterpretedOption)
13375 SharedDtor(); 13013 SharedDtor();
13376 } 13014 }
13377 13015
13378 void SourceCodeInfo_Location::SharedDtor() { 13016 void UninterpretedOption::SharedDtor() {
13379 leading_comments_.DestroyNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited()); 13017 identifier_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited());
13380 trailing_comments_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited()); 13018 string_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited());
13381 if (this != default_instance_) { 13019 aggregate_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringA lreadyInited());
13382 } 13020 }
13383 } 13021
13384 13022 void UninterpretedOption::SetCachedSize(int size) const {
13385 void SourceCodeInfo_Location::SetCachedSize(int size) const {
13386 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 13023 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13387 _cached_size_ = size; 13024 _cached_size_ = size;
13388 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 13025 GOOGLE_SAFE_CONCURRENT_WRITES_END();
13389 } 13026 }
13390 const ::google::protobuf::Descriptor* SourceCodeInfo_Location::descriptor() { 13027 const ::google::protobuf::Descriptor* UninterpretedOption::descriptor() {
13391 protobuf_AssignDescriptorsOnce(); 13028 protobuf_AssignDescriptorsOnce();
13392 return SourceCodeInfo_Location_descriptor_; 13029 return file_level_metadata[20].descriptor;
13393 } 13030 }
13394 13031
13395 const SourceCodeInfo_Location& SourceCodeInfo_Location::default_instance() { 13032 const UninterpretedOption& UninterpretedOption::default_instance() {
13396 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 13033 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
13397 return *default_instance_; 13034 return *internal_default_instance();
13398 } 13035 }
13399 13036
13400 SourceCodeInfo_Location* SourceCodeInfo_Location::default_instance_ = NULL; 13037 UninterpretedOption* UninterpretedOption::New(::google::protobuf::Arena* arena) const {
13401 13038 UninterpretedOption* n = new UninterpretedOption;
13402 SourceCodeInfo_Location* SourceCodeInfo_Location::New(::google::protobuf::Arena* arena) const {
13403 SourceCodeInfo_Location* n = new SourceCodeInfo_Location;
13404 if (arena != NULL) { 13039 if (arena != NULL) {
13405 arena->Own(n); 13040 arena->Own(n);
13406 } 13041 }
13407 return n; 13042 return n;
13408 } 13043 }
13409 13044
13410 void SourceCodeInfo_Location::Clear() { 13045 void UninterpretedOption::Clear() {
13411 // @@protoc_insertion_point(message_clear_start:google.protobuf.SourceCodeInfo.L ocation) 13046 // @@protoc_insertion_point(message_clear_start:google.protobuf.UninterpretedOpt ion)
13412 if (_has_bits_[0 / 32] & 12u) { 13047 name_.Clear();
13413 if (has_leading_comments()) { 13048 if (_has_bits_[0 / 32] & 7u) {
13414 leading_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEm ptyStringAlreadyInited()); 13049 if (has_identifier_value()) {
13050 GOOGLE_DCHECK(!identifier_value_.IsDefault(&::google::protobuf::internal:: GetEmptyStringAlreadyInited()));
13051 (*identifier_value_.UnsafeRawStringPointer())->clear();
13415 } 13052 }
13416 if (has_trailing_comments()) { 13053 if (has_string_value()) {
13417 trailing_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetE mptyStringAlreadyInited()); 13054 GOOGLE_DCHECK(!string_value_.IsDefault(&::google::protobuf::internal::GetE mptyStringAlreadyInited()));
13055 (*string_value_.UnsafeRawStringPointer())->clear();
13418 } 13056 }
13419 } 13057 if (has_aggregate_value()) {
13420 path_.Clear(); 13058 GOOGLE_DCHECK(!aggregate_value_.IsDefault(&::google::protobuf::internal::G etEmptyStringAlreadyInited()));
13421 span_.Clear(); 13059 (*aggregate_value_.UnsafeRawStringPointer())->clear();
13422 leading_detached_comments_.Clear(); 13060 }
13423 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 13061 }
13424 if (_internal_metadata_.have_unknown_fields()) { 13062 if (_has_bits_[0 / 32] & 56u) {
13425 mutable_unknown_fields()->Clear(); 13063 ::memset(&positive_int_value_, 0, reinterpret_cast<char*>(&double_value_) -
13426 } 13064 reinterpret_cast<char*>(&positive_int_value_) + sizeof(double_value_));
13427 } 13065 }
13428 13066 _has_bits_.Clear();
13429 bool SourceCodeInfo_Location::MergePartialFromCodedStream( 13067 _internal_metadata_.Clear();
13068 }
13069
13070 bool UninterpretedOption::MergePartialFromCodedStream(
13430 ::google::protobuf::io::CodedInputStream* input) { 13071 ::google::protobuf::io::CodedInputStream* input) {
13431 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 13072 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
13432 ::google::protobuf::uint32 tag; 13073 ::google::protobuf::uint32 tag;
13433 // @@protoc_insertion_point(parse_start:google.protobuf.SourceCodeInfo.Locatio n) 13074 // @@protoc_insertion_point(parse_start:google.protobuf.UninterpretedOption)
13434 for (;;) { 13075 for (;;) {
13435 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127); 13076 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u);
13436 tag = p.first; 13077 tag = p.first;
13437 if (!p.second) goto handle_unusual; 13078 if (!p.second) goto handle_unusual;
13438 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 13079 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
13439 // repeated int32 path = 1 [packed = true]; 13080 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
13440 case 1: {
13441 if (tag == 10) {
13442 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive <
13443 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
13444 input, this->mutable_path())));
13445 } else if (tag == 8) {
13446 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimiti veNoInline<
13447 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
13448 1, 10, input, this->mutable_path())));
13449 } else {
13450 goto handle_unusual;
13451 }
13452 if (input->ExpectTag(18)) goto parse_span;
13453 break;
13454 }
13455
13456 // repeated int32 span = 2 [packed = true];
13457 case 2: { 13081 case 2: {
13458 if (tag == 18) { 13082 if (tag == 18u) {
13459 parse_span: 13083 DO_(input->IncrementRecursionDepth());
13460 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive < 13084 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
13461 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>( 13085 input, add_name()));
13462 input, this->mutable_span()))); 13086 } else {
13463 } else if (tag == 16) { 13087 goto handle_unusual;
13464 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimiti veNoInline< 13088 }
13465 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>( 13089 input->UnsafeDecrementRecursionDepth();
13466 1, 18, input, this->mutable_span()))); 13090 break;
13467 } else { 13091 }
13468 goto handle_unusual; 13092
13469 } 13093 // optional string identifier_value = 3;
13470 if (input->ExpectTag(26)) goto parse_leading_comments;
13471 break;
13472 }
13473
13474 // optional string leading_comments = 3;
13475 case 3: { 13094 case 3: {
13476 if (tag == 26) { 13095 if (tag == 26u) {
13477 parse_leading_comments:
13478 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 13096 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
13479 input, this->mutable_leading_comments())); 13097 input, this->mutable_identifier_value()));
13480 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 13098 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13481 this->leading_comments().data(), this->leading_comments().length(), 13099 this->identifier_value().data(), this->identifier_value().length(),
13482 ::google::protobuf::internal::WireFormat::PARSE, 13100 ::google::protobuf::internal::WireFormat::PARSE,
13483 "google.protobuf.SourceCodeInfo.Location.leading_comments"); 13101 "google.protobuf.UninterpretedOption.identifier_value");
13484 } else { 13102 } else {
13485 goto handle_unusual; 13103 goto handle_unusual;
13486 } 13104 }
13487 if (input->ExpectTag(34)) goto parse_trailing_comments; 13105 break;
13488 break; 13106 }
13489 } 13107
13490 13108 // optional uint64 positive_int_value = 4;
13491 // optional string trailing_comments = 4;
13492 case 4: { 13109 case 4: {
13493 if (tag == 34) { 13110 if (tag == 32u) {
13494 parse_trailing_comments: 13111 set_has_positive_int_value();
13112 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
13113 ::google::protobuf::uint64, ::google::protobuf::internal::Wir eFormatLite::TYPE_UINT64>(
13114 input, &positive_int_value_)));
13115 } else {
13116 goto handle_unusual;
13117 }
13118 break;
13119 }
13120
13121 // optional int64 negative_int_value = 5;
13122 case 5: {
13123 if (tag == 40u) {
13124 set_has_negative_int_value();
13125 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
13126 ::google::protobuf::int64, ::google::protobuf::internal::Wire FormatLite::TYPE_INT64>(
13127 input, &negative_int_value_)));
13128 } else {
13129 goto handle_unusual;
13130 }
13131 break;
13132 }
13133
13134 // optional double double_value = 6;
13135 case 6: {
13136 if (tag == 49u) {
13137 set_has_double_value();
13138 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
13139 double, ::google::protobuf::internal::WireFormatLite::TYPE_DO UBLE>(
13140 input, &double_value_)));
13141 } else {
13142 goto handle_unusual;
13143 }
13144 break;
13145 }
13146
13147 // optional bytes string_value = 7;
13148 case 7: {
13149 if (tag == 58u) {
13150 DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
13151 input, this->mutable_string_value()));
13152 } else {
13153 goto handle_unusual;
13154 }
13155 break;
13156 }
13157
13158 // optional string aggregate_value = 8;
13159 case 8: {
13160 if (tag == 66u) {
13495 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 13161 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
13496 input, this->mutable_trailing_comments())); 13162 input, this->mutable_aggregate_value()));
13497 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 13163 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13498 this->trailing_comments().data(), this->trailing_comments().length() , 13164 this->aggregate_value().data(), this->aggregate_value().length(),
13499 ::google::protobuf::internal::WireFormat::PARSE, 13165 ::google::protobuf::internal::WireFormat::PARSE,
13500 "google.protobuf.SourceCodeInfo.Location.trailing_comments"); 13166 "google.protobuf.UninterpretedOption.aggregate_value");
13501 } else { 13167 } else {
13502 goto handle_unusual; 13168 goto handle_unusual;
13503 } 13169 }
13504 if (input->ExpectTag(50)) goto parse_leading_detached_comments; 13170 break;
13505 break; 13171 }
13506 } 13172
13507
13508 // repeated string leading_detached_comments = 6;
13509 case 6: {
13510 if (tag == 50) {
13511 parse_leading_detached_comments:
13512 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
13513 input, this->add_leading_detached_comments()));
13514 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13515 this->leading_detached_comments(this->leading_detached_comments_size () - 1).data(),
13516 this->leading_detached_comments(this->leading_detached_comments_size () - 1).length(),
13517 ::google::protobuf::internal::WireFormat::PARSE,
13518 "google.protobuf.SourceCodeInfo.Location.leading_detached_comments") ;
13519 } else {
13520 goto handle_unusual;
13521 }
13522 if (input->ExpectTag(50)) goto parse_leading_detached_comments;
13523 if (input->ExpectAtEnd()) goto success;
13524 break;
13525 }
13526
13527 default: { 13173 default: {
13528 handle_unusual: 13174 handle_unusual:
13529 if (tag == 0 || 13175 if (tag == 0 ||
13530 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 13176 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
13531 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 13177 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
13532 goto success; 13178 goto success;
13533 } 13179 }
13534 DO_(::google::protobuf::internal::WireFormat::SkipField( 13180 DO_(::google::protobuf::internal::WireFormat::SkipField(
13535 input, tag, mutable_unknown_fields())); 13181 input, tag, mutable_unknown_fields()));
13536 break; 13182 break;
13537 } 13183 }
13538 } 13184 }
13539 } 13185 }
13540 success: 13186 success:
13541 // @@protoc_insertion_point(parse_success:google.protobuf.SourceCodeInfo.Locat ion) 13187 // @@protoc_insertion_point(parse_success:google.protobuf.UninterpretedOption)
13542 return true; 13188 return true;
13543 failure: 13189 failure:
13544 // @@protoc_insertion_point(parse_failure:google.protobuf.SourceCodeInfo.Locat ion) 13190 // @@protoc_insertion_point(parse_failure:google.protobuf.UninterpretedOption)
13545 return false; 13191 return false;
13546 #undef DO_ 13192 #undef DO_
13547 } 13193 }
13548 13194
13549 void SourceCodeInfo_Location::SerializeWithCachedSizes( 13195 void UninterpretedOption::SerializeWithCachedSizes(
13550 ::google::protobuf::io::CodedOutputStream* output) const { 13196 ::google::protobuf::io::CodedOutputStream* output) const {
13551 // @@protoc_insertion_point(serialize_start:google.protobuf.SourceCodeInfo.Loc ation) 13197 // @@protoc_insertion_point(serialize_start:google.protobuf.UninterpretedOptio n)
13552 // repeated int32 path = 1 [packed = true]; 13198 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
13553 if (this->path_size() > 0) { 13199 for (unsigned int i = 0, n = this->name_size(); i < n; i++) {
13554 ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf ::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); 13200 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
13555 output->WriteVarint32(_path_cached_byte_size_); 13201 2, this->name(i), output);
13556 } 13202 }
13557 for (int i = 0; i < this->path_size(); i++) { 13203
13558 ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag( 13204 // optional string identifier_value = 3;
13559 this->path(i), output); 13205 if (has_identifier_value()) {
13560 }
13561
13562 // repeated int32 span = 2 [packed = true];
13563 if (this->span_size() > 0) {
13564 ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf ::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
13565 output->WriteVarint32(_span_cached_byte_size_);
13566 }
13567 for (int i = 0; i < this->span_size(); i++) {
13568 ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag(
13569 this->span(i), output);
13570 }
13571
13572 // optional string leading_comments = 3;
13573 if (has_leading_comments()) {
13574 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 13206 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13575 this->leading_comments().data(), this->leading_comments().length(), 13207 this->identifier_value().data(), this->identifier_value().length(),
13576 ::google::protobuf::internal::WireFormat::SERIALIZE, 13208 ::google::protobuf::internal::WireFormat::SERIALIZE,
13577 "google.protobuf.SourceCodeInfo.Location.leading_comments"); 13209 "google.protobuf.UninterpretedOption.identifier_value");
13578 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 13210 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
13579 3, this->leading_comments(), output); 13211 3, this->identifier_value(), output);
13580 } 13212 }
13581 13213
13582 // optional string trailing_comments = 4; 13214 // optional uint64 positive_int_value = 4;
13583 if (has_trailing_comments()) { 13215 if (has_positive_int_value()) {
13216 ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->positive_ int_value(), output);
13217 }
13218
13219 // optional int64 negative_int_value = 5;
13220 if (has_negative_int_value()) {
13221 ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->negative_i nt_value(), output);
13222 }
13223
13224 // optional double double_value = 6;
13225 if (has_double_value()) {
13226 ::google::protobuf::internal::WireFormatLite::WriteDouble(6, this->double_va lue(), output);
13227 }
13228
13229 // optional bytes string_value = 7;
13230 if (has_string_value()) {
13231 ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
13232 7, this->string_value(), output);
13233 }
13234
13235 // optional string aggregate_value = 8;
13236 if (has_aggregate_value()) {
13584 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 13237 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13585 this->trailing_comments().data(), this->trailing_comments().length(), 13238 this->aggregate_value().data(), this->aggregate_value().length(),
13586 ::google::protobuf::internal::WireFormat::SERIALIZE, 13239 ::google::protobuf::internal::WireFormat::SERIALIZE,
13587 "google.protobuf.SourceCodeInfo.Location.trailing_comments"); 13240 "google.protobuf.UninterpretedOption.aggregate_value");
13588 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 13241 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
13589 4, this->trailing_comments(), output); 13242 8, this->aggregate_value(), output);
13590 }
13591
13592 // repeated string leading_detached_comments = 6;
13593 for (int i = 0; i < this->leading_detached_comments_size(); i++) {
13594 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13595 this->leading_detached_comments(i).data(), this->leading_detached_comments (i).length(),
13596 ::google::protobuf::internal::WireFormat::SERIALIZE,
13597 "google.protobuf.SourceCodeInfo.Location.leading_detached_comments");
13598 ::google::protobuf::internal::WireFormatLite::WriteString(
13599 6, this->leading_detached_comments(i), output);
13600 } 13243 }
13601 13244
13602 if (_internal_metadata_.have_unknown_fields()) { 13245 if (_internal_metadata_.have_unknown_fields()) {
13603 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 13246 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
13604 unknown_fields(), output); 13247 unknown_fields(), output);
13605 } 13248 }
13606 // @@protoc_insertion_point(serialize_end:google.protobuf.SourceCodeInfo.Locat ion) 13249 // @@protoc_insertion_point(serialize_end:google.protobuf.UninterpretedOption)
13607 } 13250 }
13608 13251
13609 ::google::protobuf::uint8* SourceCodeInfo_Location::SerializeWithCachedSizesToAr ray( 13252 ::google::protobuf::uint8* UninterpretedOption::InternalSerializeWithCachedSizes ToArray(
13610 ::google::protobuf::uint8* target) const { 13253 bool deterministic, ::google::protobuf::uint8* target) const {
13611 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.SourceCod eInfo.Location) 13254 (void)deterministic; // Unused
13612 // repeated int32 path = 1 [packed = true]; 13255 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Uninterpr etedOption)
13613 if (this->path_size() > 0) { 13256 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
13614 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( 13257 for (unsigned int i = 0, n = this->name_size(); i < n; i++) {
13615 1,
13616 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
13617 target);
13618 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
13619 _path_cached_byte_size_, target);
13620 }
13621 for (int i = 0; i < this->path_size(); i++) {
13622 target = ::google::protobuf::internal::WireFormatLite:: 13258 target = ::google::protobuf::internal::WireFormatLite::
13623 WriteInt32NoTagToArray(this->path(i), target); 13259 InternalWriteMessageNoVirtualToArray(
13624 } 13260 2, this->name(i), false, target);
13625 13261 }
13626 // repeated int32 span = 2 [packed = true]; 13262
13627 if (this->span_size() > 0) { 13263 // optional string identifier_value = 3;
13628 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( 13264 if (has_identifier_value()) {
13629 2,
13630 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
13631 target);
13632 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
13633 _span_cached_byte_size_, target);
13634 }
13635 for (int i = 0; i < this->span_size(); i++) {
13636 target = ::google::protobuf::internal::WireFormatLite::
13637 WriteInt32NoTagToArray(this->span(i), target);
13638 }
13639
13640 // optional string leading_comments = 3;
13641 if (has_leading_comments()) {
13642 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 13265 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13643 this->leading_comments().data(), this->leading_comments().length(), 13266 this->identifier_value().data(), this->identifier_value().length(),
13644 ::google::protobuf::internal::WireFormat::SERIALIZE, 13267 ::google::protobuf::internal::WireFormat::SERIALIZE,
13645 "google.protobuf.SourceCodeInfo.Location.leading_comments"); 13268 "google.protobuf.UninterpretedOption.identifier_value");
13646 target = 13269 target =
13647 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 13270 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
13648 3, this->leading_comments(), target); 13271 3, this->identifier_value(), target);
13649 } 13272 }
13650 13273
13651 // optional string trailing_comments = 4; 13274 // optional uint64 positive_int_value = 4;
13652 if (has_trailing_comments()) { 13275 if (has_positive_int_value()) {
13276 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->positive_int_value(), target);
13277 }
13278
13279 // optional int64 negative_int_value = 5;
13280 if (has_negative_int_value()) {
13281 target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(5, this->negative_int_value(), target);
13282 }
13283
13284 // optional double double_value = 6;
13285 if (has_double_value()) {
13286 target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(6, this->double_value(), target);
13287 }
13288
13289 // optional bytes string_value = 7;
13290 if (has_string_value()) {
13291 target =
13292 ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
13293 7, this->string_value(), target);
13294 }
13295
13296 // optional string aggregate_value = 8;
13297 if (has_aggregate_value()) {
13653 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 13298 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13654 this->trailing_comments().data(), this->trailing_comments().length(), 13299 this->aggregate_value().data(), this->aggregate_value().length(),
13655 ::google::protobuf::internal::WireFormat::SERIALIZE, 13300 ::google::protobuf::internal::WireFormat::SERIALIZE,
13656 "google.protobuf.SourceCodeInfo.Location.trailing_comments"); 13301 "google.protobuf.UninterpretedOption.aggregate_value");
13657 target = 13302 target =
13658 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 13303 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
13659 4, this->trailing_comments(), target); 13304 8, this->aggregate_value(), target);
13660 }
13661
13662 // repeated string leading_detached_comments = 6;
13663 for (int i = 0; i < this->leading_detached_comments_size(); i++) {
13664 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13665 this->leading_detached_comments(i).data(), this->leading_detached_comments (i).length(),
13666 ::google::protobuf::internal::WireFormat::SERIALIZE,
13667 "google.protobuf.SourceCodeInfo.Location.leading_detached_comments");
13668 target = ::google::protobuf::internal::WireFormatLite::
13669 WriteStringToArray(6, this->leading_detached_comments(i), target);
13670 } 13305 }
13671 13306
13672 if (_internal_metadata_.have_unknown_fields()) { 13307 if (_internal_metadata_.have_unknown_fields()) {
13673 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 13308 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
13674 unknown_fields(), target); 13309 unknown_fields(), target);
13675 } 13310 }
13676 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.SourceCodeI nfo.Location) 13311 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Uninterpret edOption)
13677 return target; 13312 return target;
13678 } 13313 }
13679 13314
13680 int SourceCodeInfo_Location::ByteSize() const { 13315 size_t UninterpretedOption::ByteSizeLong() const {
13681 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.SourceCodeIn fo.Location) 13316 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Uninterprete dOption)
13682 int total_size = 0; 13317 size_t total_size = 0;
13683
13684 if (_has_bits_[2 / 32] & 12u) {
13685 // optional string leading_comments = 3;
13686 if (has_leading_comments()) {
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
13699 }
13700 // repeated int32 path = 1 [packed = true];
13701 {
13702 int data_size = 0;
13703 for (int i = 0; i < this->path_size(); i++) {
13704 data_size += ::google::protobuf::internal::WireFormatLite::
13705 Int32Size(this->path(i));
13706 }
13707 if (data_size > 0) {
13708 total_size += 1 +
13709 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
13710 }
13711 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13712 _path_cached_byte_size_ = data_size;
13713 GOOGLE_SAFE_CONCURRENT_WRITES_END();
13714 total_size += data_size;
13715 }
13716
13717 // repeated int32 span = 2 [packed = true];
13718 {
13719 int data_size = 0;
13720 for (int i = 0; i < this->span_size(); i++) {
13721 data_size += ::google::protobuf::internal::WireFormatLite::
13722 Int32Size(this->span(i));
13723 }
13724 if (data_size > 0) {
13725 total_size += 1 +
13726 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
13727 }
13728 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13729 _span_cached_byte_size_ = data_size;
13730 GOOGLE_SAFE_CONCURRENT_WRITES_END();
13731 total_size += data_size;
13732 }
13733
13734 // repeated string leading_detached_comments = 6;
13735 total_size += 1 * this->leading_detached_comments_size();
13736 for (int i = 0; i < this->leading_detached_comments_size(); i++) {
13737 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
13738 this->leading_detached_comments(i));
13739 }
13740 13318
13741 if (_internal_metadata_.have_unknown_fields()) { 13319 if (_internal_metadata_.have_unknown_fields()) {
13742 total_size += 13320 total_size +=
13743 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( 13321 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
13744 unknown_fields()); 13322 unknown_fields());
13745 } 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;
13337 if (has_identifier_value()) {
13338 total_size += 1 +
13339 ::google::protobuf::internal::WireFormatLite::StringSize(
13340 this->identifier_value());
13341 }
13342
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;
13358 if (has_positive_int_value()) {
13359 total_size += 1 +
13360 ::google::protobuf::internal::WireFormatLite::UInt64Size(
13361 this->positive_int_value());
13362 }
13363
13364 // optional int64 negative_int_value = 5;
13365 if (has_negative_int_value()) {
13366 total_size += 1 +
13367 ::google::protobuf::internal::WireFormatLite::Int64Size(
13368 this->negative_int_value());
13369 }
13370
13371 // optional double double_value = 6;
13372 if (has_double_value()) {
13373 total_size += 1 + 8;
13374 }
13375
13376 }
13377 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
13746 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 13378 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13747 _cached_size_ = total_size; 13379 _cached_size_ = cached_size;
13748 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 13380 GOOGLE_SAFE_CONCURRENT_WRITES_END();
13749 return total_size; 13381 return total_size;
13750 } 13382 }
13751 13383
13752 void SourceCodeInfo_Location::MergeFrom(const ::google::protobuf::Message& from) { 13384 void UninterpretedOption::MergeFrom(const ::google::protobuf::Message& from) {
13753 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.SourceC odeInfo.Location) 13385 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Uninter pretedOption)
13754 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 13386 GOOGLE_DCHECK_NE(&from, this);
13755 const SourceCodeInfo_Location* source = 13387 const UninterpretedOption* source =
13756 ::google::protobuf::internal::DynamicCastToGenerated<const SourceCodeInfo_ Location>( 13388 ::google::protobuf::internal::DynamicCastToGenerated<const UninterpretedOp tion>(
13757 &from); 13389 &from);
13758 if (source == NULL) { 13390 if (source == NULL) {
13759 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.S ourceCodeInfo.Location) 13391 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.U ninterpretedOption)
13760 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 13392 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
13761 } else { 13393 } else {
13762 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.SourceCodeInfo.Location) 13394 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.UninterpretedOption)
13763 MergeFrom(*source); 13395 MergeFrom(*source);
13764 } 13396 }
13765 } 13397 }
13766 13398
13767 void SourceCodeInfo_Location::MergeFrom(const SourceCodeInfo_Location& from) { 13399 void UninterpretedOption::MergeFrom(const UninterpretedOption& from) {
13768 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Sour ceCodeInfo.Location) 13400 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Unin terpretedOption)
13769 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 13401 GOOGLE_DCHECK_NE(&from, this);
13770 path_.MergeFrom(from.path_); 13402 _internal_metadata_.MergeFrom(from._internal_metadata_);
13771 span_.MergeFrom(from.span_); 13403 name_.MergeFrom(from.name_);
13772 leading_detached_comments_.MergeFrom(from.leading_detached_comments_); 13404 if (from._has_bits_[0 / 32] & 63u) {
13773 if (from._has_bits_[2 / 32] & (0xffu << (2 % 32))) { 13405 if (from.has_identifier_value()) {
13774 if (from.has_leading_comments()) { 13406 set_has_identifier_value();
13775 set_has_leading_comments(); 13407 identifier_value_.AssignWithDefault(&::google::protobuf::internal::GetEmpt yStringAlreadyInited(), from.identifier_value_);
13776 leading_comments_.AssignWithDefault(&::google::protobuf::internal::GetEmpt yStringAlreadyInited(), from.leading_comments_); 13408 }
13777 } 13409 if (from.has_string_value()) {
13778 if (from.has_trailing_comments()) { 13410 set_has_string_value();
13779 set_has_trailing_comments(); 13411 string_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited(), from.string_value_);
13780 trailing_comments_.AssignWithDefault(&::google::protobuf::internal::GetEmp tyStringAlreadyInited(), from.trailing_comments_); 13412 }
13781 } 13413 if (from.has_aggregate_value()) {
13782 } 13414 set_has_aggregate_value();
13783 if (from._internal_metadata_.have_unknown_fields()) { 13415 aggregate_value_.AssignWithDefault(&::google::protobuf::internal::GetEmpty StringAlreadyInited(), from.aggregate_value_);
13784 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); 13416 }
13785 } 13417 if (from.has_positive_int_value()) {
13786 } 13418 set_positive_int_value(from.positive_int_value());
13787 13419 }
13788 void SourceCodeInfo_Location::CopyFrom(const ::google::protobuf::Message& from) { 13420 if (from.has_negative_int_value()) {
13789 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.SourceCo deInfo.Location) 13421 set_negative_int_value(from.negative_int_value());
13422 }
13423 if (from.has_double_value()) {
13424 set_double_value(from.double_value());
13425 }
13426 }
13427 }
13428
13429 void UninterpretedOption::CopyFrom(const ::google::protobuf::Message& from) {
13430 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Uninterp retedOption)
13790 if (&from == this) return; 13431 if (&from == this) return;
13791 Clear(); 13432 Clear();
13792 MergeFrom(from); 13433 MergeFrom(from);
13793 } 13434 }
13794 13435
13795 void SourceCodeInfo_Location::CopyFrom(const SourceCodeInfo_Location& from) { 13436 void UninterpretedOption::CopyFrom(const UninterpretedOption& from) {
13796 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Sourc eCodeInfo.Location) 13437 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Unint erpretedOption)
13797 if (&from == this) return; 13438 if (&from == this) return;
13798 Clear(); 13439 Clear();
13799 MergeFrom(from); 13440 MergeFrom(from);
13800 } 13441 }
13801 13442
13802 bool SourceCodeInfo_Location::IsInitialized() const { 13443 bool UninterpretedOption::IsInitialized() const {
13803 13444 if (!::google::protobuf::internal::AllAreInitialized(this->name())) return fal se;
13804 return true; 13445 return true;
13805 } 13446 }
13806 13447
13807 void SourceCodeInfo_Location::Swap(SourceCodeInfo_Location* other) { 13448 void UninterpretedOption::Swap(UninterpretedOption* other) {
13808 if (other == this) return; 13449 if (other == this) return;
13809 InternalSwap(other); 13450 InternalSwap(other);
13810 } 13451 }
13811 void SourceCodeInfo_Location::InternalSwap(SourceCodeInfo_Location* other) { 13452 void UninterpretedOption::InternalSwap(UninterpretedOption* other) {
13812 path_.UnsafeArenaSwap(&other->path_); 13453 name_.UnsafeArenaSwap(&other->name_);
13813 span_.UnsafeArenaSwap(&other->span_); 13454 identifier_value_.Swap(&other->identifier_value_);
13814 leading_comments_.Swap(&other->leading_comments_); 13455 string_value_.Swap(&other->string_value_);
13815 trailing_comments_.Swap(&other->trailing_comments_); 13456 aggregate_value_.Swap(&other->aggregate_value_);
13816 leading_detached_comments_.UnsafeArenaSwap(&other->leading_detached_comments_) ; 13457 std::swap(positive_int_value_, other->positive_int_value_);
13458 std::swap(negative_int_value_, other->negative_int_value_);
13459 std::swap(double_value_, other->double_value_);
13817 std::swap(_has_bits_[0], other->_has_bits_[0]); 13460 std::swap(_has_bits_[0], other->_has_bits_[0]);
13818 _internal_metadata_.Swap(&other->_internal_metadata_); 13461 _internal_metadata_.Swap(&other->_internal_metadata_);
13819 std::swap(_cached_size_, other->_cached_size_); 13462 std::swap(_cached_size_, other->_cached_size_);
13820 } 13463 }
13821 13464
13822 ::google::protobuf::Metadata SourceCodeInfo_Location::GetMetadata() const { 13465 ::google::protobuf::Metadata UninterpretedOption::GetMetadata() const {
13823 protobuf_AssignDescriptorsOnce(); 13466 protobuf_AssignDescriptorsOnce();
13824 ::google::protobuf::Metadata metadata; 13467 return file_level_metadata[20];
13825 metadata.descriptor = SourceCodeInfo_Location_descriptor_; 13468 }
13826 metadata.reflection = SourceCodeInfo_Location_reflection_; 13469
13827 return metadata; 13470 #if PROTOBUF_INLINE_NOT_IN_HEADERS
13828 } 13471 // UninterpretedOption
13829 13472
13830 13473 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
13831 // ------------------------------------------------------------------- 13474 int UninterpretedOption::name_size() const {
13475 return name_.size();
13476 }
13477 void UninterpretedOption::clear_name() {
13478 name_.Clear();
13479 }
13480 const ::google::protobuf::UninterpretedOption_NamePart& UninterpretedOption::nam e(int index) const {
13481 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.name )
13482 return name_.Get(index);
13483 }
13484 ::google::protobuf::UninterpretedOption_NamePart* UninterpretedOption::mutable_n ame(int index) {
13485 // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption. name)
13486 return name_.Mutable(index);
13487 }
13488 ::google::protobuf::UninterpretedOption_NamePart* UninterpretedOption::add_name( ) {
13489 // @@protoc_insertion_point(field_add:google.protobuf.UninterpretedOption.name )
13490 return name_.Add();
13491 }
13492 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_Na mePart >*
13493 UninterpretedOption::mutable_name() {
13494 // @@protoc_insertion_point(field_mutable_list:google.protobuf.UninterpretedOp tion.name)
13495 return &name_;
13496 }
13497 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt ion_NamePart >&
13498 UninterpretedOption::name() const {
13499 // @@protoc_insertion_point(field_list:google.protobuf.UninterpretedOption.nam e)
13500 return name_;
13501 }
13502
13503 // optional string identifier_value = 3;
13504 bool UninterpretedOption::has_identifier_value() const {
13505 return (_has_bits_[0] & 0x00000001u) != 0;
13506 }
13507 void UninterpretedOption::set_has_identifier_value() {
13508 _has_bits_[0] |= 0x00000001u;
13509 }
13510 void UninterpretedOption::clear_has_identifier_value() {
13511 _has_bits_[0] &= ~0x00000001u;
13512 }
13513 void UninterpretedOption::clear_identifier_value() {
13514 identifier_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyS tringAlreadyInited());
13515 clear_has_identifier_value();
13516 }
13517 const ::std::string& UninterpretedOption::identifier_value() const {
13518 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.iden tifier_value)
13519 return identifier_value_.GetNoArena();
13520 }
13521 void UninterpretedOption::set_identifier_value(const ::std::string& value) {
13522 set_has_identifier_value();
13523 identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), value);
13524 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.iden tifier_value)
13525 }
13526 #if LANG_CXX11
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();
13536 identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), ::std::string(value));
13537 // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption .identifier_value)
13538 }
13539 void UninterpretedOption::set_identifier_value(const char* value, size_t size) {
13540 set_has_identifier_value();
13541 identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(),
13542 ::std::string(reinterpret_cast<const char*>(value), size));
13543 // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOpt ion.identifier_value)
13544 }
13545 ::std::string* UninterpretedOption::mutable_identifier_value() {
13546 set_has_identifier_value();
13547 // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption. identifier_value)
13548 return identifier_value_.MutableNoArena(&::google::protobuf::internal::GetEmpt yStringAlreadyInited());
13549 }
13550 ::std::string* UninterpretedOption::release_identifier_value() {
13551 // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption. identifier_value)
13552 clear_has_identifier_value();
13553 return identifier_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmpt yStringAlreadyInited());
13554 }
13555 void UninterpretedOption::set_allocated_identifier_value(::std::string* identifi er_value) {
13556 if (identifier_value != NULL) {
13557 set_has_identifier_value();
13558 } else {
13559 clear_has_identifier_value();
13560 }
13561 identifier_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyS tringAlreadyInited(), identifier_value);
13562 // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedO ption.identifier_value)
13563 }
13564
13565 // optional uint64 positive_int_value = 4;
13566 bool UninterpretedOption::has_positive_int_value() const {
13567 return (_has_bits_[0] & 0x00000008u) != 0;
13568 }
13569 void UninterpretedOption::set_has_positive_int_value() {
13570 _has_bits_[0] |= 0x00000008u;
13571 }
13572 void UninterpretedOption::clear_has_positive_int_value() {
13573 _has_bits_[0] &= ~0x00000008u;
13574 }
13575 void UninterpretedOption::clear_positive_int_value() {
13576 positive_int_value_ = GOOGLE_ULONGLONG(0);
13577 clear_has_positive_int_value();
13578 }
13579 ::google::protobuf::uint64 UninterpretedOption::positive_int_value() const {
13580 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.posi tive_int_value)
13581 return positive_int_value_;
13582 }
13583 void UninterpretedOption::set_positive_int_value(::google::protobuf::uint64 valu e) {
13584 set_has_positive_int_value();
13585 positive_int_value_ = value;
13586 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.posi tive_int_value)
13587 }
13588
13589 // optional int64 negative_int_value = 5;
13590 bool UninterpretedOption::has_negative_int_value() const {
13591 return (_has_bits_[0] & 0x00000010u) != 0;
13592 }
13593 void UninterpretedOption::set_has_negative_int_value() {
13594 _has_bits_[0] |= 0x00000010u;
13595 }
13596 void UninterpretedOption::clear_has_negative_int_value() {
13597 _has_bits_[0] &= ~0x00000010u;
13598 }
13599 void UninterpretedOption::clear_negative_int_value() {
13600 negative_int_value_ = GOOGLE_LONGLONG(0);
13601 clear_has_negative_int_value();
13602 }
13603 ::google::protobuf::int64 UninterpretedOption::negative_int_value() const {
13604 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.nega tive_int_value)
13605 return negative_int_value_;
13606 }
13607 void UninterpretedOption::set_negative_int_value(::google::protobuf::int64 value ) {
13608 set_has_negative_int_value();
13609 negative_int_value_ = value;
13610 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.nega tive_int_value)
13611 }
13612
13613 // optional double double_value = 6;
13614 bool UninterpretedOption::has_double_value() const {
13615 return (_has_bits_[0] & 0x00000020u) != 0;
13616 }
13617 void UninterpretedOption::set_has_double_value() {
13618 _has_bits_[0] |= 0x00000020u;
13619 }
13620 void UninterpretedOption::clear_has_double_value() {
13621 _has_bits_[0] &= ~0x00000020u;
13622 }
13623 void UninterpretedOption::clear_double_value() {
13624 double_value_ = 0;
13625 clear_has_double_value();
13626 }
13627 double UninterpretedOption::double_value() const {
13628 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.doub le_value)
13629 return double_value_;
13630 }
13631 void UninterpretedOption::set_double_value(double value) {
13632 set_has_double_value();
13633 double_value_ = value;
13634 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.doub le_value)
13635 }
13636
13637 // optional bytes string_value = 7;
13638 bool UninterpretedOption::has_string_value() const {
13639 return (_has_bits_[0] & 0x00000002u) != 0;
13640 }
13641 void UninterpretedOption::set_has_string_value() {
13642 _has_bits_[0] |= 0x00000002u;
13643 }
13644 void UninterpretedOption::clear_has_string_value() {
13645 _has_bits_[0] &= ~0x00000002u;
13646 }
13647 void UninterpretedOption::clear_string_value() {
13648 string_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited());
13649 clear_has_string_value();
13650 }
13651 const ::std::string& UninterpretedOption::string_value() const {
13652 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.stri ng_value)
13653 return string_value_.GetNoArena();
13654 }
13655 void UninterpretedOption::set_string_value(const ::std::string& value) {
13656 set_has_string_value();
13657 string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI nited(), value);
13658 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.stri ng_value)
13659 }
13660 #if LANG_CXX11
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();
13670 string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI nited(), ::std::string(value));
13671 // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption .string_value)
13672 }
13673 void UninterpretedOption::set_string_value(const void* value, size_t size) {
13674 set_has_string_value();
13675 string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI nited(),
13676 ::std::string(reinterpret_cast<const char*>(value), size));
13677 // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOpt ion.string_value)
13678 }
13679 ::std::string* UninterpretedOption::mutable_string_value() {
13680 set_has_string_value();
13681 // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption. string_value)
13682 return string_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited());
13683 }
13684 ::std::string* UninterpretedOption::release_string_value() {
13685 // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption. string_value)
13686 clear_has_string_value();
13687 return string_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited());
13688 }
13689 void UninterpretedOption::set_allocated_string_value(::std::string* string_value ) {
13690 if (string_value != NULL) {
13691 set_has_string_value();
13692 } else {
13693 clear_has_string_value();
13694 }
13695 string_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited(), string_value);
13696 // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedO ption.string_value)
13697 }
13698
13699 // optional string aggregate_value = 8;
13700 bool UninterpretedOption::has_aggregate_value() const {
13701 return (_has_bits_[0] & 0x00000004u) != 0;
13702 }
13703 void UninterpretedOption::set_has_aggregate_value() {
13704 _has_bits_[0] |= 0x00000004u;
13705 }
13706 void UninterpretedOption::clear_has_aggregate_value() {
13707 _has_bits_[0] &= ~0x00000004u;
13708 }
13709 void UninterpretedOption::clear_aggregate_value() {
13710 aggregate_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptySt ringAlreadyInited());
13711 clear_has_aggregate_value();
13712 }
13713 const ::std::string& UninterpretedOption::aggregate_value() const {
13714 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.aggr egate_value)
13715 return aggregate_value_.GetNoArena();
13716 }
13717 void UninterpretedOption::set_aggregate_value(const ::std::string& value) {
13718 set_has_aggregate_value();
13719 aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), value);
13720 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.aggr egate_value)
13721 }
13722 #if LANG_CXX11
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();
13732 aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), ::std::string(value));
13733 // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption .aggregate_value)
13734 }
13735 void UninterpretedOption::set_aggregate_value(const char* value, size_t size) {
13736 set_has_aggregate_value();
13737 aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(),
13738 ::std::string(reinterpret_cast<const char*>(value), size));
13739 // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOpt ion.aggregate_value)
13740 }
13741 ::std::string* UninterpretedOption::mutable_aggregate_value() {
13742 set_has_aggregate_value();
13743 // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption. aggregate_value)
13744 return aggregate_value_.MutableNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited());
13745 }
13746 ::std::string* UninterpretedOption::release_aggregate_value() {
13747 // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption. aggregate_value)
13748 clear_has_aggregate_value();
13749 return aggregate_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited());
13750 }
13751 void UninterpretedOption::set_allocated_aggregate_value(::std::string* aggregate _value) {
13752 if (aggregate_value != NULL) {
13753 set_has_aggregate_value();
13754 } else {
13755 clear_has_aggregate_value();
13756 }
13757 aggregate_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptySt ringAlreadyInited(), aggregate_value);
13758 // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedO ption.aggregate_value)
13759 }
13760
13761 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
13762
13763 // ===================================================================
13832 13764
13833 #if !defined(_MSC_VER) || _MSC_VER >= 1900 13765 #if !defined(_MSC_VER) || _MSC_VER >= 1900
13834 const int SourceCodeInfo::kLocationFieldNumber; 13766 const int SourceCodeInfo_Location::kPathFieldNumber;
13767 const int SourceCodeInfo_Location::kSpanFieldNumber;
13768 const int SourceCodeInfo_Location::kLeadingCommentsFieldNumber;
13769 const int SourceCodeInfo_Location::kTrailingCommentsFieldNumber;
13770 const int SourceCodeInfo_Location::kLeadingDetachedCommentsFieldNumber;
13835 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 13771 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
13836 13772
13837 SourceCodeInfo::SourceCodeInfo() 13773 SourceCodeInfo_Location::SourceCodeInfo_Location()
13838 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 13774 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
13775 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
13776 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
13777 }
13839 SharedCtor(); 13778 SharedCtor();
13840 // @@protoc_insertion_point(constructor:google.protobuf.SourceCodeInfo) 13779 // @@protoc_insertion_point(constructor:google.protobuf.SourceCodeInfo.Locatio n)
13841 } 13780 }
13842 13781 SourceCodeInfo_Location::SourceCodeInfo_Location(const SourceCodeInfo_Location& from)
13843 void SourceCodeInfo::InitAsDefaultInstance() {
13844 }
13845
13846 SourceCodeInfo::SourceCodeInfo(const SourceCodeInfo& from)
13847 : ::google::protobuf::Message(), 13782 : ::google::protobuf::Message(),
13848 _internal_metadata_(NULL) { 13783 _internal_metadata_(NULL),
13849 SharedCtor(); 13784 _has_bits_(from._has_bits_),
13850 MergeFrom(from); 13785 _cached_size_(0),
13851 // @@protoc_insertion_point(copy_constructor:google.protobuf.SourceCodeInfo) 13786 path_(from.path_),
13852 } 13787 span_(from.span_),
13853 13788 leading_detached_comments_(from.leading_detached_comments_) {
13854 void SourceCodeInfo::SharedCtor() { 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)
13799 }
13800
13801 void SourceCodeInfo_Location::SharedCtor() {
13855 _cached_size_ = 0; 13802 _cached_size_ = 0;
13856 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 13803 leading_comments_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited());
13857 } 13804 trailing_comments_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited());
13858 13805 }
13859 SourceCodeInfo::~SourceCodeInfo() { 13806
13860 // @@protoc_insertion_point(destructor:google.protobuf.SourceCodeInfo) 13807 SourceCodeInfo_Location::~SourceCodeInfo_Location() {
13808 // @@protoc_insertion_point(destructor:google.protobuf.SourceCodeInfo.Location )
13861 SharedDtor(); 13809 SharedDtor();
13862 } 13810 }
13863 13811
13864 void SourceCodeInfo::SharedDtor() { 13812 void SourceCodeInfo_Location::SharedDtor() {
13865 if (this != default_instance_) { 13813 leading_comments_.DestroyNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited());
13866 } 13814 trailing_comments_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited());
13867 } 13815 }
13868 13816
13869 void SourceCodeInfo::SetCachedSize(int size) const { 13817 void SourceCodeInfo_Location::SetCachedSize(int size) const {
13870 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 13818 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13871 _cached_size_ = size; 13819 _cached_size_ = size;
13872 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 13820 GOOGLE_SAFE_CONCURRENT_WRITES_END();
13873 } 13821 }
13874 const ::google::protobuf::Descriptor* SourceCodeInfo::descriptor() { 13822 const ::google::protobuf::Descriptor* SourceCodeInfo_Location::descriptor() {
13875 protobuf_AssignDescriptorsOnce(); 13823 protobuf_AssignDescriptorsOnce();
13876 return SourceCodeInfo_descriptor_; 13824 return file_level_metadata[21].descriptor;
13877 } 13825 }
13878 13826
13879 const SourceCodeInfo& SourceCodeInfo::default_instance() { 13827 const SourceCodeInfo_Location& SourceCodeInfo_Location::default_instance() {
13880 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 13828 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
13881 return *default_instance_; 13829 return *internal_default_instance();
13882 } 13830 }
13883 13831
13884 SourceCodeInfo* SourceCodeInfo::default_instance_ = NULL; 13832 SourceCodeInfo_Location* SourceCodeInfo_Location::New(::google::protobuf::Arena* arena) const {
13885 13833 SourceCodeInfo_Location* n = new SourceCodeInfo_Location;
13886 SourceCodeInfo* SourceCodeInfo::New(::google::protobuf::Arena* arena) const {
13887 SourceCodeInfo* n = new SourceCodeInfo;
13888 if (arena != NULL) { 13834 if (arena != NULL) {
13889 arena->Own(n); 13835 arena->Own(n);
13890 } 13836 }
13891 return n; 13837 return n;
13892 } 13838 }
13893 13839
13894 void SourceCodeInfo::Clear() { 13840 void SourceCodeInfo_Location::Clear() {
13895 // @@protoc_insertion_point(message_clear_start:google.protobuf.SourceCodeInfo) 13841 // @@protoc_insertion_point(message_clear_start:google.protobuf.SourceCodeInfo.L ocation)
13896 location_.Clear(); 13842 path_.Clear();
13897 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 13843 span_.Clear();
13898 if (_internal_metadata_.have_unknown_fields()) { 13844 leading_detached_comments_.Clear();
13899 mutable_unknown_fields()->Clear(); 13845 if (_has_bits_[0 / 32] & 3u) {
13900 } 13846 if (has_leading_comments()) {
13901 } 13847 GOOGLE_DCHECK(!leading_comments_.IsDefault(&::google::protobuf::internal:: GetEmptyStringAlreadyInited()));
13902 13848 (*leading_comments_.UnsafeRawStringPointer())->clear();
13903 bool SourceCodeInfo::MergePartialFromCodedStream( 13849 }
13850 if (has_trailing_comments()) {
13851 GOOGLE_DCHECK(!trailing_comments_.IsDefault(&::google::protobuf::internal: :GetEmptyStringAlreadyInited()));
13852 (*trailing_comments_.UnsafeRawStringPointer())->clear();
13853 }
13854 }
13855 _has_bits_.Clear();
13856 _internal_metadata_.Clear();
13857 }
13858
13859 bool SourceCodeInfo_Location::MergePartialFromCodedStream(
13904 ::google::protobuf::io::CodedInputStream* input) { 13860 ::google::protobuf::io::CodedInputStream* input) {
13905 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 13861 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
13906 ::google::protobuf::uint32 tag; 13862 ::google::protobuf::uint32 tag;
13907 // @@protoc_insertion_point(parse_start:google.protobuf.SourceCodeInfo) 13863 // @@protoc_insertion_point(parse_start:google.protobuf.SourceCodeInfo.Locatio n)
13908 for (;;) { 13864 for (;;) {
13909 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127); 13865 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u);
13910 tag = p.first; 13866 tag = p.first;
13911 if (!p.second) goto handle_unusual; 13867 if (!p.second) goto handle_unusual;
13912 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 13868 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
13913 // repeated .google.protobuf.SourceCodeInfo.Location location = 1; 13869 // repeated int32 path = 1 [packed = true];
13914 case 1: { 13870 case 1: {
13915 if (tag == 10) { 13871 if (tag == 10u) {
13916 DO_(input->IncrementRecursionDepth()); 13872 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive <
13917 parse_loop_location: 13873 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
13918 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 13874 input, this->mutable_path())));
13919 input, add_location())); 13875 } else if (tag == 8u) {
13876 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimiti veNoInline<
13877 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
13878 1, 10u, input, this->mutable_path())));
13920 } else { 13879 } else {
13921 goto handle_unusual; 13880 goto handle_unusual;
13922 } 13881 }
13923 if (input->ExpectTag(10)) goto parse_loop_location;
13924 input->UnsafeDecrementRecursionDepth();
13925 if (input->ExpectAtEnd()) goto success;
13926 break; 13882 break;
13927 } 13883 }
13928 13884
13885 // repeated int32 span = 2 [packed = true];
13886 case 2: {
13887 if (tag == 18u) {
13888 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive <
13889 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
13890 input, this->mutable_span())));
13891 } else if (tag == 16u) {
13892 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimiti veNoInline<
13893 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
13894 1, 18u, input, this->mutable_span())));
13895 } else {
13896 goto handle_unusual;
13897 }
13898 break;
13899 }
13900
13901 // optional string leading_comments = 3;
13902 case 3: {
13903 if (tag == 26u) {
13904 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
13905 input, this->mutable_leading_comments()));
13906 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13907 this->leading_comments().data(), this->leading_comments().length(),
13908 ::google::protobuf::internal::WireFormat::PARSE,
13909 "google.protobuf.SourceCodeInfo.Location.leading_comments");
13910 } else {
13911 goto handle_unusual;
13912 }
13913 break;
13914 }
13915
13916 // optional string trailing_comments = 4;
13917 case 4: {
13918 if (tag == 34u) {
13919 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
13920 input, this->mutable_trailing_comments()));
13921 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13922 this->trailing_comments().data(), this->trailing_comments().length() ,
13923 ::google::protobuf::internal::WireFormat::PARSE,
13924 "google.protobuf.SourceCodeInfo.Location.trailing_comments");
13925 } else {
13926 goto handle_unusual;
13927 }
13928 break;
13929 }
13930
13931 // repeated string leading_detached_comments = 6;
13932 case 6: {
13933 if (tag == 50u) {
13934 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
13935 input, this->add_leading_detached_comments()));
13936 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13937 this->leading_detached_comments(this->leading_detached_comments_size () - 1).data(),
13938 this->leading_detached_comments(this->leading_detached_comments_size () - 1).length(),
13939 ::google::protobuf::internal::WireFormat::PARSE,
13940 "google.protobuf.SourceCodeInfo.Location.leading_detached_comments") ;
13941 } else {
13942 goto handle_unusual;
13943 }
13944 break;
13945 }
13946
13929 default: { 13947 default: {
13930 handle_unusual: 13948 handle_unusual:
13931 if (tag == 0 || 13949 if (tag == 0 ||
13932 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 13950 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
13933 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 13951 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
13934 goto success; 13952 goto success;
13935 } 13953 }
13936 DO_(::google::protobuf::internal::WireFormat::SkipField( 13954 DO_(::google::protobuf::internal::WireFormat::SkipField(
13937 input, tag, mutable_unknown_fields())); 13955 input, tag, mutable_unknown_fields()));
13938 break; 13956 break;
13939 } 13957 }
13940 } 13958 }
13941 } 13959 }
13942 success: 13960 success:
13943 // @@protoc_insertion_point(parse_success:google.protobuf.SourceCodeInfo) 13961 // @@protoc_insertion_point(parse_success:google.protobuf.SourceCodeInfo.Locat ion)
13944 return true; 13962 return true;
13945 failure: 13963 failure:
13946 // @@protoc_insertion_point(parse_failure:google.protobuf.SourceCodeInfo) 13964 // @@protoc_insertion_point(parse_failure:google.protobuf.SourceCodeInfo.Locat ion)
13947 return false; 13965 return false;
13948 #undef DO_ 13966 #undef DO_
13949 } 13967 }
13950 13968
13951 void SourceCodeInfo::SerializeWithCachedSizes( 13969 void SourceCodeInfo_Location::SerializeWithCachedSizes(
13952 ::google::protobuf::io::CodedOutputStream* output) const { 13970 ::google::protobuf::io::CodedOutputStream* output) const {
13953 // @@protoc_insertion_point(serialize_start:google.protobuf.SourceCodeInfo) 13971 // @@protoc_insertion_point(serialize_start:google.protobuf.SourceCodeInfo.Loc ation)
13954 // repeated .google.protobuf.SourceCodeInfo.Location location = 1; 13972 // repeated int32 path = 1 [packed = true];
13955 for (unsigned int i = 0, n = this->location_size(); i < n; i++) { 13973 if (this->path_size() > 0) {
13956 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 13974 ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf ::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
13957 1, this->location(i), output); 13975 output->WriteVarint32(_path_cached_byte_size_);
13976 }
13977 for (int i = 0; i < this->path_size(); i++) {
13978 ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag(
13979 this->path(i), output);
13980 }
13981
13982 // repeated int32 span = 2 [packed = true];
13983 if (this->span_size() > 0) {
13984 ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf ::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
13985 output->WriteVarint32(_span_cached_byte_size_);
13986 }
13987 for (int i = 0; i < this->span_size(); i++) {
13988 ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag(
13989 this->span(i), output);
13990 }
13991
13992 // optional string leading_comments = 3;
13993 if (has_leading_comments()) {
13994 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13995 this->leading_comments().data(), this->leading_comments().length(),
13996 ::google::protobuf::internal::WireFormat::SERIALIZE,
13997 "google.protobuf.SourceCodeInfo.Location.leading_comments");
13998 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
13999 3, this->leading_comments(), output);
14000 }
14001
14002 // optional string trailing_comments = 4;
14003 if (has_trailing_comments()) {
14004 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14005 this->trailing_comments().data(), this->trailing_comments().length(),
14006 ::google::protobuf::internal::WireFormat::SERIALIZE,
14007 "google.protobuf.SourceCodeInfo.Location.trailing_comments");
14008 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
14009 4, this->trailing_comments(), output);
14010 }
14011
14012 // repeated string leading_detached_comments = 6;
14013 for (int i = 0; i < this->leading_detached_comments_size(); i++) {
14014 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14015 this->leading_detached_comments(i).data(), this->leading_detached_comments (i).length(),
14016 ::google::protobuf::internal::WireFormat::SERIALIZE,
14017 "google.protobuf.SourceCodeInfo.Location.leading_detached_comments");
14018 ::google::protobuf::internal::WireFormatLite::WriteString(
14019 6, this->leading_detached_comments(i), output);
13958 } 14020 }
13959 14021
13960 if (_internal_metadata_.have_unknown_fields()) { 14022 if (_internal_metadata_.have_unknown_fields()) {
13961 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 14023 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
13962 unknown_fields(), output); 14024 unknown_fields(), output);
13963 } 14025 }
13964 // @@protoc_insertion_point(serialize_end:google.protobuf.SourceCodeInfo) 14026 // @@protoc_insertion_point(serialize_end:google.protobuf.SourceCodeInfo.Locat ion)
13965 } 14027 }
13966 14028
13967 ::google::protobuf::uint8* SourceCodeInfo::SerializeWithCachedSizesToArray( 14029 ::google::protobuf::uint8* SourceCodeInfo_Location::InternalSerializeWithCachedS izesToArray(
13968 ::google::protobuf::uint8* target) const { 14030 bool deterministic, ::google::protobuf::uint8* target) const {
13969 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.SourceCod eInfo) 14031 (void)deterministic; // Unused
13970 // repeated .google.protobuf.SourceCodeInfo.Location location = 1; 14032 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.SourceCod eInfo.Location)
13971 for (unsigned int i = 0, n = this->location_size(); i < n; i++) { 14033 // repeated int32 path = 1 [packed = true];
14034 if (this->path_size() > 0) {
14035 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
14036 1,
14037 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
14038 target);
14039 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
14040 _path_cached_byte_size_, target);
14041 }
14042 for (int i = 0; i < this->path_size(); i++) {
13972 target = ::google::protobuf::internal::WireFormatLite:: 14043 target = ::google::protobuf::internal::WireFormatLite::
13973 WriteMessageNoVirtualToArray( 14044 WriteInt32NoTagToArray(this->path(i), target);
13974 1, this->location(i), target); 14045 }
14046
14047 // repeated int32 span = 2 [packed = true];
14048 if (this->span_size() > 0) {
14049 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
14050 2,
14051 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
14052 target);
14053 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
14054 _span_cached_byte_size_, target);
14055 }
14056 for (int i = 0; i < this->span_size(); i++) {
14057 target = ::google::protobuf::internal::WireFormatLite::
14058 WriteInt32NoTagToArray(this->span(i), target);
14059 }
14060
14061 // optional string leading_comments = 3;
14062 if (has_leading_comments()) {
14063 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14064 this->leading_comments().data(), this->leading_comments().length(),
14065 ::google::protobuf::internal::WireFormat::SERIALIZE,
14066 "google.protobuf.SourceCodeInfo.Location.leading_comments");
14067 target =
14068 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
14069 3, this->leading_comments(), target);
14070 }
14071
14072 // optional string trailing_comments = 4;
14073 if (has_trailing_comments()) {
14074 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14075 this->trailing_comments().data(), this->trailing_comments().length(),
14076 ::google::protobuf::internal::WireFormat::SERIALIZE,
14077 "google.protobuf.SourceCodeInfo.Location.trailing_comments");
14078 target =
14079 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
14080 4, this->trailing_comments(), target);
14081 }
14082
14083 // repeated string leading_detached_comments = 6;
14084 for (int i = 0; i < this->leading_detached_comments_size(); i++) {
14085 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14086 this->leading_detached_comments(i).data(), this->leading_detached_comments (i).length(),
14087 ::google::protobuf::internal::WireFormat::SERIALIZE,
14088 "google.protobuf.SourceCodeInfo.Location.leading_detached_comments");
14089 target = ::google::protobuf::internal::WireFormatLite::
14090 WriteStringToArray(6, this->leading_detached_comments(i), target);
13975 } 14091 }
13976 14092
13977 if (_internal_metadata_.have_unknown_fields()) { 14093 if (_internal_metadata_.have_unknown_fields()) {
13978 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 14094 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
13979 unknown_fields(), target); 14095 unknown_fields(), target);
13980 } 14096 }
13981 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.SourceCodeI nfo) 14097 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.SourceCodeI nfo.Location)
13982 return target; 14098 return target;
13983 } 14099 }
13984 14100
13985 int SourceCodeInfo::ByteSize() const { 14101 size_t SourceCodeInfo_Location::ByteSizeLong() const {
13986 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.SourceCodeIn fo) 14102 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.SourceCodeIn fo.Location)
13987 int total_size = 0; 14103 size_t 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 14104
13997 if (_internal_metadata_.have_unknown_fields()) { 14105 if (_internal_metadata_.have_unknown_fields()) {
13998 total_size += 14106 total_size +=
13999 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( 14107 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
14000 unknown_fields()); 14108 unknown_fields());
14001 } 14109 }
14110 // repeated int32 path = 1 [packed = true];
14111 {
14112 size_t data_size = 0;
14113 unsigned int count = this->path_size();
14114 for (unsigned int i = 0; i < count; i++) {
14115 data_size += ::google::protobuf::internal::WireFormatLite::
14116 Int32Size(this->path(i));
14117 }
14118 if (data_size > 0) {
14119 total_size += 1 +
14120 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
14121 }
14122 int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
14123 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
14124 _path_cached_byte_size_ = cached_size;
14125 GOOGLE_SAFE_CONCURRENT_WRITES_END();
14126 total_size += data_size;
14127 }
14128
14129 // repeated int32 span = 2 [packed = true];
14130 {
14131 size_t data_size = 0;
14132 unsigned int count = this->span_size();
14133 for (unsigned int i = 0; i < count; i++) {
14134 data_size += ::google::protobuf::internal::WireFormatLite::
14135 Int32Size(this->span(i));
14136 }
14137 if (data_size > 0) {
14138 total_size += 1 +
14139 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
14140 }
14141 int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
14142 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
14143 _span_cached_byte_size_ = cached_size;
14144 GOOGLE_SAFE_CONCURRENT_WRITES_END();
14145 total_size += data_size;
14146 }
14147
14148 // repeated string leading_detached_comments = 6;
14149 total_size += 1 *
14150 ::google::protobuf::internal::FromIntSize(this->leading_detached_comments_ size());
14151 for (int i = 0; i < this->leading_detached_comments_size(); i++) {
14152 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
14153 this->leading_detached_comments(i));
14154 }
14155
14156 if (_has_bits_[0 / 32] & 3u) {
14157 // optional string leading_comments = 3;
14158 if (has_leading_comments()) {
14159 total_size += 1 +
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 }
14172 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
14002 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 14173 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
14003 _cached_size_ = total_size; 14174 _cached_size_ = cached_size;
14004 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 14175 GOOGLE_SAFE_CONCURRENT_WRITES_END();
14005 return total_size; 14176 return total_size;
14006 } 14177 }
14007 14178
14008 void SourceCodeInfo::MergeFrom(const ::google::protobuf::Message& from) { 14179 void SourceCodeInfo_Location::MergeFrom(const ::google::protobuf::Message& from) {
14009 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.SourceC odeInfo) 14180 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.SourceC odeInfo.Location)
14010 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 14181 GOOGLE_DCHECK_NE(&from, this);
14011 const SourceCodeInfo* source = 14182 const SourceCodeInfo_Location* source =
14012 ::google::protobuf::internal::DynamicCastToGenerated<const SourceCodeInfo> ( 14183 ::google::protobuf::internal::DynamicCastToGenerated<const SourceCodeInfo_ Location>(
14013 &from); 14184 &from);
14014 if (source == NULL) { 14185 if (source == NULL) {
14015 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.S ourceCodeInfo) 14186 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.S ourceCodeInfo.Location)
14016 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 14187 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
14017 } else { 14188 } else {
14018 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.SourceCodeInfo) 14189 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.SourceCodeInfo.Location)
14019 MergeFrom(*source); 14190 MergeFrom(*source);
14020 } 14191 }
14021 } 14192 }
14022 14193
14023 void SourceCodeInfo::MergeFrom(const SourceCodeInfo& from) { 14194 void SourceCodeInfo_Location::MergeFrom(const SourceCodeInfo_Location& from) {
14024 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Sour ceCodeInfo) 14195 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Sour ceCodeInfo.Location)
14025 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 14196 GOOGLE_DCHECK_NE(&from, this);
14026 location_.MergeFrom(from.location_); 14197 _internal_metadata_.MergeFrom(from._internal_metadata_);
14027 if (from._internal_metadata_.have_unknown_fields()) { 14198 path_.MergeFrom(from.path_);
14028 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); 14199 span_.MergeFrom(from.span_);
14029 } 14200 leading_detached_comments_.MergeFrom(from.leading_detached_comments_);
14030 } 14201 if (from._has_bits_[0 / 32] & 3u) {
14031 14202 if (from.has_leading_comments()) {
14032 void SourceCodeInfo::CopyFrom(const ::google::protobuf::Message& from) { 14203 set_has_leading_comments();
14033 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.SourceCo deInfo) 14204 leading_comments_.AssignWithDefault(&::google::protobuf::internal::GetEmpt yStringAlreadyInited(), from.leading_comments_);
14205 }
14206 if (from.has_trailing_comments()) {
14207 set_has_trailing_comments();
14208 trailing_comments_.AssignWithDefault(&::google::protobuf::internal::GetEmp tyStringAlreadyInited(), from.trailing_comments_);
14209 }
14210 }
14211 }
14212
14213 void SourceCodeInfo_Location::CopyFrom(const ::google::protobuf::Message& from) {
14214 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.SourceCo deInfo.Location)
14034 if (&from == this) return; 14215 if (&from == this) return;
14035 Clear(); 14216 Clear();
14036 MergeFrom(from); 14217 MergeFrom(from);
14037 } 14218 }
14038 14219
14039 void SourceCodeInfo::CopyFrom(const SourceCodeInfo& from) { 14220 void SourceCodeInfo_Location::CopyFrom(const SourceCodeInfo_Location& from) {
14040 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Sourc eCodeInfo) 14221 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Sourc eCodeInfo.Location)
14041 if (&from == this) return; 14222 if (&from == this) return;
14042 Clear(); 14223 Clear();
14043 MergeFrom(from); 14224 MergeFrom(from);
14044 } 14225 }
14045 14226
14046 bool SourceCodeInfo::IsInitialized() const { 14227 bool SourceCodeInfo_Location::IsInitialized() const {
14047
14048 return true; 14228 return true;
14049 } 14229 }
14050 14230
14051 void SourceCodeInfo::Swap(SourceCodeInfo* other) { 14231 void SourceCodeInfo_Location::Swap(SourceCodeInfo_Location* other) {
14052 if (other == this) return; 14232 if (other == this) return;
14053 InternalSwap(other); 14233 InternalSwap(other);
14054 } 14234 }
14055 void SourceCodeInfo::InternalSwap(SourceCodeInfo* other) { 14235 void SourceCodeInfo_Location::InternalSwap(SourceCodeInfo_Location* other) {
14056 location_.UnsafeArenaSwap(&other->location_); 14236 path_.UnsafeArenaSwap(&other->path_);
14237 span_.UnsafeArenaSwap(&other->span_);
14238 leading_detached_comments_.UnsafeArenaSwap(&other->leading_detached_comments_) ;
14239 leading_comments_.Swap(&other->leading_comments_);
14240 trailing_comments_.Swap(&other->trailing_comments_);
14057 std::swap(_has_bits_[0], other->_has_bits_[0]); 14241 std::swap(_has_bits_[0], other->_has_bits_[0]);
14058 _internal_metadata_.Swap(&other->_internal_metadata_); 14242 _internal_metadata_.Swap(&other->_internal_metadata_);
14059 std::swap(_cached_size_, other->_cached_size_); 14243 std::swap(_cached_size_, other->_cached_size_);
14060 } 14244 }
14061 14245
14062 ::google::protobuf::Metadata SourceCodeInfo::GetMetadata() const { 14246 ::google::protobuf::Metadata SourceCodeInfo_Location::GetMetadata() const {
14063 protobuf_AssignDescriptorsOnce(); 14247 protobuf_AssignDescriptorsOnce();
14064 ::google::protobuf::Metadata metadata; 14248 return file_level_metadata[21];
14065 metadata.descriptor = SourceCodeInfo_descriptor_;
14066 metadata.reflection = SourceCodeInfo_reflection_;
14067 return metadata;
14068 } 14249 }
14069 14250
14070 #if PROTOBUF_INLINE_NOT_IN_HEADERS 14251 #if PROTOBUF_INLINE_NOT_IN_HEADERS
14071 // SourceCodeInfo_Location 14252 // SourceCodeInfo_Location
14072 14253
14073 // repeated int32 path = 1 [packed = true]; 14254 // repeated int32 path = 1 [packed = true];
14074 int SourceCodeInfo_Location::path_size() const { 14255 int SourceCodeInfo_Location::path_size() const {
14075 return path_.size(); 14256 return path_.size();
14076 } 14257 }
14077 void SourceCodeInfo_Location::clear_path() { 14258 void SourceCodeInfo_Location::clear_path() {
14078 path_.Clear(); 14259 path_.Clear();
14079 } 14260 }
14080 ::google::protobuf::int32 SourceCodeInfo_Location::path(int index) const { 14261 ::google::protobuf::int32 SourceCodeInfo_Location::path(int index) const {
14081 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location. path) 14262 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location. path)
14082 return path_.Get(index); 14263 return path_.Get(index);
14083 } 14264 }
14084 void SourceCodeInfo_Location::set_path(int index, ::google::protobuf::int32 val ue) { 14265 void SourceCodeInfo_Location::set_path(int index, ::google::protobuf::int32 valu e) {
14085 path_.Set(index, value); 14266 path_.Set(index, value);
14086 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location. path) 14267 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location. path)
14087 } 14268 }
14088 void SourceCodeInfo_Location::add_path(::google::protobuf::int32 value) { 14269 void SourceCodeInfo_Location::add_path(::google::protobuf::int32 value) {
14089 path_.Add(value); 14270 path_.Add(value);
14090 // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location. path) 14271 // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location. path)
14091 } 14272 }
14092 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& 14273 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
14093 SourceCodeInfo_Location::path() const { 14274 SourceCodeInfo_Location::path() const {
14094 // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location .path) 14275 // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location .path)
14095 return path_; 14276 return path_;
14096 } 14277 }
14097 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* 14278 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
14098 SourceCodeInfo_Location::mutable_path() { 14279 SourceCodeInfo_Location::mutable_path() {
14099 // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo. Location.path) 14280 // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo. Location.path)
14100 return &path_; 14281 return &path_;
14101 } 14282 }
14102 14283
14103 // repeated int32 span = 2 [packed = true]; 14284 // repeated int32 span = 2 [packed = true];
14104 int SourceCodeInfo_Location::span_size() const { 14285 int SourceCodeInfo_Location::span_size() const {
14105 return span_.size(); 14286 return span_.size();
14106 } 14287 }
14107 void SourceCodeInfo_Location::clear_span() { 14288 void SourceCodeInfo_Location::clear_span() {
14108 span_.Clear(); 14289 span_.Clear();
14109 } 14290 }
14110 ::google::protobuf::int32 SourceCodeInfo_Location::span(int index) const { 14291 ::google::protobuf::int32 SourceCodeInfo_Location::span(int index) const {
14111 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location. span) 14292 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location. span)
14112 return span_.Get(index); 14293 return span_.Get(index);
14113 } 14294 }
14114 void SourceCodeInfo_Location::set_span(int index, ::google::protobuf::int32 val ue) { 14295 void SourceCodeInfo_Location::set_span(int index, ::google::protobuf::int32 valu e) {
14115 span_.Set(index, value); 14296 span_.Set(index, value);
14116 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location. span) 14297 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location. span)
14117 } 14298 }
14118 void SourceCodeInfo_Location::add_span(::google::protobuf::int32 value) { 14299 void SourceCodeInfo_Location::add_span(::google::protobuf::int32 value) {
14119 span_.Add(value); 14300 span_.Add(value);
14120 // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location. span) 14301 // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location. span)
14121 } 14302 }
14122 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& 14303 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
14123 SourceCodeInfo_Location::span() const { 14304 SourceCodeInfo_Location::span() const {
14124 // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location .span) 14305 // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location .span)
14125 return span_; 14306 return span_;
14126 } 14307 }
14127 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* 14308 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
14128 SourceCodeInfo_Location::mutable_span() { 14309 SourceCodeInfo_Location::mutable_span() {
14129 // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo. Location.span) 14310 // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo. Location.span)
14130 return &span_; 14311 return &span_;
14131 } 14312 }
14132 14313
14133 // optional string leading_comments = 3; 14314 // optional string leading_comments = 3;
14134 bool SourceCodeInfo_Location::has_leading_comments() const { 14315 bool SourceCodeInfo_Location::has_leading_comments() const {
14135 return (_has_bits_[0] & 0x00000004u) != 0; 14316 return (_has_bits_[0] & 0x00000001u) != 0;
14136 } 14317 }
14137 void SourceCodeInfo_Location::set_has_leading_comments() { 14318 void SourceCodeInfo_Location::set_has_leading_comments() {
14138 _has_bits_[0] |= 0x00000004u; 14319 _has_bits_[0] |= 0x00000001u;
14139 } 14320 }
14140 void SourceCodeInfo_Location::clear_has_leading_comments() { 14321 void SourceCodeInfo_Location::clear_has_leading_comments() {
14141 _has_bits_[0] &= ~0x00000004u; 14322 _has_bits_[0] &= ~0x00000001u;
14142 } 14323 }
14143 void SourceCodeInfo_Location::clear_leading_comments() { 14324 void SourceCodeInfo_Location::clear_leading_comments() {
14144 leading_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyS tringAlreadyInited()); 14325 leading_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyS tringAlreadyInited());
14145 clear_has_leading_comments(); 14326 clear_has_leading_comments();
14146 } 14327 }
14147 const ::std::string& SourceCodeInfo_Location::leading_comments() const { 14328 const ::std::string& SourceCodeInfo_Location::leading_comments() const {
14148 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location. leading_comments) 14329 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location. leading_comments)
14149 return leading_comments_.GetNoArena(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited()); 14330 return leading_comments_.GetNoArena();
14150 } 14331 }
14151 void SourceCodeInfo_Location::set_leading_comments(const ::std::string& value) { 14332 void SourceCodeInfo_Location::set_leading_comments(const ::std::string& value) {
14152 set_has_leading_comments(); 14333 set_has_leading_comments();
14153 leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), value); 14334 leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), value);
14154 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location. leading_comments) 14335 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location. leading_comments)
14155 } 14336 }
14156 void SourceCodeInfo_Location::set_leading_comments(const char* value) { 14337 #if LANG_CXX11
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) {
14157 set_has_leading_comments(); 14346 set_has_leading_comments();
14158 leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), ::std::string(value)); 14347 leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), ::std::string(value));
14159 // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Loca tion.leading_comments) 14348 // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Loca tion.leading_comments)
14160 } 14349 }
14161 void SourceCodeInfo_Location::set_leading_comments(const char* value, size_t si ze) { 14350 void SourceCodeInfo_Location::set_leading_comments(const char* value, size_t siz e) {
14162 set_has_leading_comments(); 14351 set_has_leading_comments();
14163 leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), 14352 leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(),
14164 ::std::string(reinterpret_cast<const char*>(value), size)); 14353 ::std::string(reinterpret_cast<const char*>(value), size));
14165 // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.L ocation.leading_comments) 14354 // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.L ocation.leading_comments)
14166 } 14355 }
14167 ::std::string* SourceCodeInfo_Location::mutable_leading_comments() { 14356 ::std::string* SourceCodeInfo_Location::mutable_leading_comments() {
14168 set_has_leading_comments(); 14357 set_has_leading_comments();
14169 // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Locat ion.leading_comments) 14358 // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Locat ion.leading_comments)
14170 return leading_comments_.MutableNoArena(&::google::protobuf::internal::GetEmpt yStringAlreadyInited()); 14359 return leading_comments_.MutableNoArena(&::google::protobuf::internal::GetEmpt yStringAlreadyInited());
14171 } 14360 }
14172 ::std::string* SourceCodeInfo_Location::release_leading_comments() { 14361 ::std::string* SourceCodeInfo_Location::release_leading_comments() {
14173 // @@protoc_insertion_point(field_release:google.protobuf.SourceCodeInfo.Locat ion.leading_comments) 14362 // @@protoc_insertion_point(field_release:google.protobuf.SourceCodeInfo.Locat ion.leading_comments)
14174 clear_has_leading_comments(); 14363 clear_has_leading_comments();
14175 return leading_comments_.ReleaseNoArena(&::google::protobuf::internal::GetEmpt yStringAlreadyInited()); 14364 return leading_comments_.ReleaseNoArena(&::google::protobuf::internal::GetEmpt yStringAlreadyInited());
14176 } 14365 }
14177 void SourceCodeInfo_Location::set_allocated_leading_comments(::std::string* lea ding_comments) { 14366 void SourceCodeInfo_Location::set_allocated_leading_comments(::std::string* lead ing_comments) {
14178 if (leading_comments != NULL) { 14367 if (leading_comments != NULL) {
14179 set_has_leading_comments(); 14368 set_has_leading_comments();
14180 } else { 14369 } else {
14181 clear_has_leading_comments(); 14370 clear_has_leading_comments();
14182 } 14371 }
14183 leading_comments_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyS tringAlreadyInited(), leading_comments); 14372 leading_comments_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyS tringAlreadyInited(), leading_comments);
14184 // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceCodeInfo .Location.leading_comments) 14373 // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceCodeInfo .Location.leading_comments)
14185 } 14374 }
14186 14375
14187 // optional string trailing_comments = 4; 14376 // optional string trailing_comments = 4;
14188 bool SourceCodeInfo_Location::has_trailing_comments() const { 14377 bool SourceCodeInfo_Location::has_trailing_comments() const {
14189 return (_has_bits_[0] & 0x00000008u) != 0; 14378 return (_has_bits_[0] & 0x00000002u) != 0;
14190 } 14379 }
14191 void SourceCodeInfo_Location::set_has_trailing_comments() { 14380 void SourceCodeInfo_Location::set_has_trailing_comments() {
14192 _has_bits_[0] |= 0x00000008u; 14381 _has_bits_[0] |= 0x00000002u;
14193 } 14382 }
14194 void SourceCodeInfo_Location::clear_has_trailing_comments() { 14383 void SourceCodeInfo_Location::clear_has_trailing_comments() {
14195 _has_bits_[0] &= ~0x00000008u; 14384 _has_bits_[0] &= ~0x00000002u;
14196 } 14385 }
14197 void SourceCodeInfo_Location::clear_trailing_comments() { 14386 void SourceCodeInfo_Location::clear_trailing_comments() {
14198 trailing_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited()); 14387 trailing_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited());
14199 clear_has_trailing_comments(); 14388 clear_has_trailing_comments();
14200 } 14389 }
14201 const ::std::string& SourceCodeInfo_Location::trailing_comments() const { 14390 const ::std::string& SourceCodeInfo_Location::trailing_comments() const {
14202 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location. trailing_comments) 14391 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location. trailing_comments)
14203 return trailing_comments_.GetNoArena(&::google::protobuf::internal::GetEmptySt ringAlreadyInited()); 14392 return trailing_comments_.GetNoArena();
14204 } 14393 }
14205 void SourceCodeInfo_Location::set_trailing_comments(const ::std::string& value) { 14394 void SourceCodeInfo_Location::set_trailing_comments(const ::std::string& value) {
14206 set_has_trailing_comments(); 14395 set_has_trailing_comments();
14207 trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), value); 14396 trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), value);
14208 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location. trailing_comments) 14397 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location. trailing_comments)
14209 } 14398 }
14210 void SourceCodeInfo_Location::set_trailing_comments(const char* value) { 14399 #if LANG_CXX11
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) {
14211 set_has_trailing_comments(); 14408 set_has_trailing_comments();
14212 trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), ::std::string(value)); 14409 trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), ::std::string(value));
14213 // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Loca tion.trailing_comments) 14410 // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Loca tion.trailing_comments)
14214 } 14411 }
14215 void SourceCodeInfo_Location::set_trailing_comments(const char* value, size_t s ize) { 14412 void SourceCodeInfo_Location::set_trailing_comments(const char* value, size_t si ze) {
14216 set_has_trailing_comments(); 14413 set_has_trailing_comments();
14217 trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), 14414 trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(),
14218 ::std::string(reinterpret_cast<const char*>(value), size)); 14415 ::std::string(reinterpret_cast<const char*>(value), size));
14219 // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.L ocation.trailing_comments) 14416 // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.L ocation.trailing_comments)
14220 } 14417 }
14221 ::std::string* SourceCodeInfo_Location::mutable_trailing_comments() { 14418 ::std::string* SourceCodeInfo_Location::mutable_trailing_comments() {
14222 set_has_trailing_comments(); 14419 set_has_trailing_comments();
14223 // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Locat ion.trailing_comments) 14420 // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Locat ion.trailing_comments)
14224 return trailing_comments_.MutableNoArena(&::google::protobuf::internal::GetEmp tyStringAlreadyInited()); 14421 return trailing_comments_.MutableNoArena(&::google::protobuf::internal::GetEmp tyStringAlreadyInited());
14225 } 14422 }
14226 ::std::string* SourceCodeInfo_Location::release_trailing_comments() { 14423 ::std::string* SourceCodeInfo_Location::release_trailing_comments() {
14227 // @@protoc_insertion_point(field_release:google.protobuf.SourceCodeInfo.Locat ion.trailing_comments) 14424 // @@protoc_insertion_point(field_release:google.protobuf.SourceCodeInfo.Locat ion.trailing_comments)
14228 clear_has_trailing_comments(); 14425 clear_has_trailing_comments();
14229 return trailing_comments_.ReleaseNoArena(&::google::protobuf::internal::GetEmp tyStringAlreadyInited()); 14426 return trailing_comments_.ReleaseNoArena(&::google::protobuf::internal::GetEmp tyStringAlreadyInited());
14230 } 14427 }
14231 void SourceCodeInfo_Location::set_allocated_trailing_comments(::std::string* tr ailing_comments) { 14428 void SourceCodeInfo_Location::set_allocated_trailing_comments(::std::string* tra iling_comments) {
14232 if (trailing_comments != NULL) { 14429 if (trailing_comments != NULL) {
14233 set_has_trailing_comments(); 14430 set_has_trailing_comments();
14234 } else { 14431 } else {
14235 clear_has_trailing_comments(); 14432 clear_has_trailing_comments();
14236 } 14433 }
14237 trailing_comments_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited(), trailing_comments); 14434 trailing_comments_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited(), trailing_comments);
14238 // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceCodeInfo .Location.trailing_comments) 14435 // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceCodeInfo .Location.trailing_comments)
14239 } 14436 }
14240 14437
14241 // repeated string leading_detached_comments = 6; 14438 // repeated string leading_detached_comments = 6;
14242 int SourceCodeInfo_Location::leading_detached_comments_size() const { 14439 int SourceCodeInfo_Location::leading_detached_comments_size() const {
14243 return leading_detached_comments_.size(); 14440 return leading_detached_comments_.size();
14244 } 14441 }
14245 void SourceCodeInfo_Location::clear_leading_detached_comments() { 14442 void SourceCodeInfo_Location::clear_leading_detached_comments() {
14246 leading_detached_comments_.Clear(); 14443 leading_detached_comments_.Clear();
14247 } 14444 }
14248 const ::std::string& SourceCodeInfo_Location::leading_detached_comments(int ind ex) const { 14445 const ::std::string& SourceCodeInfo_Location::leading_detached_comments(int inde x) const {
14249 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location. leading_detached_comments) 14446 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location. leading_detached_comments)
14250 return leading_detached_comments_.Get(index); 14447 return leading_detached_comments_.Get(index);
14251 } 14448 }
14252 ::std::string* SourceCodeInfo_Location::mutable_leading_detached_comments(int i ndex) { 14449 ::std::string* SourceCodeInfo_Location::mutable_leading_detached_comments(int in dex) {
14253 // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Locat ion.leading_detached_comments) 14450 // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Locat ion.leading_detached_comments)
14254 return leading_detached_comments_.Mutable(index); 14451 return leading_detached_comments_.Mutable(index);
14255 } 14452 }
14256 void SourceCodeInfo_Location::set_leading_detached_comments(int index, const :: std::string& value) { 14453 void SourceCodeInfo_Location::set_leading_detached_comments(int index, const ::s td::string& value) {
14257 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location. leading_detached_comments) 14454 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location. leading_detached_comments)
14258 leading_detached_comments_.Mutable(index)->assign(value); 14455 leading_detached_comments_.Mutable(index)->assign(value);
14259 } 14456 }
14260 void SourceCodeInfo_Location::set_leading_detached_comments(int index, const ch ar* value) { 14457 void SourceCodeInfo_Location::set_leading_detached_comments(int index, const cha r* value) {
14261 leading_detached_comments_.Mutable(index)->assign(value); 14458 leading_detached_comments_.Mutable(index)->assign(value);
14262 // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Loca tion.leading_detached_comments) 14459 // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Loca tion.leading_detached_comments)
14263 } 14460 }
14264 void SourceCodeInfo_Location::set_leading_detached_comments(int index, const ch ar* value, size_t size) { 14461 void SourceCodeInfo_Location::set_leading_detached_comments(int index, const cha r* value, size_t size) {
14265 leading_detached_comments_.Mutable(index)->assign( 14462 leading_detached_comments_.Mutable(index)->assign(
14266 reinterpret_cast<const char*>(value), size); 14463 reinterpret_cast<const char*>(value), size);
14267 // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.L ocation.leading_detached_comments) 14464 // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.L ocation.leading_detached_comments)
14268 } 14465 }
14269 ::std::string* SourceCodeInfo_Location::add_leading_detached_comments() { 14466 ::std::string* SourceCodeInfo_Location::add_leading_detached_comments() {
14270 // @@protoc_insertion_point(field_add_mutable:google.protobuf.SourceCodeInfo.L ocation.leading_detached_comments) 14467 // @@protoc_insertion_point(field_add_mutable:google.protobuf.SourceCodeInfo.L ocation.leading_detached_comments)
14271 return leading_detached_comments_.Add(); 14468 return leading_detached_comments_.Add();
14272 } 14469 }
14273 void SourceCodeInfo_Location::add_leading_detached_comments(const ::std::string & value) { 14470 void SourceCodeInfo_Location::add_leading_detached_comments(const ::std::string& value) {
14274 leading_detached_comments_.Add()->assign(value); 14471 leading_detached_comments_.Add()->assign(value);
14275 // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location. leading_detached_comments) 14472 // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location. leading_detached_comments)
14276 } 14473 }
14277 void SourceCodeInfo_Location::add_leading_detached_comments(const char* value) { 14474 void SourceCodeInfo_Location::add_leading_detached_comments(const char* value) {
14278 leading_detached_comments_.Add()->assign(value); 14475 leading_detached_comments_.Add()->assign(value);
14279 // @@protoc_insertion_point(field_add_char:google.protobuf.SourceCodeInfo.Loca tion.leading_detached_comments) 14476 // @@protoc_insertion_point(field_add_char:google.protobuf.SourceCodeInfo.Loca tion.leading_detached_comments)
14280 } 14477 }
14281 void SourceCodeInfo_Location::add_leading_detached_comments(const char* value, size_t size) { 14478 void SourceCodeInfo_Location::add_leading_detached_comments(const char* value, s ize_t size) {
14282 leading_detached_comments_.Add()->assign(reinterpret_cast<const char*>(value), size); 14479 leading_detached_comments_.Add()->assign(reinterpret_cast<const char*>(value), size);
14283 // @@protoc_insertion_point(field_add_pointer:google.protobuf.SourceCodeInfo.L ocation.leading_detached_comments) 14480 // @@protoc_insertion_point(field_add_pointer:google.protobuf.SourceCodeInfo.L ocation.leading_detached_comments)
14284 } 14481 }
14285 const ::google::protobuf::RepeatedPtrField< ::std::string>& 14482 const ::google::protobuf::RepeatedPtrField< ::std::string>&
14286 SourceCodeInfo_Location::leading_detached_comments() const { 14483 SourceCodeInfo_Location::leading_detached_comments() const {
14287 // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location .leading_detached_comments) 14484 // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location .leading_detached_comments)
14288 return leading_detached_comments_; 14485 return leading_detached_comments_;
14289 } 14486 }
14290 ::google::protobuf::RepeatedPtrField< ::std::string>* 14487 ::google::protobuf::RepeatedPtrField< ::std::string>*
14291 SourceCodeInfo_Location::mutable_leading_detached_comments() { 14488 SourceCodeInfo_Location::mutable_leading_detached_comments() {
14292 // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo. Location.leading_detached_comments) 14489 // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo. Location.leading_detached_comments)
14293 return &leading_detached_comments_; 14490 return &leading_detached_comments_;
14294 } 14491 }
14295 14492
14296 // ------------------------------------------------------------------- 14493 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
14297 14494
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
14298 // SourceCodeInfo 14725 // SourceCodeInfo
14299 14726
14300 // repeated .google.protobuf.SourceCodeInfo.Location location = 1; 14727 // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
14301 int SourceCodeInfo::location_size() const { 14728 int SourceCodeInfo::location_size() const {
14302 return location_.size(); 14729 return location_.size();
14303 } 14730 }
14304 void SourceCodeInfo::clear_location() { 14731 void SourceCodeInfo::clear_location() {
14305 location_.Clear(); 14732 location_.Clear();
14306 } 14733 }
14307 const ::google::protobuf::SourceCodeInfo_Location& SourceCodeInfo::location(int index) const { 14734 const ::google::protobuf::SourceCodeInfo_Location& SourceCodeInfo::location(int index) const {
(...skipping 25 matching lines...) Expand all
14333 14760
14334 #if !defined(_MSC_VER) || _MSC_VER >= 1900 14761 #if !defined(_MSC_VER) || _MSC_VER >= 1900
14335 const int GeneratedCodeInfo_Annotation::kPathFieldNumber; 14762 const int GeneratedCodeInfo_Annotation::kPathFieldNumber;
14336 const int GeneratedCodeInfo_Annotation::kSourceFileFieldNumber; 14763 const int GeneratedCodeInfo_Annotation::kSourceFileFieldNumber;
14337 const int GeneratedCodeInfo_Annotation::kBeginFieldNumber; 14764 const int GeneratedCodeInfo_Annotation::kBeginFieldNumber;
14338 const int GeneratedCodeInfo_Annotation::kEndFieldNumber; 14765 const int GeneratedCodeInfo_Annotation::kEndFieldNumber;
14339 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 14766 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
14340 14767
14341 GeneratedCodeInfo_Annotation::GeneratedCodeInfo_Annotation() 14768 GeneratedCodeInfo_Annotation::GeneratedCodeInfo_Annotation()
14342 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 14769 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
14770 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
14771 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
14772 }
14343 SharedCtor(); 14773 SharedCtor();
14344 // @@protoc_insertion_point(constructor:google.protobuf.GeneratedCodeInfo.Anno tation) 14774 // @@protoc_insertion_point(constructor:google.protobuf.GeneratedCodeInfo.Anno tation)
14345 } 14775 }
14346
14347 void GeneratedCodeInfo_Annotation::InitAsDefaultInstance() {
14348 }
14349
14350 GeneratedCodeInfo_Annotation::GeneratedCodeInfo_Annotation(const GeneratedCodeIn fo_Annotation& from) 14776 GeneratedCodeInfo_Annotation::GeneratedCodeInfo_Annotation(const GeneratedCodeIn fo_Annotation& from)
14351 : ::google::protobuf::Message(), 14777 : ::google::protobuf::Message(),
14352 _internal_metadata_(NULL) { 14778 _internal_metadata_(NULL),
14353 SharedCtor(); 14779 _has_bits_(from._has_bits_),
14354 MergeFrom(from); 14780 _cached_size_(0),
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_));
14355 // @@protoc_insertion_point(copy_constructor:google.protobuf.GeneratedCodeInfo .Annotation) 14790 // @@protoc_insertion_point(copy_constructor:google.protobuf.GeneratedCodeInfo .Annotation)
14356 } 14791 }
14357 14792
14358 void GeneratedCodeInfo_Annotation::SharedCtor() { 14793 void GeneratedCodeInfo_Annotation::SharedCtor() {
14359 ::google::protobuf::internal::GetEmptyString();
14360 _cached_size_ = 0; 14794 _cached_size_ = 0;
14361 source_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlr eadyInited()); 14795 source_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlr eadyInited());
14362 begin_ = 0; 14796 ::memset(&begin_, 0, reinterpret_cast<char*>(&end_) -
14363 end_ = 0; 14797 reinterpret_cast<char*>(&begin_) + sizeof(end_));
14364 ::memset(_has_bits_, 0, sizeof(_has_bits_));
14365 } 14798 }
14366 14799
14367 GeneratedCodeInfo_Annotation::~GeneratedCodeInfo_Annotation() { 14800 GeneratedCodeInfo_Annotation::~GeneratedCodeInfo_Annotation() {
14368 // @@protoc_insertion_point(destructor:google.protobuf.GeneratedCodeInfo.Annot ation) 14801 // @@protoc_insertion_point(destructor:google.protobuf.GeneratedCodeInfo.Annot ation)
14369 SharedDtor(); 14802 SharedDtor();
14370 } 14803 }
14371 14804
14372 void GeneratedCodeInfo_Annotation::SharedDtor() { 14805 void GeneratedCodeInfo_Annotation::SharedDtor() {
14373 source_file_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 14806 source_file_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
14374 if (this != default_instance_) {
14375 }
14376 } 14807 }
14377 14808
14378 void GeneratedCodeInfo_Annotation::SetCachedSize(int size) const { 14809 void GeneratedCodeInfo_Annotation::SetCachedSize(int size) const {
14379 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 14810 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
14380 _cached_size_ = size; 14811 _cached_size_ = size;
14381 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 14812 GOOGLE_SAFE_CONCURRENT_WRITES_END();
14382 } 14813 }
14383 const ::google::protobuf::Descriptor* GeneratedCodeInfo_Annotation::descriptor() { 14814 const ::google::protobuf::Descriptor* GeneratedCodeInfo_Annotation::descriptor() {
14384 protobuf_AssignDescriptorsOnce(); 14815 protobuf_AssignDescriptorsOnce();
14385 return GeneratedCodeInfo_Annotation_descriptor_; 14816 return file_level_metadata[23].descriptor;
14386 } 14817 }
14387 14818
14388 const GeneratedCodeInfo_Annotation& GeneratedCodeInfo_Annotation::default_instan ce() { 14819 const GeneratedCodeInfo_Annotation& GeneratedCodeInfo_Annotation::default_instan ce() {
14389 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 14820 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
14390 return *default_instance_; 14821 return *internal_default_instance();
14391 } 14822 }
14392 14823
14393 GeneratedCodeInfo_Annotation* GeneratedCodeInfo_Annotation::default_instance_ = NULL;
14394
14395 GeneratedCodeInfo_Annotation* GeneratedCodeInfo_Annotation::New(::google::protob uf::Arena* arena) const { 14824 GeneratedCodeInfo_Annotation* GeneratedCodeInfo_Annotation::New(::google::protob uf::Arena* arena) const {
14396 GeneratedCodeInfo_Annotation* n = new GeneratedCodeInfo_Annotation; 14825 GeneratedCodeInfo_Annotation* n = new GeneratedCodeInfo_Annotation;
14397 if (arena != NULL) { 14826 if (arena != NULL) {
14398 arena->Own(n); 14827 arena->Own(n);
14399 } 14828 }
14400 return n; 14829 return n;
14401 } 14830 }
14402 14831
14403 void GeneratedCodeInfo_Annotation::Clear() { 14832 void GeneratedCodeInfo_Annotation::Clear() {
14404 // @@protoc_insertion_point(message_clear_start:google.protobuf.GeneratedCodeInf o.Annotation) 14833 // @@protoc_insertion_point(message_clear_start:google.protobuf.GeneratedCodeInf o.Annotation)
14405 #if defined(__clang__) 14834 path_.Clear();
14406 #define ZR_HELPER_(f) \ 14835 if (has_source_file()) {
14407 _Pragma("clang diagnostic push") \ 14836 GOOGLE_DCHECK(!source_file_.IsDefault(&::google::protobuf::internal::GetEmpt yStringAlreadyInited()));
14408 _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ 14837 (*source_file_.UnsafeRawStringPointer())->clear();
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 } 14838 }
14427 14839 if (_has_bits_[0 / 32] & 6u) {
14428 #undef ZR_HELPER_ 14840 ::memset(&begin_, 0, reinterpret_cast<char*>(&end_) -
14429 #undef ZR_ 14841 reinterpret_cast<char*>(&begin_) + sizeof(end_));
14430
14431 path_.Clear();
14432 ::memset(_has_bits_, 0, sizeof(_has_bits_));
14433 if (_internal_metadata_.have_unknown_fields()) {
14434 mutable_unknown_fields()->Clear();
14435 } 14842 }
14843 _has_bits_.Clear();
14844 _internal_metadata_.Clear();
14436 } 14845 }
14437 14846
14438 bool GeneratedCodeInfo_Annotation::MergePartialFromCodedStream( 14847 bool GeneratedCodeInfo_Annotation::MergePartialFromCodedStream(
14439 ::google::protobuf::io::CodedInputStream* input) { 14848 ::google::protobuf::io::CodedInputStream* input) {
14440 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 14849 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
14441 ::google::protobuf::uint32 tag; 14850 ::google::protobuf::uint32 tag;
14442 // @@protoc_insertion_point(parse_start:google.protobuf.GeneratedCodeInfo.Anno tation) 14851 // @@protoc_insertion_point(parse_start:google.protobuf.GeneratedCodeInfo.Anno tation)
14443 for (;;) { 14852 for (;;) {
14444 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127); 14853 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u);
14445 tag = p.first; 14854 tag = p.first;
14446 if (!p.second) goto handle_unusual; 14855 if (!p.second) goto handle_unusual;
14447 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 14856 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
14448 // repeated int32 path = 1 [packed = true]; 14857 // repeated int32 path = 1 [packed = true];
14449 case 1: { 14858 case 1: {
14450 if (tag == 10) { 14859 if (tag == 10u) {
14451 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive < 14860 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive <
14452 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>( 14861 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
14453 input, this->mutable_path()))); 14862 input, this->mutable_path())));
14454 } else if (tag == 8) { 14863 } else if (tag == 8u) {
14455 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimiti veNoInline< 14864 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimiti veNoInline<
14456 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>( 14865 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
14457 1, 10, input, this->mutable_path()))); 14866 1, 10u, input, this->mutable_path())));
14458 } else { 14867 } else {
14459 goto handle_unusual; 14868 goto handle_unusual;
14460 } 14869 }
14461 if (input->ExpectTag(18)) goto parse_source_file;
14462 break; 14870 break;
14463 } 14871 }
14464 14872
14465 // optional string source_file = 2; 14873 // optional string source_file = 2;
14466 case 2: { 14874 case 2: {
14467 if (tag == 18) { 14875 if (tag == 18u) {
14468 parse_source_file:
14469 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 14876 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
14470 input, this->mutable_source_file())); 14877 input, this->mutable_source_file()));
14471 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 14878 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14472 this->source_file().data(), this->source_file().length(), 14879 this->source_file().data(), this->source_file().length(),
14473 ::google::protobuf::internal::WireFormat::PARSE, 14880 ::google::protobuf::internal::WireFormat::PARSE,
14474 "google.protobuf.GeneratedCodeInfo.Annotation.source_file"); 14881 "google.protobuf.GeneratedCodeInfo.Annotation.source_file");
14475 } else { 14882 } else {
14476 goto handle_unusual; 14883 goto handle_unusual;
14477 } 14884 }
14478 if (input->ExpectTag(24)) goto parse_begin;
14479 break; 14885 break;
14480 } 14886 }
14481 14887
14482 // optional int32 begin = 3; 14888 // optional int32 begin = 3;
14483 case 3: { 14889 case 3: {
14484 if (tag == 24) { 14890 if (tag == 24u) {
14485 parse_begin: 14891 set_has_begin();
14486 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 14892 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
14487 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>( 14893 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
14488 input, &begin_))); 14894 input, &begin_)));
14489 set_has_begin();
14490 } else { 14895 } else {
14491 goto handle_unusual; 14896 goto handle_unusual;
14492 } 14897 }
14493 if (input->ExpectTag(32)) goto parse_end;
14494 break; 14898 break;
14495 } 14899 }
14496 14900
14497 // optional int32 end = 4; 14901 // optional int32 end = 4;
14498 case 4: { 14902 case 4: {
14499 if (tag == 32) { 14903 if (tag == 32u) {
14500 parse_end: 14904 set_has_end();
14501 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 14905 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
14502 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>( 14906 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
14503 input, &end_))); 14907 input, &end_)));
14504 set_has_end();
14505 } else { 14908 } else {
14506 goto handle_unusual; 14909 goto handle_unusual;
14507 } 14910 }
14508 if (input->ExpectAtEnd()) goto success;
14509 break; 14911 break;
14510 } 14912 }
14511 14913
14512 default: { 14914 default: {
14513 handle_unusual: 14915 handle_unusual:
14514 if (tag == 0 || 14916 if (tag == 0 ||
14515 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 14917 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
14516 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 14918 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
14517 goto success; 14919 goto success;
14518 } 14920 }
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
14564 ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->end(), out put); 14966 ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->end(), out put);
14565 } 14967 }
14566 14968
14567 if (_internal_metadata_.have_unknown_fields()) { 14969 if (_internal_metadata_.have_unknown_fields()) {
14568 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 14970 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
14569 unknown_fields(), output); 14971 unknown_fields(), output);
14570 } 14972 }
14571 // @@protoc_insertion_point(serialize_end:google.protobuf.GeneratedCodeInfo.An notation) 14973 // @@protoc_insertion_point(serialize_end:google.protobuf.GeneratedCodeInfo.An notation)
14572 } 14974 }
14573 14975
14574 ::google::protobuf::uint8* GeneratedCodeInfo_Annotation::SerializeWithCachedSize sToArray( 14976 ::google::protobuf::uint8* GeneratedCodeInfo_Annotation::InternalSerializeWithCa chedSizesToArray(
14575 ::google::protobuf::uint8* target) const { 14977 bool deterministic, ::google::protobuf::uint8* target) const {
14978 (void)deterministic; // Unused
14576 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Generated CodeInfo.Annotation) 14979 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Generated CodeInfo.Annotation)
14577 // repeated int32 path = 1 [packed = true]; 14980 // repeated int32 path = 1 [packed = true];
14578 if (this->path_size() > 0) { 14981 if (this->path_size() > 0) {
14579 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( 14982 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
14580 1, 14983 1,
14581 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, 14984 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
14582 target); 14985 target);
14583 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( 14986 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
14584 _path_cached_byte_size_, target); 14987 _path_cached_byte_size_, target);
14585 } 14988 }
(...skipping 24 matching lines...) Expand all
14610 } 15013 }
14611 15014
14612 if (_internal_metadata_.have_unknown_fields()) { 15015 if (_internal_metadata_.have_unknown_fields()) {
14613 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 15016 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
14614 unknown_fields(), target); 15017 unknown_fields(), target);
14615 } 15018 }
14616 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.GeneratedCo deInfo.Annotation) 15019 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.GeneratedCo deInfo.Annotation)
14617 return target; 15020 return target;
14618 } 15021 }
14619 15022
14620 int GeneratedCodeInfo_Annotation::ByteSize() const { 15023 size_t GeneratedCodeInfo_Annotation::ByteSizeLong() const {
14621 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.GeneratedCod eInfo.Annotation) 15024 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.GeneratedCod eInfo.Annotation)
14622 int total_size = 0; 15025 size_t total_size = 0;
14623 15026
14624 if (_has_bits_[1 / 32] & 14u) { 15027 if (_internal_metadata_.have_unknown_fields()) {
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) {
14625 // optional string source_file = 2; 15052 // optional string source_file = 2;
14626 if (has_source_file()) { 15053 if (has_source_file()) {
14627 total_size += 1 + 15054 total_size += 1 +
14628 ::google::protobuf::internal::WireFormatLite::StringSize( 15055 ::google::protobuf::internal::WireFormatLite::StringSize(
14629 this->source_file()); 15056 this->source_file());
14630 } 15057 }
14631 15058
14632 // optional int32 begin = 3; 15059 // optional int32 begin = 3;
14633 if (has_begin()) { 15060 if (has_begin()) {
14634 total_size += 1 + 15061 total_size += 1 +
14635 ::google::protobuf::internal::WireFormatLite::Int32Size( 15062 ::google::protobuf::internal::WireFormatLite::Int32Size(
14636 this->begin()); 15063 this->begin());
14637 } 15064 }
14638 15065
14639 // optional int32 end = 4; 15066 // optional int32 end = 4;
14640 if (has_end()) { 15067 if (has_end()) {
14641 total_size += 1 + 15068 total_size += 1 +
14642 ::google::protobuf::internal::WireFormatLite::Int32Size( 15069 ::google::protobuf::internal::WireFormatLite::Int32Size(
14643 this->end()); 15070 this->end());
14644 } 15071 }
14645 15072
14646 } 15073 }
14647 // repeated int32 path = 1 [packed = true]; 15074 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
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 }
14669 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 15075 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
14670 _cached_size_ = total_size; 15076 _cached_size_ = cached_size;
14671 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 15077 GOOGLE_SAFE_CONCURRENT_WRITES_END();
14672 return total_size; 15078 return total_size;
14673 } 15079 }
14674 15080
14675 void GeneratedCodeInfo_Annotation::MergeFrom(const ::google::protobuf::Message& from) { 15081 void GeneratedCodeInfo_Annotation::MergeFrom(const ::google::protobuf::Message& from) {
14676 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Generat edCodeInfo.Annotation) 15082 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Generat edCodeInfo.Annotation)
14677 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 15083 GOOGLE_DCHECK_NE(&from, this);
14678 const GeneratedCodeInfo_Annotation* source = 15084 const GeneratedCodeInfo_Annotation* source =
14679 ::google::protobuf::internal::DynamicCastToGenerated<const GeneratedCodeIn fo_Annotation>( 15085 ::google::protobuf::internal::DynamicCastToGenerated<const GeneratedCodeIn fo_Annotation>(
14680 &from); 15086 &from);
14681 if (source == NULL) { 15087 if (source == NULL) {
14682 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.G eneratedCodeInfo.Annotation) 15088 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.G eneratedCodeInfo.Annotation)
14683 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 15089 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
14684 } else { 15090 } else {
14685 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.GeneratedCodeInfo.Annotation) 15091 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.GeneratedCodeInfo.Annotation)
14686 MergeFrom(*source); 15092 MergeFrom(*source);
14687 } 15093 }
14688 } 15094 }
14689 15095
14690 void GeneratedCodeInfo_Annotation::MergeFrom(const GeneratedCodeInfo_Annotation& from) { 15096 void GeneratedCodeInfo_Annotation::MergeFrom(const GeneratedCodeInfo_Annotation& from) {
14691 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Gene ratedCodeInfo.Annotation) 15097 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Gene ratedCodeInfo.Annotation)
14692 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 15098 GOOGLE_DCHECK_NE(&from, this);
15099 _internal_metadata_.MergeFrom(from._internal_metadata_);
14693 path_.MergeFrom(from.path_); 15100 path_.MergeFrom(from.path_);
14694 if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { 15101 if (from._has_bits_[0 / 32] & 7u) {
14695 if (from.has_source_file()) { 15102 if (from.has_source_file()) {
14696 set_has_source_file(); 15103 set_has_source_file();
14697 source_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited(), from.source_file_); 15104 source_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited(), from.source_file_);
14698 } 15105 }
14699 if (from.has_begin()) { 15106 if (from.has_begin()) {
14700 set_begin(from.begin()); 15107 set_begin(from.begin());
14701 } 15108 }
14702 if (from.has_end()) { 15109 if (from.has_end()) {
14703 set_end(from.end()); 15110 set_end(from.end());
14704 } 15111 }
14705 } 15112 }
14706 if (from._internal_metadata_.have_unknown_fields()) {
14707 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
14708 }
14709 } 15113 }
14710 15114
14711 void GeneratedCodeInfo_Annotation::CopyFrom(const ::google::protobuf::Message& f rom) { 15115 void GeneratedCodeInfo_Annotation::CopyFrom(const ::google::protobuf::Message& f rom) {
14712 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Generate dCodeInfo.Annotation) 15116 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Generate dCodeInfo.Annotation)
14713 if (&from == this) return; 15117 if (&from == this) return;
14714 Clear(); 15118 Clear();
14715 MergeFrom(from); 15119 MergeFrom(from);
14716 } 15120 }
14717 15121
14718 void GeneratedCodeInfo_Annotation::CopyFrom(const GeneratedCodeInfo_Annotation& from) { 15122 void GeneratedCodeInfo_Annotation::CopyFrom(const GeneratedCodeInfo_Annotation& from) {
14719 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Gener atedCodeInfo.Annotation) 15123 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Gener atedCodeInfo.Annotation)
14720 if (&from == this) return; 15124 if (&from == this) return;
14721 Clear(); 15125 Clear();
14722 MergeFrom(from); 15126 MergeFrom(from);
14723 } 15127 }
14724 15128
14725 bool GeneratedCodeInfo_Annotation::IsInitialized() const { 15129 bool GeneratedCodeInfo_Annotation::IsInitialized() const {
14726
14727 return true; 15130 return true;
14728 } 15131 }
14729 15132
14730 void GeneratedCodeInfo_Annotation::Swap(GeneratedCodeInfo_Annotation* other) { 15133 void GeneratedCodeInfo_Annotation::Swap(GeneratedCodeInfo_Annotation* other) {
14731 if (other == this) return; 15134 if (other == this) return;
14732 InternalSwap(other); 15135 InternalSwap(other);
14733 } 15136 }
14734 void GeneratedCodeInfo_Annotation::InternalSwap(GeneratedCodeInfo_Annotation* ot her) { 15137 void GeneratedCodeInfo_Annotation::InternalSwap(GeneratedCodeInfo_Annotation* ot her) {
14735 path_.UnsafeArenaSwap(&other->path_); 15138 path_.UnsafeArenaSwap(&other->path_);
14736 source_file_.Swap(&other->source_file_); 15139 source_file_.Swap(&other->source_file_);
14737 std::swap(begin_, other->begin_); 15140 std::swap(begin_, other->begin_);
14738 std::swap(end_, other->end_); 15141 std::swap(end_, other->end_);
14739 std::swap(_has_bits_[0], other->_has_bits_[0]); 15142 std::swap(_has_bits_[0], other->_has_bits_[0]);
14740 _internal_metadata_.Swap(&other->_internal_metadata_); 15143 _internal_metadata_.Swap(&other->_internal_metadata_);
14741 std::swap(_cached_size_, other->_cached_size_); 15144 std::swap(_cached_size_, other->_cached_size_);
14742 } 15145 }
14743 15146
14744 ::google::protobuf::Metadata GeneratedCodeInfo_Annotation::GetMetadata() const { 15147 ::google::protobuf::Metadata GeneratedCodeInfo_Annotation::GetMetadata() const {
14745 protobuf_AssignDescriptorsOnce(); 15148 protobuf_AssignDescriptorsOnce();
14746 ::google::protobuf::Metadata metadata; 15149 return file_level_metadata[23];
14747 metadata.descriptor = GeneratedCodeInfo_Annotation_descriptor_; 15150 }
14748 metadata.reflection = GeneratedCodeInfo_Annotation_reflection_; 15151
14749 return metadata; 15152 #if PROTOBUF_INLINE_NOT_IN_HEADERS
14750 } 15153 // GeneratedCodeInfo_Annotation
14751 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 // ===================================================================
14754 15298
14755 #if !defined(_MSC_VER) || _MSC_VER >= 1900 15299 #if !defined(_MSC_VER) || _MSC_VER >= 1900
14756 const int GeneratedCodeInfo::kAnnotationFieldNumber; 15300 const int GeneratedCodeInfo::kAnnotationFieldNumber;
14757 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 15301 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
14758 15302
14759 GeneratedCodeInfo::GeneratedCodeInfo() 15303 GeneratedCodeInfo::GeneratedCodeInfo()
14760 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 15304 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
15305 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
15306 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
15307 }
14761 SharedCtor(); 15308 SharedCtor();
14762 // @@protoc_insertion_point(constructor:google.protobuf.GeneratedCodeInfo) 15309 // @@protoc_insertion_point(constructor:google.protobuf.GeneratedCodeInfo)
14763 } 15310 }
14764
14765 void GeneratedCodeInfo::InitAsDefaultInstance() {
14766 }
14767
14768 GeneratedCodeInfo::GeneratedCodeInfo(const GeneratedCodeInfo& from) 15311 GeneratedCodeInfo::GeneratedCodeInfo(const GeneratedCodeInfo& from)
14769 : ::google::protobuf::Message(), 15312 : ::google::protobuf::Message(),
14770 _internal_metadata_(NULL) { 15313 _internal_metadata_(NULL),
14771 SharedCtor(); 15314 _has_bits_(from._has_bits_),
14772 MergeFrom(from); 15315 _cached_size_(0),
15316 annotation_(from.annotation_) {
15317 _internal_metadata_.MergeFrom(from._internal_metadata_);
14773 // @@protoc_insertion_point(copy_constructor:google.protobuf.GeneratedCodeInfo ) 15318 // @@protoc_insertion_point(copy_constructor:google.protobuf.GeneratedCodeInfo )
14774 } 15319 }
14775 15320
14776 void GeneratedCodeInfo::SharedCtor() { 15321 void GeneratedCodeInfo::SharedCtor() {
14777 _cached_size_ = 0; 15322 _cached_size_ = 0;
14778 ::memset(_has_bits_, 0, sizeof(_has_bits_));
14779 } 15323 }
14780 15324
14781 GeneratedCodeInfo::~GeneratedCodeInfo() { 15325 GeneratedCodeInfo::~GeneratedCodeInfo() {
14782 // @@protoc_insertion_point(destructor:google.protobuf.GeneratedCodeInfo) 15326 // @@protoc_insertion_point(destructor:google.protobuf.GeneratedCodeInfo)
14783 SharedDtor(); 15327 SharedDtor();
14784 } 15328 }
14785 15329
14786 void GeneratedCodeInfo::SharedDtor() { 15330 void GeneratedCodeInfo::SharedDtor() {
14787 if (this != default_instance_) {
14788 }
14789 } 15331 }
14790 15332
14791 void GeneratedCodeInfo::SetCachedSize(int size) const { 15333 void GeneratedCodeInfo::SetCachedSize(int size) const {
14792 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 15334 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
14793 _cached_size_ = size; 15335 _cached_size_ = size;
14794 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 15336 GOOGLE_SAFE_CONCURRENT_WRITES_END();
14795 } 15337 }
14796 const ::google::protobuf::Descriptor* GeneratedCodeInfo::descriptor() { 15338 const ::google::protobuf::Descriptor* GeneratedCodeInfo::descriptor() {
14797 protobuf_AssignDescriptorsOnce(); 15339 protobuf_AssignDescriptorsOnce();
14798 return GeneratedCodeInfo_descriptor_; 15340 return file_level_metadata[24].descriptor;
14799 } 15341 }
14800 15342
14801 const GeneratedCodeInfo& GeneratedCodeInfo::default_instance() { 15343 const GeneratedCodeInfo& GeneratedCodeInfo::default_instance() {
14802 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 15344 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
14803 return *default_instance_; 15345 return *internal_default_instance();
14804 } 15346 }
14805 15347
14806 GeneratedCodeInfo* GeneratedCodeInfo::default_instance_ = NULL;
14807
14808 GeneratedCodeInfo* GeneratedCodeInfo::New(::google::protobuf::Arena* arena) cons t { 15348 GeneratedCodeInfo* GeneratedCodeInfo::New(::google::protobuf::Arena* arena) cons t {
14809 GeneratedCodeInfo* n = new GeneratedCodeInfo; 15349 GeneratedCodeInfo* n = new GeneratedCodeInfo;
14810 if (arena != NULL) { 15350 if (arena != NULL) {
14811 arena->Own(n); 15351 arena->Own(n);
14812 } 15352 }
14813 return n; 15353 return n;
14814 } 15354 }
14815 15355
14816 void GeneratedCodeInfo::Clear() { 15356 void GeneratedCodeInfo::Clear() {
14817 // @@protoc_insertion_point(message_clear_start:google.protobuf.GeneratedCodeInf o) 15357 // @@protoc_insertion_point(message_clear_start:google.protobuf.GeneratedCodeInf o)
14818 annotation_.Clear(); 15358 annotation_.Clear();
14819 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 15359 _has_bits_.Clear();
14820 if (_internal_metadata_.have_unknown_fields()) { 15360 _internal_metadata_.Clear();
14821 mutable_unknown_fields()->Clear();
14822 }
14823 } 15361 }
14824 15362
14825 bool GeneratedCodeInfo::MergePartialFromCodedStream( 15363 bool GeneratedCodeInfo::MergePartialFromCodedStream(
14826 ::google::protobuf::io::CodedInputStream* input) { 15364 ::google::protobuf::io::CodedInputStream* input) {
14827 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 15365 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
14828 ::google::protobuf::uint32 tag; 15366 ::google::protobuf::uint32 tag;
14829 // @@protoc_insertion_point(parse_start:google.protobuf.GeneratedCodeInfo) 15367 // @@protoc_insertion_point(parse_start:google.protobuf.GeneratedCodeInfo)
14830 for (;;) { 15368 for (;;) {
14831 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127); 15369 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u);
14832 tag = p.first; 15370 tag = p.first;
14833 if (!p.second) goto handle_unusual; 15371 if (!p.second) goto handle_unusual;
14834 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 15372 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
14835 // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; 15373 // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
14836 case 1: { 15374 case 1: {
14837 if (tag == 10) { 15375 if (tag == 10u) {
14838 DO_(input->IncrementRecursionDepth()); 15376 DO_(input->IncrementRecursionDepth());
14839 parse_loop_annotation:
14840 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 15377 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
14841 input, add_annotation())); 15378 input, add_annotation()));
14842 } else { 15379 } else {
14843 goto handle_unusual; 15380 goto handle_unusual;
14844 } 15381 }
14845 if (input->ExpectTag(10)) goto parse_loop_annotation;
14846 input->UnsafeDecrementRecursionDepth(); 15382 input->UnsafeDecrementRecursionDepth();
14847 if (input->ExpectAtEnd()) goto success;
14848 break; 15383 break;
14849 } 15384 }
14850 15385
14851 default: { 15386 default: {
14852 handle_unusual: 15387 handle_unusual:
14853 if (tag == 0 || 15388 if (tag == 0 ||
14854 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 15389 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
14855 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 15390 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
14856 goto success; 15391 goto success;
14857 } 15392 }
(...skipping 21 matching lines...) Expand all
14879 1, this->annotation(i), output); 15414 1, this->annotation(i), output);
14880 } 15415 }
14881 15416
14882 if (_internal_metadata_.have_unknown_fields()) { 15417 if (_internal_metadata_.have_unknown_fields()) {
14883 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 15418 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
14884 unknown_fields(), output); 15419 unknown_fields(), output);
14885 } 15420 }
14886 // @@protoc_insertion_point(serialize_end:google.protobuf.GeneratedCodeInfo) 15421 // @@protoc_insertion_point(serialize_end:google.protobuf.GeneratedCodeInfo)
14887 } 15422 }
14888 15423
14889 ::google::protobuf::uint8* GeneratedCodeInfo::SerializeWithCachedSizesToArray( 15424 ::google::protobuf::uint8* GeneratedCodeInfo::InternalSerializeWithCachedSizesTo Array(
14890 ::google::protobuf::uint8* target) const { 15425 bool deterministic, ::google::protobuf::uint8* target) const {
15426 (void)deterministic; // Unused
14891 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Generated CodeInfo) 15427 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Generated CodeInfo)
14892 // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; 15428 // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
14893 for (unsigned int i = 0, n = this->annotation_size(); i < n; i++) { 15429 for (unsigned int i = 0, n = this->annotation_size(); i < n; i++) {
14894 target = ::google::protobuf::internal::WireFormatLite:: 15430 target = ::google::protobuf::internal::WireFormatLite::
14895 WriteMessageNoVirtualToArray( 15431 InternalWriteMessageNoVirtualToArray(
14896 1, this->annotation(i), target); 15432 1, this->annotation(i), false, target);
14897 } 15433 }
14898 15434
14899 if (_internal_metadata_.have_unknown_fields()) { 15435 if (_internal_metadata_.have_unknown_fields()) {
14900 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 15436 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
14901 unknown_fields(), target); 15437 unknown_fields(), target);
14902 } 15438 }
14903 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.GeneratedCo deInfo) 15439 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.GeneratedCo deInfo)
14904 return target; 15440 return target;
14905 } 15441 }
14906 15442
14907 int GeneratedCodeInfo::ByteSize() const { 15443 size_t GeneratedCodeInfo::ByteSizeLong() const {
14908 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.GeneratedCod eInfo) 15444 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.GeneratedCod eInfo)
14909 int total_size = 0; 15445 size_t 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 }
14918 15446
14919 if (_internal_metadata_.have_unknown_fields()) { 15447 if (_internal_metadata_.have_unknown_fields()) {
14920 total_size += 15448 total_size +=
14921 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( 15449 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
14922 unknown_fields()); 15450 unknown_fields());
14923 } 15451 }
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);
14924 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 15464 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
14925 _cached_size_ = total_size; 15465 _cached_size_ = cached_size;
14926 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 15466 GOOGLE_SAFE_CONCURRENT_WRITES_END();
14927 return total_size; 15467 return total_size;
14928 } 15468 }
14929 15469
14930 void GeneratedCodeInfo::MergeFrom(const ::google::protobuf::Message& from) { 15470 void GeneratedCodeInfo::MergeFrom(const ::google::protobuf::Message& from) {
14931 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Generat edCodeInfo) 15471 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Generat edCodeInfo)
14932 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 15472 GOOGLE_DCHECK_NE(&from, this);
14933 const GeneratedCodeInfo* source = 15473 const GeneratedCodeInfo* source =
14934 ::google::protobuf::internal::DynamicCastToGenerated<const GeneratedCodeIn fo>( 15474 ::google::protobuf::internal::DynamicCastToGenerated<const GeneratedCodeIn fo>(
14935 &from); 15475 &from);
14936 if (source == NULL) { 15476 if (source == NULL) {
14937 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.G eneratedCodeInfo) 15477 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.G eneratedCodeInfo)
14938 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 15478 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
14939 } else { 15479 } else {
14940 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.GeneratedCodeInfo) 15480 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.GeneratedCodeInfo)
14941 MergeFrom(*source); 15481 MergeFrom(*source);
14942 } 15482 }
14943 } 15483 }
14944 15484
14945 void GeneratedCodeInfo::MergeFrom(const GeneratedCodeInfo& from) { 15485 void GeneratedCodeInfo::MergeFrom(const GeneratedCodeInfo& from) {
14946 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Gene ratedCodeInfo) 15486 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Gene ratedCodeInfo)
14947 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 15487 GOOGLE_DCHECK_NE(&from, this);
15488 _internal_metadata_.MergeFrom(from._internal_metadata_);
14948 annotation_.MergeFrom(from.annotation_); 15489 annotation_.MergeFrom(from.annotation_);
14949 if (from._internal_metadata_.have_unknown_fields()) {
14950 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
14951 }
14952 } 15490 }
14953 15491
14954 void GeneratedCodeInfo::CopyFrom(const ::google::protobuf::Message& from) { 15492 void GeneratedCodeInfo::CopyFrom(const ::google::protobuf::Message& from) {
14955 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Generate dCodeInfo) 15493 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Generate dCodeInfo)
14956 if (&from == this) return; 15494 if (&from == this) return;
14957 Clear(); 15495 Clear();
14958 MergeFrom(from); 15496 MergeFrom(from);
14959 } 15497 }
14960 15498
14961 void GeneratedCodeInfo::CopyFrom(const GeneratedCodeInfo& from) { 15499 void GeneratedCodeInfo::CopyFrom(const GeneratedCodeInfo& from) {
14962 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Gener atedCodeInfo) 15500 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Gener atedCodeInfo)
14963 if (&from == this) return; 15501 if (&from == this) return;
14964 Clear(); 15502 Clear();
14965 MergeFrom(from); 15503 MergeFrom(from);
14966 } 15504 }
14967 15505
14968 bool GeneratedCodeInfo::IsInitialized() const { 15506 bool GeneratedCodeInfo::IsInitialized() const {
14969
14970 return true; 15507 return true;
14971 } 15508 }
14972 15509
14973 void GeneratedCodeInfo::Swap(GeneratedCodeInfo* other) { 15510 void GeneratedCodeInfo::Swap(GeneratedCodeInfo* other) {
14974 if (other == this) return; 15511 if (other == this) return;
14975 InternalSwap(other); 15512 InternalSwap(other);
14976 } 15513 }
14977 void GeneratedCodeInfo::InternalSwap(GeneratedCodeInfo* other) { 15514 void GeneratedCodeInfo::InternalSwap(GeneratedCodeInfo* other) {
14978 annotation_.UnsafeArenaSwap(&other->annotation_); 15515 annotation_.UnsafeArenaSwap(&other->annotation_);
14979 std::swap(_has_bits_[0], other->_has_bits_[0]); 15516 std::swap(_has_bits_[0], other->_has_bits_[0]);
14980 _internal_metadata_.Swap(&other->_internal_metadata_); 15517 _internal_metadata_.Swap(&other->_internal_metadata_);
14981 std::swap(_cached_size_, other->_cached_size_); 15518 std::swap(_cached_size_, other->_cached_size_);
14982 } 15519 }
14983 15520
14984 ::google::protobuf::Metadata GeneratedCodeInfo::GetMetadata() const { 15521 ::google::protobuf::Metadata GeneratedCodeInfo::GetMetadata() const {
14985 protobuf_AssignDescriptorsOnce(); 15522 protobuf_AssignDescriptorsOnce();
14986 ::google::protobuf::Metadata metadata; 15523 return file_level_metadata[24];
14987 metadata.descriptor = GeneratedCodeInfo_descriptor_;
14988 metadata.reflection = GeneratedCodeInfo_reflection_;
14989 return metadata;
14990 } 15524 }
14991 15525
14992 #if PROTOBUF_INLINE_NOT_IN_HEADERS 15526 #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
15129 // GeneratedCodeInfo 15527 // GeneratedCodeInfo
15130 15528
15131 // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; 15529 // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
15132 int GeneratedCodeInfo::annotation_size() const { 15530 int GeneratedCodeInfo::annotation_size() const {
15133 return annotation_.size(); 15531 return annotation_.size();
15134 } 15532 }
15135 void GeneratedCodeInfo::clear_annotation() { 15533 void GeneratedCodeInfo::clear_annotation() {
15136 annotation_.Clear(); 15534 annotation_.Clear();
15137 } 15535 }
15138 const ::google::protobuf::GeneratedCodeInfo_Annotation& GeneratedCodeInfo::annot ation(int index) const { 15536 const ::google::protobuf::GeneratedCodeInfo_Annotation& GeneratedCodeInfo::annot ation(int index) const {
(...skipping 20 matching lines...) Expand all
15159 } 15557 }
15160 15558
15161 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 15559 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
15162 15560
15163 // @@protoc_insertion_point(namespace_scope) 15561 // @@protoc_insertion_point(namespace_scope)
15164 15562
15165 } // namespace protobuf 15563 } // namespace protobuf
15166 } // namespace google 15564 } // namespace google
15167 15565
15168 // @@protoc_insertion_point(global_scope) 15566 // @@protoc_insertion_point(global_scope)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698