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

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

Issue 2495533002: third_party/protobuf: Update to HEAD (83d681ee2c) (Closed)
Patch Set: Make chrome settings proto generated file a component Created 4 years 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 void FileDescriptorProto::set_name(const char* value) {
1963 set_has_name(); 2005 set_has_name();
1964 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 2006 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1965 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto .name) 2007 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto .name)
1966 } 2008 }
1967 void FileDescriptorProto::set_name(const char* value, size_t size) { 2009 void FileDescriptorProto::set_name(const char* value, size_t size) {
1968 set_has_name(); 2010 set_has_name();
1969 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 2011 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1970 ::std::string(reinterpret_cast<const char*>(value), size)); 2012 ::std::string(reinterpret_cast<const char*>(value), size));
1971 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorPr oto.name) 2013 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorPr oto.name)
1972 } 2014 }
1973 ::std::string* FileDescriptorProto::mutable_name() { 2015 ::std::string* FileDescriptorProto::mutable_name() {
1974 set_has_name(); 2016 set_has_name();
1975 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto. name) 2017 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto. name)
1976 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 2018 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
1977 } 2019 }
1978 ::std::string* FileDescriptorProto::release_name() { 2020 ::std::string* FileDescriptorProto::release_name() {
1979 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto. name) 2021 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto. name)
1980 clear_has_name(); 2022 clear_has_name();
1981 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 2023 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
1982 } 2024 }
1983 void FileDescriptorProto::set_allocated_name(::std::string* name) { 2025 void FileDescriptorProto::set_allocated_name(::std::string* name) {
1984 if (name != NULL) { 2026 if (name != NULL) {
1985 set_has_name(); 2027 set_has_name();
1986 } else { 2028 } else {
1987 clear_has_name(); 2029 clear_has_name();
1988 } 2030 }
1989 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name); 2031 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name);
1990 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptor Proto.name) 2032 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptor Proto.name)
1991 } 2033 }
1992 2034
1993 // optional string package = 2; 2035 // optional string package = 2;
1994 bool FileDescriptorProto::has_package() const { 2036 bool FileDescriptorProto::has_package() const {
1995 return (_has_bits_[0] & 0x00000002u) != 0; 2037 return (_has_bits_[0] & 0x00000002u) != 0;
1996 } 2038 }
1997 void FileDescriptorProto::set_has_package() { 2039 void FileDescriptorProto::set_has_package() {
1998 _has_bits_[0] |= 0x00000002u; 2040 _has_bits_[0] |= 0x00000002u;
1999 } 2041 }
2000 void FileDescriptorProto::clear_has_package() { 2042 void FileDescriptorProto::clear_has_package() {
2001 _has_bits_[0] &= ~0x00000002u; 2043 _has_bits_[0] &= ~0x00000002u;
2002 } 2044 }
2003 void FileDescriptorProto::clear_package() { 2045 void FileDescriptorProto::clear_package() {
2004 package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited()); 2046 package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited());
2005 clear_has_package(); 2047 clear_has_package();
2006 } 2048 }
2007 const ::std::string& FileDescriptorProto::package() const { 2049 const ::std::string& FileDescriptorProto::package() const {
2008 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.pack age) 2050 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.pack age)
2009 return package_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlread yInited()); 2051 return package_.GetNoArena();
2010 } 2052 }
2011 void FileDescriptorProto::set_package(const ::std::string& value) { 2053 void FileDescriptorProto::set_package(const ::std::string& value) {
2012 set_has_package(); 2054 set_has_package();
2013 package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited (), value); 2055 package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited (), value);
2014 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.pack age) 2056 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.pack age)
2015 } 2057 }
2016 void FileDescriptorProto::set_package(const char* value) { 2058 void FileDescriptorProto::set_package(const char* value) {
2017 set_has_package(); 2059 set_has_package();
2018 package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited (), ::std::string(value)); 2060 package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited (), ::std::string(value));
2019 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto .package) 2061 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto .package)
2020 } 2062 }
2021 void FileDescriptorProto::set_package(const char* value, size_t size) { 2063 void FileDescriptorProto::set_package(const char* value, size_t size) {
2022 set_has_package(); 2064 set_has_package();
2023 package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited (), 2065 package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited (),
2024 ::std::string(reinterpret_cast<const char*>(value), size)); 2066 ::std::string(reinterpret_cast<const char*>(value), size));
2025 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorPr oto.package) 2067 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorPr oto.package)
2026 } 2068 }
2027 ::std::string* FileDescriptorProto::mutable_package() { 2069 ::std::string* FileDescriptorProto::mutable_package() {
2028 set_has_package(); 2070 set_has_package();
2029 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto. package) 2071 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto. package)
2030 return package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited()); 2072 return package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited());
2031 } 2073 }
2032 ::std::string* FileDescriptorProto::release_package() { 2074 ::std::string* FileDescriptorProto::release_package() {
2033 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto. package) 2075 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto. package)
2034 clear_has_package(); 2076 clear_has_package();
2035 return package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited()); 2077 return package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited());
2036 } 2078 }
2037 void FileDescriptorProto::set_allocated_package(::std::string* package) { 2079 void FileDescriptorProto::set_allocated_package(::std::string* package) {
2038 if (package != NULL) { 2080 if (package != NULL) {
2039 set_has_package(); 2081 set_has_package();
2040 } else { 2082 } else {
2041 clear_has_package(); 2083 clear_has_package();
2042 } 2084 }
2043 package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), package); 2085 package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), package);
2044 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptor Proto.package) 2086 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptor Proto.package)
2045 } 2087 }
2046 2088
2047 // repeated string dependency = 3; 2089 // repeated string dependency = 3;
2048 int FileDescriptorProto::dependency_size() const { 2090 int FileDescriptorProto::dependency_size() const {
2049 return dependency_.size(); 2091 return dependency_.size();
2050 } 2092 }
2051 void FileDescriptorProto::clear_dependency() { 2093 void FileDescriptorProto::clear_dependency() {
2052 dependency_.Clear(); 2094 dependency_.Clear();
2053 } 2095 }
2054 const ::std::string& FileDescriptorProto::dependency(int index) const { 2096 const ::std::string& FileDescriptorProto::dependency(int index) const {
2055 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.depe ndency) 2097 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.depe ndency)
2056 return dependency_.Get(index); 2098 return dependency_.Get(index);
2057 } 2099 }
2058 ::std::string* FileDescriptorProto::mutable_dependency(int index) { 2100 ::std::string* FileDescriptorProto::mutable_dependency(int index) {
2059 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto. dependency) 2101 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto. dependency)
2060 return dependency_.Mutable(index); 2102 return dependency_.Mutable(index);
2061 } 2103 }
2062 void FileDescriptorProto::set_dependency(int index, const ::std::string& value) { 2104 void FileDescriptorProto::set_dependency(int index, const ::std::string& value) {
2063 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.depe ndency) 2105 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.depe ndency)
2064 dependency_.Mutable(index)->assign(value); 2106 dependency_.Mutable(index)->assign(value);
2065 } 2107 }
2066 void FileDescriptorProto::set_dependency(int index, const char* value) { 2108 void FileDescriptorProto::set_dependency(int index, const char* value) {
2067 dependency_.Mutable(index)->assign(value); 2109 dependency_.Mutable(index)->assign(value);
2068 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto .dependency) 2110 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto .dependency)
2069 } 2111 }
2070 void FileDescriptorProto::set_dependency(int index, const char* value, size_t s ize) { 2112 void FileDescriptorProto::set_dependency(int index, const char* value, size_t si ze) {
2071 dependency_.Mutable(index)->assign( 2113 dependency_.Mutable(index)->assign(
2072 reinterpret_cast<const char*>(value), size); 2114 reinterpret_cast<const char*>(value), size);
2073 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorPr oto.dependency) 2115 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorPr oto.dependency)
2074 } 2116 }
2075 ::std::string* FileDescriptorProto::add_dependency() { 2117 ::std::string* FileDescriptorProto::add_dependency() {
2076 // @@protoc_insertion_point(field_add_mutable:google.protobuf.FileDescriptorPr oto.dependency) 2118 // @@protoc_insertion_point(field_add_mutable:google.protobuf.FileDescriptorPr oto.dependency)
2077 return dependency_.Add(); 2119 return dependency_.Add();
2078 } 2120 }
2079 void FileDescriptorProto::add_dependency(const ::std::string& value) { 2121 void FileDescriptorProto::add_dependency(const ::std::string& value) {
2080 dependency_.Add()->assign(value); 2122 dependency_.Add()->assign(value);
2081 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.depe ndency) 2123 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.depe ndency)
2082 } 2124 }
2083 void FileDescriptorProto::add_dependency(const char* value) { 2125 void FileDescriptorProto::add_dependency(const char* value) {
2084 dependency_.Add()->assign(value); 2126 dependency_.Add()->assign(value);
2085 // @@protoc_insertion_point(field_add_char:google.protobuf.FileDescriptorProto .dependency) 2127 // @@protoc_insertion_point(field_add_char:google.protobuf.FileDescriptorProto .dependency)
2086 } 2128 }
2087 void FileDescriptorProto::add_dependency(const char* value, size_t size) { 2129 void FileDescriptorProto::add_dependency(const char* value, size_t size) {
2088 dependency_.Add()->assign(reinterpret_cast<const char*>(value), size); 2130 dependency_.Add()->assign(reinterpret_cast<const char*>(value), size);
2089 // @@protoc_insertion_point(field_add_pointer:google.protobuf.FileDescriptorPr oto.dependency) 2131 // @@protoc_insertion_point(field_add_pointer:google.protobuf.FileDescriptorPr oto.dependency)
2090 } 2132 }
2091 const ::google::protobuf::RepeatedPtrField< ::std::string>& 2133 const ::google::protobuf::RepeatedPtrField< ::std::string>&
2092 FileDescriptorProto::dependency() const { 2134 FileDescriptorProto::dependency() const {
2093 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.dep endency) 2135 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.dep endency)
2094 return dependency_; 2136 return dependency_;
2095 } 2137 }
2096 ::google::protobuf::RepeatedPtrField< ::std::string>* 2138 ::google::protobuf::RepeatedPtrField< ::std::string>*
2097 FileDescriptorProto::mutable_dependency() { 2139 FileDescriptorProto::mutable_dependency() {
2098 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorP roto.dependency) 2140 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorP roto.dependency)
2099 return &dependency_; 2141 return &dependency_;
2100 } 2142 }
2101 2143
2102 // repeated int32 public_dependency = 10; 2144 // repeated int32 public_dependency = 10;
2103 int FileDescriptorProto::public_dependency_size() const { 2145 int FileDescriptorProto::public_dependency_size() const {
2104 return public_dependency_.size(); 2146 return public_dependency_.size();
2105 } 2147 }
2106 void FileDescriptorProto::clear_public_dependency() { 2148 void FileDescriptorProto::clear_public_dependency() {
2107 public_dependency_.Clear(); 2149 public_dependency_.Clear();
2108 } 2150 }
2109 ::google::protobuf::int32 FileDescriptorProto::public_dependency(int index) con st { 2151 ::google::protobuf::int32 FileDescriptorProto::public_dependency(int index) cons t {
2110 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.publ ic_dependency) 2152 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.publ ic_dependency)
2111 return public_dependency_.Get(index); 2153 return public_dependency_.Get(index);
2112 } 2154 }
2113 void FileDescriptorProto::set_public_dependency(int index, ::google::protobuf:: int32 value) { 2155 void FileDescriptorProto::set_public_dependency(int index, ::google::protobuf::i nt32 value) {
2114 public_dependency_.Set(index, value); 2156 public_dependency_.Set(index, value);
2115 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.publ ic_dependency) 2157 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.publ ic_dependency)
2116 } 2158 }
2117 void FileDescriptorProto::add_public_dependency(::google::protobuf::int32 value ) { 2159 void FileDescriptorProto::add_public_dependency(::google::protobuf::int32 value) {
2118 public_dependency_.Add(value); 2160 public_dependency_.Add(value);
2119 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.publ ic_dependency) 2161 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.publ ic_dependency)
2120 } 2162 }
2121 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& 2163 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
2122 FileDescriptorProto::public_dependency() const { 2164 FileDescriptorProto::public_dependency() const {
2123 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.pub lic_dependency) 2165 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.pub lic_dependency)
2124 return public_dependency_; 2166 return public_dependency_;
2125 } 2167 }
2126 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* 2168 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
2127 FileDescriptorProto::mutable_public_dependency() { 2169 FileDescriptorProto::mutable_public_dependency() {
2128 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorP roto.public_dependency) 2170 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorP roto.public_dependency)
2129 return &public_dependency_; 2171 return &public_dependency_;
2130 } 2172 }
2131 2173
2132 // repeated int32 weak_dependency = 11; 2174 // repeated int32 weak_dependency = 11;
2133 int FileDescriptorProto::weak_dependency_size() const { 2175 int FileDescriptorProto::weak_dependency_size() const {
2134 return weak_dependency_.size(); 2176 return weak_dependency_.size();
2135 } 2177 }
2136 void FileDescriptorProto::clear_weak_dependency() { 2178 void FileDescriptorProto::clear_weak_dependency() {
2137 weak_dependency_.Clear(); 2179 weak_dependency_.Clear();
2138 } 2180 }
2139 ::google::protobuf::int32 FileDescriptorProto::weak_dependency(int index) const { 2181 ::google::protobuf::int32 FileDescriptorProto::weak_dependency(int index) const {
2140 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.weak _dependency) 2182 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.weak _dependency)
2141 return weak_dependency_.Get(index); 2183 return weak_dependency_.Get(index);
2142 } 2184 }
2143 void FileDescriptorProto::set_weak_dependency(int index, ::google::protobuf::in t32 value) { 2185 void FileDescriptorProto::set_weak_dependency(int index, ::google::protobuf::int 32 value) {
2144 weak_dependency_.Set(index, value); 2186 weak_dependency_.Set(index, value);
2145 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.weak _dependency) 2187 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.weak _dependency)
2146 } 2188 }
2147 void FileDescriptorProto::add_weak_dependency(::google::protobuf::int32 value) { 2189 void FileDescriptorProto::add_weak_dependency(::google::protobuf::int32 value) {
2148 weak_dependency_.Add(value); 2190 weak_dependency_.Add(value);
2149 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.weak _dependency) 2191 // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.weak _dependency)
2150 } 2192 }
2151 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& 2193 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
2152 FileDescriptorProto::weak_dependency() const { 2194 FileDescriptorProto::weak_dependency() const {
2153 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.wea k_dependency) 2195 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.wea k_dependency)
2154 return weak_dependency_; 2196 return weak_dependency_;
2155 } 2197 }
2156 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* 2198 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
2157 FileDescriptorProto::mutable_weak_dependency() { 2199 FileDescriptorProto::mutable_weak_dependency() {
2158 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorP roto.weak_dependency) 2200 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorP roto.weak_dependency)
2159 return &weak_dependency_; 2201 return &weak_dependency_;
2160 } 2202 }
2161 2203
2162 // repeated .google.protobuf.DescriptorProto message_type = 4; 2204 // repeated .google.protobuf.DescriptorProto message_type = 4;
2163 int FileDescriptorProto::message_type_size() const { 2205 int FileDescriptorProto::message_type_size() const {
2164 return message_type_.size(); 2206 return message_type_.size();
2165 } 2207 }
2166 void FileDescriptorProto::clear_message_type() { 2208 void FileDescriptorProto::clear_message_type() {
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
2274 return &extension_; 2316 return &extension_;
2275 } 2317 }
2276 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorP roto >& 2318 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorP roto >&
2277 FileDescriptorProto::extension() const { 2319 FileDescriptorProto::extension() const {
2278 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.ext ension) 2320 // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.ext ension)
2279 return extension_; 2321 return extension_;
2280 } 2322 }
2281 2323
2282 // optional .google.protobuf.FileOptions options = 8; 2324 // optional .google.protobuf.FileOptions options = 8;
2283 bool FileDescriptorProto::has_options() const { 2325 bool FileDescriptorProto::has_options() const {
2284 return (_has_bits_[0] & 0x00000200u) != 0; 2326 return (_has_bits_[0] & 0x00000008u) != 0;
2285 } 2327 }
2286 void FileDescriptorProto::set_has_options() { 2328 void FileDescriptorProto::set_has_options() {
2287 _has_bits_[0] |= 0x00000200u; 2329 _has_bits_[0] |= 0x00000008u;
2288 } 2330 }
2289 void FileDescriptorProto::clear_has_options() { 2331 void FileDescriptorProto::clear_has_options() {
2290 _has_bits_[0] &= ~0x00000200u; 2332 _has_bits_[0] &= ~0x00000008u;
2291 } 2333 }
2292 void FileDescriptorProto::clear_options() { 2334 void FileDescriptorProto::clear_options() {
2293 if (options_ != NULL) options_->::google::protobuf::FileOptions::Clear(); 2335 if (options_ != NULL) options_->::google::protobuf::FileOptions::Clear();
2294 clear_has_options(); 2336 clear_has_options();
2295 } 2337 }
2296 const ::google::protobuf::FileOptions& FileDescriptorProto::options() const { 2338 const ::google::protobuf::FileOptions& FileDescriptorProto::options() const {
2297 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.opti ons) 2339 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.opti ons)
2298 return options_ != NULL ? *options_ : *default_instance_->options_; 2340 return options_ != NULL ? *options_
2341 : *::google::protobuf::FileOptions::internal_default_in stance();
2299 } 2342 }
2300 ::google::protobuf::FileOptions* FileDescriptorProto::mutable_options() { 2343 ::google::protobuf::FileOptions* FileDescriptorProto::mutable_options() {
2301 set_has_options(); 2344 set_has_options();
2302 if (options_ == NULL) { 2345 if (options_ == NULL) {
2303 options_ = new ::google::protobuf::FileOptions; 2346 options_ = new ::google::protobuf::FileOptions;
2304 } 2347 }
2305 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto. options) 2348 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto. options)
2306 return options_; 2349 return options_;
2307 } 2350 }
2308 ::google::protobuf::FileOptions* FileDescriptorProto::release_options() { 2351 ::google::protobuf::FileOptions* FileDescriptorProto::release_options() {
2309 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto. options) 2352 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto. options)
2310 clear_has_options(); 2353 clear_has_options();
2311 ::google::protobuf::FileOptions* temp = options_; 2354 ::google::protobuf::FileOptions* temp = options_;
2312 options_ = NULL; 2355 options_ = NULL;
2313 return temp; 2356 return temp;
2314 } 2357 }
2315 void FileDescriptorProto::set_allocated_options(::google::protobuf::FileOptions* options) { 2358 void FileDescriptorProto::set_allocated_options(::google::protobuf::FileOptions* options) {
2316 delete options_; 2359 delete options_;
2317 options_ = options; 2360 options_ = options;
2318 if (options) { 2361 if (options) {
2319 set_has_options(); 2362 set_has_options();
2320 } else { 2363 } else {
2321 clear_has_options(); 2364 clear_has_options();
2322 } 2365 }
2323 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptor Proto.options) 2366 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptor Proto.options)
2324 } 2367 }
2325 2368
2326 // optional .google.protobuf.SourceCodeInfo source_code_info = 9; 2369 // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
2327 bool FileDescriptorProto::has_source_code_info() const { 2370 bool FileDescriptorProto::has_source_code_info() const {
2328 return (_has_bits_[0] & 0x00000400u) != 0; 2371 return (_has_bits_[0] & 0x00000010u) != 0;
2329 } 2372 }
2330 void FileDescriptorProto::set_has_source_code_info() { 2373 void FileDescriptorProto::set_has_source_code_info() {
2331 _has_bits_[0] |= 0x00000400u; 2374 _has_bits_[0] |= 0x00000010u;
2332 } 2375 }
2333 void FileDescriptorProto::clear_has_source_code_info() { 2376 void FileDescriptorProto::clear_has_source_code_info() {
2334 _has_bits_[0] &= ~0x00000400u; 2377 _has_bits_[0] &= ~0x00000010u;
2335 } 2378 }
2336 void FileDescriptorProto::clear_source_code_info() { 2379 void FileDescriptorProto::clear_source_code_info() {
2337 if (source_code_info_ != NULL) source_code_info_->::google::protobuf::SourceCo deInfo::Clear(); 2380 if (source_code_info_ != NULL) source_code_info_->::google::protobuf::SourceCo deInfo::Clear();
2338 clear_has_source_code_info(); 2381 clear_has_source_code_info();
2339 } 2382 }
2340 const ::google::protobuf::SourceCodeInfo& FileDescriptorProto::source_code_info( ) const { 2383 const ::google::protobuf::SourceCodeInfo& FileDescriptorProto::source_code_info( ) const {
2341 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.sour ce_code_info) 2384 // @@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_; 2385 return source_code_info_ != NULL ? *source_code_info_
2386 : *::google::protobuf::SourceCodeInfo::internal_default _instance();
2343 } 2387 }
2344 ::google::protobuf::SourceCodeInfo* FileDescriptorProto::mutable_source_code_inf o() { 2388 ::google::protobuf::SourceCodeInfo* FileDescriptorProto::mutable_source_code_inf o() {
2345 set_has_source_code_info(); 2389 set_has_source_code_info();
2346 if (source_code_info_ == NULL) { 2390 if (source_code_info_ == NULL) {
2347 source_code_info_ = new ::google::protobuf::SourceCodeInfo; 2391 source_code_info_ = new ::google::protobuf::SourceCodeInfo;
2348 } 2392 }
2349 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto. source_code_info) 2393 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto. source_code_info)
2350 return source_code_info_; 2394 return source_code_info_;
2351 } 2395 }
2352 ::google::protobuf::SourceCodeInfo* FileDescriptorProto::release_source_code_inf o() { 2396 ::google::protobuf::SourceCodeInfo* FileDescriptorProto::release_source_code_inf o() {
2353 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto. source_code_info) 2397 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto. source_code_info)
2354 clear_has_source_code_info(); 2398 clear_has_source_code_info();
2355 ::google::protobuf::SourceCodeInfo* temp = source_code_info_; 2399 ::google::protobuf::SourceCodeInfo* temp = source_code_info_;
2356 source_code_info_ = NULL; 2400 source_code_info_ = NULL;
2357 return temp; 2401 return temp;
2358 } 2402 }
2359 void FileDescriptorProto::set_allocated_source_code_info(::google::protobuf::Sou rceCodeInfo* source_code_info) { 2403 void FileDescriptorProto::set_allocated_source_code_info(::google::protobuf::Sou rceCodeInfo* source_code_info) {
2360 delete source_code_info_; 2404 delete source_code_info_;
2361 source_code_info_ = source_code_info; 2405 source_code_info_ = source_code_info;
2362 if (source_code_info) { 2406 if (source_code_info) {
2363 set_has_source_code_info(); 2407 set_has_source_code_info();
2364 } else { 2408 } else {
2365 clear_has_source_code_info(); 2409 clear_has_source_code_info();
2366 } 2410 }
2367 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptor Proto.source_code_info) 2411 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptor Proto.source_code_info)
2368 } 2412 }
2369 2413
2370 // optional string syntax = 12; 2414 // optional string syntax = 12;
2371 bool FileDescriptorProto::has_syntax() const { 2415 bool FileDescriptorProto::has_syntax() const {
2372 return (_has_bits_[0] & 0x00000800u) != 0; 2416 return (_has_bits_[0] & 0x00000004u) != 0;
2373 } 2417 }
2374 void FileDescriptorProto::set_has_syntax() { 2418 void FileDescriptorProto::set_has_syntax() {
2375 _has_bits_[0] |= 0x00000800u; 2419 _has_bits_[0] |= 0x00000004u;
2376 } 2420 }
2377 void FileDescriptorProto::clear_has_syntax() { 2421 void FileDescriptorProto::clear_has_syntax() {
2378 _has_bits_[0] &= ~0x00000800u; 2422 _has_bits_[0] &= ~0x00000004u;
2379 } 2423 }
2380 void FileDescriptorProto::clear_syntax() { 2424 void FileDescriptorProto::clear_syntax() {
2381 syntax_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 2425 syntax_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
2382 clear_has_syntax(); 2426 clear_has_syntax();
2383 } 2427 }
2384 const ::std::string& FileDescriptorProto::syntax() const { 2428 const ::std::string& FileDescriptorProto::syntax() const {
2385 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.synt ax) 2429 // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.synt ax)
2386 return syntax_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 2430 return syntax_.GetNoArena();
2387 } 2431 }
2388 void FileDescriptorProto::set_syntax(const ::std::string& value) { 2432 void FileDescriptorProto::set_syntax(const ::std::string& value) {
2389 set_has_syntax(); 2433 set_has_syntax();
2390 syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), value); 2434 syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), value);
2391 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.synt ax) 2435 // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.synt ax)
2392 } 2436 }
2393 void FileDescriptorProto::set_syntax(const char* value) { 2437 void FileDescriptorProto::set_syntax(const char* value) {
2394 set_has_syntax(); 2438 set_has_syntax();
2395 syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), ::std::string(value)); 2439 syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), ::std::string(value));
2396 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto .syntax) 2440 // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto .syntax)
2397 } 2441 }
2398 void FileDescriptorProto::set_syntax(const char* value, size_t size) { 2442 void FileDescriptorProto::set_syntax(const char* value, size_t size) {
2399 set_has_syntax(); 2443 set_has_syntax();
2400 syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), 2444 syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ),
2401 ::std::string(reinterpret_cast<const char*>(value), size)); 2445 ::std::string(reinterpret_cast<const char*>(value), size));
2402 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorPr oto.syntax) 2446 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorPr oto.syntax)
2403 } 2447 }
2404 ::std::string* FileDescriptorProto::mutable_syntax() { 2448 ::std::string* FileDescriptorProto::mutable_syntax() {
2405 set_has_syntax(); 2449 set_has_syntax();
2406 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto. syntax) 2450 // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto. syntax)
2407 return syntax_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited()); 2451 return syntax_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited());
2408 } 2452 }
2409 ::std::string* FileDescriptorProto::release_syntax() { 2453 ::std::string* FileDescriptorProto::release_syntax() {
2410 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto. syntax) 2454 // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto. syntax)
2411 clear_has_syntax(); 2455 clear_has_syntax();
2412 return syntax_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited()); 2456 return syntax_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited());
2413 } 2457 }
2414 void FileDescriptorProto::set_allocated_syntax(::std::string* syntax) { 2458 void FileDescriptorProto::set_allocated_syntax(::std::string* syntax) {
2415 if (syntax != NULL) { 2459 if (syntax != NULL) {
2416 set_has_syntax(); 2460 set_has_syntax();
2417 } else { 2461 } else {
2418 clear_has_syntax(); 2462 clear_has_syntax();
2419 } 2463 }
2420 syntax_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), syntax); 2464 syntax_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), syntax);
2421 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptor Proto.syntax) 2465 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptor Proto.syntax)
2422 } 2466 }
2423 2467
2424 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 2468 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
2425 2469
2426 // =================================================================== 2470 // ===================================================================
2427 2471
2428 #if !defined(_MSC_VER) || _MSC_VER >= 1900 2472 #if !defined(_MSC_VER) || _MSC_VER >= 1900
2429 const int DescriptorProto_ExtensionRange::kStartFieldNumber; 2473 const int DescriptorProto_ExtensionRange::kStartFieldNumber;
2430 const int DescriptorProto_ExtensionRange::kEndFieldNumber; 2474 const int DescriptorProto_ExtensionRange::kEndFieldNumber;
2431 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 2475 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
2432 2476
2433 DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange() 2477 DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange()
2434 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 2478 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2479 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2480 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
2481 }
2435 SharedCtor(); 2482 SharedCtor();
2436 // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto.Extens ionRange) 2483 // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto.Extens ionRange)
2437 } 2484 }
2438
2439 void DescriptorProto_ExtensionRange::InitAsDefaultInstance() {
2440 }
2441
2442 DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange(const DescriptorP roto_ExtensionRange& from) 2485 DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange(const DescriptorP roto_ExtensionRange& from)
2443 : ::google::protobuf::Message(), 2486 : ::google::protobuf::Message(),
2444 _internal_metadata_(NULL) { 2487 _internal_metadata_(NULL),
2445 SharedCtor(); 2488 _has_bits_(from._has_bits_),
2446 MergeFrom(from); 2489 _cached_size_(0) {
2490 _internal_metadata_.MergeFrom(from._internal_metadata_);
2491 ::memcpy(&start_, &from.start_,
2492 reinterpret_cast<char*>(&end_) -
2493 reinterpret_cast<char*>(&start_) + sizeof(end_));
2447 // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto.E xtensionRange) 2494 // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto.E xtensionRange)
2448 } 2495 }
2449 2496
2450 void DescriptorProto_ExtensionRange::SharedCtor() { 2497 void DescriptorProto_ExtensionRange::SharedCtor() {
2451 _cached_size_ = 0; 2498 _cached_size_ = 0;
2452 start_ = 0; 2499 ::memset(&start_, 0, reinterpret_cast<char*>(&end_) -
2453 end_ = 0; 2500 reinterpret_cast<char*>(&start_) + sizeof(end_));
2454 ::memset(_has_bits_, 0, sizeof(_has_bits_));
2455 } 2501 }
2456 2502
2457 DescriptorProto_ExtensionRange::~DescriptorProto_ExtensionRange() { 2503 DescriptorProto_ExtensionRange::~DescriptorProto_ExtensionRange() {
2458 // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto.Extensi onRange) 2504 // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto.Extensi onRange)
2459 SharedDtor(); 2505 SharedDtor();
2460 } 2506 }
2461 2507
2462 void DescriptorProto_ExtensionRange::SharedDtor() { 2508 void DescriptorProto_ExtensionRange::SharedDtor() {
2463 if (this != default_instance_) {
2464 }
2465 } 2509 }
2466 2510
2467 void DescriptorProto_ExtensionRange::SetCachedSize(int size) const { 2511 void DescriptorProto_ExtensionRange::SetCachedSize(int size) const {
2468 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 2512 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2469 _cached_size_ = size; 2513 _cached_size_ = size;
2470 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 2514 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2471 } 2515 }
2472 const ::google::protobuf::Descriptor* DescriptorProto_ExtensionRange::descriptor () { 2516 const ::google::protobuf::Descriptor* DescriptorProto_ExtensionRange::descriptor () {
2473 protobuf_AssignDescriptorsOnce(); 2517 protobuf_AssignDescriptorsOnce();
2474 return DescriptorProto_ExtensionRange_descriptor_; 2518 return file_level_metadata[2].descriptor;
2475 } 2519 }
2476 2520
2477 const DescriptorProto_ExtensionRange& DescriptorProto_ExtensionRange::default_in stance() { 2521 const DescriptorProto_ExtensionRange& DescriptorProto_ExtensionRange::default_in stance() {
2478 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 2522 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
2479 return *default_instance_; 2523 return *internal_default_instance();
2480 } 2524 }
2481 2525
2482 DescriptorProto_ExtensionRange* DescriptorProto_ExtensionRange::default_instance _ = NULL;
2483
2484 DescriptorProto_ExtensionRange* DescriptorProto_ExtensionRange::New(::google::pr otobuf::Arena* arena) const { 2526 DescriptorProto_ExtensionRange* DescriptorProto_ExtensionRange::New(::google::pr otobuf::Arena* arena) const {
2485 DescriptorProto_ExtensionRange* n = new DescriptorProto_ExtensionRange; 2527 DescriptorProto_ExtensionRange* n = new DescriptorProto_ExtensionRange;
2486 if (arena != NULL) { 2528 if (arena != NULL) {
2487 arena->Own(n); 2529 arena->Own(n);
2488 } 2530 }
2489 return n; 2531 return n;
2490 } 2532 }
2491 2533
2492 void DescriptorProto_ExtensionRange::Clear() { 2534 void DescriptorProto_ExtensionRange::Clear() {
2493 // @@protoc_insertion_point(message_clear_start:google.protobuf.DescriptorProto. ExtensionRange) 2535 // @@protoc_insertion_point(message_clear_start:google.protobuf.DescriptorProto. ExtensionRange)
2494 #if defined(__clang__) 2536 if (_has_bits_[0 / 32] & 3u) {
2495 #define ZR_HELPER_(f) \ 2537 ::memset(&start_, 0, reinterpret_cast<char*>(&end_) -
2496 _Pragma("clang diagnostic push") \ 2538 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 } 2539 }
2540 _has_bits_.Clear();
2541 _internal_metadata_.Clear();
2519 } 2542 }
2520 2543
2521 bool DescriptorProto_ExtensionRange::MergePartialFromCodedStream( 2544 bool DescriptorProto_ExtensionRange::MergePartialFromCodedStream(
2522 ::google::protobuf::io::CodedInputStream* input) { 2545 ::google::protobuf::io::CodedInputStream* input) {
2523 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 2546 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2524 ::google::protobuf::uint32 tag; 2547 ::google::protobuf::uint32 tag;
2525 // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto.Extens ionRange) 2548 // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto.Extens ionRange)
2526 for (;;) { 2549 for (;;) {
2527 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127); 2550 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u);
2528 tag = p.first; 2551 tag = p.first;
2529 if (!p.second) goto handle_unusual; 2552 if (!p.second) goto handle_unusual;
2530 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 2553 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
2531 // optional int32 start = 1; 2554 // optional int32 start = 1;
2532 case 1: { 2555 case 1: {
2533 if (tag == 8) { 2556 if (tag == 8u) {
2557 set_has_start();
2534 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 2558 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2535 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>( 2559 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
2536 input, &start_))); 2560 input, &start_)));
2537 set_has_start();
2538 } else { 2561 } else {
2539 goto handle_unusual; 2562 goto handle_unusual;
2540 } 2563 }
2541 if (input->ExpectTag(16)) goto parse_end;
2542 break; 2564 break;
2543 } 2565 }
2544 2566
2545 // optional int32 end = 2; 2567 // optional int32 end = 2;
2546 case 2: { 2568 case 2: {
2547 if (tag == 16) { 2569 if (tag == 16u) {
2548 parse_end: 2570 set_has_end();
2549 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 2571 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2550 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>( 2572 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
2551 input, &end_))); 2573 input, &end_)));
2552 set_has_end();
2553 } else { 2574 } else {
2554 goto handle_unusual; 2575 goto handle_unusual;
2555 } 2576 }
2556 if (input->ExpectAtEnd()) goto success;
2557 break; 2577 break;
2558 } 2578 }
2559 2579
2560 default: { 2580 default: {
2561 handle_unusual: 2581 handle_unusual:
2562 if (tag == 0 || 2582 if (tag == 0 ||
2563 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 2583 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2564 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 2584 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2565 goto success; 2585 goto success;
2566 } 2586 }
(...skipping 25 matching lines...) Expand all
2592 ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end(), out put); 2612 ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end(), out put);
2593 } 2613 }
2594 2614
2595 if (_internal_metadata_.have_unknown_fields()) { 2615 if (_internal_metadata_.have_unknown_fields()) {
2596 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 2616 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2597 unknown_fields(), output); 2617 unknown_fields(), output);
2598 } 2618 }
2599 // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto.Exte nsionRange) 2619 // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto.Exte nsionRange)
2600 } 2620 }
2601 2621
2602 ::google::protobuf::uint8* DescriptorProto_ExtensionRange::SerializeWithCachedSi zesToArray( 2622 ::google::protobuf::uint8* DescriptorProto_ExtensionRange::InternalSerializeWith CachedSizesToArray(
2603 ::google::protobuf::uint8* target) const { 2623 bool deterministic, ::google::protobuf::uint8* target) const {
2624 (void)deterministic; // Unused
2604 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Descripto rProto.ExtensionRange) 2625 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Descripto rProto.ExtensionRange)
2605 // optional int32 start = 1; 2626 // optional int32 start = 1;
2606 if (has_start()) { 2627 if (has_start()) {
2607 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->start(), target); 2628 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->start(), target);
2608 } 2629 }
2609 2630
2610 // optional int32 end = 2; 2631 // optional int32 end = 2;
2611 if (has_end()) { 2632 if (has_end()) {
2612 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->end(), target); 2633 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->end(), target);
2613 } 2634 }
2614 2635
2615 if (_internal_metadata_.have_unknown_fields()) { 2636 if (_internal_metadata_.have_unknown_fields()) {
2616 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 2637 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
2617 unknown_fields(), target); 2638 unknown_fields(), target);
2618 } 2639 }
2619 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorP roto.ExtensionRange) 2640 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorP roto.ExtensionRange)
2620 return target; 2641 return target;
2621 } 2642 }
2622 2643
2623 int DescriptorProto_ExtensionRange::ByteSize() const { 2644 size_t DescriptorProto_ExtensionRange::ByteSizeLong() const {
2624 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DescriptorPr oto.ExtensionRange) 2645 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DescriptorPr oto.ExtensionRange)
2625 int total_size = 0; 2646 size_t total_size = 0;
2626 2647
2648 if (_internal_metadata_.have_unknown_fields()) {
2649 total_size +=
2650 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2651 unknown_fields());
2652 }
2627 if (_has_bits_[0 / 32] & 3u) { 2653 if (_has_bits_[0 / 32] & 3u) {
2628 // optional int32 start = 1; 2654 // optional int32 start = 1;
2629 if (has_start()) { 2655 if (has_start()) {
2630 total_size += 1 + 2656 total_size += 1 +
2631 ::google::protobuf::internal::WireFormatLite::Int32Size( 2657 ::google::protobuf::internal::WireFormatLite::Int32Size(
2632 this->start()); 2658 this->start());
2633 } 2659 }
2634 2660
2635 // optional int32 end = 2; 2661 // optional int32 end = 2;
2636 if (has_end()) { 2662 if (has_end()) {
2637 total_size += 1 + 2663 total_size += 1 +
2638 ::google::protobuf::internal::WireFormatLite::Int32Size( 2664 ::google::protobuf::internal::WireFormatLite::Int32Size(
2639 this->end()); 2665 this->end());
2640 } 2666 }
2641 2667
2642 } 2668 }
2643 if (_internal_metadata_.have_unknown_fields()) { 2669 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(); 2670 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2649 _cached_size_ = total_size; 2671 _cached_size_ = cached_size;
2650 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 2672 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2651 return total_size; 2673 return total_size;
2652 } 2674 }
2653 2675
2654 void DescriptorProto_ExtensionRange::MergeFrom(const ::google::protobuf::Message & from) { 2676 void DescriptorProto_ExtensionRange::MergeFrom(const ::google::protobuf::Message & from) {
2655 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Descrip torProto.ExtensionRange) 2677 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Descrip torProto.ExtensionRange)
2656 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 2678 GOOGLE_DCHECK_NE(&from, this);
2657 const DescriptorProto_ExtensionRange* source = 2679 const DescriptorProto_ExtensionRange* source =
2658 ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto _ExtensionRange>( 2680 ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto _ExtensionRange>(
2659 &from); 2681 &from);
2660 if (source == NULL) { 2682 if (source == NULL) {
2661 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.D escriptorProto.ExtensionRange) 2683 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.D escriptorProto.ExtensionRange)
2662 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 2684 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2663 } else { 2685 } else {
2664 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.DescriptorProto.ExtensionRange) 2686 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.DescriptorProto.ExtensionRange)
2665 MergeFrom(*source); 2687 MergeFrom(*source);
2666 } 2688 }
2667 } 2689 }
2668 2690
2669 void DescriptorProto_ExtensionRange::MergeFrom(const DescriptorProto_ExtensionRa nge& from) { 2691 void DescriptorProto_ExtensionRange::MergeFrom(const DescriptorProto_ExtensionRa nge& from) {
2670 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Desc riptorProto.ExtensionRange) 2692 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Desc riptorProto.ExtensionRange)
2671 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 2693 GOOGLE_DCHECK_NE(&from, this);
2672 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { 2694 _internal_metadata_.MergeFrom(from._internal_metadata_);
2695 if (from._has_bits_[0 / 32] & 3u) {
2673 if (from.has_start()) { 2696 if (from.has_start()) {
2674 set_start(from.start()); 2697 set_start(from.start());
2675 } 2698 }
2676 if (from.has_end()) { 2699 if (from.has_end()) {
2677 set_end(from.end()); 2700 set_end(from.end());
2678 } 2701 }
2679 } 2702 }
2680 if (from._internal_metadata_.have_unknown_fields()) {
2681 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
2682 }
2683 } 2703 }
2684 2704
2685 void DescriptorProto_ExtensionRange::CopyFrom(const ::google::protobuf::Message& from) { 2705 void DescriptorProto_ExtensionRange::CopyFrom(const ::google::protobuf::Message& from) {
2686 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Descript orProto.ExtensionRange) 2706 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Descript orProto.ExtensionRange)
2687 if (&from == this) return; 2707 if (&from == this) return;
2688 Clear(); 2708 Clear();
2689 MergeFrom(from); 2709 MergeFrom(from);
2690 } 2710 }
2691 2711
2692 void DescriptorProto_ExtensionRange::CopyFrom(const DescriptorProto_ExtensionRan ge& from) { 2712 void DescriptorProto_ExtensionRange::CopyFrom(const DescriptorProto_ExtensionRan ge& from) {
2693 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Descr iptorProto.ExtensionRange) 2713 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Descr iptorProto.ExtensionRange)
2694 if (&from == this) return; 2714 if (&from == this) return;
2695 Clear(); 2715 Clear();
2696 MergeFrom(from); 2716 MergeFrom(from);
2697 } 2717 }
2698 2718
2699 bool DescriptorProto_ExtensionRange::IsInitialized() const { 2719 bool DescriptorProto_ExtensionRange::IsInitialized() const {
2700
2701 return true; 2720 return true;
2702 } 2721 }
2703 2722
2704 void DescriptorProto_ExtensionRange::Swap(DescriptorProto_ExtensionRange* other) { 2723 void DescriptorProto_ExtensionRange::Swap(DescriptorProto_ExtensionRange* other) {
2705 if (other == this) return; 2724 if (other == this) return;
2706 InternalSwap(other); 2725 InternalSwap(other);
2707 } 2726 }
2708 void DescriptorProto_ExtensionRange::InternalSwap(DescriptorProto_ExtensionRange * other) { 2727 void DescriptorProto_ExtensionRange::InternalSwap(DescriptorProto_ExtensionRange * other) {
2709 std::swap(start_, other->start_); 2728 std::swap(start_, other->start_);
2710 std::swap(end_, other->end_); 2729 std::swap(end_, other->end_);
2711 std::swap(_has_bits_[0], other->_has_bits_[0]); 2730 std::swap(_has_bits_[0], other->_has_bits_[0]);
2712 _internal_metadata_.Swap(&other->_internal_metadata_); 2731 _internal_metadata_.Swap(&other->_internal_metadata_);
2713 std::swap(_cached_size_, other->_cached_size_); 2732 std::swap(_cached_size_, other->_cached_size_);
2714 } 2733 }
2715 2734
2716 ::google::protobuf::Metadata DescriptorProto_ExtensionRange::GetMetadata() const { 2735 ::google::protobuf::Metadata DescriptorProto_ExtensionRange::GetMetadata() const {
2717 protobuf_AssignDescriptorsOnce(); 2736 protobuf_AssignDescriptorsOnce();
2718 ::google::protobuf::Metadata metadata; 2737 return file_level_metadata[2];
2719 metadata.descriptor = DescriptorProto_ExtensionRange_descriptor_;
2720 metadata.reflection = DescriptorProto_ExtensionRange_reflection_;
2721 return metadata;
2722 } 2738 }
2723 2739
2740 #if PROTOBUF_INLINE_NOT_IN_HEADERS
2741 // DescriptorProto_ExtensionRange
2724 2742
2725 // ------------------------------------------------------------------- 2743 // optional int32 start = 1;
2744 bool DescriptorProto_ExtensionRange::has_start() const {
2745 return (_has_bits_[0] & 0x00000001u) != 0;
2746 }
2747 void DescriptorProto_ExtensionRange::set_has_start() {
2748 _has_bits_[0] |= 0x00000001u;
2749 }
2750 void DescriptorProto_ExtensionRange::clear_has_start() {
2751 _has_bits_[0] &= ~0x00000001u;
2752 }
2753 void DescriptorProto_ExtensionRange::clear_start() {
2754 start_ = 0;
2755 clear_has_start();
2756 }
2757 ::google::protobuf::int32 DescriptorProto_ExtensionRange::start() const {
2758 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.Extensio nRange.start)
2759 return start_;
2760 }
2761 void DescriptorProto_ExtensionRange::set_start(::google::protobuf::int32 value) {
2762 set_has_start();
2763 start_ = value;
2764 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.Extensio nRange.start)
2765 }
2766
2767 // optional int32 end = 2;
2768 bool DescriptorProto_ExtensionRange::has_end() const {
2769 return (_has_bits_[0] & 0x00000002u) != 0;
2770 }
2771 void DescriptorProto_ExtensionRange::set_has_end() {
2772 _has_bits_[0] |= 0x00000002u;
2773 }
2774 void DescriptorProto_ExtensionRange::clear_has_end() {
2775 _has_bits_[0] &= ~0x00000002u;
2776 }
2777 void DescriptorProto_ExtensionRange::clear_end() {
2778 end_ = 0;
2779 clear_has_end();
2780 }
2781 ::google::protobuf::int32 DescriptorProto_ExtensionRange::end() const {
2782 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.Extensio nRange.end)
2783 return end_;
2784 }
2785 void DescriptorProto_ExtensionRange::set_end(::google::protobuf::int32 value) {
2786 set_has_end();
2787 end_ = value;
2788 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.Extensio nRange.end)
2789 }
2790
2791 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
2792
2793 // ===================================================================
2726 2794
2727 #if !defined(_MSC_VER) || _MSC_VER >= 1900 2795 #if !defined(_MSC_VER) || _MSC_VER >= 1900
2728 const int DescriptorProto_ReservedRange::kStartFieldNumber; 2796 const int DescriptorProto_ReservedRange::kStartFieldNumber;
2729 const int DescriptorProto_ReservedRange::kEndFieldNumber; 2797 const int DescriptorProto_ReservedRange::kEndFieldNumber;
2730 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 2798 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
2731 2799
2732 DescriptorProto_ReservedRange::DescriptorProto_ReservedRange() 2800 DescriptorProto_ReservedRange::DescriptorProto_ReservedRange()
2733 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 2801 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2802 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2803 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
2804 }
2734 SharedCtor(); 2805 SharedCtor();
2735 // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto.Reserv edRange) 2806 // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto.Reserv edRange)
2736 } 2807 }
2737
2738 void DescriptorProto_ReservedRange::InitAsDefaultInstance() {
2739 }
2740
2741 DescriptorProto_ReservedRange::DescriptorProto_ReservedRange(const DescriptorPro to_ReservedRange& from) 2808 DescriptorProto_ReservedRange::DescriptorProto_ReservedRange(const DescriptorPro to_ReservedRange& from)
2742 : ::google::protobuf::Message(), 2809 : ::google::protobuf::Message(),
2743 _internal_metadata_(NULL) { 2810 _internal_metadata_(NULL),
2744 SharedCtor(); 2811 _has_bits_(from._has_bits_),
2745 MergeFrom(from); 2812 _cached_size_(0) {
2813 _internal_metadata_.MergeFrom(from._internal_metadata_);
2814 ::memcpy(&start_, &from.start_,
2815 reinterpret_cast<char*>(&end_) -
2816 reinterpret_cast<char*>(&start_) + sizeof(end_));
2746 // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto.R eservedRange) 2817 // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto.R eservedRange)
2747 } 2818 }
2748 2819
2749 void DescriptorProto_ReservedRange::SharedCtor() { 2820 void DescriptorProto_ReservedRange::SharedCtor() {
2750 _cached_size_ = 0; 2821 _cached_size_ = 0;
2751 start_ = 0; 2822 ::memset(&start_, 0, reinterpret_cast<char*>(&end_) -
2752 end_ = 0; 2823 reinterpret_cast<char*>(&start_) + sizeof(end_));
2753 ::memset(_has_bits_, 0, sizeof(_has_bits_));
2754 } 2824 }
2755 2825
2756 DescriptorProto_ReservedRange::~DescriptorProto_ReservedRange() { 2826 DescriptorProto_ReservedRange::~DescriptorProto_ReservedRange() {
2757 // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto.Reserve dRange) 2827 // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto.Reserve dRange)
2758 SharedDtor(); 2828 SharedDtor();
2759 } 2829 }
2760 2830
2761 void DescriptorProto_ReservedRange::SharedDtor() { 2831 void DescriptorProto_ReservedRange::SharedDtor() {
2762 if (this != default_instance_) {
2763 }
2764 } 2832 }
2765 2833
2766 void DescriptorProto_ReservedRange::SetCachedSize(int size) const { 2834 void DescriptorProto_ReservedRange::SetCachedSize(int size) const {
2767 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 2835 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2768 _cached_size_ = size; 2836 _cached_size_ = size;
2769 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 2837 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2770 } 2838 }
2771 const ::google::protobuf::Descriptor* DescriptorProto_ReservedRange::descriptor( ) { 2839 const ::google::protobuf::Descriptor* DescriptorProto_ReservedRange::descriptor( ) {
2772 protobuf_AssignDescriptorsOnce(); 2840 protobuf_AssignDescriptorsOnce();
2773 return DescriptorProto_ReservedRange_descriptor_; 2841 return file_level_metadata[3].descriptor;
2774 } 2842 }
2775 2843
2776 const DescriptorProto_ReservedRange& DescriptorProto_ReservedRange::default_inst ance() { 2844 const DescriptorProto_ReservedRange& DescriptorProto_ReservedRange::default_inst ance() {
2777 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 2845 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
2778 return *default_instance_; 2846 return *internal_default_instance();
2779 } 2847 }
2780 2848
2781 DescriptorProto_ReservedRange* DescriptorProto_ReservedRange::default_instance_ = NULL;
2782
2783 DescriptorProto_ReservedRange* DescriptorProto_ReservedRange::New(::google::prot obuf::Arena* arena) const { 2849 DescriptorProto_ReservedRange* DescriptorProto_ReservedRange::New(::google::prot obuf::Arena* arena) const {
2784 DescriptorProto_ReservedRange* n = new DescriptorProto_ReservedRange; 2850 DescriptorProto_ReservedRange* n = new DescriptorProto_ReservedRange;
2785 if (arena != NULL) { 2851 if (arena != NULL) {
2786 arena->Own(n); 2852 arena->Own(n);
2787 } 2853 }
2788 return n; 2854 return n;
2789 } 2855 }
2790 2856
2791 void DescriptorProto_ReservedRange::Clear() { 2857 void DescriptorProto_ReservedRange::Clear() {
2792 // @@protoc_insertion_point(message_clear_start:google.protobuf.DescriptorProto. ReservedRange) 2858 // @@protoc_insertion_point(message_clear_start:google.protobuf.DescriptorProto. ReservedRange)
2793 #if defined(__clang__) 2859 if (_has_bits_[0 / 32] & 3u) {
2794 #define ZR_HELPER_(f) \ 2860 ::memset(&start_, 0, reinterpret_cast<char*>(&end_) -
2795 _Pragma("clang diagnostic push") \ 2861 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 } 2862 }
2863 _has_bits_.Clear();
2864 _internal_metadata_.Clear();
2818 } 2865 }
2819 2866
2820 bool DescriptorProto_ReservedRange::MergePartialFromCodedStream( 2867 bool DescriptorProto_ReservedRange::MergePartialFromCodedStream(
2821 ::google::protobuf::io::CodedInputStream* input) { 2868 ::google::protobuf::io::CodedInputStream* input) {
2822 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 2869 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2823 ::google::protobuf::uint32 tag; 2870 ::google::protobuf::uint32 tag;
2824 // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto.Reserv edRange) 2871 // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto.Reserv edRange)
2825 for (;;) { 2872 for (;;) {
2826 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127); 2873 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u);
2827 tag = p.first; 2874 tag = p.first;
2828 if (!p.second) goto handle_unusual; 2875 if (!p.second) goto handle_unusual;
2829 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 2876 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
2830 // optional int32 start = 1; 2877 // optional int32 start = 1;
2831 case 1: { 2878 case 1: {
2832 if (tag == 8) { 2879 if (tag == 8u) {
2880 set_has_start();
2833 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 2881 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2834 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>( 2882 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
2835 input, &start_))); 2883 input, &start_)));
2836 set_has_start();
2837 } else { 2884 } else {
2838 goto handle_unusual; 2885 goto handle_unusual;
2839 } 2886 }
2840 if (input->ExpectTag(16)) goto parse_end;
2841 break; 2887 break;
2842 } 2888 }
2843 2889
2844 // optional int32 end = 2; 2890 // optional int32 end = 2;
2845 case 2: { 2891 case 2: {
2846 if (tag == 16) { 2892 if (tag == 16u) {
2847 parse_end: 2893 set_has_end();
2848 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 2894 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2849 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>( 2895 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
2850 input, &end_))); 2896 input, &end_)));
2851 set_has_end();
2852 } else { 2897 } else {
2853 goto handle_unusual; 2898 goto handle_unusual;
2854 } 2899 }
2855 if (input->ExpectAtEnd()) goto success;
2856 break; 2900 break;
2857 } 2901 }
2858 2902
2859 default: { 2903 default: {
2860 handle_unusual: 2904 handle_unusual:
2861 if (tag == 0 || 2905 if (tag == 0 ||
2862 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 2906 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2863 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 2907 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2864 goto success; 2908 goto success;
2865 } 2909 }
(...skipping 25 matching lines...) Expand all
2891 ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end(), out put); 2935 ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end(), out put);
2892 } 2936 }
2893 2937
2894 if (_internal_metadata_.have_unknown_fields()) { 2938 if (_internal_metadata_.have_unknown_fields()) {
2895 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 2939 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2896 unknown_fields(), output); 2940 unknown_fields(), output);
2897 } 2941 }
2898 // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto.Rese rvedRange) 2942 // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto.Rese rvedRange)
2899 } 2943 }
2900 2944
2901 ::google::protobuf::uint8* DescriptorProto_ReservedRange::SerializeWithCachedSiz esToArray( 2945 ::google::protobuf::uint8* DescriptorProto_ReservedRange::InternalSerializeWithC achedSizesToArray(
2902 ::google::protobuf::uint8* target) const { 2946 bool deterministic, ::google::protobuf::uint8* target) const {
2947 (void)deterministic; // Unused
2903 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Descripto rProto.ReservedRange) 2948 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Descripto rProto.ReservedRange)
2904 // optional int32 start = 1; 2949 // optional int32 start = 1;
2905 if (has_start()) { 2950 if (has_start()) {
2906 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->start(), target); 2951 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->start(), target);
2907 } 2952 }
2908 2953
2909 // optional int32 end = 2; 2954 // optional int32 end = 2;
2910 if (has_end()) { 2955 if (has_end()) {
2911 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->end(), target); 2956 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->end(), target);
2912 } 2957 }
2913 2958
2914 if (_internal_metadata_.have_unknown_fields()) { 2959 if (_internal_metadata_.have_unknown_fields()) {
2915 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 2960 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
2916 unknown_fields(), target); 2961 unknown_fields(), target);
2917 } 2962 }
2918 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorP roto.ReservedRange) 2963 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorP roto.ReservedRange)
2919 return target; 2964 return target;
2920 } 2965 }
2921 2966
2922 int DescriptorProto_ReservedRange::ByteSize() const { 2967 size_t DescriptorProto_ReservedRange::ByteSizeLong() const {
2923 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DescriptorPr oto.ReservedRange) 2968 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DescriptorPr oto.ReservedRange)
2924 int total_size = 0; 2969 size_t total_size = 0;
2925 2970
2971 if (_internal_metadata_.have_unknown_fields()) {
2972 total_size +=
2973 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2974 unknown_fields());
2975 }
2926 if (_has_bits_[0 / 32] & 3u) { 2976 if (_has_bits_[0 / 32] & 3u) {
2927 // optional int32 start = 1; 2977 // optional int32 start = 1;
2928 if (has_start()) { 2978 if (has_start()) {
2929 total_size += 1 + 2979 total_size += 1 +
2930 ::google::protobuf::internal::WireFormatLite::Int32Size( 2980 ::google::protobuf::internal::WireFormatLite::Int32Size(
2931 this->start()); 2981 this->start());
2932 } 2982 }
2933 2983
2934 // optional int32 end = 2; 2984 // optional int32 end = 2;
2935 if (has_end()) { 2985 if (has_end()) {
2936 total_size += 1 + 2986 total_size += 1 +
2937 ::google::protobuf::internal::WireFormatLite::Int32Size( 2987 ::google::protobuf::internal::WireFormatLite::Int32Size(
2938 this->end()); 2988 this->end());
2939 } 2989 }
2940 2990
2941 } 2991 }
2942 if (_internal_metadata_.have_unknown_fields()) { 2992 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(); 2993 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2948 _cached_size_ = total_size; 2994 _cached_size_ = cached_size;
2949 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 2995 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2950 return total_size; 2996 return total_size;
2951 } 2997 }
2952 2998
2953 void DescriptorProto_ReservedRange::MergeFrom(const ::google::protobuf::Message& from) { 2999 void DescriptorProto_ReservedRange::MergeFrom(const ::google::protobuf::Message& from) {
2954 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Descrip torProto.ReservedRange) 3000 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Descrip torProto.ReservedRange)
2955 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 3001 GOOGLE_DCHECK_NE(&from, this);
2956 const DescriptorProto_ReservedRange* source = 3002 const DescriptorProto_ReservedRange* source =
2957 ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto _ReservedRange>( 3003 ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto _ReservedRange>(
2958 &from); 3004 &from);
2959 if (source == NULL) { 3005 if (source == NULL) {
2960 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.D escriptorProto.ReservedRange) 3006 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.D escriptorProto.ReservedRange)
2961 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 3007 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2962 } else { 3008 } else {
2963 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.DescriptorProto.ReservedRange) 3009 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.DescriptorProto.ReservedRange)
2964 MergeFrom(*source); 3010 MergeFrom(*source);
2965 } 3011 }
2966 } 3012 }
2967 3013
2968 void DescriptorProto_ReservedRange::MergeFrom(const DescriptorProto_ReservedRang e& from) { 3014 void DescriptorProto_ReservedRange::MergeFrom(const DescriptorProto_ReservedRang e& from) {
2969 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Desc riptorProto.ReservedRange) 3015 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Desc riptorProto.ReservedRange)
2970 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 3016 GOOGLE_DCHECK_NE(&from, this);
2971 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { 3017 _internal_metadata_.MergeFrom(from._internal_metadata_);
3018 if (from._has_bits_[0 / 32] & 3u) {
2972 if (from.has_start()) { 3019 if (from.has_start()) {
2973 set_start(from.start()); 3020 set_start(from.start());
2974 } 3021 }
2975 if (from.has_end()) { 3022 if (from.has_end()) {
2976 set_end(from.end()); 3023 set_end(from.end());
2977 } 3024 }
2978 } 3025 }
2979 if (from._internal_metadata_.have_unknown_fields()) {
2980 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
2981 }
2982 } 3026 }
2983 3027
2984 void DescriptorProto_ReservedRange::CopyFrom(const ::google::protobuf::Message& from) { 3028 void DescriptorProto_ReservedRange::CopyFrom(const ::google::protobuf::Message& from) {
2985 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Descript orProto.ReservedRange) 3029 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Descript orProto.ReservedRange)
2986 if (&from == this) return; 3030 if (&from == this) return;
2987 Clear(); 3031 Clear();
2988 MergeFrom(from); 3032 MergeFrom(from);
2989 } 3033 }
2990 3034
2991 void DescriptorProto_ReservedRange::CopyFrom(const DescriptorProto_ReservedRange & from) { 3035 void DescriptorProto_ReservedRange::CopyFrom(const DescriptorProto_ReservedRange & from) {
2992 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Descr iptorProto.ReservedRange) 3036 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Descr iptorProto.ReservedRange)
2993 if (&from == this) return; 3037 if (&from == this) return;
2994 Clear(); 3038 Clear();
2995 MergeFrom(from); 3039 MergeFrom(from);
2996 } 3040 }
2997 3041
2998 bool DescriptorProto_ReservedRange::IsInitialized() const { 3042 bool DescriptorProto_ReservedRange::IsInitialized() const {
2999
3000 return true; 3043 return true;
3001 } 3044 }
3002 3045
3003 void DescriptorProto_ReservedRange::Swap(DescriptorProto_ReservedRange* other) { 3046 void DescriptorProto_ReservedRange::Swap(DescriptorProto_ReservedRange* other) {
3004 if (other == this) return; 3047 if (other == this) return;
3005 InternalSwap(other); 3048 InternalSwap(other);
3006 } 3049 }
3007 void DescriptorProto_ReservedRange::InternalSwap(DescriptorProto_ReservedRange* other) { 3050 void DescriptorProto_ReservedRange::InternalSwap(DescriptorProto_ReservedRange* other) {
3008 std::swap(start_, other->start_); 3051 std::swap(start_, other->start_);
3009 std::swap(end_, other->end_); 3052 std::swap(end_, other->end_);
3010 std::swap(_has_bits_[0], other->_has_bits_[0]); 3053 std::swap(_has_bits_[0], other->_has_bits_[0]);
3011 _internal_metadata_.Swap(&other->_internal_metadata_); 3054 _internal_metadata_.Swap(&other->_internal_metadata_);
3012 std::swap(_cached_size_, other->_cached_size_); 3055 std::swap(_cached_size_, other->_cached_size_);
3013 } 3056 }
3014 3057
3015 ::google::protobuf::Metadata DescriptorProto_ReservedRange::GetMetadata() const { 3058 ::google::protobuf::Metadata DescriptorProto_ReservedRange::GetMetadata() const {
3016 protobuf_AssignDescriptorsOnce(); 3059 protobuf_AssignDescriptorsOnce();
3017 ::google::protobuf::Metadata metadata; 3060 return file_level_metadata[3];
3018 metadata.descriptor = DescriptorProto_ReservedRange_descriptor_;
3019 metadata.reflection = DescriptorProto_ReservedRange_reflection_;
3020 return metadata;
3021 } 3061 }
3022 3062
3063 #if PROTOBUF_INLINE_NOT_IN_HEADERS
3064 // DescriptorProto_ReservedRange
3023 3065
3024 // ------------------------------------------------------------------- 3066 // optional int32 start = 1;
3067 bool DescriptorProto_ReservedRange::has_start() const {
3068 return (_has_bits_[0] & 0x00000001u) != 0;
3069 }
3070 void DescriptorProto_ReservedRange::set_has_start() {
3071 _has_bits_[0] |= 0x00000001u;
3072 }
3073 void DescriptorProto_ReservedRange::clear_has_start() {
3074 _has_bits_[0] &= ~0x00000001u;
3075 }
3076 void DescriptorProto_ReservedRange::clear_start() {
3077 start_ = 0;
3078 clear_has_start();
3079 }
3080 ::google::protobuf::int32 DescriptorProto_ReservedRange::start() const {
3081 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.Reserved Range.start)
3082 return start_;
3083 }
3084 void DescriptorProto_ReservedRange::set_start(::google::protobuf::int32 value) {
3085 set_has_start();
3086 start_ = value;
3087 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.Reserved Range.start)
3088 }
3089
3090 // optional int32 end = 2;
3091 bool DescriptorProto_ReservedRange::has_end() const {
3092 return (_has_bits_[0] & 0x00000002u) != 0;
3093 }
3094 void DescriptorProto_ReservedRange::set_has_end() {
3095 _has_bits_[0] |= 0x00000002u;
3096 }
3097 void DescriptorProto_ReservedRange::clear_has_end() {
3098 _has_bits_[0] &= ~0x00000002u;
3099 }
3100 void DescriptorProto_ReservedRange::clear_end() {
3101 end_ = 0;
3102 clear_has_end();
3103 }
3104 ::google::protobuf::int32 DescriptorProto_ReservedRange::end() const {
3105 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.Reserved Range.end)
3106 return end_;
3107 }
3108 void DescriptorProto_ReservedRange::set_end(::google::protobuf::int32 value) {
3109 set_has_end();
3110 end_ = value;
3111 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.Reserved Range.end)
3112 }
3113
3114 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
3115
3116 // ===================================================================
3025 3117
3026 #if !defined(_MSC_VER) || _MSC_VER >= 1900 3118 #if !defined(_MSC_VER) || _MSC_VER >= 1900
3027 const int DescriptorProto::kNameFieldNumber; 3119 const int DescriptorProto::kNameFieldNumber;
3028 const int DescriptorProto::kFieldFieldNumber; 3120 const int DescriptorProto::kFieldFieldNumber;
3029 const int DescriptorProto::kExtensionFieldNumber; 3121 const int DescriptorProto::kExtensionFieldNumber;
3030 const int DescriptorProto::kNestedTypeFieldNumber; 3122 const int DescriptorProto::kNestedTypeFieldNumber;
3031 const int DescriptorProto::kEnumTypeFieldNumber; 3123 const int DescriptorProto::kEnumTypeFieldNumber;
3032 const int DescriptorProto::kExtensionRangeFieldNumber; 3124 const int DescriptorProto::kExtensionRangeFieldNumber;
3033 const int DescriptorProto::kOneofDeclFieldNumber; 3125 const int DescriptorProto::kOneofDeclFieldNumber;
3034 const int DescriptorProto::kOptionsFieldNumber; 3126 const int DescriptorProto::kOptionsFieldNumber;
3035 const int DescriptorProto::kReservedRangeFieldNumber; 3127 const int DescriptorProto::kReservedRangeFieldNumber;
3036 const int DescriptorProto::kReservedNameFieldNumber; 3128 const int DescriptorProto::kReservedNameFieldNumber;
3037 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 3129 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
3038 3130
3039 DescriptorProto::DescriptorProto() 3131 DescriptorProto::DescriptorProto()
3040 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 3132 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
3133 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
3134 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
3135 }
3041 SharedCtor(); 3136 SharedCtor();
3042 // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto) 3137 // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto)
3043 } 3138 }
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) 3139 DescriptorProto::DescriptorProto(const DescriptorProto& from)
3050 : ::google::protobuf::Message(), 3140 : ::google::protobuf::Message(),
3051 _internal_metadata_(NULL) { 3141 _internal_metadata_(NULL),
3052 SharedCtor(); 3142 _has_bits_(from._has_bits_),
3053 MergeFrom(from); 3143 _cached_size_(0),
3144 field_(from.field_),
3145 extension_(from.extension_),
3146 nested_type_(from.nested_type_),
3147 enum_type_(from.enum_type_),
3148 extension_range_(from.extension_range_),
3149 oneof_decl_(from.oneof_decl_),
3150 reserved_range_(from.reserved_range_),
3151 reserved_name_(from.reserved_name_) {
3152 _internal_metadata_.MergeFrom(from._internal_metadata_);
3153 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
3154 if (from.has_name()) {
3155 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlready Inited(), from.name_);
3156 }
3157 if (from.has_options()) {
3158 options_ = new ::google::protobuf::MessageOptions(*from.options_);
3159 } else {
3160 options_ = NULL;
3161 }
3054 // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto) 3162 // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto)
3055 } 3163 }
3056 3164
3057 void DescriptorProto::SharedCtor() { 3165 void DescriptorProto::SharedCtor() {
3058 ::google::protobuf::internal::GetEmptyString();
3059 _cached_size_ = 0; 3166 _cached_size_ = 0;
3060 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted()); 3167 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
3061 options_ = NULL; 3168 options_ = NULL;
3062 ::memset(_has_bits_, 0, sizeof(_has_bits_));
3063 } 3169 }
3064 3170
3065 DescriptorProto::~DescriptorProto() { 3171 DescriptorProto::~DescriptorProto() {
3066 // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto) 3172 // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto)
3067 SharedDtor(); 3173 SharedDtor();
3068 } 3174 }
3069 3175
3070 void DescriptorProto::SharedDtor() { 3176 void DescriptorProto::SharedDtor() {
3071 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d()); 3177 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d());
3072 if (this != default_instance_) { 3178 if (this != internal_default_instance()) {
3073 delete options_; 3179 delete options_;
3074 } 3180 }
3075 } 3181 }
3076 3182
3077 void DescriptorProto::SetCachedSize(int size) const { 3183 void DescriptorProto::SetCachedSize(int size) const {
3078 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 3184 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3079 _cached_size_ = size; 3185 _cached_size_ = size;
3080 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 3186 GOOGLE_SAFE_CONCURRENT_WRITES_END();
3081 } 3187 }
3082 const ::google::protobuf::Descriptor* DescriptorProto::descriptor() { 3188 const ::google::protobuf::Descriptor* DescriptorProto::descriptor() {
3083 protobuf_AssignDescriptorsOnce(); 3189 protobuf_AssignDescriptorsOnce();
3084 return DescriptorProto_descriptor_; 3190 return file_level_metadata[4].descriptor;
3085 } 3191 }
3086 3192
3087 const DescriptorProto& DescriptorProto::default_instance() { 3193 const DescriptorProto& DescriptorProto::default_instance() {
3088 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 3194 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
3089 return *default_instance_; 3195 return *internal_default_instance();
3090 } 3196 }
3091 3197
3092 DescriptorProto* DescriptorProto::default_instance_ = NULL;
3093
3094 DescriptorProto* DescriptorProto::New(::google::protobuf::Arena* arena) const { 3198 DescriptorProto* DescriptorProto::New(::google::protobuf::Arena* arena) const {
3095 DescriptorProto* n = new DescriptorProto; 3199 DescriptorProto* n = new DescriptorProto;
3096 if (arena != NULL) { 3200 if (arena != NULL) {
3097 arena->Own(n); 3201 arena->Own(n);
3098 } 3202 }
3099 return n; 3203 return n;
3100 } 3204 }
3101 3205
3102 void DescriptorProto::Clear() { 3206 void DescriptorProto::Clear() {
3103 // @@protoc_insertion_point(message_clear_start:google.protobuf.DescriptorProto) 3207 // @@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(); 3208 field_.Clear();
3113 extension_.Clear(); 3209 extension_.Clear();
3114 nested_type_.Clear(); 3210 nested_type_.Clear();
3115 enum_type_.Clear(); 3211 enum_type_.Clear();
3116 extension_range_.Clear(); 3212 extension_range_.Clear();
3117 oneof_decl_.Clear(); 3213 oneof_decl_.Clear();
3118 reserved_range_.Clear(); 3214 reserved_range_.Clear();
3119 reserved_name_.Clear(); 3215 reserved_name_.Clear();
3120 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 3216 if (_has_bits_[0 / 32] & 3u) {
3121 if (_internal_metadata_.have_unknown_fields()) { 3217 if (has_name()) {
3122 mutable_unknown_fields()->Clear(); 3218 GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited()));
3219 (*name_.UnsafeRawStringPointer())->clear();
3220 }
3221 if (has_options()) {
3222 GOOGLE_DCHECK(options_ != NULL);
3223 options_->::google::protobuf::MessageOptions::Clear();
3224 }
3123 } 3225 }
3226 _has_bits_.Clear();
3227 _internal_metadata_.Clear();
3124 } 3228 }
3125 3229
3126 bool DescriptorProto::MergePartialFromCodedStream( 3230 bool DescriptorProto::MergePartialFromCodedStream(
3127 ::google::protobuf::io::CodedInputStream* input) { 3231 ::google::protobuf::io::CodedInputStream* input) {
3128 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 3232 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
3129 ::google::protobuf::uint32 tag; 3233 ::google::protobuf::uint32 tag;
3130 // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto) 3234 // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto)
3131 for (;;) { 3235 for (;;) {
3132 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127); 3236 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u);
3133 tag = p.first; 3237 tag = p.first;
3134 if (!p.second) goto handle_unusual; 3238 if (!p.second) goto handle_unusual;
3135 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 3239 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
3136 // optional string name = 1; 3240 // optional string name = 1;
3137 case 1: { 3241 case 1: {
3138 if (tag == 10) { 3242 if (tag == 10u) {
3139 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 3243 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3140 input, this->mutable_name())); 3244 input, this->mutable_name()));
3141 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 3245 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3142 this->name().data(), this->name().length(), 3246 this->name().data(), this->name().length(),
3143 ::google::protobuf::internal::WireFormat::PARSE, 3247 ::google::protobuf::internal::WireFormat::PARSE,
3144 "google.protobuf.DescriptorProto.name"); 3248 "google.protobuf.DescriptorProto.name");
3145 } else { 3249 } else {
3146 goto handle_unusual; 3250 goto handle_unusual;
3147 } 3251 }
3148 if (input->ExpectTag(18)) goto parse_field;
3149 break; 3252 break;
3150 } 3253 }
3151 3254
3152 // repeated .google.protobuf.FieldDescriptorProto field = 2; 3255 // repeated .google.protobuf.FieldDescriptorProto field = 2;
3153 case 2: { 3256 case 2: {
3154 if (tag == 18) { 3257 if (tag == 18u) {
3155 parse_field:
3156 DO_(input->IncrementRecursionDepth()); 3258 DO_(input->IncrementRecursionDepth());
3157 parse_loop_field:
3158 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 3259 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
3159 input, add_field())); 3260 input, add_field()));
3160 } else { 3261 } else {
3161 goto handle_unusual; 3262 goto handle_unusual;
3162 } 3263 }
3163 if (input->ExpectTag(18)) goto parse_loop_field;
3164 if (input->ExpectTag(26)) goto parse_loop_nested_type;
3165 input->UnsafeDecrementRecursionDepth(); 3264 input->UnsafeDecrementRecursionDepth();
3166 break; 3265 break;
3167 } 3266 }
3168 3267
3169 // repeated .google.protobuf.DescriptorProto nested_type = 3; 3268 // repeated .google.protobuf.DescriptorProto nested_type = 3;
3170 case 3: { 3269 case 3: {
3171 if (tag == 26) { 3270 if (tag == 26u) {
3172 DO_(input->IncrementRecursionDepth()); 3271 DO_(input->IncrementRecursionDepth());
3173 parse_loop_nested_type:
3174 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 3272 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
3175 input, add_nested_type())); 3273 input, add_nested_type()));
3176 } else { 3274 } else {
3177 goto handle_unusual; 3275 goto handle_unusual;
3178 } 3276 }
3179 if (input->ExpectTag(26)) goto parse_loop_nested_type;
3180 if (input->ExpectTag(34)) goto parse_loop_enum_type;
3181 input->UnsafeDecrementRecursionDepth(); 3277 input->UnsafeDecrementRecursionDepth();
3182 break; 3278 break;
3183 } 3279 }
3184 3280
3185 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; 3281 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
3186 case 4: { 3282 case 4: {
3187 if (tag == 34) { 3283 if (tag == 34u) {
3188 DO_(input->IncrementRecursionDepth()); 3284 DO_(input->IncrementRecursionDepth());
3189 parse_loop_enum_type:
3190 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 3285 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
3191 input, add_enum_type())); 3286 input, add_enum_type()));
3192 } else { 3287 } else {
3193 goto handle_unusual; 3288 goto handle_unusual;
3194 } 3289 }
3195 if (input->ExpectTag(34)) goto parse_loop_enum_type;
3196 if (input->ExpectTag(42)) goto parse_loop_extension_range;
3197 input->UnsafeDecrementRecursionDepth(); 3290 input->UnsafeDecrementRecursionDepth();
3198 break; 3291 break;
3199 } 3292 }
3200 3293
3201 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_rang e = 5; 3294 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_rang e = 5;
3202 case 5: { 3295 case 5: {
3203 if (tag == 42) { 3296 if (tag == 42u) {
3204 DO_(input->IncrementRecursionDepth()); 3297 DO_(input->IncrementRecursionDepth());
3205 parse_loop_extension_range:
3206 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 3298 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
3207 input, add_extension_range())); 3299 input, add_extension_range()));
3208 } else { 3300 } else {
3209 goto handle_unusual; 3301 goto handle_unusual;
3210 } 3302 }
3211 if (input->ExpectTag(42)) goto parse_loop_extension_range;
3212 if (input->ExpectTag(50)) goto parse_loop_extension;
3213 input->UnsafeDecrementRecursionDepth(); 3303 input->UnsafeDecrementRecursionDepth();
3214 break; 3304 break;
3215 } 3305 }
3216 3306
3217 // repeated .google.protobuf.FieldDescriptorProto extension = 6; 3307 // repeated .google.protobuf.FieldDescriptorProto extension = 6;
3218 case 6: { 3308 case 6: {
3219 if (tag == 50) { 3309 if (tag == 50u) {
3220 DO_(input->IncrementRecursionDepth()); 3310 DO_(input->IncrementRecursionDepth());
3221 parse_loop_extension:
3222 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 3311 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
3223 input, add_extension())); 3312 input, add_extension()));
3224 } else { 3313 } else {
3225 goto handle_unusual; 3314 goto handle_unusual;
3226 } 3315 }
3227 if (input->ExpectTag(50)) goto parse_loop_extension;
3228 input->UnsafeDecrementRecursionDepth(); 3316 input->UnsafeDecrementRecursionDepth();
3229 if (input->ExpectTag(58)) goto parse_options;
3230 break; 3317 break;
3231 } 3318 }
3232 3319
3233 // optional .google.protobuf.MessageOptions options = 7; 3320 // optional .google.protobuf.MessageOptions options = 7;
3234 case 7: { 3321 case 7: {
3235 if (tag == 58) { 3322 if (tag == 58u) {
3236 parse_options:
3237 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual ( 3323 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual (
3238 input, mutable_options())); 3324 input, mutable_options()));
3239 } else { 3325 } else {
3240 goto handle_unusual; 3326 goto handle_unusual;
3241 } 3327 }
3242 if (input->ExpectTag(66)) goto parse_oneof_decl;
3243 break; 3328 break;
3244 } 3329 }
3245 3330
3246 // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; 3331 // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
3247 case 8: { 3332 case 8: {
3248 if (tag == 66) { 3333 if (tag == 66u) {
3249 parse_oneof_decl:
3250 DO_(input->IncrementRecursionDepth()); 3334 DO_(input->IncrementRecursionDepth());
3251 parse_loop_oneof_decl:
3252 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 3335 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
3253 input, add_oneof_decl())); 3336 input, add_oneof_decl()));
3254 } else { 3337 } else {
3255 goto handle_unusual; 3338 goto handle_unusual;
3256 } 3339 }
3257 if (input->ExpectTag(66)) goto parse_loop_oneof_decl;
3258 if (input->ExpectTag(74)) goto parse_loop_reserved_range;
3259 input->UnsafeDecrementRecursionDepth(); 3340 input->UnsafeDecrementRecursionDepth();
3260 break; 3341 break;
3261 } 3342 }
3262 3343
3263 // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; 3344 // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
3264 case 9: { 3345 case 9: {
3265 if (tag == 74) { 3346 if (tag == 74u) {
3266 DO_(input->IncrementRecursionDepth()); 3347 DO_(input->IncrementRecursionDepth());
3267 parse_loop_reserved_range:
3268 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 3348 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
3269 input, add_reserved_range())); 3349 input, add_reserved_range()));
3270 } else { 3350 } else {
3271 goto handle_unusual; 3351 goto handle_unusual;
3272 } 3352 }
3273 if (input->ExpectTag(74)) goto parse_loop_reserved_range;
3274 input->UnsafeDecrementRecursionDepth(); 3353 input->UnsafeDecrementRecursionDepth();
3275 if (input->ExpectTag(82)) goto parse_reserved_name;
3276 break; 3354 break;
3277 } 3355 }
3278 3356
3279 // repeated string reserved_name = 10; 3357 // repeated string reserved_name = 10;
3280 case 10: { 3358 case 10: {
3281 if (tag == 82) { 3359 if (tag == 82u) {
3282 parse_reserved_name:
3283 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 3360 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3284 input, this->add_reserved_name())); 3361 input, this->add_reserved_name()));
3285 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 3362 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3286 this->reserved_name(this->reserved_name_size() - 1).data(), 3363 this->reserved_name(this->reserved_name_size() - 1).data(),
3287 this->reserved_name(this->reserved_name_size() - 1).length(), 3364 this->reserved_name(this->reserved_name_size() - 1).length(),
3288 ::google::protobuf::internal::WireFormat::PARSE, 3365 ::google::protobuf::internal::WireFormat::PARSE,
3289 "google.protobuf.DescriptorProto.reserved_name"); 3366 "google.protobuf.DescriptorProto.reserved_name");
3290 } else { 3367 } else {
3291 goto handle_unusual; 3368 goto handle_unusual;
3292 } 3369 }
3293 if (input->ExpectTag(82)) goto parse_reserved_name;
3294 if (input->ExpectAtEnd()) goto success;
3295 break; 3370 break;
3296 } 3371 }
3297 3372
3298 default: { 3373 default: {
3299 handle_unusual: 3374 handle_unusual:
3300 if (tag == 0 || 3375 if (tag == 0 ||
3301 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 3376 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3302 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 3377 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
3303 goto success; 3378 goto success;
3304 } 3379 }
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
3388 10, this->reserved_name(i), output); 3463 10, this->reserved_name(i), output);
3389 } 3464 }
3390 3465
3391 if (_internal_metadata_.have_unknown_fields()) { 3466 if (_internal_metadata_.have_unknown_fields()) {
3392 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 3467 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3393 unknown_fields(), output); 3468 unknown_fields(), output);
3394 } 3469 }
3395 // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto) 3470 // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto)
3396 } 3471 }
3397 3472
3398 ::google::protobuf::uint8* DescriptorProto::SerializeWithCachedSizesToArray( 3473 ::google::protobuf::uint8* DescriptorProto::InternalSerializeWithCachedSizesToAr ray(
3399 ::google::protobuf::uint8* target) const { 3474 bool deterministic, ::google::protobuf::uint8* target) const {
3475 (void)deterministic; // Unused
3400 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Descripto rProto) 3476 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Descripto rProto)
3401 // optional string name = 1; 3477 // optional string name = 1;
3402 if (has_name()) { 3478 if (has_name()) {
3403 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 3479 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3404 this->name().data(), this->name().length(), 3480 this->name().data(), this->name().length(),
3405 ::google::protobuf::internal::WireFormat::SERIALIZE, 3481 ::google::protobuf::internal::WireFormat::SERIALIZE,
3406 "google.protobuf.DescriptorProto.name"); 3482 "google.protobuf.DescriptorProto.name");
3407 target = 3483 target =
3408 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 3484 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3409 1, this->name(), target); 3485 1, this->name(), target);
3410 } 3486 }
3411 3487
3412 // repeated .google.protobuf.FieldDescriptorProto field = 2; 3488 // repeated .google.protobuf.FieldDescriptorProto field = 2;
3413 for (unsigned int i = 0, n = this->field_size(); i < n; i++) { 3489 for (unsigned int i = 0, n = this->field_size(); i < n; i++) {
3414 target = ::google::protobuf::internal::WireFormatLite:: 3490 target = ::google::protobuf::internal::WireFormatLite::
3415 WriteMessageNoVirtualToArray( 3491 InternalWriteMessageNoVirtualToArray(
3416 2, this->field(i), target); 3492 2, this->field(i), false, target);
3417 } 3493 }
3418 3494
3419 // repeated .google.protobuf.DescriptorProto nested_type = 3; 3495 // repeated .google.protobuf.DescriptorProto nested_type = 3;
3420 for (unsigned int i = 0, n = this->nested_type_size(); i < n; i++) { 3496 for (unsigned int i = 0, n = this->nested_type_size(); i < n; i++) {
3421 target = ::google::protobuf::internal::WireFormatLite:: 3497 target = ::google::protobuf::internal::WireFormatLite::
3422 WriteMessageNoVirtualToArray( 3498 InternalWriteMessageNoVirtualToArray(
3423 3, this->nested_type(i), target); 3499 3, this->nested_type(i), false, target);
3424 } 3500 }
3425 3501
3426 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; 3502 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
3427 for (unsigned int i = 0, n = this->enum_type_size(); i < n; i++) { 3503 for (unsigned int i = 0, n = this->enum_type_size(); i < n; i++) {
3428 target = ::google::protobuf::internal::WireFormatLite:: 3504 target = ::google::protobuf::internal::WireFormatLite::
3429 WriteMessageNoVirtualToArray( 3505 InternalWriteMessageNoVirtualToArray(
3430 4, this->enum_type(i), target); 3506 4, this->enum_type(i), false, target);
3431 } 3507 }
3432 3508
3433 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; 3509 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
3434 for (unsigned int i = 0, n = this->extension_range_size(); i < n; i++) { 3510 for (unsigned int i = 0, n = this->extension_range_size(); i < n; i++) {
3435 target = ::google::protobuf::internal::WireFormatLite:: 3511 target = ::google::protobuf::internal::WireFormatLite::
3436 WriteMessageNoVirtualToArray( 3512 InternalWriteMessageNoVirtualToArray(
3437 5, this->extension_range(i), target); 3513 5, this->extension_range(i), false, target);
3438 } 3514 }
3439 3515
3440 // repeated .google.protobuf.FieldDescriptorProto extension = 6; 3516 // repeated .google.protobuf.FieldDescriptorProto extension = 6;
3441 for (unsigned int i = 0, n = this->extension_size(); i < n; i++) { 3517 for (unsigned int i = 0, n = this->extension_size(); i < n; i++) {
3442 target = ::google::protobuf::internal::WireFormatLite:: 3518 target = ::google::protobuf::internal::WireFormatLite::
3443 WriteMessageNoVirtualToArray( 3519 InternalWriteMessageNoVirtualToArray(
3444 6, this->extension(i), target); 3520 6, this->extension(i), false, target);
3445 } 3521 }
3446 3522
3447 // optional .google.protobuf.MessageOptions options = 7; 3523 // optional .google.protobuf.MessageOptions options = 7;
3448 if (has_options()) { 3524 if (has_options()) {
3449 target = ::google::protobuf::internal::WireFormatLite:: 3525 target = ::google::protobuf::internal::WireFormatLite::
3450 WriteMessageNoVirtualToArray( 3526 InternalWriteMessageNoVirtualToArray(
3451 7, *this->options_, target); 3527 7, *this->options_, false, target);
3452 } 3528 }
3453 3529
3454 // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; 3530 // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
3455 for (unsigned int i = 0, n = this->oneof_decl_size(); i < n; i++) { 3531 for (unsigned int i = 0, n = this->oneof_decl_size(); i < n; i++) {
3456 target = ::google::protobuf::internal::WireFormatLite:: 3532 target = ::google::protobuf::internal::WireFormatLite::
3457 WriteMessageNoVirtualToArray( 3533 InternalWriteMessageNoVirtualToArray(
3458 8, this->oneof_decl(i), target); 3534 8, this->oneof_decl(i), false, target);
3459 } 3535 }
3460 3536
3461 // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; 3537 // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
3462 for (unsigned int i = 0, n = this->reserved_range_size(); i < n; i++) { 3538 for (unsigned int i = 0, n = this->reserved_range_size(); i < n; i++) {
3463 target = ::google::protobuf::internal::WireFormatLite:: 3539 target = ::google::protobuf::internal::WireFormatLite::
3464 WriteMessageNoVirtualToArray( 3540 InternalWriteMessageNoVirtualToArray(
3465 9, this->reserved_range(i), target); 3541 9, this->reserved_range(i), false, target);
3466 } 3542 }
3467 3543
3468 // repeated string reserved_name = 10; 3544 // repeated string reserved_name = 10;
3469 for (int i = 0; i < this->reserved_name_size(); i++) { 3545 for (int i = 0; i < this->reserved_name_size(); i++) {
3470 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 3546 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3471 this->reserved_name(i).data(), this->reserved_name(i).length(), 3547 this->reserved_name(i).data(), this->reserved_name(i).length(),
3472 ::google::protobuf::internal::WireFormat::SERIALIZE, 3548 ::google::protobuf::internal::WireFormat::SERIALIZE,
3473 "google.protobuf.DescriptorProto.reserved_name"); 3549 "google.protobuf.DescriptorProto.reserved_name");
3474 target = ::google::protobuf::internal::WireFormatLite:: 3550 target = ::google::protobuf::internal::WireFormatLite::
3475 WriteStringToArray(10, this->reserved_name(i), target); 3551 WriteStringToArray(10, this->reserved_name(i), target);
3476 } 3552 }
3477 3553
3478 if (_internal_metadata_.have_unknown_fields()) { 3554 if (_internal_metadata_.have_unknown_fields()) {
3479 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 3555 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
3480 unknown_fields(), target); 3556 unknown_fields(), target);
3481 } 3557 }
3482 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorP roto) 3558 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorP roto)
3483 return target; 3559 return target;
3484 } 3560 }
3485 3561
3486 int DescriptorProto::ByteSize() const { 3562 size_t DescriptorProto::ByteSizeLong() const {
3487 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DescriptorPr oto) 3563 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DescriptorPr oto)
3488 int total_size = 0; 3564 size_t total_size = 0;
3489 3565
3490 if (_has_bits_[0 / 32] & 129u) { 3566 if (_internal_metadata_.have_unknown_fields()) {
3567 total_size +=
3568 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3569 unknown_fields());
3570 }
3571 // repeated .google.protobuf.FieldDescriptorProto field = 2;
3572 {
3573 unsigned int count = this->field_size();
3574 total_size += 1UL * count;
3575 for (unsigned int i = 0; i < count; i++) {
3576 total_size +=
3577 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3578 this->field(i));
3579 }
3580 }
3581
3582 // repeated .google.protobuf.FieldDescriptorProto extension = 6;
3583 {
3584 unsigned int count = this->extension_size();
3585 total_size += 1UL * count;
3586 for (unsigned int i = 0; i < count; i++) {
3587 total_size +=
3588 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3589 this->extension(i));
3590 }
3591 }
3592
3593 // repeated .google.protobuf.DescriptorProto nested_type = 3;
3594 {
3595 unsigned int count = this->nested_type_size();
3596 total_size += 1UL * count;
3597 for (unsigned int i = 0; i < count; i++) {
3598 total_size +=
3599 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3600 this->nested_type(i));
3601 }
3602 }
3603
3604 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
3605 {
3606 unsigned int count = this->enum_type_size();
3607 total_size += 1UL * count;
3608 for (unsigned int i = 0; i < count; i++) {
3609 total_size +=
3610 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3611 this->enum_type(i));
3612 }
3613 }
3614
3615 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
3616 {
3617 unsigned int count = this->extension_range_size();
3618 total_size += 1UL * count;
3619 for (unsigned int i = 0; i < count; i++) {
3620 total_size +=
3621 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3622 this->extension_range(i));
3623 }
3624 }
3625
3626 // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
3627 {
3628 unsigned int count = this->oneof_decl_size();
3629 total_size += 1UL * count;
3630 for (unsigned int i = 0; i < count; i++) {
3631 total_size +=
3632 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3633 this->oneof_decl(i));
3634 }
3635 }
3636
3637 // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
3638 {
3639 unsigned int count = this->reserved_range_size();
3640 total_size += 1UL * count;
3641 for (unsigned int i = 0; i < count; i++) {
3642 total_size +=
3643 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3644 this->reserved_range(i));
3645 }
3646 }
3647
3648 // repeated string reserved_name = 10;
3649 total_size += 1 *
3650 ::google::protobuf::internal::FromIntSize(this->reserved_name_size());
3651 for (int i = 0; i < this->reserved_name_size(); i++) {
3652 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
3653 this->reserved_name(i));
3654 }
3655
3656 if (_has_bits_[0 / 32] & 3u) {
3491 // optional string name = 1; 3657 // optional string name = 1;
3492 if (has_name()) { 3658 if (has_name()) {
3493 total_size += 1 + 3659 total_size += 1 +
3494 ::google::protobuf::internal::WireFormatLite::StringSize( 3660 ::google::protobuf::internal::WireFormatLite::StringSize(
3495 this->name()); 3661 this->name());
3496 } 3662 }
3497 3663
3498 // optional .google.protobuf.MessageOptions options = 7; 3664 // optional .google.protobuf.MessageOptions options = 7;
3499 if (has_options()) { 3665 if (has_options()) {
3500 total_size += 1 + 3666 total_size += 1 +
3501 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( 3667 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3502 *this->options_); 3668 *this->options_);
3503 } 3669 }
3504 3670
3505 } 3671 }
3506 // repeated .google.protobuf.FieldDescriptorProto field = 2; 3672 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(); 3673 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3575 _cached_size_ = total_size; 3674 _cached_size_ = cached_size;
3576 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 3675 GOOGLE_SAFE_CONCURRENT_WRITES_END();
3577 return total_size; 3676 return total_size;
3578 } 3677 }
3579 3678
3580 void DescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { 3679 void DescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
3581 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Descrip torProto) 3680 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Descrip torProto)
3582 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 3681 GOOGLE_DCHECK_NE(&from, this);
3583 const DescriptorProto* source = 3682 const DescriptorProto* source =
3584 ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto >( 3683 ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto >(
3585 &from); 3684 &from);
3586 if (source == NULL) { 3685 if (source == NULL) {
3587 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.D escriptorProto) 3686 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.D escriptorProto)
3588 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 3687 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3589 } else { 3688 } else {
3590 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.DescriptorProto) 3689 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.DescriptorProto)
3591 MergeFrom(*source); 3690 MergeFrom(*source);
3592 } 3691 }
3593 } 3692 }
3594 3693
3595 void DescriptorProto::MergeFrom(const DescriptorProto& from) { 3694 void DescriptorProto::MergeFrom(const DescriptorProto& from) {
3596 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Desc riptorProto) 3695 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Desc riptorProto)
3597 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 3696 GOOGLE_DCHECK_NE(&from, this);
3697 _internal_metadata_.MergeFrom(from._internal_metadata_);
3598 field_.MergeFrom(from.field_); 3698 field_.MergeFrom(from.field_);
3599 extension_.MergeFrom(from.extension_); 3699 extension_.MergeFrom(from.extension_);
3600 nested_type_.MergeFrom(from.nested_type_); 3700 nested_type_.MergeFrom(from.nested_type_);
3601 enum_type_.MergeFrom(from.enum_type_); 3701 enum_type_.MergeFrom(from.enum_type_);
3602 extension_range_.MergeFrom(from.extension_range_); 3702 extension_range_.MergeFrom(from.extension_range_);
3603 oneof_decl_.MergeFrom(from.oneof_decl_); 3703 oneof_decl_.MergeFrom(from.oneof_decl_);
3604 reserved_range_.MergeFrom(from.reserved_range_); 3704 reserved_range_.MergeFrom(from.reserved_range_);
3605 reserved_name_.MergeFrom(from.reserved_name_); 3705 reserved_name_.MergeFrom(from.reserved_name_);
3606 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { 3706 if (from._has_bits_[0 / 32] & 3u) {
3607 if (from.has_name()) { 3707 if (from.has_name()) {
3608 set_has_name(); 3708 set_has_name();
3609 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), from.name_); 3709 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), from.name_);
3610 } 3710 }
3611 if (from.has_options()) { 3711 if (from.has_options()) {
3612 mutable_options()->::google::protobuf::MessageOptions::MergeFrom(from.opti ons()); 3712 mutable_options()->::google::protobuf::MessageOptions::MergeFrom(from.opti ons());
3613 } 3713 }
3614 } 3714 }
3615 if (from._internal_metadata_.have_unknown_fields()) {
3616 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
3617 }
3618 } 3715 }
3619 3716
3620 void DescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { 3717 void DescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
3621 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Descript orProto) 3718 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Descript orProto)
3622 if (&from == this) return; 3719 if (&from == this) return;
3623 Clear(); 3720 Clear();
3624 MergeFrom(from); 3721 MergeFrom(from);
3625 } 3722 }
3626 3723
3627 void DescriptorProto::CopyFrom(const DescriptorProto& from) { 3724 void DescriptorProto::CopyFrom(const DescriptorProto& from) {
3628 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Descr iptorProto) 3725 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Descr iptorProto)
3629 if (&from == this) return; 3726 if (&from == this) return;
3630 Clear(); 3727 Clear();
3631 MergeFrom(from); 3728 MergeFrom(from);
3632 } 3729 }
3633 3730
3634 bool DescriptorProto::IsInitialized() const { 3731 bool DescriptorProto::IsInitialized() const {
3635
3636 if (!::google::protobuf::internal::AllAreInitialized(this->field())) return fa lse; 3732 if (!::google::protobuf::internal::AllAreInitialized(this->field())) return fa lse;
3637 if (!::google::protobuf::internal::AllAreInitialized(this->extension())) retur n false; 3733 if (!::google::protobuf::internal::AllAreInitialized(this->extension())) retur n false;
3638 if (!::google::protobuf::internal::AllAreInitialized(this->nested_type())) ret urn false; 3734 if (!::google::protobuf::internal::AllAreInitialized(this->nested_type())) ret urn false;
3639 if (!::google::protobuf::internal::AllAreInitialized(this->enum_type())) retur n false; 3735 if (!::google::protobuf::internal::AllAreInitialized(this->enum_type())) retur n false;
3736 if (!::google::protobuf::internal::AllAreInitialized(this->oneof_decl())) retu rn false;
3640 if (has_options()) { 3737 if (has_options()) {
3641 if (!this->options_->IsInitialized()) return false; 3738 if (!this->options_->IsInitialized()) return false;
3642 } 3739 }
3643 return true; 3740 return true;
3644 } 3741 }
3645 3742
3646 void DescriptorProto::Swap(DescriptorProto* other) { 3743 void DescriptorProto::Swap(DescriptorProto* other) {
3647 if (other == this) return; 3744 if (other == this) return;
3648 InternalSwap(other); 3745 InternalSwap(other);
3649 } 3746 }
3650 void DescriptorProto::InternalSwap(DescriptorProto* other) { 3747 void DescriptorProto::InternalSwap(DescriptorProto* other) {
3651 name_.Swap(&other->name_);
3652 field_.UnsafeArenaSwap(&other->field_); 3748 field_.UnsafeArenaSwap(&other->field_);
3653 extension_.UnsafeArenaSwap(&other->extension_); 3749 extension_.UnsafeArenaSwap(&other->extension_);
3654 nested_type_.UnsafeArenaSwap(&other->nested_type_); 3750 nested_type_.UnsafeArenaSwap(&other->nested_type_);
3655 enum_type_.UnsafeArenaSwap(&other->enum_type_); 3751 enum_type_.UnsafeArenaSwap(&other->enum_type_);
3656 extension_range_.UnsafeArenaSwap(&other->extension_range_); 3752 extension_range_.UnsafeArenaSwap(&other->extension_range_);
3657 oneof_decl_.UnsafeArenaSwap(&other->oneof_decl_); 3753 oneof_decl_.UnsafeArenaSwap(&other->oneof_decl_);
3658 std::swap(options_, other->options_);
3659 reserved_range_.UnsafeArenaSwap(&other->reserved_range_); 3754 reserved_range_.UnsafeArenaSwap(&other->reserved_range_);
3660 reserved_name_.UnsafeArenaSwap(&other->reserved_name_); 3755 reserved_name_.UnsafeArenaSwap(&other->reserved_name_);
3756 name_.Swap(&other->name_);
3757 std::swap(options_, other->options_);
3661 std::swap(_has_bits_[0], other->_has_bits_[0]); 3758 std::swap(_has_bits_[0], other->_has_bits_[0]);
3662 _internal_metadata_.Swap(&other->_internal_metadata_); 3759 _internal_metadata_.Swap(&other->_internal_metadata_);
3663 std::swap(_cached_size_, other->_cached_size_); 3760 std::swap(_cached_size_, other->_cached_size_);
3664 } 3761 }
3665 3762
3666 ::google::protobuf::Metadata DescriptorProto::GetMetadata() const { 3763 ::google::protobuf::Metadata DescriptorProto::GetMetadata() const {
3667 protobuf_AssignDescriptorsOnce(); 3764 protobuf_AssignDescriptorsOnce();
3668 ::google::protobuf::Metadata metadata; 3765 return file_level_metadata[4];
3669 metadata.descriptor = DescriptorProto_descriptor_;
3670 metadata.reflection = DescriptorProto_reflection_;
3671 return metadata;
3672 } 3766 }
3673 3767
3674 #if PROTOBUF_INLINE_NOT_IN_HEADERS 3768 #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 3769 // DescriptorProto
3780 3770
3781 // optional string name = 1; 3771 // optional string name = 1;
3782 bool DescriptorProto::has_name() const { 3772 bool DescriptorProto::has_name() const {
3783 return (_has_bits_[0] & 0x00000001u) != 0; 3773 return (_has_bits_[0] & 0x00000001u) != 0;
3784 } 3774 }
3785 void DescriptorProto::set_has_name() { 3775 void DescriptorProto::set_has_name() {
3786 _has_bits_[0] |= 0x00000001u; 3776 _has_bits_[0] |= 0x00000001u;
3787 } 3777 }
3788 void DescriptorProto::clear_has_name() { 3778 void DescriptorProto::clear_has_name() {
3789 _has_bits_[0] &= ~0x00000001u; 3779 _has_bits_[0] &= ~0x00000001u;
3790 } 3780 }
3791 void DescriptorProto::clear_name() { 3781 void DescriptorProto::clear_name() {
3792 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 3782 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
3793 clear_has_name(); 3783 clear_has_name();
3794 } 3784 }
3795 const ::std::string& DescriptorProto::name() const { 3785 const ::std::string& DescriptorProto::name() const {
3796 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.name) 3786 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.name)
3797 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited()); 3787 return name_.GetNoArena();
3798 } 3788 }
3799 void DescriptorProto::set_name(const ::std::string& value) { 3789 void DescriptorProto::set_name(const ::std::string& value) {
3800 set_has_name(); 3790 set_has_name();
3801 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 3791 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
3802 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.name) 3792 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.name)
3803 } 3793 }
3804 void DescriptorProto::set_name(const char* value) { 3794 void DescriptorProto::set_name(const char* value) {
3805 set_has_name(); 3795 set_has_name();
3806 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 3796 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
3807 // @@protoc_insertion_point(field_set_char:google.protobuf.DescriptorProto.nam e) 3797 // @@protoc_insertion_point(field_set_char:google.protobuf.DescriptorProto.nam e)
3808 } 3798 }
3809 void DescriptorProto::set_name(const char* value, size_t size) { 3799 void DescriptorProto::set_name(const char* value, size_t size) {
3810 set_has_name(); 3800 set_has_name();
3811 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 3801 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3812 ::std::string(reinterpret_cast<const char*>(value), size)); 3802 ::std::string(reinterpret_cast<const char*>(value), size));
3813 // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto. name) 3803 // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto. name)
3814 } 3804 }
3815 ::std::string* DescriptorProto::mutable_name() { 3805 ::std::string* DescriptorProto::mutable_name() {
3816 set_has_name(); 3806 set_has_name();
3817 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.name ) 3807 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.name )
3818 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 3808 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
3819 } 3809 }
3820 ::std::string* DescriptorProto::release_name() { 3810 ::std::string* DescriptorProto::release_name() {
3821 // @@protoc_insertion_point(field_release:google.protobuf.DescriptorProto.name ) 3811 // @@protoc_insertion_point(field_release:google.protobuf.DescriptorProto.name )
3822 clear_has_name(); 3812 clear_has_name();
3823 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 3813 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
3824 } 3814 }
3825 void DescriptorProto::set_allocated_name(::std::string* name) { 3815 void DescriptorProto::set_allocated_name(::std::string* name) {
3826 if (name != NULL) { 3816 if (name != NULL) {
3827 set_has_name(); 3817 set_has_name();
3828 } else { 3818 } else {
3829 clear_has_name(); 3819 clear_has_name();
3830 } 3820 }
3831 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name); 3821 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name);
3832 // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProt o.name) 3822 // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProt o.name)
3833 } 3823 }
3834 3824
3835 // repeated .google.protobuf.FieldDescriptorProto field = 2; 3825 // repeated .google.protobuf.FieldDescriptorProto field = 2;
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
4007 return &oneof_decl_; 3997 return &oneof_decl_;
4008 } 3998 }
4009 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorP roto >& 3999 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorP roto >&
4010 DescriptorProto::oneof_decl() const { 4000 DescriptorProto::oneof_decl() const {
4011 // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.oneof_d ecl) 4001 // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.oneof_d ecl)
4012 return oneof_decl_; 4002 return oneof_decl_;
4013 } 4003 }
4014 4004
4015 // optional .google.protobuf.MessageOptions options = 7; 4005 // optional .google.protobuf.MessageOptions options = 7;
4016 bool DescriptorProto::has_options() const { 4006 bool DescriptorProto::has_options() const {
4017 return (_has_bits_[0] & 0x00000080u) != 0; 4007 return (_has_bits_[0] & 0x00000002u) != 0;
4018 } 4008 }
4019 void DescriptorProto::set_has_options() { 4009 void DescriptorProto::set_has_options() {
4020 _has_bits_[0] |= 0x00000080u; 4010 _has_bits_[0] |= 0x00000002u;
4021 } 4011 }
4022 void DescriptorProto::clear_has_options() { 4012 void DescriptorProto::clear_has_options() {
4023 _has_bits_[0] &= ~0x00000080u; 4013 _has_bits_[0] &= ~0x00000002u;
4024 } 4014 }
4025 void DescriptorProto::clear_options() { 4015 void DescriptorProto::clear_options() {
4026 if (options_ != NULL) options_->::google::protobuf::MessageOptions::Clear(); 4016 if (options_ != NULL) options_->::google::protobuf::MessageOptions::Clear();
4027 clear_has_options(); 4017 clear_has_options();
4028 } 4018 }
4029 const ::google::protobuf::MessageOptions& DescriptorProto::options() const { 4019 const ::google::protobuf::MessageOptions& DescriptorProto::options() const {
4030 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.options) 4020 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.options)
4031 return options_ != NULL ? *options_ : *default_instance_->options_; 4021 return options_ != NULL ? *options_
4022 : *::google::protobuf::MessageOptions::internal_default _instance();
4032 } 4023 }
4033 ::google::protobuf::MessageOptions* DescriptorProto::mutable_options() { 4024 ::google::protobuf::MessageOptions* DescriptorProto::mutable_options() {
4034 set_has_options(); 4025 set_has_options();
4035 if (options_ == NULL) { 4026 if (options_ == NULL) {
4036 options_ = new ::google::protobuf::MessageOptions; 4027 options_ = new ::google::protobuf::MessageOptions;
4037 } 4028 }
4038 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.opti ons) 4029 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.opti ons)
4039 return options_; 4030 return options_;
4040 } 4031 }
4041 ::google::protobuf::MessageOptions* DescriptorProto::release_options() { 4032 ::google::protobuf::MessageOptions* DescriptorProto::release_options() {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
4086 return reserved_range_; 4077 return reserved_range_;
4087 } 4078 }
4088 4079
4089 // repeated string reserved_name = 10; 4080 // repeated string reserved_name = 10;
4090 int DescriptorProto::reserved_name_size() const { 4081 int DescriptorProto::reserved_name_size() const {
4091 return reserved_name_.size(); 4082 return reserved_name_.size();
4092 } 4083 }
4093 void DescriptorProto::clear_reserved_name() { 4084 void DescriptorProto::clear_reserved_name() {
4094 reserved_name_.Clear(); 4085 reserved_name_.Clear();
4095 } 4086 }
4096 const ::std::string& DescriptorProto::reserved_name(int index) const { 4087 const ::std::string& DescriptorProto::reserved_name(int index) const {
4097 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.reserved _name) 4088 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.reserved _name)
4098 return reserved_name_.Get(index); 4089 return reserved_name_.Get(index);
4099 } 4090 }
4100 ::std::string* DescriptorProto::mutable_reserved_name(int index) { 4091 ::std::string* DescriptorProto::mutable_reserved_name(int index) {
4101 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.rese rved_name) 4092 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.rese rved_name)
4102 return reserved_name_.Mutable(index); 4093 return reserved_name_.Mutable(index);
4103 } 4094 }
4104 void DescriptorProto::set_reserved_name(int index, const ::std::string& value) { 4095 void DescriptorProto::set_reserved_name(int index, const ::std::string& value) {
4105 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.reserved _name) 4096 // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.reserved _name)
4106 reserved_name_.Mutable(index)->assign(value); 4097 reserved_name_.Mutable(index)->assign(value);
4107 } 4098 }
4108 void DescriptorProto::set_reserved_name(int index, const char* value) { 4099 void DescriptorProto::set_reserved_name(int index, const char* value) {
4109 reserved_name_.Mutable(index)->assign(value); 4100 reserved_name_.Mutable(index)->assign(value);
4110 // @@protoc_insertion_point(field_set_char:google.protobuf.DescriptorProto.res erved_name) 4101 // @@protoc_insertion_point(field_set_char:google.protobuf.DescriptorProto.res erved_name)
4111 } 4102 }
4112 void DescriptorProto::set_reserved_name(int index, const char* value, size_t si ze) { 4103 void DescriptorProto::set_reserved_name(int index, const char* value, size_t siz e) {
4113 reserved_name_.Mutable(index)->assign( 4104 reserved_name_.Mutable(index)->assign(
4114 reinterpret_cast<const char*>(value), size); 4105 reinterpret_cast<const char*>(value), size);
4115 // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto. reserved_name) 4106 // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto. reserved_name)
4116 } 4107 }
4117 ::std::string* DescriptorProto::add_reserved_name() { 4108 ::std::string* DescriptorProto::add_reserved_name() {
4118 // @@protoc_insertion_point(field_add_mutable:google.protobuf.DescriptorProto. reserved_name) 4109 // @@protoc_insertion_point(field_add_mutable:google.protobuf.DescriptorProto. reserved_name)
4119 return reserved_name_.Add(); 4110 return reserved_name_.Add();
4120 } 4111 }
4121 void DescriptorProto::add_reserved_name(const ::std::string& value) { 4112 void DescriptorProto::add_reserved_name(const ::std::string& value) {
4122 reserved_name_.Add()->assign(value); 4113 reserved_name_.Add()->assign(value);
4123 // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved _name) 4114 // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved _name)
4124 } 4115 }
4125 void DescriptorProto::add_reserved_name(const char* value) { 4116 void DescriptorProto::add_reserved_name(const char* value) {
4126 reserved_name_.Add()->assign(value); 4117 reserved_name_.Add()->assign(value);
4127 // @@protoc_insertion_point(field_add_char:google.protobuf.DescriptorProto.res erved_name) 4118 // @@protoc_insertion_point(field_add_char:google.protobuf.DescriptorProto.res erved_name)
4128 } 4119 }
4129 void DescriptorProto::add_reserved_name(const char* value, size_t size) { 4120 void DescriptorProto::add_reserved_name(const char* value, size_t size) {
4130 reserved_name_.Add()->assign(reinterpret_cast<const char*>(value), size); 4121 reserved_name_.Add()->assign(reinterpret_cast<const char*>(value), size);
4131 // @@protoc_insertion_point(field_add_pointer:google.protobuf.DescriptorProto. reserved_name) 4122 // @@protoc_insertion_point(field_add_pointer:google.protobuf.DescriptorProto. reserved_name)
4132 } 4123 }
4133 const ::google::protobuf::RepeatedPtrField< ::std::string>& 4124 const ::google::protobuf::RepeatedPtrField< ::std::string>&
4134 DescriptorProto::reserved_name() const { 4125 DescriptorProto::reserved_name() const {
4135 // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.reserve d_name) 4126 // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.reserve d_name)
4136 return reserved_name_; 4127 return reserved_name_;
4137 } 4128 }
4138 ::google::protobuf::RepeatedPtrField< ::std::string>* 4129 ::google::protobuf::RepeatedPtrField< ::std::string>*
4139 DescriptorProto::mutable_reserved_name() { 4130 DescriptorProto::mutable_reserved_name() {
4140 // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto .reserved_name) 4131 // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto .reserved_name)
4141 return &reserved_name_; 4132 return &reserved_name_;
4142 } 4133 }
4143 4134
4144 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 4135 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
4145 4136
4146 // =================================================================== 4137 // ===================================================================
4147 4138
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 4139 #if !defined(_MSC_VER) || _MSC_VER >= 1900
4225 const int FieldDescriptorProto::kNameFieldNumber; 4140 const int FieldDescriptorProto::kNameFieldNumber;
4226 const int FieldDescriptorProto::kNumberFieldNumber; 4141 const int FieldDescriptorProto::kNumberFieldNumber;
4227 const int FieldDescriptorProto::kLabelFieldNumber; 4142 const int FieldDescriptorProto::kLabelFieldNumber;
4228 const int FieldDescriptorProto::kTypeFieldNumber; 4143 const int FieldDescriptorProto::kTypeFieldNumber;
4229 const int FieldDescriptorProto::kTypeNameFieldNumber; 4144 const int FieldDescriptorProto::kTypeNameFieldNumber;
4230 const int FieldDescriptorProto::kExtendeeFieldNumber; 4145 const int FieldDescriptorProto::kExtendeeFieldNumber;
4231 const int FieldDescriptorProto::kDefaultValueFieldNumber; 4146 const int FieldDescriptorProto::kDefaultValueFieldNumber;
4232 const int FieldDescriptorProto::kOneofIndexFieldNumber; 4147 const int FieldDescriptorProto::kOneofIndexFieldNumber;
4233 const int FieldDescriptorProto::kJsonNameFieldNumber; 4148 const int FieldDescriptorProto::kJsonNameFieldNumber;
4234 const int FieldDescriptorProto::kOptionsFieldNumber; 4149 const int FieldDescriptorProto::kOptionsFieldNumber;
4235 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 4150 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
4236 4151
4237 FieldDescriptorProto::FieldDescriptorProto() 4152 FieldDescriptorProto::FieldDescriptorProto()
4238 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 4153 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4154 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4155 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
4156 }
4239 SharedCtor(); 4157 SharedCtor();
4240 // @@protoc_insertion_point(constructor:google.protobuf.FieldDescriptorProto) 4158 // @@protoc_insertion_point(constructor:google.protobuf.FieldDescriptorProto)
4241 } 4159 }
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) 4160 FieldDescriptorProto::FieldDescriptorProto(const FieldDescriptorProto& from)
4248 : ::google::protobuf::Message(), 4161 : ::google::protobuf::Message(),
4249 _internal_metadata_(NULL) { 4162 _internal_metadata_(NULL),
4250 SharedCtor(); 4163 _has_bits_(from._has_bits_),
4251 MergeFrom(from); 4164 _cached_size_(0) {
4165 _internal_metadata_.MergeFrom(from._internal_metadata_);
4166 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
4167 if (from.has_name()) {
4168 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlready Inited(), from.name_);
4169 }
4170 type_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
4171 if (from.has_type_name()) {
4172 type_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAl readyInited(), from.type_name_);
4173 }
4174 extendee_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlread yInited());
4175 if (from.has_extendee()) {
4176 extendee_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), from.extendee_);
4177 }
4178 default_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringA lreadyInited());
4179 if (from.has_default_value()) {
4180 default_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited(), from.default_value_);
4181 }
4182 json_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
4183 if (from.has_json_name()) {
4184 json_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAl readyInited(), from.json_name_);
4185 }
4186 if (from.has_options()) {
4187 options_ = new ::google::protobuf::FieldOptions(*from.options_);
4188 } else {
4189 options_ = NULL;
4190 }
4191 ::memcpy(&number_, &from.number_,
4192 reinterpret_cast<char*>(&type_) -
4193 reinterpret_cast<char*>(&number_) + sizeof(type_));
4252 // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldDescriptorPr oto) 4194 // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldDescriptorPr oto)
4253 } 4195 }
4254 4196
4255 void FieldDescriptorProto::SharedCtor() { 4197 void FieldDescriptorProto::SharedCtor() {
4256 ::google::protobuf::internal::GetEmptyString();
4257 _cached_size_ = 0; 4198 _cached_size_ = 0;
4258 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted()); 4199 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()); 4200 type_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
4263 extendee_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlread yInited()); 4201 extendee_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlread yInited());
4264 default_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringA lreadyInited()); 4202 default_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringA lreadyInited());
4265 oneof_index_ = 0;
4266 json_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 4203 json_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
4267 options_ = NULL; 4204 ::memset(&options_, 0, reinterpret_cast<char*>(&oneof_index_) -
4268 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 4205 reinterpret_cast<char*>(&options_) + sizeof(oneof_index_));
4206 label_ = 1;
4207 type_ = 1;
4269 } 4208 }
4270 4209
4271 FieldDescriptorProto::~FieldDescriptorProto() { 4210 FieldDescriptorProto::~FieldDescriptorProto() {
4272 // @@protoc_insertion_point(destructor:google.protobuf.FieldDescriptorProto) 4211 // @@protoc_insertion_point(destructor:google.protobuf.FieldDescriptorProto)
4273 SharedDtor(); 4212 SharedDtor();
4274 } 4213 }
4275 4214
4276 void FieldDescriptorProto::SharedDtor() { 4215 void FieldDescriptorProto::SharedDtor() {
4277 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d()); 4216 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d());
4278 type_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 4217 type_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
4279 extendee_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI nited()); 4218 extendee_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI nited());
4280 default_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited()); 4219 default_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited());
4281 json_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 4220 json_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
4282 if (this != default_instance_) { 4221 if (this != internal_default_instance()) {
4283 delete options_; 4222 delete options_;
4284 } 4223 }
4285 } 4224 }
4286 4225
4287 void FieldDescriptorProto::SetCachedSize(int size) const { 4226 void FieldDescriptorProto::SetCachedSize(int size) const {
4288 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 4227 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4289 _cached_size_ = size; 4228 _cached_size_ = size;
4290 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 4229 GOOGLE_SAFE_CONCURRENT_WRITES_END();
4291 } 4230 }
4292 const ::google::protobuf::Descriptor* FieldDescriptorProto::descriptor() { 4231 const ::google::protobuf::Descriptor* FieldDescriptorProto::descriptor() {
4293 protobuf_AssignDescriptorsOnce(); 4232 protobuf_AssignDescriptorsOnce();
4294 return FieldDescriptorProto_descriptor_; 4233 return file_level_metadata[5].descriptor;
4295 } 4234 }
4296 4235
4297 const FieldDescriptorProto& FieldDescriptorProto::default_instance() { 4236 const FieldDescriptorProto& FieldDescriptorProto::default_instance() {
4298 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 4237 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
4299 return *default_instance_; 4238 return *internal_default_instance();
4300 } 4239 }
4301 4240
4302 FieldDescriptorProto* FieldDescriptorProto::default_instance_ = NULL;
4303
4304 FieldDescriptorProto* FieldDescriptorProto::New(::google::protobuf::Arena* arena ) const { 4241 FieldDescriptorProto* FieldDescriptorProto::New(::google::protobuf::Arena* arena ) const {
4305 FieldDescriptorProto* n = new FieldDescriptorProto; 4242 FieldDescriptorProto* n = new FieldDescriptorProto;
4306 if (arena != NULL) { 4243 if (arena != NULL) {
4307 arena->Own(n); 4244 arena->Own(n);
4308 } 4245 }
4309 return n; 4246 return n;
4310 } 4247 }
4311 4248
4312 void FieldDescriptorProto::Clear() { 4249 void FieldDescriptorProto::Clear() {
4313 // @@protoc_insertion_point(message_clear_start:google.protobuf.FieldDescriptorP roto) 4250 // @@protoc_insertion_point(message_clear_start:google.protobuf.FieldDescriptorP roto)
4314 if (_has_bits_[0 / 32] & 255u) { 4251 if (_has_bits_[0 / 32] & 63u) {
4315 if (has_name()) { 4252 if (has_name()) {
4316 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited()); 4253 GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited()));
4254 (*name_.UnsafeRawStringPointer())->clear();
4317 } 4255 }
4318 number_ = 0; 4256 if (has_type_name()) {
4257 GOOGLE_DCHECK(!type_name_.IsDefault(&::google::protobuf::internal::GetEmpt yStringAlreadyInited()));
4258 (*type_name_.UnsafeRawStringPointer())->clear();
4259 }
4260 if (has_extendee()) {
4261 GOOGLE_DCHECK(!extendee_.IsDefault(&::google::protobuf::internal::GetEmpty StringAlreadyInited()));
4262 (*extendee_.UnsafeRawStringPointer())->clear();
4263 }
4264 if (has_default_value()) {
4265 GOOGLE_DCHECK(!default_value_.IsDefault(&::google::protobuf::internal::Get EmptyStringAlreadyInited()));
4266 (*default_value_.UnsafeRawStringPointer())->clear();
4267 }
4268 if (has_json_name()) {
4269 GOOGLE_DCHECK(!json_name_.IsDefault(&::google::protobuf::internal::GetEmpt yStringAlreadyInited()));
4270 (*json_name_.UnsafeRawStringPointer())->clear();
4271 }
4272 if (has_options()) {
4273 GOOGLE_DCHECK(options_ != NULL);
4274 options_->::google::protobuf::FieldOptions::Clear();
4275 }
4276 }
4277 if (_has_bits_[0 / 32] & 192u) {
4278 ::memset(&number_, 0, reinterpret_cast<char*>(&oneof_index_) -
4279 reinterpret_cast<char*>(&number_) + sizeof(oneof_index_));
4280 }
4281 if (_has_bits_[8 / 32] & 768u) {
4319 label_ = 1; 4282 label_ = 1;
4320 type_ = 1; 4283 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 } 4284 }
4332 if (_has_bits_[8 / 32] & 768u) { 4285 _has_bits_.Clear();
4333 if (has_json_name()) { 4286 _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 } 4287 }
4345 4288
4346 bool FieldDescriptorProto::MergePartialFromCodedStream( 4289 bool FieldDescriptorProto::MergePartialFromCodedStream(
4347 ::google::protobuf::io::CodedInputStream* input) { 4290 ::google::protobuf::io::CodedInputStream* input) {
4348 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 4291 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
4349 ::google::protobuf::uint32 tag; 4292 ::google::protobuf::uint32 tag;
4350 // @@protoc_insertion_point(parse_start:google.protobuf.FieldDescriptorProto) 4293 // @@protoc_insertion_point(parse_start:google.protobuf.FieldDescriptorProto)
4351 for (;;) { 4294 for (;;) {
4352 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127); 4295 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u);
4353 tag = p.first; 4296 tag = p.first;
4354 if (!p.second) goto handle_unusual; 4297 if (!p.second) goto handle_unusual;
4355 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 4298 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
4356 // optional string name = 1; 4299 // optional string name = 1;
4357 case 1: { 4300 case 1: {
4358 if (tag == 10) { 4301 if (tag == 10u) {
4359 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 4302 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4360 input, this->mutable_name())); 4303 input, this->mutable_name()));
4361 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 4304 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4362 this->name().data(), this->name().length(), 4305 this->name().data(), this->name().length(),
4363 ::google::protobuf::internal::WireFormat::PARSE, 4306 ::google::protobuf::internal::WireFormat::PARSE,
4364 "google.protobuf.FieldDescriptorProto.name"); 4307 "google.protobuf.FieldDescriptorProto.name");
4365 } else { 4308 } else {
4366 goto handle_unusual; 4309 goto handle_unusual;
4367 } 4310 }
4368 if (input->ExpectTag(18)) goto parse_extendee;
4369 break; 4311 break;
4370 } 4312 }
4371 4313
4372 // optional string extendee = 2; 4314 // optional string extendee = 2;
4373 case 2: { 4315 case 2: {
4374 if (tag == 18) { 4316 if (tag == 18u) {
4375 parse_extendee:
4376 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 4317 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4377 input, this->mutable_extendee())); 4318 input, this->mutable_extendee()));
4378 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 4319 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4379 this->extendee().data(), this->extendee().length(), 4320 this->extendee().data(), this->extendee().length(),
4380 ::google::protobuf::internal::WireFormat::PARSE, 4321 ::google::protobuf::internal::WireFormat::PARSE,
4381 "google.protobuf.FieldDescriptorProto.extendee"); 4322 "google.protobuf.FieldDescriptorProto.extendee");
4382 } else { 4323 } else {
4383 goto handle_unusual; 4324 goto handle_unusual;
4384 } 4325 }
4385 if (input->ExpectTag(24)) goto parse_number;
4386 break; 4326 break;
4387 } 4327 }
4388 4328
4389 // optional int32 number = 3; 4329 // optional int32 number = 3;
4390 case 3: { 4330 case 3: {
4391 if (tag == 24) { 4331 if (tag == 24u) {
4392 parse_number: 4332 set_has_number();
4393 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 4333 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4394 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>( 4334 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
4395 input, &number_))); 4335 input, &number_)));
4396 set_has_number();
4397 } else { 4336 } else {
4398 goto handle_unusual; 4337 goto handle_unusual;
4399 } 4338 }
4400 if (input->ExpectTag(32)) goto parse_label;
4401 break; 4339 break;
4402 } 4340 }
4403 4341
4404 // optional .google.protobuf.FieldDescriptorProto.Label label = 4; 4342 // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
4405 case 4: { 4343 case 4: {
4406 if (tag == 32) { 4344 if (tag == 32u) {
4407 parse_label:
4408 int value; 4345 int value;
4409 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 4346 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4410 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM> ( 4347 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM> (
4411 input, &value))); 4348 input, &value)));
4412 if (::google::protobuf::FieldDescriptorProto_Label_IsValid(value)) { 4349 if (::google::protobuf::FieldDescriptorProto_Label_IsValid(value)) {
4413 set_label(static_cast< ::google::protobuf::FieldDescriptorProto_Labe l >(value)); 4350 set_label(static_cast< ::google::protobuf::FieldDescriptorProto_Labe l >(value));
4414 } else { 4351 } else {
4415 mutable_unknown_fields()->AddVarint(4, value); 4352 mutable_unknown_fields()->AddVarint(4, value);
4416 } 4353 }
4417 } else { 4354 } else {
4418 goto handle_unusual; 4355 goto handle_unusual;
4419 } 4356 }
4420 if (input->ExpectTag(40)) goto parse_type;
4421 break; 4357 break;
4422 } 4358 }
4423 4359
4424 // optional .google.protobuf.FieldDescriptorProto.Type type = 5; 4360 // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
4425 case 5: { 4361 case 5: {
4426 if (tag == 40) { 4362 if (tag == 40u) {
4427 parse_type:
4428 int value; 4363 int value;
4429 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 4364 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4430 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM> ( 4365 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM> (
4431 input, &value))); 4366 input, &value)));
4432 if (::google::protobuf::FieldDescriptorProto_Type_IsValid(value)) { 4367 if (::google::protobuf::FieldDescriptorProto_Type_IsValid(value)) {
4433 set_type(static_cast< ::google::protobuf::FieldDescriptorProto_Type >(value)); 4368 set_type(static_cast< ::google::protobuf::FieldDescriptorProto_Type >(value));
4434 } else { 4369 } else {
4435 mutable_unknown_fields()->AddVarint(5, value); 4370 mutable_unknown_fields()->AddVarint(5, value);
4436 } 4371 }
4437 } else { 4372 } else {
4438 goto handle_unusual; 4373 goto handle_unusual;
4439 } 4374 }
4440 if (input->ExpectTag(50)) goto parse_type_name;
4441 break; 4375 break;
4442 } 4376 }
4443 4377
4444 // optional string type_name = 6; 4378 // optional string type_name = 6;
4445 case 6: { 4379 case 6: {
4446 if (tag == 50) { 4380 if (tag == 50u) {
4447 parse_type_name:
4448 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 4381 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4449 input, this->mutable_type_name())); 4382 input, this->mutable_type_name()));
4450 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 4383 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4451 this->type_name().data(), this->type_name().length(), 4384 this->type_name().data(), this->type_name().length(),
4452 ::google::protobuf::internal::WireFormat::PARSE, 4385 ::google::protobuf::internal::WireFormat::PARSE,
4453 "google.protobuf.FieldDescriptorProto.type_name"); 4386 "google.protobuf.FieldDescriptorProto.type_name");
4454 } else { 4387 } else {
4455 goto handle_unusual; 4388 goto handle_unusual;
4456 } 4389 }
4457 if (input->ExpectTag(58)) goto parse_default_value;
4458 break; 4390 break;
4459 } 4391 }
4460 4392
4461 // optional string default_value = 7; 4393 // optional string default_value = 7;
4462 case 7: { 4394 case 7: {
4463 if (tag == 58) { 4395 if (tag == 58u) {
4464 parse_default_value:
4465 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 4396 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4466 input, this->mutable_default_value())); 4397 input, this->mutable_default_value()));
4467 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 4398 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4468 this->default_value().data(), this->default_value().length(), 4399 this->default_value().data(), this->default_value().length(),
4469 ::google::protobuf::internal::WireFormat::PARSE, 4400 ::google::protobuf::internal::WireFormat::PARSE,
4470 "google.protobuf.FieldDescriptorProto.default_value"); 4401 "google.protobuf.FieldDescriptorProto.default_value");
4471 } else { 4402 } else {
4472 goto handle_unusual; 4403 goto handle_unusual;
4473 } 4404 }
4474 if (input->ExpectTag(66)) goto parse_options;
4475 break; 4405 break;
4476 } 4406 }
4477 4407
4478 // optional .google.protobuf.FieldOptions options = 8; 4408 // optional .google.protobuf.FieldOptions options = 8;
4479 case 8: { 4409 case 8: {
4480 if (tag == 66) { 4410 if (tag == 66u) {
4481 parse_options:
4482 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual ( 4411 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual (
4483 input, mutable_options())); 4412 input, mutable_options()));
4484 } else { 4413 } else {
4485 goto handle_unusual; 4414 goto handle_unusual;
4486 } 4415 }
4487 if (input->ExpectTag(72)) goto parse_oneof_index;
4488 break; 4416 break;
4489 } 4417 }
4490 4418
4491 // optional int32 oneof_index = 9; 4419 // optional int32 oneof_index = 9;
4492 case 9: { 4420 case 9: {
4493 if (tag == 72) { 4421 if (tag == 72u) {
4494 parse_oneof_index: 4422 set_has_oneof_index();
4495 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 4423 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4496 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>( 4424 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
4497 input, &oneof_index_))); 4425 input, &oneof_index_)));
4498 set_has_oneof_index();
4499 } else { 4426 } else {
4500 goto handle_unusual; 4427 goto handle_unusual;
4501 } 4428 }
4502 if (input->ExpectTag(82)) goto parse_json_name;
4503 break; 4429 break;
4504 } 4430 }
4505 4431
4506 // optional string json_name = 10; 4432 // optional string json_name = 10;
4507 case 10: { 4433 case 10: {
4508 if (tag == 82) { 4434 if (tag == 82u) {
4509 parse_json_name:
4510 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 4435 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4511 input, this->mutable_json_name())); 4436 input, this->mutable_json_name()));
4512 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 4437 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4513 this->json_name().data(), this->json_name().length(), 4438 this->json_name().data(), this->json_name().length(),
4514 ::google::protobuf::internal::WireFormat::PARSE, 4439 ::google::protobuf::internal::WireFormat::PARSE,
4515 "google.protobuf.FieldDescriptorProto.json_name"); 4440 "google.protobuf.FieldDescriptorProto.json_name");
4516 } else { 4441 } else {
4517 goto handle_unusual; 4442 goto handle_unusual;
4518 } 4443 }
4519 if (input->ExpectAtEnd()) goto success;
4520 break; 4444 break;
4521 } 4445 }
4522 4446
4523 default: { 4447 default: {
4524 handle_unusual: 4448 handle_unusual:
4525 if (tag == 0 || 4449 if (tag == 0 ||
4526 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 4450 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4527 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 4451 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
4528 goto success; 4452 goto success;
4529 } 4453 }
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
4623 10, this->json_name(), output); 4547 10, this->json_name(), output);
4624 } 4548 }
4625 4549
4626 if (_internal_metadata_.have_unknown_fields()) { 4550 if (_internal_metadata_.have_unknown_fields()) {
4627 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 4551 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4628 unknown_fields(), output); 4552 unknown_fields(), output);
4629 } 4553 }
4630 // @@protoc_insertion_point(serialize_end:google.protobuf.FieldDescriptorProto ) 4554 // @@protoc_insertion_point(serialize_end:google.protobuf.FieldDescriptorProto )
4631 } 4555 }
4632 4556
4633 ::google::protobuf::uint8* FieldDescriptorProto::SerializeWithCachedSizesToArray ( 4557 ::google::protobuf::uint8* FieldDescriptorProto::InternalSerializeWithCachedSize sToArray(
4634 ::google::protobuf::uint8* target) const { 4558 bool deterministic, ::google::protobuf::uint8* target) const {
4559 (void)deterministic; // Unused
4635 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldDesc riptorProto) 4560 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldDesc riptorProto)
4636 // optional string name = 1; 4561 // optional string name = 1;
4637 if (has_name()) { 4562 if (has_name()) {
4638 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 4563 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4639 this->name().data(), this->name().length(), 4564 this->name().data(), this->name().length(),
4640 ::google::protobuf::internal::WireFormat::SERIALIZE, 4565 ::google::protobuf::internal::WireFormat::SERIALIZE,
4641 "google.protobuf.FieldDescriptorProto.name"); 4566 "google.protobuf.FieldDescriptorProto.name");
4642 target = 4567 target =
4643 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 4568 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4644 1, this->name(), target); 4569 1, this->name(), target);
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
4690 ::google::protobuf::internal::WireFormat::SERIALIZE, 4615 ::google::protobuf::internal::WireFormat::SERIALIZE,
4691 "google.protobuf.FieldDescriptorProto.default_value"); 4616 "google.protobuf.FieldDescriptorProto.default_value");
4692 target = 4617 target =
4693 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 4618 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4694 7, this->default_value(), target); 4619 7, this->default_value(), target);
4695 } 4620 }
4696 4621
4697 // optional .google.protobuf.FieldOptions options = 8; 4622 // optional .google.protobuf.FieldOptions options = 8;
4698 if (has_options()) { 4623 if (has_options()) {
4699 target = ::google::protobuf::internal::WireFormatLite:: 4624 target = ::google::protobuf::internal::WireFormatLite::
4700 WriteMessageNoVirtualToArray( 4625 InternalWriteMessageNoVirtualToArray(
4701 8, *this->options_, target); 4626 8, *this->options_, false, target);
4702 } 4627 }
4703 4628
4704 // optional int32 oneof_index = 9; 4629 // optional int32 oneof_index = 9;
4705 if (has_oneof_index()) { 4630 if (has_oneof_index()) {
4706 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->oneof_index(), target); 4631 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->oneof_index(), target);
4707 } 4632 }
4708 4633
4709 // optional string json_name = 10; 4634 // optional string json_name = 10;
4710 if (has_json_name()) { 4635 if (has_json_name()) {
4711 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 4636 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4712 this->json_name().data(), this->json_name().length(), 4637 this->json_name().data(), this->json_name().length(),
4713 ::google::protobuf::internal::WireFormat::SERIALIZE, 4638 ::google::protobuf::internal::WireFormat::SERIALIZE,
4714 "google.protobuf.FieldDescriptorProto.json_name"); 4639 "google.protobuf.FieldDescriptorProto.json_name");
4715 target = 4640 target =
4716 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 4641 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4717 10, this->json_name(), target); 4642 10, this->json_name(), target);
4718 } 4643 }
4719 4644
4720 if (_internal_metadata_.have_unknown_fields()) { 4645 if (_internal_metadata_.have_unknown_fields()) {
4721 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 4646 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
4722 unknown_fields(), target); 4647 unknown_fields(), target);
4723 } 4648 }
4724 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FieldDescri ptorProto) 4649 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FieldDescri ptorProto)
4725 return target; 4650 return target;
4726 } 4651 }
4727 4652
4728 int FieldDescriptorProto::ByteSize() const { 4653 size_t FieldDescriptorProto::ByteSizeLong() const {
4729 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FieldDescrip torProto) 4654 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FieldDescrip torProto)
4730 int total_size = 0; 4655 size_t total_size = 0;
4731 4656
4657 if (_internal_metadata_.have_unknown_fields()) {
4658 total_size +=
4659 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4660 unknown_fields());
4661 }
4732 if (_has_bits_[0 / 32] & 255u) { 4662 if (_has_bits_[0 / 32] & 255u) {
4733 // optional string name = 1; 4663 // optional string name = 1;
4734 if (has_name()) { 4664 if (has_name()) {
4735 total_size += 1 + 4665 total_size += 1 +
4736 ::google::protobuf::internal::WireFormatLite::StringSize( 4666 ::google::protobuf::internal::WireFormatLite::StringSize(
4737 this->name()); 4667 this->name());
4738 } 4668 }
4739 4669
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; 4670 // optional string type_name = 6;
4760 if (has_type_name()) { 4671 if (has_type_name()) {
4761 total_size += 1 + 4672 total_size += 1 +
4762 ::google::protobuf::internal::WireFormatLite::StringSize( 4673 ::google::protobuf::internal::WireFormatLite::StringSize(
4763 this->type_name()); 4674 this->type_name());
4764 } 4675 }
4765 4676
4766 // optional string extendee = 2; 4677 // optional string extendee = 2;
4767 if (has_extendee()) { 4678 if (has_extendee()) {
4768 total_size += 1 + 4679 total_size += 1 +
4769 ::google::protobuf::internal::WireFormatLite::StringSize( 4680 ::google::protobuf::internal::WireFormatLite::StringSize(
4770 this->extendee()); 4681 this->extendee());
4771 } 4682 }
4772 4683
4773 // optional string default_value = 7; 4684 // optional string default_value = 7;
4774 if (has_default_value()) { 4685 if (has_default_value()) {
4775 total_size += 1 + 4686 total_size += 1 +
4776 ::google::protobuf::internal::WireFormatLite::StringSize( 4687 ::google::protobuf::internal::WireFormatLite::StringSize(
4777 this->default_value()); 4688 this->default_value());
4778 } 4689 }
4779 4690
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; 4691 // optional string json_name = 10;
4790 if (has_json_name()) { 4692 if (has_json_name()) {
4791 total_size += 1 + 4693 total_size += 1 +
4792 ::google::protobuf::internal::WireFormatLite::StringSize( 4694 ::google::protobuf::internal::WireFormatLite::StringSize(
4793 this->json_name()); 4695 this->json_name());
4794 } 4696 }
4795 4697
4796 // optional .google.protobuf.FieldOptions options = 8; 4698 // optional .google.protobuf.FieldOptions options = 8;
4797 if (has_options()) { 4699 if (has_options()) {
4798 total_size += 1 + 4700 total_size += 1 +
4799 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( 4701 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4800 *this->options_); 4702 *this->options_);
4801 } 4703 }
4802 4704
4705 // optional int32 number = 3;
4706 if (has_number()) {
4707 total_size += 1 +
4708 ::google::protobuf::internal::WireFormatLite::Int32Size(
4709 this->number());
4710 }
4711
4712 // optional int32 oneof_index = 9;
4713 if (has_oneof_index()) {
4714 total_size += 1 +
4715 ::google::protobuf::internal::WireFormatLite::Int32Size(
4716 this->oneof_index());
4717 }
4718
4803 } 4719 }
4804 if (_internal_metadata_.have_unknown_fields()) { 4720 if (_has_bits_[8 / 32] & 768u) {
4805 total_size += 4721 // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
4806 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( 4722 if (has_label()) {
4807 unknown_fields()); 4723 total_size += 1 +
4724 ::google::protobuf::internal::WireFormatLite::EnumSize(this->label());
4725 }
4726
4727 // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
4728 if (has_type()) {
4729 total_size += 1 +
4730 ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
4731 }
4732
4808 } 4733 }
4734 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4809 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 4735 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4810 _cached_size_ = total_size; 4736 _cached_size_ = cached_size;
4811 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 4737 GOOGLE_SAFE_CONCURRENT_WRITES_END();
4812 return total_size; 4738 return total_size;
4813 } 4739 }
4814 4740
4815 void FieldDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { 4741 void FieldDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
4816 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FieldDe scriptorProto) 4742 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FieldDe scriptorProto)
4817 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 4743 GOOGLE_DCHECK_NE(&from, this);
4818 const FieldDescriptorProto* source = 4744 const FieldDescriptorProto* source =
4819 ::google::protobuf::internal::DynamicCastToGenerated<const FieldDescriptor Proto>( 4745 ::google::protobuf::internal::DynamicCastToGenerated<const FieldDescriptor Proto>(
4820 &from); 4746 &from);
4821 if (source == NULL) { 4747 if (source == NULL) {
4822 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.F ieldDescriptorProto) 4748 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.F ieldDescriptorProto)
4823 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 4749 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4824 } else { 4750 } else {
4825 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.FieldDescriptorProto) 4751 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.FieldDescriptorProto)
4826 MergeFrom(*source); 4752 MergeFrom(*source);
4827 } 4753 }
4828 } 4754 }
4829 4755
4830 void FieldDescriptorProto::MergeFrom(const FieldDescriptorProto& from) { 4756 void FieldDescriptorProto::MergeFrom(const FieldDescriptorProto& from) {
4831 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Fiel dDescriptorProto) 4757 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Fiel dDescriptorProto)
4832 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 4758 GOOGLE_DCHECK_NE(&from, this);
4833 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { 4759 _internal_metadata_.MergeFrom(from._internal_metadata_);
4760 if (from._has_bits_[0 / 32] & 255u) {
4834 if (from.has_name()) { 4761 if (from.has_name()) {
4835 set_has_name(); 4762 set_has_name();
4836 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), from.name_); 4763 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), from.name_);
4837 } 4764 }
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()) { 4765 if (from.has_type_name()) {
4848 set_has_type_name(); 4766 set_has_type_name();
4849 type_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyString AlreadyInited(), from.type_name_); 4767 type_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyString AlreadyInited(), from.type_name_);
4850 } 4768 }
4851 if (from.has_extendee()) { 4769 if (from.has_extendee()) {
4852 set_has_extendee(); 4770 set_has_extendee();
4853 extendee_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringA lreadyInited(), from.extendee_); 4771 extendee_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringA lreadyInited(), from.extendee_);
4854 } 4772 }
4855 if (from.has_default_value()) { 4773 if (from.has_default_value()) {
4856 set_has_default_value(); 4774 set_has_default_value();
4857 default_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptySt ringAlreadyInited(), from.default_value_); 4775 default_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptySt ringAlreadyInited(), from.default_value_);
4858 } 4776 }
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()) { 4777 if (from.has_json_name()) {
4865 set_has_json_name(); 4778 set_has_json_name();
4866 json_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyString AlreadyInited(), from.json_name_); 4779 json_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyString AlreadyInited(), from.json_name_);
4867 } 4780 }
4868 if (from.has_options()) { 4781 if (from.has_options()) {
4869 mutable_options()->::google::protobuf::FieldOptions::MergeFrom(from.option s()); 4782 mutable_options()->::google::protobuf::FieldOptions::MergeFrom(from.option s());
4870 } 4783 }
4784 if (from.has_number()) {
4785 set_number(from.number());
4786 }
4787 if (from.has_oneof_index()) {
4788 set_oneof_index(from.oneof_index());
4789 }
4871 } 4790 }
4872 if (from._internal_metadata_.have_unknown_fields()) { 4791 if (from._has_bits_[8 / 32] & 768u) {
4873 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); 4792 if (from.has_label()) {
4793 set_label(from.label());
4794 }
4795 if (from.has_type()) {
4796 set_type(from.type());
4797 }
4874 } 4798 }
4875 } 4799 }
4876 4800
4877 void FieldDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { 4801 void FieldDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
4878 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FieldDes criptorProto) 4802 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FieldDes criptorProto)
4879 if (&from == this) return; 4803 if (&from == this) return;
4880 Clear(); 4804 Clear();
4881 MergeFrom(from); 4805 MergeFrom(from);
4882 } 4806 }
4883 4807
4884 void FieldDescriptorProto::CopyFrom(const FieldDescriptorProto& from) { 4808 void FieldDescriptorProto::CopyFrom(const FieldDescriptorProto& from) {
4885 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Field DescriptorProto) 4809 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Field DescriptorProto)
4886 if (&from == this) return; 4810 if (&from == this) return;
4887 Clear(); 4811 Clear();
4888 MergeFrom(from); 4812 MergeFrom(from);
4889 } 4813 }
4890 4814
4891 bool FieldDescriptorProto::IsInitialized() const { 4815 bool FieldDescriptorProto::IsInitialized() const {
4892
4893 if (has_options()) { 4816 if (has_options()) {
4894 if (!this->options_->IsInitialized()) return false; 4817 if (!this->options_->IsInitialized()) return false;
4895 } 4818 }
4896 return true; 4819 return true;
4897 } 4820 }
4898 4821
4899 void FieldDescriptorProto::Swap(FieldDescriptorProto* other) { 4822 void FieldDescriptorProto::Swap(FieldDescriptorProto* other) {
4900 if (other == this) return; 4823 if (other == this) return;
4901 InternalSwap(other); 4824 InternalSwap(other);
4902 } 4825 }
4903 void FieldDescriptorProto::InternalSwap(FieldDescriptorProto* other) { 4826 void FieldDescriptorProto::InternalSwap(FieldDescriptorProto* other) {
4904 name_.Swap(&other->name_); 4827 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_); 4828 type_name_.Swap(&other->type_name_);
4909 extendee_.Swap(&other->extendee_); 4829 extendee_.Swap(&other->extendee_);
4910 default_value_.Swap(&other->default_value_); 4830 default_value_.Swap(&other->default_value_);
4911 std::swap(oneof_index_, other->oneof_index_);
4912 json_name_.Swap(&other->json_name_); 4831 json_name_.Swap(&other->json_name_);
4913 std::swap(options_, other->options_); 4832 std::swap(options_, other->options_);
4833 std::swap(number_, other->number_);
4834 std::swap(oneof_index_, other->oneof_index_);
4835 std::swap(label_, other->label_);
4836 std::swap(type_, other->type_);
4914 std::swap(_has_bits_[0], other->_has_bits_[0]); 4837 std::swap(_has_bits_[0], other->_has_bits_[0]);
4915 _internal_metadata_.Swap(&other->_internal_metadata_); 4838 _internal_metadata_.Swap(&other->_internal_metadata_);
4916 std::swap(_cached_size_, other->_cached_size_); 4839 std::swap(_cached_size_, other->_cached_size_);
4917 } 4840 }
4918 4841
4919 ::google::protobuf::Metadata FieldDescriptorProto::GetMetadata() const { 4842 ::google::protobuf::Metadata FieldDescriptorProto::GetMetadata() const {
4920 protobuf_AssignDescriptorsOnce(); 4843 protobuf_AssignDescriptorsOnce();
4921 ::google::protobuf::Metadata metadata; 4844 return file_level_metadata[5];
4922 metadata.descriptor = FieldDescriptorProto_descriptor_;
4923 metadata.reflection = FieldDescriptorProto_reflection_;
4924 return metadata;
4925 } 4845 }
4926 4846
4927 #if PROTOBUF_INLINE_NOT_IN_HEADERS 4847 #if PROTOBUF_INLINE_NOT_IN_HEADERS
4928 // FieldDescriptorProto 4848 // FieldDescriptorProto
4929 4849
4930 // optional string name = 1; 4850 // optional string name = 1;
4931 bool FieldDescriptorProto::has_name() const { 4851 bool FieldDescriptorProto::has_name() const {
4932 return (_has_bits_[0] & 0x00000001u) != 0; 4852 return (_has_bits_[0] & 0x00000001u) != 0;
4933 } 4853 }
4934 void FieldDescriptorProto::set_has_name() { 4854 void FieldDescriptorProto::set_has_name() {
4935 _has_bits_[0] |= 0x00000001u; 4855 _has_bits_[0] |= 0x00000001u;
4936 } 4856 }
4937 void FieldDescriptorProto::clear_has_name() { 4857 void FieldDescriptorProto::clear_has_name() {
4938 _has_bits_[0] &= ~0x00000001u; 4858 _has_bits_[0] &= ~0x00000001u;
4939 } 4859 }
4940 void FieldDescriptorProto::clear_name() { 4860 void FieldDescriptorProto::clear_name() {
4941 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 4861 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
4942 clear_has_name(); 4862 clear_has_name();
4943 } 4863 }
4944 const ::std::string& FieldDescriptorProto::name() const { 4864 const ::std::string& FieldDescriptorProto::name() const {
4945 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.nam e) 4865 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.nam e)
4946 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited()); 4866 return name_.GetNoArena();
4947 } 4867 }
4948 void FieldDescriptorProto::set_name(const ::std::string& value) { 4868 void FieldDescriptorProto::set_name(const ::std::string& value) {
4949 set_has_name(); 4869 set_has_name();
4950 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 4870 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4951 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.nam e) 4871 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.nam e)
4952 } 4872 }
4953 void FieldDescriptorProto::set_name(const char* value) { 4873 void FieldDescriptorProto::set_name(const char* value) {
4954 set_has_name(); 4874 set_has_name();
4955 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 4875 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4956 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProt o.name) 4876 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProt o.name)
4957 } 4877 }
4958 void FieldDescriptorProto::set_name(const char* value, size_t size) { 4878 void FieldDescriptorProto::set_name(const char* value, size_t size) {
4959 set_has_name(); 4879 set_has_name();
4960 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 4880 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4961 ::std::string(reinterpret_cast<const char*>(value), size)); 4881 ::std::string(reinterpret_cast<const char*>(value), size));
4962 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorP roto.name) 4882 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorP roto.name)
4963 } 4883 }
4964 ::std::string* FieldDescriptorProto::mutable_name() { 4884 ::std::string* FieldDescriptorProto::mutable_name() {
4965 set_has_name(); 4885 set_has_name();
4966 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto .name) 4886 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto .name)
4967 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 4887 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
4968 } 4888 }
4969 ::std::string* FieldDescriptorProto::release_name() { 4889 ::std::string* FieldDescriptorProto::release_name() {
4970 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto .name) 4890 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto .name)
4971 clear_has_name(); 4891 clear_has_name();
4972 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 4892 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
4973 } 4893 }
4974 void FieldDescriptorProto::set_allocated_name(::std::string* name) { 4894 void FieldDescriptorProto::set_allocated_name(::std::string* name) {
4975 if (name != NULL) { 4895 if (name != NULL) {
4976 set_has_name(); 4896 set_has_name();
4977 } else { 4897 } else {
4978 clear_has_name(); 4898 clear_has_name();
4979 } 4899 }
4980 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name); 4900 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name);
4981 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto rProto.name) 4901 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto rProto.name)
4982 } 4902 }
4983 4903
4984 // optional int32 number = 3; 4904 // optional int32 number = 3;
4985 bool FieldDescriptorProto::has_number() const { 4905 bool FieldDescriptorProto::has_number() const {
4986 return (_has_bits_[0] & 0x00000002u) != 0; 4906 return (_has_bits_[0] & 0x00000040u) != 0;
4987 } 4907 }
4988 void FieldDescriptorProto::set_has_number() { 4908 void FieldDescriptorProto::set_has_number() {
4989 _has_bits_[0] |= 0x00000002u; 4909 _has_bits_[0] |= 0x00000040u;
4990 } 4910 }
4991 void FieldDescriptorProto::clear_has_number() { 4911 void FieldDescriptorProto::clear_has_number() {
4992 _has_bits_[0] &= ~0x00000002u; 4912 _has_bits_[0] &= ~0x00000040u;
4993 } 4913 }
4994 void FieldDescriptorProto::clear_number() { 4914 void FieldDescriptorProto::clear_number() {
4995 number_ = 0; 4915 number_ = 0;
4996 clear_has_number(); 4916 clear_has_number();
4997 } 4917 }
4998 ::google::protobuf::int32 FieldDescriptorProto::number() const { 4918 ::google::protobuf::int32 FieldDescriptorProto::number() const {
4999 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.num ber) 4919 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.num ber)
5000 return number_; 4920 return number_;
5001 } 4921 }
5002 void FieldDescriptorProto::set_number(::google::protobuf::int32 value) { 4922 void FieldDescriptorProto::set_number(::google::protobuf::int32 value) {
5003 set_has_number(); 4923 set_has_number();
5004 number_ = value; 4924 number_ = value;
5005 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.num ber) 4925 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.num ber)
5006 } 4926 }
5007 4927
5008 // optional .google.protobuf.FieldDescriptorProto.Label label = 4; 4928 // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
5009 bool FieldDescriptorProto::has_label() const { 4929 bool FieldDescriptorProto::has_label() const {
5010 return (_has_bits_[0] & 0x00000004u) != 0; 4930 return (_has_bits_[0] & 0x00000100u) != 0;
5011 } 4931 }
5012 void FieldDescriptorProto::set_has_label() { 4932 void FieldDescriptorProto::set_has_label() {
5013 _has_bits_[0] |= 0x00000004u; 4933 _has_bits_[0] |= 0x00000100u;
5014 } 4934 }
5015 void FieldDescriptorProto::clear_has_label() { 4935 void FieldDescriptorProto::clear_has_label() {
5016 _has_bits_[0] &= ~0x00000004u; 4936 _has_bits_[0] &= ~0x00000100u;
5017 } 4937 }
5018 void FieldDescriptorProto::clear_label() { 4938 void FieldDescriptorProto::clear_label() {
5019 label_ = 1; 4939 label_ = 1;
5020 clear_has_label(); 4940 clear_has_label();
5021 } 4941 }
5022 ::google::protobuf::FieldDescriptorProto_Label FieldDescriptorProto::label() co nst { 4942 ::google::protobuf::FieldDescriptorProto_Label FieldDescriptorProto::label() con st {
5023 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.lab el) 4943 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.lab el)
5024 return static_cast< ::google::protobuf::FieldDescriptorProto_Label >(label_); 4944 return static_cast< ::google::protobuf::FieldDescriptorProto_Label >(label_);
5025 } 4945 }
5026 void FieldDescriptorProto::set_label(::google::protobuf::FieldDescriptorProto_L abel value) { 4946 void FieldDescriptorProto::set_label(::google::protobuf::FieldDescriptorProto_La bel value) {
5027 assert(::google::protobuf::FieldDescriptorProto_Label_IsValid(value)); 4947 assert(::google::protobuf::FieldDescriptorProto_Label_IsValid(value));
5028 set_has_label(); 4948 set_has_label();
5029 label_ = value; 4949 label_ = value;
5030 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.lab el) 4950 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.lab el)
5031 } 4951 }
5032 4952
5033 // optional .google.protobuf.FieldDescriptorProto.Type type = 5; 4953 // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
5034 bool FieldDescriptorProto::has_type() const { 4954 bool FieldDescriptorProto::has_type() const {
5035 return (_has_bits_[0] & 0x00000008u) != 0; 4955 return (_has_bits_[0] & 0x00000200u) != 0;
5036 } 4956 }
5037 void FieldDescriptorProto::set_has_type() { 4957 void FieldDescriptorProto::set_has_type() {
5038 _has_bits_[0] |= 0x00000008u; 4958 _has_bits_[0] |= 0x00000200u;
5039 } 4959 }
5040 void FieldDescriptorProto::clear_has_type() { 4960 void FieldDescriptorProto::clear_has_type() {
5041 _has_bits_[0] &= ~0x00000008u; 4961 _has_bits_[0] &= ~0x00000200u;
5042 } 4962 }
5043 void FieldDescriptorProto::clear_type() { 4963 void FieldDescriptorProto::clear_type() {
5044 type_ = 1; 4964 type_ = 1;
5045 clear_has_type(); 4965 clear_has_type();
5046 } 4966 }
5047 ::google::protobuf::FieldDescriptorProto_Type FieldDescriptorProto::type() cons t { 4967 ::google::protobuf::FieldDescriptorProto_Type FieldDescriptorProto::type() const {
5048 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.typ e) 4968 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.typ e)
5049 return static_cast< ::google::protobuf::FieldDescriptorProto_Type >(type_); 4969 return static_cast< ::google::protobuf::FieldDescriptorProto_Type >(type_);
5050 } 4970 }
5051 void FieldDescriptorProto::set_type(::google::protobuf::FieldDescriptorProto_Ty pe value) { 4971 void FieldDescriptorProto::set_type(::google::protobuf::FieldDescriptorProto_Typ e value) {
5052 assert(::google::protobuf::FieldDescriptorProto_Type_IsValid(value)); 4972 assert(::google::protobuf::FieldDescriptorProto_Type_IsValid(value));
5053 set_has_type(); 4973 set_has_type();
5054 type_ = value; 4974 type_ = value;
5055 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.typ e) 4975 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.typ e)
5056 } 4976 }
5057 4977
5058 // optional string type_name = 6; 4978 // optional string type_name = 6;
5059 bool FieldDescriptorProto::has_type_name() const { 4979 bool FieldDescriptorProto::has_type_name() const {
5060 return (_has_bits_[0] & 0x00000010u) != 0; 4980 return (_has_bits_[0] & 0x00000002u) != 0;
5061 } 4981 }
5062 void FieldDescriptorProto::set_has_type_name() { 4982 void FieldDescriptorProto::set_has_type_name() {
5063 _has_bits_[0] |= 0x00000010u; 4983 _has_bits_[0] |= 0x00000002u;
5064 } 4984 }
5065 void FieldDescriptorProto::clear_has_type_name() { 4985 void FieldDescriptorProto::clear_has_type_name() {
5066 _has_bits_[0] &= ~0x00000010u; 4986 _has_bits_[0] &= ~0x00000002u;
5067 } 4987 }
5068 void FieldDescriptorProto::clear_type_name() { 4988 void FieldDescriptorProto::clear_type_name() {
5069 type_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited()); 4989 type_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited());
5070 clear_has_type_name(); 4990 clear_has_type_name();
5071 } 4991 }
5072 const ::std::string& FieldDescriptorProto::type_name() const { 4992 const ::std::string& FieldDescriptorProto::type_name() const {
5073 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.typ e_name) 4993 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.typ e_name)
5074 return type_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited()); 4994 return type_name_.GetNoArena();
5075 } 4995 }
5076 void FieldDescriptorProto::set_type_name(const ::std::string& value) { 4996 void FieldDescriptorProto::set_type_name(const ::std::string& value) {
5077 set_has_type_name(); 4997 set_has_type_name();
5078 type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), value); 4998 type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), value);
5079 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.typ e_name) 4999 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.typ e_name)
5080 } 5000 }
5081 void FieldDescriptorProto::set_type_name(const char* value) { 5001 void FieldDescriptorProto::set_type_name(const char* value) {
5082 set_has_type_name(); 5002 set_has_type_name();
5083 type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), ::std::string(value)); 5003 type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), ::std::string(value));
5084 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProt o.type_name) 5004 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProt o.type_name)
5085 } 5005 }
5086 void FieldDescriptorProto::set_type_name(const char* value, size_t size) { 5006 void FieldDescriptorProto::set_type_name(const char* value, size_t size) {
5087 set_has_type_name(); 5007 set_has_type_name();
5088 type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), 5008 type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(),
5089 ::std::string(reinterpret_cast<const char*>(value), size)); 5009 ::std::string(reinterpret_cast<const char*>(value), size));
5090 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorP roto.type_name) 5010 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorP roto.type_name)
5091 } 5011 }
5092 ::std::string* FieldDescriptorProto::mutable_type_name() { 5012 ::std::string* FieldDescriptorProto::mutable_type_name() {
5093 set_has_type_name(); 5013 set_has_type_name();
5094 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto .type_name) 5014 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto .type_name)
5095 return type_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited()); 5015 return type_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited());
5096 } 5016 }
5097 ::std::string* FieldDescriptorProto::release_type_name() { 5017 ::std::string* FieldDescriptorProto::release_type_name() {
5098 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto .type_name) 5018 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto .type_name)
5099 clear_has_type_name(); 5019 clear_has_type_name();
5100 return type_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited()); 5020 return type_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited());
5101 } 5021 }
5102 void FieldDescriptorProto::set_allocated_type_name(::std::string* type_name) { 5022 void FieldDescriptorProto::set_allocated_type_name(::std::string* type_name) {
5103 if (type_name != NULL) { 5023 if (type_name != NULL) {
5104 set_has_type_name(); 5024 set_has_type_name();
5105 } else { 5025 } else {
5106 clear_has_type_name(); 5026 clear_has_type_name();
5107 } 5027 }
5108 type_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited(), type_name); 5028 type_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited(), type_name);
5109 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto rProto.type_name) 5029 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto rProto.type_name)
5110 } 5030 }
5111 5031
5112 // optional string extendee = 2; 5032 // optional string extendee = 2;
5113 bool FieldDescriptorProto::has_extendee() const { 5033 bool FieldDescriptorProto::has_extendee() const {
5114 return (_has_bits_[0] & 0x00000020u) != 0; 5034 return (_has_bits_[0] & 0x00000004u) != 0;
5115 } 5035 }
5116 void FieldDescriptorProto::set_has_extendee() { 5036 void FieldDescriptorProto::set_has_extendee() {
5117 _has_bits_[0] |= 0x00000020u; 5037 _has_bits_[0] |= 0x00000004u;
5118 } 5038 }
5119 void FieldDescriptorProto::clear_has_extendee() { 5039 void FieldDescriptorProto::clear_has_extendee() {
5120 _has_bits_[0] &= ~0x00000020u; 5040 _has_bits_[0] &= ~0x00000004u;
5121 } 5041 }
5122 void FieldDescriptorProto::clear_extendee() { 5042 void FieldDescriptorProto::clear_extendee() {
5123 extendee_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited()); 5043 extendee_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited());
5124 clear_has_extendee(); 5044 clear_has_extendee();
5125 } 5045 }
5126 const ::std::string& FieldDescriptorProto::extendee() const { 5046 const ::std::string& FieldDescriptorProto::extendee() const {
5127 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.ext endee) 5047 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.ext endee)
5128 return extendee_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 5048 return extendee_.GetNoArena();
5129 } 5049 }
5130 void FieldDescriptorProto::set_extendee(const ::std::string& value) { 5050 void FieldDescriptorProto::set_extendee(const ::std::string& value) {
5131 set_has_extendee(); 5051 set_has_extendee();
5132 extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d(), value); 5052 extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d(), value);
5133 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.ext endee) 5053 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.ext endee)
5134 } 5054 }
5135 void FieldDescriptorProto::set_extendee(const char* value) { 5055 void FieldDescriptorProto::set_extendee(const char* value) {
5136 set_has_extendee(); 5056 set_has_extendee();
5137 extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d(), ::std::string(value)); 5057 extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d(), ::std::string(value));
5138 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProt o.extendee) 5058 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProt o.extendee)
5139 } 5059 }
5140 void FieldDescriptorProto::set_extendee(const char* value, size_t size) { 5060 void FieldDescriptorProto::set_extendee(const char* value, size_t size) {
5141 set_has_extendee(); 5061 set_has_extendee();
5142 extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d(), 5062 extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d(),
5143 ::std::string(reinterpret_cast<const char*>(value), size)); 5063 ::std::string(reinterpret_cast<const char*>(value), size));
5144 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorP roto.extendee) 5064 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorP roto.extendee)
5145 } 5065 }
5146 ::std::string* FieldDescriptorProto::mutable_extendee() { 5066 ::std::string* FieldDescriptorProto::mutable_extendee() {
5147 set_has_extendee(); 5067 set_has_extendee();
5148 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto .extendee) 5068 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto .extendee)
5149 return extendee_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringA lreadyInited()); 5069 return extendee_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringA lreadyInited());
5150 } 5070 }
5151 ::std::string* FieldDescriptorProto::release_extendee() { 5071 ::std::string* FieldDescriptorProto::release_extendee() {
5152 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto .extendee) 5072 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto .extendee)
5153 clear_has_extendee(); 5073 clear_has_extendee();
5154 return extendee_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringA lreadyInited()); 5074 return extendee_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringA lreadyInited());
5155 } 5075 }
5156 void FieldDescriptorProto::set_allocated_extendee(::std::string* extendee) { 5076 void FieldDescriptorProto::set_allocated_extendee(::std::string* extendee) {
5157 if (extendee != NULL) { 5077 if (extendee != NULL) {
5158 set_has_extendee(); 5078 set_has_extendee();
5159 } else { 5079 } else {
5160 clear_has_extendee(); 5080 clear_has_extendee();
5161 } 5081 }
5162 extendee_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), extendee); 5082 extendee_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), extendee);
5163 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto rProto.extendee) 5083 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto rProto.extendee)
5164 } 5084 }
5165 5085
5166 // optional string default_value = 7; 5086 // optional string default_value = 7;
5167 bool FieldDescriptorProto::has_default_value() const { 5087 bool FieldDescriptorProto::has_default_value() const {
5168 return (_has_bits_[0] & 0x00000040u) != 0; 5088 return (_has_bits_[0] & 0x00000008u) != 0;
5169 } 5089 }
5170 void FieldDescriptorProto::set_has_default_value() { 5090 void FieldDescriptorProto::set_has_default_value() {
5171 _has_bits_[0] |= 0x00000040u; 5091 _has_bits_[0] |= 0x00000008u;
5172 } 5092 }
5173 void FieldDescriptorProto::clear_has_default_value() { 5093 void FieldDescriptorProto::clear_has_default_value() {
5174 _has_bits_[0] &= ~0x00000040u; 5094 _has_bits_[0] &= ~0x00000008u;
5175 } 5095 }
5176 void FieldDescriptorProto::clear_default_value() { 5096 void FieldDescriptorProto::clear_default_value() {
5177 default_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited()); 5097 default_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited());
5178 clear_has_default_value(); 5098 clear_has_default_value();
5179 } 5099 }
5180 const ::std::string& FieldDescriptorProto::default_value() const { 5100 const ::std::string& FieldDescriptorProto::default_value() const {
5181 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.def ault_value) 5101 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.def ault_value)
5182 return default_value_.GetNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited()); 5102 return default_value_.GetNoArena();
5183 } 5103 }
5184 void FieldDescriptorProto::set_default_value(const ::std::string& value) { 5104 void FieldDescriptorProto::set_default_value(const ::std::string& value) {
5185 set_has_default_value(); 5105 set_has_default_value();
5186 default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), value); 5106 default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), value);
5187 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.def ault_value) 5107 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.def ault_value)
5188 } 5108 }
5189 void FieldDescriptorProto::set_default_value(const char* value) { 5109 void FieldDescriptorProto::set_default_value(const char* value) {
5190 set_has_default_value(); 5110 set_has_default_value();
5191 default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), ::std::string(value)); 5111 default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), ::std::string(value));
5192 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProt o.default_value) 5112 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProt o.default_value)
5193 } 5113 }
5194 void FieldDescriptorProto::set_default_value(const char* value, size_t size) { 5114 void FieldDescriptorProto::set_default_value(const char* value, size_t size) {
5195 set_has_default_value(); 5115 set_has_default_value();
5196 default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), 5116 default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(),
5197 ::std::string(reinterpret_cast<const char*>(value), size)); 5117 ::std::string(reinterpret_cast<const char*>(value), size));
5198 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorP roto.default_value) 5118 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorP roto.default_value)
5199 } 5119 }
5200 ::std::string* FieldDescriptorProto::mutable_default_value() { 5120 ::std::string* FieldDescriptorProto::mutable_default_value() {
5201 set_has_default_value(); 5121 set_has_default_value();
5202 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto .default_value) 5122 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto .default_value)
5203 return default_value_.MutableNoArena(&::google::protobuf::internal::GetEmptySt ringAlreadyInited()); 5123 return default_value_.MutableNoArena(&::google::protobuf::internal::GetEmptySt ringAlreadyInited());
5204 } 5124 }
5205 ::std::string* FieldDescriptorProto::release_default_value() { 5125 ::std::string* FieldDescriptorProto::release_default_value() {
5206 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto .default_value) 5126 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto .default_value)
5207 clear_has_default_value(); 5127 clear_has_default_value();
5208 return default_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptySt ringAlreadyInited()); 5128 return default_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptySt ringAlreadyInited());
5209 } 5129 }
5210 void FieldDescriptorProto::set_allocated_default_value(::std::string* default_v alue) { 5130 void FieldDescriptorProto::set_allocated_default_value(::std::string* default_va lue) {
5211 if (default_value != NULL) { 5131 if (default_value != NULL) {
5212 set_has_default_value(); 5132 set_has_default_value();
5213 } else { 5133 } else {
5214 clear_has_default_value(); 5134 clear_has_default_value();
5215 } 5135 }
5216 default_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited(), default_value); 5136 default_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited(), default_value);
5217 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto rProto.default_value) 5137 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto rProto.default_value)
5218 } 5138 }
5219 5139
5220 // optional int32 oneof_index = 9; 5140 // optional int32 oneof_index = 9;
5221 bool FieldDescriptorProto::has_oneof_index() const { 5141 bool FieldDescriptorProto::has_oneof_index() const {
5222 return (_has_bits_[0] & 0x00000080u) != 0; 5142 return (_has_bits_[0] & 0x00000080u) != 0;
5223 } 5143 }
5224 void FieldDescriptorProto::set_has_oneof_index() { 5144 void FieldDescriptorProto::set_has_oneof_index() {
5225 _has_bits_[0] |= 0x00000080u; 5145 _has_bits_[0] |= 0x00000080u;
5226 } 5146 }
5227 void FieldDescriptorProto::clear_has_oneof_index() { 5147 void FieldDescriptorProto::clear_has_oneof_index() {
5228 _has_bits_[0] &= ~0x00000080u; 5148 _has_bits_[0] &= ~0x00000080u;
5229 } 5149 }
5230 void FieldDescriptorProto::clear_oneof_index() { 5150 void FieldDescriptorProto::clear_oneof_index() {
5231 oneof_index_ = 0; 5151 oneof_index_ = 0;
5232 clear_has_oneof_index(); 5152 clear_has_oneof_index();
5233 } 5153 }
5234 ::google::protobuf::int32 FieldDescriptorProto::oneof_index() const { 5154 ::google::protobuf::int32 FieldDescriptorProto::oneof_index() const {
5235 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.one of_index) 5155 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.one of_index)
5236 return oneof_index_; 5156 return oneof_index_;
5237 } 5157 }
5238 void FieldDescriptorProto::set_oneof_index(::google::protobuf::int32 value) { 5158 void FieldDescriptorProto::set_oneof_index(::google::protobuf::int32 value) {
5239 set_has_oneof_index(); 5159 set_has_oneof_index();
5240 oneof_index_ = value; 5160 oneof_index_ = value;
5241 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.one of_index) 5161 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.one of_index)
5242 } 5162 }
5243 5163
5244 // optional string json_name = 10; 5164 // optional string json_name = 10;
5245 bool FieldDescriptorProto::has_json_name() const { 5165 bool FieldDescriptorProto::has_json_name() const {
5246 return (_has_bits_[0] & 0x00000100u) != 0; 5166 return (_has_bits_[0] & 0x00000010u) != 0;
5247 } 5167 }
5248 void FieldDescriptorProto::set_has_json_name() { 5168 void FieldDescriptorProto::set_has_json_name() {
5249 _has_bits_[0] |= 0x00000100u; 5169 _has_bits_[0] |= 0x00000010u;
5250 } 5170 }
5251 void FieldDescriptorProto::clear_has_json_name() { 5171 void FieldDescriptorProto::clear_has_json_name() {
5252 _has_bits_[0] &= ~0x00000100u; 5172 _has_bits_[0] &= ~0x00000010u;
5253 } 5173 }
5254 void FieldDescriptorProto::clear_json_name() { 5174 void FieldDescriptorProto::clear_json_name() {
5255 json_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited()); 5175 json_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited());
5256 clear_has_json_name(); 5176 clear_has_json_name();
5257 } 5177 }
5258 const ::std::string& FieldDescriptorProto::json_name() const { 5178 const ::std::string& FieldDescriptorProto::json_name() const {
5259 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.jso n_name) 5179 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.jso n_name)
5260 return json_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited()); 5180 return json_name_.GetNoArena();
5261 } 5181 }
5262 void FieldDescriptorProto::set_json_name(const ::std::string& value) { 5182 void FieldDescriptorProto::set_json_name(const ::std::string& value) {
5263 set_has_json_name(); 5183 set_has_json_name();
5264 json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), value); 5184 json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), value);
5265 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.jso n_name) 5185 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.jso n_name)
5266 } 5186 }
5267 void FieldDescriptorProto::set_json_name(const char* value) { 5187 void FieldDescriptorProto::set_json_name(const char* value) {
5268 set_has_json_name(); 5188 set_has_json_name();
5269 json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), ::std::string(value)); 5189 json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), ::std::string(value));
5270 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProt o.json_name) 5190 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProt o.json_name)
5271 } 5191 }
5272 void FieldDescriptorProto::set_json_name(const char* value, size_t size) { 5192 void FieldDescriptorProto::set_json_name(const char* value, size_t size) {
5273 set_has_json_name(); 5193 set_has_json_name();
5274 json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), 5194 json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(),
5275 ::std::string(reinterpret_cast<const char*>(value), size)); 5195 ::std::string(reinterpret_cast<const char*>(value), size));
5276 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorP roto.json_name) 5196 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorP roto.json_name)
5277 } 5197 }
5278 ::std::string* FieldDescriptorProto::mutable_json_name() { 5198 ::std::string* FieldDescriptorProto::mutable_json_name() {
5279 set_has_json_name(); 5199 set_has_json_name();
5280 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto .json_name) 5200 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto .json_name)
5281 return json_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited()); 5201 return json_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited());
5282 } 5202 }
5283 ::std::string* FieldDescriptorProto::release_json_name() { 5203 ::std::string* FieldDescriptorProto::release_json_name() {
5284 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto .json_name) 5204 // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto .json_name)
5285 clear_has_json_name(); 5205 clear_has_json_name();
5286 return json_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited()); 5206 return json_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited());
5287 } 5207 }
5288 void FieldDescriptorProto::set_allocated_json_name(::std::string* json_name) { 5208 void FieldDescriptorProto::set_allocated_json_name(::std::string* json_name) {
5289 if (json_name != NULL) { 5209 if (json_name != NULL) {
5290 set_has_json_name(); 5210 set_has_json_name();
5291 } else { 5211 } else {
5292 clear_has_json_name(); 5212 clear_has_json_name();
5293 } 5213 }
5294 json_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited(), json_name); 5214 json_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited(), json_name);
5295 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto rProto.json_name) 5215 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto rProto.json_name)
5296 } 5216 }
5297 5217
5298 // optional .google.protobuf.FieldOptions options = 8; 5218 // optional .google.protobuf.FieldOptions options = 8;
5299 bool FieldDescriptorProto::has_options() const { 5219 bool FieldDescriptorProto::has_options() const {
5300 return (_has_bits_[0] & 0x00000200u) != 0; 5220 return (_has_bits_[0] & 0x00000020u) != 0;
5301 } 5221 }
5302 void FieldDescriptorProto::set_has_options() { 5222 void FieldDescriptorProto::set_has_options() {
5303 _has_bits_[0] |= 0x00000200u; 5223 _has_bits_[0] |= 0x00000020u;
5304 } 5224 }
5305 void FieldDescriptorProto::clear_has_options() { 5225 void FieldDescriptorProto::clear_has_options() {
5306 _has_bits_[0] &= ~0x00000200u; 5226 _has_bits_[0] &= ~0x00000020u;
5307 } 5227 }
5308 void FieldDescriptorProto::clear_options() { 5228 void FieldDescriptorProto::clear_options() {
5309 if (options_ != NULL) options_->::google::protobuf::FieldOptions::Clear(); 5229 if (options_ != NULL) options_->::google::protobuf::FieldOptions::Clear();
5310 clear_has_options(); 5230 clear_has_options();
5311 } 5231 }
5312 const ::google::protobuf::FieldOptions& FieldDescriptorProto::options() const { 5232 const ::google::protobuf::FieldOptions& FieldDescriptorProto::options() const {
5313 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.opt ions) 5233 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.opt ions)
5314 return options_ != NULL ? *options_ : *default_instance_->options_; 5234 return options_ != NULL ? *options_
5235 : *::google::protobuf::FieldOptions::internal_default_i nstance();
5315 } 5236 }
5316 ::google::protobuf::FieldOptions* FieldDescriptorProto::mutable_options() { 5237 ::google::protobuf::FieldOptions* FieldDescriptorProto::mutable_options() {
5317 set_has_options(); 5238 set_has_options();
5318 if (options_ == NULL) { 5239 if (options_ == NULL) {
5319 options_ = new ::google::protobuf::FieldOptions; 5240 options_ = new ::google::protobuf::FieldOptions;
5320 } 5241 }
5321 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto .options) 5242 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto .options)
5322 return options_; 5243 return options_;
5323 } 5244 }
5324 ::google::protobuf::FieldOptions* FieldDescriptorProto::release_options() { 5245 ::google::protobuf::FieldOptions* FieldDescriptorProto::release_options() {
(...skipping 13 matching lines...) Expand all
5338 } 5259 }
5339 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto rProto.options) 5260 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescripto rProto.options)
5340 } 5261 }
5341 5262
5342 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 5263 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
5343 5264
5344 // =================================================================== 5265 // ===================================================================
5345 5266
5346 #if !defined(_MSC_VER) || _MSC_VER >= 1900 5267 #if !defined(_MSC_VER) || _MSC_VER >= 1900
5347 const int OneofDescriptorProto::kNameFieldNumber; 5268 const int OneofDescriptorProto::kNameFieldNumber;
5269 const int OneofDescriptorProto::kOptionsFieldNumber;
5348 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 5270 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
5349 5271
5350 OneofDescriptorProto::OneofDescriptorProto() 5272 OneofDescriptorProto::OneofDescriptorProto()
5351 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 5273 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
5274 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
5275 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
5276 }
5352 SharedCtor(); 5277 SharedCtor();
5353 // @@protoc_insertion_point(constructor:google.protobuf.OneofDescriptorProto) 5278 // @@protoc_insertion_point(constructor:google.protobuf.OneofDescriptorProto)
5354 } 5279 }
5355
5356 void OneofDescriptorProto::InitAsDefaultInstance() {
5357 }
5358
5359 OneofDescriptorProto::OneofDescriptorProto(const OneofDescriptorProto& from) 5280 OneofDescriptorProto::OneofDescriptorProto(const OneofDescriptorProto& from)
5360 : ::google::protobuf::Message(), 5281 : ::google::protobuf::Message(),
5361 _internal_metadata_(NULL) { 5282 _internal_metadata_(NULL),
5362 SharedCtor(); 5283 _has_bits_(from._has_bits_),
5363 MergeFrom(from); 5284 _cached_size_(0) {
5285 _internal_metadata_.MergeFrom(from._internal_metadata_);
5286 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
5287 if (from.has_name()) {
5288 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlready Inited(), from.name_);
5289 }
5290 if (from.has_options()) {
5291 options_ = new ::google::protobuf::OneofOptions(*from.options_);
5292 } else {
5293 options_ = NULL;
5294 }
5364 // @@protoc_insertion_point(copy_constructor:google.protobuf.OneofDescriptorPr oto) 5295 // @@protoc_insertion_point(copy_constructor:google.protobuf.OneofDescriptorPr oto)
5365 } 5296 }
5366 5297
5367 void OneofDescriptorProto::SharedCtor() { 5298 void OneofDescriptorProto::SharedCtor() {
5368 ::google::protobuf::internal::GetEmptyString();
5369 _cached_size_ = 0; 5299 _cached_size_ = 0;
5370 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted()); 5300 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
5371 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 5301 options_ = NULL;
5372 } 5302 }
5373 5303
5374 OneofDescriptorProto::~OneofDescriptorProto() { 5304 OneofDescriptorProto::~OneofDescriptorProto() {
5375 // @@protoc_insertion_point(destructor:google.protobuf.OneofDescriptorProto) 5305 // @@protoc_insertion_point(destructor:google.protobuf.OneofDescriptorProto)
5376 SharedDtor(); 5306 SharedDtor();
5377 } 5307 }
5378 5308
5379 void OneofDescriptorProto::SharedDtor() { 5309 void OneofDescriptorProto::SharedDtor() {
5380 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d()); 5310 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d());
5381 if (this != default_instance_) { 5311 if (this != internal_default_instance()) {
5312 delete options_;
5382 } 5313 }
5383 } 5314 }
5384 5315
5385 void OneofDescriptorProto::SetCachedSize(int size) const { 5316 void OneofDescriptorProto::SetCachedSize(int size) const {
5386 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 5317 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5387 _cached_size_ = size; 5318 _cached_size_ = size;
5388 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 5319 GOOGLE_SAFE_CONCURRENT_WRITES_END();
5389 } 5320 }
5390 const ::google::protobuf::Descriptor* OneofDescriptorProto::descriptor() { 5321 const ::google::protobuf::Descriptor* OneofDescriptorProto::descriptor() {
5391 protobuf_AssignDescriptorsOnce(); 5322 protobuf_AssignDescriptorsOnce();
5392 return OneofDescriptorProto_descriptor_; 5323 return file_level_metadata[6].descriptor;
5393 } 5324 }
5394 5325
5395 const OneofDescriptorProto& OneofDescriptorProto::default_instance() { 5326 const OneofDescriptorProto& OneofDescriptorProto::default_instance() {
5396 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 5327 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
5397 return *default_instance_; 5328 return *internal_default_instance();
5398 } 5329 }
5399 5330
5400 OneofDescriptorProto* OneofDescriptorProto::default_instance_ = NULL;
5401
5402 OneofDescriptorProto* OneofDescriptorProto::New(::google::protobuf::Arena* arena ) const { 5331 OneofDescriptorProto* OneofDescriptorProto::New(::google::protobuf::Arena* arena ) const {
5403 OneofDescriptorProto* n = new OneofDescriptorProto; 5332 OneofDescriptorProto* n = new OneofDescriptorProto;
5404 if (arena != NULL) { 5333 if (arena != NULL) {
5405 arena->Own(n); 5334 arena->Own(n);
5406 } 5335 }
5407 return n; 5336 return n;
5408 } 5337 }
5409 5338
5410 void OneofDescriptorProto::Clear() { 5339 void OneofDescriptorProto::Clear() {
5411 // @@protoc_insertion_point(message_clear_start:google.protobuf.OneofDescriptorP roto) 5340 // @@protoc_insertion_point(message_clear_start:google.protobuf.OneofDescriptorP roto)
5412 if (has_name()) { 5341 if (_has_bits_[0 / 32] & 3u) {
5413 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 5342 if (has_name()) {
5343 GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited()));
5344 (*name_.UnsafeRawStringPointer())->clear();
5345 }
5346 if (has_options()) {
5347 GOOGLE_DCHECK(options_ != NULL);
5348 options_->::google::protobuf::OneofOptions::Clear();
5349 }
5414 } 5350 }
5415 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 5351 _has_bits_.Clear();
5416 if (_internal_metadata_.have_unknown_fields()) { 5352 _internal_metadata_.Clear();
5417 mutable_unknown_fields()->Clear();
5418 }
5419 } 5353 }
5420 5354
5421 bool OneofDescriptorProto::MergePartialFromCodedStream( 5355 bool OneofDescriptorProto::MergePartialFromCodedStream(
5422 ::google::protobuf::io::CodedInputStream* input) { 5356 ::google::protobuf::io::CodedInputStream* input) {
5423 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 5357 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
5424 ::google::protobuf::uint32 tag; 5358 ::google::protobuf::uint32 tag;
5425 // @@protoc_insertion_point(parse_start:google.protobuf.OneofDescriptorProto) 5359 // @@protoc_insertion_point(parse_start:google.protobuf.OneofDescriptorProto)
5426 for (;;) { 5360 for (;;) {
5427 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127); 5361 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u);
5428 tag = p.first; 5362 tag = p.first;
5429 if (!p.second) goto handle_unusual; 5363 if (!p.second) goto handle_unusual;
5430 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 5364 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
5431 // optional string name = 1; 5365 // optional string name = 1;
5432 case 1: { 5366 case 1: {
5433 if (tag == 10) { 5367 if (tag == 10u) {
5434 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 5368 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5435 input, this->mutable_name())); 5369 input, this->mutable_name()));
5436 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 5370 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5437 this->name().data(), this->name().length(), 5371 this->name().data(), this->name().length(),
5438 ::google::protobuf::internal::WireFormat::PARSE, 5372 ::google::protobuf::internal::WireFormat::PARSE,
5439 "google.protobuf.OneofDescriptorProto.name"); 5373 "google.protobuf.OneofDescriptorProto.name");
5440 } else { 5374 } else {
5441 goto handle_unusual; 5375 goto handle_unusual;
5442 } 5376 }
5443 if (input->ExpectAtEnd()) goto success;
5444 break; 5377 break;
5445 } 5378 }
5446 5379
5380 // optional .google.protobuf.OneofOptions options = 2;
5381 case 2: {
5382 if (tag == 18u) {
5383 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual (
5384 input, mutable_options()));
5385 } else {
5386 goto handle_unusual;
5387 }
5388 break;
5389 }
5390
5447 default: { 5391 default: {
5448 handle_unusual: 5392 handle_unusual:
5449 if (tag == 0 || 5393 if (tag == 0 ||
5450 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 5394 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5451 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 5395 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
5452 goto success; 5396 goto success;
5453 } 5397 }
5454 DO_(::google::protobuf::internal::WireFormat::SkipField( 5398 DO_(::google::protobuf::internal::WireFormat::SkipField(
5455 input, tag, mutable_unknown_fields())); 5399 input, tag, mutable_unknown_fields()));
5456 break; 5400 break;
(...skipping 15 matching lines...) Expand all
5472 // optional string name = 1; 5416 // optional string name = 1;
5473 if (has_name()) { 5417 if (has_name()) {
5474 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 5418 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5475 this->name().data(), this->name().length(), 5419 this->name().data(), this->name().length(),
5476 ::google::protobuf::internal::WireFormat::SERIALIZE, 5420 ::google::protobuf::internal::WireFormat::SERIALIZE,
5477 "google.protobuf.OneofDescriptorProto.name"); 5421 "google.protobuf.OneofDescriptorProto.name");
5478 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 5422 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5479 1, this->name(), output); 5423 1, this->name(), output);
5480 } 5424 }
5481 5425
5426 // optional .google.protobuf.OneofOptions options = 2;
5427 if (has_options()) {
5428 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5429 2, *this->options_, output);
5430 }
5431
5482 if (_internal_metadata_.have_unknown_fields()) { 5432 if (_internal_metadata_.have_unknown_fields()) {
5483 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 5433 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5484 unknown_fields(), output); 5434 unknown_fields(), output);
5485 } 5435 }
5486 // @@protoc_insertion_point(serialize_end:google.protobuf.OneofDescriptorProto ) 5436 // @@protoc_insertion_point(serialize_end:google.protobuf.OneofDescriptorProto )
5487 } 5437 }
5488 5438
5489 ::google::protobuf::uint8* OneofDescriptorProto::SerializeWithCachedSizesToArray ( 5439 ::google::protobuf::uint8* OneofDescriptorProto::InternalSerializeWithCachedSize sToArray(
5490 ::google::protobuf::uint8* target) const { 5440 bool deterministic, ::google::protobuf::uint8* target) const {
5441 (void)deterministic; // Unused
5491 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.OneofDesc riptorProto) 5442 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.OneofDesc riptorProto)
5492 // optional string name = 1; 5443 // optional string name = 1;
5493 if (has_name()) { 5444 if (has_name()) {
5494 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 5445 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5495 this->name().data(), this->name().length(), 5446 this->name().data(), this->name().length(),
5496 ::google::protobuf::internal::WireFormat::SERIALIZE, 5447 ::google::protobuf::internal::WireFormat::SERIALIZE,
5497 "google.protobuf.OneofDescriptorProto.name"); 5448 "google.protobuf.OneofDescriptorProto.name");
5498 target = 5449 target =
5499 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 5450 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5500 1, this->name(), target); 5451 1, this->name(), target);
5501 } 5452 }
5502 5453
5454 // optional .google.protobuf.OneofOptions options = 2;
5455 if (has_options()) {
5456 target = ::google::protobuf::internal::WireFormatLite::
5457 InternalWriteMessageNoVirtualToArray(
5458 2, *this->options_, false, target);
5459 }
5460
5503 if (_internal_metadata_.have_unknown_fields()) { 5461 if (_internal_metadata_.have_unknown_fields()) {
5504 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 5462 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
5505 unknown_fields(), target); 5463 unknown_fields(), target);
5506 } 5464 }
5507 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.OneofDescri ptorProto) 5465 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.OneofDescri ptorProto)
5508 return target; 5466 return target;
5509 } 5467 }
5510 5468
5511 int OneofDescriptorProto::ByteSize() const { 5469 size_t OneofDescriptorProto::ByteSizeLong() const {
5512 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.OneofDescrip torProto) 5470 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.OneofDescrip torProto)
5513 int total_size = 0; 5471 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 5472
5522 if (_internal_metadata_.have_unknown_fields()) { 5473 if (_internal_metadata_.have_unknown_fields()) {
5523 total_size += 5474 total_size +=
5524 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( 5475 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5525 unknown_fields()); 5476 unknown_fields());
5526 } 5477 }
5478 if (_has_bits_[0 / 32] & 3u) {
5479 // optional string name = 1;
5480 if (has_name()) {
5481 total_size += 1 +
5482 ::google::protobuf::internal::WireFormatLite::StringSize(
5483 this->name());
5484 }
5485
5486 // optional .google.protobuf.OneofOptions options = 2;
5487 if (has_options()) {
5488 total_size += 1 +
5489 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
5490 *this->options_);
5491 }
5492
5493 }
5494 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5527 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 5495 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5528 _cached_size_ = total_size; 5496 _cached_size_ = cached_size;
5529 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 5497 GOOGLE_SAFE_CONCURRENT_WRITES_END();
5530 return total_size; 5498 return total_size;
5531 } 5499 }
5532 5500
5533 void OneofDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { 5501 void OneofDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
5534 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.OneofDe scriptorProto) 5502 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.OneofDe scriptorProto)
5535 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 5503 GOOGLE_DCHECK_NE(&from, this);
5536 const OneofDescriptorProto* source = 5504 const OneofDescriptorProto* source =
5537 ::google::protobuf::internal::DynamicCastToGenerated<const OneofDescriptor Proto>( 5505 ::google::protobuf::internal::DynamicCastToGenerated<const OneofDescriptor Proto>(
5538 &from); 5506 &from);
5539 if (source == NULL) { 5507 if (source == NULL) {
5540 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.O neofDescriptorProto) 5508 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.O neofDescriptorProto)
5541 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 5509 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5542 } else { 5510 } else {
5543 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.OneofDescriptorProto) 5511 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.OneofDescriptorProto)
5544 MergeFrom(*source); 5512 MergeFrom(*source);
5545 } 5513 }
5546 } 5514 }
5547 5515
5548 void OneofDescriptorProto::MergeFrom(const OneofDescriptorProto& from) { 5516 void OneofDescriptorProto::MergeFrom(const OneofDescriptorProto& from) {
5549 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Oneo fDescriptorProto) 5517 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Oneo fDescriptorProto)
5550 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 5518 GOOGLE_DCHECK_NE(&from, this);
5551 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { 5519 _internal_metadata_.MergeFrom(from._internal_metadata_);
5520 if (from._has_bits_[0 / 32] & 3u) {
5552 if (from.has_name()) { 5521 if (from.has_name()) {
5553 set_has_name(); 5522 set_has_name();
5554 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), from.name_); 5523 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), from.name_);
5555 } 5524 }
5556 } 5525 if (from.has_options()) {
5557 if (from._internal_metadata_.have_unknown_fields()) { 5526 mutable_options()->::google::protobuf::OneofOptions::MergeFrom(from.option s());
5558 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); 5527 }
5559 } 5528 }
5560 } 5529 }
5561 5530
5562 void OneofDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { 5531 void OneofDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
5563 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.OneofDes criptorProto) 5532 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.OneofDes criptorProto)
5564 if (&from == this) return; 5533 if (&from == this) return;
5565 Clear(); 5534 Clear();
5566 MergeFrom(from); 5535 MergeFrom(from);
5567 } 5536 }
5568 5537
5569 void OneofDescriptorProto::CopyFrom(const OneofDescriptorProto& from) { 5538 void OneofDescriptorProto::CopyFrom(const OneofDescriptorProto& from) {
5570 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Oneof DescriptorProto) 5539 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Oneof DescriptorProto)
5571 if (&from == this) return; 5540 if (&from == this) return;
5572 Clear(); 5541 Clear();
5573 MergeFrom(from); 5542 MergeFrom(from);
5574 } 5543 }
5575 5544
5576 bool OneofDescriptorProto::IsInitialized() const { 5545 bool OneofDescriptorProto::IsInitialized() const {
5577 5546 if (has_options()) {
5547 if (!this->options_->IsInitialized()) return false;
5548 }
5578 return true; 5549 return true;
5579 } 5550 }
5580 5551
5581 void OneofDescriptorProto::Swap(OneofDescriptorProto* other) { 5552 void OneofDescriptorProto::Swap(OneofDescriptorProto* other) {
5582 if (other == this) return; 5553 if (other == this) return;
5583 InternalSwap(other); 5554 InternalSwap(other);
5584 } 5555 }
5585 void OneofDescriptorProto::InternalSwap(OneofDescriptorProto* other) { 5556 void OneofDescriptorProto::InternalSwap(OneofDescriptorProto* other) {
5586 name_.Swap(&other->name_); 5557 name_.Swap(&other->name_);
5558 std::swap(options_, other->options_);
5587 std::swap(_has_bits_[0], other->_has_bits_[0]); 5559 std::swap(_has_bits_[0], other->_has_bits_[0]);
5588 _internal_metadata_.Swap(&other->_internal_metadata_); 5560 _internal_metadata_.Swap(&other->_internal_metadata_);
5589 std::swap(_cached_size_, other->_cached_size_); 5561 std::swap(_cached_size_, other->_cached_size_);
5590 } 5562 }
5591 5563
5592 ::google::protobuf::Metadata OneofDescriptorProto::GetMetadata() const { 5564 ::google::protobuf::Metadata OneofDescriptorProto::GetMetadata() const {
5593 protobuf_AssignDescriptorsOnce(); 5565 protobuf_AssignDescriptorsOnce();
5594 ::google::protobuf::Metadata metadata; 5566 return file_level_metadata[6];
5595 metadata.descriptor = OneofDescriptorProto_descriptor_;
5596 metadata.reflection = OneofDescriptorProto_reflection_;
5597 return metadata;
5598 } 5567 }
5599 5568
5600 #if PROTOBUF_INLINE_NOT_IN_HEADERS 5569 #if PROTOBUF_INLINE_NOT_IN_HEADERS
5601 // OneofDescriptorProto 5570 // OneofDescriptorProto
5602 5571
5603 // optional string name = 1; 5572 // optional string name = 1;
5604 bool OneofDescriptorProto::has_name() const { 5573 bool OneofDescriptorProto::has_name() const {
5605 return (_has_bits_[0] & 0x00000001u) != 0; 5574 return (_has_bits_[0] & 0x00000001u) != 0;
5606 } 5575 }
5607 void OneofDescriptorProto::set_has_name() { 5576 void OneofDescriptorProto::set_has_name() {
5608 _has_bits_[0] |= 0x00000001u; 5577 _has_bits_[0] |= 0x00000001u;
5609 } 5578 }
5610 void OneofDescriptorProto::clear_has_name() { 5579 void OneofDescriptorProto::clear_has_name() {
5611 _has_bits_[0] &= ~0x00000001u; 5580 _has_bits_[0] &= ~0x00000001u;
5612 } 5581 }
5613 void OneofDescriptorProto::clear_name() { 5582 void OneofDescriptorProto::clear_name() {
5614 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 5583 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
5615 clear_has_name(); 5584 clear_has_name();
5616 } 5585 }
5617 const ::std::string& OneofDescriptorProto::name() const { 5586 const ::std::string& OneofDescriptorProto::name() const {
5618 // @@protoc_insertion_point(field_get:google.protobuf.OneofDescriptorProto.nam e) 5587 // @@protoc_insertion_point(field_get:google.protobuf.OneofDescriptorProto.nam e)
5619 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited()); 5588 return name_.GetNoArena();
5620 } 5589 }
5621 void OneofDescriptorProto::set_name(const ::std::string& value) { 5590 void OneofDescriptorProto::set_name(const ::std::string& value) {
5622 set_has_name(); 5591 set_has_name();
5623 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 5592 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
5624 // @@protoc_insertion_point(field_set:google.protobuf.OneofDescriptorProto.nam e) 5593 // @@protoc_insertion_point(field_set:google.protobuf.OneofDescriptorProto.nam e)
5625 } 5594 }
5626 void OneofDescriptorProto::set_name(const char* value) { 5595 void OneofDescriptorProto::set_name(const char* value) {
5627 set_has_name(); 5596 set_has_name();
5628 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 5597 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
5629 // @@protoc_insertion_point(field_set_char:google.protobuf.OneofDescriptorProt o.name) 5598 // @@protoc_insertion_point(field_set_char:google.protobuf.OneofDescriptorProt o.name)
5630 } 5599 }
5631 void OneofDescriptorProto::set_name(const char* value, size_t size) { 5600 void OneofDescriptorProto::set_name(const char* value, size_t size) {
5632 set_has_name(); 5601 set_has_name();
5633 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 5602 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5634 ::std::string(reinterpret_cast<const char*>(value), size)); 5603 ::std::string(reinterpret_cast<const char*>(value), size));
5635 // @@protoc_insertion_point(field_set_pointer:google.protobuf.OneofDescriptorP roto.name) 5604 // @@protoc_insertion_point(field_set_pointer:google.protobuf.OneofDescriptorP roto.name)
5636 } 5605 }
5637 ::std::string* OneofDescriptorProto::mutable_name() { 5606 ::std::string* OneofDescriptorProto::mutable_name() {
5638 set_has_name(); 5607 set_has_name();
5639 // @@protoc_insertion_point(field_mutable:google.protobuf.OneofDescriptorProto .name) 5608 // @@protoc_insertion_point(field_mutable:google.protobuf.OneofDescriptorProto .name)
5640 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 5609 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
5641 } 5610 }
5642 ::std::string* OneofDescriptorProto::release_name() { 5611 ::std::string* OneofDescriptorProto::release_name() {
5643 // @@protoc_insertion_point(field_release:google.protobuf.OneofDescriptorProto .name) 5612 // @@protoc_insertion_point(field_release:google.protobuf.OneofDescriptorProto .name)
5644 clear_has_name(); 5613 clear_has_name();
5645 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 5614 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
5646 } 5615 }
5647 void OneofDescriptorProto::set_allocated_name(::std::string* name) { 5616 void OneofDescriptorProto::set_allocated_name(::std::string* name) {
5648 if (name != NULL) { 5617 if (name != NULL) {
5649 set_has_name(); 5618 set_has_name();
5650 } else { 5619 } else {
5651 clear_has_name(); 5620 clear_has_name();
5652 } 5621 }
5653 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name); 5622 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name);
5654 // @@protoc_insertion_point(field_set_allocated:google.protobuf.OneofDescripto rProto.name) 5623 // @@protoc_insertion_point(field_set_allocated:google.protobuf.OneofDescripto rProto.name)
5655 } 5624 }
5656 5625
5626 // optional .google.protobuf.OneofOptions options = 2;
5627 bool OneofDescriptorProto::has_options() const {
5628 return (_has_bits_[0] & 0x00000002u) != 0;
5629 }
5630 void OneofDescriptorProto::set_has_options() {
5631 _has_bits_[0] |= 0x00000002u;
5632 }
5633 void OneofDescriptorProto::clear_has_options() {
5634 _has_bits_[0] &= ~0x00000002u;
5635 }
5636 void OneofDescriptorProto::clear_options() {
5637 if (options_ != NULL) options_->::google::protobuf::OneofOptions::Clear();
5638 clear_has_options();
5639 }
5640 const ::google::protobuf::OneofOptions& OneofDescriptorProto::options() const {
5641 // @@protoc_insertion_point(field_get:google.protobuf.OneofDescriptorProto.opt ions)
5642 return options_ != NULL ? *options_
5643 : *::google::protobuf::OneofOptions::internal_default_i nstance();
5644 }
5645 ::google::protobuf::OneofOptions* OneofDescriptorProto::mutable_options() {
5646 set_has_options();
5647 if (options_ == NULL) {
5648 options_ = new ::google::protobuf::OneofOptions;
5649 }
5650 // @@protoc_insertion_point(field_mutable:google.protobuf.OneofDescriptorProto .options)
5651 return options_;
5652 }
5653 ::google::protobuf::OneofOptions* OneofDescriptorProto::release_options() {
5654 // @@protoc_insertion_point(field_release:google.protobuf.OneofDescriptorProto .options)
5655 clear_has_options();
5656 ::google::protobuf::OneofOptions* temp = options_;
5657 options_ = NULL;
5658 return temp;
5659 }
5660 void OneofDescriptorProto::set_allocated_options(::google::protobuf::OneofOption s* options) {
5661 delete options_;
5662 options_ = options;
5663 if (options) {
5664 set_has_options();
5665 } else {
5666 clear_has_options();
5667 }
5668 // @@protoc_insertion_point(field_set_allocated:google.protobuf.OneofDescripto rProto.options)
5669 }
5670
5657 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 5671 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
5658 5672
5659 // =================================================================== 5673 // ===================================================================
5660 5674
5661 #if !defined(_MSC_VER) || _MSC_VER >= 1900 5675 #if !defined(_MSC_VER) || _MSC_VER >= 1900
5662 const int EnumDescriptorProto::kNameFieldNumber; 5676 const int EnumDescriptorProto::kNameFieldNumber;
5663 const int EnumDescriptorProto::kValueFieldNumber; 5677 const int EnumDescriptorProto::kValueFieldNumber;
5664 const int EnumDescriptorProto::kOptionsFieldNumber; 5678 const int EnumDescriptorProto::kOptionsFieldNumber;
5665 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 5679 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
5666 5680
5667 EnumDescriptorProto::EnumDescriptorProto() 5681 EnumDescriptorProto::EnumDescriptorProto()
5668 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 5682 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
5683 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
5684 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
5685 }
5669 SharedCtor(); 5686 SharedCtor();
5670 // @@protoc_insertion_point(constructor:google.protobuf.EnumDescriptorProto) 5687 // @@protoc_insertion_point(constructor:google.protobuf.EnumDescriptorProto)
5671 } 5688 }
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) 5689 EnumDescriptorProto::EnumDescriptorProto(const EnumDescriptorProto& from)
5678 : ::google::protobuf::Message(), 5690 : ::google::protobuf::Message(),
5679 _internal_metadata_(NULL) { 5691 _internal_metadata_(NULL),
5680 SharedCtor(); 5692 _has_bits_(from._has_bits_),
5681 MergeFrom(from); 5693 _cached_size_(0),
5694 value_(from.value_) {
5695 _internal_metadata_.MergeFrom(from._internal_metadata_);
5696 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
5697 if (from.has_name()) {
5698 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlready Inited(), from.name_);
5699 }
5700 if (from.has_options()) {
5701 options_ = new ::google::protobuf::EnumOptions(*from.options_);
5702 } else {
5703 options_ = NULL;
5704 }
5682 // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumDescriptorPro to) 5705 // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumDescriptorPro to)
5683 } 5706 }
5684 5707
5685 void EnumDescriptorProto::SharedCtor() { 5708 void EnumDescriptorProto::SharedCtor() {
5686 ::google::protobuf::internal::GetEmptyString();
5687 _cached_size_ = 0; 5709 _cached_size_ = 0;
5688 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted()); 5710 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
5689 options_ = NULL; 5711 options_ = NULL;
5690 ::memset(_has_bits_, 0, sizeof(_has_bits_));
5691 } 5712 }
5692 5713
5693 EnumDescriptorProto::~EnumDescriptorProto() { 5714 EnumDescriptorProto::~EnumDescriptorProto() {
5694 // @@protoc_insertion_point(destructor:google.protobuf.EnumDescriptorProto) 5715 // @@protoc_insertion_point(destructor:google.protobuf.EnumDescriptorProto)
5695 SharedDtor(); 5716 SharedDtor();
5696 } 5717 }
5697 5718
5698 void EnumDescriptorProto::SharedDtor() { 5719 void EnumDescriptorProto::SharedDtor() {
5699 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d()); 5720 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d());
5700 if (this != default_instance_) { 5721 if (this != internal_default_instance()) {
5701 delete options_; 5722 delete options_;
5702 } 5723 }
5703 } 5724 }
5704 5725
5705 void EnumDescriptorProto::SetCachedSize(int size) const { 5726 void EnumDescriptorProto::SetCachedSize(int size) const {
5706 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 5727 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5707 _cached_size_ = size; 5728 _cached_size_ = size;
5708 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 5729 GOOGLE_SAFE_CONCURRENT_WRITES_END();
5709 } 5730 }
5710 const ::google::protobuf::Descriptor* EnumDescriptorProto::descriptor() { 5731 const ::google::protobuf::Descriptor* EnumDescriptorProto::descriptor() {
5711 protobuf_AssignDescriptorsOnce(); 5732 protobuf_AssignDescriptorsOnce();
5712 return EnumDescriptorProto_descriptor_; 5733 return file_level_metadata[7].descriptor;
5713 } 5734 }
5714 5735
5715 const EnumDescriptorProto& EnumDescriptorProto::default_instance() { 5736 const EnumDescriptorProto& EnumDescriptorProto::default_instance() {
5716 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 5737 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
5717 return *default_instance_; 5738 return *internal_default_instance();
5718 } 5739 }
5719 5740
5720 EnumDescriptorProto* EnumDescriptorProto::default_instance_ = NULL;
5721
5722 EnumDescriptorProto* EnumDescriptorProto::New(::google::protobuf::Arena* arena) const { 5741 EnumDescriptorProto* EnumDescriptorProto::New(::google::protobuf::Arena* arena) const {
5723 EnumDescriptorProto* n = new EnumDescriptorProto; 5742 EnumDescriptorProto* n = new EnumDescriptorProto;
5724 if (arena != NULL) { 5743 if (arena != NULL) {
5725 arena->Own(n); 5744 arena->Own(n);
5726 } 5745 }
5727 return n; 5746 return n;
5728 } 5747 }
5729 5748
5730 void EnumDescriptorProto::Clear() { 5749 void EnumDescriptorProto::Clear() {
5731 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumDescriptorPr oto) 5750 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumDescriptorPr oto)
5732 if (_has_bits_[0 / 32] & 5u) { 5751 value_.Clear();
5752 if (_has_bits_[0 / 32] & 3u) {
5733 if (has_name()) { 5753 if (has_name()) {
5734 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited()); 5754 GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited()));
5755 (*name_.UnsafeRawStringPointer())->clear();
5735 } 5756 }
5736 if (has_options()) { 5757 if (has_options()) {
5737 if (options_ != NULL) options_->::google::protobuf::EnumOptions::Clear(); 5758 GOOGLE_DCHECK(options_ != NULL);
5759 options_->::google::protobuf::EnumOptions::Clear();
5738 } 5760 }
5739 } 5761 }
5740 value_.Clear(); 5762 _has_bits_.Clear();
5741 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 5763 _internal_metadata_.Clear();
5742 if (_internal_metadata_.have_unknown_fields()) {
5743 mutable_unknown_fields()->Clear();
5744 }
5745 } 5764 }
5746 5765
5747 bool EnumDescriptorProto::MergePartialFromCodedStream( 5766 bool EnumDescriptorProto::MergePartialFromCodedStream(
5748 ::google::protobuf::io::CodedInputStream* input) { 5767 ::google::protobuf::io::CodedInputStream* input) {
5749 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 5768 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
5750 ::google::protobuf::uint32 tag; 5769 ::google::protobuf::uint32 tag;
5751 // @@protoc_insertion_point(parse_start:google.protobuf.EnumDescriptorProto) 5770 // @@protoc_insertion_point(parse_start:google.protobuf.EnumDescriptorProto)
5752 for (;;) { 5771 for (;;) {
5753 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127); 5772 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u);
5754 tag = p.first; 5773 tag = p.first;
5755 if (!p.second) goto handle_unusual; 5774 if (!p.second) goto handle_unusual;
5756 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 5775 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
5757 // optional string name = 1; 5776 // optional string name = 1;
5758 case 1: { 5777 case 1: {
5759 if (tag == 10) { 5778 if (tag == 10u) {
5760 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 5779 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5761 input, this->mutable_name())); 5780 input, this->mutable_name()));
5762 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 5781 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5763 this->name().data(), this->name().length(), 5782 this->name().data(), this->name().length(),
5764 ::google::protobuf::internal::WireFormat::PARSE, 5783 ::google::protobuf::internal::WireFormat::PARSE,
5765 "google.protobuf.EnumDescriptorProto.name"); 5784 "google.protobuf.EnumDescriptorProto.name");
5766 } else { 5785 } else {
5767 goto handle_unusual; 5786 goto handle_unusual;
5768 } 5787 }
5769 if (input->ExpectTag(18)) goto parse_value;
5770 break; 5788 break;
5771 } 5789 }
5772 5790
5773 // repeated .google.protobuf.EnumValueDescriptorProto value = 2; 5791 // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
5774 case 2: { 5792 case 2: {
5775 if (tag == 18) { 5793 if (tag == 18u) {
5776 parse_value:
5777 DO_(input->IncrementRecursionDepth()); 5794 DO_(input->IncrementRecursionDepth());
5778 parse_loop_value:
5779 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 5795 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
5780 input, add_value())); 5796 input, add_value()));
5781 } else { 5797 } else {
5782 goto handle_unusual; 5798 goto handle_unusual;
5783 } 5799 }
5784 if (input->ExpectTag(18)) goto parse_loop_value;
5785 input->UnsafeDecrementRecursionDepth(); 5800 input->UnsafeDecrementRecursionDepth();
5786 if (input->ExpectTag(26)) goto parse_options;
5787 break; 5801 break;
5788 } 5802 }
5789 5803
5790 // optional .google.protobuf.EnumOptions options = 3; 5804 // optional .google.protobuf.EnumOptions options = 3;
5791 case 3: { 5805 case 3: {
5792 if (tag == 26) { 5806 if (tag == 26u) {
5793 parse_options:
5794 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual ( 5807 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual (
5795 input, mutable_options())); 5808 input, mutable_options()));
5796 } else { 5809 } else {
5797 goto handle_unusual; 5810 goto handle_unusual;
5798 } 5811 }
5799 if (input->ExpectAtEnd()) goto success;
5800 break; 5812 break;
5801 } 5813 }
5802 5814
5803 default: { 5815 default: {
5804 handle_unusual: 5816 handle_unusual:
5805 if (tag == 0 || 5817 if (tag == 0 ||
5806 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 5818 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5807 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 5819 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
5808 goto success; 5820 goto success;
5809 } 5821 }
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
5847 3, *this->options_, output); 5859 3, *this->options_, output);
5848 } 5860 }
5849 5861
5850 if (_internal_metadata_.have_unknown_fields()) { 5862 if (_internal_metadata_.have_unknown_fields()) {
5851 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 5863 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5852 unknown_fields(), output); 5864 unknown_fields(), output);
5853 } 5865 }
5854 // @@protoc_insertion_point(serialize_end:google.protobuf.EnumDescriptorProto) 5866 // @@protoc_insertion_point(serialize_end:google.protobuf.EnumDescriptorProto)
5855 } 5867 }
5856 5868
5857 ::google::protobuf::uint8* EnumDescriptorProto::SerializeWithCachedSizesToArray( 5869 ::google::protobuf::uint8* EnumDescriptorProto::InternalSerializeWithCachedSizes ToArray(
5858 ::google::protobuf::uint8* target) const { 5870 bool deterministic, ::google::protobuf::uint8* target) const {
5871 (void)deterministic; // Unused
5859 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumDescr iptorProto) 5872 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumDescr iptorProto)
5860 // optional string name = 1; 5873 // optional string name = 1;
5861 if (has_name()) { 5874 if (has_name()) {
5862 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 5875 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5863 this->name().data(), this->name().length(), 5876 this->name().data(), this->name().length(),
5864 ::google::protobuf::internal::WireFormat::SERIALIZE, 5877 ::google::protobuf::internal::WireFormat::SERIALIZE,
5865 "google.protobuf.EnumDescriptorProto.name"); 5878 "google.protobuf.EnumDescriptorProto.name");
5866 target = 5879 target =
5867 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 5880 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5868 1, this->name(), target); 5881 1, this->name(), target);
5869 } 5882 }
5870 5883
5871 // repeated .google.protobuf.EnumValueDescriptorProto value = 2; 5884 // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
5872 for (unsigned int i = 0, n = this->value_size(); i < n; i++) { 5885 for (unsigned int i = 0, n = this->value_size(); i < n; i++) {
5873 target = ::google::protobuf::internal::WireFormatLite:: 5886 target = ::google::protobuf::internal::WireFormatLite::
5874 WriteMessageNoVirtualToArray( 5887 InternalWriteMessageNoVirtualToArray(
5875 2, this->value(i), target); 5888 2, this->value(i), false, target);
5876 } 5889 }
5877 5890
5878 // optional .google.protobuf.EnumOptions options = 3; 5891 // optional .google.protobuf.EnumOptions options = 3;
5879 if (has_options()) { 5892 if (has_options()) {
5880 target = ::google::protobuf::internal::WireFormatLite:: 5893 target = ::google::protobuf::internal::WireFormatLite::
5881 WriteMessageNoVirtualToArray( 5894 InternalWriteMessageNoVirtualToArray(
5882 3, *this->options_, target); 5895 3, *this->options_, false, target);
5883 } 5896 }
5884 5897
5885 if (_internal_metadata_.have_unknown_fields()) { 5898 if (_internal_metadata_.have_unknown_fields()) {
5886 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 5899 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
5887 unknown_fields(), target); 5900 unknown_fields(), target);
5888 } 5901 }
5889 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumDescrip torProto) 5902 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumDescrip torProto)
5890 return target; 5903 return target;
5891 } 5904 }
5892 5905
5893 int EnumDescriptorProto::ByteSize() const { 5906 size_t EnumDescriptorProto::ByteSizeLong() const {
5894 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumDescript orProto) 5907 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumDescript orProto)
5895 int total_size = 0; 5908 size_t total_size = 0;
5896 5909
5897 if (_has_bits_[0 / 32] & 5u) { 5910 if (_internal_metadata_.have_unknown_fields()) {
5911 total_size +=
5912 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5913 unknown_fields());
5914 }
5915 // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
5916 {
5917 unsigned int count = this->value_size();
5918 total_size += 1UL * count;
5919 for (unsigned int i = 0; i < count; i++) {
5920 total_size +=
5921 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
5922 this->value(i));
5923 }
5924 }
5925
5926 if (_has_bits_[0 / 32] & 3u) {
5898 // optional string name = 1; 5927 // optional string name = 1;
5899 if (has_name()) { 5928 if (has_name()) {
5900 total_size += 1 + 5929 total_size += 1 +
5901 ::google::protobuf::internal::WireFormatLite::StringSize( 5930 ::google::protobuf::internal::WireFormatLite::StringSize(
5902 this->name()); 5931 this->name());
5903 } 5932 }
5904 5933
5905 // optional .google.protobuf.EnumOptions options = 3; 5934 // optional .google.protobuf.EnumOptions options = 3;
5906 if (has_options()) { 5935 if (has_options()) {
5907 total_size += 1 + 5936 total_size += 1 +
5908 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( 5937 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
5909 *this->options_); 5938 *this->options_);
5910 } 5939 }
5911 5940
5912 } 5941 }
5913 // repeated .google.protobuf.EnumValueDescriptorProto value = 2; 5942 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(); 5943 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5927 _cached_size_ = total_size; 5944 _cached_size_ = cached_size;
5928 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 5945 GOOGLE_SAFE_CONCURRENT_WRITES_END();
5929 return total_size; 5946 return total_size;
5930 } 5947 }
5931 5948
5932 void EnumDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { 5949 void EnumDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
5933 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumDes criptorProto) 5950 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumDes criptorProto)
5934 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 5951 GOOGLE_DCHECK_NE(&from, this);
5935 const EnumDescriptorProto* source = 5952 const EnumDescriptorProto* source =
5936 ::google::protobuf::internal::DynamicCastToGenerated<const EnumDescriptorP roto>( 5953 ::google::protobuf::internal::DynamicCastToGenerated<const EnumDescriptorP roto>(
5937 &from); 5954 &from);
5938 if (source == NULL) { 5955 if (source == NULL) {
5939 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.E numDescriptorProto) 5956 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.E numDescriptorProto)
5940 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 5957 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5941 } else { 5958 } else {
5942 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.EnumDescriptorProto) 5959 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.EnumDescriptorProto)
5943 MergeFrom(*source); 5960 MergeFrom(*source);
5944 } 5961 }
5945 } 5962 }
5946 5963
5947 void EnumDescriptorProto::MergeFrom(const EnumDescriptorProto& from) { 5964 void EnumDescriptorProto::MergeFrom(const EnumDescriptorProto& from) {
5948 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Enum DescriptorProto) 5965 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Enum DescriptorProto)
5949 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 5966 GOOGLE_DCHECK_NE(&from, this);
5967 _internal_metadata_.MergeFrom(from._internal_metadata_);
5950 value_.MergeFrom(from.value_); 5968 value_.MergeFrom(from.value_);
5951 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { 5969 if (from._has_bits_[0 / 32] & 3u) {
5952 if (from.has_name()) { 5970 if (from.has_name()) {
5953 set_has_name(); 5971 set_has_name();
5954 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), from.name_); 5972 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), from.name_);
5955 } 5973 }
5956 if (from.has_options()) { 5974 if (from.has_options()) {
5957 mutable_options()->::google::protobuf::EnumOptions::MergeFrom(from.options ()); 5975 mutable_options()->::google::protobuf::EnumOptions::MergeFrom(from.options ());
5958 } 5976 }
5959 } 5977 }
5960 if (from._internal_metadata_.have_unknown_fields()) {
5961 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
5962 }
5963 } 5978 }
5964 5979
5965 void EnumDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { 5980 void EnumDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
5966 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumDesc riptorProto) 5981 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumDesc riptorProto)
5967 if (&from == this) return; 5982 if (&from == this) return;
5968 Clear(); 5983 Clear();
5969 MergeFrom(from); 5984 MergeFrom(from);
5970 } 5985 }
5971 5986
5972 void EnumDescriptorProto::CopyFrom(const EnumDescriptorProto& from) { 5987 void EnumDescriptorProto::CopyFrom(const EnumDescriptorProto& from) {
5973 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumD escriptorProto) 5988 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumD escriptorProto)
5974 if (&from == this) return; 5989 if (&from == this) return;
5975 Clear(); 5990 Clear();
5976 MergeFrom(from); 5991 MergeFrom(from);
5977 } 5992 }
5978 5993
5979 bool EnumDescriptorProto::IsInitialized() const { 5994 bool EnumDescriptorProto::IsInitialized() const {
5980
5981 if (!::google::protobuf::internal::AllAreInitialized(this->value())) return fa lse; 5995 if (!::google::protobuf::internal::AllAreInitialized(this->value())) return fa lse;
5982 if (has_options()) { 5996 if (has_options()) {
5983 if (!this->options_->IsInitialized()) return false; 5997 if (!this->options_->IsInitialized()) return false;
5984 } 5998 }
5985 return true; 5999 return true;
5986 } 6000 }
5987 6001
5988 void EnumDescriptorProto::Swap(EnumDescriptorProto* other) { 6002 void EnumDescriptorProto::Swap(EnumDescriptorProto* other) {
5989 if (other == this) return; 6003 if (other == this) return;
5990 InternalSwap(other); 6004 InternalSwap(other);
5991 } 6005 }
5992 void EnumDescriptorProto::InternalSwap(EnumDescriptorProto* other) { 6006 void EnumDescriptorProto::InternalSwap(EnumDescriptorProto* other) {
6007 value_.UnsafeArenaSwap(&other->value_);
5993 name_.Swap(&other->name_); 6008 name_.Swap(&other->name_);
5994 value_.UnsafeArenaSwap(&other->value_);
5995 std::swap(options_, other->options_); 6009 std::swap(options_, other->options_);
5996 std::swap(_has_bits_[0], other->_has_bits_[0]); 6010 std::swap(_has_bits_[0], other->_has_bits_[0]);
5997 _internal_metadata_.Swap(&other->_internal_metadata_); 6011 _internal_metadata_.Swap(&other->_internal_metadata_);
5998 std::swap(_cached_size_, other->_cached_size_); 6012 std::swap(_cached_size_, other->_cached_size_);
5999 } 6013 }
6000 6014
6001 ::google::protobuf::Metadata EnumDescriptorProto::GetMetadata() const { 6015 ::google::protobuf::Metadata EnumDescriptorProto::GetMetadata() const {
6002 protobuf_AssignDescriptorsOnce(); 6016 protobuf_AssignDescriptorsOnce();
6003 ::google::protobuf::Metadata metadata; 6017 return file_level_metadata[7];
6004 metadata.descriptor = EnumDescriptorProto_descriptor_;
6005 metadata.reflection = EnumDescriptorProto_reflection_;
6006 return metadata;
6007 } 6018 }
6008 6019
6009 #if PROTOBUF_INLINE_NOT_IN_HEADERS 6020 #if PROTOBUF_INLINE_NOT_IN_HEADERS
6010 // EnumDescriptorProto 6021 // EnumDescriptorProto
6011 6022
6012 // optional string name = 1; 6023 // optional string name = 1;
6013 bool EnumDescriptorProto::has_name() const { 6024 bool EnumDescriptorProto::has_name() const {
6014 return (_has_bits_[0] & 0x00000001u) != 0; 6025 return (_has_bits_[0] & 0x00000001u) != 0;
6015 } 6026 }
6016 void EnumDescriptorProto::set_has_name() { 6027 void EnumDescriptorProto::set_has_name() {
6017 _has_bits_[0] |= 0x00000001u; 6028 _has_bits_[0] |= 0x00000001u;
6018 } 6029 }
6019 void EnumDescriptorProto::clear_has_name() { 6030 void EnumDescriptorProto::clear_has_name() {
6020 _has_bits_[0] &= ~0x00000001u; 6031 _has_bits_[0] &= ~0x00000001u;
6021 } 6032 }
6022 void EnumDescriptorProto::clear_name() { 6033 void EnumDescriptorProto::clear_name() {
6023 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 6034 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
6024 clear_has_name(); 6035 clear_has_name();
6025 } 6036 }
6026 const ::std::string& EnumDescriptorProto::name() const { 6037 const ::std::string& EnumDescriptorProto::name() const {
6027 // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.name ) 6038 // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.name )
6028 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited()); 6039 return name_.GetNoArena();
6029 } 6040 }
6030 void EnumDescriptorProto::set_name(const ::std::string& value) { 6041 void EnumDescriptorProto::set_name(const ::std::string& value) {
6031 set_has_name(); 6042 set_has_name();
6032 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 6043 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
6033 // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.name ) 6044 // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.name )
6034 } 6045 }
6035 void EnumDescriptorProto::set_name(const char* value) { 6046 void EnumDescriptorProto::set_name(const char* value) {
6036 set_has_name(); 6047 set_has_name();
6037 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 6048 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
6038 // @@protoc_insertion_point(field_set_char:google.protobuf.EnumDescriptorProto .name) 6049 // @@protoc_insertion_point(field_set_char:google.protobuf.EnumDescriptorProto .name)
6039 } 6050 }
6040 void EnumDescriptorProto::set_name(const char* value, size_t size) { 6051 void EnumDescriptorProto::set_name(const char* value, size_t size) {
6041 set_has_name(); 6052 set_has_name();
6042 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 6053 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6043 ::std::string(reinterpret_cast<const char*>(value), size)); 6054 ::std::string(reinterpret_cast<const char*>(value), size));
6044 // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumDescriptorPr oto.name) 6055 // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumDescriptorPr oto.name)
6045 } 6056 }
6046 ::std::string* EnumDescriptorProto::mutable_name() { 6057 ::std::string* EnumDescriptorProto::mutable_name() {
6047 set_has_name(); 6058 set_has_name();
6048 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto. name) 6059 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto. name)
6049 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 6060 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
6050 } 6061 }
6051 ::std::string* EnumDescriptorProto::release_name() { 6062 ::std::string* EnumDescriptorProto::release_name() {
6052 // @@protoc_insertion_point(field_release:google.protobuf.EnumDescriptorProto. name) 6063 // @@protoc_insertion_point(field_release:google.protobuf.EnumDescriptorProto. name)
6053 clear_has_name(); 6064 clear_has_name();
6054 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 6065 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
6055 } 6066 }
6056 void EnumDescriptorProto::set_allocated_name(::std::string* name) { 6067 void EnumDescriptorProto::set_allocated_name(::std::string* name) {
6057 if (name != NULL) { 6068 if (name != NULL) {
6058 set_has_name(); 6069 set_has_name();
6059 } else { 6070 } else {
6060 clear_has_name(); 6071 clear_has_name();
6061 } 6072 }
6062 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name); 6073 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name);
6063 // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumDescriptor Proto.name) 6074 // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumDescriptor Proto.name)
6064 } 6075 }
6065 6076
6066 // repeated .google.protobuf.EnumValueDescriptorProto value = 2; 6077 // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
(...skipping 21 matching lines...) Expand all
6088 return &value_; 6099 return &value_;
6089 } 6100 }
6090 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescrip torProto >& 6101 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescrip torProto >&
6091 EnumDescriptorProto::value() const { 6102 EnumDescriptorProto::value() const {
6092 // @@protoc_insertion_point(field_list:google.protobuf.EnumDescriptorProto.val ue) 6103 // @@protoc_insertion_point(field_list:google.protobuf.EnumDescriptorProto.val ue)
6093 return value_; 6104 return value_;
6094 } 6105 }
6095 6106
6096 // optional .google.protobuf.EnumOptions options = 3; 6107 // optional .google.protobuf.EnumOptions options = 3;
6097 bool EnumDescriptorProto::has_options() const { 6108 bool EnumDescriptorProto::has_options() const {
6098 return (_has_bits_[0] & 0x00000004u) != 0; 6109 return (_has_bits_[0] & 0x00000002u) != 0;
6099 } 6110 }
6100 void EnumDescriptorProto::set_has_options() { 6111 void EnumDescriptorProto::set_has_options() {
6101 _has_bits_[0] |= 0x00000004u; 6112 _has_bits_[0] |= 0x00000002u;
6102 } 6113 }
6103 void EnumDescriptorProto::clear_has_options() { 6114 void EnumDescriptorProto::clear_has_options() {
6104 _has_bits_[0] &= ~0x00000004u; 6115 _has_bits_[0] &= ~0x00000002u;
6105 } 6116 }
6106 void EnumDescriptorProto::clear_options() { 6117 void EnumDescriptorProto::clear_options() {
6107 if (options_ != NULL) options_->::google::protobuf::EnumOptions::Clear(); 6118 if (options_ != NULL) options_->::google::protobuf::EnumOptions::Clear();
6108 clear_has_options(); 6119 clear_has_options();
6109 } 6120 }
6110 const ::google::protobuf::EnumOptions& EnumDescriptorProto::options() const { 6121 const ::google::protobuf::EnumOptions& EnumDescriptorProto::options() const {
6111 // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.opti ons) 6122 // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.opti ons)
6112 return options_ != NULL ? *options_ : *default_instance_->options_; 6123 return options_ != NULL ? *options_
6124 : *::google::protobuf::EnumOptions::internal_default_in stance();
6113 } 6125 }
6114 ::google::protobuf::EnumOptions* EnumDescriptorProto::mutable_options() { 6126 ::google::protobuf::EnumOptions* EnumDescriptorProto::mutable_options() {
6115 set_has_options(); 6127 set_has_options();
6116 if (options_ == NULL) { 6128 if (options_ == NULL) {
6117 options_ = new ::google::protobuf::EnumOptions; 6129 options_ = new ::google::protobuf::EnumOptions;
6118 } 6130 }
6119 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto. options) 6131 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto. options)
6120 return options_; 6132 return options_;
6121 } 6133 }
6122 ::google::protobuf::EnumOptions* EnumDescriptorProto::release_options() { 6134 ::google::protobuf::EnumOptions* EnumDescriptorProto::release_options() {
(...skipping 19 matching lines...) Expand all
6142 // =================================================================== 6154 // ===================================================================
6143 6155
6144 #if !defined(_MSC_VER) || _MSC_VER >= 1900 6156 #if !defined(_MSC_VER) || _MSC_VER >= 1900
6145 const int EnumValueDescriptorProto::kNameFieldNumber; 6157 const int EnumValueDescriptorProto::kNameFieldNumber;
6146 const int EnumValueDescriptorProto::kNumberFieldNumber; 6158 const int EnumValueDescriptorProto::kNumberFieldNumber;
6147 const int EnumValueDescriptorProto::kOptionsFieldNumber; 6159 const int EnumValueDescriptorProto::kOptionsFieldNumber;
6148 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 6160 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
6149 6161
6150 EnumValueDescriptorProto::EnumValueDescriptorProto() 6162 EnumValueDescriptorProto::EnumValueDescriptorProto()
6151 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 6163 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
6164 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
6165 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
6166 }
6152 SharedCtor(); 6167 SharedCtor();
6153 // @@protoc_insertion_point(constructor:google.protobuf.EnumValueDescriptorPro to) 6168 // @@protoc_insertion_point(constructor:google.protobuf.EnumValueDescriptorPro to)
6154 } 6169 }
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) 6170 EnumValueDescriptorProto::EnumValueDescriptorProto(const EnumValueDescriptorProt o& from)
6161 : ::google::protobuf::Message(), 6171 : ::google::protobuf::Message(),
6162 _internal_metadata_(NULL) { 6172 _internal_metadata_(NULL),
6163 SharedCtor(); 6173 _has_bits_(from._has_bits_),
6164 MergeFrom(from); 6174 _cached_size_(0) {
6175 _internal_metadata_.MergeFrom(from._internal_metadata_);
6176 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
6177 if (from.has_name()) {
6178 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlready Inited(), from.name_);
6179 }
6180 if (from.has_options()) {
6181 options_ = new ::google::protobuf::EnumValueOptions(*from.options_);
6182 } else {
6183 options_ = NULL;
6184 }
6185 number_ = from.number_;
6165 // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValueDescript orProto) 6186 // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValueDescript orProto)
6166 } 6187 }
6167 6188
6168 void EnumValueDescriptorProto::SharedCtor() { 6189 void EnumValueDescriptorProto::SharedCtor() {
6169 ::google::protobuf::internal::GetEmptyString();
6170 _cached_size_ = 0; 6190 _cached_size_ = 0;
6171 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted()); 6191 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
6172 number_ = 0; 6192 ::memset(&options_, 0, reinterpret_cast<char*>(&number_) -
6173 options_ = NULL; 6193 reinterpret_cast<char*>(&options_) + sizeof(number_));
6174 ::memset(_has_bits_, 0, sizeof(_has_bits_));
6175 } 6194 }
6176 6195
6177 EnumValueDescriptorProto::~EnumValueDescriptorProto() { 6196 EnumValueDescriptorProto::~EnumValueDescriptorProto() {
6178 // @@protoc_insertion_point(destructor:google.protobuf.EnumValueDescriptorProt o) 6197 // @@protoc_insertion_point(destructor:google.protobuf.EnumValueDescriptorProt o)
6179 SharedDtor(); 6198 SharedDtor();
6180 } 6199 }
6181 6200
6182 void EnumValueDescriptorProto::SharedDtor() { 6201 void EnumValueDescriptorProto::SharedDtor() {
6183 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d()); 6202 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d());
6184 if (this != default_instance_) { 6203 if (this != internal_default_instance()) {
6185 delete options_; 6204 delete options_;
6186 } 6205 }
6187 } 6206 }
6188 6207
6189 void EnumValueDescriptorProto::SetCachedSize(int size) const { 6208 void EnumValueDescriptorProto::SetCachedSize(int size) const {
6190 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 6209 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6191 _cached_size_ = size; 6210 _cached_size_ = size;
6192 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 6211 GOOGLE_SAFE_CONCURRENT_WRITES_END();
6193 } 6212 }
6194 const ::google::protobuf::Descriptor* EnumValueDescriptorProto::descriptor() { 6213 const ::google::protobuf::Descriptor* EnumValueDescriptorProto::descriptor() {
6195 protobuf_AssignDescriptorsOnce(); 6214 protobuf_AssignDescriptorsOnce();
6196 return EnumValueDescriptorProto_descriptor_; 6215 return file_level_metadata[8].descriptor;
6197 } 6216 }
6198 6217
6199 const EnumValueDescriptorProto& EnumValueDescriptorProto::default_instance() { 6218 const EnumValueDescriptorProto& EnumValueDescriptorProto::default_instance() {
6200 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 6219 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
6201 return *default_instance_; 6220 return *internal_default_instance();
6202 } 6221 }
6203 6222
6204 EnumValueDescriptorProto* EnumValueDescriptorProto::default_instance_ = NULL;
6205
6206 EnumValueDescriptorProto* EnumValueDescriptorProto::New(::google::protobuf::Aren a* arena) const { 6223 EnumValueDescriptorProto* EnumValueDescriptorProto::New(::google::protobuf::Aren a* arena) const {
6207 EnumValueDescriptorProto* n = new EnumValueDescriptorProto; 6224 EnumValueDescriptorProto* n = new EnumValueDescriptorProto;
6208 if (arena != NULL) { 6225 if (arena != NULL) {
6209 arena->Own(n); 6226 arena->Own(n);
6210 } 6227 }
6211 return n; 6228 return n;
6212 } 6229 }
6213 6230
6214 void EnumValueDescriptorProto::Clear() { 6231 void EnumValueDescriptorProto::Clear() {
6215 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumValueDescrip torProto) 6232 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumValueDescrip torProto)
6216 if (_has_bits_[0 / 32] & 7u) { 6233 if (_has_bits_[0 / 32] & 3u) {
6217 if (has_name()) { 6234 if (has_name()) {
6218 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited()); 6235 GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited()));
6236 (*name_.UnsafeRawStringPointer())->clear();
6219 } 6237 }
6220 number_ = 0;
6221 if (has_options()) { 6238 if (has_options()) {
6222 if (options_ != NULL) options_->::google::protobuf::EnumValueOptions::Clea r(); 6239 GOOGLE_DCHECK(options_ != NULL);
6240 options_->::google::protobuf::EnumValueOptions::Clear();
6223 } 6241 }
6224 } 6242 }
6225 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 6243 number_ = 0;
6226 if (_internal_metadata_.have_unknown_fields()) { 6244 _has_bits_.Clear();
6227 mutable_unknown_fields()->Clear(); 6245 _internal_metadata_.Clear();
6228 }
6229 } 6246 }
6230 6247
6231 bool EnumValueDescriptorProto::MergePartialFromCodedStream( 6248 bool EnumValueDescriptorProto::MergePartialFromCodedStream(
6232 ::google::protobuf::io::CodedInputStream* input) { 6249 ::google::protobuf::io::CodedInputStream* input) {
6233 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 6250 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
6234 ::google::protobuf::uint32 tag; 6251 ::google::protobuf::uint32 tag;
6235 // @@protoc_insertion_point(parse_start:google.protobuf.EnumValueDescriptorPro to) 6252 // @@protoc_insertion_point(parse_start:google.protobuf.EnumValueDescriptorPro to)
6236 for (;;) { 6253 for (;;) {
6237 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127); 6254 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u);
6238 tag = p.first; 6255 tag = p.first;
6239 if (!p.second) goto handle_unusual; 6256 if (!p.second) goto handle_unusual;
6240 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 6257 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
6241 // optional string name = 1; 6258 // optional string name = 1;
6242 case 1: { 6259 case 1: {
6243 if (tag == 10) { 6260 if (tag == 10u) {
6244 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 6261 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6245 input, this->mutable_name())); 6262 input, this->mutable_name()));
6246 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 6263 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6247 this->name().data(), this->name().length(), 6264 this->name().data(), this->name().length(),
6248 ::google::protobuf::internal::WireFormat::PARSE, 6265 ::google::protobuf::internal::WireFormat::PARSE,
6249 "google.protobuf.EnumValueDescriptorProto.name"); 6266 "google.protobuf.EnumValueDescriptorProto.name");
6250 } else { 6267 } else {
6251 goto handle_unusual; 6268 goto handle_unusual;
6252 } 6269 }
6253 if (input->ExpectTag(16)) goto parse_number;
6254 break; 6270 break;
6255 } 6271 }
6256 6272
6257 // optional int32 number = 2; 6273 // optional int32 number = 2;
6258 case 2: { 6274 case 2: {
6259 if (tag == 16) { 6275 if (tag == 16u) {
6260 parse_number: 6276 set_has_number();
6261 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 6277 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6262 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>( 6278 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
6263 input, &number_))); 6279 input, &number_)));
6264 set_has_number();
6265 } else { 6280 } else {
6266 goto handle_unusual; 6281 goto handle_unusual;
6267 } 6282 }
6268 if (input->ExpectTag(26)) goto parse_options;
6269 break; 6283 break;
6270 } 6284 }
6271 6285
6272 // optional .google.protobuf.EnumValueOptions options = 3; 6286 // optional .google.protobuf.EnumValueOptions options = 3;
6273 case 3: { 6287 case 3: {
6274 if (tag == 26) { 6288 if (tag == 26u) {
6275 parse_options:
6276 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual ( 6289 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual (
6277 input, mutable_options())); 6290 input, mutable_options()));
6278 } else { 6291 } else {
6279 goto handle_unusual; 6292 goto handle_unusual;
6280 } 6293 }
6281 if (input->ExpectAtEnd()) goto success;
6282 break; 6294 break;
6283 } 6295 }
6284 6296
6285 default: { 6297 default: {
6286 handle_unusual: 6298 handle_unusual:
6287 if (tag == 0 || 6299 if (tag == 0 ||
6288 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 6300 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6289 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 6301 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
6290 goto success; 6302 goto success;
6291 } 6303 }
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
6328 3, *this->options_, output); 6340 3, *this->options_, output);
6329 } 6341 }
6330 6342
6331 if (_internal_metadata_.have_unknown_fields()) { 6343 if (_internal_metadata_.have_unknown_fields()) {
6332 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 6344 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6333 unknown_fields(), output); 6345 unknown_fields(), output);
6334 } 6346 }
6335 // @@protoc_insertion_point(serialize_end:google.protobuf.EnumValueDescriptorP roto) 6347 // @@protoc_insertion_point(serialize_end:google.protobuf.EnumValueDescriptorP roto)
6336 } 6348 }
6337 6349
6338 ::google::protobuf::uint8* EnumValueDescriptorProto::SerializeWithCachedSizesToA rray( 6350 ::google::protobuf::uint8* EnumValueDescriptorProto::InternalSerializeWithCached SizesToArray(
6339 ::google::protobuf::uint8* target) const { 6351 bool deterministic, ::google::protobuf::uint8* target) const {
6352 (void)deterministic; // Unused
6340 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValue DescriptorProto) 6353 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValue DescriptorProto)
6341 // optional string name = 1; 6354 // optional string name = 1;
6342 if (has_name()) { 6355 if (has_name()) {
6343 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 6356 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6344 this->name().data(), this->name().length(), 6357 this->name().data(), this->name().length(),
6345 ::google::protobuf::internal::WireFormat::SERIALIZE, 6358 ::google::protobuf::internal::WireFormat::SERIALIZE,
6346 "google.protobuf.EnumValueDescriptorProto.name"); 6359 "google.protobuf.EnumValueDescriptorProto.name");
6347 target = 6360 target =
6348 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 6361 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6349 1, this->name(), target); 6362 1, this->name(), target);
6350 } 6363 }
6351 6364
6352 // optional int32 number = 2; 6365 // optional int32 number = 2;
6353 if (has_number()) { 6366 if (has_number()) {
6354 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->number(), target); 6367 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->number(), target);
6355 } 6368 }
6356 6369
6357 // optional .google.protobuf.EnumValueOptions options = 3; 6370 // optional .google.protobuf.EnumValueOptions options = 3;
6358 if (has_options()) { 6371 if (has_options()) {
6359 target = ::google::protobuf::internal::WireFormatLite:: 6372 target = ::google::protobuf::internal::WireFormatLite::
6360 WriteMessageNoVirtualToArray( 6373 InternalWriteMessageNoVirtualToArray(
6361 3, *this->options_, target); 6374 3, *this->options_, false, target);
6362 } 6375 }
6363 6376
6364 if (_internal_metadata_.have_unknown_fields()) { 6377 if (_internal_metadata_.have_unknown_fields()) {
6365 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 6378 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
6366 unknown_fields(), target); 6379 unknown_fields(), target);
6367 } 6380 }
6368 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumValueDe scriptorProto) 6381 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumValueDe scriptorProto)
6369 return target; 6382 return target;
6370 } 6383 }
6371 6384
6372 int EnumValueDescriptorProto::ByteSize() const { 6385 size_t EnumValueDescriptorProto::ByteSizeLong() const {
6373 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumValueDes criptorProto) 6386 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumValueDes criptorProto)
6374 int total_size = 0; 6387 size_t total_size = 0;
6375 6388
6389 if (_internal_metadata_.have_unknown_fields()) {
6390 total_size +=
6391 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6392 unknown_fields());
6393 }
6376 if (_has_bits_[0 / 32] & 7u) { 6394 if (_has_bits_[0 / 32] & 7u) {
6377 // optional string name = 1; 6395 // optional string name = 1;
6378 if (has_name()) { 6396 if (has_name()) {
6379 total_size += 1 + 6397 total_size += 1 +
6380 ::google::protobuf::internal::WireFormatLite::StringSize( 6398 ::google::protobuf::internal::WireFormatLite::StringSize(
6381 this->name()); 6399 this->name());
6382 } 6400 }
6383 6401
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; 6402 // optional .google.protobuf.EnumValueOptions options = 3;
6392 if (has_options()) { 6403 if (has_options()) {
6393 total_size += 1 + 6404 total_size += 1 +
6394 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( 6405 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6395 *this->options_); 6406 *this->options_);
6396 } 6407 }
6397 6408
6409 // optional int32 number = 2;
6410 if (has_number()) {
6411 total_size += 1 +
6412 ::google::protobuf::internal::WireFormatLite::Int32Size(
6413 this->number());
6414 }
6415
6398 } 6416 }
6399 if (_internal_metadata_.have_unknown_fields()) { 6417 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(); 6418 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6405 _cached_size_ = total_size; 6419 _cached_size_ = cached_size;
6406 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 6420 GOOGLE_SAFE_CONCURRENT_WRITES_END();
6407 return total_size; 6421 return total_size;
6408 } 6422 }
6409 6423
6410 void EnumValueDescriptorProto::MergeFrom(const ::google::protobuf::Message& from ) { 6424 void EnumValueDescriptorProto::MergeFrom(const ::google::protobuf::Message& from ) {
6411 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumVal ueDescriptorProto) 6425 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumVal ueDescriptorProto)
6412 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 6426 GOOGLE_DCHECK_NE(&from, this);
6413 const EnumValueDescriptorProto* source = 6427 const EnumValueDescriptorProto* source =
6414 ::google::protobuf::internal::DynamicCastToGenerated<const EnumValueDescri ptorProto>( 6428 ::google::protobuf::internal::DynamicCastToGenerated<const EnumValueDescri ptorProto>(
6415 &from); 6429 &from);
6416 if (source == NULL) { 6430 if (source == NULL) {
6417 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.E numValueDescriptorProto) 6431 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.E numValueDescriptorProto)
6418 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 6432 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6419 } else { 6433 } else {
6420 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.EnumValueDescriptorProto) 6434 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.EnumValueDescriptorProto)
6421 MergeFrom(*source); 6435 MergeFrom(*source);
6422 } 6436 }
6423 } 6437 }
6424 6438
6425 void EnumValueDescriptorProto::MergeFrom(const EnumValueDescriptorProto& from) { 6439 void EnumValueDescriptorProto::MergeFrom(const EnumValueDescriptorProto& from) {
6426 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Enum ValueDescriptorProto) 6440 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Enum ValueDescriptorProto)
6427 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 6441 GOOGLE_DCHECK_NE(&from, this);
6428 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { 6442 _internal_metadata_.MergeFrom(from._internal_metadata_);
6443 if (from._has_bits_[0 / 32] & 7u) {
6429 if (from.has_name()) { 6444 if (from.has_name()) {
6430 set_has_name(); 6445 set_has_name();
6431 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), from.name_); 6446 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), from.name_);
6432 } 6447 }
6448 if (from.has_options()) {
6449 mutable_options()->::google::protobuf::EnumValueOptions::MergeFrom(from.op tions());
6450 }
6433 if (from.has_number()) { 6451 if (from.has_number()) {
6434 set_number(from.number()); 6452 set_number(from.number());
6435 } 6453 }
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 } 6454 }
6443 } 6455 }
6444 6456
6445 void EnumValueDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { 6457 void EnumValueDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
6446 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumValu eDescriptorProto) 6458 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumValu eDescriptorProto)
6447 if (&from == this) return; 6459 if (&from == this) return;
6448 Clear(); 6460 Clear();
6449 MergeFrom(from); 6461 MergeFrom(from);
6450 } 6462 }
6451 6463
6452 void EnumValueDescriptorProto::CopyFrom(const EnumValueDescriptorProto& from) { 6464 void EnumValueDescriptorProto::CopyFrom(const EnumValueDescriptorProto& from) {
6453 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumV alueDescriptorProto) 6465 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumV alueDescriptorProto)
6454 if (&from == this) return; 6466 if (&from == this) return;
6455 Clear(); 6467 Clear();
6456 MergeFrom(from); 6468 MergeFrom(from);
6457 } 6469 }
6458 6470
6459 bool EnumValueDescriptorProto::IsInitialized() const { 6471 bool EnumValueDescriptorProto::IsInitialized() const {
6460
6461 if (has_options()) { 6472 if (has_options()) {
6462 if (!this->options_->IsInitialized()) return false; 6473 if (!this->options_->IsInitialized()) return false;
6463 } 6474 }
6464 return true; 6475 return true;
6465 } 6476 }
6466 6477
6467 void EnumValueDescriptorProto::Swap(EnumValueDescriptorProto* other) { 6478 void EnumValueDescriptorProto::Swap(EnumValueDescriptorProto* other) {
6468 if (other == this) return; 6479 if (other == this) return;
6469 InternalSwap(other); 6480 InternalSwap(other);
6470 } 6481 }
6471 void EnumValueDescriptorProto::InternalSwap(EnumValueDescriptorProto* other) { 6482 void EnumValueDescriptorProto::InternalSwap(EnumValueDescriptorProto* other) {
6472 name_.Swap(&other->name_); 6483 name_.Swap(&other->name_);
6484 std::swap(options_, other->options_);
6473 std::swap(number_, other->number_); 6485 std::swap(number_, other->number_);
6474 std::swap(options_, other->options_);
6475 std::swap(_has_bits_[0], other->_has_bits_[0]); 6486 std::swap(_has_bits_[0], other->_has_bits_[0]);
6476 _internal_metadata_.Swap(&other->_internal_metadata_); 6487 _internal_metadata_.Swap(&other->_internal_metadata_);
6477 std::swap(_cached_size_, other->_cached_size_); 6488 std::swap(_cached_size_, other->_cached_size_);
6478 } 6489 }
6479 6490
6480 ::google::protobuf::Metadata EnumValueDescriptorProto::GetMetadata() const { 6491 ::google::protobuf::Metadata EnumValueDescriptorProto::GetMetadata() const {
6481 protobuf_AssignDescriptorsOnce(); 6492 protobuf_AssignDescriptorsOnce();
6482 ::google::protobuf::Metadata metadata; 6493 return file_level_metadata[8];
6483 metadata.descriptor = EnumValueDescriptorProto_descriptor_;
6484 metadata.reflection = EnumValueDescriptorProto_reflection_;
6485 return metadata;
6486 } 6494 }
6487 6495
6488 #if PROTOBUF_INLINE_NOT_IN_HEADERS 6496 #if PROTOBUF_INLINE_NOT_IN_HEADERS
6489 // EnumValueDescriptorProto 6497 // EnumValueDescriptorProto
6490 6498
6491 // optional string name = 1; 6499 // optional string name = 1;
6492 bool EnumValueDescriptorProto::has_name() const { 6500 bool EnumValueDescriptorProto::has_name() const {
6493 return (_has_bits_[0] & 0x00000001u) != 0; 6501 return (_has_bits_[0] & 0x00000001u) != 0;
6494 } 6502 }
6495 void EnumValueDescriptorProto::set_has_name() { 6503 void EnumValueDescriptorProto::set_has_name() {
6496 _has_bits_[0] |= 0x00000001u; 6504 _has_bits_[0] |= 0x00000001u;
6497 } 6505 }
6498 void EnumValueDescriptorProto::clear_has_name() { 6506 void EnumValueDescriptorProto::clear_has_name() {
6499 _has_bits_[0] &= ~0x00000001u; 6507 _has_bits_[0] &= ~0x00000001u;
6500 } 6508 }
6501 void EnumValueDescriptorProto::clear_name() { 6509 void EnumValueDescriptorProto::clear_name() {
6502 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 6510 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
6503 clear_has_name(); 6511 clear_has_name();
6504 } 6512 }
6505 const ::std::string& EnumValueDescriptorProto::name() const { 6513 const ::std::string& EnumValueDescriptorProto::name() const {
6506 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto .name) 6514 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto .name)
6507 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited()); 6515 return name_.GetNoArena();
6508 } 6516 }
6509 void EnumValueDescriptorProto::set_name(const ::std::string& value) { 6517 void EnumValueDescriptorProto::set_name(const ::std::string& value) {
6510 set_has_name(); 6518 set_has_name();
6511 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 6519 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
6512 // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto .name) 6520 // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto .name)
6513 } 6521 }
6514 void EnumValueDescriptorProto::set_name(const char* value) { 6522 void EnumValueDescriptorProto::set_name(const char* value) {
6515 set_has_name(); 6523 set_has_name();
6516 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 6524 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
6517 // @@protoc_insertion_point(field_set_char:google.protobuf.EnumValueDescriptor Proto.name) 6525 // @@protoc_insertion_point(field_set_char:google.protobuf.EnumValueDescriptor Proto.name)
6518 } 6526 }
6519 void EnumValueDescriptorProto::set_name(const char* value, size_t size) { 6527 void EnumValueDescriptorProto::set_name(const char* value, size_t size) {
6520 set_has_name(); 6528 set_has_name();
6521 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 6529 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6522 ::std::string(reinterpret_cast<const char*>(value), size)); 6530 ::std::string(reinterpret_cast<const char*>(value), size));
6523 // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumValueDescrip torProto.name) 6531 // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumValueDescrip torProto.name)
6524 } 6532 }
6525 ::std::string* EnumValueDescriptorProto::mutable_name() { 6533 ::std::string* EnumValueDescriptorProto::mutable_name() {
6526 set_has_name(); 6534 set_has_name();
6527 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorP roto.name) 6535 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorP roto.name)
6528 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 6536 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
6529 } 6537 }
6530 ::std::string* EnumValueDescriptorProto::release_name() { 6538 ::std::string* EnumValueDescriptorProto::release_name() {
6531 // @@protoc_insertion_point(field_release:google.protobuf.EnumValueDescriptorP roto.name) 6539 // @@protoc_insertion_point(field_release:google.protobuf.EnumValueDescriptorP roto.name)
6532 clear_has_name(); 6540 clear_has_name();
6533 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 6541 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
6534 } 6542 }
6535 void EnumValueDescriptorProto::set_allocated_name(::std::string* name) { 6543 void EnumValueDescriptorProto::set_allocated_name(::std::string* name) {
6536 if (name != NULL) { 6544 if (name != NULL) {
6537 set_has_name(); 6545 set_has_name();
6538 } else { 6546 } else {
6539 clear_has_name(); 6547 clear_has_name();
6540 } 6548 }
6541 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name); 6549 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name);
6542 // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValueDescr iptorProto.name) 6550 // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValueDescr iptorProto.name)
6543 } 6551 }
6544 6552
6545 // optional int32 number = 2; 6553 // optional int32 number = 2;
6546 bool EnumValueDescriptorProto::has_number() const { 6554 bool EnumValueDescriptorProto::has_number() const {
6547 return (_has_bits_[0] & 0x00000002u) != 0; 6555 return (_has_bits_[0] & 0x00000004u) != 0;
6548 } 6556 }
6549 void EnumValueDescriptorProto::set_has_number() { 6557 void EnumValueDescriptorProto::set_has_number() {
6550 _has_bits_[0] |= 0x00000002u; 6558 _has_bits_[0] |= 0x00000004u;
6551 } 6559 }
6552 void EnumValueDescriptorProto::clear_has_number() { 6560 void EnumValueDescriptorProto::clear_has_number() {
6553 _has_bits_[0] &= ~0x00000002u; 6561 _has_bits_[0] &= ~0x00000004u;
6554 } 6562 }
6555 void EnumValueDescriptorProto::clear_number() { 6563 void EnumValueDescriptorProto::clear_number() {
6556 number_ = 0; 6564 number_ = 0;
6557 clear_has_number(); 6565 clear_has_number();
6558 } 6566 }
6559 ::google::protobuf::int32 EnumValueDescriptorProto::number() const { 6567 ::google::protobuf::int32 EnumValueDescriptorProto::number() const {
6560 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto .number) 6568 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto .number)
6561 return number_; 6569 return number_;
6562 } 6570 }
6563 void EnumValueDescriptorProto::set_number(::google::protobuf::int32 value) { 6571 void EnumValueDescriptorProto::set_number(::google::protobuf::int32 value) {
6564 set_has_number(); 6572 set_has_number();
6565 number_ = value; 6573 number_ = value;
6566 // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto .number) 6574 // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto .number)
6567 } 6575 }
6568 6576
6569 // optional .google.protobuf.EnumValueOptions options = 3; 6577 // optional .google.protobuf.EnumValueOptions options = 3;
6570 bool EnumValueDescriptorProto::has_options() const { 6578 bool EnumValueDescriptorProto::has_options() const {
6571 return (_has_bits_[0] & 0x00000004u) != 0; 6579 return (_has_bits_[0] & 0x00000002u) != 0;
6572 } 6580 }
6573 void EnumValueDescriptorProto::set_has_options() { 6581 void EnumValueDescriptorProto::set_has_options() {
6574 _has_bits_[0] |= 0x00000004u; 6582 _has_bits_[0] |= 0x00000002u;
6575 } 6583 }
6576 void EnumValueDescriptorProto::clear_has_options() { 6584 void EnumValueDescriptorProto::clear_has_options() {
6577 _has_bits_[0] &= ~0x00000004u; 6585 _has_bits_[0] &= ~0x00000002u;
6578 } 6586 }
6579 void EnumValueDescriptorProto::clear_options() { 6587 void EnumValueDescriptorProto::clear_options() {
6580 if (options_ != NULL) options_->::google::protobuf::EnumValueOptions::Clear(); 6588 if (options_ != NULL) options_->::google::protobuf::EnumValueOptions::Clear();
6581 clear_has_options(); 6589 clear_has_options();
6582 } 6590 }
6583 const ::google::protobuf::EnumValueOptions& EnumValueDescriptorProto::options() const { 6591 const ::google::protobuf::EnumValueOptions& EnumValueDescriptorProto::options() const {
6584 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto .options) 6592 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto .options)
6585 return options_ != NULL ? *options_ : *default_instance_->options_; 6593 return options_ != NULL ? *options_
6594 : *::google::protobuf::EnumValueOptions::internal_defau lt_instance();
6586 } 6595 }
6587 ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::mutable_options( ) { 6596 ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::mutable_options( ) {
6588 set_has_options(); 6597 set_has_options();
6589 if (options_ == NULL) { 6598 if (options_ == NULL) {
6590 options_ = new ::google::protobuf::EnumValueOptions; 6599 options_ = new ::google::protobuf::EnumValueOptions;
6591 } 6600 }
6592 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorP roto.options) 6601 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorP roto.options)
6593 return options_; 6602 return options_;
6594 } 6603 }
6595 ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::release_options( ) { 6604 ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::release_options( ) {
(...skipping 19 matching lines...) Expand all
6615 // =================================================================== 6624 // ===================================================================
6616 6625
6617 #if !defined(_MSC_VER) || _MSC_VER >= 1900 6626 #if !defined(_MSC_VER) || _MSC_VER >= 1900
6618 const int ServiceDescriptorProto::kNameFieldNumber; 6627 const int ServiceDescriptorProto::kNameFieldNumber;
6619 const int ServiceDescriptorProto::kMethodFieldNumber; 6628 const int ServiceDescriptorProto::kMethodFieldNumber;
6620 const int ServiceDescriptorProto::kOptionsFieldNumber; 6629 const int ServiceDescriptorProto::kOptionsFieldNumber;
6621 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 6630 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
6622 6631
6623 ServiceDescriptorProto::ServiceDescriptorProto() 6632 ServiceDescriptorProto::ServiceDescriptorProto()
6624 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 6633 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
6634 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
6635 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
6636 }
6625 SharedCtor(); 6637 SharedCtor();
6626 // @@protoc_insertion_point(constructor:google.protobuf.ServiceDescriptorProto ) 6638 // @@protoc_insertion_point(constructor:google.protobuf.ServiceDescriptorProto )
6627 } 6639 }
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) 6640 ServiceDescriptorProto::ServiceDescriptorProto(const ServiceDescriptorProto& fro m)
6634 : ::google::protobuf::Message(), 6641 : ::google::protobuf::Message(),
6635 _internal_metadata_(NULL) { 6642 _internal_metadata_(NULL),
6636 SharedCtor(); 6643 _has_bits_(from._has_bits_),
6637 MergeFrom(from); 6644 _cached_size_(0),
6645 method_(from.method_) {
6646 _internal_metadata_.MergeFrom(from._internal_metadata_);
6647 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
6648 if (from.has_name()) {
6649 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlready Inited(), from.name_);
6650 }
6651 if (from.has_options()) {
6652 options_ = new ::google::protobuf::ServiceOptions(*from.options_);
6653 } else {
6654 options_ = NULL;
6655 }
6638 // @@protoc_insertion_point(copy_constructor:google.protobuf.ServiceDescriptor Proto) 6656 // @@protoc_insertion_point(copy_constructor:google.protobuf.ServiceDescriptor Proto)
6639 } 6657 }
6640 6658
6641 void ServiceDescriptorProto::SharedCtor() { 6659 void ServiceDescriptorProto::SharedCtor() {
6642 ::google::protobuf::internal::GetEmptyString();
6643 _cached_size_ = 0; 6660 _cached_size_ = 0;
6644 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted()); 6661 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
6645 options_ = NULL; 6662 options_ = NULL;
6646 ::memset(_has_bits_, 0, sizeof(_has_bits_));
6647 } 6663 }
6648 6664
6649 ServiceDescriptorProto::~ServiceDescriptorProto() { 6665 ServiceDescriptorProto::~ServiceDescriptorProto() {
6650 // @@protoc_insertion_point(destructor:google.protobuf.ServiceDescriptorProto) 6666 // @@protoc_insertion_point(destructor:google.protobuf.ServiceDescriptorProto)
6651 SharedDtor(); 6667 SharedDtor();
6652 } 6668 }
6653 6669
6654 void ServiceDescriptorProto::SharedDtor() { 6670 void ServiceDescriptorProto::SharedDtor() {
6655 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d()); 6671 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d());
6656 if (this != default_instance_) { 6672 if (this != internal_default_instance()) {
6657 delete options_; 6673 delete options_;
6658 } 6674 }
6659 } 6675 }
6660 6676
6661 void ServiceDescriptorProto::SetCachedSize(int size) const { 6677 void ServiceDescriptorProto::SetCachedSize(int size) const {
6662 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 6678 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6663 _cached_size_ = size; 6679 _cached_size_ = size;
6664 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 6680 GOOGLE_SAFE_CONCURRENT_WRITES_END();
6665 } 6681 }
6666 const ::google::protobuf::Descriptor* ServiceDescriptorProto::descriptor() { 6682 const ::google::protobuf::Descriptor* ServiceDescriptorProto::descriptor() {
6667 protobuf_AssignDescriptorsOnce(); 6683 protobuf_AssignDescriptorsOnce();
6668 return ServiceDescriptorProto_descriptor_; 6684 return file_level_metadata[9].descriptor;
6669 } 6685 }
6670 6686
6671 const ServiceDescriptorProto& ServiceDescriptorProto::default_instance() { 6687 const ServiceDescriptorProto& ServiceDescriptorProto::default_instance() {
6672 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 6688 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
6673 return *default_instance_; 6689 return *internal_default_instance();
6674 } 6690 }
6675 6691
6676 ServiceDescriptorProto* ServiceDescriptorProto::default_instance_ = NULL;
6677
6678 ServiceDescriptorProto* ServiceDescriptorProto::New(::google::protobuf::Arena* a rena) const { 6692 ServiceDescriptorProto* ServiceDescriptorProto::New(::google::protobuf::Arena* a rena) const {
6679 ServiceDescriptorProto* n = new ServiceDescriptorProto; 6693 ServiceDescriptorProto* n = new ServiceDescriptorProto;
6680 if (arena != NULL) { 6694 if (arena != NULL) {
6681 arena->Own(n); 6695 arena->Own(n);
6682 } 6696 }
6683 return n; 6697 return n;
6684 } 6698 }
6685 6699
6686 void ServiceDescriptorProto::Clear() { 6700 void ServiceDescriptorProto::Clear() {
6687 // @@protoc_insertion_point(message_clear_start:google.protobuf.ServiceDescripto rProto) 6701 // @@protoc_insertion_point(message_clear_start:google.protobuf.ServiceDescripto rProto)
6688 if (_has_bits_[0 / 32] & 5u) { 6702 method_.Clear();
6703 if (_has_bits_[0 / 32] & 3u) {
6689 if (has_name()) { 6704 if (has_name()) {
6690 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited()); 6705 GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited()));
6706 (*name_.UnsafeRawStringPointer())->clear();
6691 } 6707 }
6692 if (has_options()) { 6708 if (has_options()) {
6693 if (options_ != NULL) options_->::google::protobuf::ServiceOptions::Clear( ); 6709 GOOGLE_DCHECK(options_ != NULL);
6710 options_->::google::protobuf::ServiceOptions::Clear();
6694 } 6711 }
6695 } 6712 }
6696 method_.Clear(); 6713 _has_bits_.Clear();
6697 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 6714 _internal_metadata_.Clear();
6698 if (_internal_metadata_.have_unknown_fields()) {
6699 mutable_unknown_fields()->Clear();
6700 }
6701 } 6715 }
6702 6716
6703 bool ServiceDescriptorProto::MergePartialFromCodedStream( 6717 bool ServiceDescriptorProto::MergePartialFromCodedStream(
6704 ::google::protobuf::io::CodedInputStream* input) { 6718 ::google::protobuf::io::CodedInputStream* input) {
6705 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 6719 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
6706 ::google::protobuf::uint32 tag; 6720 ::google::protobuf::uint32 tag;
6707 // @@protoc_insertion_point(parse_start:google.protobuf.ServiceDescriptorProto ) 6721 // @@protoc_insertion_point(parse_start:google.protobuf.ServiceDescriptorProto )
6708 for (;;) { 6722 for (;;) {
6709 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127); 6723 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u);
6710 tag = p.first; 6724 tag = p.first;
6711 if (!p.second) goto handle_unusual; 6725 if (!p.second) goto handle_unusual;
6712 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 6726 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
6713 // optional string name = 1; 6727 // optional string name = 1;
6714 case 1: { 6728 case 1: {
6715 if (tag == 10) { 6729 if (tag == 10u) {
6716 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 6730 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6717 input, this->mutable_name())); 6731 input, this->mutable_name()));
6718 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 6732 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6719 this->name().data(), this->name().length(), 6733 this->name().data(), this->name().length(),
6720 ::google::protobuf::internal::WireFormat::PARSE, 6734 ::google::protobuf::internal::WireFormat::PARSE,
6721 "google.protobuf.ServiceDescriptorProto.name"); 6735 "google.protobuf.ServiceDescriptorProto.name");
6722 } else { 6736 } else {
6723 goto handle_unusual; 6737 goto handle_unusual;
6724 } 6738 }
6725 if (input->ExpectTag(18)) goto parse_method;
6726 break; 6739 break;
6727 } 6740 }
6728 6741
6729 // repeated .google.protobuf.MethodDescriptorProto method = 2; 6742 // repeated .google.protobuf.MethodDescriptorProto method = 2;
6730 case 2: { 6743 case 2: {
6731 if (tag == 18) { 6744 if (tag == 18u) {
6732 parse_method:
6733 DO_(input->IncrementRecursionDepth()); 6745 DO_(input->IncrementRecursionDepth());
6734 parse_loop_method:
6735 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 6746 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
6736 input, add_method())); 6747 input, add_method()));
6737 } else { 6748 } else {
6738 goto handle_unusual; 6749 goto handle_unusual;
6739 } 6750 }
6740 if (input->ExpectTag(18)) goto parse_loop_method;
6741 input->UnsafeDecrementRecursionDepth(); 6751 input->UnsafeDecrementRecursionDepth();
6742 if (input->ExpectTag(26)) goto parse_options;
6743 break; 6752 break;
6744 } 6753 }
6745 6754
6746 // optional .google.protobuf.ServiceOptions options = 3; 6755 // optional .google.protobuf.ServiceOptions options = 3;
6747 case 3: { 6756 case 3: {
6748 if (tag == 26) { 6757 if (tag == 26u) {
6749 parse_options:
6750 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual ( 6758 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual (
6751 input, mutable_options())); 6759 input, mutable_options()));
6752 } else { 6760 } else {
6753 goto handle_unusual; 6761 goto handle_unusual;
6754 } 6762 }
6755 if (input->ExpectAtEnd()) goto success;
6756 break; 6763 break;
6757 } 6764 }
6758 6765
6759 default: { 6766 default: {
6760 handle_unusual: 6767 handle_unusual:
6761 if (tag == 0 || 6768 if (tag == 0 ||
6762 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 6769 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6763 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 6770 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
6764 goto success; 6771 goto success;
6765 } 6772 }
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
6803 3, *this->options_, output); 6810 3, *this->options_, output);
6804 } 6811 }
6805 6812
6806 if (_internal_metadata_.have_unknown_fields()) { 6813 if (_internal_metadata_.have_unknown_fields()) {
6807 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 6814 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6808 unknown_fields(), output); 6815 unknown_fields(), output);
6809 } 6816 }
6810 // @@protoc_insertion_point(serialize_end:google.protobuf.ServiceDescriptorPro to) 6817 // @@protoc_insertion_point(serialize_end:google.protobuf.ServiceDescriptorPro to)
6811 } 6818 }
6812 6819
6813 ::google::protobuf::uint8* ServiceDescriptorProto::SerializeWithCachedSizesToArr ay( 6820 ::google::protobuf::uint8* ServiceDescriptorProto::InternalSerializeWithCachedSi zesToArray(
6814 ::google::protobuf::uint8* target) const { 6821 bool deterministic, ::google::protobuf::uint8* target) const {
6822 (void)deterministic; // Unused
6815 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ServiceDe scriptorProto) 6823 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ServiceDe scriptorProto)
6816 // optional string name = 1; 6824 // optional string name = 1;
6817 if (has_name()) { 6825 if (has_name()) {
6818 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 6826 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6819 this->name().data(), this->name().length(), 6827 this->name().data(), this->name().length(),
6820 ::google::protobuf::internal::WireFormat::SERIALIZE, 6828 ::google::protobuf::internal::WireFormat::SERIALIZE,
6821 "google.protobuf.ServiceDescriptorProto.name"); 6829 "google.protobuf.ServiceDescriptorProto.name");
6822 target = 6830 target =
6823 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 6831 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6824 1, this->name(), target); 6832 1, this->name(), target);
6825 } 6833 }
6826 6834
6827 // repeated .google.protobuf.MethodDescriptorProto method = 2; 6835 // repeated .google.protobuf.MethodDescriptorProto method = 2;
6828 for (unsigned int i = 0, n = this->method_size(); i < n; i++) { 6836 for (unsigned int i = 0, n = this->method_size(); i < n; i++) {
6829 target = ::google::protobuf::internal::WireFormatLite:: 6837 target = ::google::protobuf::internal::WireFormatLite::
6830 WriteMessageNoVirtualToArray( 6838 InternalWriteMessageNoVirtualToArray(
6831 2, this->method(i), target); 6839 2, this->method(i), false, target);
6832 } 6840 }
6833 6841
6834 // optional .google.protobuf.ServiceOptions options = 3; 6842 // optional .google.protobuf.ServiceOptions options = 3;
6835 if (has_options()) { 6843 if (has_options()) {
6836 target = ::google::protobuf::internal::WireFormatLite:: 6844 target = ::google::protobuf::internal::WireFormatLite::
6837 WriteMessageNoVirtualToArray( 6845 InternalWriteMessageNoVirtualToArray(
6838 3, *this->options_, target); 6846 3, *this->options_, false, target);
6839 } 6847 }
6840 6848
6841 if (_internal_metadata_.have_unknown_fields()) { 6849 if (_internal_metadata_.have_unknown_fields()) {
6842 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 6850 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
6843 unknown_fields(), target); 6851 unknown_fields(), target);
6844 } 6852 }
6845 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ServiceDesc riptorProto) 6853 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ServiceDesc riptorProto)
6846 return target; 6854 return target;
6847 } 6855 }
6848 6856
6849 int ServiceDescriptorProto::ByteSize() const { 6857 size_t ServiceDescriptorProto::ByteSizeLong() const {
6850 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.ServiceDescr iptorProto) 6858 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.ServiceDescr iptorProto)
6851 int total_size = 0; 6859 size_t total_size = 0;
6852 6860
6853 if (_has_bits_[0 / 32] & 5u) { 6861 if (_internal_metadata_.have_unknown_fields()) {
6862 total_size +=
6863 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6864 unknown_fields());
6865 }
6866 // repeated .google.protobuf.MethodDescriptorProto method = 2;
6867 {
6868 unsigned int count = this->method_size();
6869 total_size += 1UL * count;
6870 for (unsigned int i = 0; i < count; i++) {
6871 total_size +=
6872 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6873 this->method(i));
6874 }
6875 }
6876
6877 if (_has_bits_[0 / 32] & 3u) {
6854 // optional string name = 1; 6878 // optional string name = 1;
6855 if (has_name()) { 6879 if (has_name()) {
6856 total_size += 1 + 6880 total_size += 1 +
6857 ::google::protobuf::internal::WireFormatLite::StringSize( 6881 ::google::protobuf::internal::WireFormatLite::StringSize(
6858 this->name()); 6882 this->name());
6859 } 6883 }
6860 6884
6861 // optional .google.protobuf.ServiceOptions options = 3; 6885 // optional .google.protobuf.ServiceOptions options = 3;
6862 if (has_options()) { 6886 if (has_options()) {
6863 total_size += 1 + 6887 total_size += 1 +
6864 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( 6888 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6865 *this->options_); 6889 *this->options_);
6866 } 6890 }
6867 6891
6868 } 6892 }
6869 // repeated .google.protobuf.MethodDescriptorProto method = 2; 6893 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(); 6894 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6883 _cached_size_ = total_size; 6895 _cached_size_ = cached_size;
6884 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 6896 GOOGLE_SAFE_CONCURRENT_WRITES_END();
6885 return total_size; 6897 return total_size;
6886 } 6898 }
6887 6899
6888 void ServiceDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { 6900 void ServiceDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
6889 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Service DescriptorProto) 6901 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Service DescriptorProto)
6890 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 6902 GOOGLE_DCHECK_NE(&from, this);
6891 const ServiceDescriptorProto* source = 6903 const ServiceDescriptorProto* source =
6892 ::google::protobuf::internal::DynamicCastToGenerated<const ServiceDescript orProto>( 6904 ::google::protobuf::internal::DynamicCastToGenerated<const ServiceDescript orProto>(
6893 &from); 6905 &from);
6894 if (source == NULL) { 6906 if (source == NULL) {
6895 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.S erviceDescriptorProto) 6907 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.S erviceDescriptorProto)
6896 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 6908 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6897 } else { 6909 } else {
6898 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.ServiceDescriptorProto) 6910 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.ServiceDescriptorProto)
6899 MergeFrom(*source); 6911 MergeFrom(*source);
6900 } 6912 }
6901 } 6913 }
6902 6914
6903 void ServiceDescriptorProto::MergeFrom(const ServiceDescriptorProto& from) { 6915 void ServiceDescriptorProto::MergeFrom(const ServiceDescriptorProto& from) {
6904 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Serv iceDescriptorProto) 6916 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Serv iceDescriptorProto)
6905 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 6917 GOOGLE_DCHECK_NE(&from, this);
6918 _internal_metadata_.MergeFrom(from._internal_metadata_);
6906 method_.MergeFrom(from.method_); 6919 method_.MergeFrom(from.method_);
6907 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { 6920 if (from._has_bits_[0 / 32] & 3u) {
6908 if (from.has_name()) { 6921 if (from.has_name()) {
6909 set_has_name(); 6922 set_has_name();
6910 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), from.name_); 6923 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), from.name_);
6911 } 6924 }
6912 if (from.has_options()) { 6925 if (from.has_options()) {
6913 mutable_options()->::google::protobuf::ServiceOptions::MergeFrom(from.opti ons()); 6926 mutable_options()->::google::protobuf::ServiceOptions::MergeFrom(from.opti ons());
6914 } 6927 }
6915 } 6928 }
6916 if (from._internal_metadata_.have_unknown_fields()) {
6917 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
6918 }
6919 } 6929 }
6920 6930
6921 void ServiceDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { 6931 void ServiceDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
6922 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.ServiceD escriptorProto) 6932 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.ServiceD escriptorProto)
6923 if (&from == this) return; 6933 if (&from == this) return;
6924 Clear(); 6934 Clear();
6925 MergeFrom(from); 6935 MergeFrom(from);
6926 } 6936 }
6927 6937
6928 void ServiceDescriptorProto::CopyFrom(const ServiceDescriptorProto& from) { 6938 void ServiceDescriptorProto::CopyFrom(const ServiceDescriptorProto& from) {
6929 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Servi ceDescriptorProto) 6939 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Servi ceDescriptorProto)
6930 if (&from == this) return; 6940 if (&from == this) return;
6931 Clear(); 6941 Clear();
6932 MergeFrom(from); 6942 MergeFrom(from);
6933 } 6943 }
6934 6944
6935 bool ServiceDescriptorProto::IsInitialized() const { 6945 bool ServiceDescriptorProto::IsInitialized() const {
6936
6937 if (!::google::protobuf::internal::AllAreInitialized(this->method())) return f alse; 6946 if (!::google::protobuf::internal::AllAreInitialized(this->method())) return f alse;
6938 if (has_options()) { 6947 if (has_options()) {
6939 if (!this->options_->IsInitialized()) return false; 6948 if (!this->options_->IsInitialized()) return false;
6940 } 6949 }
6941 return true; 6950 return true;
6942 } 6951 }
6943 6952
6944 void ServiceDescriptorProto::Swap(ServiceDescriptorProto* other) { 6953 void ServiceDescriptorProto::Swap(ServiceDescriptorProto* other) {
6945 if (other == this) return; 6954 if (other == this) return;
6946 InternalSwap(other); 6955 InternalSwap(other);
6947 } 6956 }
6948 void ServiceDescriptorProto::InternalSwap(ServiceDescriptorProto* other) { 6957 void ServiceDescriptorProto::InternalSwap(ServiceDescriptorProto* other) {
6958 method_.UnsafeArenaSwap(&other->method_);
6949 name_.Swap(&other->name_); 6959 name_.Swap(&other->name_);
6950 method_.UnsafeArenaSwap(&other->method_);
6951 std::swap(options_, other->options_); 6960 std::swap(options_, other->options_);
6952 std::swap(_has_bits_[0], other->_has_bits_[0]); 6961 std::swap(_has_bits_[0], other->_has_bits_[0]);
6953 _internal_metadata_.Swap(&other->_internal_metadata_); 6962 _internal_metadata_.Swap(&other->_internal_metadata_);
6954 std::swap(_cached_size_, other->_cached_size_); 6963 std::swap(_cached_size_, other->_cached_size_);
6955 } 6964 }
6956 6965
6957 ::google::protobuf::Metadata ServiceDescriptorProto::GetMetadata() const { 6966 ::google::protobuf::Metadata ServiceDescriptorProto::GetMetadata() const {
6958 protobuf_AssignDescriptorsOnce(); 6967 protobuf_AssignDescriptorsOnce();
6959 ::google::protobuf::Metadata metadata; 6968 return file_level_metadata[9];
6960 metadata.descriptor = ServiceDescriptorProto_descriptor_;
6961 metadata.reflection = ServiceDescriptorProto_reflection_;
6962 return metadata;
6963 } 6969 }
6964 6970
6965 #if PROTOBUF_INLINE_NOT_IN_HEADERS 6971 #if PROTOBUF_INLINE_NOT_IN_HEADERS
6966 // ServiceDescriptorProto 6972 // ServiceDescriptorProto
6967 6973
6968 // optional string name = 1; 6974 // optional string name = 1;
6969 bool ServiceDescriptorProto::has_name() const { 6975 bool ServiceDescriptorProto::has_name() const {
6970 return (_has_bits_[0] & 0x00000001u) != 0; 6976 return (_has_bits_[0] & 0x00000001u) != 0;
6971 } 6977 }
6972 void ServiceDescriptorProto::set_has_name() { 6978 void ServiceDescriptorProto::set_has_name() {
6973 _has_bits_[0] |= 0x00000001u; 6979 _has_bits_[0] |= 0x00000001u;
6974 } 6980 }
6975 void ServiceDescriptorProto::clear_has_name() { 6981 void ServiceDescriptorProto::clear_has_name() {
6976 _has_bits_[0] &= ~0x00000001u; 6982 _has_bits_[0] &= ~0x00000001u;
6977 } 6983 }
6978 void ServiceDescriptorProto::clear_name() { 6984 void ServiceDescriptorProto::clear_name() {
6979 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 6985 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
6980 clear_has_name(); 6986 clear_has_name();
6981 } 6987 }
6982 const ::std::string& ServiceDescriptorProto::name() const { 6988 const ::std::string& ServiceDescriptorProto::name() const {
6983 // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.n ame) 6989 // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.n ame)
6984 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited()); 6990 return name_.GetNoArena();
6985 } 6991 }
6986 void ServiceDescriptorProto::set_name(const ::std::string& value) { 6992 void ServiceDescriptorProto::set_name(const ::std::string& value) {
6987 set_has_name(); 6993 set_has_name();
6988 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 6994 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
6989 // @@protoc_insertion_point(field_set:google.protobuf.ServiceDescriptorProto.n ame) 6995 // @@protoc_insertion_point(field_set:google.protobuf.ServiceDescriptorProto.n ame)
6990 } 6996 }
6991 void ServiceDescriptorProto::set_name(const char* value) { 6997 void ServiceDescriptorProto::set_name(const char* value) {
6992 set_has_name(); 6998 set_has_name();
6993 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 6999 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
6994 // @@protoc_insertion_point(field_set_char:google.protobuf.ServiceDescriptorPr oto.name) 7000 // @@protoc_insertion_point(field_set_char:google.protobuf.ServiceDescriptorPr oto.name)
6995 } 7001 }
6996 void ServiceDescriptorProto::set_name(const char* value, size_t size) { 7002 void ServiceDescriptorProto::set_name(const char* value, size_t size) {
6997 set_has_name(); 7003 set_has_name();
6998 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 7004 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6999 ::std::string(reinterpret_cast<const char*>(value), size)); 7005 ::std::string(reinterpret_cast<const char*>(value), size));
7000 // @@protoc_insertion_point(field_set_pointer:google.protobuf.ServiceDescripto rProto.name) 7006 // @@protoc_insertion_point(field_set_pointer:google.protobuf.ServiceDescripto rProto.name)
7001 } 7007 }
7002 ::std::string* ServiceDescriptorProto::mutable_name() { 7008 ::std::string* ServiceDescriptorProto::mutable_name() {
7003 set_has_name(); 7009 set_has_name();
7004 // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorPro to.name) 7010 // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorPro to.name)
7005 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 7011 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
7006 } 7012 }
7007 ::std::string* ServiceDescriptorProto::release_name() { 7013 ::std::string* ServiceDescriptorProto::release_name() {
7008 // @@protoc_insertion_point(field_release:google.protobuf.ServiceDescriptorPro to.name) 7014 // @@protoc_insertion_point(field_release:google.protobuf.ServiceDescriptorPro to.name)
7009 clear_has_name(); 7015 clear_has_name();
7010 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 7016 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
7011 } 7017 }
7012 void ServiceDescriptorProto::set_allocated_name(::std::string* name) { 7018 void ServiceDescriptorProto::set_allocated_name(::std::string* name) {
7013 if (name != NULL) { 7019 if (name != NULL) {
7014 set_has_name(); 7020 set_has_name();
7015 } else { 7021 } else {
7016 clear_has_name(); 7022 clear_has_name();
7017 } 7023 }
7018 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name); 7024 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name);
7019 // @@protoc_insertion_point(field_set_allocated:google.protobuf.ServiceDescrip torProto.name) 7025 // @@protoc_insertion_point(field_set_allocated:google.protobuf.ServiceDescrip torProto.name)
7020 } 7026 }
7021 7027
7022 // repeated .google.protobuf.MethodDescriptorProto method = 2; 7028 // repeated .google.protobuf.MethodDescriptorProto method = 2;
(...skipping 21 matching lines...) Expand all
7044 return &method_; 7050 return &method_;
7045 } 7051 }
7046 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptor Proto >& 7052 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptor Proto >&
7047 ServiceDescriptorProto::method() const { 7053 ServiceDescriptorProto::method() const {
7048 // @@protoc_insertion_point(field_list:google.protobuf.ServiceDescriptorProto. method) 7054 // @@protoc_insertion_point(field_list:google.protobuf.ServiceDescriptorProto. method)
7049 return method_; 7055 return method_;
7050 } 7056 }
7051 7057
7052 // optional .google.protobuf.ServiceOptions options = 3; 7058 // optional .google.protobuf.ServiceOptions options = 3;
7053 bool ServiceDescriptorProto::has_options() const { 7059 bool ServiceDescriptorProto::has_options() const {
7054 return (_has_bits_[0] & 0x00000004u) != 0; 7060 return (_has_bits_[0] & 0x00000002u) != 0;
7055 } 7061 }
7056 void ServiceDescriptorProto::set_has_options() { 7062 void ServiceDescriptorProto::set_has_options() {
7057 _has_bits_[0] |= 0x00000004u; 7063 _has_bits_[0] |= 0x00000002u;
7058 } 7064 }
7059 void ServiceDescriptorProto::clear_has_options() { 7065 void ServiceDescriptorProto::clear_has_options() {
7060 _has_bits_[0] &= ~0x00000004u; 7066 _has_bits_[0] &= ~0x00000002u;
7061 } 7067 }
7062 void ServiceDescriptorProto::clear_options() { 7068 void ServiceDescriptorProto::clear_options() {
7063 if (options_ != NULL) options_->::google::protobuf::ServiceOptions::Clear(); 7069 if (options_ != NULL) options_->::google::protobuf::ServiceOptions::Clear();
7064 clear_has_options(); 7070 clear_has_options();
7065 } 7071 }
7066 const ::google::protobuf::ServiceOptions& ServiceDescriptorProto::options() cons t { 7072 const ::google::protobuf::ServiceOptions& ServiceDescriptorProto::options() cons t {
7067 // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.o ptions) 7073 // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.o ptions)
7068 return options_ != NULL ? *options_ : *default_instance_->options_; 7074 return options_ != NULL ? *options_
7075 : *::google::protobuf::ServiceOptions::internal_default _instance();
7069 } 7076 }
7070 ::google::protobuf::ServiceOptions* ServiceDescriptorProto::mutable_options() { 7077 ::google::protobuf::ServiceOptions* ServiceDescriptorProto::mutable_options() {
7071 set_has_options(); 7078 set_has_options();
7072 if (options_ == NULL) { 7079 if (options_ == NULL) {
7073 options_ = new ::google::protobuf::ServiceOptions; 7080 options_ = new ::google::protobuf::ServiceOptions;
7074 } 7081 }
7075 // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorPro to.options) 7082 // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorPro to.options)
7076 return options_; 7083 return options_;
7077 } 7084 }
7078 ::google::protobuf::ServiceOptions* ServiceDescriptorProto::release_options() { 7085 ::google::protobuf::ServiceOptions* ServiceDescriptorProto::release_options() {
(...skipping 22 matching lines...) Expand all
7101 const int MethodDescriptorProto::kNameFieldNumber; 7108 const int MethodDescriptorProto::kNameFieldNumber;
7102 const int MethodDescriptorProto::kInputTypeFieldNumber; 7109 const int MethodDescriptorProto::kInputTypeFieldNumber;
7103 const int MethodDescriptorProto::kOutputTypeFieldNumber; 7110 const int MethodDescriptorProto::kOutputTypeFieldNumber;
7104 const int MethodDescriptorProto::kOptionsFieldNumber; 7111 const int MethodDescriptorProto::kOptionsFieldNumber;
7105 const int MethodDescriptorProto::kClientStreamingFieldNumber; 7112 const int MethodDescriptorProto::kClientStreamingFieldNumber;
7106 const int MethodDescriptorProto::kServerStreamingFieldNumber; 7113 const int MethodDescriptorProto::kServerStreamingFieldNumber;
7107 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 7114 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
7108 7115
7109 MethodDescriptorProto::MethodDescriptorProto() 7116 MethodDescriptorProto::MethodDescriptorProto()
7110 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 7117 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
7118 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
7119 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
7120 }
7111 SharedCtor(); 7121 SharedCtor();
7112 // @@protoc_insertion_point(constructor:google.protobuf.MethodDescriptorProto) 7122 // @@protoc_insertion_point(constructor:google.protobuf.MethodDescriptorProto)
7113 } 7123 }
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) 7124 MethodDescriptorProto::MethodDescriptorProto(const MethodDescriptorProto& from)
7120 : ::google::protobuf::Message(), 7125 : ::google::protobuf::Message(),
7121 _internal_metadata_(NULL) { 7126 _internal_metadata_(NULL),
7122 SharedCtor(); 7127 _has_bits_(from._has_bits_),
7123 MergeFrom(from); 7128 _cached_size_(0) {
7129 _internal_metadata_.MergeFrom(from._internal_metadata_);
7130 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
7131 if (from.has_name()) {
7132 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlready Inited(), from.name_);
7133 }
7134 input_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlre adyInited());
7135 if (from.has_input_type()) {
7136 input_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringA lreadyInited(), from.input_type_);
7137 }
7138 output_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlr eadyInited());
7139 if (from.has_output_type()) {
7140 output_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyString AlreadyInited(), from.output_type_);
7141 }
7142 if (from.has_options()) {
7143 options_ = new ::google::protobuf::MethodOptions(*from.options_);
7144 } else {
7145 options_ = NULL;
7146 }
7147 ::memcpy(&client_streaming_, &from.client_streaming_,
7148 reinterpret_cast<char*>(&server_streaming_) -
7149 reinterpret_cast<char*>(&client_streaming_) + sizeof(server_streaming_));
7124 // @@protoc_insertion_point(copy_constructor:google.protobuf.MethodDescriptorP roto) 7150 // @@protoc_insertion_point(copy_constructor:google.protobuf.MethodDescriptorP roto)
7125 } 7151 }
7126 7152
7127 void MethodDescriptorProto::SharedCtor() { 7153 void MethodDescriptorProto::SharedCtor() {
7128 ::google::protobuf::internal::GetEmptyString();
7129 _cached_size_ = 0; 7154 _cached_size_ = 0;
7130 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted()); 7155 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
7131 input_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlre adyInited()); 7156 input_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlre adyInited());
7132 output_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlr eadyInited()); 7157 output_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlr eadyInited());
7133 options_ = NULL; 7158 ::memset(&options_, 0, reinterpret_cast<char*>(&server_streaming_) -
7134 client_streaming_ = false; 7159 reinterpret_cast<char*>(&options_) + sizeof(server_streaming_));
7135 server_streaming_ = false;
7136 ::memset(_has_bits_, 0, sizeof(_has_bits_));
7137 } 7160 }
7138 7161
7139 MethodDescriptorProto::~MethodDescriptorProto() { 7162 MethodDescriptorProto::~MethodDescriptorProto() {
7140 // @@protoc_insertion_point(destructor:google.protobuf.MethodDescriptorProto) 7163 // @@protoc_insertion_point(destructor:google.protobuf.MethodDescriptorProto)
7141 SharedDtor(); 7164 SharedDtor();
7142 } 7165 }
7143 7166
7144 void MethodDescriptorProto::SharedDtor() { 7167 void MethodDescriptorProto::SharedDtor() {
7145 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d()); 7168 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d());
7146 input_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlread yInited()); 7169 input_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlread yInited());
7147 output_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 7170 output_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
7148 if (this != default_instance_) { 7171 if (this != internal_default_instance()) {
7149 delete options_; 7172 delete options_;
7150 } 7173 }
7151 } 7174 }
7152 7175
7153 void MethodDescriptorProto::SetCachedSize(int size) const { 7176 void MethodDescriptorProto::SetCachedSize(int size) const {
7154 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 7177 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7155 _cached_size_ = size; 7178 _cached_size_ = size;
7156 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 7179 GOOGLE_SAFE_CONCURRENT_WRITES_END();
7157 } 7180 }
7158 const ::google::protobuf::Descriptor* MethodDescriptorProto::descriptor() { 7181 const ::google::protobuf::Descriptor* MethodDescriptorProto::descriptor() {
7159 protobuf_AssignDescriptorsOnce(); 7182 protobuf_AssignDescriptorsOnce();
7160 return MethodDescriptorProto_descriptor_; 7183 return file_level_metadata[10].descriptor;
7161 } 7184 }
7162 7185
7163 const MethodDescriptorProto& MethodDescriptorProto::default_instance() { 7186 const MethodDescriptorProto& MethodDescriptorProto::default_instance() {
7164 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 7187 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
7165 return *default_instance_; 7188 return *internal_default_instance();
7166 } 7189 }
7167 7190
7168 MethodDescriptorProto* MethodDescriptorProto::default_instance_ = NULL;
7169
7170 MethodDescriptorProto* MethodDescriptorProto::New(::google::protobuf::Arena* are na) const { 7191 MethodDescriptorProto* MethodDescriptorProto::New(::google::protobuf::Arena* are na) const {
7171 MethodDescriptorProto* n = new MethodDescriptorProto; 7192 MethodDescriptorProto* n = new MethodDescriptorProto;
7172 if (arena != NULL) { 7193 if (arena != NULL) {
7173 arena->Own(n); 7194 arena->Own(n);
7174 } 7195 }
7175 return n; 7196 return n;
7176 } 7197 }
7177 7198
7178 void MethodDescriptorProto::Clear() { 7199 void MethodDescriptorProto::Clear() {
7179 // @@protoc_insertion_point(message_clear_start:google.protobuf.MethodDescriptor Proto) 7200 // @@protoc_insertion_point(message_clear_start:google.protobuf.MethodDescriptor Proto)
7180 #if defined(__clang__) 7201 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()) { 7202 if (has_name()) {
7199 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited()); 7203 GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited()));
7204 (*name_.UnsafeRawStringPointer())->clear();
7200 } 7205 }
7201 if (has_input_type()) { 7206 if (has_input_type()) {
7202 input_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited()); 7207 GOOGLE_DCHECK(!input_type_.IsDefault(&::google::protobuf::internal::GetEmp tyStringAlreadyInited()));
7208 (*input_type_.UnsafeRawStringPointer())->clear();
7203 } 7209 }
7204 if (has_output_type()) { 7210 if (has_output_type()) {
7205 output_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptySt ringAlreadyInited()); 7211 GOOGLE_DCHECK(!output_type_.IsDefault(&::google::protobuf::internal::GetEm ptyStringAlreadyInited()));
7212 (*output_type_.UnsafeRawStringPointer())->clear();
7206 } 7213 }
7207 if (has_options()) { 7214 if (has_options()) {
7208 if (options_ != NULL) options_->::google::protobuf::MethodOptions::Clear() ; 7215 GOOGLE_DCHECK(options_ != NULL);
7216 options_->::google::protobuf::MethodOptions::Clear();
7209 } 7217 }
7210 } 7218 }
7211 7219 if (_has_bits_[0 / 32] & 48u) {
7212 #undef ZR_HELPER_ 7220 ::memset(&client_streaming_, 0, reinterpret_cast<char*>(&server_streaming_) -
7213 #undef ZR_ 7221 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 } 7222 }
7223 _has_bits_.Clear();
7224 _internal_metadata_.Clear();
7219 } 7225 }
7220 7226
7221 bool MethodDescriptorProto::MergePartialFromCodedStream( 7227 bool MethodDescriptorProto::MergePartialFromCodedStream(
7222 ::google::protobuf::io::CodedInputStream* input) { 7228 ::google::protobuf::io::CodedInputStream* input) {
7223 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 7229 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
7224 ::google::protobuf::uint32 tag; 7230 ::google::protobuf::uint32 tag;
7225 // @@protoc_insertion_point(parse_start:google.protobuf.MethodDescriptorProto) 7231 // @@protoc_insertion_point(parse_start:google.protobuf.MethodDescriptorProto)
7226 for (;;) { 7232 for (;;) {
7227 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127); 7233 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u);
7228 tag = p.first; 7234 tag = p.first;
7229 if (!p.second) goto handle_unusual; 7235 if (!p.second) goto handle_unusual;
7230 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 7236 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
7231 // optional string name = 1; 7237 // optional string name = 1;
7232 case 1: { 7238 case 1: {
7233 if (tag == 10) { 7239 if (tag == 10u) {
7234 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 7240 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7235 input, this->mutable_name())); 7241 input, this->mutable_name()));
7236 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 7242 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7237 this->name().data(), this->name().length(), 7243 this->name().data(), this->name().length(),
7238 ::google::protobuf::internal::WireFormat::PARSE, 7244 ::google::protobuf::internal::WireFormat::PARSE,
7239 "google.protobuf.MethodDescriptorProto.name"); 7245 "google.protobuf.MethodDescriptorProto.name");
7240 } else { 7246 } else {
7241 goto handle_unusual; 7247 goto handle_unusual;
7242 } 7248 }
7243 if (input->ExpectTag(18)) goto parse_input_type;
7244 break; 7249 break;
7245 } 7250 }
7246 7251
7247 // optional string input_type = 2; 7252 // optional string input_type = 2;
7248 case 2: { 7253 case 2: {
7249 if (tag == 18) { 7254 if (tag == 18u) {
7250 parse_input_type:
7251 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 7255 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7252 input, this->mutable_input_type())); 7256 input, this->mutable_input_type()));
7253 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 7257 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7254 this->input_type().data(), this->input_type().length(), 7258 this->input_type().data(), this->input_type().length(),
7255 ::google::protobuf::internal::WireFormat::PARSE, 7259 ::google::protobuf::internal::WireFormat::PARSE,
7256 "google.protobuf.MethodDescriptorProto.input_type"); 7260 "google.protobuf.MethodDescriptorProto.input_type");
7257 } else { 7261 } else {
7258 goto handle_unusual; 7262 goto handle_unusual;
7259 } 7263 }
7260 if (input->ExpectTag(26)) goto parse_output_type;
7261 break; 7264 break;
7262 } 7265 }
7263 7266
7264 // optional string output_type = 3; 7267 // optional string output_type = 3;
7265 case 3: { 7268 case 3: {
7266 if (tag == 26) { 7269 if (tag == 26u) {
7267 parse_output_type:
7268 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 7270 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7269 input, this->mutable_output_type())); 7271 input, this->mutable_output_type()));
7270 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 7272 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7271 this->output_type().data(), this->output_type().length(), 7273 this->output_type().data(), this->output_type().length(),
7272 ::google::protobuf::internal::WireFormat::PARSE, 7274 ::google::protobuf::internal::WireFormat::PARSE,
7273 "google.protobuf.MethodDescriptorProto.output_type"); 7275 "google.protobuf.MethodDescriptorProto.output_type");
7274 } else { 7276 } else {
7275 goto handle_unusual; 7277 goto handle_unusual;
7276 } 7278 }
7277 if (input->ExpectTag(34)) goto parse_options;
7278 break; 7279 break;
7279 } 7280 }
7280 7281
7281 // optional .google.protobuf.MethodOptions options = 4; 7282 // optional .google.protobuf.MethodOptions options = 4;
7282 case 4: { 7283 case 4: {
7283 if (tag == 34) { 7284 if (tag == 34u) {
7284 parse_options:
7285 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual ( 7285 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual (
7286 input, mutable_options())); 7286 input, mutable_options()));
7287 } else { 7287 } else {
7288 goto handle_unusual; 7288 goto handle_unusual;
7289 } 7289 }
7290 if (input->ExpectTag(40)) goto parse_client_streaming;
7291 break; 7290 break;
7292 } 7291 }
7293 7292
7294 // optional bool client_streaming = 5 [default = false]; 7293 // optional bool client_streaming = 5 [default = false];
7295 case 5: { 7294 case 5: {
7296 if (tag == 40) { 7295 if (tag == 40u) {
7297 parse_client_streaming: 7296 set_has_client_streaming();
7298 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 7297 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7299 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 7298 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
7300 input, &client_streaming_))); 7299 input, &client_streaming_)));
7301 set_has_client_streaming();
7302 } else { 7300 } else {
7303 goto handle_unusual; 7301 goto handle_unusual;
7304 } 7302 }
7305 if (input->ExpectTag(48)) goto parse_server_streaming;
7306 break; 7303 break;
7307 } 7304 }
7308 7305
7309 // optional bool server_streaming = 6 [default = false]; 7306 // optional bool server_streaming = 6 [default = false];
7310 case 6: { 7307 case 6: {
7311 if (tag == 48) { 7308 if (tag == 48u) {
7312 parse_server_streaming: 7309 set_has_server_streaming();
7313 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 7310 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7314 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 7311 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
7315 input, &server_streaming_))); 7312 input, &server_streaming_)));
7316 set_has_server_streaming();
7317 } else { 7313 } else {
7318 goto handle_unusual; 7314 goto handle_unusual;
7319 } 7315 }
7320 if (input->ExpectAtEnd()) goto success;
7321 break; 7316 break;
7322 } 7317 }
7323 7318
7324 default: { 7319 default: {
7325 handle_unusual: 7320 handle_unusual:
7326 if (tag == 0 || 7321 if (tag == 0 ||
7327 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 7322 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7328 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 7323 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
7329 goto success; 7324 goto success;
7330 } 7325 }
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
7392 ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->server_stre aming(), output); 7387 ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->server_stre aming(), output);
7393 } 7388 }
7394 7389
7395 if (_internal_metadata_.have_unknown_fields()) { 7390 if (_internal_metadata_.have_unknown_fields()) {
7396 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 7391 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7397 unknown_fields(), output); 7392 unknown_fields(), output);
7398 } 7393 }
7399 // @@protoc_insertion_point(serialize_end:google.protobuf.MethodDescriptorProt o) 7394 // @@protoc_insertion_point(serialize_end:google.protobuf.MethodDescriptorProt o)
7400 } 7395 }
7401 7396
7402 ::google::protobuf::uint8* MethodDescriptorProto::SerializeWithCachedSizesToArra y( 7397 ::google::protobuf::uint8* MethodDescriptorProto::InternalSerializeWithCachedSiz esToArray(
7403 ::google::protobuf::uint8* target) const { 7398 bool deterministic, ::google::protobuf::uint8* target) const {
7399 (void)deterministic; // Unused
7404 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MethodDes criptorProto) 7400 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MethodDes criptorProto)
7405 // optional string name = 1; 7401 // optional string name = 1;
7406 if (has_name()) { 7402 if (has_name()) {
7407 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 7403 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7408 this->name().data(), this->name().length(), 7404 this->name().data(), this->name().length(),
7409 ::google::protobuf::internal::WireFormat::SERIALIZE, 7405 ::google::protobuf::internal::WireFormat::SERIALIZE,
7410 "google.protobuf.MethodDescriptorProto.name"); 7406 "google.protobuf.MethodDescriptorProto.name");
7411 target = 7407 target =
7412 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 7408 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7413 1, this->name(), target); 7409 1, this->name(), target);
(...skipping 17 matching lines...) Expand all
7431 ::google::protobuf::internal::WireFormat::SERIALIZE, 7427 ::google::protobuf::internal::WireFormat::SERIALIZE,
7432 "google.protobuf.MethodDescriptorProto.output_type"); 7428 "google.protobuf.MethodDescriptorProto.output_type");
7433 target = 7429 target =
7434 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 7430 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7435 3, this->output_type(), target); 7431 3, this->output_type(), target);
7436 } 7432 }
7437 7433
7438 // optional .google.protobuf.MethodOptions options = 4; 7434 // optional .google.protobuf.MethodOptions options = 4;
7439 if (has_options()) { 7435 if (has_options()) {
7440 target = ::google::protobuf::internal::WireFormatLite:: 7436 target = ::google::protobuf::internal::WireFormatLite::
7441 WriteMessageNoVirtualToArray( 7437 InternalWriteMessageNoVirtualToArray(
7442 4, *this->options_, target); 7438 4, *this->options_, false, target);
7443 } 7439 }
7444 7440
7445 // optional bool client_streaming = 5 [default = false]; 7441 // optional bool client_streaming = 5 [default = false];
7446 if (has_client_streaming()) { 7442 if (has_client_streaming()) {
7447 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, t his->client_streaming(), target); 7443 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, t his->client_streaming(), target);
7448 } 7444 }
7449 7445
7450 // optional bool server_streaming = 6 [default = false]; 7446 // optional bool server_streaming = 6 [default = false];
7451 if (has_server_streaming()) { 7447 if (has_server_streaming()) {
7452 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, t his->server_streaming(), target); 7448 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, t his->server_streaming(), target);
7453 } 7449 }
7454 7450
7455 if (_internal_metadata_.have_unknown_fields()) { 7451 if (_internal_metadata_.have_unknown_fields()) {
7456 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 7452 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
7457 unknown_fields(), target); 7453 unknown_fields(), target);
7458 } 7454 }
7459 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MethodDescr iptorProto) 7455 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MethodDescr iptorProto)
7460 return target; 7456 return target;
7461 } 7457 }
7462 7458
7463 int MethodDescriptorProto::ByteSize() const { 7459 size_t MethodDescriptorProto::ByteSizeLong() const {
7464 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.MethodDescri ptorProto) 7460 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.MethodDescri ptorProto)
7465 int total_size = 0; 7461 size_t total_size = 0;
7466 7462
7463 if (_internal_metadata_.have_unknown_fields()) {
7464 total_size +=
7465 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7466 unknown_fields());
7467 }
7467 if (_has_bits_[0 / 32] & 63u) { 7468 if (_has_bits_[0 / 32] & 63u) {
7468 // optional string name = 1; 7469 // optional string name = 1;
7469 if (has_name()) { 7470 if (has_name()) {
7470 total_size += 1 + 7471 total_size += 1 +
7471 ::google::protobuf::internal::WireFormatLite::StringSize( 7472 ::google::protobuf::internal::WireFormatLite::StringSize(
7472 this->name()); 7473 this->name());
7473 } 7474 }
7474 7475
7475 // optional string input_type = 2; 7476 // optional string input_type = 2;
7476 if (has_input_type()) { 7477 if (has_input_type()) {
(...skipping 20 matching lines...) Expand all
7497 if (has_client_streaming()) { 7498 if (has_client_streaming()) {
7498 total_size += 1 + 1; 7499 total_size += 1 + 1;
7499 } 7500 }
7500 7501
7501 // optional bool server_streaming = 6 [default = false]; 7502 // optional bool server_streaming = 6 [default = false];
7502 if (has_server_streaming()) { 7503 if (has_server_streaming()) {
7503 total_size += 1 + 1; 7504 total_size += 1 + 1;
7504 } 7505 }
7505 7506
7506 } 7507 }
7507 if (_internal_metadata_.have_unknown_fields()) { 7508 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(); 7509 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7513 _cached_size_ = total_size; 7510 _cached_size_ = cached_size;
7514 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 7511 GOOGLE_SAFE_CONCURRENT_WRITES_END();
7515 return total_size; 7512 return total_size;
7516 } 7513 }
7517 7514
7518 void MethodDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { 7515 void MethodDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
7519 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.MethodD escriptorProto) 7516 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.MethodD escriptorProto)
7520 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 7517 GOOGLE_DCHECK_NE(&from, this);
7521 const MethodDescriptorProto* source = 7518 const MethodDescriptorProto* source =
7522 ::google::protobuf::internal::DynamicCastToGenerated<const MethodDescripto rProto>( 7519 ::google::protobuf::internal::DynamicCastToGenerated<const MethodDescripto rProto>(
7523 &from); 7520 &from);
7524 if (source == NULL) { 7521 if (source == NULL) {
7525 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.M ethodDescriptorProto) 7522 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.M ethodDescriptorProto)
7526 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 7523 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7527 } else { 7524 } else {
7528 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.MethodDescriptorProto) 7525 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.MethodDescriptorProto)
7529 MergeFrom(*source); 7526 MergeFrom(*source);
7530 } 7527 }
7531 } 7528 }
7532 7529
7533 void MethodDescriptorProto::MergeFrom(const MethodDescriptorProto& from) { 7530 void MethodDescriptorProto::MergeFrom(const MethodDescriptorProto& from) {
7534 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Meth odDescriptorProto) 7531 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Meth odDescriptorProto)
7535 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 7532 GOOGLE_DCHECK_NE(&from, this);
7536 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { 7533 _internal_metadata_.MergeFrom(from._internal_metadata_);
7534 if (from._has_bits_[0 / 32] & 63u) {
7537 if (from.has_name()) { 7535 if (from.has_name()) {
7538 set_has_name(); 7536 set_has_name();
7539 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), from.name_); 7537 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), from.name_);
7540 } 7538 }
7541 if (from.has_input_type()) { 7539 if (from.has_input_type()) {
7542 set_has_input_type(); 7540 set_has_input_type();
7543 input_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited(), from.input_type_); 7541 input_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited(), from.input_type_);
7544 } 7542 }
7545 if (from.has_output_type()) { 7543 if (from.has_output_type()) {
7546 set_has_output_type(); 7544 set_has_output_type();
7547 output_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited(), from.output_type_); 7545 output_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited(), from.output_type_);
7548 } 7546 }
7549 if (from.has_options()) { 7547 if (from.has_options()) {
7550 mutable_options()->::google::protobuf::MethodOptions::MergeFrom(from.optio ns()); 7548 mutable_options()->::google::protobuf::MethodOptions::MergeFrom(from.optio ns());
7551 } 7549 }
7552 if (from.has_client_streaming()) { 7550 if (from.has_client_streaming()) {
7553 set_client_streaming(from.client_streaming()); 7551 set_client_streaming(from.client_streaming());
7554 } 7552 }
7555 if (from.has_server_streaming()) { 7553 if (from.has_server_streaming()) {
7556 set_server_streaming(from.server_streaming()); 7554 set_server_streaming(from.server_streaming());
7557 } 7555 }
7558 } 7556 }
7559 if (from._internal_metadata_.have_unknown_fields()) {
7560 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
7561 }
7562 } 7557 }
7563 7558
7564 void MethodDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { 7559 void MethodDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
7565 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.MethodDe scriptorProto) 7560 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.MethodDe scriptorProto)
7566 if (&from == this) return; 7561 if (&from == this) return;
7567 Clear(); 7562 Clear();
7568 MergeFrom(from); 7563 MergeFrom(from);
7569 } 7564 }
7570 7565
7571 void MethodDescriptorProto::CopyFrom(const MethodDescriptorProto& from) { 7566 void MethodDescriptorProto::CopyFrom(const MethodDescriptorProto& from) {
7572 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Metho dDescriptorProto) 7567 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Metho dDescriptorProto)
7573 if (&from == this) return; 7568 if (&from == this) return;
7574 Clear(); 7569 Clear();
7575 MergeFrom(from); 7570 MergeFrom(from);
7576 } 7571 }
7577 7572
7578 bool MethodDescriptorProto::IsInitialized() const { 7573 bool MethodDescriptorProto::IsInitialized() const {
7579
7580 if (has_options()) { 7574 if (has_options()) {
7581 if (!this->options_->IsInitialized()) return false; 7575 if (!this->options_->IsInitialized()) return false;
7582 } 7576 }
7583 return true; 7577 return true;
7584 } 7578 }
7585 7579
7586 void MethodDescriptorProto::Swap(MethodDescriptorProto* other) { 7580 void MethodDescriptorProto::Swap(MethodDescriptorProto* other) {
7587 if (other == this) return; 7581 if (other == this) return;
7588 InternalSwap(other); 7582 InternalSwap(other);
7589 } 7583 }
7590 void MethodDescriptorProto::InternalSwap(MethodDescriptorProto* other) { 7584 void MethodDescriptorProto::InternalSwap(MethodDescriptorProto* other) {
7591 name_.Swap(&other->name_); 7585 name_.Swap(&other->name_);
7592 input_type_.Swap(&other->input_type_); 7586 input_type_.Swap(&other->input_type_);
7593 output_type_.Swap(&other->output_type_); 7587 output_type_.Swap(&other->output_type_);
7594 std::swap(options_, other->options_); 7588 std::swap(options_, other->options_);
7595 std::swap(client_streaming_, other->client_streaming_); 7589 std::swap(client_streaming_, other->client_streaming_);
7596 std::swap(server_streaming_, other->server_streaming_); 7590 std::swap(server_streaming_, other->server_streaming_);
7597 std::swap(_has_bits_[0], other->_has_bits_[0]); 7591 std::swap(_has_bits_[0], other->_has_bits_[0]);
7598 _internal_metadata_.Swap(&other->_internal_metadata_); 7592 _internal_metadata_.Swap(&other->_internal_metadata_);
7599 std::swap(_cached_size_, other->_cached_size_); 7593 std::swap(_cached_size_, other->_cached_size_);
7600 } 7594 }
7601 7595
7602 ::google::protobuf::Metadata MethodDescriptorProto::GetMetadata() const { 7596 ::google::protobuf::Metadata MethodDescriptorProto::GetMetadata() const {
7603 protobuf_AssignDescriptorsOnce(); 7597 protobuf_AssignDescriptorsOnce();
7604 ::google::protobuf::Metadata metadata; 7598 return file_level_metadata[10];
7605 metadata.descriptor = MethodDescriptorProto_descriptor_;
7606 metadata.reflection = MethodDescriptorProto_reflection_;
7607 return metadata;
7608 } 7599 }
7609 7600
7610 #if PROTOBUF_INLINE_NOT_IN_HEADERS 7601 #if PROTOBUF_INLINE_NOT_IN_HEADERS
7611 // MethodDescriptorProto 7602 // MethodDescriptorProto
7612 7603
7613 // optional string name = 1; 7604 // optional string name = 1;
7614 bool MethodDescriptorProto::has_name() const { 7605 bool MethodDescriptorProto::has_name() const {
7615 return (_has_bits_[0] & 0x00000001u) != 0; 7606 return (_has_bits_[0] & 0x00000001u) != 0;
7616 } 7607 }
7617 void MethodDescriptorProto::set_has_name() { 7608 void MethodDescriptorProto::set_has_name() {
7618 _has_bits_[0] |= 0x00000001u; 7609 _has_bits_[0] |= 0x00000001u;
7619 } 7610 }
7620 void MethodDescriptorProto::clear_has_name() { 7611 void MethodDescriptorProto::clear_has_name() {
7621 _has_bits_[0] &= ~0x00000001u; 7612 _has_bits_[0] &= ~0x00000001u;
7622 } 7613 }
7623 void MethodDescriptorProto::clear_name() { 7614 void MethodDescriptorProto::clear_name() {
7624 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 7615 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
7625 clear_has_name(); 7616 clear_has_name();
7626 } 7617 }
7627 const ::std::string& MethodDescriptorProto::name() const { 7618 const ::std::string& MethodDescriptorProto::name() const {
7628 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.na me) 7619 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.na me)
7629 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited()); 7620 return name_.GetNoArena();
7630 } 7621 }
7631 void MethodDescriptorProto::set_name(const ::std::string& value) { 7622 void MethodDescriptorProto::set_name(const ::std::string& value) {
7632 set_has_name(); 7623 set_has_name();
7633 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 7624 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
7634 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.na me) 7625 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.na me)
7635 } 7626 }
7636 void MethodDescriptorProto::set_name(const char* value) { 7627 void MethodDescriptorProto::set_name(const char* value) {
7637 set_has_name(); 7628 set_has_name();
7638 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 7629 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
7639 // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorPro to.name) 7630 // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorPro to.name)
7640 } 7631 }
7641 void MethodDescriptorProto::set_name(const char* value, size_t size) { 7632 void MethodDescriptorProto::set_name(const char* value, size_t size) {
7642 set_has_name(); 7633 set_has_name();
7643 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 7634 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7644 ::std::string(reinterpret_cast<const char*>(value), size)); 7635 ::std::string(reinterpret_cast<const char*>(value), size));
7645 // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptor Proto.name) 7636 // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptor Proto.name)
7646 } 7637 }
7647 ::std::string* MethodDescriptorProto::mutable_name() { 7638 ::std::string* MethodDescriptorProto::mutable_name() {
7648 set_has_name(); 7639 set_has_name();
7649 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProt o.name) 7640 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProt o.name)
7650 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 7641 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
7651 } 7642 }
7652 ::std::string* MethodDescriptorProto::release_name() { 7643 ::std::string* MethodDescriptorProto::release_name() {
7653 // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProt o.name) 7644 // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProt o.name)
7654 clear_has_name(); 7645 clear_has_name();
7655 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 7646 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
7656 } 7647 }
7657 void MethodDescriptorProto::set_allocated_name(::std::string* name) { 7648 void MethodDescriptorProto::set_allocated_name(::std::string* name) {
7658 if (name != NULL) { 7649 if (name != NULL) {
7659 set_has_name(); 7650 set_has_name();
7660 } else { 7651 } else {
7661 clear_has_name(); 7652 clear_has_name();
7662 } 7653 }
7663 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name); 7654 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name);
7664 // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescript orProto.name) 7655 // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescript orProto.name)
7665 } 7656 }
7666 7657
7667 // optional string input_type = 2; 7658 // optional string input_type = 2;
7668 bool MethodDescriptorProto::has_input_type() const { 7659 bool MethodDescriptorProto::has_input_type() const {
7669 return (_has_bits_[0] & 0x00000002u) != 0; 7660 return (_has_bits_[0] & 0x00000002u) != 0;
7670 } 7661 }
7671 void MethodDescriptorProto::set_has_input_type() { 7662 void MethodDescriptorProto::set_has_input_type() {
7672 _has_bits_[0] |= 0x00000002u; 7663 _has_bits_[0] |= 0x00000002u;
7673 } 7664 }
7674 void MethodDescriptorProto::clear_has_input_type() { 7665 void MethodDescriptorProto::clear_has_input_type() {
7675 _has_bits_[0] &= ~0x00000002u; 7666 _has_bits_[0] &= ~0x00000002u;
7676 } 7667 }
7677 void MethodDescriptorProto::clear_input_type() { 7668 void MethodDescriptorProto::clear_input_type() {
7678 input_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringA lreadyInited()); 7669 input_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringA lreadyInited());
7679 clear_has_input_type(); 7670 clear_has_input_type();
7680 } 7671 }
7681 const ::std::string& MethodDescriptorProto::input_type() const { 7672 const ::std::string& MethodDescriptorProto::input_type() const {
7682 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.in put_type) 7673 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.in put_type)
7683 return input_type_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited()); 7674 return input_type_.GetNoArena();
7684 } 7675 }
7685 void MethodDescriptorProto::set_input_type(const ::std::string& value) { 7676 void MethodDescriptorProto::set_input_type(const ::std::string& value) {
7686 set_has_input_type(); 7677 set_has_input_type();
7687 input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted(), value); 7678 input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted(), value);
7688 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.in put_type) 7679 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.in put_type)
7689 } 7680 }
7690 void MethodDescriptorProto::set_input_type(const char* value) { 7681 void MethodDescriptorProto::set_input_type(const char* value) {
7691 set_has_input_type(); 7682 set_has_input_type();
7692 input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted(), ::std::string(value)); 7683 input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted(), ::std::string(value));
7693 // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorPro to.input_type) 7684 // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorPro to.input_type)
7694 } 7685 }
7695 void MethodDescriptorProto::set_input_type(const char* value, size_t size) { 7686 void MethodDescriptorProto::set_input_type(const char* value, size_t size) {
7696 set_has_input_type(); 7687 set_has_input_type();
7697 input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted(), 7688 input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted(),
7698 ::std::string(reinterpret_cast<const char*>(value), size)); 7689 ::std::string(reinterpret_cast<const char*>(value), size));
7699 // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptor Proto.input_type) 7690 // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptor Proto.input_type)
7700 } 7691 }
7701 ::std::string* MethodDescriptorProto::mutable_input_type() { 7692 ::std::string* MethodDescriptorProto::mutable_input_type() {
7702 set_has_input_type(); 7693 set_has_input_type();
7703 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProt o.input_type) 7694 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProt o.input_type)
7704 return input_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited()); 7695 return input_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited());
7705 } 7696 }
7706 ::std::string* MethodDescriptorProto::release_input_type() { 7697 ::std::string* MethodDescriptorProto::release_input_type() {
7707 // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProt o.input_type) 7698 // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProt o.input_type)
7708 clear_has_input_type(); 7699 clear_has_input_type();
7709 return input_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited()); 7700 return input_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited());
7710 } 7701 }
7711 void MethodDescriptorProto::set_allocated_input_type(::std::string* input_type) { 7702 void MethodDescriptorProto::set_allocated_input_type(::std::string* input_type) {
7712 if (input_type != NULL) { 7703 if (input_type != NULL) {
7713 set_has_input_type(); 7704 set_has_input_type();
7714 } else { 7705 } else {
7715 clear_has_input_type(); 7706 clear_has_input_type();
7716 } 7707 }
7717 input_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringA lreadyInited(), input_type); 7708 input_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringA lreadyInited(), input_type);
7718 // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescript orProto.input_type) 7709 // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescript orProto.input_type)
7719 } 7710 }
7720 7711
7721 // optional string output_type = 3; 7712 // optional string output_type = 3;
7722 bool MethodDescriptorProto::has_output_type() const { 7713 bool MethodDescriptorProto::has_output_type() const {
7723 return (_has_bits_[0] & 0x00000004u) != 0; 7714 return (_has_bits_[0] & 0x00000004u) != 0;
7724 } 7715 }
7725 void MethodDescriptorProto::set_has_output_type() { 7716 void MethodDescriptorProto::set_has_output_type() {
7726 _has_bits_[0] |= 0x00000004u; 7717 _has_bits_[0] |= 0x00000004u;
7727 } 7718 }
7728 void MethodDescriptorProto::clear_has_output_type() { 7719 void MethodDescriptorProto::clear_has_output_type() {
7729 _has_bits_[0] &= ~0x00000004u; 7720 _has_bits_[0] &= ~0x00000004u;
7730 } 7721 }
7731 void MethodDescriptorProto::clear_output_type() { 7722 void MethodDescriptorProto::clear_output_type() {
7732 output_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited()); 7723 output_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited());
7733 clear_has_output_type(); 7724 clear_has_output_type();
7734 } 7725 }
7735 const ::std::string& MethodDescriptorProto::output_type() const { 7726 const ::std::string& MethodDescriptorProto::output_type() const {
7736 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.ou tput_type) 7727 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.ou tput_type)
7737 return output_type_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited()); 7728 return output_type_.GetNoArena();
7738 } 7729 }
7739 void MethodDescriptorProto::set_output_type(const ::std::string& value) { 7730 void MethodDescriptorProto::set_output_type(const ::std::string& value) {
7740 set_has_output_type(); 7731 set_has_output_type();
7741 output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited(), value); 7732 output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited(), value);
7742 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.ou tput_type) 7733 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.ou tput_type)
7743 } 7734 }
7744 void MethodDescriptorProto::set_output_type(const char* value) { 7735 void MethodDescriptorProto::set_output_type(const char* value) {
7745 set_has_output_type(); 7736 set_has_output_type();
7746 output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited(), ::std::string(value)); 7737 output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited(), ::std::string(value));
7747 // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorPro to.output_type) 7738 // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorPro to.output_type)
7748 } 7739 }
7749 void MethodDescriptorProto::set_output_type(const char* value, size_t size) { 7740 void MethodDescriptorProto::set_output_type(const char* value, size_t size) {
7750 set_has_output_type(); 7741 set_has_output_type();
7751 output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited(), 7742 output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited(),
7752 ::std::string(reinterpret_cast<const char*>(value), size)); 7743 ::std::string(reinterpret_cast<const char*>(value), size));
7753 // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptor Proto.output_type) 7744 // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptor Proto.output_type)
7754 } 7745 }
7755 ::std::string* MethodDescriptorProto::mutable_output_type() { 7746 ::std::string* MethodDescriptorProto::mutable_output_type() {
7756 set_has_output_type(); 7747 set_has_output_type();
7757 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProt o.output_type) 7748 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProt o.output_type)
7758 return output_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited()); 7749 return output_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited());
7759 } 7750 }
7760 ::std::string* MethodDescriptorProto::release_output_type() { 7751 ::std::string* MethodDescriptorProto::release_output_type() {
7761 // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProt o.output_type) 7752 // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProt o.output_type)
7762 clear_has_output_type(); 7753 clear_has_output_type();
7763 return output_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited()); 7754 return output_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited());
7764 } 7755 }
7765 void MethodDescriptorProto::set_allocated_output_type(::std::string* output_typ e) { 7756 void MethodDescriptorProto::set_allocated_output_type(::std::string* output_type ) {
7766 if (output_type != NULL) { 7757 if (output_type != NULL) {
7767 set_has_output_type(); 7758 set_has_output_type();
7768 } else { 7759 } else {
7769 clear_has_output_type(); 7760 clear_has_output_type();
7770 } 7761 }
7771 output_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited(), output_type); 7762 output_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited(), output_type);
7772 // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescript orProto.output_type) 7763 // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescript orProto.output_type)
7773 } 7764 }
7774 7765
7775 // optional .google.protobuf.MethodOptions options = 4; 7766 // optional .google.protobuf.MethodOptions options = 4;
7776 bool MethodDescriptorProto::has_options() const { 7767 bool MethodDescriptorProto::has_options() const {
7777 return (_has_bits_[0] & 0x00000008u) != 0; 7768 return (_has_bits_[0] & 0x00000008u) != 0;
7778 } 7769 }
7779 void MethodDescriptorProto::set_has_options() { 7770 void MethodDescriptorProto::set_has_options() {
7780 _has_bits_[0] |= 0x00000008u; 7771 _has_bits_[0] |= 0x00000008u;
7781 } 7772 }
7782 void MethodDescriptorProto::clear_has_options() { 7773 void MethodDescriptorProto::clear_has_options() {
7783 _has_bits_[0] &= ~0x00000008u; 7774 _has_bits_[0] &= ~0x00000008u;
7784 } 7775 }
7785 void MethodDescriptorProto::clear_options() { 7776 void MethodDescriptorProto::clear_options() {
7786 if (options_ != NULL) options_->::google::protobuf::MethodOptions::Clear(); 7777 if (options_ != NULL) options_->::google::protobuf::MethodOptions::Clear();
7787 clear_has_options(); 7778 clear_has_options();
7788 } 7779 }
7789 const ::google::protobuf::MethodOptions& MethodDescriptorProto::options() const { 7780 const ::google::protobuf::MethodOptions& MethodDescriptorProto::options() const {
7790 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.op tions) 7781 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.op tions)
7791 return options_ != NULL ? *options_ : *default_instance_->options_; 7782 return options_ != NULL ? *options_
7783 : *::google::protobuf::MethodOptions::internal_default_ instance();
7792 } 7784 }
7793 ::google::protobuf::MethodOptions* MethodDescriptorProto::mutable_options() { 7785 ::google::protobuf::MethodOptions* MethodDescriptorProto::mutable_options() {
7794 set_has_options(); 7786 set_has_options();
7795 if (options_ == NULL) { 7787 if (options_ == NULL) {
7796 options_ = new ::google::protobuf::MethodOptions; 7788 options_ = new ::google::protobuf::MethodOptions;
7797 } 7789 }
7798 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProt o.options) 7790 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProt o.options)
7799 return options_; 7791 return options_;
7800 } 7792 }
7801 ::google::protobuf::MethodOptions* MethodDescriptorProto::release_options() { 7793 ::google::protobuf::MethodOptions* MethodDescriptorProto::release_options() {
(...skipping 21 matching lines...) Expand all
7823 void MethodDescriptorProto::set_has_client_streaming() { 7815 void MethodDescriptorProto::set_has_client_streaming() {
7824 _has_bits_[0] |= 0x00000010u; 7816 _has_bits_[0] |= 0x00000010u;
7825 } 7817 }
7826 void MethodDescriptorProto::clear_has_client_streaming() { 7818 void MethodDescriptorProto::clear_has_client_streaming() {
7827 _has_bits_[0] &= ~0x00000010u; 7819 _has_bits_[0] &= ~0x00000010u;
7828 } 7820 }
7829 void MethodDescriptorProto::clear_client_streaming() { 7821 void MethodDescriptorProto::clear_client_streaming() {
7830 client_streaming_ = false; 7822 client_streaming_ = false;
7831 clear_has_client_streaming(); 7823 clear_has_client_streaming();
7832 } 7824 }
7833 bool MethodDescriptorProto::client_streaming() const { 7825 bool MethodDescriptorProto::client_streaming() const {
7834 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.cl ient_streaming) 7826 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.cl ient_streaming)
7835 return client_streaming_; 7827 return client_streaming_;
7836 } 7828 }
7837 void MethodDescriptorProto::set_client_streaming(bool value) { 7829 void MethodDescriptorProto::set_client_streaming(bool value) {
7838 set_has_client_streaming(); 7830 set_has_client_streaming();
7839 client_streaming_ = value; 7831 client_streaming_ = value;
7840 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.cl ient_streaming) 7832 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.cl ient_streaming)
7841 } 7833 }
7842 7834
7843 // optional bool server_streaming = 6 [default = false]; 7835 // optional bool server_streaming = 6 [default = false];
7844 bool MethodDescriptorProto::has_server_streaming() const { 7836 bool MethodDescriptorProto::has_server_streaming() const {
7845 return (_has_bits_[0] & 0x00000020u) != 0; 7837 return (_has_bits_[0] & 0x00000020u) != 0;
7846 } 7838 }
7847 void MethodDescriptorProto::set_has_server_streaming() { 7839 void MethodDescriptorProto::set_has_server_streaming() {
7848 _has_bits_[0] |= 0x00000020u; 7840 _has_bits_[0] |= 0x00000020u;
7849 } 7841 }
7850 void MethodDescriptorProto::clear_has_server_streaming() { 7842 void MethodDescriptorProto::clear_has_server_streaming() {
7851 _has_bits_[0] &= ~0x00000020u; 7843 _has_bits_[0] &= ~0x00000020u;
7852 } 7844 }
7853 void MethodDescriptorProto::clear_server_streaming() { 7845 void MethodDescriptorProto::clear_server_streaming() {
7854 server_streaming_ = false; 7846 server_streaming_ = false;
7855 clear_has_server_streaming(); 7847 clear_has_server_streaming();
7856 } 7848 }
7857 bool MethodDescriptorProto::server_streaming() const { 7849 bool MethodDescriptorProto::server_streaming() const {
7858 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.se rver_streaming) 7850 // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.se rver_streaming)
7859 return server_streaming_; 7851 return server_streaming_;
7860 } 7852 }
7861 void MethodDescriptorProto::set_server_streaming(bool value) { 7853 void MethodDescriptorProto::set_server_streaming(bool value) {
7862 set_has_server_streaming(); 7854 set_has_server_streaming();
7863 server_streaming_ = value; 7855 server_streaming_ = value;
7864 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.se rver_streaming) 7856 // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.se rver_streaming)
7865 } 7857 }
7866 7858
7867 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 7859 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
7868 7860
7869 // =================================================================== 7861 // ===================================================================
7870 7862
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 7863 #if !defined(_MSC_VER) || _MSC_VER >= 1900
7895 const int FileOptions::kJavaPackageFieldNumber; 7864 const int FileOptions::kJavaPackageFieldNumber;
7896 const int FileOptions::kJavaOuterClassnameFieldNumber; 7865 const int FileOptions::kJavaOuterClassnameFieldNumber;
7897 const int FileOptions::kJavaMultipleFilesFieldNumber; 7866 const int FileOptions::kJavaMultipleFilesFieldNumber;
7898 const int FileOptions::kJavaGenerateEqualsAndHashFieldNumber; 7867 const int FileOptions::kJavaGenerateEqualsAndHashFieldNumber;
7899 const int FileOptions::kJavaStringCheckUtf8FieldNumber; 7868 const int FileOptions::kJavaStringCheckUtf8FieldNumber;
7900 const int FileOptions::kOptimizeForFieldNumber; 7869 const int FileOptions::kOptimizeForFieldNumber;
7901 const int FileOptions::kGoPackageFieldNumber; 7870 const int FileOptions::kGoPackageFieldNumber;
7902 const int FileOptions::kCcGenericServicesFieldNumber; 7871 const int FileOptions::kCcGenericServicesFieldNumber;
7903 const int FileOptions::kJavaGenericServicesFieldNumber; 7872 const int FileOptions::kJavaGenericServicesFieldNumber;
7904 const int FileOptions::kPyGenericServicesFieldNumber; 7873 const int FileOptions::kPyGenericServicesFieldNumber;
7905 const int FileOptions::kDeprecatedFieldNumber; 7874 const int FileOptions::kDeprecatedFieldNumber;
7906 const int FileOptions::kCcEnableArenasFieldNumber; 7875 const int FileOptions::kCcEnableArenasFieldNumber;
7907 const int FileOptions::kObjcClassPrefixFieldNumber; 7876 const int FileOptions::kObjcClassPrefixFieldNumber;
7908 const int FileOptions::kCsharpNamespaceFieldNumber; 7877 const int FileOptions::kCsharpNamespaceFieldNumber;
7878 const int FileOptions::kSwiftPrefixFieldNumber;
7909 const int FileOptions::kUninterpretedOptionFieldNumber; 7879 const int FileOptions::kUninterpretedOptionFieldNumber;
7910 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 7880 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
7911 7881
7912 FileOptions::FileOptions() 7882 FileOptions::FileOptions()
7913 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 7883 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
7884 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
7885 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
7886 }
7914 SharedCtor(); 7887 SharedCtor();
7915 // @@protoc_insertion_point(constructor:google.protobuf.FileOptions) 7888 // @@protoc_insertion_point(constructor:google.protobuf.FileOptions)
7916 } 7889 }
7917
7918 void FileOptions::InitAsDefaultInstance() {
7919 }
7920
7921 FileOptions::FileOptions(const FileOptions& from) 7890 FileOptions::FileOptions(const FileOptions& from)
7922 : ::google::protobuf::Message(), 7891 : ::google::protobuf::Message(),
7923 _internal_metadata_(NULL) { 7892 _internal_metadata_(NULL),
7924 SharedCtor(); 7893 _has_bits_(from._has_bits_),
7925 MergeFrom(from); 7894 _cached_size_(0),
7895 uninterpreted_option_(from.uninterpreted_option_) {
7896 _internal_metadata_.MergeFrom(from._internal_metadata_);
7897 _extensions_.MergeFrom(from._extensions_);
7898 java_package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAl readyInited());
7899 if (from.has_java_package()) {
7900 java_package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited(), from.java_package_);
7901 }
7902 java_outer_classname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmpty StringAlreadyInited());
7903 if (from.has_java_outer_classname()) {
7904 java_outer_classname_.AssignWithDefault(&::google::protobuf::internal::GetEm ptyStringAlreadyInited(), from.java_outer_classname_);
7905 }
7906 go_package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlre adyInited());
7907 if (from.has_go_package()) {
7908 go_package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringA lreadyInited(), from.go_package_);
7909 }
7910 objc_class_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited());
7911 if (from.has_objc_class_prefix()) {
7912 objc_class_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmpty StringAlreadyInited(), from.objc_class_prefix_);
7913 }
7914 csharp_namespace_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited());
7915 if (from.has_csharp_namespace()) {
7916 csharp_namespace_.AssignWithDefault(&::google::protobuf::internal::GetEmptyS tringAlreadyInited(), from.csharp_namespace_);
7917 }
7918 swift_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAl readyInited());
7919 if (from.has_swift_prefix()) {
7920 swift_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited(), from.swift_prefix_);
7921 }
7922 ::memcpy(&java_multiple_files_, &from.java_multiple_files_,
7923 reinterpret_cast<char*>(&optimize_for_) -
7924 reinterpret_cast<char*>(&java_multiple_files_) + sizeof(optimize_for_));
7926 // @@protoc_insertion_point(copy_constructor:google.protobuf.FileOptions) 7925 // @@protoc_insertion_point(copy_constructor:google.protobuf.FileOptions)
7927 } 7926 }
7928 7927
7929 void FileOptions::SharedCtor() { 7928 void FileOptions::SharedCtor() {
7930 ::google::protobuf::internal::GetEmptyString();
7931 _cached_size_ = 0; 7929 _cached_size_ = 0;
7932 java_package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAl readyInited()); 7930 java_package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAl readyInited());
7933 java_outer_classname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmpty StringAlreadyInited()); 7931 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()); 7932 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()); 7933 objc_class_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited());
7945 csharp_namespace_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited()); 7934 csharp_namespace_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited());
7946 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 7935 swift_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAl readyInited());
7936 ::memset(&java_multiple_files_, 0, reinterpret_cast<char*>(&cc_enable_arenas_) -
7937 reinterpret_cast<char*>(&java_multiple_files_) + sizeof(cc_enable_arenas_));
7938 optimize_for_ = 1;
7947 } 7939 }
7948 7940
7949 FileOptions::~FileOptions() { 7941 FileOptions::~FileOptions() {
7950 // @@protoc_insertion_point(destructor:google.protobuf.FileOptions) 7942 // @@protoc_insertion_point(destructor:google.protobuf.FileOptions)
7951 SharedDtor(); 7943 SharedDtor();
7952 } 7944 }
7953 7945
7954 void FileOptions::SharedDtor() { 7946 void FileOptions::SharedDtor() {
7955 java_package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited()); 7947 java_package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited());
7956 java_outer_classname_.DestroyNoArena(&::google::protobuf::internal::GetEmptySt ringAlreadyInited()); 7948 java_outer_classname_.DestroyNoArena(&::google::protobuf::internal::GetEmptySt ringAlreadyInited());
7957 go_package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlread yInited()); 7949 go_package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlread yInited());
7958 objc_class_prefix_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited()); 7950 objc_class_prefix_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited());
7959 csharp_namespace_.DestroyNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited()); 7951 csharp_namespace_.DestroyNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited());
7960 if (this != default_instance_) { 7952 swift_prefix_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited());
7961 }
7962 } 7953 }
7963 7954
7964 void FileOptions::SetCachedSize(int size) const { 7955 void FileOptions::SetCachedSize(int size) const {
7965 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 7956 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7966 _cached_size_ = size; 7957 _cached_size_ = size;
7967 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 7958 GOOGLE_SAFE_CONCURRENT_WRITES_END();
7968 } 7959 }
7969 const ::google::protobuf::Descriptor* FileOptions::descriptor() { 7960 const ::google::protobuf::Descriptor* FileOptions::descriptor() {
7970 protobuf_AssignDescriptorsOnce(); 7961 protobuf_AssignDescriptorsOnce();
7971 return FileOptions_descriptor_; 7962 return file_level_metadata[11].descriptor;
7972 } 7963 }
7973 7964
7974 const FileOptions& FileOptions::default_instance() { 7965 const FileOptions& FileOptions::default_instance() {
7975 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 7966 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
7976 return *default_instance_; 7967 return *internal_default_instance();
7977 } 7968 }
7978 7969
7979 FileOptions* FileOptions::default_instance_ = NULL;
7980
7981 FileOptions* FileOptions::New(::google::protobuf::Arena* arena) const { 7970 FileOptions* FileOptions::New(::google::protobuf::Arena* arena) const {
7982 FileOptions* n = new FileOptions; 7971 FileOptions* n = new FileOptions;
7983 if (arena != NULL) { 7972 if (arena != NULL) {
7984 arena->Own(n); 7973 arena->Own(n);
7985 } 7974 }
7986 return n; 7975 return n;
7987 } 7976 }
7988 7977
7989 void FileOptions::Clear() { 7978 void FileOptions::Clear() {
7990 // @@protoc_insertion_point(message_clear_start:google.protobuf.FileOptions) 7979 // @@protoc_insertion_point(message_clear_start:google.protobuf.FileOptions)
7991 _extensions_.Clear(); 7980 _extensions_.Clear();
7992 #if defined(__clang__) 7981 uninterpreted_option_.Clear();
7993 #define ZR_HELPER_(f) \ 7982 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()) { 7983 if (has_java_package()) {
8011 java_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyS tringAlreadyInited()); 7984 GOOGLE_DCHECK(!java_package_.IsDefault(&::google::protobuf::internal::GetE mptyStringAlreadyInited()));
7985 (*java_package_.UnsafeRawStringPointer())->clear();
8012 } 7986 }
8013 if (has_java_outer_classname()) { 7987 if (has_java_outer_classname()) {
8014 java_outer_classname_.ClearToEmptyNoArena(&::google::protobuf::internal::G etEmptyStringAlreadyInited()); 7988 GOOGLE_DCHECK(!java_outer_classname_.IsDefault(&::google::protobuf::intern al::GetEmptyStringAlreadyInited()));
7989 (*java_outer_classname_.UnsafeRawStringPointer())->clear();
8015 } 7990 }
8016 optimize_for_ = 1;
8017 if (has_go_package()) { 7991 if (has_go_package()) {
8018 go_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited()); 7992 GOOGLE_DCHECK(!go_package_.IsDefault(&::google::protobuf::internal::GetEmp tyStringAlreadyInited()));
7993 (*go_package_.UnsafeRawStringPointer())->clear();
7994 }
7995 if (has_objc_class_prefix()) {
7996 GOOGLE_DCHECK(!objc_class_prefix_.IsDefault(&::google::protobuf::internal: :GetEmptyStringAlreadyInited()));
7997 (*objc_class_prefix_.UnsafeRawStringPointer())->clear();
7998 }
7999 if (has_csharp_namespace()) {
8000 GOOGLE_DCHECK(!csharp_namespace_.IsDefault(&::google::protobuf::internal:: GetEmptyStringAlreadyInited()));
8001 (*csharp_namespace_.UnsafeRawStringPointer())->clear();
8002 }
8003 if (has_swift_prefix()) {
8004 GOOGLE_DCHECK(!swift_prefix_.IsDefault(&::google::protobuf::internal::GetE mptyStringAlreadyInited()));
8005 (*swift_prefix_.UnsafeRawStringPointer())->clear();
8019 } 8006 }
8020 } 8007 }
8021 if (_has_bits_[8 / 32] & 16128u) { 8008 if (_has_bits_[0 / 32] & 192u) {
8022 ZR_(java_generic_services_, cc_enable_arenas_); 8009 ::memset(&java_multiple_files_, 0, reinterpret_cast<char*>(&java_generate_eq uals_and_hash_) -
8023 if (has_objc_class_prefix()) { 8010 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 } 8011 }
8030 8012 if (_has_bits_[8 / 32] & 32512u) {
8031 #undef ZR_HELPER_ 8013 ::memset(&java_string_check_utf8_, 0, reinterpret_cast<char*>(&cc_enable_are nas_) -
8032 #undef ZR_ 8014 reinterpret_cast<char*>(&java_string_check_utf8_) + sizeof(cc_enable_arena s_));
8033 8015 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 } 8016 }
8017 _has_bits_.Clear();
8018 _internal_metadata_.Clear();
8039 } 8019 }
8040 8020
8041 bool FileOptions::MergePartialFromCodedStream( 8021 bool FileOptions::MergePartialFromCodedStream(
8042 ::google::protobuf::io::CodedInputStream* input) { 8022 ::google::protobuf::io::CodedInputStream* input) {
8043 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 8023 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
8044 ::google::protobuf::uint32 tag; 8024 ::google::protobuf::uint32 tag;
8045 // @@protoc_insertion_point(parse_start:google.protobuf.FileOptions) 8025 // @@protoc_insertion_point(parse_start:google.protobuf.FileOptions)
8046 for (;;) { 8026 for (;;) {
8047 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 16383); 8027 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(16383u);
8048 tag = p.first; 8028 tag = p.first;
8049 if (!p.second) goto handle_unusual; 8029 if (!p.second) goto handle_unusual;
8050 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 8030 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
8051 // optional string java_package = 1; 8031 // optional string java_package = 1;
8052 case 1: { 8032 case 1: {
8053 if (tag == 10) { 8033 if (tag == 10u) {
8054 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 8034 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8055 input, this->mutable_java_package())); 8035 input, this->mutable_java_package()));
8056 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 8036 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8057 this->java_package().data(), this->java_package().length(), 8037 this->java_package().data(), this->java_package().length(),
8058 ::google::protobuf::internal::WireFormat::PARSE, 8038 ::google::protobuf::internal::WireFormat::PARSE,
8059 "google.protobuf.FileOptions.java_package"); 8039 "google.protobuf.FileOptions.java_package");
8060 } else { 8040 } else {
8061 goto handle_unusual; 8041 goto handle_unusual;
8062 } 8042 }
8063 if (input->ExpectTag(66)) goto parse_java_outer_classname;
8064 break; 8043 break;
8065 } 8044 }
8066 8045
8067 // optional string java_outer_classname = 8; 8046 // optional string java_outer_classname = 8;
8068 case 8: { 8047 case 8: {
8069 if (tag == 66) { 8048 if (tag == 66u) {
8070 parse_java_outer_classname:
8071 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 8049 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8072 input, this->mutable_java_outer_classname())); 8050 input, this->mutable_java_outer_classname()));
8073 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 8051 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8074 this->java_outer_classname().data(), this->java_outer_classname().le ngth(), 8052 this->java_outer_classname().data(), this->java_outer_classname().le ngth(),
8075 ::google::protobuf::internal::WireFormat::PARSE, 8053 ::google::protobuf::internal::WireFormat::PARSE,
8076 "google.protobuf.FileOptions.java_outer_classname"); 8054 "google.protobuf.FileOptions.java_outer_classname");
8077 } else { 8055 } else {
8078 goto handle_unusual; 8056 goto handle_unusual;
8079 } 8057 }
8080 if (input->ExpectTag(72)) goto parse_optimize_for;
8081 break; 8058 break;
8082 } 8059 }
8083 8060
8084 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [de fault = SPEED]; 8061 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [de fault = SPEED];
8085 case 9: { 8062 case 9: {
8086 if (tag == 72) { 8063 if (tag == 72u) {
8087 parse_optimize_for:
8088 int value; 8064 int value;
8089 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 8065 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8090 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM> ( 8066 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM> (
8091 input, &value))); 8067 input, &value)));
8092 if (::google::protobuf::FileOptions_OptimizeMode_IsValid(value)) { 8068 if (::google::protobuf::FileOptions_OptimizeMode_IsValid(value)) {
8093 set_optimize_for(static_cast< ::google::protobuf::FileOptions_Optimi zeMode >(value)); 8069 set_optimize_for(static_cast< ::google::protobuf::FileOptions_Optimi zeMode >(value));
8094 } else { 8070 } else {
8095 mutable_unknown_fields()->AddVarint(9, value); 8071 mutable_unknown_fields()->AddVarint(9, value);
8096 } 8072 }
8097 } else { 8073 } else {
8098 goto handle_unusual; 8074 goto handle_unusual;
8099 } 8075 }
8100 if (input->ExpectTag(80)) goto parse_java_multiple_files;
8101 break; 8076 break;
8102 } 8077 }
8103 8078
8104 // optional bool java_multiple_files = 10 [default = false]; 8079 // optional bool java_multiple_files = 10 [default = false];
8105 case 10: { 8080 case 10: {
8106 if (tag == 80) { 8081 if (tag == 80u) {
8107 parse_java_multiple_files: 8082 set_has_java_multiple_files();
8108 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 8083 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8109 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 8084 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
8110 input, &java_multiple_files_))); 8085 input, &java_multiple_files_)));
8111 set_has_java_multiple_files();
8112 } else { 8086 } else {
8113 goto handle_unusual; 8087 goto handle_unusual;
8114 } 8088 }
8115 if (input->ExpectTag(90)) goto parse_go_package;
8116 break; 8089 break;
8117 } 8090 }
8118 8091
8119 // optional string go_package = 11; 8092 // optional string go_package = 11;
8120 case 11: { 8093 case 11: {
8121 if (tag == 90) { 8094 if (tag == 90u) {
8122 parse_go_package:
8123 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 8095 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8124 input, this->mutable_go_package())); 8096 input, this->mutable_go_package()));
8125 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 8097 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8126 this->go_package().data(), this->go_package().length(), 8098 this->go_package().data(), this->go_package().length(),
8127 ::google::protobuf::internal::WireFormat::PARSE, 8099 ::google::protobuf::internal::WireFormat::PARSE,
8128 "google.protobuf.FileOptions.go_package"); 8100 "google.protobuf.FileOptions.go_package");
8129 } else { 8101 } else {
8130 goto handle_unusual; 8102 goto handle_unusual;
8131 } 8103 }
8132 if (input->ExpectTag(128)) goto parse_cc_generic_services;
8133 break; 8104 break;
8134 } 8105 }
8135 8106
8136 // optional bool cc_generic_services = 16 [default = false]; 8107 // optional bool cc_generic_services = 16 [default = false];
8137 case 16: { 8108 case 16: {
8138 if (tag == 128) { 8109 if (tag == 128u) {
8139 parse_cc_generic_services: 8110 set_has_cc_generic_services();
8140 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 8111 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8141 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 8112 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
8142 input, &cc_generic_services_))); 8113 input, &cc_generic_services_)));
8143 set_has_cc_generic_services();
8144 } else { 8114 } else {
8145 goto handle_unusual; 8115 goto handle_unusual;
8146 } 8116 }
8147 if (input->ExpectTag(136)) goto parse_java_generic_services;
8148 break; 8117 break;
8149 } 8118 }
8150 8119
8151 // optional bool java_generic_services = 17 [default = false]; 8120 // optional bool java_generic_services = 17 [default = false];
8152 case 17: { 8121 case 17: {
8153 if (tag == 136) { 8122 if (tag == 136u) {
8154 parse_java_generic_services: 8123 set_has_java_generic_services();
8155 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 8124 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8156 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 8125 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
8157 input, &java_generic_services_))); 8126 input, &java_generic_services_)));
8158 set_has_java_generic_services();
8159 } else { 8127 } else {
8160 goto handle_unusual; 8128 goto handle_unusual;
8161 } 8129 }
8162 if (input->ExpectTag(144)) goto parse_py_generic_services;
8163 break; 8130 break;
8164 } 8131 }
8165 8132
8166 // optional bool py_generic_services = 18 [default = false]; 8133 // optional bool py_generic_services = 18 [default = false];
8167 case 18: { 8134 case 18: {
8168 if (tag == 144) { 8135 if (tag == 144u) {
8169 parse_py_generic_services: 8136 set_has_py_generic_services();
8170 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 8137 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8171 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 8138 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
8172 input, &py_generic_services_))); 8139 input, &py_generic_services_)));
8173 set_has_py_generic_services();
8174 } else { 8140 } else {
8175 goto handle_unusual; 8141 goto handle_unusual;
8176 } 8142 }
8177 if (input->ExpectTag(160)) goto parse_java_generate_equals_and_hash;
8178 break; 8143 break;
8179 } 8144 }
8180 8145
8181 // optional bool java_generate_equals_and_hash = 20 [default = false]; 8146 // optional bool java_generate_equals_and_hash = 20 [deprecated = true];
8182 case 20: { 8147 case 20: {
8183 if (tag == 160) { 8148 if (tag == 160u) {
8184 parse_java_generate_equals_and_hash: 8149 set_has_java_generate_equals_and_hash();
8185 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 8150 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8186 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 8151 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
8187 input, &java_generate_equals_and_hash_))); 8152 input, &java_generate_equals_and_hash_)));
8188 set_has_java_generate_equals_and_hash();
8189 } else { 8153 } else {
8190 goto handle_unusual; 8154 goto handle_unusual;
8191 } 8155 }
8192 if (input->ExpectTag(184)) goto parse_deprecated;
8193 break; 8156 break;
8194 } 8157 }
8195 8158
8196 // optional bool deprecated = 23 [default = false]; 8159 // optional bool deprecated = 23 [default = false];
8197 case 23: { 8160 case 23: {
8198 if (tag == 184) { 8161 if (tag == 184u) {
8199 parse_deprecated: 8162 set_has_deprecated();
8200 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 8163 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8201 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 8164 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
8202 input, &deprecated_))); 8165 input, &deprecated_)));
8203 set_has_deprecated();
8204 } else { 8166 } else {
8205 goto handle_unusual; 8167 goto handle_unusual;
8206 } 8168 }
8207 if (input->ExpectTag(216)) goto parse_java_string_check_utf8;
8208 break; 8169 break;
8209 } 8170 }
8210 8171
8211 // optional bool java_string_check_utf8 = 27 [default = false]; 8172 // optional bool java_string_check_utf8 = 27 [default = false];
8212 case 27: { 8173 case 27: {
8213 if (tag == 216) { 8174 if (tag == 216u) {
8214 parse_java_string_check_utf8: 8175 set_has_java_string_check_utf8();
8215 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 8176 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8216 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 8177 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
8217 input, &java_string_check_utf8_))); 8178 input, &java_string_check_utf8_)));
8218 set_has_java_string_check_utf8();
8219 } else { 8179 } else {
8220 goto handle_unusual; 8180 goto handle_unusual;
8221 } 8181 }
8222 if (input->ExpectTag(248)) goto parse_cc_enable_arenas;
8223 break; 8182 break;
8224 } 8183 }
8225 8184
8226 // optional bool cc_enable_arenas = 31 [default = false]; 8185 // optional bool cc_enable_arenas = 31 [default = false];
8227 case 31: { 8186 case 31: {
8228 if (tag == 248) { 8187 if (tag == 248u) {
8229 parse_cc_enable_arenas: 8188 set_has_cc_enable_arenas();
8230 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 8189 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8231 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 8190 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
8232 input, &cc_enable_arenas_))); 8191 input, &cc_enable_arenas_)));
8233 set_has_cc_enable_arenas();
8234 } else { 8192 } else {
8235 goto handle_unusual; 8193 goto handle_unusual;
8236 } 8194 }
8237 if (input->ExpectTag(290)) goto parse_objc_class_prefix;
8238 break; 8195 break;
8239 } 8196 }
8240 8197
8241 // optional string objc_class_prefix = 36; 8198 // optional string objc_class_prefix = 36;
8242 case 36: { 8199 case 36: {
8243 if (tag == 290) { 8200 if (tag == 290u) {
8244 parse_objc_class_prefix:
8245 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 8201 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8246 input, this->mutable_objc_class_prefix())); 8202 input, this->mutable_objc_class_prefix()));
8247 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 8203 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8248 this->objc_class_prefix().data(), this->objc_class_prefix().length() , 8204 this->objc_class_prefix().data(), this->objc_class_prefix().length() ,
8249 ::google::protobuf::internal::WireFormat::PARSE, 8205 ::google::protobuf::internal::WireFormat::PARSE,
8250 "google.protobuf.FileOptions.objc_class_prefix"); 8206 "google.protobuf.FileOptions.objc_class_prefix");
8251 } else { 8207 } else {
8252 goto handle_unusual; 8208 goto handle_unusual;
8253 } 8209 }
8254 if (input->ExpectTag(298)) goto parse_csharp_namespace;
8255 break; 8210 break;
8256 } 8211 }
8257 8212
8258 // optional string csharp_namespace = 37; 8213 // optional string csharp_namespace = 37;
8259 case 37: { 8214 case 37: {
8260 if (tag == 298) { 8215 if (tag == 298u) {
8261 parse_csharp_namespace:
8262 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 8216 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8263 input, this->mutable_csharp_namespace())); 8217 input, this->mutable_csharp_namespace()));
8264 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 8218 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8265 this->csharp_namespace().data(), this->csharp_namespace().length(), 8219 this->csharp_namespace().data(), this->csharp_namespace().length(),
8266 ::google::protobuf::internal::WireFormat::PARSE, 8220 ::google::protobuf::internal::WireFormat::PARSE,
8267 "google.protobuf.FileOptions.csharp_namespace"); 8221 "google.protobuf.FileOptions.csharp_namespace");
8268 } else { 8222 } else {
8269 goto handle_unusual; 8223 goto handle_unusual;
8270 } 8224 }
8271 if (input->ExpectTag(7994)) goto parse_uninterpreted_option; 8225 break;
8226 }
8227
8228 // optional string swift_prefix = 39;
8229 case 39: {
8230 if (tag == 314u) {
8231 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8232 input, this->mutable_swift_prefix()));
8233 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8234 this->swift_prefix().data(), this->swift_prefix().length(),
8235 ::google::protobuf::internal::WireFormat::PARSE,
8236 "google.protobuf.FileOptions.swift_prefix");
8237 } else {
8238 goto handle_unusual;
8239 }
8272 break; 8240 break;
8273 } 8241 }
8274 8242
8275 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99 9; 8243 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99 9;
8276 case 999: { 8244 case 999: {
8277 if (tag == 7994) { 8245 if (tag == 7994u) {
8278 parse_uninterpreted_option:
8279 DO_(input->IncrementRecursionDepth()); 8246 DO_(input->IncrementRecursionDepth());
8280 parse_loop_uninterpreted_option:
8281 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 8247 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
8282 input, add_uninterpreted_option())); 8248 input, add_uninterpreted_option()));
8283 } else { 8249 } else {
8284 goto handle_unusual; 8250 goto handle_unusual;
8285 } 8251 }
8286 if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option;
8287 input->UnsafeDecrementRecursionDepth(); 8252 input->UnsafeDecrementRecursionDepth();
8288 if (input->ExpectAtEnd()) goto success;
8289 break; 8253 break;
8290 } 8254 }
8291 8255
8292 default: { 8256 default: {
8293 handle_unusual: 8257 handle_unusual:
8294 if (tag == 0 || 8258 if (tag == 0 ||
8295 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 8259 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
8296 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 8260 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
8297 goto success; 8261 goto success;
8298 } 8262 }
8299 if ((8000u <= tag)) { 8263 if ((8000u <= tag)) {
8300 DO_(_extensions_.ParseField(tag, input, default_instance_, 8264 DO_(_extensions_.ParseField(tag, input, internal_default_instance(),
8301 mutable_unknown_fields())); 8265 mutable_unknown_fields()));
8302 continue; 8266 continue;
8303 } 8267 }
8304 DO_(::google::protobuf::internal::WireFormat::SkipField( 8268 DO_(::google::protobuf::internal::WireFormat::SkipField(
8305 input, tag, mutable_unknown_fields())); 8269 input, tag, mutable_unknown_fields()));
8306 break; 8270 break;
8307 } 8271 }
8308 } 8272 }
8309 } 8273 }
8310 success: 8274 success:
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
8368 // optional bool java_generic_services = 17 [default = false]; 8332 // optional bool java_generic_services = 17 [default = false];
8369 if (has_java_generic_services()) { 8333 if (has_java_generic_services()) {
8370 ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->java_gener ic_services(), output); 8334 ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->java_gener ic_services(), output);
8371 } 8335 }
8372 8336
8373 // optional bool py_generic_services = 18 [default = false]; 8337 // optional bool py_generic_services = 18 [default = false];
8374 if (has_py_generic_services()) { 8338 if (has_py_generic_services()) {
8375 ::google::protobuf::internal::WireFormatLite::WriteBool(18, this->py_generic _services(), output); 8339 ::google::protobuf::internal::WireFormatLite::WriteBool(18, this->py_generic _services(), output);
8376 } 8340 }
8377 8341
8378 // optional bool java_generate_equals_and_hash = 20 [default = false]; 8342 // optional bool java_generate_equals_and_hash = 20 [deprecated = true];
8379 if (has_java_generate_equals_and_hash()) { 8343 if (has_java_generate_equals_and_hash()) {
8380 ::google::protobuf::internal::WireFormatLite::WriteBool(20, this->java_gener ate_equals_and_hash(), output); 8344 ::google::protobuf::internal::WireFormatLite::WriteBool(20, this->java_gener ate_equals_and_hash(), output);
8381 } 8345 }
8382 8346
8383 // optional bool deprecated = 23 [default = false]; 8347 // optional bool deprecated = 23 [default = false];
8384 if (has_deprecated()) { 8348 if (has_deprecated()) {
8385 ::google::protobuf::internal::WireFormatLite::WriteBool(23, this->deprecated (), output); 8349 ::google::protobuf::internal::WireFormatLite::WriteBool(23, this->deprecated (), output);
8386 } 8350 }
8387 8351
8388 // optional bool java_string_check_utf8 = 27 [default = false]; 8352 // optional bool java_string_check_utf8 = 27 [default = false];
(...skipping 19 matching lines...) Expand all
8408 // optional string csharp_namespace = 37; 8372 // optional string csharp_namespace = 37;
8409 if (has_csharp_namespace()) { 8373 if (has_csharp_namespace()) {
8410 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 8374 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8411 this->csharp_namespace().data(), this->csharp_namespace().length(), 8375 this->csharp_namespace().data(), this->csharp_namespace().length(),
8412 ::google::protobuf::internal::WireFormat::SERIALIZE, 8376 ::google::protobuf::internal::WireFormat::SERIALIZE,
8413 "google.protobuf.FileOptions.csharp_namespace"); 8377 "google.protobuf.FileOptions.csharp_namespace");
8414 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 8378 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8415 37, this->csharp_namespace(), output); 8379 37, this->csharp_namespace(), output);
8416 } 8380 }
8417 8381
8382 // optional string swift_prefix = 39;
8383 if (has_swift_prefix()) {
8384 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8385 this->swift_prefix().data(), this->swift_prefix().length(),
8386 ::google::protobuf::internal::WireFormat::SERIALIZE,
8387 "google.protobuf.FileOptions.swift_prefix");
8388 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8389 39, this->swift_prefix(), output);
8390 }
8391
8418 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 8392 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
8419 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { 8393 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
8420 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 8394 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8421 999, this->uninterpreted_option(i), output); 8395 999, this->uninterpreted_option(i), output);
8422 } 8396 }
8423 8397
8424 // Extension range [1000, 536870912) 8398 // Extension range [1000, 536870912)
8425 _extensions_.SerializeWithCachedSizes( 8399 _extensions_.SerializeWithCachedSizes(
8426 1000, 536870912, output); 8400 1000, 536870912, output);
8427 8401
8428 if (_internal_metadata_.have_unknown_fields()) { 8402 if (_internal_metadata_.have_unknown_fields()) {
8429 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 8403 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
8430 unknown_fields(), output); 8404 unknown_fields(), output);
8431 } 8405 }
8432 // @@protoc_insertion_point(serialize_end:google.protobuf.FileOptions) 8406 // @@protoc_insertion_point(serialize_end:google.protobuf.FileOptions)
8433 } 8407 }
8434 8408
8435 ::google::protobuf::uint8* FileOptions::SerializeWithCachedSizesToArray( 8409 ::google::protobuf::uint8* FileOptions::InternalSerializeWithCachedSizesToArray(
8436 ::google::protobuf::uint8* target) const { 8410 bool deterministic, ::google::protobuf::uint8* target) const {
8411 (void)deterministic; // Unused
8437 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileOptio ns) 8412 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileOptio ns)
8438 // optional string java_package = 1; 8413 // optional string java_package = 1;
8439 if (has_java_package()) { 8414 if (has_java_package()) {
8440 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 8415 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8441 this->java_package().data(), this->java_package().length(), 8416 this->java_package().data(), this->java_package().length(),
8442 ::google::protobuf::internal::WireFormat::SERIALIZE, 8417 ::google::protobuf::internal::WireFormat::SERIALIZE,
8443 "google.protobuf.FileOptions.java_package"); 8418 "google.protobuf.FileOptions.java_package");
8444 target = 8419 target =
8445 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 8420 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
8446 1, this->java_package(), target); 8421 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]; 8462 // optional bool java_generic_services = 17 [default = false];
8488 if (has_java_generic_services()) { 8463 if (has_java_generic_services()) {
8489 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17, this->java_generic_services(), target); 8464 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17, this->java_generic_services(), target);
8490 } 8465 }
8491 8466
8492 // optional bool py_generic_services = 18 [default = false]; 8467 // optional bool py_generic_services = 18 [default = false];
8493 if (has_py_generic_services()) { 8468 if (has_py_generic_services()) {
8494 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(18, this->py_generic_services(), target); 8469 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(18, this->py_generic_services(), target);
8495 } 8470 }
8496 8471
8497 // optional bool java_generate_equals_and_hash = 20 [default = false]; 8472 // optional bool java_generate_equals_and_hash = 20 [deprecated = true];
8498 if (has_java_generate_equals_and_hash()) { 8473 if (has_java_generate_equals_and_hash()) {
8499 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(20, this->java_generate_equals_and_hash(), target); 8474 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(20, this->java_generate_equals_and_hash(), target);
8500 } 8475 }
8501 8476
8502 // optional bool deprecated = 23 [default = false]; 8477 // optional bool deprecated = 23 [default = false];
8503 if (has_deprecated()) { 8478 if (has_deprecated()) {
8504 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(23, this->deprecated(), target); 8479 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(23, this->deprecated(), target);
8505 } 8480 }
8506 8481
8507 // optional bool java_string_check_utf8 = 27 [default = false]; 8482 // optional bool java_string_check_utf8 = 27 [default = false];
(...skipping 21 matching lines...) Expand all
8529 if (has_csharp_namespace()) { 8504 if (has_csharp_namespace()) {
8530 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 8505 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8531 this->csharp_namespace().data(), this->csharp_namespace().length(), 8506 this->csharp_namespace().data(), this->csharp_namespace().length(),
8532 ::google::protobuf::internal::WireFormat::SERIALIZE, 8507 ::google::protobuf::internal::WireFormat::SERIALIZE,
8533 "google.protobuf.FileOptions.csharp_namespace"); 8508 "google.protobuf.FileOptions.csharp_namespace");
8534 target = 8509 target =
8535 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 8510 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
8536 37, this->csharp_namespace(), target); 8511 37, this->csharp_namespace(), target);
8537 } 8512 }
8538 8513
8514 // optional string swift_prefix = 39;
8515 if (has_swift_prefix()) {
8516 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8517 this->swift_prefix().data(), this->swift_prefix().length(),
8518 ::google::protobuf::internal::WireFormat::SERIALIZE,
8519 "google.protobuf.FileOptions.swift_prefix");
8520 target =
8521 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
8522 39, this->swift_prefix(), target);
8523 }
8524
8539 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 8525 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
8540 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { 8526 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
8541 target = ::google::protobuf::internal::WireFormatLite:: 8527 target = ::google::protobuf::internal::WireFormatLite::
8542 WriteMessageNoVirtualToArray( 8528 InternalWriteMessageNoVirtualToArray(
8543 999, this->uninterpreted_option(i), target); 8529 999, this->uninterpreted_option(i), false, target);
8544 } 8530 }
8545 8531
8546 // Extension range [1000, 536870912) 8532 // Extension range [1000, 536870912)
8547 target = _extensions_.SerializeWithCachedSizesToArray( 8533 target = _extensions_.InternalSerializeWithCachedSizesToArray(
8548 1000, 536870912, target); 8534 1000, 536870912, false, target);
8549 8535
8550 if (_internal_metadata_.have_unknown_fields()) { 8536 if (_internal_metadata_.have_unknown_fields()) {
8551 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 8537 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
8552 unknown_fields(), target); 8538 unknown_fields(), target);
8553 } 8539 }
8554 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileOptions ) 8540 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileOptions )
8555 return target; 8541 return target;
8556 } 8542 }
8557 8543
8558 int FileOptions::ByteSize() const { 8544 size_t FileOptions::ByteSizeLong() const {
8559 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FileOptions) 8545 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FileOptions)
8560 int total_size = 0; 8546 size_t total_size = 0;
8547
8548 total_size += _extensions_.ByteSize();
8549
8550 if (_internal_metadata_.have_unknown_fields()) {
8551 total_size +=
8552 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
8553 unknown_fields());
8554 }
8555 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
8556 {
8557 unsigned int count = this->uninterpreted_option_size();
8558 total_size += 2UL * count;
8559 for (unsigned int i = 0; i < count; i++) {
8560 total_size +=
8561 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
8562 this->uninterpreted_option(i));
8563 }
8564 }
8561 8565
8562 if (_has_bits_[0 / 32] & 255u) { 8566 if (_has_bits_[0 / 32] & 255u) {
8563 // optional string java_package = 1; 8567 // optional string java_package = 1;
8564 if (has_java_package()) { 8568 if (has_java_package()) {
8565 total_size += 1 + 8569 total_size += 1 +
8566 ::google::protobuf::internal::WireFormatLite::StringSize( 8570 ::google::protobuf::internal::WireFormatLite::StringSize(
8567 this->java_package()); 8571 this->java_package());
8568 } 8572 }
8569 8573
8570 // optional string java_outer_classname = 8; 8574 // optional string java_outer_classname = 8;
8571 if (has_java_outer_classname()) { 8575 if (has_java_outer_classname()) {
8572 total_size += 1 + 8576 total_size += 1 +
8573 ::google::protobuf::internal::WireFormatLite::StringSize( 8577 ::google::protobuf::internal::WireFormatLite::StringSize(
8574 this->java_outer_classname()); 8578 this->java_outer_classname());
8575 } 8579 }
8576 8580
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; 8581 // optional string go_package = 11;
8599 if (has_go_package()) { 8582 if (has_go_package()) {
8600 total_size += 1 + 8583 total_size += 1 +
8601 ::google::protobuf::internal::WireFormatLite::StringSize( 8584 ::google::protobuf::internal::WireFormatLite::StringSize(
8602 this->go_package()); 8585 this->go_package());
8603 } 8586 }
8604 8587
8588 // optional string objc_class_prefix = 36;
8589 if (has_objc_class_prefix()) {
8590 total_size += 2 +
8591 ::google::protobuf::internal::WireFormatLite::StringSize(
8592 this->objc_class_prefix());
8593 }
8594
8595 // optional string csharp_namespace = 37;
8596 if (has_csharp_namespace()) {
8597 total_size += 2 +
8598 ::google::protobuf::internal::WireFormatLite::StringSize(
8599 this->csharp_namespace());
8600 }
8601
8602 // optional string swift_prefix = 39;
8603 if (has_swift_prefix()) {
8604 total_size += 2 +
8605 ::google::protobuf::internal::WireFormatLite::StringSize(
8606 this->swift_prefix());
8607 }
8608
8609 // optional bool java_multiple_files = 10 [default = false];
8610 if (has_java_multiple_files()) {
8611 total_size += 1 + 1;
8612 }
8613
8614 // optional bool java_generate_equals_and_hash = 20 [deprecated = true];
8615 if (has_java_generate_equals_and_hash()) {
8616 total_size += 2 + 1;
8617 }
8618
8619 }
8620 if (_has_bits_[8 / 32] & 32512u) {
8621 // optional bool java_string_check_utf8 = 27 [default = false];
8622 if (has_java_string_check_utf8()) {
8623 total_size += 2 + 1;
8624 }
8625
8605 // optional bool cc_generic_services = 16 [default = false]; 8626 // optional bool cc_generic_services = 16 [default = false];
8606 if (has_cc_generic_services()) { 8627 if (has_cc_generic_services()) {
8607 total_size += 2 + 1; 8628 total_size += 2 + 1;
8608 } 8629 }
8609 8630
8610 }
8611 if (_has_bits_[8 / 32] & 16128u) {
8612 // optional bool java_generic_services = 17 [default = false]; 8631 // optional bool java_generic_services = 17 [default = false];
8613 if (has_java_generic_services()) { 8632 if (has_java_generic_services()) {
8614 total_size += 2 + 1; 8633 total_size += 2 + 1;
8615 } 8634 }
8616 8635
8617 // optional bool py_generic_services = 18 [default = false]; 8636 // optional bool py_generic_services = 18 [default = false];
8618 if (has_py_generic_services()) { 8637 if (has_py_generic_services()) {
8619 total_size += 2 + 1; 8638 total_size += 2 + 1;
8620 } 8639 }
8621 8640
8622 // optional bool deprecated = 23 [default = false]; 8641 // optional bool deprecated = 23 [default = false];
8623 if (has_deprecated()) { 8642 if (has_deprecated()) {
8624 total_size += 2 + 1; 8643 total_size += 2 + 1;
8625 } 8644 }
8626 8645
8627 // optional bool cc_enable_arenas = 31 [default = false]; 8646 // optional bool cc_enable_arenas = 31 [default = false];
8628 if (has_cc_enable_arenas()) { 8647 if (has_cc_enable_arenas()) {
8629 total_size += 2 + 1; 8648 total_size += 2 + 1;
8630 } 8649 }
8631 8650
8632 // optional string objc_class_prefix = 36; 8651 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [defa ult = SPEED];
8633 if (has_objc_class_prefix()) { 8652 if (has_optimize_for()) {
8634 total_size += 2 + 8653 total_size += 1 +
8635 ::google::protobuf::internal::WireFormatLite::StringSize( 8654 ::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 } 8655 }
8645 8656
8646 } 8657 }
8647 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 8658 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(); 8659 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8663 _cached_size_ = total_size; 8660 _cached_size_ = cached_size;
8664 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 8661 GOOGLE_SAFE_CONCURRENT_WRITES_END();
8665 return total_size; 8662 return total_size;
8666 } 8663 }
8667 8664
8668 void FileOptions::MergeFrom(const ::google::protobuf::Message& from) { 8665 void FileOptions::MergeFrom(const ::google::protobuf::Message& from) {
8669 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FileOpt ions) 8666 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FileOpt ions)
8670 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 8667 GOOGLE_DCHECK_NE(&from, this);
8671 const FileOptions* source = 8668 const FileOptions* source =
8672 ::google::protobuf::internal::DynamicCastToGenerated<const FileOptions>( 8669 ::google::protobuf::internal::DynamicCastToGenerated<const FileOptions>(
8673 &from); 8670 &from);
8674 if (source == NULL) { 8671 if (source == NULL) {
8675 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.F ileOptions) 8672 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.F ileOptions)
8676 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 8673 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
8677 } else { 8674 } else {
8678 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.FileOptions) 8675 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.FileOptions)
8679 MergeFrom(*source); 8676 MergeFrom(*source);
8680 } 8677 }
8681 } 8678 }
8682 8679
8683 void FileOptions::MergeFrom(const FileOptions& from) { 8680 void FileOptions::MergeFrom(const FileOptions& from) {
8684 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.File Options) 8681 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.File Options)
8685 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 8682 GOOGLE_DCHECK_NE(&from, this);
8683 _extensions_.MergeFrom(from._extensions_);
8684 _internal_metadata_.MergeFrom(from._internal_metadata_);
8686 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); 8685 uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
8687 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { 8686 if (from._has_bits_[0 / 32] & 255u) {
8688 if (from.has_java_package()) { 8687 if (from.has_java_package()) {
8689 set_has_java_package(); 8688 set_has_java_package();
8690 java_package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited(), from.java_package_); 8689 java_package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited(), from.java_package_);
8691 } 8690 }
8692 if (from.has_java_outer_classname()) { 8691 if (from.has_java_outer_classname()) {
8693 set_has_java_outer_classname(); 8692 set_has_java_outer_classname();
8694 java_outer_classname_.AssignWithDefault(&::google::protobuf::internal::Get EmptyStringAlreadyInited(), from.java_outer_classname_); 8693 java_outer_classname_.AssignWithDefault(&::google::protobuf::internal::Get EmptyStringAlreadyInited(), from.java_outer_classname_);
8695 } 8694 }
8695 if (from.has_go_package()) {
8696 set_has_go_package();
8697 go_package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited(), from.go_package_);
8698 }
8699 if (from.has_objc_class_prefix()) {
8700 set_has_objc_class_prefix();
8701 objc_class_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmp tyStringAlreadyInited(), from.objc_class_prefix_);
8702 }
8703 if (from.has_csharp_namespace()) {
8704 set_has_csharp_namespace();
8705 csharp_namespace_.AssignWithDefault(&::google::protobuf::internal::GetEmpt yStringAlreadyInited(), from.csharp_namespace_);
8706 }
8707 if (from.has_swift_prefix()) {
8708 set_has_swift_prefix();
8709 swift_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited(), from.swift_prefix_);
8710 }
8696 if (from.has_java_multiple_files()) { 8711 if (from.has_java_multiple_files()) {
8697 set_java_multiple_files(from.java_multiple_files()); 8712 set_java_multiple_files(from.java_multiple_files());
8698 } 8713 }
8699 if (from.has_java_generate_equals_and_hash()) { 8714 if (from.has_java_generate_equals_and_hash()) {
8700 set_java_generate_equals_and_hash(from.java_generate_equals_and_hash()); 8715 set_java_generate_equals_and_hash(from.java_generate_equals_and_hash());
8701 } 8716 }
8717 }
8718 if (from._has_bits_[8 / 32] & 32512u) {
8702 if (from.has_java_string_check_utf8()) { 8719 if (from.has_java_string_check_utf8()) {
8703 set_java_string_check_utf8(from.java_string_check_utf8()); 8720 set_java_string_check_utf8(from.java_string_check_utf8());
8704 } 8721 }
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()) { 8722 if (from.has_cc_generic_services()) {
8713 set_cc_generic_services(from.cc_generic_services()); 8723 set_cc_generic_services(from.cc_generic_services());
8714 } 8724 }
8715 }
8716 if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
8717 if (from.has_java_generic_services()) { 8725 if (from.has_java_generic_services()) {
8718 set_java_generic_services(from.java_generic_services()); 8726 set_java_generic_services(from.java_generic_services());
8719 } 8727 }
8720 if (from.has_py_generic_services()) { 8728 if (from.has_py_generic_services()) {
8721 set_py_generic_services(from.py_generic_services()); 8729 set_py_generic_services(from.py_generic_services());
8722 } 8730 }
8723 if (from.has_deprecated()) { 8731 if (from.has_deprecated()) {
8724 set_deprecated(from.deprecated()); 8732 set_deprecated(from.deprecated());
8725 } 8733 }
8726 if (from.has_cc_enable_arenas()) { 8734 if (from.has_cc_enable_arenas()) {
8727 set_cc_enable_arenas(from.cc_enable_arenas()); 8735 set_cc_enable_arenas(from.cc_enable_arenas());
8728 } 8736 }
8729 if (from.has_objc_class_prefix()) { 8737 if (from.has_optimize_for()) {
8730 set_has_objc_class_prefix(); 8738 set_optimize_for(from.optimize_for());
8731 objc_class_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmp tyStringAlreadyInited(), from.objc_class_prefix_);
8732 } 8739 }
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 } 8740 }
8742 } 8741 }
8743 8742
8744 void FileOptions::CopyFrom(const ::google::protobuf::Message& from) { 8743 void FileOptions::CopyFrom(const ::google::protobuf::Message& from) {
8745 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FileOpti ons) 8744 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FileOpti ons)
8746 if (&from == this) return; 8745 if (&from == this) return;
8747 Clear(); 8746 Clear();
8748 MergeFrom(from); 8747 MergeFrom(from);
8749 } 8748 }
8750 8749
8751 void FileOptions::CopyFrom(const FileOptions& from) { 8750 void FileOptions::CopyFrom(const FileOptions& from) {
8752 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FileO ptions) 8751 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FileO ptions)
8753 if (&from == this) return; 8752 if (&from == this) return;
8754 Clear(); 8753 Clear();
8755 MergeFrom(from); 8754 MergeFrom(from);
8756 } 8755 }
8757 8756
8758 bool FileOptions::IsInitialized() const { 8757 bool FileOptions::IsInitialized() const {
8758 if (!_extensions_.IsInitialized()) {
8759 return false;
8760 }
8759 8761
8760 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio n())) return false; 8762 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio n())) return false;
8761 8763 return true;
8762 if (!_extensions_.IsInitialized()) return false; return true;
8763 } 8764 }
8764 8765
8765 void FileOptions::Swap(FileOptions* other) { 8766 void FileOptions::Swap(FileOptions* other) {
8766 if (other == this) return; 8767 if (other == this) return;
8767 InternalSwap(other); 8768 InternalSwap(other);
8768 } 8769 }
8769 void FileOptions::InternalSwap(FileOptions* other) { 8770 void FileOptions::InternalSwap(FileOptions* other) {
8771 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
8770 java_package_.Swap(&other->java_package_); 8772 java_package_.Swap(&other->java_package_);
8771 java_outer_classname_.Swap(&other->java_outer_classname_); 8773 java_outer_classname_.Swap(&other->java_outer_classname_);
8774 go_package_.Swap(&other->go_package_);
8775 objc_class_prefix_.Swap(&other->objc_class_prefix_);
8776 csharp_namespace_.Swap(&other->csharp_namespace_);
8777 swift_prefix_.Swap(&other->swift_prefix_);
8772 std::swap(java_multiple_files_, other->java_multiple_files_); 8778 std::swap(java_multiple_files_, other->java_multiple_files_);
8773 std::swap(java_generate_equals_and_hash_, other->java_generate_equals_and_hash _); 8779 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_); 8780 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_); 8781 std::swap(cc_generic_services_, other->cc_generic_services_);
8778 std::swap(java_generic_services_, other->java_generic_services_); 8782 std::swap(java_generic_services_, other->java_generic_services_);
8779 std::swap(py_generic_services_, other->py_generic_services_); 8783 std::swap(py_generic_services_, other->py_generic_services_);
8780 std::swap(deprecated_, other->deprecated_); 8784 std::swap(deprecated_, other->deprecated_);
8781 std::swap(cc_enable_arenas_, other->cc_enable_arenas_); 8785 std::swap(cc_enable_arenas_, other->cc_enable_arenas_);
8782 objc_class_prefix_.Swap(&other->objc_class_prefix_); 8786 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]); 8787 std::swap(_has_bits_[0], other->_has_bits_[0]);
8786 _internal_metadata_.Swap(&other->_internal_metadata_); 8788 _internal_metadata_.Swap(&other->_internal_metadata_);
8787 std::swap(_cached_size_, other->_cached_size_); 8789 std::swap(_cached_size_, other->_cached_size_);
8788 _extensions_.Swap(&other->_extensions_); 8790 _extensions_.Swap(&other->_extensions_);
8789 } 8791 }
8790 8792
8791 ::google::protobuf::Metadata FileOptions::GetMetadata() const { 8793 ::google::protobuf::Metadata FileOptions::GetMetadata() const {
8792 protobuf_AssignDescriptorsOnce(); 8794 protobuf_AssignDescriptorsOnce();
8793 ::google::protobuf::Metadata metadata; 8795 return file_level_metadata[11];
8794 metadata.descriptor = FileOptions_descriptor_;
8795 metadata.reflection = FileOptions_reflection_;
8796 return metadata;
8797 } 8796 }
8798 8797
8799 #if PROTOBUF_INLINE_NOT_IN_HEADERS 8798 #if PROTOBUF_INLINE_NOT_IN_HEADERS
8800 // FileOptions 8799 // FileOptions
8801 8800
8802 // optional string java_package = 1; 8801 // optional string java_package = 1;
8803 bool FileOptions::has_java_package() const { 8802 bool FileOptions::has_java_package() const {
8804 return (_has_bits_[0] & 0x00000001u) != 0; 8803 return (_has_bits_[0] & 0x00000001u) != 0;
8805 } 8804 }
8806 void FileOptions::set_has_java_package() { 8805 void FileOptions::set_has_java_package() {
8807 _has_bits_[0] |= 0x00000001u; 8806 _has_bits_[0] |= 0x00000001u;
8808 } 8807 }
8809 void FileOptions::clear_has_java_package() { 8808 void FileOptions::clear_has_java_package() {
8810 _has_bits_[0] &= ~0x00000001u; 8809 _has_bits_[0] &= ~0x00000001u;
8811 } 8810 }
8812 void FileOptions::clear_java_package() { 8811 void FileOptions::clear_java_package() {
8813 java_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited()); 8812 java_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited());
8814 clear_has_java_package(); 8813 clear_has_java_package();
8815 } 8814 }
8816 const ::std::string& FileOptions::java_package() const { 8815 const ::std::string& FileOptions::java_package() const {
8817 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_package ) 8816 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_package )
8818 return java_package_.GetNoArena(&::google::protobuf::internal::GetEmptyStringA lreadyInited()); 8817 return java_package_.GetNoArena();
8819 } 8818 }
8820 void FileOptions::set_java_package(const ::std::string& value) { 8819 void FileOptions::set_java_package(const ::std::string& value) {
8821 set_has_java_package(); 8820 set_has_java_package();
8822 java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI nited(), value); 8821 java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI nited(), value);
8823 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_package ) 8822 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_package )
8824 } 8823 }
8825 void FileOptions::set_java_package(const char* value) { 8824 void FileOptions::set_java_package(const char* value) {
8826 set_has_java_package(); 8825 set_has_java_package();
8827 java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI nited(), ::std::string(value)); 8826 java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI nited(), ::std::string(value));
8828 // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.java_pa ckage) 8827 // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.java_pa ckage)
8829 } 8828 }
8830 void FileOptions::set_java_package(const char* value, size_t size) { 8829 void FileOptions::set_java_package(const char* value, size_t size) {
8831 set_has_java_package(); 8830 set_has_java_package();
8832 java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI nited(), 8831 java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI nited(),
8833 ::std::string(reinterpret_cast<const char*>(value), size)); 8832 ::std::string(reinterpret_cast<const char*>(value), size));
8834 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.java _package) 8833 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.java _package)
8835 } 8834 }
8836 ::std::string* FileOptions::mutable_java_package() { 8835 ::std::string* FileOptions::mutable_java_package() {
8837 set_has_java_package(); 8836 set_has_java_package();
8838 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_pac kage) 8837 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_pac kage)
8839 return java_package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited()); 8838 return java_package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited());
8840 } 8839 }
8841 ::std::string* FileOptions::release_java_package() { 8840 ::std::string* FileOptions::release_java_package() {
8842 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.java_pac kage) 8841 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.java_pac kage)
8843 clear_has_java_package(); 8842 clear_has_java_package();
8844 return java_package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited()); 8843 return java_package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited());
8845 } 8844 }
8846 void FileOptions::set_allocated_java_package(::std::string* java_package) { 8845 void FileOptions::set_allocated_java_package(::std::string* java_package) {
8847 if (java_package != NULL) { 8846 if (java_package != NULL) {
8848 set_has_java_package(); 8847 set_has_java_package();
8849 } else { 8848 } else {
8850 clear_has_java_package(); 8849 clear_has_java_package();
8851 } 8850 }
8852 java_package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited(), java_package); 8851 java_package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited(), java_package);
8853 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.ja va_package) 8852 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.ja va_package)
8854 } 8853 }
8855 8854
8856 // optional string java_outer_classname = 8; 8855 // optional string java_outer_classname = 8;
8857 bool FileOptions::has_java_outer_classname() const { 8856 bool FileOptions::has_java_outer_classname() const {
8858 return (_has_bits_[0] & 0x00000002u) != 0; 8857 return (_has_bits_[0] & 0x00000002u) != 0;
8859 } 8858 }
8860 void FileOptions::set_has_java_outer_classname() { 8859 void FileOptions::set_has_java_outer_classname() {
8861 _has_bits_[0] |= 0x00000002u; 8860 _has_bits_[0] |= 0x00000002u;
8862 } 8861 }
8863 void FileOptions::clear_has_java_outer_classname() { 8862 void FileOptions::clear_has_java_outer_classname() {
8864 _has_bits_[0] &= ~0x00000002u; 8863 _has_bits_[0] &= ~0x00000002u;
8865 } 8864 }
8866 void FileOptions::clear_java_outer_classname() { 8865 void FileOptions::clear_java_outer_classname() {
8867 java_outer_classname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEm ptyStringAlreadyInited()); 8866 java_outer_classname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEm ptyStringAlreadyInited());
8868 clear_has_java_outer_classname(); 8867 clear_has_java_outer_classname();
8869 } 8868 }
8870 const ::std::string& FileOptions::java_outer_classname() const { 8869 const ::std::string& FileOptions::java_outer_classname() const {
8871 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_outer_c lassname) 8870 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_outer_c lassname)
8872 return java_outer_classname_.GetNoArena(&::google::protobuf::internal::GetEmpt yStringAlreadyInited()); 8871 return java_outer_classname_.GetNoArena();
8873 } 8872 }
8874 void FileOptions::set_java_outer_classname(const ::std::string& value) { 8873 void FileOptions::set_java_outer_classname(const ::std::string& value) {
8875 set_has_java_outer_classname(); 8874 set_has_java_outer_classname();
8876 java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited(), value); 8875 java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited(), value);
8877 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_outer_c lassname) 8876 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_outer_c lassname)
8878 } 8877 }
8879 void FileOptions::set_java_outer_classname(const char* value) { 8878 void FileOptions::set_java_outer_classname(const char* value) {
8880 set_has_java_outer_classname(); 8879 set_has_java_outer_classname();
8881 java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited(), ::std::string(value)); 8880 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) 8881 // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.java_ou ter_classname)
8883 } 8882 }
8884 void FileOptions::set_java_outer_classname(const char* value, size_t size) { 8883 void FileOptions::set_java_outer_classname(const char* value, size_t size) {
8885 set_has_java_outer_classname(); 8884 set_has_java_outer_classname();
8886 java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited(), 8885 java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited(),
8887 ::std::string(reinterpret_cast<const char*>(value), size)); 8886 ::std::string(reinterpret_cast<const char*>(value), size));
8888 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.java _outer_classname) 8887 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.java _outer_classname)
8889 } 8888 }
8890 ::std::string* FileOptions::mutable_java_outer_classname() { 8889 ::std::string* FileOptions::mutable_java_outer_classname() {
8891 set_has_java_outer_classname(); 8890 set_has_java_outer_classname();
8892 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_out er_classname) 8891 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_out er_classname)
8893 return java_outer_classname_.MutableNoArena(&::google::protobuf::internal::Get EmptyStringAlreadyInited()); 8892 return java_outer_classname_.MutableNoArena(&::google::protobuf::internal::Get EmptyStringAlreadyInited());
8894 } 8893 }
8895 ::std::string* FileOptions::release_java_outer_classname() { 8894 ::std::string* FileOptions::release_java_outer_classname() {
8896 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.java_out er_classname) 8895 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.java_out er_classname)
8897 clear_has_java_outer_classname(); 8896 clear_has_java_outer_classname();
8898 return java_outer_classname_.ReleaseNoArena(&::google::protobuf::internal::Get EmptyStringAlreadyInited()); 8897 return java_outer_classname_.ReleaseNoArena(&::google::protobuf::internal::Get EmptyStringAlreadyInited());
8899 } 8898 }
8900 void FileOptions::set_allocated_java_outer_classname(::std::string* java_outer_ classname) { 8899 void FileOptions::set_allocated_java_outer_classname(::std::string* java_outer_c lassname) {
8901 if (java_outer_classname != NULL) { 8900 if (java_outer_classname != NULL) {
8902 set_has_java_outer_classname(); 8901 set_has_java_outer_classname();
8903 } else { 8902 } else {
8904 clear_has_java_outer_classname(); 8903 clear_has_java_outer_classname();
8905 } 8904 }
8906 java_outer_classname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEm ptyStringAlreadyInited(), java_outer_classname); 8905 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) 8906 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.ja va_outer_classname)
8908 } 8907 }
8909 8908
8910 // optional bool java_multiple_files = 10 [default = false]; 8909 // optional bool java_multiple_files = 10 [default = false];
8911 bool FileOptions::has_java_multiple_files() const { 8910 bool FileOptions::has_java_multiple_files() const {
8912 return (_has_bits_[0] & 0x00000004u) != 0; 8911 return (_has_bits_[0] & 0x00000040u) != 0;
8913 } 8912 }
8914 void FileOptions::set_has_java_multiple_files() { 8913 void FileOptions::set_has_java_multiple_files() {
8915 _has_bits_[0] |= 0x00000004u; 8914 _has_bits_[0] |= 0x00000040u;
8916 } 8915 }
8917 void FileOptions::clear_has_java_multiple_files() { 8916 void FileOptions::clear_has_java_multiple_files() {
8918 _has_bits_[0] &= ~0x00000004u; 8917 _has_bits_[0] &= ~0x00000040u;
8919 } 8918 }
8920 void FileOptions::clear_java_multiple_files() { 8919 void FileOptions::clear_java_multiple_files() {
8921 java_multiple_files_ = false; 8920 java_multiple_files_ = false;
8922 clear_has_java_multiple_files(); 8921 clear_has_java_multiple_files();
8923 } 8922 }
8924 bool FileOptions::java_multiple_files() const { 8923 bool FileOptions::java_multiple_files() const {
8925 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_multipl e_files) 8924 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_multipl e_files)
8926 return java_multiple_files_; 8925 return java_multiple_files_;
8927 } 8926 }
8928 void FileOptions::set_java_multiple_files(bool value) { 8927 void FileOptions::set_java_multiple_files(bool value) {
8929 set_has_java_multiple_files(); 8928 set_has_java_multiple_files();
8930 java_multiple_files_ = value; 8929 java_multiple_files_ = value;
8931 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_multipl e_files) 8930 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_multipl e_files)
8932 } 8931 }
8933 8932
8934 // optional bool java_generate_equals_and_hash = 20 [default = false]; 8933 // optional bool java_generate_equals_and_hash = 20 [deprecated = true];
8935 bool FileOptions::has_java_generate_equals_and_hash() const { 8934 bool FileOptions::has_java_generate_equals_and_hash() const {
8936 return (_has_bits_[0] & 0x00000008u) != 0; 8935 return (_has_bits_[0] & 0x00000080u) != 0;
8937 } 8936 }
8938 void FileOptions::set_has_java_generate_equals_and_hash() { 8937 void FileOptions::set_has_java_generate_equals_and_hash() {
8939 _has_bits_[0] |= 0x00000008u; 8938 _has_bits_[0] |= 0x00000080u;
8940 } 8939 }
8941 void FileOptions::clear_has_java_generate_equals_and_hash() { 8940 void FileOptions::clear_has_java_generate_equals_and_hash() {
8942 _has_bits_[0] &= ~0x00000008u; 8941 _has_bits_[0] &= ~0x00000080u;
8943 } 8942 }
8944 void FileOptions::clear_java_generate_equals_and_hash() { 8943 void FileOptions::clear_java_generate_equals_and_hash() {
8945 java_generate_equals_and_hash_ = false; 8944 java_generate_equals_and_hash_ = false;
8946 clear_has_java_generate_equals_and_hash(); 8945 clear_has_java_generate_equals_and_hash();
8947 } 8946 }
8948 bool FileOptions::java_generate_equals_and_hash() const { 8947 bool FileOptions::java_generate_equals_and_hash() const {
8949 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generat e_equals_and_hash) 8948 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generat e_equals_and_hash)
8950 return java_generate_equals_and_hash_; 8949 return java_generate_equals_and_hash_;
8951 } 8950 }
8952 void FileOptions::set_java_generate_equals_and_hash(bool value) { 8951 void FileOptions::set_java_generate_equals_and_hash(bool value) {
8953 set_has_java_generate_equals_and_hash(); 8952 set_has_java_generate_equals_and_hash();
8954 java_generate_equals_and_hash_ = value; 8953 java_generate_equals_and_hash_ = value;
8955 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generat e_equals_and_hash) 8954 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generat e_equals_and_hash)
8956 } 8955 }
8957 8956
8958 // optional bool java_string_check_utf8 = 27 [default = false]; 8957 // optional bool java_string_check_utf8 = 27 [default = false];
8959 bool FileOptions::has_java_string_check_utf8() const { 8958 bool FileOptions::has_java_string_check_utf8() const {
8960 return (_has_bits_[0] & 0x00000010u) != 0; 8959 return (_has_bits_[0] & 0x00000100u) != 0;
8961 } 8960 }
8962 void FileOptions::set_has_java_string_check_utf8() { 8961 void FileOptions::set_has_java_string_check_utf8() {
8963 _has_bits_[0] |= 0x00000010u; 8962 _has_bits_[0] |= 0x00000100u;
8964 } 8963 }
8965 void FileOptions::clear_has_java_string_check_utf8() { 8964 void FileOptions::clear_has_java_string_check_utf8() {
8966 _has_bits_[0] &= ~0x00000010u; 8965 _has_bits_[0] &= ~0x00000100u;
8967 } 8966 }
8968 void FileOptions::clear_java_string_check_utf8() { 8967 void FileOptions::clear_java_string_check_utf8() {
8969 java_string_check_utf8_ = false; 8968 java_string_check_utf8_ = false;
8970 clear_has_java_string_check_utf8(); 8969 clear_has_java_string_check_utf8();
8971 } 8970 }
8972 bool FileOptions::java_string_check_utf8() const { 8971 bool FileOptions::java_string_check_utf8() const {
8973 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_string_ check_utf8) 8972 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_string_ check_utf8)
8974 return java_string_check_utf8_; 8973 return java_string_check_utf8_;
8975 } 8974 }
8976 void FileOptions::set_java_string_check_utf8(bool value) { 8975 void FileOptions::set_java_string_check_utf8(bool value) {
8977 set_has_java_string_check_utf8(); 8976 set_has_java_string_check_utf8();
8978 java_string_check_utf8_ = value; 8977 java_string_check_utf8_ = value;
8979 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_string_ check_utf8) 8978 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_string_ check_utf8)
8980 } 8979 }
8981 8980
8982 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; 8981 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
8983 bool FileOptions::has_optimize_for() const { 8982 bool FileOptions::has_optimize_for() const {
8984 return (_has_bits_[0] & 0x00000020u) != 0; 8983 return (_has_bits_[0] & 0x00004000u) != 0;
8985 } 8984 }
8986 void FileOptions::set_has_optimize_for() { 8985 void FileOptions::set_has_optimize_for() {
8987 _has_bits_[0] |= 0x00000020u; 8986 _has_bits_[0] |= 0x00004000u;
8988 } 8987 }
8989 void FileOptions::clear_has_optimize_for() { 8988 void FileOptions::clear_has_optimize_for() {
8990 _has_bits_[0] &= ~0x00000020u; 8989 _has_bits_[0] &= ~0x00004000u;
8991 } 8990 }
8992 void FileOptions::clear_optimize_for() { 8991 void FileOptions::clear_optimize_for() {
8993 optimize_for_ = 1; 8992 optimize_for_ = 1;
8994 clear_has_optimize_for(); 8993 clear_has_optimize_for();
8995 } 8994 }
8996 ::google::protobuf::FileOptions_OptimizeMode FileOptions::optimize_for() const { 8995 ::google::protobuf::FileOptions_OptimizeMode FileOptions::optimize_for() const {
8997 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.optimize_for ) 8996 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.optimize_for )
8998 return static_cast< ::google::protobuf::FileOptions_OptimizeMode >(optimize_fo r_); 8997 return static_cast< ::google::protobuf::FileOptions_OptimizeMode >(optimize_fo r_);
8999 } 8998 }
9000 void FileOptions::set_optimize_for(::google::protobuf::FileOptions_OptimizeMode value) { 8999 void FileOptions::set_optimize_for(::google::protobuf::FileOptions_OptimizeMode value) {
9001 assert(::google::protobuf::FileOptions_OptimizeMode_IsValid(value)); 9000 assert(::google::protobuf::FileOptions_OptimizeMode_IsValid(value));
9002 set_has_optimize_for(); 9001 set_has_optimize_for();
9003 optimize_for_ = value; 9002 optimize_for_ = value;
9004 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.optimize_for ) 9003 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.optimize_for )
9005 } 9004 }
9006 9005
9007 // optional string go_package = 11; 9006 // optional string go_package = 11;
9008 bool FileOptions::has_go_package() const { 9007 bool FileOptions::has_go_package() const {
9009 return (_has_bits_[0] & 0x00000040u) != 0; 9008 return (_has_bits_[0] & 0x00000004u) != 0;
9010 } 9009 }
9011 void FileOptions::set_has_go_package() { 9010 void FileOptions::set_has_go_package() {
9012 _has_bits_[0] |= 0x00000040u; 9011 _has_bits_[0] |= 0x00000004u;
9013 } 9012 }
9014 void FileOptions::clear_has_go_package() { 9013 void FileOptions::clear_has_go_package() {
9015 _has_bits_[0] &= ~0x00000040u; 9014 _has_bits_[0] &= ~0x00000004u;
9016 } 9015 }
9017 void FileOptions::clear_go_package() { 9016 void FileOptions::clear_go_package() {
9018 go_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringA lreadyInited()); 9017 go_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringA lreadyInited());
9019 clear_has_go_package(); 9018 clear_has_go_package();
9020 } 9019 }
9021 const ::std::string& FileOptions::go_package() const { 9020 const ::std::string& FileOptions::go_package() const {
9022 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.go_package) 9021 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.go_package)
9023 return go_package_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited()); 9022 return go_package_.GetNoArena();
9024 } 9023 }
9025 void FileOptions::set_go_package(const ::std::string& value) { 9024 void FileOptions::set_go_package(const ::std::string& value) {
9026 set_has_go_package(); 9025 set_has_go_package();
9027 go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted(), value); 9026 go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted(), value);
9028 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.go_package) 9027 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.go_package)
9029 } 9028 }
9030 void FileOptions::set_go_package(const char* value) { 9029 void FileOptions::set_go_package(const char* value) {
9031 set_has_go_package(); 9030 set_has_go_package();
9032 go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted(), ::std::string(value)); 9031 go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted(), ::std::string(value));
9033 // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.go_pack age) 9032 // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.go_pack age)
9034 } 9033 }
9035 void FileOptions::set_go_package(const char* value, size_t size) { 9034 void FileOptions::set_go_package(const char* value, size_t size) {
9036 set_has_go_package(); 9035 set_has_go_package();
9037 go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted(), 9036 go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted(),
9038 ::std::string(reinterpret_cast<const char*>(value), size)); 9037 ::std::string(reinterpret_cast<const char*>(value), size));
9039 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.go_p ackage) 9038 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.go_p ackage)
9040 } 9039 }
9041 ::std::string* FileOptions::mutable_go_package() { 9040 ::std::string* FileOptions::mutable_go_package() {
9042 set_has_go_package(); 9041 set_has_go_package();
9043 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.go_packa ge) 9042 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.go_packa ge)
9044 return go_package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited()); 9043 return go_package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited());
9045 } 9044 }
9046 ::std::string* FileOptions::release_go_package() { 9045 ::std::string* FileOptions::release_go_package() {
9047 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.go_packa ge) 9046 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.go_packa ge)
9048 clear_has_go_package(); 9047 clear_has_go_package();
9049 return go_package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited()); 9048 return go_package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited());
9050 } 9049 }
9051 void FileOptions::set_allocated_go_package(::std::string* go_package) { 9050 void FileOptions::set_allocated_go_package(::std::string* go_package) {
9052 if (go_package != NULL) { 9051 if (go_package != NULL) {
9053 set_has_go_package(); 9052 set_has_go_package();
9054 } else { 9053 } else {
9055 clear_has_go_package(); 9054 clear_has_go_package();
9056 } 9055 }
9057 go_package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringA lreadyInited(), go_package); 9056 go_package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringA lreadyInited(), go_package);
9058 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.go _package) 9057 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.go _package)
9059 } 9058 }
9060 9059
9061 // optional bool cc_generic_services = 16 [default = false]; 9060 // optional bool cc_generic_services = 16 [default = false];
9062 bool FileOptions::has_cc_generic_services() const { 9061 bool FileOptions::has_cc_generic_services() const {
9063 return (_has_bits_[0] & 0x00000080u) != 0; 9062 return (_has_bits_[0] & 0x00000200u) != 0;
9064 } 9063 }
9065 void FileOptions::set_has_cc_generic_services() { 9064 void FileOptions::set_has_cc_generic_services() {
9066 _has_bits_[0] |= 0x00000080u; 9065 _has_bits_[0] |= 0x00000200u;
9067 } 9066 }
9068 void FileOptions::clear_has_cc_generic_services() { 9067 void FileOptions::clear_has_cc_generic_services() {
9069 _has_bits_[0] &= ~0x00000080u; 9068 _has_bits_[0] &= ~0x00000200u;
9070 } 9069 }
9071 void FileOptions::clear_cc_generic_services() { 9070 void FileOptions::clear_cc_generic_services() {
9072 cc_generic_services_ = false; 9071 cc_generic_services_ = false;
9073 clear_has_cc_generic_services(); 9072 clear_has_cc_generic_services();
9074 } 9073 }
9075 bool FileOptions::cc_generic_services() const { 9074 bool FileOptions::cc_generic_services() const {
9076 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_generic_s ervices) 9075 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_generic_s ervices)
9077 return cc_generic_services_; 9076 return cc_generic_services_;
9078 } 9077 }
9079 void FileOptions::set_cc_generic_services(bool value) { 9078 void FileOptions::set_cc_generic_services(bool value) {
9080 set_has_cc_generic_services(); 9079 set_has_cc_generic_services();
9081 cc_generic_services_ = value; 9080 cc_generic_services_ = value;
9082 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.cc_generic_s ervices) 9081 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.cc_generic_s ervices)
9083 } 9082 }
9084 9083
9085 // optional bool java_generic_services = 17 [default = false]; 9084 // optional bool java_generic_services = 17 [default = false];
9086 bool FileOptions::has_java_generic_services() const { 9085 bool FileOptions::has_java_generic_services() const {
9087 return (_has_bits_[0] & 0x00000100u) != 0; 9086 return (_has_bits_[0] & 0x00000400u) != 0;
9088 } 9087 }
9089 void FileOptions::set_has_java_generic_services() { 9088 void FileOptions::set_has_java_generic_services() {
9090 _has_bits_[0] |= 0x00000100u; 9089 _has_bits_[0] |= 0x00000400u;
9091 } 9090 }
9092 void FileOptions::clear_has_java_generic_services() { 9091 void FileOptions::clear_has_java_generic_services() {
9093 _has_bits_[0] &= ~0x00000100u; 9092 _has_bits_[0] &= ~0x00000400u;
9094 } 9093 }
9095 void FileOptions::clear_java_generic_services() { 9094 void FileOptions::clear_java_generic_services() {
9096 java_generic_services_ = false; 9095 java_generic_services_ = false;
9097 clear_has_java_generic_services(); 9096 clear_has_java_generic_services();
9098 } 9097 }
9099 bool FileOptions::java_generic_services() const { 9098 bool FileOptions::java_generic_services() const {
9100 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generic _services) 9099 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generic _services)
9101 return java_generic_services_; 9100 return java_generic_services_;
9102 } 9101 }
9103 void FileOptions::set_java_generic_services(bool value) { 9102 void FileOptions::set_java_generic_services(bool value) {
9104 set_has_java_generic_services(); 9103 set_has_java_generic_services();
9105 java_generic_services_ = value; 9104 java_generic_services_ = value;
9106 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generic _services) 9105 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generic _services)
9107 } 9106 }
9108 9107
9109 // optional bool py_generic_services = 18 [default = false]; 9108 // optional bool py_generic_services = 18 [default = false];
9110 bool FileOptions::has_py_generic_services() const { 9109 bool FileOptions::has_py_generic_services() const {
9111 return (_has_bits_[0] & 0x00000200u) != 0; 9110 return (_has_bits_[0] & 0x00000800u) != 0;
9112 } 9111 }
9113 void FileOptions::set_has_py_generic_services() { 9112 void FileOptions::set_has_py_generic_services() {
9114 _has_bits_[0] |= 0x00000200u; 9113 _has_bits_[0] |= 0x00000800u;
9115 } 9114 }
9116 void FileOptions::clear_has_py_generic_services() { 9115 void FileOptions::clear_has_py_generic_services() {
9117 _has_bits_[0] &= ~0x00000200u; 9116 _has_bits_[0] &= ~0x00000800u;
9118 } 9117 }
9119 void FileOptions::clear_py_generic_services() { 9118 void FileOptions::clear_py_generic_services() {
9120 py_generic_services_ = false; 9119 py_generic_services_ = false;
9121 clear_has_py_generic_services(); 9120 clear_has_py_generic_services();
9122 } 9121 }
9123 bool FileOptions::py_generic_services() const { 9122 bool FileOptions::py_generic_services() const {
9124 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.py_generic_s ervices) 9123 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.py_generic_s ervices)
9125 return py_generic_services_; 9124 return py_generic_services_;
9126 } 9125 }
9127 void FileOptions::set_py_generic_services(bool value) { 9126 void FileOptions::set_py_generic_services(bool value) {
9128 set_has_py_generic_services(); 9127 set_has_py_generic_services();
9129 py_generic_services_ = value; 9128 py_generic_services_ = value;
9130 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.py_generic_s ervices) 9129 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.py_generic_s ervices)
9131 } 9130 }
9132 9131
9133 // optional bool deprecated = 23 [default = false]; 9132 // optional bool deprecated = 23 [default = false];
9134 bool FileOptions::has_deprecated() const { 9133 bool FileOptions::has_deprecated() const {
9135 return (_has_bits_[0] & 0x00000400u) != 0; 9134 return (_has_bits_[0] & 0x00001000u) != 0;
9136 } 9135 }
9137 void FileOptions::set_has_deprecated() { 9136 void FileOptions::set_has_deprecated() {
9138 _has_bits_[0] |= 0x00000400u; 9137 _has_bits_[0] |= 0x00001000u;
9139 } 9138 }
9140 void FileOptions::clear_has_deprecated() { 9139 void FileOptions::clear_has_deprecated() {
9141 _has_bits_[0] &= ~0x00000400u; 9140 _has_bits_[0] &= ~0x00001000u;
9142 } 9141 }
9143 void FileOptions::clear_deprecated() { 9142 void FileOptions::clear_deprecated() {
9144 deprecated_ = false; 9143 deprecated_ = false;
9145 clear_has_deprecated(); 9144 clear_has_deprecated();
9146 } 9145 }
9147 bool FileOptions::deprecated() const { 9146 bool FileOptions::deprecated() const {
9148 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.deprecated) 9147 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.deprecated)
9149 return deprecated_; 9148 return deprecated_;
9150 } 9149 }
9151 void FileOptions::set_deprecated(bool value) { 9150 void FileOptions::set_deprecated(bool value) {
9152 set_has_deprecated(); 9151 set_has_deprecated();
9153 deprecated_ = value; 9152 deprecated_ = value;
9154 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.deprecated) 9153 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.deprecated)
9155 } 9154 }
9156 9155
9157 // optional bool cc_enable_arenas = 31 [default = false]; 9156 // optional bool cc_enable_arenas = 31 [default = false];
9158 bool FileOptions::has_cc_enable_arenas() const { 9157 bool FileOptions::has_cc_enable_arenas() const {
9159 return (_has_bits_[0] & 0x00000800u) != 0; 9158 return (_has_bits_[0] & 0x00002000u) != 0;
9160 } 9159 }
9161 void FileOptions::set_has_cc_enable_arenas() { 9160 void FileOptions::set_has_cc_enable_arenas() {
9162 _has_bits_[0] |= 0x00000800u; 9161 _has_bits_[0] |= 0x00002000u;
9163 } 9162 }
9164 void FileOptions::clear_has_cc_enable_arenas() { 9163 void FileOptions::clear_has_cc_enable_arenas() {
9165 _has_bits_[0] &= ~0x00000800u; 9164 _has_bits_[0] &= ~0x00002000u;
9166 } 9165 }
9167 void FileOptions::clear_cc_enable_arenas() { 9166 void FileOptions::clear_cc_enable_arenas() {
9168 cc_enable_arenas_ = false; 9167 cc_enable_arenas_ = false;
9169 clear_has_cc_enable_arenas(); 9168 clear_has_cc_enable_arenas();
9170 } 9169 }
9171 bool FileOptions::cc_enable_arenas() const { 9170 bool FileOptions::cc_enable_arenas() const {
9172 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_enable_ar enas) 9171 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_enable_ar enas)
9173 return cc_enable_arenas_; 9172 return cc_enable_arenas_;
9174 } 9173 }
9175 void FileOptions::set_cc_enable_arenas(bool value) { 9174 void FileOptions::set_cc_enable_arenas(bool value) {
9176 set_has_cc_enable_arenas(); 9175 set_has_cc_enable_arenas();
9177 cc_enable_arenas_ = value; 9176 cc_enable_arenas_ = value;
9178 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.cc_enable_ar enas) 9177 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.cc_enable_ar enas)
9179 } 9178 }
9180 9179
9181 // optional string objc_class_prefix = 36; 9180 // optional string objc_class_prefix = 36;
9182 bool FileOptions::has_objc_class_prefix() const { 9181 bool FileOptions::has_objc_class_prefix() const {
9183 return (_has_bits_[0] & 0x00001000u) != 0; 9182 return (_has_bits_[0] & 0x00000008u) != 0;
9184 } 9183 }
9185 void FileOptions::set_has_objc_class_prefix() { 9184 void FileOptions::set_has_objc_class_prefix() {
9186 _has_bits_[0] |= 0x00001000u; 9185 _has_bits_[0] |= 0x00000008u;
9187 } 9186 }
9188 void FileOptions::clear_has_objc_class_prefix() { 9187 void FileOptions::clear_has_objc_class_prefix() {
9189 _has_bits_[0] &= ~0x00001000u; 9188 _has_bits_[0] &= ~0x00000008u;
9190 } 9189 }
9191 void FileOptions::clear_objc_class_prefix() { 9190 void FileOptions::clear_objc_class_prefix() {
9192 objc_class_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited()); 9191 objc_class_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited());
9193 clear_has_objc_class_prefix(); 9192 clear_has_objc_class_prefix();
9194 } 9193 }
9195 const ::std::string& FileOptions::objc_class_prefix() const { 9194 const ::std::string& FileOptions::objc_class_prefix() const {
9196 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.objc_class_p refix) 9195 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.objc_class_p refix)
9197 return objc_class_prefix_.GetNoArena(&::google::protobuf::internal::GetEmptySt ringAlreadyInited()); 9196 return objc_class_prefix_.GetNoArena();
9198 } 9197 }
9199 void FileOptions::set_objc_class_prefix(const ::std::string& value) { 9198 void FileOptions::set_objc_class_prefix(const ::std::string& value) {
9200 set_has_objc_class_prefix(); 9199 set_has_objc_class_prefix();
9201 objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), value); 9200 objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), value);
9202 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.objc_class_p refix) 9201 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.objc_class_p refix)
9203 } 9202 }
9204 void FileOptions::set_objc_class_prefix(const char* value) { 9203 void FileOptions::set_objc_class_prefix(const char* value) {
9205 set_has_objc_class_prefix(); 9204 set_has_objc_class_prefix();
9206 objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), ::std::string(value)); 9205 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) 9206 // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.objc_cl ass_prefix)
9208 } 9207 }
9209 void FileOptions::set_objc_class_prefix(const char* value, size_t size) { 9208 void FileOptions::set_objc_class_prefix(const char* value, size_t size) {
9210 set_has_objc_class_prefix(); 9209 set_has_objc_class_prefix();
9211 objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), 9210 objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(),
9212 ::std::string(reinterpret_cast<const char*>(value), size)); 9211 ::std::string(reinterpret_cast<const char*>(value), size));
9213 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.objc _class_prefix) 9212 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.objc _class_prefix)
9214 } 9213 }
9215 ::std::string* FileOptions::mutable_objc_class_prefix() { 9214 ::std::string* FileOptions::mutable_objc_class_prefix() {
9216 set_has_objc_class_prefix(); 9215 set_has_objc_class_prefix();
9217 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.objc_cla ss_prefix) 9216 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.objc_cla ss_prefix)
9218 return objc_class_prefix_.MutableNoArena(&::google::protobuf::internal::GetEmp tyStringAlreadyInited()); 9217 return objc_class_prefix_.MutableNoArena(&::google::protobuf::internal::GetEmp tyStringAlreadyInited());
9219 } 9218 }
9220 ::std::string* FileOptions::release_objc_class_prefix() { 9219 ::std::string* FileOptions::release_objc_class_prefix() {
9221 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.objc_cla ss_prefix) 9220 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.objc_cla ss_prefix)
9222 clear_has_objc_class_prefix(); 9221 clear_has_objc_class_prefix();
9223 return objc_class_prefix_.ReleaseNoArena(&::google::protobuf::internal::GetEmp tyStringAlreadyInited()); 9222 return objc_class_prefix_.ReleaseNoArena(&::google::protobuf::internal::GetEmp tyStringAlreadyInited());
9224 } 9223 }
9225 void FileOptions::set_allocated_objc_class_prefix(::std::string* objc_class_pre fix) { 9224 void FileOptions::set_allocated_objc_class_prefix(::std::string* objc_class_pref ix) {
9226 if (objc_class_prefix != NULL) { 9225 if (objc_class_prefix != NULL) {
9227 set_has_objc_class_prefix(); 9226 set_has_objc_class_prefix();
9228 } else { 9227 } else {
9229 clear_has_objc_class_prefix(); 9228 clear_has_objc_class_prefix();
9230 } 9229 }
9231 objc_class_prefix_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited(), objc_class_prefix); 9230 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) 9231 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.ob jc_class_prefix)
9233 } 9232 }
9234 9233
9235 // optional string csharp_namespace = 37; 9234 // optional string csharp_namespace = 37;
9236 bool FileOptions::has_csharp_namespace() const { 9235 bool FileOptions::has_csharp_namespace() const {
9237 return (_has_bits_[0] & 0x00002000u) != 0; 9236 return (_has_bits_[0] & 0x00000010u) != 0;
9238 } 9237 }
9239 void FileOptions::set_has_csharp_namespace() { 9238 void FileOptions::set_has_csharp_namespace() {
9240 _has_bits_[0] |= 0x00002000u; 9239 _has_bits_[0] |= 0x00000010u;
9241 } 9240 }
9242 void FileOptions::clear_has_csharp_namespace() { 9241 void FileOptions::clear_has_csharp_namespace() {
9243 _has_bits_[0] &= ~0x00002000u; 9242 _has_bits_[0] &= ~0x00000010u;
9244 } 9243 }
9245 void FileOptions::clear_csharp_namespace() { 9244 void FileOptions::clear_csharp_namespace() {
9246 csharp_namespace_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyS tringAlreadyInited()); 9245 csharp_namespace_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyS tringAlreadyInited());
9247 clear_has_csharp_namespace(); 9246 clear_has_csharp_namespace();
9248 } 9247 }
9249 const ::std::string& FileOptions::csharp_namespace() const { 9248 const ::std::string& FileOptions::csharp_namespace() const {
9250 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.csharp_names pace) 9249 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.csharp_names pace)
9251 return csharp_namespace_.GetNoArena(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited()); 9250 return csharp_namespace_.GetNoArena();
9252 } 9251 }
9253 void FileOptions::set_csharp_namespace(const ::std::string& value) { 9252 void FileOptions::set_csharp_namespace(const ::std::string& value) {
9254 set_has_csharp_namespace(); 9253 set_has_csharp_namespace();
9255 csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), value); 9254 csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), value);
9256 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.csharp_names pace) 9255 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.csharp_names pace)
9257 } 9256 }
9258 void FileOptions::set_csharp_namespace(const char* value) { 9257 void FileOptions::set_csharp_namespace(const char* value) {
9259 set_has_csharp_namespace(); 9258 set_has_csharp_namespace();
9260 csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), ::std::string(value)); 9259 csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), ::std::string(value));
9261 // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.csharp_ namespace) 9260 // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.csharp_ namespace)
9262 } 9261 }
9263 void FileOptions::set_csharp_namespace(const char* value, size_t size) { 9262 void FileOptions::set_csharp_namespace(const char* value, size_t size) {
9264 set_has_csharp_namespace(); 9263 set_has_csharp_namespace();
9265 csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), 9264 csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(),
9266 ::std::string(reinterpret_cast<const char*>(value), size)); 9265 ::std::string(reinterpret_cast<const char*>(value), size));
9267 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.csha rp_namespace) 9266 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.csha rp_namespace)
9268 } 9267 }
9269 ::std::string* FileOptions::mutable_csharp_namespace() { 9268 ::std::string* FileOptions::mutable_csharp_namespace() {
9270 set_has_csharp_namespace(); 9269 set_has_csharp_namespace();
9271 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.csharp_n amespace) 9270 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.csharp_n amespace)
9272 return csharp_namespace_.MutableNoArena(&::google::protobuf::internal::GetEmpt yStringAlreadyInited()); 9271 return csharp_namespace_.MutableNoArena(&::google::protobuf::internal::GetEmpt yStringAlreadyInited());
9273 } 9272 }
9274 ::std::string* FileOptions::release_csharp_namespace() { 9273 ::std::string* FileOptions::release_csharp_namespace() {
9275 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.csharp_n amespace) 9274 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.csharp_n amespace)
9276 clear_has_csharp_namespace(); 9275 clear_has_csharp_namespace();
9277 return csharp_namespace_.ReleaseNoArena(&::google::protobuf::internal::GetEmpt yStringAlreadyInited()); 9276 return csharp_namespace_.ReleaseNoArena(&::google::protobuf::internal::GetEmpt yStringAlreadyInited());
9278 } 9277 }
9279 void FileOptions::set_allocated_csharp_namespace(::std::string* csharp_namespac e) { 9278 void FileOptions::set_allocated_csharp_namespace(::std::string* csharp_namespace ) {
9280 if (csharp_namespace != NULL) { 9279 if (csharp_namespace != NULL) {
9281 set_has_csharp_namespace(); 9280 set_has_csharp_namespace();
9282 } else { 9281 } else {
9283 clear_has_csharp_namespace(); 9282 clear_has_csharp_namespace();
9284 } 9283 }
9285 csharp_namespace_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyS tringAlreadyInited(), csharp_namespace); 9284 csharp_namespace_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyS tringAlreadyInited(), csharp_namespace);
9286 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.cs harp_namespace) 9285 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.cs harp_namespace)
9287 } 9286 }
9288 9287
9288 // optional string swift_prefix = 39;
9289 bool FileOptions::has_swift_prefix() const {
9290 return (_has_bits_[0] & 0x00000020u) != 0;
9291 }
9292 void FileOptions::set_has_swift_prefix() {
9293 _has_bits_[0] |= 0x00000020u;
9294 }
9295 void FileOptions::clear_has_swift_prefix() {
9296 _has_bits_[0] &= ~0x00000020u;
9297 }
9298 void FileOptions::clear_swift_prefix() {
9299 swift_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited());
9300 clear_has_swift_prefix();
9301 }
9302 const ::std::string& FileOptions::swift_prefix() const {
9303 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.swift_prefix )
9304 return swift_prefix_.GetNoArena();
9305 }
9306 void FileOptions::set_swift_prefix(const ::std::string& value) {
9307 set_has_swift_prefix();
9308 swift_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI nited(), value);
9309 // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.swift_prefix )
9310 }
9311 void FileOptions::set_swift_prefix(const char* value) {
9312 set_has_swift_prefix();
9313 swift_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI nited(), ::std::string(value));
9314 // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.swift_p refix)
9315 }
9316 void FileOptions::set_swift_prefix(const char* value, size_t size) {
9317 set_has_swift_prefix();
9318 swift_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI nited(),
9319 ::std::string(reinterpret_cast<const char*>(value), size));
9320 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.swif t_prefix)
9321 }
9322 ::std::string* FileOptions::mutable_swift_prefix() {
9323 set_has_swift_prefix();
9324 // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.swift_pr efix)
9325 return swift_prefix_.MutableNoArena(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited());
9326 }
9327 ::std::string* FileOptions::release_swift_prefix() {
9328 // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.swift_pr efix)
9329 clear_has_swift_prefix();
9330 return swift_prefix_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited());
9331 }
9332 void FileOptions::set_allocated_swift_prefix(::std::string* swift_prefix) {
9333 if (swift_prefix != NULL) {
9334 set_has_swift_prefix();
9335 } else {
9336 clear_has_swift_prefix();
9337 }
9338 swift_prefix_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited(), swift_prefix);
9339 // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.sw ift_prefix)
9340 }
9341
9289 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 9342 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
9290 int FileOptions::uninterpreted_option_size() const { 9343 int FileOptions::uninterpreted_option_size() const {
9291 return uninterpreted_option_.size(); 9344 return uninterpreted_option_.size();
9292 } 9345 }
9293 void FileOptions::clear_uninterpreted_option() { 9346 void FileOptions::clear_uninterpreted_option() {
9294 uninterpreted_option_.Clear(); 9347 uninterpreted_option_.Clear();
9295 } 9348 }
9296 const ::google::protobuf::UninterpretedOption& FileOptions::uninterpreted_option (int index) const { 9349 const ::google::protobuf::UninterpretedOption& FileOptions::uninterpreted_option (int index) const {
9297 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.uninterprete d_option) 9350 // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.uninterprete d_option)
9298 return uninterpreted_option_.Get(index); 9351 return uninterpreted_option_.Get(index);
(...skipping 24 matching lines...) Expand all
9323 #if !defined(_MSC_VER) || _MSC_VER >= 1900 9376 #if !defined(_MSC_VER) || _MSC_VER >= 1900
9324 const int MessageOptions::kMessageSetWireFormatFieldNumber; 9377 const int MessageOptions::kMessageSetWireFormatFieldNumber;
9325 const int MessageOptions::kNoStandardDescriptorAccessorFieldNumber; 9378 const int MessageOptions::kNoStandardDescriptorAccessorFieldNumber;
9326 const int MessageOptions::kDeprecatedFieldNumber; 9379 const int MessageOptions::kDeprecatedFieldNumber;
9327 const int MessageOptions::kMapEntryFieldNumber; 9380 const int MessageOptions::kMapEntryFieldNumber;
9328 const int MessageOptions::kUninterpretedOptionFieldNumber; 9381 const int MessageOptions::kUninterpretedOptionFieldNumber;
9329 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 9382 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
9330 9383
9331 MessageOptions::MessageOptions() 9384 MessageOptions::MessageOptions()
9332 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 9385 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
9386 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
9387 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
9388 }
9333 SharedCtor(); 9389 SharedCtor();
9334 // @@protoc_insertion_point(constructor:google.protobuf.MessageOptions) 9390 // @@protoc_insertion_point(constructor:google.protobuf.MessageOptions)
9335 } 9391 }
9336
9337 void MessageOptions::InitAsDefaultInstance() {
9338 }
9339
9340 MessageOptions::MessageOptions(const MessageOptions& from) 9392 MessageOptions::MessageOptions(const MessageOptions& from)
9341 : ::google::protobuf::Message(), 9393 : ::google::protobuf::Message(),
9342 _internal_metadata_(NULL) { 9394 _internal_metadata_(NULL),
9343 SharedCtor(); 9395 _has_bits_(from._has_bits_),
9344 MergeFrom(from); 9396 _cached_size_(0),
9397 uninterpreted_option_(from.uninterpreted_option_) {
9398 _internal_metadata_.MergeFrom(from._internal_metadata_);
9399 _extensions_.MergeFrom(from._extensions_);
9400 ::memcpy(&message_set_wire_format_, &from.message_set_wire_format_,
9401 reinterpret_cast<char*>(&map_entry_) -
9402 reinterpret_cast<char*>(&message_set_wire_format_) + sizeof(map_entry_));
9345 // @@protoc_insertion_point(copy_constructor:google.protobuf.MessageOptions) 9403 // @@protoc_insertion_point(copy_constructor:google.protobuf.MessageOptions)
9346 } 9404 }
9347 9405
9348 void MessageOptions::SharedCtor() { 9406 void MessageOptions::SharedCtor() {
9349 _cached_size_ = 0; 9407 _cached_size_ = 0;
9350 message_set_wire_format_ = false; 9408 ::memset(&message_set_wire_format_, 0, reinterpret_cast<char*>(&map_entry_) -
9351 no_standard_descriptor_accessor_ = false; 9409 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 } 9410 }
9356 9411
9357 MessageOptions::~MessageOptions() { 9412 MessageOptions::~MessageOptions() {
9358 // @@protoc_insertion_point(destructor:google.protobuf.MessageOptions) 9413 // @@protoc_insertion_point(destructor:google.protobuf.MessageOptions)
9359 SharedDtor(); 9414 SharedDtor();
9360 } 9415 }
9361 9416
9362 void MessageOptions::SharedDtor() { 9417 void MessageOptions::SharedDtor() {
9363 if (this != default_instance_) {
9364 }
9365 } 9418 }
9366 9419
9367 void MessageOptions::SetCachedSize(int size) const { 9420 void MessageOptions::SetCachedSize(int size) const {
9368 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 9421 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9369 _cached_size_ = size; 9422 _cached_size_ = size;
9370 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 9423 GOOGLE_SAFE_CONCURRENT_WRITES_END();
9371 } 9424 }
9372 const ::google::protobuf::Descriptor* MessageOptions::descriptor() { 9425 const ::google::protobuf::Descriptor* MessageOptions::descriptor() {
9373 protobuf_AssignDescriptorsOnce(); 9426 protobuf_AssignDescriptorsOnce();
9374 return MessageOptions_descriptor_; 9427 return file_level_metadata[12].descriptor;
9375 } 9428 }
9376 9429
9377 const MessageOptions& MessageOptions::default_instance() { 9430 const MessageOptions& MessageOptions::default_instance() {
9378 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 9431 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
9379 return *default_instance_; 9432 return *internal_default_instance();
9380 } 9433 }
9381 9434
9382 MessageOptions* MessageOptions::default_instance_ = NULL;
9383
9384 MessageOptions* MessageOptions::New(::google::protobuf::Arena* arena) const { 9435 MessageOptions* MessageOptions::New(::google::protobuf::Arena* arena) const {
9385 MessageOptions* n = new MessageOptions; 9436 MessageOptions* n = new MessageOptions;
9386 if (arena != NULL) { 9437 if (arena != NULL) {
9387 arena->Own(n); 9438 arena->Own(n);
9388 } 9439 }
9389 return n; 9440 return n;
9390 } 9441 }
9391 9442
9392 void MessageOptions::Clear() { 9443 void MessageOptions::Clear() {
9393 // @@protoc_insertion_point(message_clear_start:google.protobuf.MessageOptions) 9444 // @@protoc_insertion_point(message_clear_start:google.protobuf.MessageOptions)
9394 _extensions_.Clear(); 9445 _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(); 9446 uninterpreted_option_.Clear();
9417 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 9447 if (_has_bits_[0 / 32] & 15u) {
9418 if (_internal_metadata_.have_unknown_fields()) { 9448 ::memset(&message_set_wire_format_, 0, reinterpret_cast<char*>(&map_entry_) -
9419 mutable_unknown_fields()->Clear(); 9449 reinterpret_cast<char*>(&message_set_wire_format_) + sizeof(map_entry_));
9420 } 9450 }
9451 _has_bits_.Clear();
9452 _internal_metadata_.Clear();
9421 } 9453 }
9422 9454
9423 bool MessageOptions::MergePartialFromCodedStream( 9455 bool MessageOptions::MergePartialFromCodedStream(
9424 ::google::protobuf::io::CodedInputStream* input) { 9456 ::google::protobuf::io::CodedInputStream* input) {
9425 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 9457 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
9426 ::google::protobuf::uint32 tag; 9458 ::google::protobuf::uint32 tag;
9427 // @@protoc_insertion_point(parse_start:google.protobuf.MessageOptions) 9459 // @@protoc_insertion_point(parse_start:google.protobuf.MessageOptions)
9428 for (;;) { 9460 for (;;) {
9429 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 16383); 9461 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(16383u);
9430 tag = p.first; 9462 tag = p.first;
9431 if (!p.second) goto handle_unusual; 9463 if (!p.second) goto handle_unusual;
9432 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 9464 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
9433 // optional bool message_set_wire_format = 1 [default = false]; 9465 // optional bool message_set_wire_format = 1 [default = false];
9434 case 1: { 9466 case 1: {
9435 if (tag == 8) { 9467 if (tag == 8u) {
9468 set_has_message_set_wire_format();
9436 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 9469 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9437 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 9470 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
9438 input, &message_set_wire_format_))); 9471 input, &message_set_wire_format_)));
9439 set_has_message_set_wire_format();
9440 } else { 9472 } else {
9441 goto handle_unusual; 9473 goto handle_unusual;
9442 } 9474 }
9443 if (input->ExpectTag(16)) goto parse_no_standard_descriptor_accessor;
9444 break; 9475 break;
9445 } 9476 }
9446 9477
9447 // optional bool no_standard_descriptor_accessor = 2 [default = false]; 9478 // optional bool no_standard_descriptor_accessor = 2 [default = false];
9448 case 2: { 9479 case 2: {
9449 if (tag == 16) { 9480 if (tag == 16u) {
9450 parse_no_standard_descriptor_accessor: 9481 set_has_no_standard_descriptor_accessor();
9451 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 9482 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9452 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 9483 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
9453 input, &no_standard_descriptor_accessor_))); 9484 input, &no_standard_descriptor_accessor_)));
9454 set_has_no_standard_descriptor_accessor();
9455 } else { 9485 } else {
9456 goto handle_unusual; 9486 goto handle_unusual;
9457 } 9487 }
9458 if (input->ExpectTag(24)) goto parse_deprecated;
9459 break; 9488 break;
9460 } 9489 }
9461 9490
9462 // optional bool deprecated = 3 [default = false]; 9491 // optional bool deprecated = 3 [default = false];
9463 case 3: { 9492 case 3: {
9464 if (tag == 24) { 9493 if (tag == 24u) {
9465 parse_deprecated: 9494 set_has_deprecated();
9466 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 9495 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9467 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 9496 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
9468 input, &deprecated_))); 9497 input, &deprecated_)));
9469 set_has_deprecated();
9470 } else { 9498 } else {
9471 goto handle_unusual; 9499 goto handle_unusual;
9472 } 9500 }
9473 if (input->ExpectTag(56)) goto parse_map_entry;
9474 break; 9501 break;
9475 } 9502 }
9476 9503
9477 // optional bool map_entry = 7; 9504 // optional bool map_entry = 7;
9478 case 7: { 9505 case 7: {
9479 if (tag == 56) { 9506 if (tag == 56u) {
9480 parse_map_entry: 9507 set_has_map_entry();
9481 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 9508 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9482 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 9509 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
9483 input, &map_entry_))); 9510 input, &map_entry_)));
9484 set_has_map_entry();
9485 } else { 9511 } else {
9486 goto handle_unusual; 9512 goto handle_unusual;
9487 } 9513 }
9488 if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
9489 break; 9514 break;
9490 } 9515 }
9491 9516
9492 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99 9; 9517 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99 9;
9493 case 999: { 9518 case 999: {
9494 if (tag == 7994) { 9519 if (tag == 7994u) {
9495 parse_uninterpreted_option:
9496 DO_(input->IncrementRecursionDepth()); 9520 DO_(input->IncrementRecursionDepth());
9497 parse_loop_uninterpreted_option:
9498 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 9521 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
9499 input, add_uninterpreted_option())); 9522 input, add_uninterpreted_option()));
9500 } else { 9523 } else {
9501 goto handle_unusual; 9524 goto handle_unusual;
9502 } 9525 }
9503 if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option;
9504 input->UnsafeDecrementRecursionDepth(); 9526 input->UnsafeDecrementRecursionDepth();
9505 if (input->ExpectAtEnd()) goto success;
9506 break; 9527 break;
9507 } 9528 }
9508 9529
9509 default: { 9530 default: {
9510 handle_unusual: 9531 handle_unusual:
9511 if (tag == 0 || 9532 if (tag == 0 ||
9512 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 9533 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
9513 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 9534 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
9514 goto success; 9535 goto success;
9515 } 9536 }
9516 if ((8000u <= tag)) { 9537 if ((8000u <= tag)) {
9517 DO_(_extensions_.ParseField(tag, input, default_instance_, 9538 DO_(_extensions_.ParseField(tag, input, internal_default_instance(),
9518 mutable_unknown_fields())); 9539 mutable_unknown_fields()));
9519 continue; 9540 continue;
9520 } 9541 }
9521 DO_(::google::protobuf::internal::WireFormat::SkipField( 9542 DO_(::google::protobuf::internal::WireFormat::SkipField(
9522 input, tag, mutable_unknown_fields())); 9543 input, tag, mutable_unknown_fields()));
9523 break; 9544 break;
9524 } 9545 }
9525 } 9546 }
9526 } 9547 }
9527 success: 9548 success:
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
9566 _extensions_.SerializeWithCachedSizes( 9587 _extensions_.SerializeWithCachedSizes(
9567 1000, 536870912, output); 9588 1000, 536870912, output);
9568 9589
9569 if (_internal_metadata_.have_unknown_fields()) { 9590 if (_internal_metadata_.have_unknown_fields()) {
9570 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 9591 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
9571 unknown_fields(), output); 9592 unknown_fields(), output);
9572 } 9593 }
9573 // @@protoc_insertion_point(serialize_end:google.protobuf.MessageOptions) 9594 // @@protoc_insertion_point(serialize_end:google.protobuf.MessageOptions)
9574 } 9595 }
9575 9596
9576 ::google::protobuf::uint8* MessageOptions::SerializeWithCachedSizesToArray( 9597 ::google::protobuf::uint8* MessageOptions::InternalSerializeWithCachedSizesToArr ay(
9577 ::google::protobuf::uint8* target) const { 9598 bool deterministic, ::google::protobuf::uint8* target) const {
9599 (void)deterministic; // Unused
9578 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MessageOp tions) 9600 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MessageOp tions)
9579 // optional bool message_set_wire_format = 1 [default = false]; 9601 // optional bool message_set_wire_format = 1 [default = false];
9580 if (has_message_set_wire_format()) { 9602 if (has_message_set_wire_format()) {
9581 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, t his->message_set_wire_format(), target); 9603 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, t his->message_set_wire_format(), target);
9582 } 9604 }
9583 9605
9584 // optional bool no_standard_descriptor_accessor = 2 [default = false]; 9606 // optional bool no_standard_descriptor_accessor = 2 [default = false];
9585 if (has_no_standard_descriptor_accessor()) { 9607 if (has_no_standard_descriptor_accessor()) {
9586 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, t his->no_standard_descriptor_accessor(), target); 9608 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, t his->no_standard_descriptor_accessor(), target);
9587 } 9609 }
9588 9610
9589 // optional bool deprecated = 3 [default = false]; 9611 // optional bool deprecated = 3 [default = false];
9590 if (has_deprecated()) { 9612 if (has_deprecated()) {
9591 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, t his->deprecated(), target); 9613 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, t his->deprecated(), target);
9592 } 9614 }
9593 9615
9594 // optional bool map_entry = 7; 9616 // optional bool map_entry = 7;
9595 if (has_map_entry()) { 9617 if (has_map_entry()) {
9596 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, t his->map_entry(), target); 9618 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, t his->map_entry(), target);
9597 } 9619 }
9598 9620
9599 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 9621 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
9600 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { 9622 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
9601 target = ::google::protobuf::internal::WireFormatLite:: 9623 target = ::google::protobuf::internal::WireFormatLite::
9602 WriteMessageNoVirtualToArray( 9624 InternalWriteMessageNoVirtualToArray(
9603 999, this->uninterpreted_option(i), target); 9625 999, this->uninterpreted_option(i), false, target);
9604 } 9626 }
9605 9627
9606 // Extension range [1000, 536870912) 9628 // Extension range [1000, 536870912)
9607 target = _extensions_.SerializeWithCachedSizesToArray( 9629 target = _extensions_.InternalSerializeWithCachedSizesToArray(
9608 1000, 536870912, target); 9630 1000, 536870912, false, target);
9609 9631
9610 if (_internal_metadata_.have_unknown_fields()) { 9632 if (_internal_metadata_.have_unknown_fields()) {
9611 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 9633 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
9612 unknown_fields(), target); 9634 unknown_fields(), target);
9613 } 9635 }
9614 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MessageOpti ons) 9636 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MessageOpti ons)
9615 return target; 9637 return target;
9616 } 9638 }
9617 9639
9618 int MessageOptions::ByteSize() const { 9640 size_t MessageOptions::ByteSizeLong() const {
9619 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.MessageOptio ns) 9641 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.MessageOptio ns)
9620 int total_size = 0; 9642 size_t total_size = 0;
9643
9644 total_size += _extensions_.ByteSize();
9645
9646 if (_internal_metadata_.have_unknown_fields()) {
9647 total_size +=
9648 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
9649 unknown_fields());
9650 }
9651 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
9652 {
9653 unsigned int count = this->uninterpreted_option_size();
9654 total_size += 2UL * count;
9655 for (unsigned int i = 0; i < count; i++) {
9656 total_size +=
9657 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
9658 this->uninterpreted_option(i));
9659 }
9660 }
9621 9661
9622 if (_has_bits_[0 / 32] & 15u) { 9662 if (_has_bits_[0 / 32] & 15u) {
9623 // optional bool message_set_wire_format = 1 [default = false]; 9663 // optional bool message_set_wire_format = 1 [default = false];
9624 if (has_message_set_wire_format()) { 9664 if (has_message_set_wire_format()) {
9625 total_size += 1 + 1; 9665 total_size += 1 + 1;
9626 } 9666 }
9627 9667
9628 // optional bool no_standard_descriptor_accessor = 2 [default = false]; 9668 // optional bool no_standard_descriptor_accessor = 2 [default = false];
9629 if (has_no_standard_descriptor_accessor()) { 9669 if (has_no_standard_descriptor_accessor()) {
9630 total_size += 1 + 1; 9670 total_size += 1 + 1;
9631 } 9671 }
9632 9672
9633 // optional bool deprecated = 3 [default = false]; 9673 // optional bool deprecated = 3 [default = false];
9634 if (has_deprecated()) { 9674 if (has_deprecated()) {
9635 total_size += 1 + 1; 9675 total_size += 1 + 1;
9636 } 9676 }
9637 9677
9638 // optional bool map_entry = 7; 9678 // optional bool map_entry = 7;
9639 if (has_map_entry()) { 9679 if (has_map_entry()) {
9640 total_size += 1 + 1; 9680 total_size += 1 + 1;
9641 } 9681 }
9642 9682
9643 } 9683 }
9644 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 9684 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(); 9685 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9660 _cached_size_ = total_size; 9686 _cached_size_ = cached_size;
9661 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 9687 GOOGLE_SAFE_CONCURRENT_WRITES_END();
9662 return total_size; 9688 return total_size;
9663 } 9689 }
9664 9690
9665 void MessageOptions::MergeFrom(const ::google::protobuf::Message& from) { 9691 void MessageOptions::MergeFrom(const ::google::protobuf::Message& from) {
9666 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Message Options) 9692 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Message Options)
9667 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 9693 GOOGLE_DCHECK_NE(&from, this);
9668 const MessageOptions* source = 9694 const MessageOptions* source =
9669 ::google::protobuf::internal::DynamicCastToGenerated<const MessageOptions> ( 9695 ::google::protobuf::internal::DynamicCastToGenerated<const MessageOptions> (
9670 &from); 9696 &from);
9671 if (source == NULL) { 9697 if (source == NULL) {
9672 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.M essageOptions) 9698 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.M essageOptions)
9673 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 9699 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
9674 } else { 9700 } else {
9675 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.MessageOptions) 9701 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.MessageOptions)
9676 MergeFrom(*source); 9702 MergeFrom(*source);
9677 } 9703 }
9678 } 9704 }
9679 9705
9680 void MessageOptions::MergeFrom(const MessageOptions& from) { 9706 void MessageOptions::MergeFrom(const MessageOptions& from) {
9681 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Mess ageOptions) 9707 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Mess ageOptions)
9682 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 9708 GOOGLE_DCHECK_NE(&from, this);
9709 _extensions_.MergeFrom(from._extensions_);
9710 _internal_metadata_.MergeFrom(from._internal_metadata_);
9683 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); 9711 uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
9684 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { 9712 if (from._has_bits_[0 / 32] & 15u) {
9685 if (from.has_message_set_wire_format()) { 9713 if (from.has_message_set_wire_format()) {
9686 set_message_set_wire_format(from.message_set_wire_format()); 9714 set_message_set_wire_format(from.message_set_wire_format());
9687 } 9715 }
9688 if (from.has_no_standard_descriptor_accessor()) { 9716 if (from.has_no_standard_descriptor_accessor()) {
9689 set_no_standard_descriptor_accessor(from.no_standard_descriptor_accessor() ); 9717 set_no_standard_descriptor_accessor(from.no_standard_descriptor_accessor() );
9690 } 9718 }
9691 if (from.has_deprecated()) { 9719 if (from.has_deprecated()) {
9692 set_deprecated(from.deprecated()); 9720 set_deprecated(from.deprecated());
9693 } 9721 }
9694 if (from.has_map_entry()) { 9722 if (from.has_map_entry()) {
9695 set_map_entry(from.map_entry()); 9723 set_map_entry(from.map_entry());
9696 } 9724 }
9697 } 9725 }
9698 _extensions_.MergeFrom(from._extensions_);
9699 if (from._internal_metadata_.have_unknown_fields()) {
9700 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
9701 }
9702 } 9726 }
9703 9727
9704 void MessageOptions::CopyFrom(const ::google::protobuf::Message& from) { 9728 void MessageOptions::CopyFrom(const ::google::protobuf::Message& from) {
9705 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.MessageO ptions) 9729 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.MessageO ptions)
9706 if (&from == this) return; 9730 if (&from == this) return;
9707 Clear(); 9731 Clear();
9708 MergeFrom(from); 9732 MergeFrom(from);
9709 } 9733 }
9710 9734
9711 void MessageOptions::CopyFrom(const MessageOptions& from) { 9735 void MessageOptions::CopyFrom(const MessageOptions& from) {
9712 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Messa geOptions) 9736 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Messa geOptions)
9713 if (&from == this) return; 9737 if (&from == this) return;
9714 Clear(); 9738 Clear();
9715 MergeFrom(from); 9739 MergeFrom(from);
9716 } 9740 }
9717 9741
9718 bool MessageOptions::IsInitialized() const { 9742 bool MessageOptions::IsInitialized() const {
9743 if (!_extensions_.IsInitialized()) {
9744 return false;
9745 }
9719 9746
9720 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio n())) return false; 9747 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio n())) return false;
9721 9748 return true;
9722 if (!_extensions_.IsInitialized()) return false; return true;
9723 } 9749 }
9724 9750
9725 void MessageOptions::Swap(MessageOptions* other) { 9751 void MessageOptions::Swap(MessageOptions* other) {
9726 if (other == this) return; 9752 if (other == this) return;
9727 InternalSwap(other); 9753 InternalSwap(other);
9728 } 9754 }
9729 void MessageOptions::InternalSwap(MessageOptions* other) { 9755 void MessageOptions::InternalSwap(MessageOptions* other) {
9756 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
9730 std::swap(message_set_wire_format_, other->message_set_wire_format_); 9757 std::swap(message_set_wire_format_, other->message_set_wire_format_);
9731 std::swap(no_standard_descriptor_accessor_, other->no_standard_descriptor_acce ssor_); 9758 std::swap(no_standard_descriptor_accessor_, other->no_standard_descriptor_acce ssor_);
9732 std::swap(deprecated_, other->deprecated_); 9759 std::swap(deprecated_, other->deprecated_);
9733 std::swap(map_entry_, other->map_entry_); 9760 std::swap(map_entry_, other->map_entry_);
9734 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
9735 std::swap(_has_bits_[0], other->_has_bits_[0]); 9761 std::swap(_has_bits_[0], other->_has_bits_[0]);
9736 _internal_metadata_.Swap(&other->_internal_metadata_); 9762 _internal_metadata_.Swap(&other->_internal_metadata_);
9737 std::swap(_cached_size_, other->_cached_size_); 9763 std::swap(_cached_size_, other->_cached_size_);
9738 _extensions_.Swap(&other->_extensions_); 9764 _extensions_.Swap(&other->_extensions_);
9739 } 9765 }
9740 9766
9741 ::google::protobuf::Metadata MessageOptions::GetMetadata() const { 9767 ::google::protobuf::Metadata MessageOptions::GetMetadata() const {
9742 protobuf_AssignDescriptorsOnce(); 9768 protobuf_AssignDescriptorsOnce();
9743 ::google::protobuf::Metadata metadata; 9769 return file_level_metadata[12];
9744 metadata.descriptor = MessageOptions_descriptor_;
9745 metadata.reflection = MessageOptions_reflection_;
9746 return metadata;
9747 } 9770 }
9748 9771
9749 #if PROTOBUF_INLINE_NOT_IN_HEADERS 9772 #if PROTOBUF_INLINE_NOT_IN_HEADERS
9750 // MessageOptions 9773 // MessageOptions
9751 9774
9752 // optional bool message_set_wire_format = 1 [default = false]; 9775 // optional bool message_set_wire_format = 1 [default = false];
9753 bool MessageOptions::has_message_set_wire_format() const { 9776 bool MessageOptions::has_message_set_wire_format() const {
9754 return (_has_bits_[0] & 0x00000001u) != 0; 9777 return (_has_bits_[0] & 0x00000001u) != 0;
9755 } 9778 }
9756 void MessageOptions::set_has_message_set_wire_format() { 9779 void MessageOptions::set_has_message_set_wire_format() {
9757 _has_bits_[0] |= 0x00000001u; 9780 _has_bits_[0] |= 0x00000001u;
9758 } 9781 }
9759 void MessageOptions::clear_has_message_set_wire_format() { 9782 void MessageOptions::clear_has_message_set_wire_format() {
9760 _has_bits_[0] &= ~0x00000001u; 9783 _has_bits_[0] &= ~0x00000001u;
9761 } 9784 }
9762 void MessageOptions::clear_message_set_wire_format() { 9785 void MessageOptions::clear_message_set_wire_format() {
9763 message_set_wire_format_ = false; 9786 message_set_wire_format_ = false;
9764 clear_has_message_set_wire_format(); 9787 clear_has_message_set_wire_format();
9765 } 9788 }
9766 bool MessageOptions::message_set_wire_format() const { 9789 bool MessageOptions::message_set_wire_format() const {
9767 // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.message_s et_wire_format) 9790 // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.message_s et_wire_format)
9768 return message_set_wire_format_; 9791 return message_set_wire_format_;
9769 } 9792 }
9770 void MessageOptions::set_message_set_wire_format(bool value) { 9793 void MessageOptions::set_message_set_wire_format(bool value) {
9771 set_has_message_set_wire_format(); 9794 set_has_message_set_wire_format();
9772 message_set_wire_format_ = value; 9795 message_set_wire_format_ = value;
9773 // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.message_s et_wire_format) 9796 // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.message_s et_wire_format)
9774 } 9797 }
9775 9798
9776 // optional bool no_standard_descriptor_accessor = 2 [default = false]; 9799 // optional bool no_standard_descriptor_accessor = 2 [default = false];
9777 bool MessageOptions::has_no_standard_descriptor_accessor() const { 9800 bool MessageOptions::has_no_standard_descriptor_accessor() const {
9778 return (_has_bits_[0] & 0x00000002u) != 0; 9801 return (_has_bits_[0] & 0x00000002u) != 0;
9779 } 9802 }
9780 void MessageOptions::set_has_no_standard_descriptor_accessor() { 9803 void MessageOptions::set_has_no_standard_descriptor_accessor() {
9781 _has_bits_[0] |= 0x00000002u; 9804 _has_bits_[0] |= 0x00000002u;
9782 } 9805 }
9783 void MessageOptions::clear_has_no_standard_descriptor_accessor() { 9806 void MessageOptions::clear_has_no_standard_descriptor_accessor() {
9784 _has_bits_[0] &= ~0x00000002u; 9807 _has_bits_[0] &= ~0x00000002u;
9785 } 9808 }
9786 void MessageOptions::clear_no_standard_descriptor_accessor() { 9809 void MessageOptions::clear_no_standard_descriptor_accessor() {
9787 no_standard_descriptor_accessor_ = false; 9810 no_standard_descriptor_accessor_ = false;
9788 clear_has_no_standard_descriptor_accessor(); 9811 clear_has_no_standard_descriptor_accessor();
9789 } 9812 }
9790 bool MessageOptions::no_standard_descriptor_accessor() const { 9813 bool MessageOptions::no_standard_descriptor_accessor() const {
9791 // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.no_standa rd_descriptor_accessor) 9814 // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.no_standa rd_descriptor_accessor)
9792 return no_standard_descriptor_accessor_; 9815 return no_standard_descriptor_accessor_;
9793 } 9816 }
9794 void MessageOptions::set_no_standard_descriptor_accessor(bool value) { 9817 void MessageOptions::set_no_standard_descriptor_accessor(bool value) {
9795 set_has_no_standard_descriptor_accessor(); 9818 set_has_no_standard_descriptor_accessor();
9796 no_standard_descriptor_accessor_ = value; 9819 no_standard_descriptor_accessor_ = value;
9797 // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.no_standa rd_descriptor_accessor) 9820 // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.no_standa rd_descriptor_accessor)
9798 } 9821 }
9799 9822
9800 // optional bool deprecated = 3 [default = false]; 9823 // optional bool deprecated = 3 [default = false];
9801 bool MessageOptions::has_deprecated() const { 9824 bool MessageOptions::has_deprecated() const {
9802 return (_has_bits_[0] & 0x00000004u) != 0; 9825 return (_has_bits_[0] & 0x00000004u) != 0;
9803 } 9826 }
9804 void MessageOptions::set_has_deprecated() { 9827 void MessageOptions::set_has_deprecated() {
9805 _has_bits_[0] |= 0x00000004u; 9828 _has_bits_[0] |= 0x00000004u;
9806 } 9829 }
9807 void MessageOptions::clear_has_deprecated() { 9830 void MessageOptions::clear_has_deprecated() {
9808 _has_bits_[0] &= ~0x00000004u; 9831 _has_bits_[0] &= ~0x00000004u;
9809 } 9832 }
9810 void MessageOptions::clear_deprecated() { 9833 void MessageOptions::clear_deprecated() {
9811 deprecated_ = false; 9834 deprecated_ = false;
9812 clear_has_deprecated(); 9835 clear_has_deprecated();
9813 } 9836 }
9814 bool MessageOptions::deprecated() const { 9837 bool MessageOptions::deprecated() const {
9815 // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.deprecate d) 9838 // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.deprecate d)
9816 return deprecated_; 9839 return deprecated_;
9817 } 9840 }
9818 void MessageOptions::set_deprecated(bool value) { 9841 void MessageOptions::set_deprecated(bool value) {
9819 set_has_deprecated(); 9842 set_has_deprecated();
9820 deprecated_ = value; 9843 deprecated_ = value;
9821 // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.deprecate d) 9844 // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.deprecate d)
9822 } 9845 }
9823 9846
9824 // optional bool map_entry = 7; 9847 // optional bool map_entry = 7;
9825 bool MessageOptions::has_map_entry() const { 9848 bool MessageOptions::has_map_entry() const {
9826 return (_has_bits_[0] & 0x00000008u) != 0; 9849 return (_has_bits_[0] & 0x00000008u) != 0;
9827 } 9850 }
9828 void MessageOptions::set_has_map_entry() { 9851 void MessageOptions::set_has_map_entry() {
9829 _has_bits_[0] |= 0x00000008u; 9852 _has_bits_[0] |= 0x00000008u;
9830 } 9853 }
9831 void MessageOptions::clear_has_map_entry() { 9854 void MessageOptions::clear_has_map_entry() {
9832 _has_bits_[0] &= ~0x00000008u; 9855 _has_bits_[0] &= ~0x00000008u;
9833 } 9856 }
9834 void MessageOptions::clear_map_entry() { 9857 void MessageOptions::clear_map_entry() {
9835 map_entry_ = false; 9858 map_entry_ = false;
9836 clear_has_map_entry(); 9859 clear_has_map_entry();
9837 } 9860 }
9838 bool MessageOptions::map_entry() const { 9861 bool MessageOptions::map_entry() const {
9839 // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.map_entry ) 9862 // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.map_entry )
9840 return map_entry_; 9863 return map_entry_;
9841 } 9864 }
9842 void MessageOptions::set_map_entry(bool value) { 9865 void MessageOptions::set_map_entry(bool value) {
9843 set_has_map_entry(); 9866 set_has_map_entry();
9844 map_entry_ = value; 9867 map_entry_ = value;
9845 // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.map_entry ) 9868 // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.map_entry )
9846 } 9869 }
9847 9870
9848 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 9871 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
9849 int MessageOptions::uninterpreted_option_size() const { 9872 int MessageOptions::uninterpreted_option_size() const {
9850 return uninterpreted_option_.size(); 9873 return uninterpreted_option_.size();
9851 } 9874 }
9852 void MessageOptions::clear_uninterpreted_option() { 9875 void MessageOptions::clear_uninterpreted_option() {
(...skipping 19 matching lines...) Expand all
9872 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt ion >& 9895 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt ion >&
9873 MessageOptions::uninterpreted_option() const { 9896 MessageOptions::uninterpreted_option() const {
9874 // @@protoc_insertion_point(field_list:google.protobuf.MessageOptions.uninterp reted_option) 9897 // @@protoc_insertion_point(field_list:google.protobuf.MessageOptions.uninterp reted_option)
9875 return uninterpreted_option_; 9898 return uninterpreted_option_;
9876 } 9899 }
9877 9900
9878 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 9901 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
9879 9902
9880 // =================================================================== 9903 // ===================================================================
9881 9904
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 9905 #if !defined(_MSC_VER) || _MSC_VER >= 1900
9929 const int FieldOptions::kCtypeFieldNumber; 9906 const int FieldOptions::kCtypeFieldNumber;
9930 const int FieldOptions::kPackedFieldNumber; 9907 const int FieldOptions::kPackedFieldNumber;
9931 const int FieldOptions::kJstypeFieldNumber; 9908 const int FieldOptions::kJstypeFieldNumber;
9932 const int FieldOptions::kLazyFieldNumber; 9909 const int FieldOptions::kLazyFieldNumber;
9933 const int FieldOptions::kDeprecatedFieldNumber; 9910 const int FieldOptions::kDeprecatedFieldNumber;
9934 const int FieldOptions::kWeakFieldNumber; 9911 const int FieldOptions::kWeakFieldNumber;
9935 const int FieldOptions::kUninterpretedOptionFieldNumber; 9912 const int FieldOptions::kUninterpretedOptionFieldNumber;
9936 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 9913 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
9937 9914
9938 FieldOptions::FieldOptions() 9915 FieldOptions::FieldOptions()
9939 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 9916 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
9917 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
9918 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
9919 }
9940 SharedCtor(); 9920 SharedCtor();
9941 // @@protoc_insertion_point(constructor:google.protobuf.FieldOptions) 9921 // @@protoc_insertion_point(constructor:google.protobuf.FieldOptions)
9942 } 9922 }
9943
9944 void FieldOptions::InitAsDefaultInstance() {
9945 }
9946
9947 FieldOptions::FieldOptions(const FieldOptions& from) 9923 FieldOptions::FieldOptions(const FieldOptions& from)
9948 : ::google::protobuf::Message(), 9924 : ::google::protobuf::Message(),
9949 _internal_metadata_(NULL) { 9925 _internal_metadata_(NULL),
9950 SharedCtor(); 9926 _has_bits_(from._has_bits_),
9951 MergeFrom(from); 9927 _cached_size_(0),
9928 uninterpreted_option_(from.uninterpreted_option_) {
9929 _internal_metadata_.MergeFrom(from._internal_metadata_);
9930 _extensions_.MergeFrom(from._extensions_);
9931 ::memcpy(&ctype_, &from.ctype_,
9932 reinterpret_cast<char*>(&weak_) -
9933 reinterpret_cast<char*>(&ctype_) + sizeof(weak_));
9952 // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldOptions) 9934 // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldOptions)
9953 } 9935 }
9954 9936
9955 void FieldOptions::SharedCtor() { 9937 void FieldOptions::SharedCtor() {
9956 _cached_size_ = 0; 9938 _cached_size_ = 0;
9957 ctype_ = 0; 9939 ::memset(&ctype_, 0, reinterpret_cast<char*>(&weak_) -
9958 packed_ = false; 9940 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 } 9941 }
9965 9942
9966 FieldOptions::~FieldOptions() { 9943 FieldOptions::~FieldOptions() {
9967 // @@protoc_insertion_point(destructor:google.protobuf.FieldOptions) 9944 // @@protoc_insertion_point(destructor:google.protobuf.FieldOptions)
9968 SharedDtor(); 9945 SharedDtor();
9969 } 9946 }
9970 9947
9971 void FieldOptions::SharedDtor() { 9948 void FieldOptions::SharedDtor() {
9972 if (this != default_instance_) {
9973 }
9974 } 9949 }
9975 9950
9976 void FieldOptions::SetCachedSize(int size) const { 9951 void FieldOptions::SetCachedSize(int size) const {
9977 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 9952 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9978 _cached_size_ = size; 9953 _cached_size_ = size;
9979 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 9954 GOOGLE_SAFE_CONCURRENT_WRITES_END();
9980 } 9955 }
9981 const ::google::protobuf::Descriptor* FieldOptions::descriptor() { 9956 const ::google::protobuf::Descriptor* FieldOptions::descriptor() {
9982 protobuf_AssignDescriptorsOnce(); 9957 protobuf_AssignDescriptorsOnce();
9983 return FieldOptions_descriptor_; 9958 return file_level_metadata[13].descriptor;
9984 } 9959 }
9985 9960
9986 const FieldOptions& FieldOptions::default_instance() { 9961 const FieldOptions& FieldOptions::default_instance() {
9987 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 9962 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
9988 return *default_instance_; 9963 return *internal_default_instance();
9989 } 9964 }
9990 9965
9991 FieldOptions* FieldOptions::default_instance_ = NULL;
9992
9993 FieldOptions* FieldOptions::New(::google::protobuf::Arena* arena) const { 9966 FieldOptions* FieldOptions::New(::google::protobuf::Arena* arena) const {
9994 FieldOptions* n = new FieldOptions; 9967 FieldOptions* n = new FieldOptions;
9995 if (arena != NULL) { 9968 if (arena != NULL) {
9996 arena->Own(n); 9969 arena->Own(n);
9997 } 9970 }
9998 return n; 9971 return n;
9999 } 9972 }
10000 9973
10001 void FieldOptions::Clear() { 9974 void FieldOptions::Clear() {
10002 // @@protoc_insertion_point(message_clear_start:google.protobuf.FieldOptions) 9975 // @@protoc_insertion_point(message_clear_start:google.protobuf.FieldOptions)
10003 _extensions_.Clear(); 9976 _extensions_.Clear();
10004 #if defined(__clang__) 9977 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) { 9978 if (_has_bits_[0 / 32] & 63u) {
10021 ZR_(ctype_, jstype_); 9979 ::memset(&ctype_, 0, reinterpret_cast<char*>(&weak_) -
10022 ZR_(packed_, weak_); 9980 reinterpret_cast<char*>(&ctype_) + sizeof(weak_));
10023 } 9981 }
10024 9982 _has_bits_.Clear();
10025 #undef ZR_HELPER_ 9983 _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 } 9984 }
10034 9985
10035 bool FieldOptions::MergePartialFromCodedStream( 9986 bool FieldOptions::MergePartialFromCodedStream(
10036 ::google::protobuf::io::CodedInputStream* input) { 9987 ::google::protobuf::io::CodedInputStream* input) {
10037 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 9988 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
10038 ::google::protobuf::uint32 tag; 9989 ::google::protobuf::uint32 tag;
10039 // @@protoc_insertion_point(parse_start:google.protobuf.FieldOptions) 9990 // @@protoc_insertion_point(parse_start:google.protobuf.FieldOptions)
10040 for (;;) { 9991 for (;;) {
10041 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 16383); 9992 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(16383u);
10042 tag = p.first; 9993 tag = p.first;
10043 if (!p.second) goto handle_unusual; 9994 if (!p.second) goto handle_unusual;
10044 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 9995 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
10045 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRIN G]; 9996 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRIN G];
10046 case 1: { 9997 case 1: {
10047 if (tag == 8) { 9998 if (tag == 8u) {
10048 int value; 9999 int value;
10049 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 10000 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10050 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM> ( 10001 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM> (
10051 input, &value))); 10002 input, &value)));
10052 if (::google::protobuf::FieldOptions_CType_IsValid(value)) { 10003 if (::google::protobuf::FieldOptions_CType_IsValid(value)) {
10053 set_ctype(static_cast< ::google::protobuf::FieldOptions_CType >(valu e)); 10004 set_ctype(static_cast< ::google::protobuf::FieldOptions_CType >(valu e));
10054 } else { 10005 } else {
10055 mutable_unknown_fields()->AddVarint(1, value); 10006 mutable_unknown_fields()->AddVarint(1, value);
10056 } 10007 }
10057 } else { 10008 } else {
10058 goto handle_unusual; 10009 goto handle_unusual;
10059 } 10010 }
10060 if (input->ExpectTag(16)) goto parse_packed;
10061 break; 10011 break;
10062 } 10012 }
10063 10013
10064 // optional bool packed = 2; 10014 // optional bool packed = 2;
10065 case 2: { 10015 case 2: {
10066 if (tag == 16) { 10016 if (tag == 16u) {
10067 parse_packed: 10017 set_has_packed();
10068 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 10018 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10069 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 10019 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
10070 input, &packed_))); 10020 input, &packed_)));
10071 set_has_packed();
10072 } else { 10021 } else {
10073 goto handle_unusual; 10022 goto handle_unusual;
10074 } 10023 }
10075 if (input->ExpectTag(24)) goto parse_deprecated;
10076 break; 10024 break;
10077 } 10025 }
10078 10026
10079 // optional bool deprecated = 3 [default = false]; 10027 // optional bool deprecated = 3 [default = false];
10080 case 3: { 10028 case 3: {
10081 if (tag == 24) { 10029 if (tag == 24u) {
10082 parse_deprecated: 10030 set_has_deprecated();
10083 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 10031 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10084 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 10032 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
10085 input, &deprecated_))); 10033 input, &deprecated_)));
10086 set_has_deprecated();
10087 } else { 10034 } else {
10088 goto handle_unusual; 10035 goto handle_unusual;
10089 } 10036 }
10090 if (input->ExpectTag(40)) goto parse_lazy;
10091 break; 10037 break;
10092 } 10038 }
10093 10039
10094 // optional bool lazy = 5 [default = false]; 10040 // optional bool lazy = 5 [default = false];
10095 case 5: { 10041 case 5: {
10096 if (tag == 40) { 10042 if (tag == 40u) {
10097 parse_lazy: 10043 set_has_lazy();
10098 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 10044 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10099 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 10045 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
10100 input, &lazy_))); 10046 input, &lazy_)));
10101 set_has_lazy();
10102 } else { 10047 } else {
10103 goto handle_unusual; 10048 goto handle_unusual;
10104 } 10049 }
10105 if (input->ExpectTag(48)) goto parse_jstype;
10106 break; 10050 break;
10107 } 10051 }
10108 10052
10109 // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_ NORMAL]; 10053 // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_ NORMAL];
10110 case 6: { 10054 case 6: {
10111 if (tag == 48) { 10055 if (tag == 48u) {
10112 parse_jstype:
10113 int value; 10056 int value;
10114 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 10057 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10115 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM> ( 10058 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM> (
10116 input, &value))); 10059 input, &value)));
10117 if (::google::protobuf::FieldOptions_JSType_IsValid(value)) { 10060 if (::google::protobuf::FieldOptions_JSType_IsValid(value)) {
10118 set_jstype(static_cast< ::google::protobuf::FieldOptions_JSType >(va lue)); 10061 set_jstype(static_cast< ::google::protobuf::FieldOptions_JSType >(va lue));
10119 } else { 10062 } else {
10120 mutable_unknown_fields()->AddVarint(6, value); 10063 mutable_unknown_fields()->AddVarint(6, value);
10121 } 10064 }
10122 } else { 10065 } else {
10123 goto handle_unusual; 10066 goto handle_unusual;
10124 } 10067 }
10125 if (input->ExpectTag(80)) goto parse_weak;
10126 break; 10068 break;
10127 } 10069 }
10128 10070
10129 // optional bool weak = 10 [default = false]; 10071 // optional bool weak = 10 [default = false];
10130 case 10: { 10072 case 10: {
10131 if (tag == 80) { 10073 if (tag == 80u) {
10132 parse_weak: 10074 set_has_weak();
10133 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 10075 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10134 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 10076 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
10135 input, &weak_))); 10077 input, &weak_)));
10136 set_has_weak();
10137 } else { 10078 } else {
10138 goto handle_unusual; 10079 goto handle_unusual;
10139 } 10080 }
10140 if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
10141 break; 10081 break;
10142 } 10082 }
10143 10083
10144 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99 9; 10084 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99 9;
10145 case 999: { 10085 case 999: {
10146 if (tag == 7994) { 10086 if (tag == 7994u) {
10147 parse_uninterpreted_option:
10148 DO_(input->IncrementRecursionDepth()); 10087 DO_(input->IncrementRecursionDepth());
10149 parse_loop_uninterpreted_option:
10150 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 10088 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
10151 input, add_uninterpreted_option())); 10089 input, add_uninterpreted_option()));
10152 } else { 10090 } else {
10153 goto handle_unusual; 10091 goto handle_unusual;
10154 } 10092 }
10155 if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option;
10156 input->UnsafeDecrementRecursionDepth(); 10093 input->UnsafeDecrementRecursionDepth();
10157 if (input->ExpectAtEnd()) goto success;
10158 break; 10094 break;
10159 } 10095 }
10160 10096
10161 default: { 10097 default: {
10162 handle_unusual: 10098 handle_unusual:
10163 if (tag == 0 || 10099 if (tag == 0 ||
10164 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 10100 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
10165 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 10101 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
10166 goto success; 10102 goto success;
10167 } 10103 }
10168 if ((8000u <= tag)) { 10104 if ((8000u <= tag)) {
10169 DO_(_extensions_.ParseField(tag, input, default_instance_, 10105 DO_(_extensions_.ParseField(tag, input, internal_default_instance(),
10170 mutable_unknown_fields())); 10106 mutable_unknown_fields()));
10171 continue; 10107 continue;
10172 } 10108 }
10173 DO_(::google::protobuf::internal::WireFormat::SkipField( 10109 DO_(::google::protobuf::internal::WireFormat::SkipField(
10174 input, tag, mutable_unknown_fields())); 10110 input, tag, mutable_unknown_fields()));
10175 break; 10111 break;
10176 } 10112 }
10177 } 10113 }
10178 } 10114 }
10179 success: 10115 success:
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
10230 _extensions_.SerializeWithCachedSizes( 10166 _extensions_.SerializeWithCachedSizes(
10231 1000, 536870912, output); 10167 1000, 536870912, output);
10232 10168
10233 if (_internal_metadata_.have_unknown_fields()) { 10169 if (_internal_metadata_.have_unknown_fields()) {
10234 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 10170 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
10235 unknown_fields(), output); 10171 unknown_fields(), output);
10236 } 10172 }
10237 // @@protoc_insertion_point(serialize_end:google.protobuf.FieldOptions) 10173 // @@protoc_insertion_point(serialize_end:google.protobuf.FieldOptions)
10238 } 10174 }
10239 10175
10240 ::google::protobuf::uint8* FieldOptions::SerializeWithCachedSizesToArray( 10176 ::google::protobuf::uint8* FieldOptions::InternalSerializeWithCachedSizesToArray (
10241 ::google::protobuf::uint8* target) const { 10177 bool deterministic, ::google::protobuf::uint8* target) const {
10178 (void)deterministic; // Unused
10242 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldOpti ons) 10179 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldOpti ons)
10243 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; 10180 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
10244 if (has_ctype()) { 10181 if (has_ctype()) {
10245 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 10182 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
10246 1, this->ctype(), target); 10183 1, this->ctype(), target);
10247 } 10184 }
10248 10185
10249 // optional bool packed = 2; 10186 // optional bool packed = 2;
10250 if (has_packed()) { 10187 if (has_packed()) {
10251 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, t his->packed(), target); 10188 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, t his->packed(), target);
(...skipping 16 matching lines...) Expand all
10268 } 10205 }
10269 10206
10270 // optional bool weak = 10 [default = false]; 10207 // optional bool weak = 10 [default = false];
10271 if (has_weak()) { 10208 if (has_weak()) {
10272 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->weak(), target); 10209 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->weak(), target);
10273 } 10210 }
10274 10211
10275 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 10212 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10276 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { 10213 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
10277 target = ::google::protobuf::internal::WireFormatLite:: 10214 target = ::google::protobuf::internal::WireFormatLite::
10278 WriteMessageNoVirtualToArray( 10215 InternalWriteMessageNoVirtualToArray(
10279 999, this->uninterpreted_option(i), target); 10216 999, this->uninterpreted_option(i), false, target);
10280 } 10217 }
10281 10218
10282 // Extension range [1000, 536870912) 10219 // Extension range [1000, 536870912)
10283 target = _extensions_.SerializeWithCachedSizesToArray( 10220 target = _extensions_.InternalSerializeWithCachedSizesToArray(
10284 1000, 536870912, target); 10221 1000, 536870912, false, target);
10285 10222
10286 if (_internal_metadata_.have_unknown_fields()) { 10223 if (_internal_metadata_.have_unknown_fields()) {
10287 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 10224 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
10288 unknown_fields(), target); 10225 unknown_fields(), target);
10289 } 10226 }
10290 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FieldOption s) 10227 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FieldOption s)
10291 return target; 10228 return target;
10292 } 10229 }
10293 10230
10294 int FieldOptions::ByteSize() const { 10231 size_t FieldOptions::ByteSizeLong() const {
10295 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FieldOptions ) 10232 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FieldOptions )
10296 int total_size = 0; 10233 size_t total_size = 0;
10234
10235 total_size += _extensions_.ByteSize();
10236
10237 if (_internal_metadata_.have_unknown_fields()) {
10238 total_size +=
10239 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
10240 unknown_fields());
10241 }
10242 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10243 {
10244 unsigned int count = this->uninterpreted_option_size();
10245 total_size += 2UL * count;
10246 for (unsigned int i = 0; i < count; i++) {
10247 total_size +=
10248 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
10249 this->uninterpreted_option(i));
10250 }
10251 }
10297 10252
10298 if (_has_bits_[0 / 32] & 63u) { 10253 if (_has_bits_[0 / 32] & 63u) {
10299 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING] ; 10254 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING] ;
10300 if (has_ctype()) { 10255 if (has_ctype()) {
10301 total_size += 1 + 10256 total_size += 1 +
10302 ::google::protobuf::internal::WireFormatLite::EnumSize(this->ctype()); 10257 ::google::protobuf::internal::WireFormatLite::EnumSize(this->ctype());
10303 } 10258 }
10304 10259
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]; 10260 // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NO RMAL];
10311 if (has_jstype()) { 10261 if (has_jstype()) {
10312 total_size += 1 + 10262 total_size += 1 +
10313 ::google::protobuf::internal::WireFormatLite::EnumSize(this->jstype()); 10263 ::google::protobuf::internal::WireFormatLite::EnumSize(this->jstype());
10314 } 10264 }
10315 10265
10266 // optional bool packed = 2;
10267 if (has_packed()) {
10268 total_size += 1 + 1;
10269 }
10270
10316 // optional bool lazy = 5 [default = false]; 10271 // optional bool lazy = 5 [default = false];
10317 if (has_lazy()) { 10272 if (has_lazy()) {
10318 total_size += 1 + 1; 10273 total_size += 1 + 1;
10319 } 10274 }
10320 10275
10321 // optional bool deprecated = 3 [default = false]; 10276 // optional bool deprecated = 3 [default = false];
10322 if (has_deprecated()) { 10277 if (has_deprecated()) {
10323 total_size += 1 + 1; 10278 total_size += 1 + 1;
10324 } 10279 }
10325 10280
10326 // optional bool weak = 10 [default = false]; 10281 // optional bool weak = 10 [default = false];
10327 if (has_weak()) { 10282 if (has_weak()) {
10328 total_size += 1 + 1; 10283 total_size += 1 + 1;
10329 } 10284 }
10330 10285
10331 } 10286 }
10332 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 10287 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(); 10288 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10348 _cached_size_ = total_size; 10289 _cached_size_ = cached_size;
10349 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 10290 GOOGLE_SAFE_CONCURRENT_WRITES_END();
10350 return total_size; 10291 return total_size;
10351 } 10292 }
10352 10293
10353 void FieldOptions::MergeFrom(const ::google::protobuf::Message& from) { 10294 void FieldOptions::MergeFrom(const ::google::protobuf::Message& from) {
10354 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FieldOp tions) 10295 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FieldOp tions)
10355 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 10296 GOOGLE_DCHECK_NE(&from, this);
10356 const FieldOptions* source = 10297 const FieldOptions* source =
10357 ::google::protobuf::internal::DynamicCastToGenerated<const FieldOptions>( 10298 ::google::protobuf::internal::DynamicCastToGenerated<const FieldOptions>(
10358 &from); 10299 &from);
10359 if (source == NULL) { 10300 if (source == NULL) {
10360 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.F ieldOptions) 10301 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.F ieldOptions)
10361 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 10302 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
10362 } else { 10303 } else {
10363 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.FieldOptions) 10304 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.FieldOptions)
10364 MergeFrom(*source); 10305 MergeFrom(*source);
10365 } 10306 }
10366 } 10307 }
10367 10308
10368 void FieldOptions::MergeFrom(const FieldOptions& from) { 10309 void FieldOptions::MergeFrom(const FieldOptions& from) {
10369 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Fiel dOptions) 10310 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Fiel dOptions)
10370 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 10311 GOOGLE_DCHECK_NE(&from, this);
10312 _extensions_.MergeFrom(from._extensions_);
10313 _internal_metadata_.MergeFrom(from._internal_metadata_);
10371 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); 10314 uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
10372 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { 10315 if (from._has_bits_[0 / 32] & 63u) {
10373 if (from.has_ctype()) { 10316 if (from.has_ctype()) {
10374 set_ctype(from.ctype()); 10317 set_ctype(from.ctype());
10375 } 10318 }
10319 if (from.has_jstype()) {
10320 set_jstype(from.jstype());
10321 }
10376 if (from.has_packed()) { 10322 if (from.has_packed()) {
10377 set_packed(from.packed()); 10323 set_packed(from.packed());
10378 } 10324 }
10379 if (from.has_jstype()) {
10380 set_jstype(from.jstype());
10381 }
10382 if (from.has_lazy()) { 10325 if (from.has_lazy()) {
10383 set_lazy(from.lazy()); 10326 set_lazy(from.lazy());
10384 } 10327 }
10385 if (from.has_deprecated()) { 10328 if (from.has_deprecated()) {
10386 set_deprecated(from.deprecated()); 10329 set_deprecated(from.deprecated());
10387 } 10330 }
10388 if (from.has_weak()) { 10331 if (from.has_weak()) {
10389 set_weak(from.weak()); 10332 set_weak(from.weak());
10390 } 10333 }
10391 } 10334 }
10392 _extensions_.MergeFrom(from._extensions_);
10393 if (from._internal_metadata_.have_unknown_fields()) {
10394 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
10395 }
10396 } 10335 }
10397 10336
10398 void FieldOptions::CopyFrom(const ::google::protobuf::Message& from) { 10337 void FieldOptions::CopyFrom(const ::google::protobuf::Message& from) {
10399 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FieldOpt ions) 10338 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FieldOpt ions)
10400 if (&from == this) return; 10339 if (&from == this) return;
10401 Clear(); 10340 Clear();
10402 MergeFrom(from); 10341 MergeFrom(from);
10403 } 10342 }
10404 10343
10405 void FieldOptions::CopyFrom(const FieldOptions& from) { 10344 void FieldOptions::CopyFrom(const FieldOptions& from) {
10406 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Field Options) 10345 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Field Options)
10407 if (&from == this) return; 10346 if (&from == this) return;
10408 Clear(); 10347 Clear();
10409 MergeFrom(from); 10348 MergeFrom(from);
10410 } 10349 }
10411 10350
10412 bool FieldOptions::IsInitialized() const { 10351 bool FieldOptions::IsInitialized() const {
10352 if (!_extensions_.IsInitialized()) {
10353 return false;
10354 }
10413 10355
10414 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio n())) return false; 10356 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio n())) return false;
10415 10357 return true;
10416 if (!_extensions_.IsInitialized()) return false; return true;
10417 } 10358 }
10418 10359
10419 void FieldOptions::Swap(FieldOptions* other) { 10360 void FieldOptions::Swap(FieldOptions* other) {
10420 if (other == this) return; 10361 if (other == this) return;
10421 InternalSwap(other); 10362 InternalSwap(other);
10422 } 10363 }
10423 void FieldOptions::InternalSwap(FieldOptions* other) { 10364 void FieldOptions::InternalSwap(FieldOptions* other) {
10365 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
10424 std::swap(ctype_, other->ctype_); 10366 std::swap(ctype_, other->ctype_);
10367 std::swap(jstype_, other->jstype_);
10425 std::swap(packed_, other->packed_); 10368 std::swap(packed_, other->packed_);
10426 std::swap(jstype_, other->jstype_);
10427 std::swap(lazy_, other->lazy_); 10369 std::swap(lazy_, other->lazy_);
10428 std::swap(deprecated_, other->deprecated_); 10370 std::swap(deprecated_, other->deprecated_);
10429 std::swap(weak_, other->weak_); 10371 std::swap(weak_, other->weak_);
10430 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
10431 std::swap(_has_bits_[0], other->_has_bits_[0]); 10372 std::swap(_has_bits_[0], other->_has_bits_[0]);
10432 _internal_metadata_.Swap(&other->_internal_metadata_); 10373 _internal_metadata_.Swap(&other->_internal_metadata_);
10433 std::swap(_cached_size_, other->_cached_size_); 10374 std::swap(_cached_size_, other->_cached_size_);
10434 _extensions_.Swap(&other->_extensions_); 10375 _extensions_.Swap(&other->_extensions_);
10435 } 10376 }
10436 10377
10437 ::google::protobuf::Metadata FieldOptions::GetMetadata() const { 10378 ::google::protobuf::Metadata FieldOptions::GetMetadata() const {
10438 protobuf_AssignDescriptorsOnce(); 10379 protobuf_AssignDescriptorsOnce();
10439 ::google::protobuf::Metadata metadata; 10380 return file_level_metadata[13];
10440 metadata.descriptor = FieldOptions_descriptor_;
10441 metadata.reflection = FieldOptions_reflection_;
10442 return metadata;
10443 } 10381 }
10444 10382
10445 #if PROTOBUF_INLINE_NOT_IN_HEADERS 10383 #if PROTOBUF_INLINE_NOT_IN_HEADERS
10446 // FieldOptions 10384 // FieldOptions
10447 10385
10448 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; 10386 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
10449 bool FieldOptions::has_ctype() const { 10387 bool FieldOptions::has_ctype() const {
10450 return (_has_bits_[0] & 0x00000001u) != 0; 10388 return (_has_bits_[0] & 0x00000001u) != 0;
10451 } 10389 }
10452 void FieldOptions::set_has_ctype() { 10390 void FieldOptions::set_has_ctype() {
10453 _has_bits_[0] |= 0x00000001u; 10391 _has_bits_[0] |= 0x00000001u;
10454 } 10392 }
10455 void FieldOptions::clear_has_ctype() { 10393 void FieldOptions::clear_has_ctype() {
10456 _has_bits_[0] &= ~0x00000001u; 10394 _has_bits_[0] &= ~0x00000001u;
10457 } 10395 }
10458 void FieldOptions::clear_ctype() { 10396 void FieldOptions::clear_ctype() {
10459 ctype_ = 0; 10397 ctype_ = 0;
10460 clear_has_ctype(); 10398 clear_has_ctype();
10461 } 10399 }
10462 ::google::protobuf::FieldOptions_CType FieldOptions::ctype() const { 10400 ::google::protobuf::FieldOptions_CType FieldOptions::ctype() const {
10463 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.ctype) 10401 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.ctype)
10464 return static_cast< ::google::protobuf::FieldOptions_CType >(ctype_); 10402 return static_cast< ::google::protobuf::FieldOptions_CType >(ctype_);
10465 } 10403 }
10466 void FieldOptions::set_ctype(::google::protobuf::FieldOptions_CType value) { 10404 void FieldOptions::set_ctype(::google::protobuf::FieldOptions_CType value) {
10467 assert(::google::protobuf::FieldOptions_CType_IsValid(value)); 10405 assert(::google::protobuf::FieldOptions_CType_IsValid(value));
10468 set_has_ctype(); 10406 set_has_ctype();
10469 ctype_ = value; 10407 ctype_ = value;
10470 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.ctype) 10408 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.ctype)
10471 } 10409 }
10472 10410
10473 // optional bool packed = 2; 10411 // optional bool packed = 2;
10474 bool FieldOptions::has_packed() const { 10412 bool FieldOptions::has_packed() const {
10475 return (_has_bits_[0] & 0x00000002u) != 0; 10413 return (_has_bits_[0] & 0x00000004u) != 0;
10476 } 10414 }
10477 void FieldOptions::set_has_packed() { 10415 void FieldOptions::set_has_packed() {
10478 _has_bits_[0] |= 0x00000002u; 10416 _has_bits_[0] |= 0x00000004u;
10479 } 10417 }
10480 void FieldOptions::clear_has_packed() { 10418 void FieldOptions::clear_has_packed() {
10481 _has_bits_[0] &= ~0x00000002u; 10419 _has_bits_[0] &= ~0x00000004u;
10482 } 10420 }
10483 void FieldOptions::clear_packed() { 10421 void FieldOptions::clear_packed() {
10484 packed_ = false; 10422 packed_ = false;
10485 clear_has_packed(); 10423 clear_has_packed();
10486 } 10424 }
10487 bool FieldOptions::packed() const { 10425 bool FieldOptions::packed() const {
10488 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.packed) 10426 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.packed)
10489 return packed_; 10427 return packed_;
10490 } 10428 }
10491 void FieldOptions::set_packed(bool value) { 10429 void FieldOptions::set_packed(bool value) {
10492 set_has_packed(); 10430 set_has_packed();
10493 packed_ = value; 10431 packed_ = value;
10494 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.packed) 10432 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.packed)
10495 } 10433 }
10496 10434
10497 // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL ]; 10435 // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL ];
10498 bool FieldOptions::has_jstype() const { 10436 bool FieldOptions::has_jstype() const {
10499 return (_has_bits_[0] & 0x00000004u) != 0; 10437 return (_has_bits_[0] & 0x00000002u) != 0;
10500 } 10438 }
10501 void FieldOptions::set_has_jstype() { 10439 void FieldOptions::set_has_jstype() {
10502 _has_bits_[0] |= 0x00000004u; 10440 _has_bits_[0] |= 0x00000002u;
10503 } 10441 }
10504 void FieldOptions::clear_has_jstype() { 10442 void FieldOptions::clear_has_jstype() {
10505 _has_bits_[0] &= ~0x00000004u; 10443 _has_bits_[0] &= ~0x00000002u;
10506 } 10444 }
10507 void FieldOptions::clear_jstype() { 10445 void FieldOptions::clear_jstype() {
10508 jstype_ = 0; 10446 jstype_ = 0;
10509 clear_has_jstype(); 10447 clear_has_jstype();
10510 } 10448 }
10511 ::google::protobuf::FieldOptions_JSType FieldOptions::jstype() const { 10449 ::google::protobuf::FieldOptions_JSType FieldOptions::jstype() const {
10512 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.jstype) 10450 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.jstype)
10513 return static_cast< ::google::protobuf::FieldOptions_JSType >(jstype_); 10451 return static_cast< ::google::protobuf::FieldOptions_JSType >(jstype_);
10514 } 10452 }
10515 void FieldOptions::set_jstype(::google::protobuf::FieldOptions_JSType value) { 10453 void FieldOptions::set_jstype(::google::protobuf::FieldOptions_JSType value) {
10516 assert(::google::protobuf::FieldOptions_JSType_IsValid(value)); 10454 assert(::google::protobuf::FieldOptions_JSType_IsValid(value));
10517 set_has_jstype(); 10455 set_has_jstype();
10518 jstype_ = value; 10456 jstype_ = value;
10519 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.jstype) 10457 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.jstype)
10520 } 10458 }
10521 10459
10522 // optional bool lazy = 5 [default = false]; 10460 // optional bool lazy = 5 [default = false];
10523 bool FieldOptions::has_lazy() const { 10461 bool FieldOptions::has_lazy() const {
10524 return (_has_bits_[0] & 0x00000008u) != 0; 10462 return (_has_bits_[0] & 0x00000008u) != 0;
10525 } 10463 }
10526 void FieldOptions::set_has_lazy() { 10464 void FieldOptions::set_has_lazy() {
10527 _has_bits_[0] |= 0x00000008u; 10465 _has_bits_[0] |= 0x00000008u;
10528 } 10466 }
10529 void FieldOptions::clear_has_lazy() { 10467 void FieldOptions::clear_has_lazy() {
10530 _has_bits_[0] &= ~0x00000008u; 10468 _has_bits_[0] &= ~0x00000008u;
10531 } 10469 }
10532 void FieldOptions::clear_lazy() { 10470 void FieldOptions::clear_lazy() {
10533 lazy_ = false; 10471 lazy_ = false;
10534 clear_has_lazy(); 10472 clear_has_lazy();
10535 } 10473 }
10536 bool FieldOptions::lazy() const { 10474 bool FieldOptions::lazy() const {
10537 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.lazy) 10475 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.lazy)
10538 return lazy_; 10476 return lazy_;
10539 } 10477 }
10540 void FieldOptions::set_lazy(bool value) { 10478 void FieldOptions::set_lazy(bool value) {
10541 set_has_lazy(); 10479 set_has_lazy();
10542 lazy_ = value; 10480 lazy_ = value;
10543 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.lazy) 10481 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.lazy)
10544 } 10482 }
10545 10483
10546 // optional bool deprecated = 3 [default = false]; 10484 // optional bool deprecated = 3 [default = false];
10547 bool FieldOptions::has_deprecated() const { 10485 bool FieldOptions::has_deprecated() const {
10548 return (_has_bits_[0] & 0x00000010u) != 0; 10486 return (_has_bits_[0] & 0x00000010u) != 0;
10549 } 10487 }
10550 void FieldOptions::set_has_deprecated() { 10488 void FieldOptions::set_has_deprecated() {
10551 _has_bits_[0] |= 0x00000010u; 10489 _has_bits_[0] |= 0x00000010u;
10552 } 10490 }
10553 void FieldOptions::clear_has_deprecated() { 10491 void FieldOptions::clear_has_deprecated() {
10554 _has_bits_[0] &= ~0x00000010u; 10492 _has_bits_[0] &= ~0x00000010u;
10555 } 10493 }
10556 void FieldOptions::clear_deprecated() { 10494 void FieldOptions::clear_deprecated() {
10557 deprecated_ = false; 10495 deprecated_ = false;
10558 clear_has_deprecated(); 10496 clear_has_deprecated();
10559 } 10497 }
10560 bool FieldOptions::deprecated() const { 10498 bool FieldOptions::deprecated() const {
10561 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.deprecated) 10499 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.deprecated)
10562 return deprecated_; 10500 return deprecated_;
10563 } 10501 }
10564 void FieldOptions::set_deprecated(bool value) { 10502 void FieldOptions::set_deprecated(bool value) {
10565 set_has_deprecated(); 10503 set_has_deprecated();
10566 deprecated_ = value; 10504 deprecated_ = value;
10567 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.deprecated) 10505 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.deprecated)
10568 } 10506 }
10569 10507
10570 // optional bool weak = 10 [default = false]; 10508 // optional bool weak = 10 [default = false];
10571 bool FieldOptions::has_weak() const { 10509 bool FieldOptions::has_weak() const {
10572 return (_has_bits_[0] & 0x00000020u) != 0; 10510 return (_has_bits_[0] & 0x00000020u) != 0;
10573 } 10511 }
10574 void FieldOptions::set_has_weak() { 10512 void FieldOptions::set_has_weak() {
10575 _has_bits_[0] |= 0x00000020u; 10513 _has_bits_[0] |= 0x00000020u;
10576 } 10514 }
10577 void FieldOptions::clear_has_weak() { 10515 void FieldOptions::clear_has_weak() {
10578 _has_bits_[0] &= ~0x00000020u; 10516 _has_bits_[0] &= ~0x00000020u;
10579 } 10517 }
10580 void FieldOptions::clear_weak() { 10518 void FieldOptions::clear_weak() {
10581 weak_ = false; 10519 weak_ = false;
10582 clear_has_weak(); 10520 clear_has_weak();
10583 } 10521 }
10584 bool FieldOptions::weak() const { 10522 bool FieldOptions::weak() const {
10585 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.weak) 10523 // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.weak)
10586 return weak_; 10524 return weak_;
10587 } 10525 }
10588 void FieldOptions::set_weak(bool value) { 10526 void FieldOptions::set_weak(bool value) {
10589 set_has_weak(); 10527 set_has_weak();
10590 weak_ = value; 10528 weak_ = value;
10591 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.weak) 10529 // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.weak)
10592 } 10530 }
10593 10531
10594 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 10532 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10595 int FieldOptions::uninterpreted_option_size() const { 10533 int FieldOptions::uninterpreted_option_size() const {
10596 return uninterpreted_option_.size(); 10534 return uninterpreted_option_.size();
10597 } 10535 }
10598 void FieldOptions::clear_uninterpreted_option() { 10536 void FieldOptions::clear_uninterpreted_option() {
(...skipping 20 matching lines...) Expand all
10619 FieldOptions::uninterpreted_option() const { 10557 FieldOptions::uninterpreted_option() const {
10620 // @@protoc_insertion_point(field_list:google.protobuf.FieldOptions.uninterpre ted_option) 10558 // @@protoc_insertion_point(field_list:google.protobuf.FieldOptions.uninterpre ted_option)
10621 return uninterpreted_option_; 10559 return uninterpreted_option_;
10622 } 10560 }
10623 10561
10624 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 10562 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
10625 10563
10626 // =================================================================== 10564 // ===================================================================
10627 10565
10628 #if !defined(_MSC_VER) || _MSC_VER >= 1900 10566 #if !defined(_MSC_VER) || _MSC_VER >= 1900
10629 const int EnumOptions::kAllowAliasFieldNumber; 10567 const int OneofOptions::kUninterpretedOptionFieldNumber;
10630 const int EnumOptions::kDeprecatedFieldNumber;
10631 const int EnumOptions::kUninterpretedOptionFieldNumber;
10632 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 10568 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
10633 10569
10634 EnumOptions::EnumOptions() 10570 OneofOptions::OneofOptions()
10635 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 10571 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
10572 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
10573 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
10574 }
10636 SharedCtor(); 10575 SharedCtor();
10637 // @@protoc_insertion_point(constructor:google.protobuf.EnumOptions) 10576 // @@protoc_insertion_point(constructor:google.protobuf.OneofOptions)
10577 }
10578 OneofOptions::OneofOptions(const OneofOptions& from)
10579 : ::google::protobuf::Message(),
10580 _internal_metadata_(NULL),
10581 _has_bits_(from._has_bits_),
10582 _cached_size_(0),
10583 uninterpreted_option_(from.uninterpreted_option_) {
10584 _internal_metadata_.MergeFrom(from._internal_metadata_);
10585 _extensions_.MergeFrom(from._extensions_);
10586 // @@protoc_insertion_point(copy_constructor:google.protobuf.OneofOptions)
10638 } 10587 }
10639 10588
10640 void EnumOptions::InitAsDefaultInstance() { 10589 void OneofOptions::SharedCtor() {
10590 _cached_size_ = 0;
10641 } 10591 }
10642 10592
10643 EnumOptions::EnumOptions(const EnumOptions& from) 10593 OneofOptions::~OneofOptions() {
10644 : ::google::protobuf::Message(), 10594 // @@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(); 10595 SharedDtor();
10661 } 10596 }
10662 10597
10663 void EnumOptions::SharedDtor() { 10598 void OneofOptions::SharedDtor() {
10664 if (this != default_instance_) {
10665 }
10666 } 10599 }
10667 10600
10668 void EnumOptions::SetCachedSize(int size) const { 10601 void OneofOptions::SetCachedSize(int size) const {
10669 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 10602 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10670 _cached_size_ = size; 10603 _cached_size_ = size;
10671 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 10604 GOOGLE_SAFE_CONCURRENT_WRITES_END();
10672 } 10605 }
10673 const ::google::protobuf::Descriptor* EnumOptions::descriptor() { 10606 const ::google::protobuf::Descriptor* OneofOptions::descriptor() {
10674 protobuf_AssignDescriptorsOnce(); 10607 protobuf_AssignDescriptorsOnce();
10675 return EnumOptions_descriptor_; 10608 return file_level_metadata[14].descriptor;
10676 } 10609 }
10677 10610
10678 const EnumOptions& EnumOptions::default_instance() { 10611 const OneofOptions& OneofOptions::default_instance() {
10679 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 10612 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
10680 return *default_instance_; 10613 return *internal_default_instance();
10681 } 10614 }
10682 10615
10683 EnumOptions* EnumOptions::default_instance_ = NULL; 10616 OneofOptions* OneofOptions::New(::google::protobuf::Arena* arena) const {
10684 10617 OneofOptions* n = new OneofOptions;
10685 EnumOptions* EnumOptions::New(::google::protobuf::Arena* arena) const {
10686 EnumOptions* n = new EnumOptions;
10687 if (arena != NULL) { 10618 if (arena != NULL) {
10688 arena->Own(n); 10619 arena->Own(n);
10689 } 10620 }
10690 return n; 10621 return n;
10691 } 10622 }
10692 10623
10693 void EnumOptions::Clear() { 10624 void OneofOptions::Clear() {
10694 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumOptions) 10625 // @@protoc_insertion_point(message_clear_start:google.protobuf.OneofOptions)
10695 _extensions_.Clear(); 10626 _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(); 10627 uninterpreted_option_.Clear();
10718 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 10628 _has_bits_.Clear();
10719 if (_internal_metadata_.have_unknown_fields()) { 10629 _internal_metadata_.Clear();
10720 mutable_unknown_fields()->Clear();
10721 }
10722 } 10630 }
10723 10631
10724 bool EnumOptions::MergePartialFromCodedStream( 10632 bool OneofOptions::MergePartialFromCodedStream(
10725 ::google::protobuf::io::CodedInputStream* input) { 10633 ::google::protobuf::io::CodedInputStream* input) {
10726 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 10634 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
10727 ::google::protobuf::uint32 tag; 10635 ::google::protobuf::uint32 tag;
10728 // @@protoc_insertion_point(parse_start:google.protobuf.EnumOptions) 10636 // @@protoc_insertion_point(parse_start:google.protobuf.OneofOptions)
10729 for (;;) { 10637 for (;;) {
10730 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 16383); 10638 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(16383u);
10731 tag = p.first; 10639 tag = p.first;
10732 if (!p.second) goto handle_unusual; 10640 if (!p.second) goto handle_unusual;
10733 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 10641 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; 10642 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99 9;
10764 case 999: { 10643 case 999: {
10765 if (tag == 7994) { 10644 if (tag == 7994u) {
10766 parse_uninterpreted_option:
10767 DO_(input->IncrementRecursionDepth()); 10645 DO_(input->IncrementRecursionDepth());
10768 parse_loop_uninterpreted_option:
10769 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 10646 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
10770 input, add_uninterpreted_option())); 10647 input, add_uninterpreted_option()));
10771 } else { 10648 } else {
10772 goto handle_unusual; 10649 goto handle_unusual;
10773 } 10650 }
10774 if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option;
10775 input->UnsafeDecrementRecursionDepth(); 10651 input->UnsafeDecrementRecursionDepth();
10776 if (input->ExpectAtEnd()) goto success;
10777 break; 10652 break;
10778 } 10653 }
10779 10654
10780 default: { 10655 default: {
10781 handle_unusual: 10656 handle_unusual:
10782 if (tag == 0 || 10657 if (tag == 0 ||
10783 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 10658 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
10784 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 10659 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
10785 goto success; 10660 goto success;
10786 } 10661 }
10787 if ((8000u <= tag)) { 10662 if ((8000u <= tag)) {
10788 DO_(_extensions_.ParseField(tag, input, default_instance_, 10663 DO_(_extensions_.ParseField(tag, input, internal_default_instance(),
10789 mutable_unknown_fields())); 10664 mutable_unknown_fields()));
10790 continue; 10665 continue;
10791 } 10666 }
10792 DO_(::google::protobuf::internal::WireFormat::SkipField( 10667 DO_(::google::protobuf::internal::WireFormat::SkipField(
10793 input, tag, mutable_unknown_fields())); 10668 input, tag, mutable_unknown_fields()));
10794 break; 10669 break;
10795 } 10670 }
10796 } 10671 }
10797 } 10672 }
10798 success: 10673 success:
10799 // @@protoc_insertion_point(parse_success:google.protobuf.EnumOptions) 10674 // @@protoc_insertion_point(parse_success:google.protobuf.OneofOptions)
10800 return true; 10675 return true;
10801 failure: 10676 failure:
10802 // @@protoc_insertion_point(parse_failure:google.protobuf.EnumOptions) 10677 // @@protoc_insertion_point(parse_failure:google.protobuf.OneofOptions)
10803 return false; 10678 return false;
10804 #undef DO_ 10679 #undef DO_
10805 } 10680 }
10806 10681
10807 void EnumOptions::SerializeWithCachedSizes( 10682 void OneofOptions::SerializeWithCachedSizes(
10808 ::google::protobuf::io::CodedOutputStream* output) const { 10683 ::google::protobuf::io::CodedOutputStream* output) const {
10809 // @@protoc_insertion_point(serialize_start:google.protobuf.EnumOptions) 10684 // @@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; 10685 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10821 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { 10686 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
10822 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 10687 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10823 999, this->uninterpreted_option(i), output); 10688 999, this->uninterpreted_option(i), output);
10824 } 10689 }
10825 10690
10826 // Extension range [1000, 536870912) 10691 // Extension range [1000, 536870912)
10827 _extensions_.SerializeWithCachedSizes( 10692 _extensions_.SerializeWithCachedSizes(
10828 1000, 536870912, output); 10693 1000, 536870912, output);
10829 10694
10830 if (_internal_metadata_.have_unknown_fields()) { 10695 if (_internal_metadata_.have_unknown_fields()) {
10831 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 10696 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
10832 unknown_fields(), output); 10697 unknown_fields(), output);
10833 } 10698 }
10834 // @@protoc_insertion_point(serialize_end:google.protobuf.EnumOptions) 10699 // @@protoc_insertion_point(serialize_end:google.protobuf.OneofOptions)
10835 } 10700 }
10836 10701
10837 ::google::protobuf::uint8* EnumOptions::SerializeWithCachedSizesToArray( 10702 ::google::protobuf::uint8* OneofOptions::InternalSerializeWithCachedSizesToArray (
10838 ::google::protobuf::uint8* target) const { 10703 bool deterministic, ::google::protobuf::uint8* target) const {
10839 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumOptio ns) 10704 (void)deterministic; // Unused
10840 // optional bool allow_alias = 2; 10705 // @@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; 10706 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10851 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { 10707 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
10852 target = ::google::protobuf::internal::WireFormatLite:: 10708 target = ::google::protobuf::internal::WireFormatLite::
10853 WriteMessageNoVirtualToArray( 10709 InternalWriteMessageNoVirtualToArray(
10854 999, this->uninterpreted_option(i), target); 10710 999, this->uninterpreted_option(i), false, target);
10855 } 10711 }
10856 10712
10857 // Extension range [1000, 536870912) 10713 // Extension range [1000, 536870912)
10858 target = _extensions_.SerializeWithCachedSizesToArray( 10714 target = _extensions_.InternalSerializeWithCachedSizesToArray(
10859 1000, 536870912, target); 10715 1000, 536870912, false, target);
10860 10716
10861 if (_internal_metadata_.have_unknown_fields()) { 10717 if (_internal_metadata_.have_unknown_fields()) {
10862 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 10718 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
10863 unknown_fields(), target); 10719 unknown_fields(), target);
10864 } 10720 }
10865 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumOptions ) 10721 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.OneofOption s)
10866 return target; 10722 return target;
10867 } 10723 }
10868 10724
10869 int EnumOptions::ByteSize() const { 10725 size_t OneofOptions::ByteSizeLong() const {
10870 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumOptions) 10726 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.OneofOptions )
10871 int total_size = 0; 10727 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 10728
10893 total_size += _extensions_.ByteSize(); 10729 total_size += _extensions_.ByteSize();
10894 10730
10895 if (_internal_metadata_.have_unknown_fields()) { 10731 if (_internal_metadata_.have_unknown_fields()) {
10896 total_size += 10732 total_size +=
10897 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( 10733 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
10898 unknown_fields()); 10734 unknown_fields());
10899 } 10735 }
10736 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10737 {
10738 unsigned int count = this->uninterpreted_option_size();
10739 total_size += 2UL * count;
10740 for (unsigned int i = 0; i < count; i++) {
10741 total_size +=
10742 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
10743 this->uninterpreted_option(i));
10744 }
10745 }
10746
10747 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
10900 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 10748 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10901 _cached_size_ = total_size; 10749 _cached_size_ = cached_size;
10902 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 10750 GOOGLE_SAFE_CONCURRENT_WRITES_END();
10903 return total_size; 10751 return total_size;
10904 } 10752 }
10905 10753
10906 void EnumOptions::MergeFrom(const ::google::protobuf::Message& from) { 10754 void OneofOptions::MergeFrom(const ::google::protobuf::Message& from) {
10907 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumOpt ions) 10755 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.OneofOp tions)
10908 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 10756 GOOGLE_DCHECK_NE(&from, this);
10909 const EnumOptions* source = 10757 const OneofOptions* source =
10910 ::google::protobuf::internal::DynamicCastToGenerated<const EnumOptions>( 10758 ::google::protobuf::internal::DynamicCastToGenerated<const OneofOptions>(
10911 &from); 10759 &from);
10912 if (source == NULL) { 10760 if (source == NULL) {
10913 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.E numOptions) 10761 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.O neofOptions)
10914 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 10762 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
10915 } else { 10763 } else {
10916 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.EnumOptions) 10764 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.OneofOptions)
10917 MergeFrom(*source); 10765 MergeFrom(*source);
10918 } 10766 }
10919 } 10767 }
10920 10768
10921 void EnumOptions::MergeFrom(const EnumOptions& from) { 10769 void OneofOptions::MergeFrom(const OneofOptions& from) {
10922 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Enum Options) 10770 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Oneo fOptions)
10923 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 10771 GOOGLE_DCHECK_NE(&from, this);
10772 _extensions_.MergeFrom(from._extensions_);
10773 _internal_metadata_.MergeFrom(from._internal_metadata_);
10924 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); 10774 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 } 10775 }
10938 10776
10939 void EnumOptions::CopyFrom(const ::google::protobuf::Message& from) { 10777 void OneofOptions::CopyFrom(const ::google::protobuf::Message& from) {
10940 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumOpti ons) 10778 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.OneofOpt ions)
10941 if (&from == this) return; 10779 if (&from == this) return;
10942 Clear(); 10780 Clear();
10943 MergeFrom(from); 10781 MergeFrom(from);
10944 } 10782 }
10945 10783
10946 void EnumOptions::CopyFrom(const EnumOptions& from) { 10784 void OneofOptions::CopyFrom(const OneofOptions& from) {
10947 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumO ptions) 10785 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Oneof Options)
10948 if (&from == this) return; 10786 if (&from == this) return;
10949 Clear(); 10787 Clear();
10950 MergeFrom(from); 10788 MergeFrom(from);
10951 } 10789 }
10952 10790
10953 bool EnumOptions::IsInitialized() const { 10791 bool OneofOptions::IsInitialized() const {
10792 if (!_extensions_.IsInitialized()) {
10793 return false;
10794 }
10954 10795
10955 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio n())) return false; 10796 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio n())) return false;
10956 10797 return true;
10957 if (!_extensions_.IsInitialized()) return false; return true;
10958 } 10798 }
10959 10799
10960 void EnumOptions::Swap(EnumOptions* other) { 10800 void OneofOptions::Swap(OneofOptions* other) {
10961 if (other == this) return; 10801 if (other == this) return;
10962 InternalSwap(other); 10802 InternalSwap(other);
10963 } 10803 }
10964 void EnumOptions::InternalSwap(EnumOptions* other) { 10804 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_); 10805 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
10968 std::swap(_has_bits_[0], other->_has_bits_[0]); 10806 std::swap(_has_bits_[0], other->_has_bits_[0]);
10969 _internal_metadata_.Swap(&other->_internal_metadata_); 10807 _internal_metadata_.Swap(&other->_internal_metadata_);
10970 std::swap(_cached_size_, other->_cached_size_); 10808 std::swap(_cached_size_, other->_cached_size_);
10971 _extensions_.Swap(&other->_extensions_); 10809 _extensions_.Swap(&other->_extensions_);
10972 } 10810 }
10973 10811
10974 ::google::protobuf::Metadata EnumOptions::GetMetadata() const { 10812 ::google::protobuf::Metadata OneofOptions::GetMetadata() const {
10975 protobuf_AssignDescriptorsOnce(); 10813 protobuf_AssignDescriptorsOnce();
10976 ::google::protobuf::Metadata metadata; 10814 return file_level_metadata[14];
10977 metadata.descriptor = EnumOptions_descriptor_;
10978 metadata.reflection = EnumOptions_reflection_;
10979 return metadata;
10980 } 10815 }
10981 10816
10982 #if PROTOBUF_INLINE_NOT_IN_HEADERS 10817 #if PROTOBUF_INLINE_NOT_IN_HEADERS
10983 // EnumOptions 10818 // 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 10819
11033 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 10820 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11034 int EnumOptions::uninterpreted_option_size() const { 10821 int OneofOptions::uninterpreted_option_size() const {
11035 return uninterpreted_option_.size(); 10822 return uninterpreted_option_.size();
11036 } 10823 }
11037 void EnumOptions::clear_uninterpreted_option() { 10824 void OneofOptions::clear_uninterpreted_option() {
11038 uninterpreted_option_.Clear(); 10825 uninterpreted_option_.Clear();
11039 } 10826 }
11040 const ::google::protobuf::UninterpretedOption& EnumOptions::uninterpreted_option (int index) const { 10827 const ::google::protobuf::UninterpretedOption& OneofOptions::uninterpreted_optio n(int index) const {
11041 // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.uninterprete d_option) 10828 // @@protoc_insertion_point(field_get:google.protobuf.OneofOptions.uninterpret ed_option)
11042 return uninterpreted_option_.Get(index); 10829 return uninterpreted_option_.Get(index);
11043 } 10830 }
11044 ::google::protobuf::UninterpretedOption* EnumOptions::mutable_uninterpreted_opti on(int index) { 10831 ::google::protobuf::UninterpretedOption* OneofOptions::mutable_uninterpreted_opt ion(int index) {
11045 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumOptions.uninterp reted_option) 10832 // @@protoc_insertion_point(field_mutable:google.protobuf.OneofOptions.uninter preted_option)
11046 return uninterpreted_option_.Mutable(index); 10833 return uninterpreted_option_.Mutable(index);
11047 } 10834 }
11048 ::google::protobuf::UninterpretedOption* EnumOptions::add_uninterpreted_option() { 10835 ::google::protobuf::UninterpretedOption* OneofOptions::add_uninterpreted_option( ) {
11049 // @@protoc_insertion_point(field_add:google.protobuf.EnumOptions.uninterprete d_option) 10836 // @@protoc_insertion_point(field_add:google.protobuf.OneofOptions.uninterpret ed_option)
11050 return uninterpreted_option_.Add(); 10837 return uninterpreted_option_.Add();
11051 } 10838 }
11052 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* 10839 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
11053 EnumOptions::mutable_uninterpreted_option() { 10840 OneofOptions::mutable_uninterpreted_option() {
11054 // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumOptions.uni nterpreted_option) 10841 // @@protoc_insertion_point(field_mutable_list:google.protobuf.OneofOptions.un interpreted_option)
11055 return &uninterpreted_option_; 10842 return &uninterpreted_option_;
11056 } 10843 }
11057 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt ion >& 10844 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt ion >&
11058 EnumOptions::uninterpreted_option() const { 10845 OneofOptions::uninterpreted_option() const {
11059 // @@protoc_insertion_point(field_list:google.protobuf.EnumOptions.uninterpret ed_option) 10846 // @@protoc_insertion_point(field_list:google.protobuf.OneofOptions.uninterpre ted_option)
11060 return uninterpreted_option_; 10847 return uninterpreted_option_;
11061 } 10848 }
11062 10849
11063 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 10850 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
11064 10851
11065 // =================================================================== 10852 // ===================================================================
11066 10853
11067 #if !defined(_MSC_VER) || _MSC_VER >= 1900 10854 #if !defined(_MSC_VER) || _MSC_VER >= 1900
11068 const int EnumValueOptions::kDeprecatedFieldNumber; 10855 const int EnumOptions::kAllowAliasFieldNumber;
11069 const int EnumValueOptions::kUninterpretedOptionFieldNumber; 10856 const int EnumOptions::kDeprecatedFieldNumber;
10857 const int EnumOptions::kUninterpretedOptionFieldNumber;
11070 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 10858 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
11071 10859
11072 EnumValueOptions::EnumValueOptions() 10860 EnumOptions::EnumOptions()
11073 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 10861 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
10862 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
10863 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
10864 }
11074 SharedCtor(); 10865 SharedCtor();
11075 // @@protoc_insertion_point(constructor:google.protobuf.EnumValueOptions) 10866 // @@protoc_insertion_point(constructor:google.protobuf.EnumOptions)
10867 }
10868 EnumOptions::EnumOptions(const EnumOptions& from)
10869 : ::google::protobuf::Message(),
10870 _internal_metadata_(NULL),
10871 _has_bits_(from._has_bits_),
10872 _cached_size_(0),
10873 uninterpreted_option_(from.uninterpreted_option_) {
10874 _internal_metadata_.MergeFrom(from._internal_metadata_);
10875 _extensions_.MergeFrom(from._extensions_);
10876 ::memcpy(&allow_alias_, &from.allow_alias_,
10877 reinterpret_cast<char*>(&deprecated_) -
10878 reinterpret_cast<char*>(&allow_alias_) + sizeof(deprecated_));
10879 // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumOptions)
11076 } 10880 }
11077 10881
11078 void EnumValueOptions::InitAsDefaultInstance() { 10882 void EnumOptions::SharedCtor() {
10883 _cached_size_ = 0;
10884 ::memset(&allow_alias_, 0, reinterpret_cast<char*>(&deprecated_) -
10885 reinterpret_cast<char*>(&allow_alias_) + sizeof(deprecated_));
11079 } 10886 }
11080 10887
11081 EnumValueOptions::EnumValueOptions(const EnumValueOptions& from) 10888 EnumOptions::~EnumOptions() {
11082 : ::google::protobuf::Message(), 10889 // @@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(); 10890 SharedDtor();
11098 } 10891 }
11099 10892
11100 void EnumValueOptions::SharedDtor() { 10893 void EnumOptions::SharedDtor() {
11101 if (this != default_instance_) {
11102 }
11103 } 10894 }
11104 10895
11105 void EnumValueOptions::SetCachedSize(int size) const { 10896 void EnumOptions::SetCachedSize(int size) const {
11106 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 10897 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11107 _cached_size_ = size; 10898 _cached_size_ = size;
11108 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 10899 GOOGLE_SAFE_CONCURRENT_WRITES_END();
11109 } 10900 }
11110 const ::google::protobuf::Descriptor* EnumValueOptions::descriptor() { 10901 const ::google::protobuf::Descriptor* EnumOptions::descriptor() {
11111 protobuf_AssignDescriptorsOnce(); 10902 protobuf_AssignDescriptorsOnce();
11112 return EnumValueOptions_descriptor_; 10903 return file_level_metadata[15].descriptor;
11113 } 10904 }
11114 10905
11115 const EnumValueOptions& EnumValueOptions::default_instance() { 10906 const EnumOptions& EnumOptions::default_instance() {
11116 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 10907 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
11117 return *default_instance_; 10908 return *internal_default_instance();
11118 } 10909 }
11119 10910
11120 EnumValueOptions* EnumValueOptions::default_instance_ = NULL; 10911 EnumOptions* EnumOptions::New(::google::protobuf::Arena* arena) const {
11121 10912 EnumOptions* n = new EnumOptions;
11122 EnumValueOptions* EnumValueOptions::New(::google::protobuf::Arena* arena) const {
11123 EnumValueOptions* n = new EnumValueOptions;
11124 if (arena != NULL) { 10913 if (arena != NULL) {
11125 arena->Own(n); 10914 arena->Own(n);
11126 } 10915 }
11127 return n; 10916 return n;
11128 } 10917 }
11129 10918
11130 void EnumValueOptions::Clear() { 10919 void EnumOptions::Clear() {
11131 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumValueOptions ) 10920 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumOptions)
11132 _extensions_.Clear(); 10921 _extensions_.Clear();
11133 deprecated_ = false;
11134 uninterpreted_option_.Clear(); 10922 uninterpreted_option_.Clear();
11135 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 10923 if (_has_bits_[0 / 32] & 3u) {
11136 if (_internal_metadata_.have_unknown_fields()) { 10924 ::memset(&allow_alias_, 0, reinterpret_cast<char*>(&deprecated_) -
11137 mutable_unknown_fields()->Clear(); 10925 reinterpret_cast<char*>(&allow_alias_) + sizeof(deprecated_));
11138 } 10926 }
10927 _has_bits_.Clear();
10928 _internal_metadata_.Clear();
11139 } 10929 }
11140 10930
11141 bool EnumValueOptions::MergePartialFromCodedStream( 10931 bool EnumOptions::MergePartialFromCodedStream(
11142 ::google::protobuf::io::CodedInputStream* input) { 10932 ::google::protobuf::io::CodedInputStream* input) {
11143 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 10933 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
11144 ::google::protobuf::uint32 tag; 10934 ::google::protobuf::uint32 tag;
11145 // @@protoc_insertion_point(parse_start:google.protobuf.EnumValueOptions) 10935 // @@protoc_insertion_point(parse_start:google.protobuf.EnumOptions)
11146 for (;;) { 10936 for (;;) {
11147 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 16383); 10937 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(16383u);
11148 tag = p.first; 10938 tag = p.first;
11149 if (!p.second) goto handle_unusual; 10939 if (!p.second) goto handle_unusual;
11150 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 10940 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
11151 // optional bool deprecated = 1 [default = false]; 10941 // optional bool allow_alias = 2;
11152 case 1: { 10942 case 2: {
11153 if (tag == 8) { 10943 if (tag == 16u) {
10944 set_has_allow_alias();
10945 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10946 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
10947 input, &allow_alias_)));
10948 } else {
10949 goto handle_unusual;
10950 }
10951 break;
10952 }
10953
10954 // optional bool deprecated = 3 [default = false];
10955 case 3: {
10956 if (tag == 24u) {
10957 set_has_deprecated();
11154 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 10958 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
11155 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 10959 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
11156 input, &deprecated_))); 10960 input, &deprecated_)));
11157 set_has_deprecated();
11158 } else { 10961 } else {
11159 goto handle_unusual; 10962 goto handle_unusual;
11160 } 10963 }
11161 if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
11162 break; 10964 break;
11163 } 10965 }
11164 10966
11165 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99 9; 10967 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99 9;
11166 case 999: { 10968 case 999: {
11167 if (tag == 7994) { 10969 if (tag == 7994u) {
11168 parse_uninterpreted_option:
11169 DO_(input->IncrementRecursionDepth()); 10970 DO_(input->IncrementRecursionDepth());
11170 parse_loop_uninterpreted_option:
11171 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 10971 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
11172 input, add_uninterpreted_option())); 10972 input, add_uninterpreted_option()));
11173 } else { 10973 } else {
11174 goto handle_unusual; 10974 goto handle_unusual;
11175 } 10975 }
11176 if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option;
11177 input->UnsafeDecrementRecursionDepth(); 10976 input->UnsafeDecrementRecursionDepth();
11178 if (input->ExpectAtEnd()) goto success;
11179 break; 10977 break;
11180 } 10978 }
11181 10979
11182 default: { 10980 default: {
11183 handle_unusual: 10981 handle_unusual:
11184 if (tag == 0 || 10982 if (tag == 0 ||
11185 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 10983 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
11186 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 10984 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
11187 goto success; 10985 goto success;
11188 } 10986 }
11189 if ((8000u <= tag)) { 10987 if ((8000u <= tag)) {
11190 DO_(_extensions_.ParseField(tag, input, default_instance_, 10988 DO_(_extensions_.ParseField(tag, input, internal_default_instance(),
11191 mutable_unknown_fields())); 10989 mutable_unknown_fields()));
11192 continue; 10990 continue;
11193 } 10991 }
11194 DO_(::google::protobuf::internal::WireFormat::SkipField( 10992 DO_(::google::protobuf::internal::WireFormat::SkipField(
11195 input, tag, mutable_unknown_fields())); 10993 input, tag, mutable_unknown_fields()));
11196 break; 10994 break;
11197 } 10995 }
11198 } 10996 }
11199 } 10997 }
11200 success: 10998 success:
11201 // @@protoc_insertion_point(parse_success:google.protobuf.EnumValueOptions) 10999 // @@protoc_insertion_point(parse_success:google.protobuf.EnumOptions)
11202 return true; 11000 return true;
11203 failure: 11001 failure:
11204 // @@protoc_insertion_point(parse_failure:google.protobuf.EnumValueOptions) 11002 // @@protoc_insertion_point(parse_failure:google.protobuf.EnumOptions)
11205 return false; 11003 return false;
11206 #undef DO_ 11004 #undef DO_
11207 } 11005 }
11208 11006
11209 void EnumValueOptions::SerializeWithCachedSizes( 11007 void EnumOptions::SerializeWithCachedSizes(
11210 ::google::protobuf::io::CodedOutputStream* output) const { 11008 ::google::protobuf::io::CodedOutputStream* output) const {
11211 // @@protoc_insertion_point(serialize_start:google.protobuf.EnumValueOptions) 11009 // @@protoc_insertion_point(serialize_start:google.protobuf.EnumOptions)
11212 // optional bool deprecated = 1 [default = false]; 11010 // optional bool allow_alias = 2;
11011 if (has_allow_alias()) {
11012 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->allow_alias (), output);
11013 }
11014
11015 // optional bool deprecated = 3 [default = false];
11213 if (has_deprecated()) { 11016 if (has_deprecated()) {
11214 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->deprecated( ), output); 11017 ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->deprecated( ), output);
11215 } 11018 }
11216 11019
11217 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 11020 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11218 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { 11021 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
11219 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 11022 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
11220 999, this->uninterpreted_option(i), output); 11023 999, this->uninterpreted_option(i), output);
11221 } 11024 }
11222 11025
11223 // Extension range [1000, 536870912) 11026 // Extension range [1000, 536870912)
11224 _extensions_.SerializeWithCachedSizes( 11027 _extensions_.SerializeWithCachedSizes(
11225 1000, 536870912, output); 11028 1000, 536870912, output);
11226 11029
11227 if (_internal_metadata_.have_unknown_fields()) { 11030 if (_internal_metadata_.have_unknown_fields()) {
11228 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 11031 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
11229 unknown_fields(), output); 11032 unknown_fields(), output);
11230 } 11033 }
11231 // @@protoc_insertion_point(serialize_end:google.protobuf.EnumValueOptions) 11034 // @@protoc_insertion_point(serialize_end:google.protobuf.EnumOptions)
11232 } 11035 }
11233 11036
11234 ::google::protobuf::uint8* EnumValueOptions::SerializeWithCachedSizesToArray( 11037 ::google::protobuf::uint8* EnumOptions::InternalSerializeWithCachedSizesToArray(
11235 ::google::protobuf::uint8* target) const { 11038 bool deterministic, ::google::protobuf::uint8* target) const {
11236 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValue Options) 11039 (void)deterministic; // Unused
11237 // optional bool deprecated = 1 [default = false]; 11040 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumOptio ns)
11041 // optional bool allow_alias = 2;
11042 if (has_allow_alias()) {
11043 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, t his->allow_alias(), target);
11044 }
11045
11046 // optional bool deprecated = 3 [default = false];
11238 if (has_deprecated()) { 11047 if (has_deprecated()) {
11239 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, t his->deprecated(), target); 11048 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, t his->deprecated(), target);
11240 } 11049 }
11241 11050
11242 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 11051 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11243 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { 11052 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
11244 target = ::google::protobuf::internal::WireFormatLite:: 11053 target = ::google::protobuf::internal::WireFormatLite::
11245 WriteMessageNoVirtualToArray( 11054 InternalWriteMessageNoVirtualToArray(
11246 999, this->uninterpreted_option(i), target); 11055 999, this->uninterpreted_option(i), false, target);
11247 } 11056 }
11248 11057
11249 // Extension range [1000, 536870912) 11058 // Extension range [1000, 536870912)
11250 target = _extensions_.SerializeWithCachedSizesToArray( 11059 target = _extensions_.InternalSerializeWithCachedSizesToArray(
11251 1000, 536870912, target); 11060 1000, 536870912, false, target);
11252 11061
11253 if (_internal_metadata_.have_unknown_fields()) { 11062 if (_internal_metadata_.have_unknown_fields()) {
11254 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 11063 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
11255 unknown_fields(), target); 11064 unknown_fields(), target);
11256 } 11065 }
11257 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumValueOp tions) 11066 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumOptions )
11258 return target; 11067 return target;
11259 } 11068 }
11260 11069
11261 int EnumValueOptions::ByteSize() const { 11070 size_t EnumOptions::ByteSizeLong() const {
11262 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumValueOpt ions) 11071 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumOptions)
11263 int total_size = 0; 11072 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 11073
11278 total_size += _extensions_.ByteSize(); 11074 total_size += _extensions_.ByteSize();
11279 11075
11280 if (_internal_metadata_.have_unknown_fields()) { 11076 if (_internal_metadata_.have_unknown_fields()) {
11281 total_size += 11077 total_size +=
11282 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( 11078 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
11283 unknown_fields()); 11079 unknown_fields());
11284 } 11080 }
11081 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11082 {
11083 unsigned int count = this->uninterpreted_option_size();
11084 total_size += 2UL * count;
11085 for (unsigned int i = 0; i < count; i++) {
11086 total_size +=
11087 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
11088 this->uninterpreted_option(i));
11089 }
11090 }
11091
11092 if (_has_bits_[0 / 32] & 3u) {
11093 // optional bool allow_alias = 2;
11094 if (has_allow_alias()) {
11095 total_size += 1 + 1;
11096 }
11097
11098 // optional bool deprecated = 3 [default = false];
11099 if (has_deprecated()) {
11100 total_size += 1 + 1;
11101 }
11102
11103 }
11104 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
11285 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 11105 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11286 _cached_size_ = total_size; 11106 _cached_size_ = cached_size;
11287 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 11107 GOOGLE_SAFE_CONCURRENT_WRITES_END();
11288 return total_size; 11108 return total_size;
11289 } 11109 }
11290 11110
11291 void EnumValueOptions::MergeFrom(const ::google::protobuf::Message& from) { 11111 void EnumOptions::MergeFrom(const ::google::protobuf::Message& from) {
11292 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumVal ueOptions) 11112 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumOpt ions)
11293 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 11113 GOOGLE_DCHECK_NE(&from, this);
11294 const EnumValueOptions* source = 11114 const EnumOptions* source =
11295 ::google::protobuf::internal::DynamicCastToGenerated<const EnumValueOption s>( 11115 ::google::protobuf::internal::DynamicCastToGenerated<const EnumOptions>(
11296 &from); 11116 &from);
11297 if (source == NULL) { 11117 if (source == NULL) {
11298 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.E numValueOptions) 11118 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.E numOptions)
11299 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 11119 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
11300 } else { 11120 } else {
11301 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.EnumValueOptions) 11121 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.EnumOptions)
11302 MergeFrom(*source); 11122 MergeFrom(*source);
11303 } 11123 }
11304 } 11124 }
11305 11125
11306 void EnumValueOptions::MergeFrom(const EnumValueOptions& from) { 11126 void EnumOptions::MergeFrom(const EnumOptions& from) {
11307 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Enum ValueOptions) 11127 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Enum Options)
11308 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 11128 GOOGLE_DCHECK_NE(&from, this);
11129 _extensions_.MergeFrom(from._extensions_);
11130 _internal_metadata_.MergeFrom(from._internal_metadata_);
11309 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); 11131 uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
11310 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { 11132 if (from._has_bits_[0 / 32] & 3u) {
11133 if (from.has_allow_alias()) {
11134 set_allow_alias(from.allow_alias());
11135 }
11311 if (from.has_deprecated()) { 11136 if (from.has_deprecated()) {
11312 set_deprecated(from.deprecated()); 11137 set_deprecated(from.deprecated());
11313 } 11138 }
11314 } 11139 }
11315 _extensions_.MergeFrom(from._extensions_);
11316 if (from._internal_metadata_.have_unknown_fields()) {
11317 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
11318 }
11319 } 11140 }
11320 11141
11321 void EnumValueOptions::CopyFrom(const ::google::protobuf::Message& from) { 11142 void EnumOptions::CopyFrom(const ::google::protobuf::Message& from) {
11322 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumValu eOptions) 11143 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumOpti ons)
11323 if (&from == this) return; 11144 if (&from == this) return;
11324 Clear(); 11145 Clear();
11325 MergeFrom(from); 11146 MergeFrom(from);
11326 } 11147 }
11327 11148
11328 void EnumValueOptions::CopyFrom(const EnumValueOptions& from) { 11149 void EnumOptions::CopyFrom(const EnumOptions& from) {
11329 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumV alueOptions) 11150 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumO ptions)
11330 if (&from == this) return; 11151 if (&from == this) return;
11331 Clear(); 11152 Clear();
11332 MergeFrom(from); 11153 MergeFrom(from);
11333 } 11154 }
11334 11155
11335 bool EnumValueOptions::IsInitialized() const { 11156 bool EnumOptions::IsInitialized() const {
11157 if (!_extensions_.IsInitialized()) {
11158 return false;
11159 }
11336 11160
11337 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio n())) return false; 11161 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio n())) return false;
11338 11162 return true;
11339 if (!_extensions_.IsInitialized()) return false; return true;
11340 } 11163 }
11341 11164
11342 void EnumValueOptions::Swap(EnumValueOptions* other) { 11165 void EnumOptions::Swap(EnumOptions* other) {
11343 if (other == this) return; 11166 if (other == this) return;
11344 InternalSwap(other); 11167 InternalSwap(other);
11345 } 11168 }
11346 void EnumValueOptions::InternalSwap(EnumValueOptions* other) { 11169 void EnumOptions::InternalSwap(EnumOptions* other) {
11170 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
11171 std::swap(allow_alias_, other->allow_alias_);
11347 std::swap(deprecated_, other->deprecated_); 11172 std::swap(deprecated_, other->deprecated_);
11348 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
11349 std::swap(_has_bits_[0], other->_has_bits_[0]); 11173 std::swap(_has_bits_[0], other->_has_bits_[0]);
11350 _internal_metadata_.Swap(&other->_internal_metadata_); 11174 _internal_metadata_.Swap(&other->_internal_metadata_);
11351 std::swap(_cached_size_, other->_cached_size_); 11175 std::swap(_cached_size_, other->_cached_size_);
11352 _extensions_.Swap(&other->_extensions_); 11176 _extensions_.Swap(&other->_extensions_);
11353 } 11177 }
11354 11178
11355 ::google::protobuf::Metadata EnumValueOptions::GetMetadata() const { 11179 ::google::protobuf::Metadata EnumOptions::GetMetadata() const {
11356 protobuf_AssignDescriptorsOnce(); 11180 protobuf_AssignDescriptorsOnce();
11357 ::google::protobuf::Metadata metadata; 11181 return file_level_metadata[15];
11358 metadata.descriptor = EnumValueOptions_descriptor_;
11359 metadata.reflection = EnumValueOptions_reflection_;
11360 return metadata;
11361 } 11182 }
11362 11183
11363 #if PROTOBUF_INLINE_NOT_IN_HEADERS 11184 #if PROTOBUF_INLINE_NOT_IN_HEADERS
11364 // EnumValueOptions 11185 // EnumOptions
11365 11186
11366 // optional bool deprecated = 1 [default = false]; 11187 // optional bool allow_alias = 2;
11367 bool EnumValueOptions::has_deprecated() const { 11188 bool EnumOptions::has_allow_alias() const {
11368 return (_has_bits_[0] & 0x00000001u) != 0; 11189 return (_has_bits_[0] & 0x00000001u) != 0;
11369 } 11190 }
11370 void EnumValueOptions::set_has_deprecated() { 11191 void EnumOptions::set_has_allow_alias() {
11371 _has_bits_[0] |= 0x00000001u; 11192 _has_bits_[0] |= 0x00000001u;
11372 } 11193 }
11373 void EnumValueOptions::clear_has_deprecated() { 11194 void EnumOptions::clear_has_allow_alias() {
11374 _has_bits_[0] &= ~0x00000001u; 11195 _has_bits_[0] &= ~0x00000001u;
11375 } 11196 }
11376 void EnumValueOptions::clear_deprecated() { 11197 void EnumOptions::clear_allow_alias() {
11198 allow_alias_ = false;
11199 clear_has_allow_alias();
11200 }
11201 bool EnumOptions::allow_alias() const {
11202 // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.allow_alias)
11203 return allow_alias_;
11204 }
11205 void EnumOptions::set_allow_alias(bool value) {
11206 set_has_allow_alias();
11207 allow_alias_ = value;
11208 // @@protoc_insertion_point(field_set:google.protobuf.EnumOptions.allow_alias)
11209 }
11210
11211 // optional bool deprecated = 3 [default = false];
11212 bool EnumOptions::has_deprecated() const {
11213 return (_has_bits_[0] & 0x00000002u) != 0;
11214 }
11215 void EnumOptions::set_has_deprecated() {
11216 _has_bits_[0] |= 0x00000002u;
11217 }
11218 void EnumOptions::clear_has_deprecated() {
11219 _has_bits_[0] &= ~0x00000002u;
11220 }
11221 void EnumOptions::clear_deprecated() {
11377 deprecated_ = false; 11222 deprecated_ = false;
11378 clear_has_deprecated(); 11223 clear_has_deprecated();
11379 } 11224 }
11380 bool EnumValueOptions::deprecated() const { 11225 bool EnumOptions::deprecated() const {
11381 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.depreca ted) 11226 // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.deprecated)
11382 return deprecated_; 11227 return deprecated_;
11383 } 11228 }
11384 void EnumValueOptions::set_deprecated(bool value) { 11229 void EnumOptions::set_deprecated(bool value) {
11385 set_has_deprecated(); 11230 set_has_deprecated();
11386 deprecated_ = value; 11231 deprecated_ = value;
11387 // @@protoc_insertion_point(field_set:google.protobuf.EnumValueOptions.depreca ted) 11232 // @@protoc_insertion_point(field_set:google.protobuf.EnumOptions.deprecated)
11388 } 11233 }
11389 11234
11390 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 11235 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11391 int EnumValueOptions::uninterpreted_option_size() const { 11236 int EnumOptions::uninterpreted_option_size() const {
11392 return uninterpreted_option_.size(); 11237 return uninterpreted_option_.size();
11393 } 11238 }
11394 void EnumValueOptions::clear_uninterpreted_option() { 11239 void EnumOptions::clear_uninterpreted_option() {
11395 uninterpreted_option_.Clear(); 11240 uninterpreted_option_.Clear();
11396 } 11241 }
11397 const ::google::protobuf::UninterpretedOption& EnumValueOptions::uninterpreted_o ption(int index) const { 11242 const ::google::protobuf::UninterpretedOption& EnumOptions::uninterpreted_option (int index) const {
11398 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.uninter preted_option) 11243 // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.uninterprete d_option)
11399 return uninterpreted_option_.Get(index); 11244 return uninterpreted_option_.Get(index);
11400 } 11245 }
11401 ::google::protobuf::UninterpretedOption* EnumValueOptions::mutable_uninterpreted _option(int index) { 11246 ::google::protobuf::UninterpretedOption* EnumOptions::mutable_uninterpreted_opti on(int index) {
11402 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueOptions.uni nterpreted_option) 11247 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumOptions.uninterp reted_option)
11403 return uninterpreted_option_.Mutable(index); 11248 return uninterpreted_option_.Mutable(index);
11404 } 11249 }
11405 ::google::protobuf::UninterpretedOption* EnumValueOptions::add_uninterpreted_opt ion() { 11250 ::google::protobuf::UninterpretedOption* EnumOptions::add_uninterpreted_option() {
11406 // @@protoc_insertion_point(field_add:google.protobuf.EnumValueOptions.uninter preted_option) 11251 // @@protoc_insertion_point(field_add:google.protobuf.EnumOptions.uninterprete d_option)
11407 return uninterpreted_option_.Add(); 11252 return uninterpreted_option_.Add();
11408 } 11253 }
11409 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* 11254 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
11410 EnumValueOptions::mutable_uninterpreted_option() { 11255 EnumOptions::mutable_uninterpreted_option() {
11411 // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumValueOption s.uninterpreted_option) 11256 // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumOptions.uni nterpreted_option)
11412 return &uninterpreted_option_; 11257 return &uninterpreted_option_;
11413 } 11258 }
11414 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt ion >& 11259 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt ion >&
11415 EnumValueOptions::uninterpreted_option() const { 11260 EnumOptions::uninterpreted_option() const {
11416 // @@protoc_insertion_point(field_list:google.protobuf.EnumValueOptions.uninte rpreted_option) 11261 // @@protoc_insertion_point(field_list:google.protobuf.EnumOptions.uninterpret ed_option)
11417 return uninterpreted_option_; 11262 return uninterpreted_option_;
11418 } 11263 }
11419 11264
11420 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 11265 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
11421 11266
11422 // =================================================================== 11267 // ===================================================================
11423 11268
11424 #if !defined(_MSC_VER) || _MSC_VER >= 1900 11269 #if !defined(_MSC_VER) || _MSC_VER >= 1900
11425 const int ServiceOptions::kDeprecatedFieldNumber; 11270 const int EnumValueOptions::kDeprecatedFieldNumber;
11426 const int ServiceOptions::kUninterpretedOptionFieldNumber; 11271 const int EnumValueOptions::kUninterpretedOptionFieldNumber;
11427 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 11272 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
11428 11273
11429 ServiceOptions::ServiceOptions() 11274 EnumValueOptions::EnumValueOptions()
11430 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 11275 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
11276 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
11277 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
11278 }
11431 SharedCtor(); 11279 SharedCtor();
11432 // @@protoc_insertion_point(constructor:google.protobuf.ServiceOptions) 11280 // @@protoc_insertion_point(constructor:google.protobuf.EnumValueOptions)
11281 }
11282 EnumValueOptions::EnumValueOptions(const EnumValueOptions& from)
11283 : ::google::protobuf::Message(),
11284 _internal_metadata_(NULL),
11285 _has_bits_(from._has_bits_),
11286 _cached_size_(0),
11287 uninterpreted_option_(from.uninterpreted_option_) {
11288 _internal_metadata_.MergeFrom(from._internal_metadata_);
11289 _extensions_.MergeFrom(from._extensions_);
11290 deprecated_ = from.deprecated_;
11291 // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValueOptions)
11433 } 11292 }
11434 11293
11435 void ServiceOptions::InitAsDefaultInstance() { 11294 void EnumValueOptions::SharedCtor() {
11295 _cached_size_ = 0;
11296 deprecated_ = false;
11436 } 11297 }
11437 11298
11438 ServiceOptions::ServiceOptions(const ServiceOptions& from) 11299 EnumValueOptions::~EnumValueOptions() {
11439 : ::google::protobuf::Message(), 11300 // @@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(); 11301 SharedDtor();
11455 } 11302 }
11456 11303
11457 void ServiceOptions::SharedDtor() { 11304 void EnumValueOptions::SharedDtor() {
11458 if (this != default_instance_) {
11459 }
11460 } 11305 }
11461 11306
11462 void ServiceOptions::SetCachedSize(int size) const { 11307 void EnumValueOptions::SetCachedSize(int size) const {
11463 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 11308 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11464 _cached_size_ = size; 11309 _cached_size_ = size;
11465 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 11310 GOOGLE_SAFE_CONCURRENT_WRITES_END();
11466 } 11311 }
11467 const ::google::protobuf::Descriptor* ServiceOptions::descriptor() { 11312 const ::google::protobuf::Descriptor* EnumValueOptions::descriptor() {
11468 protobuf_AssignDescriptorsOnce(); 11313 protobuf_AssignDescriptorsOnce();
11469 return ServiceOptions_descriptor_; 11314 return file_level_metadata[16].descriptor;
11470 } 11315 }
11471 11316
11472 const ServiceOptions& ServiceOptions::default_instance() { 11317 const EnumValueOptions& EnumValueOptions::default_instance() {
11473 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 11318 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
11474 return *default_instance_; 11319 return *internal_default_instance();
11475 } 11320 }
11476 11321
11477 ServiceOptions* ServiceOptions::default_instance_ = NULL; 11322 EnumValueOptions* EnumValueOptions::New(::google::protobuf::Arena* arena) const {
11478 11323 EnumValueOptions* n = new EnumValueOptions;
11479 ServiceOptions* ServiceOptions::New(::google::protobuf::Arena* arena) const {
11480 ServiceOptions* n = new ServiceOptions;
11481 if (arena != NULL) { 11324 if (arena != NULL) {
11482 arena->Own(n); 11325 arena->Own(n);
11483 } 11326 }
11484 return n; 11327 return n;
11485 } 11328 }
11486 11329
11487 void ServiceOptions::Clear() { 11330 void EnumValueOptions::Clear() {
11488 // @@protoc_insertion_point(message_clear_start:google.protobuf.ServiceOptions) 11331 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumValueOptions )
11489 _extensions_.Clear(); 11332 _extensions_.Clear();
11333 uninterpreted_option_.Clear();
11490 deprecated_ = false; 11334 deprecated_ = false;
11491 uninterpreted_option_.Clear(); 11335 _has_bits_.Clear();
11492 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 11336 _internal_metadata_.Clear();
11493 if (_internal_metadata_.have_unknown_fields()) {
11494 mutable_unknown_fields()->Clear();
11495 }
11496 } 11337 }
11497 11338
11498 bool ServiceOptions::MergePartialFromCodedStream( 11339 bool EnumValueOptions::MergePartialFromCodedStream(
11499 ::google::protobuf::io::CodedInputStream* input) { 11340 ::google::protobuf::io::CodedInputStream* input) {
11500 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 11341 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
11501 ::google::protobuf::uint32 tag; 11342 ::google::protobuf::uint32 tag;
11502 // @@protoc_insertion_point(parse_start:google.protobuf.ServiceOptions) 11343 // @@protoc_insertion_point(parse_start:google.protobuf.EnumValueOptions)
11503 for (;;) { 11344 for (;;) {
11504 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 16383); 11345 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(16383u);
11505 tag = p.first; 11346 tag = p.first;
11506 if (!p.second) goto handle_unusual; 11347 if (!p.second) goto handle_unusual;
11507 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 11348 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
11508 // optional bool deprecated = 33 [default = false]; 11349 // optional bool deprecated = 1 [default = false];
11509 case 33: { 11350 case 1: {
11510 if (tag == 264) { 11351 if (tag == 8u) {
11352 set_has_deprecated();
11511 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 11353 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
11512 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 11354 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
11513 input, &deprecated_))); 11355 input, &deprecated_)));
11514 set_has_deprecated();
11515 } else { 11356 } else {
11516 goto handle_unusual; 11357 goto handle_unusual;
11517 } 11358 }
11518 if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
11519 break; 11359 break;
11520 } 11360 }
11521 11361
11522 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99 9; 11362 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99 9;
11523 case 999: { 11363 case 999: {
11524 if (tag == 7994) { 11364 if (tag == 7994u) {
11525 parse_uninterpreted_option:
11526 DO_(input->IncrementRecursionDepth()); 11365 DO_(input->IncrementRecursionDepth());
11527 parse_loop_uninterpreted_option:
11528 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 11366 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
11529 input, add_uninterpreted_option())); 11367 input, add_uninterpreted_option()));
11530 } else { 11368 } else {
11531 goto handle_unusual; 11369 goto handle_unusual;
11532 } 11370 }
11533 if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option;
11534 input->UnsafeDecrementRecursionDepth(); 11371 input->UnsafeDecrementRecursionDepth();
11535 if (input->ExpectAtEnd()) goto success;
11536 break; 11372 break;
11537 } 11373 }
11538 11374
11539 default: { 11375 default: {
11540 handle_unusual: 11376 handle_unusual:
11541 if (tag == 0 || 11377 if (tag == 0 ||
11542 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 11378 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
11543 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 11379 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
11544 goto success; 11380 goto success;
11545 } 11381 }
11546 if ((8000u <= tag)) { 11382 if ((8000u <= tag)) {
11547 DO_(_extensions_.ParseField(tag, input, default_instance_, 11383 DO_(_extensions_.ParseField(tag, input, internal_default_instance(),
11548 mutable_unknown_fields())); 11384 mutable_unknown_fields()));
11549 continue; 11385 continue;
11550 } 11386 }
11551 DO_(::google::protobuf::internal::WireFormat::SkipField( 11387 DO_(::google::protobuf::internal::WireFormat::SkipField(
11552 input, tag, mutable_unknown_fields())); 11388 input, tag, mutable_unknown_fields()));
11553 break; 11389 break;
11554 } 11390 }
11555 } 11391 }
11556 } 11392 }
11557 success: 11393 success:
11558 // @@protoc_insertion_point(parse_success:google.protobuf.ServiceOptions) 11394 // @@protoc_insertion_point(parse_success:google.protobuf.EnumValueOptions)
11559 return true; 11395 return true;
11560 failure: 11396 failure:
11561 // @@protoc_insertion_point(parse_failure:google.protobuf.ServiceOptions) 11397 // @@protoc_insertion_point(parse_failure:google.protobuf.EnumValueOptions)
11562 return false; 11398 return false;
11563 #undef DO_ 11399 #undef DO_
11564 } 11400 }
11565 11401
11566 void ServiceOptions::SerializeWithCachedSizes( 11402 void EnumValueOptions::SerializeWithCachedSizes(
11567 ::google::protobuf::io::CodedOutputStream* output) const { 11403 ::google::protobuf::io::CodedOutputStream* output) const {
11568 // @@protoc_insertion_point(serialize_start:google.protobuf.ServiceOptions) 11404 // @@protoc_insertion_point(serialize_start:google.protobuf.EnumValueOptions)
11569 // optional bool deprecated = 33 [default = false]; 11405 // optional bool deprecated = 1 [default = false];
11570 if (has_deprecated()) { 11406 if (has_deprecated()) {
11571 ::google::protobuf::internal::WireFormatLite::WriteBool(33, this->deprecated (), output); 11407 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->deprecated( ), output);
11572 } 11408 }
11573 11409
11574 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 11410 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11575 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { 11411 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
11576 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 11412 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
11577 999, this->uninterpreted_option(i), output); 11413 999, this->uninterpreted_option(i), output);
11578 } 11414 }
11579 11415
11580 // Extension range [1000, 536870912) 11416 // Extension range [1000, 536870912)
11581 _extensions_.SerializeWithCachedSizes( 11417 _extensions_.SerializeWithCachedSizes(
11582 1000, 536870912, output); 11418 1000, 536870912, output);
11583 11419
11584 if (_internal_metadata_.have_unknown_fields()) { 11420 if (_internal_metadata_.have_unknown_fields()) {
11585 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 11421 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
11586 unknown_fields(), output); 11422 unknown_fields(), output);
11587 } 11423 }
11588 // @@protoc_insertion_point(serialize_end:google.protobuf.ServiceOptions) 11424 // @@protoc_insertion_point(serialize_end:google.protobuf.EnumValueOptions)
11589 } 11425 }
11590 11426
11591 ::google::protobuf::uint8* ServiceOptions::SerializeWithCachedSizesToArray( 11427 ::google::protobuf::uint8* EnumValueOptions::InternalSerializeWithCachedSizesToA rray(
11592 ::google::protobuf::uint8* target) const { 11428 bool deterministic, ::google::protobuf::uint8* target) const {
11593 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ServiceOp tions) 11429 (void)deterministic; // Unused
11594 // optional bool deprecated = 33 [default = false]; 11430 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValue Options)
11431 // optional bool deprecated = 1 [default = false];
11595 if (has_deprecated()) { 11432 if (has_deprecated()) {
11596 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(33, this->deprecated(), target); 11433 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, t his->deprecated(), target);
11597 } 11434 }
11598 11435
11599 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 11436 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11600 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { 11437 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
11601 target = ::google::protobuf::internal::WireFormatLite:: 11438 target = ::google::protobuf::internal::WireFormatLite::
11602 WriteMessageNoVirtualToArray( 11439 InternalWriteMessageNoVirtualToArray(
11603 999, this->uninterpreted_option(i), target); 11440 999, this->uninterpreted_option(i), false, target);
11604 } 11441 }
11605 11442
11606 // Extension range [1000, 536870912) 11443 // Extension range [1000, 536870912)
11607 target = _extensions_.SerializeWithCachedSizesToArray( 11444 target = _extensions_.InternalSerializeWithCachedSizesToArray(
11608 1000, 536870912, target); 11445 1000, 536870912, false, target);
11609 11446
11610 if (_internal_metadata_.have_unknown_fields()) { 11447 if (_internal_metadata_.have_unknown_fields()) {
11611 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 11448 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
11612 unknown_fields(), target); 11449 unknown_fields(), target);
11613 } 11450 }
11614 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ServiceOpti ons) 11451 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumValueOp tions)
11615 return target; 11452 return target;
11616 } 11453 }
11617 11454
11618 int ServiceOptions::ByteSize() const { 11455 size_t EnumValueOptions::ByteSizeLong() const {
11619 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.ServiceOptio ns) 11456 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumValueOpt ions)
11620 int total_size = 0; 11457 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 11458
11635 total_size += _extensions_.ByteSize(); 11459 total_size += _extensions_.ByteSize();
11636 11460
11637 if (_internal_metadata_.have_unknown_fields()) { 11461 if (_internal_metadata_.have_unknown_fields()) {
11638 total_size += 11462 total_size +=
11639 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( 11463 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
11640 unknown_fields()); 11464 unknown_fields());
11641 } 11465 }
11466 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11467 {
11468 unsigned int count = this->uninterpreted_option_size();
11469 total_size += 2UL * count;
11470 for (unsigned int i = 0; i < count; i++) {
11471 total_size +=
11472 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
11473 this->uninterpreted_option(i));
11474 }
11475 }
11476
11477 // optional bool deprecated = 1 [default = false];
11478 if (has_deprecated()) {
11479 total_size += 1 + 1;
11480 }
11481
11482 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
11642 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 11483 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11643 _cached_size_ = total_size; 11484 _cached_size_ = cached_size;
11644 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 11485 GOOGLE_SAFE_CONCURRENT_WRITES_END();
11645 return total_size; 11486 return total_size;
11646 } 11487 }
11647 11488
11648 void ServiceOptions::MergeFrom(const ::google::protobuf::Message& from) { 11489 void EnumValueOptions::MergeFrom(const ::google::protobuf::Message& from) {
11649 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Service Options) 11490 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumVal ueOptions)
11650 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 11491 GOOGLE_DCHECK_NE(&from, this);
11651 const ServiceOptions* source = 11492 const EnumValueOptions* source =
11652 ::google::protobuf::internal::DynamicCastToGenerated<const ServiceOptions> ( 11493 ::google::protobuf::internal::DynamicCastToGenerated<const EnumValueOption s>(
11653 &from); 11494 &from);
11654 if (source == NULL) { 11495 if (source == NULL) {
11655 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.S erviceOptions) 11496 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.E numValueOptions)
11656 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 11497 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
11657 } else { 11498 } else {
11658 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.ServiceOptions) 11499 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.EnumValueOptions)
11659 MergeFrom(*source); 11500 MergeFrom(*source);
11660 } 11501 }
11661 } 11502 }
11662 11503
11663 void ServiceOptions::MergeFrom(const ServiceOptions& from) { 11504 void EnumValueOptions::MergeFrom(const EnumValueOptions& from) {
11664 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Serv iceOptions) 11505 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Enum ValueOptions)
11665 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 11506 GOOGLE_DCHECK_NE(&from, this);
11507 _extensions_.MergeFrom(from._extensions_);
11508 _internal_metadata_.MergeFrom(from._internal_metadata_);
11666 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); 11509 uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
11667 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { 11510 if (from.has_deprecated()) {
11668 if (from.has_deprecated()) { 11511 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 } 11512 }
11676 } 11513 }
11677 11514
11678 void ServiceOptions::CopyFrom(const ::google::protobuf::Message& from) { 11515 void EnumValueOptions::CopyFrom(const ::google::protobuf::Message& from) {
11679 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.ServiceO ptions) 11516 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumValu eOptions)
11680 if (&from == this) return; 11517 if (&from == this) return;
11681 Clear(); 11518 Clear();
11682 MergeFrom(from); 11519 MergeFrom(from);
11683 } 11520 }
11684 11521
11685 void ServiceOptions::CopyFrom(const ServiceOptions& from) { 11522 void EnumValueOptions::CopyFrom(const EnumValueOptions& from) {
11686 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Servi ceOptions) 11523 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumV alueOptions)
11687 if (&from == this) return; 11524 if (&from == this) return;
11688 Clear(); 11525 Clear();
11689 MergeFrom(from); 11526 MergeFrom(from);
11690 } 11527 }
11691 11528
11692 bool ServiceOptions::IsInitialized() const { 11529 bool EnumValueOptions::IsInitialized() const {
11530 if (!_extensions_.IsInitialized()) {
11531 return false;
11532 }
11693 11533
11694 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio n())) return false; 11534 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio n())) return false;
11695 11535 return true;
11696 if (!_extensions_.IsInitialized()) return false; return true;
11697 } 11536 }
11698 11537
11699 void ServiceOptions::Swap(ServiceOptions* other) { 11538 void EnumValueOptions::Swap(EnumValueOptions* other) {
11700 if (other == this) return; 11539 if (other == this) return;
11701 InternalSwap(other); 11540 InternalSwap(other);
11702 } 11541 }
11703 void ServiceOptions::InternalSwap(ServiceOptions* other) { 11542 void EnumValueOptions::InternalSwap(EnumValueOptions* other) {
11543 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
11704 std::swap(deprecated_, other->deprecated_); 11544 std::swap(deprecated_, other->deprecated_);
11705 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
11706 std::swap(_has_bits_[0], other->_has_bits_[0]); 11545 std::swap(_has_bits_[0], other->_has_bits_[0]);
11707 _internal_metadata_.Swap(&other->_internal_metadata_); 11546 _internal_metadata_.Swap(&other->_internal_metadata_);
11708 std::swap(_cached_size_, other->_cached_size_); 11547 std::swap(_cached_size_, other->_cached_size_);
11709 _extensions_.Swap(&other->_extensions_); 11548 _extensions_.Swap(&other->_extensions_);
11710 } 11549 }
11711 11550
11712 ::google::protobuf::Metadata ServiceOptions::GetMetadata() const { 11551 ::google::protobuf::Metadata EnumValueOptions::GetMetadata() const {
11713 protobuf_AssignDescriptorsOnce(); 11552 protobuf_AssignDescriptorsOnce();
11714 ::google::protobuf::Metadata metadata; 11553 return file_level_metadata[16];
11715 metadata.descriptor = ServiceOptions_descriptor_;
11716 metadata.reflection = ServiceOptions_reflection_;
11717 return metadata;
11718 } 11554 }
11719 11555
11720 #if PROTOBUF_INLINE_NOT_IN_HEADERS 11556 #if PROTOBUF_INLINE_NOT_IN_HEADERS
11721 // ServiceOptions 11557 // EnumValueOptions
11722 11558
11723 // optional bool deprecated = 33 [default = false]; 11559 // optional bool deprecated = 1 [default = false];
11724 bool ServiceOptions::has_deprecated() const { 11560 bool EnumValueOptions::has_deprecated() const {
11725 return (_has_bits_[0] & 0x00000001u) != 0; 11561 return (_has_bits_[0] & 0x00000001u) != 0;
11726 } 11562 }
11727 void ServiceOptions::set_has_deprecated() { 11563 void EnumValueOptions::set_has_deprecated() {
11728 _has_bits_[0] |= 0x00000001u; 11564 _has_bits_[0] |= 0x00000001u;
11729 } 11565 }
11730 void ServiceOptions::clear_has_deprecated() { 11566 void EnumValueOptions::clear_has_deprecated() {
11731 _has_bits_[0] &= ~0x00000001u; 11567 _has_bits_[0] &= ~0x00000001u;
11732 } 11568 }
11733 void ServiceOptions::clear_deprecated() { 11569 void EnumValueOptions::clear_deprecated() {
11734 deprecated_ = false; 11570 deprecated_ = false;
11735 clear_has_deprecated(); 11571 clear_has_deprecated();
11736 } 11572 }
11737 bool ServiceOptions::deprecated() const { 11573 bool EnumValueOptions::deprecated() const {
11738 // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.deprecate d) 11574 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.depreca ted)
11739 return deprecated_; 11575 return deprecated_;
11740 } 11576 }
11741 void ServiceOptions::set_deprecated(bool value) { 11577 void EnumValueOptions::set_deprecated(bool value) {
11742 set_has_deprecated(); 11578 set_has_deprecated();
11743 deprecated_ = value; 11579 deprecated_ = value;
11744 // @@protoc_insertion_point(field_set:google.protobuf.ServiceOptions.deprecate d) 11580 // @@protoc_insertion_point(field_set:google.protobuf.EnumValueOptions.depreca ted)
11745 } 11581 }
11746 11582
11747 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 11583 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11748 int ServiceOptions::uninterpreted_option_size() const { 11584 int EnumValueOptions::uninterpreted_option_size() const {
11749 return uninterpreted_option_.size(); 11585 return uninterpreted_option_.size();
11750 } 11586 }
11751 void ServiceOptions::clear_uninterpreted_option() { 11587 void EnumValueOptions::clear_uninterpreted_option() {
11752 uninterpreted_option_.Clear(); 11588 uninterpreted_option_.Clear();
11753 } 11589 }
11754 const ::google::protobuf::UninterpretedOption& ServiceOptions::uninterpreted_opt ion(int index) const { 11590 const ::google::protobuf::UninterpretedOption& EnumValueOptions::uninterpreted_o ption(int index) const {
11755 // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.uninterpr eted_option) 11591 // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.uninter preted_option)
11756 return uninterpreted_option_.Get(index); 11592 return uninterpreted_option_.Get(index);
11757 } 11593 }
11758 ::google::protobuf::UninterpretedOption* ServiceOptions::mutable_uninterpreted_o ption(int index) { 11594 ::google::protobuf::UninterpretedOption* EnumValueOptions::mutable_uninterpreted _option(int index) {
11759 // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceOptions.unint erpreted_option) 11595 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueOptions.uni nterpreted_option)
11760 return uninterpreted_option_.Mutable(index); 11596 return uninterpreted_option_.Mutable(index);
11761 } 11597 }
11762 ::google::protobuf::UninterpretedOption* ServiceOptions::add_uninterpreted_optio n() { 11598 ::google::protobuf::UninterpretedOption* EnumValueOptions::add_uninterpreted_opt ion() {
11763 // @@protoc_insertion_point(field_add:google.protobuf.ServiceOptions.uninterpr eted_option) 11599 // @@protoc_insertion_point(field_add:google.protobuf.EnumValueOptions.uninter preted_option)
11764 return uninterpreted_option_.Add(); 11600 return uninterpreted_option_.Add();
11765 } 11601 }
11766 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* 11602 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
11767 ServiceOptions::mutable_uninterpreted_option() { 11603 EnumValueOptions::mutable_uninterpreted_option() {
11768 // @@protoc_insertion_point(field_mutable_list:google.protobuf.ServiceOptions. uninterpreted_option) 11604 // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumValueOption s.uninterpreted_option)
11769 return &uninterpreted_option_; 11605 return &uninterpreted_option_;
11770 } 11606 }
11771 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt ion >& 11607 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt ion >&
11772 ServiceOptions::uninterpreted_option() const { 11608 EnumValueOptions::uninterpreted_option() const {
11773 // @@protoc_insertion_point(field_list:google.protobuf.ServiceOptions.uninterp reted_option) 11609 // @@protoc_insertion_point(field_list:google.protobuf.EnumValueOptions.uninte rpreted_option)
11774 return uninterpreted_option_; 11610 return uninterpreted_option_;
11775 } 11611 }
11776 11612
11777 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 11613 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
11778 11614
11779 // =================================================================== 11615 // ===================================================================
11780 11616
11781 #if !defined(_MSC_VER) || _MSC_VER >= 1900 11617 #if !defined(_MSC_VER) || _MSC_VER >= 1900
11782 const int MethodOptions::kDeprecatedFieldNumber; 11618 const int ServiceOptions::kDeprecatedFieldNumber;
11783 const int MethodOptions::kUninterpretedOptionFieldNumber; 11619 const int ServiceOptions::kUninterpretedOptionFieldNumber;
11784 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 11620 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
11785 11621
11786 MethodOptions::MethodOptions() 11622 ServiceOptions::ServiceOptions()
11787 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 11623 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
11624 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
11625 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
11626 }
11788 SharedCtor(); 11627 SharedCtor();
11789 // @@protoc_insertion_point(constructor:google.protobuf.MethodOptions) 11628 // @@protoc_insertion_point(constructor:google.protobuf.ServiceOptions)
11629 }
11630 ServiceOptions::ServiceOptions(const ServiceOptions& from)
11631 : ::google::protobuf::Message(),
11632 _internal_metadata_(NULL),
11633 _has_bits_(from._has_bits_),
11634 _cached_size_(0),
11635 uninterpreted_option_(from.uninterpreted_option_) {
11636 _internal_metadata_.MergeFrom(from._internal_metadata_);
11637 _extensions_.MergeFrom(from._extensions_);
11638 deprecated_ = from.deprecated_;
11639 // @@protoc_insertion_point(copy_constructor:google.protobuf.ServiceOptions)
11790 } 11640 }
11791 11641
11792 void MethodOptions::InitAsDefaultInstance() { 11642 void ServiceOptions::SharedCtor() {
11643 _cached_size_ = 0;
11644 deprecated_ = false;
11793 } 11645 }
11794 11646
11795 MethodOptions::MethodOptions(const MethodOptions& from) 11647 ServiceOptions::~ServiceOptions() {
11796 : ::google::protobuf::Message(), 11648 // @@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(); 11649 SharedDtor();
11812 } 11650 }
11813 11651
11814 void MethodOptions::SharedDtor() { 11652 void ServiceOptions::SharedDtor() {
11815 if (this != default_instance_) {
11816 }
11817 } 11653 }
11818 11654
11819 void MethodOptions::SetCachedSize(int size) const { 11655 void ServiceOptions::SetCachedSize(int size) const {
11820 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 11656 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11821 _cached_size_ = size; 11657 _cached_size_ = size;
11822 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 11658 GOOGLE_SAFE_CONCURRENT_WRITES_END();
11823 } 11659 }
11824 const ::google::protobuf::Descriptor* MethodOptions::descriptor() { 11660 const ::google::protobuf::Descriptor* ServiceOptions::descriptor() {
11825 protobuf_AssignDescriptorsOnce(); 11661 protobuf_AssignDescriptorsOnce();
11826 return MethodOptions_descriptor_; 11662 return file_level_metadata[17].descriptor;
11827 } 11663 }
11828 11664
11829 const MethodOptions& MethodOptions::default_instance() { 11665 const ServiceOptions& ServiceOptions::default_instance() {
11830 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 11666 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
11831 return *default_instance_; 11667 return *internal_default_instance();
11832 } 11668 }
11833 11669
11834 MethodOptions* MethodOptions::default_instance_ = NULL; 11670 ServiceOptions* ServiceOptions::New(::google::protobuf::Arena* arena) const {
11835 11671 ServiceOptions* n = new ServiceOptions;
11836 MethodOptions* MethodOptions::New(::google::protobuf::Arena* arena) const {
11837 MethodOptions* n = new MethodOptions;
11838 if (arena != NULL) { 11672 if (arena != NULL) {
11839 arena->Own(n); 11673 arena->Own(n);
11840 } 11674 }
11841 return n; 11675 return n;
11842 } 11676 }
11843 11677
11844 void MethodOptions::Clear() { 11678 void ServiceOptions::Clear() {
11845 // @@protoc_insertion_point(message_clear_start:google.protobuf.MethodOptions) 11679 // @@protoc_insertion_point(message_clear_start:google.protobuf.ServiceOptions)
11846 _extensions_.Clear(); 11680 _extensions_.Clear();
11681 uninterpreted_option_.Clear();
11847 deprecated_ = false; 11682 deprecated_ = false;
11848 uninterpreted_option_.Clear(); 11683 _has_bits_.Clear();
11849 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 11684 _internal_metadata_.Clear();
11850 if (_internal_metadata_.have_unknown_fields()) {
11851 mutable_unknown_fields()->Clear();
11852 }
11853 } 11685 }
11854 11686
11855 bool MethodOptions::MergePartialFromCodedStream( 11687 bool ServiceOptions::MergePartialFromCodedStream(
11856 ::google::protobuf::io::CodedInputStream* input) { 11688 ::google::protobuf::io::CodedInputStream* input) {
11857 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 11689 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
11858 ::google::protobuf::uint32 tag; 11690 ::google::protobuf::uint32 tag;
11859 // @@protoc_insertion_point(parse_start:google.protobuf.MethodOptions) 11691 // @@protoc_insertion_point(parse_start:google.protobuf.ServiceOptions)
11860 for (;;) { 11692 for (;;) {
11861 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 16383); 11693 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(16383u);
11862 tag = p.first; 11694 tag = p.first;
11863 if (!p.second) goto handle_unusual; 11695 if (!p.second) goto handle_unusual;
11864 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 11696 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
11865 // optional bool deprecated = 33 [default = false]; 11697 // optional bool deprecated = 33 [default = false];
11866 case 33: { 11698 case 33: {
11867 if (tag == 264) { 11699 if (tag == 264u) {
11700 set_has_deprecated();
11868 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 11701 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
11869 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 11702 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
11870 input, &deprecated_))); 11703 input, &deprecated_)));
11871 set_has_deprecated();
11872 } else { 11704 } else {
11873 goto handle_unusual; 11705 goto handle_unusual;
11874 } 11706 }
11875 if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
11876 break; 11707 break;
11877 } 11708 }
11878 11709
11879 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99 9; 11710 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99 9;
11880 case 999: { 11711 case 999: {
11881 if (tag == 7994) { 11712 if (tag == 7994u) {
11882 parse_uninterpreted_option:
11883 DO_(input->IncrementRecursionDepth()); 11713 DO_(input->IncrementRecursionDepth());
11884 parse_loop_uninterpreted_option:
11885 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 11714 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
11886 input, add_uninterpreted_option())); 11715 input, add_uninterpreted_option()));
11887 } else { 11716 } else {
11888 goto handle_unusual; 11717 goto handle_unusual;
11889 } 11718 }
11890 if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option;
11891 input->UnsafeDecrementRecursionDepth(); 11719 input->UnsafeDecrementRecursionDepth();
11892 if (input->ExpectAtEnd()) goto success;
11893 break; 11720 break;
11894 } 11721 }
11895 11722
11896 default: { 11723 default: {
11897 handle_unusual: 11724 handle_unusual:
11898 if (tag == 0 || 11725 if (tag == 0 ||
11899 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 11726 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
11900 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 11727 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
11901 goto success; 11728 goto success;
11902 } 11729 }
11903 if ((8000u <= tag)) { 11730 if ((8000u <= tag)) {
11904 DO_(_extensions_.ParseField(tag, input, default_instance_, 11731 DO_(_extensions_.ParseField(tag, input, internal_default_instance(),
11905 mutable_unknown_fields())); 11732 mutable_unknown_fields()));
11906 continue; 11733 continue;
11907 } 11734 }
11908 DO_(::google::protobuf::internal::WireFormat::SkipField( 11735 DO_(::google::protobuf::internal::WireFormat::SkipField(
11909 input, tag, mutable_unknown_fields())); 11736 input, tag, mutable_unknown_fields()));
11910 break; 11737 break;
11911 } 11738 }
11912 } 11739 }
11913 } 11740 }
11914 success: 11741 success:
11915 // @@protoc_insertion_point(parse_success:google.protobuf.MethodOptions) 11742 // @@protoc_insertion_point(parse_success:google.protobuf.ServiceOptions)
11916 return true; 11743 return true;
11917 failure: 11744 failure:
11918 // @@protoc_insertion_point(parse_failure:google.protobuf.MethodOptions) 11745 // @@protoc_insertion_point(parse_failure:google.protobuf.ServiceOptions)
11919 return false; 11746 return false;
11920 #undef DO_ 11747 #undef DO_
11921 } 11748 }
11922 11749
11923 void MethodOptions::SerializeWithCachedSizes( 11750 void ServiceOptions::SerializeWithCachedSizes(
11924 ::google::protobuf::io::CodedOutputStream* output) const { 11751 ::google::protobuf::io::CodedOutputStream* output) const {
11925 // @@protoc_insertion_point(serialize_start:google.protobuf.MethodOptions) 11752 // @@protoc_insertion_point(serialize_start:google.protobuf.ServiceOptions)
11926 // optional bool deprecated = 33 [default = false]; 11753 // optional bool deprecated = 33 [default = false];
11927 if (has_deprecated()) { 11754 if (has_deprecated()) {
11928 ::google::protobuf::internal::WireFormatLite::WriteBool(33, this->deprecated (), output); 11755 ::google::protobuf::internal::WireFormatLite::WriteBool(33, this->deprecated (), output);
11929 } 11756 }
11930 11757
11931 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 11758 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11932 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { 11759 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
11933 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 11760 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
11934 999, this->uninterpreted_option(i), output); 11761 999, this->uninterpreted_option(i), output);
11935 } 11762 }
11936 11763
11937 // Extension range [1000, 536870912) 11764 // Extension range [1000, 536870912)
11938 _extensions_.SerializeWithCachedSizes( 11765 _extensions_.SerializeWithCachedSizes(
11939 1000, 536870912, output); 11766 1000, 536870912, output);
11940 11767
11941 if (_internal_metadata_.have_unknown_fields()) { 11768 if (_internal_metadata_.have_unknown_fields()) {
11942 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 11769 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
11943 unknown_fields(), output); 11770 unknown_fields(), output);
11944 } 11771 }
11945 // @@protoc_insertion_point(serialize_end:google.protobuf.MethodOptions) 11772 // @@protoc_insertion_point(serialize_end:google.protobuf.ServiceOptions)
11946 } 11773 }
11947 11774
11948 ::google::protobuf::uint8* MethodOptions::SerializeWithCachedSizesToArray( 11775 ::google::protobuf::uint8* ServiceOptions::InternalSerializeWithCachedSizesToArr ay(
11949 ::google::protobuf::uint8* target) const { 11776 bool deterministic, ::google::protobuf::uint8* target) const {
11950 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MethodOpt ions) 11777 (void)deterministic; // Unused
11778 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ServiceOp tions)
11951 // optional bool deprecated = 33 [default = false]; 11779 // optional bool deprecated = 33 [default = false];
11952 if (has_deprecated()) { 11780 if (has_deprecated()) {
11953 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(33, this->deprecated(), target); 11781 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(33, this->deprecated(), target);
11954 } 11782 }
11955 11783
11956 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 11784 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11957 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { 11785 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
11958 target = ::google::protobuf::internal::WireFormatLite:: 11786 target = ::google::protobuf::internal::WireFormatLite::
11959 WriteMessageNoVirtualToArray( 11787 InternalWriteMessageNoVirtualToArray(
11960 999, this->uninterpreted_option(i), target); 11788 999, this->uninterpreted_option(i), false, target);
11961 } 11789 }
11962 11790
11963 // Extension range [1000, 536870912) 11791 // Extension range [1000, 536870912)
11964 target = _extensions_.SerializeWithCachedSizesToArray( 11792 target = _extensions_.InternalSerializeWithCachedSizesToArray(
11965 1000, 536870912, target); 11793 1000, 536870912, false, target);
11966 11794
11967 if (_internal_metadata_.have_unknown_fields()) { 11795 if (_internal_metadata_.have_unknown_fields()) {
11968 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 11796 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
11969 unknown_fields(), target); 11797 unknown_fields(), target);
11970 } 11798 }
11971 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MethodOptio ns) 11799 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ServiceOpti ons)
11972 return target; 11800 return target;
11973 } 11801 }
11974 11802
11975 int MethodOptions::ByteSize() const { 11803 size_t ServiceOptions::ByteSizeLong() const {
11976 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.MethodOption s) 11804 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.ServiceOptio ns)
11977 int total_size = 0; 11805 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 11806
11992 total_size += _extensions_.ByteSize(); 11807 total_size += _extensions_.ByteSize();
11993 11808
11994 if (_internal_metadata_.have_unknown_fields()) { 11809 if (_internal_metadata_.have_unknown_fields()) {
11995 total_size += 11810 total_size +=
11996 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( 11811 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
11997 unknown_fields()); 11812 unknown_fields());
11998 } 11813 }
11814 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
11815 {
11816 unsigned int count = this->uninterpreted_option_size();
11817 total_size += 2UL * count;
11818 for (unsigned int i = 0; i < count; i++) {
11819 total_size +=
11820 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
11821 this->uninterpreted_option(i));
11822 }
11823 }
11824
11825 // optional bool deprecated = 33 [default = false];
11826 if (has_deprecated()) {
11827 total_size += 2 + 1;
11828 }
11829
11830 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
11999 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 11831 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12000 _cached_size_ = total_size; 11832 _cached_size_ = cached_size;
12001 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 11833 GOOGLE_SAFE_CONCURRENT_WRITES_END();
12002 return total_size; 11834 return total_size;
12003 } 11835 }
12004 11836
12005 void MethodOptions::MergeFrom(const ::google::protobuf::Message& from) { 11837 void ServiceOptions::MergeFrom(const ::google::protobuf::Message& from) {
12006 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.MethodO ptions) 11838 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Service Options)
12007 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 11839 GOOGLE_DCHECK_NE(&from, this);
12008 const MethodOptions* source = 11840 const ServiceOptions* source =
12009 ::google::protobuf::internal::DynamicCastToGenerated<const MethodOptions>( 11841 ::google::protobuf::internal::DynamicCastToGenerated<const ServiceOptions> (
12010 &from); 11842 &from);
12011 if (source == NULL) { 11843 if (source == NULL) {
12012 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.M ethodOptions) 11844 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.S erviceOptions)
12013 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 11845 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
12014 } else { 11846 } else {
12015 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.MethodOptions) 11847 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.ServiceOptions)
12016 MergeFrom(*source); 11848 MergeFrom(*source);
12017 } 11849 }
12018 } 11850 }
12019 11851
12020 void MethodOptions::MergeFrom(const MethodOptions& from) { 11852 void ServiceOptions::MergeFrom(const ServiceOptions& from) {
12021 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Meth odOptions) 11853 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Serv iceOptions)
12022 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 11854 GOOGLE_DCHECK_NE(&from, this);
11855 _extensions_.MergeFrom(from._extensions_);
11856 _internal_metadata_.MergeFrom(from._internal_metadata_);
12023 uninterpreted_option_.MergeFrom(from.uninterpreted_option_); 11857 uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
12024 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { 11858 if (from.has_deprecated()) {
12025 if (from.has_deprecated()) { 11859 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 } 11860 }
12033 } 11861 }
12034 11862
12035 void MethodOptions::CopyFrom(const ::google::protobuf::Message& from) { 11863 void ServiceOptions::CopyFrom(const ::google::protobuf::Message& from) {
12036 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.MethodOp tions) 11864 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.ServiceO ptions)
12037 if (&from == this) return; 11865 if (&from == this) return;
12038 Clear(); 11866 Clear();
12039 MergeFrom(from); 11867 MergeFrom(from);
12040 } 11868 }
12041 11869
12042 void MethodOptions::CopyFrom(const MethodOptions& from) { 11870 void ServiceOptions::CopyFrom(const ServiceOptions& from) {
12043 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Metho dOptions) 11871 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Servi ceOptions)
12044 if (&from == this) return; 11872 if (&from == this) return;
12045 Clear(); 11873 Clear();
12046 MergeFrom(from); 11874 MergeFrom(from);
12047 } 11875 }
12048 11876
12049 bool MethodOptions::IsInitialized() const { 11877 bool ServiceOptions::IsInitialized() const {
11878 if (!_extensions_.IsInitialized()) {
11879 return false;
11880 }
12050 11881
12051 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio n())) return false; 11882 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio n())) return false;
12052 11883 return true;
12053 if (!_extensions_.IsInitialized()) return false; return true;
12054 } 11884 }
12055 11885
12056 void MethodOptions::Swap(MethodOptions* other) { 11886 void ServiceOptions::Swap(ServiceOptions* other) {
12057 if (other == this) return; 11887 if (other == this) return;
12058 InternalSwap(other); 11888 InternalSwap(other);
12059 } 11889 }
12060 void MethodOptions::InternalSwap(MethodOptions* other) { 11890 void ServiceOptions::InternalSwap(ServiceOptions* other) {
11891 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
12061 std::swap(deprecated_, other->deprecated_); 11892 std::swap(deprecated_, other->deprecated_);
12062 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
12063 std::swap(_has_bits_[0], other->_has_bits_[0]); 11893 std::swap(_has_bits_[0], other->_has_bits_[0]);
12064 _internal_metadata_.Swap(&other->_internal_metadata_); 11894 _internal_metadata_.Swap(&other->_internal_metadata_);
12065 std::swap(_cached_size_, other->_cached_size_); 11895 std::swap(_cached_size_, other->_cached_size_);
12066 _extensions_.Swap(&other->_extensions_); 11896 _extensions_.Swap(&other->_extensions_);
12067 } 11897 }
12068 11898
12069 ::google::protobuf::Metadata MethodOptions::GetMetadata() const { 11899 ::google::protobuf::Metadata ServiceOptions::GetMetadata() const {
12070 protobuf_AssignDescriptorsOnce(); 11900 protobuf_AssignDescriptorsOnce();
12071 ::google::protobuf::Metadata metadata; 11901 return file_level_metadata[17];
12072 metadata.descriptor = MethodOptions_descriptor_;
12073 metadata.reflection = MethodOptions_reflection_;
12074 return metadata;
12075 } 11902 }
12076 11903
12077 #if PROTOBUF_INLINE_NOT_IN_HEADERS 11904 #if PROTOBUF_INLINE_NOT_IN_HEADERS
12078 // MethodOptions 11905 // ServiceOptions
12079 11906
12080 // optional bool deprecated = 33 [default = false]; 11907 // optional bool deprecated = 33 [default = false];
12081 bool MethodOptions::has_deprecated() const { 11908 bool ServiceOptions::has_deprecated() const {
12082 return (_has_bits_[0] & 0x00000001u) != 0; 11909 return (_has_bits_[0] & 0x00000001u) != 0;
12083 } 11910 }
12084 void MethodOptions::set_has_deprecated() { 11911 void ServiceOptions::set_has_deprecated() {
12085 _has_bits_[0] |= 0x00000001u; 11912 _has_bits_[0] |= 0x00000001u;
12086 } 11913 }
12087 void MethodOptions::clear_has_deprecated() { 11914 void ServiceOptions::clear_has_deprecated() {
12088 _has_bits_[0] &= ~0x00000001u; 11915 _has_bits_[0] &= ~0x00000001u;
12089 } 11916 }
12090 void MethodOptions::clear_deprecated() { 11917 void ServiceOptions::clear_deprecated() {
12091 deprecated_ = false; 11918 deprecated_ = false;
12092 clear_has_deprecated(); 11919 clear_has_deprecated();
12093 } 11920 }
12094 bool MethodOptions::deprecated() const { 11921 bool ServiceOptions::deprecated() const {
12095 // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.deprecated ) 11922 // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.deprecate d)
12096 return deprecated_; 11923 return deprecated_;
12097 } 11924 }
12098 void MethodOptions::set_deprecated(bool value) { 11925 void ServiceOptions::set_deprecated(bool value) {
12099 set_has_deprecated(); 11926 set_has_deprecated();
12100 deprecated_ = value; 11927 deprecated_ = value;
12101 // @@protoc_insertion_point(field_set:google.protobuf.MethodOptions.deprecated ) 11928 // @@protoc_insertion_point(field_set:google.protobuf.ServiceOptions.deprecate d)
12102 } 11929 }
12103 11930
12104 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; 11931 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
12105 int MethodOptions::uninterpreted_option_size() const { 11932 int ServiceOptions::uninterpreted_option_size() const {
12106 return uninterpreted_option_.size(); 11933 return uninterpreted_option_.size();
12107 } 11934 }
12108 void MethodOptions::clear_uninterpreted_option() { 11935 void ServiceOptions::clear_uninterpreted_option() {
12109 uninterpreted_option_.Clear(); 11936 uninterpreted_option_.Clear();
12110 } 11937 }
12111 const ::google::protobuf::UninterpretedOption& MethodOptions::uninterpreted_opti on(int index) const { 11938 const ::google::protobuf::UninterpretedOption& ServiceOptions::uninterpreted_opt ion(int index) const {
12112 // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.uninterpre ted_option) 11939 // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.uninterpr eted_option)
12113 return uninterpreted_option_.Get(index); 11940 return uninterpreted_option_.Get(index);
12114 } 11941 }
12115 ::google::protobuf::UninterpretedOption* MethodOptions::mutable_uninterpreted_op tion(int index) { 11942 ::google::protobuf::UninterpretedOption* ServiceOptions::mutable_uninterpreted_o ption(int index) {
12116 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodOptions.uninte rpreted_option) 11943 // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceOptions.unint erpreted_option)
12117 return uninterpreted_option_.Mutable(index); 11944 return uninterpreted_option_.Mutable(index);
12118 } 11945 }
12119 ::google::protobuf::UninterpretedOption* MethodOptions::add_uninterpreted_option () { 11946 ::google::protobuf::UninterpretedOption* ServiceOptions::add_uninterpreted_optio n() {
12120 // @@protoc_insertion_point(field_add:google.protobuf.MethodOptions.uninterpre ted_option) 11947 // @@protoc_insertion_point(field_add:google.protobuf.ServiceOptions.uninterpr eted_option)
12121 return uninterpreted_option_.Add(); 11948 return uninterpreted_option_.Add();
12122 } 11949 }
12123 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* 11950 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
12124 MethodOptions::mutable_uninterpreted_option() { 11951 ServiceOptions::mutable_uninterpreted_option() {
12125 // @@protoc_insertion_point(field_mutable_list:google.protobuf.MethodOptions.u ninterpreted_option) 11952 // @@protoc_insertion_point(field_mutable_list:google.protobuf.ServiceOptions. uninterpreted_option)
12126 return &uninterpreted_option_; 11953 return &uninterpreted_option_;
12127 } 11954 }
12128 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt ion >& 11955 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt ion >&
12129 MethodOptions::uninterpreted_option() const { 11956 ServiceOptions::uninterpreted_option() const {
12130 // @@protoc_insertion_point(field_list:google.protobuf.MethodOptions.uninterpr eted_option) 11957 // @@protoc_insertion_point(field_list:google.protobuf.ServiceOptions.uninterp reted_option)
12131 return uninterpreted_option_; 11958 return uninterpreted_option_;
12132 } 11959 }
12133 11960
12134 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 11961 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
12135 11962
12136 // =================================================================== 11963 // ===================================================================
12137 11964
12138 #if !defined(_MSC_VER) || _MSC_VER >= 1900 11965 #if !defined(_MSC_VER) || _MSC_VER >= 1900
12139 const int UninterpretedOption_NamePart::kNamePartFieldNumber; 11966 const int MethodOptions::kDeprecatedFieldNumber;
12140 const int UninterpretedOption_NamePart::kIsExtensionFieldNumber; 11967 const int MethodOptions::kIdempotencyLevelFieldNumber;
11968 const int MethodOptions::kUninterpretedOptionFieldNumber;
12141 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 11969 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
12142 11970
12143 UninterpretedOption_NamePart::UninterpretedOption_NamePart() 11971 MethodOptions::MethodOptions()
12144 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 11972 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
11973 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
11974 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
11975 }
12145 SharedCtor(); 11976 SharedCtor();
12146 // @@protoc_insertion_point(constructor:google.protobuf.UninterpretedOption.Na mePart) 11977 // @@protoc_insertion_point(constructor:google.protobuf.MethodOptions)
11978 }
11979 MethodOptions::MethodOptions(const MethodOptions& from)
11980 : ::google::protobuf::Message(),
11981 _internal_metadata_(NULL),
11982 _has_bits_(from._has_bits_),
11983 _cached_size_(0),
11984 uninterpreted_option_(from.uninterpreted_option_) {
11985 _internal_metadata_.MergeFrom(from._internal_metadata_);
11986 _extensions_.MergeFrom(from._extensions_);
11987 ::memcpy(&deprecated_, &from.deprecated_,
11988 reinterpret_cast<char*>(&idempotency_level_) -
11989 reinterpret_cast<char*>(&deprecated_) + sizeof(idempotency_level_));
11990 // @@protoc_insertion_point(copy_constructor:google.protobuf.MethodOptions)
12147 } 11991 }
12148 11992
12149 void UninterpretedOption_NamePart::InitAsDefaultInstance() { 11993 void MethodOptions::SharedCtor() {
11994 _cached_size_ = 0;
11995 ::memset(&deprecated_, 0, reinterpret_cast<char*>(&idempotency_level_) -
11996 reinterpret_cast<char*>(&deprecated_) + sizeof(idempotency_level_));
12150 } 11997 }
12151 11998
12152 UninterpretedOption_NamePart::UninterpretedOption_NamePart(const UninterpretedOp tion_NamePart& from) 11999 MethodOptions::~MethodOptions() {
12153 : ::google::protobuf::Message(), 12000 // @@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(); 12001 SharedDtor();
12171 } 12002 }
12172 12003
12173 void UninterpretedOption_NamePart::SharedDtor() { 12004 void MethodOptions::SharedDtor() {
12174 name_part_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
12175 if (this != default_instance_) {
12176 }
12177 } 12005 }
12178 12006
12179 void UninterpretedOption_NamePart::SetCachedSize(int size) const { 12007 void MethodOptions::SetCachedSize(int size) const {
12180 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 12008 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12181 _cached_size_ = size; 12009 _cached_size_ = size;
12182 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 12010 GOOGLE_SAFE_CONCURRENT_WRITES_END();
12183 } 12011 }
12184 const ::google::protobuf::Descriptor* UninterpretedOption_NamePart::descriptor() { 12012 const ::google::protobuf::Descriptor* MethodOptions::descriptor() {
12185 protobuf_AssignDescriptorsOnce(); 12013 protobuf_AssignDescriptorsOnce();
12186 return UninterpretedOption_NamePart_descriptor_; 12014 return file_level_metadata[18].descriptor;
12187 } 12015 }
12188 12016
12189 const UninterpretedOption_NamePart& UninterpretedOption_NamePart::default_instan ce() { 12017 const MethodOptions& MethodOptions::default_instance() {
12190 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 12018 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
12191 return *default_instance_; 12019 return *internal_default_instance();
12192 } 12020 }
12193 12021
12194 UninterpretedOption_NamePart* UninterpretedOption_NamePart::default_instance_ = NULL; 12022 MethodOptions* MethodOptions::New(::google::protobuf::Arena* arena) const {
12195 12023 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) { 12024 if (arena != NULL) {
12199 arena->Own(n); 12025 arena->Own(n);
12200 } 12026 }
12201 return n; 12027 return n;
12202 } 12028 }
12203 12029
12204 void UninterpretedOption_NamePart::Clear() { 12030 void MethodOptions::Clear() {
12205 // @@protoc_insertion_point(message_clear_start:google.protobuf.UninterpretedOpt ion.NamePart) 12031 // @@protoc_insertion_point(message_clear_start:google.protobuf.MethodOptions)
12032 _extensions_.Clear();
12033 uninterpreted_option_.Clear();
12206 if (_has_bits_[0 / 32] & 3u) { 12034 if (_has_bits_[0 / 32] & 3u) {
12207 if (has_name_part()) { 12035 ::memset(&deprecated_, 0, reinterpret_cast<char*>(&idempotency_level_) -
12208 name_part_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited()); 12036 reinterpret_cast<char*>(&deprecated_) + sizeof(idempotency_level_));
12209 }
12210 is_extension_ = false;
12211 } 12037 }
12212 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 12038 _has_bits_.Clear();
12213 if (_internal_metadata_.have_unknown_fields()) { 12039 _internal_metadata_.Clear();
12214 mutable_unknown_fields()->Clear();
12215 }
12216 } 12040 }
12217 12041
12218 bool UninterpretedOption_NamePart::MergePartialFromCodedStream( 12042 bool MethodOptions::MergePartialFromCodedStream(
12219 ::google::protobuf::io::CodedInputStream* input) { 12043 ::google::protobuf::io::CodedInputStream* input) {
12220 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 12044 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
12221 ::google::protobuf::uint32 tag; 12045 ::google::protobuf::uint32 tag;
12222 // @@protoc_insertion_point(parse_start:google.protobuf.UninterpretedOption.Na mePart) 12046 // @@protoc_insertion_point(parse_start:google.protobuf.MethodOptions)
12223 for (;;) { 12047 for (;;) {
12224 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127); 12048 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(16383u);
12225 tag = p.first; 12049 tag = p.first;
12226 if (!p.second) goto handle_unusual; 12050 if (!p.second) goto handle_unusual;
12227 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 12051 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
12228 // required string name_part = 1; 12052 // optional bool deprecated = 33 [default = false];
12229 case 1: { 12053 case 33: {
12230 if (tag == 10) { 12054 if (tag == 264u) {
12231 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 12055 set_has_deprecated();
12232 input, this->mutable_name_part())); 12056 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
12233 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 12057 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
12234 this->name_part().data(), this->name_part().length(), 12058 input, &deprecated_)));
12235 ::google::protobuf::internal::WireFormat::PARSE,
12236 "google.protobuf.UninterpretedOption.NamePart.name_part");
12237 } else { 12059 } else {
12238 goto handle_unusual; 12060 goto handle_unusual;
12239 } 12061 }
12240 if (input->ExpectTag(16)) goto parse_is_extension;
12241 break; 12062 break;
12242 } 12063 }
12243 12064
12244 // required bool is_extension = 2; 12065 // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_le vel = 34 [default = IDEMPOTENCY_UNKNOWN];
12245 case 2: { 12066 case 34: {
12246 if (tag == 16) { 12067 if (tag == 272u) {
12247 parse_is_extension: 12068 int value;
12248 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 12069 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
12249 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 12070 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM> (
12250 input, &is_extension_))); 12071 input, &value)));
12251 set_has_is_extension(); 12072 if (::google::protobuf::MethodOptions_IdempotencyLevel_IsValid(value)) {
12073 set_idempotency_level(static_cast< ::google::protobuf::MethodOptions _IdempotencyLevel >(value));
12074 } else {
12075 mutable_unknown_fields()->AddVarint(34, value);
12076 }
12252 } else { 12077 } else {
12253 goto handle_unusual; 12078 goto handle_unusual;
12254 } 12079 }
12255 if (input->ExpectAtEnd()) goto success;
12256 break; 12080 break;
12257 } 12081 }
12258 12082
12083 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 99 9;
12084 case 999: {
12085 if (tag == 7994u) {
12086 DO_(input->IncrementRecursionDepth());
12087 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
12088 input, add_uninterpreted_option()));
12089 } else {
12090 goto handle_unusual;
12091 }
12092 input->UnsafeDecrementRecursionDepth();
12093 break;
12094 }
12095
12259 default: { 12096 default: {
12260 handle_unusual: 12097 handle_unusual:
12261 if (tag == 0 || 12098 if (tag == 0 ||
12262 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 12099 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
12263 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 12100 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
12264 goto success; 12101 goto success;
12265 } 12102 }
12103 if ((8000u <= tag)) {
12104 DO_(_extensions_.ParseField(tag, input, internal_default_instance(),
12105 mutable_unknown_fields()));
12106 continue;
12107 }
12266 DO_(::google::protobuf::internal::WireFormat::SkipField( 12108 DO_(::google::protobuf::internal::WireFormat::SkipField(
12267 input, tag, mutable_unknown_fields())); 12109 input, tag, mutable_unknown_fields()));
12268 break; 12110 break;
12269 } 12111 }
12270 } 12112 }
12271 } 12113 }
12272 success: 12114 success:
12115 // @@protoc_insertion_point(parse_success:google.protobuf.MethodOptions)
12116 return true;
12117 failure:
12118 // @@protoc_insertion_point(parse_failure:google.protobuf.MethodOptions)
12119 return false;
12120 #undef DO_
12121 }
12122
12123 void MethodOptions::SerializeWithCachedSizes(
12124 ::google::protobuf::io::CodedOutputStream* output) const {
12125 // @@protoc_insertion_point(serialize_start:google.protobuf.MethodOptions)
12126 // optional bool deprecated = 33 [default = false];
12127 if (has_deprecated()) {
12128 ::google::protobuf::internal::WireFormatLite::WriteBool(33, this->deprecated (), output);
12129 }
12130
12131 // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
12132 if (has_idempotency_level()) {
12133 ::google::protobuf::internal::WireFormatLite::WriteEnum(
12134 34, this->idempotency_level(), output);
12135 }
12136
12137 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
12138 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
12139 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
12140 999, this->uninterpreted_option(i), output);
12141 }
12142
12143 // Extension range [1000, 536870912)
12144 _extensions_.SerializeWithCachedSizes(
12145 1000, 536870912, output);
12146
12147 if (_internal_metadata_.have_unknown_fields()) {
12148 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
12149 unknown_fields(), output);
12150 }
12151 // @@protoc_insertion_point(serialize_end:google.protobuf.MethodOptions)
12152 }
12153
12154 ::google::protobuf::uint8* MethodOptions::InternalSerializeWithCachedSizesToArra y(
12155 bool deterministic, ::google::protobuf::uint8* target) const {
12156 (void)deterministic; // Unused
12157 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MethodOpt ions)
12158 // optional bool deprecated = 33 [default = false];
12159 if (has_deprecated()) {
12160 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(33, this->deprecated(), target);
12161 }
12162
12163 // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
12164 if (has_idempotency_level()) {
12165 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
12166 34, this->idempotency_level(), target);
12167 }
12168
12169 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
12170 for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
12171 target = ::google::protobuf::internal::WireFormatLite::
12172 InternalWriteMessageNoVirtualToArray(
12173 999, this->uninterpreted_option(i), false, target);
12174 }
12175
12176 // Extension range [1000, 536870912)
12177 target = _extensions_.InternalSerializeWithCachedSizesToArray(
12178 1000, 536870912, false, target);
12179
12180 if (_internal_metadata_.have_unknown_fields()) {
12181 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
12182 unknown_fields(), target);
12183 }
12184 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MethodOptio ns)
12185 return target;
12186 }
12187
12188 size_t MethodOptions::ByteSizeLong() const {
12189 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.MethodOption s)
12190 size_t total_size = 0;
12191
12192 total_size += _extensions_.ByteSize();
12193
12194 if (_internal_metadata_.have_unknown_fields()) {
12195 total_size +=
12196 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
12197 unknown_fields());
12198 }
12199 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
12200 {
12201 unsigned int count = this->uninterpreted_option_size();
12202 total_size += 2UL * count;
12203 for (unsigned int i = 0; i < count; i++) {
12204 total_size +=
12205 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
12206 this->uninterpreted_option(i));
12207 }
12208 }
12209
12210 if (_has_bits_[0 / 32] & 3u) {
12211 // optional bool deprecated = 33 [default = false];
12212 if (has_deprecated()) {
12213 total_size += 2 + 1;
12214 }
12215
12216 // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_leve l = 34 [default = IDEMPOTENCY_UNKNOWN];
12217 if (has_idempotency_level()) {
12218 total_size += 2 +
12219 ::google::protobuf::internal::WireFormatLite::EnumSize(this->idempotency _level());
12220 }
12221
12222 }
12223 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
12224 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12225 _cached_size_ = cached_size;
12226 GOOGLE_SAFE_CONCURRENT_WRITES_END();
12227 return total_size;
12228 }
12229
12230 void MethodOptions::MergeFrom(const ::google::protobuf::Message& from) {
12231 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.MethodO ptions)
12232 GOOGLE_DCHECK_NE(&from, this);
12233 const MethodOptions* source =
12234 ::google::protobuf::internal::DynamicCastToGenerated<const MethodOptions>(
12235 &from);
12236 if (source == NULL) {
12237 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.M ethodOptions)
12238 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
12239 } else {
12240 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.MethodOptions)
12241 MergeFrom(*source);
12242 }
12243 }
12244
12245 void MethodOptions::MergeFrom(const MethodOptions& from) {
12246 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Meth odOptions)
12247 GOOGLE_DCHECK_NE(&from, this);
12248 _extensions_.MergeFrom(from._extensions_);
12249 _internal_metadata_.MergeFrom(from._internal_metadata_);
12250 uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
12251 if (from._has_bits_[0 / 32] & 3u) {
12252 if (from.has_deprecated()) {
12253 set_deprecated(from.deprecated());
12254 }
12255 if (from.has_idempotency_level()) {
12256 set_idempotency_level(from.idempotency_level());
12257 }
12258 }
12259 }
12260
12261 void MethodOptions::CopyFrom(const ::google::protobuf::Message& from) {
12262 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.MethodOp tions)
12263 if (&from == this) return;
12264 Clear();
12265 MergeFrom(from);
12266 }
12267
12268 void MethodOptions::CopyFrom(const MethodOptions& from) {
12269 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Metho dOptions)
12270 if (&from == this) return;
12271 Clear();
12272 MergeFrom(from);
12273 }
12274
12275 bool MethodOptions::IsInitialized() const {
12276 if (!_extensions_.IsInitialized()) {
12277 return false;
12278 }
12279
12280 if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_optio n())) return false;
12281 return true;
12282 }
12283
12284 void MethodOptions::Swap(MethodOptions* other) {
12285 if (other == this) return;
12286 InternalSwap(other);
12287 }
12288 void MethodOptions::InternalSwap(MethodOptions* other) {
12289 uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
12290 std::swap(deprecated_, other->deprecated_);
12291 std::swap(idempotency_level_, other->idempotency_level_);
12292 std::swap(_has_bits_[0], other->_has_bits_[0]);
12293 _internal_metadata_.Swap(&other->_internal_metadata_);
12294 std::swap(_cached_size_, other->_cached_size_);
12295 _extensions_.Swap(&other->_extensions_);
12296 }
12297
12298 ::google::protobuf::Metadata MethodOptions::GetMetadata() const {
12299 protobuf_AssignDescriptorsOnce();
12300 return file_level_metadata[18];
12301 }
12302
12303 #if PROTOBUF_INLINE_NOT_IN_HEADERS
12304 // MethodOptions
12305
12306 // optional bool deprecated = 33 [default = false];
12307 bool MethodOptions::has_deprecated() const {
12308 return (_has_bits_[0] & 0x00000001u) != 0;
12309 }
12310 void MethodOptions::set_has_deprecated() {
12311 _has_bits_[0] |= 0x00000001u;
12312 }
12313 void MethodOptions::clear_has_deprecated() {
12314 _has_bits_[0] &= ~0x00000001u;
12315 }
12316 void MethodOptions::clear_deprecated() {
12317 deprecated_ = false;
12318 clear_has_deprecated();
12319 }
12320 bool MethodOptions::deprecated() const {
12321 // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.deprecated )
12322 return deprecated_;
12323 }
12324 void MethodOptions::set_deprecated(bool value) {
12325 set_has_deprecated();
12326 deprecated_ = value;
12327 // @@protoc_insertion_point(field_set:google.protobuf.MethodOptions.deprecated )
12328 }
12329
12330 // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
12331 bool MethodOptions::has_idempotency_level() const {
12332 return (_has_bits_[0] & 0x00000002u) != 0;
12333 }
12334 void MethodOptions::set_has_idempotency_level() {
12335 _has_bits_[0] |= 0x00000002u;
12336 }
12337 void MethodOptions::clear_has_idempotency_level() {
12338 _has_bits_[0] &= ~0x00000002u;
12339 }
12340 void MethodOptions::clear_idempotency_level() {
12341 idempotency_level_ = 0;
12342 clear_has_idempotency_level();
12343 }
12344 ::google::protobuf::MethodOptions_IdempotencyLevel MethodOptions::idempotency_le vel() const {
12345 // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.idempotenc y_level)
12346 return static_cast< ::google::protobuf::MethodOptions_IdempotencyLevel >(idemp otency_level_);
12347 }
12348 void MethodOptions::set_idempotency_level(::google::protobuf::MethodOptions_Idem potencyLevel value) {
12349 assert(::google::protobuf::MethodOptions_IdempotencyLevel_IsValid(value));
12350 set_has_idempotency_level();
12351 idempotency_level_ = value;
12352 // @@protoc_insertion_point(field_set:google.protobuf.MethodOptions.idempotenc y_level)
12353 }
12354
12355 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
12356 int MethodOptions::uninterpreted_option_size() const {
12357 return uninterpreted_option_.size();
12358 }
12359 void MethodOptions::clear_uninterpreted_option() {
12360 uninterpreted_option_.Clear();
12361 }
12362 const ::google::protobuf::UninterpretedOption& MethodOptions::uninterpreted_opti on(int index) const {
12363 // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.uninterpre ted_option)
12364 return uninterpreted_option_.Get(index);
12365 }
12366 ::google::protobuf::UninterpretedOption* MethodOptions::mutable_uninterpreted_op tion(int index) {
12367 // @@protoc_insertion_point(field_mutable:google.protobuf.MethodOptions.uninte rpreted_option)
12368 return uninterpreted_option_.Mutable(index);
12369 }
12370 ::google::protobuf::UninterpretedOption* MethodOptions::add_uninterpreted_option () {
12371 // @@protoc_insertion_point(field_add:google.protobuf.MethodOptions.uninterpre ted_option)
12372 return uninterpreted_option_.Add();
12373 }
12374 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
12375 MethodOptions::mutable_uninterpreted_option() {
12376 // @@protoc_insertion_point(field_mutable_list:google.protobuf.MethodOptions.u ninterpreted_option)
12377 return &uninterpreted_option_;
12378 }
12379 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt ion >&
12380 MethodOptions::uninterpreted_option() const {
12381 // @@protoc_insertion_point(field_list:google.protobuf.MethodOptions.uninterpr eted_option)
12382 return uninterpreted_option_;
12383 }
12384
12385 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
12386
12387 // ===================================================================
12388
12389 #if !defined(_MSC_VER) || _MSC_VER >= 1900
12390 const int UninterpretedOption_NamePart::kNamePartFieldNumber;
12391 const int UninterpretedOption_NamePart::kIsExtensionFieldNumber;
12392 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
12393
12394 UninterpretedOption_NamePart::UninterpretedOption_NamePart()
12395 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
12396 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
12397 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
12398 }
12399 SharedCtor();
12400 // @@protoc_insertion_point(constructor:google.protobuf.UninterpretedOption.Na mePart)
12401 }
12402 UninterpretedOption_NamePart::UninterpretedOption_NamePart(const UninterpretedOp tion_NamePart& from)
12403 : ::google::protobuf::Message(),
12404 _internal_metadata_(NULL),
12405 _has_bits_(from._has_bits_),
12406 _cached_size_(0) {
12407 _internal_metadata_.MergeFrom(from._internal_metadata_);
12408 name_part_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
12409 if (from.has_name_part()) {
12410 name_part_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAl readyInited(), from.name_part_);
12411 }
12412 is_extension_ = from.is_extension_;
12413 // @@protoc_insertion_point(copy_constructor:google.protobuf.UninterpretedOpti on.NamePart)
12414 }
12415
12416 void UninterpretedOption_NamePart::SharedCtor() {
12417 _cached_size_ = 0;
12418 name_part_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
12419 is_extension_ = false;
12420 }
12421
12422 UninterpretedOption_NamePart::~UninterpretedOption_NamePart() {
12423 // @@protoc_insertion_point(destructor:google.protobuf.UninterpretedOption.Nam ePart)
12424 SharedDtor();
12425 }
12426
12427 void UninterpretedOption_NamePart::SharedDtor() {
12428 name_part_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
12429 }
12430
12431 void UninterpretedOption_NamePart::SetCachedSize(int size) const {
12432 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12433 _cached_size_ = size;
12434 GOOGLE_SAFE_CONCURRENT_WRITES_END();
12435 }
12436 const ::google::protobuf::Descriptor* UninterpretedOption_NamePart::descriptor() {
12437 protobuf_AssignDescriptorsOnce();
12438 return file_level_metadata[19].descriptor;
12439 }
12440
12441 const UninterpretedOption_NamePart& UninterpretedOption_NamePart::default_instan ce() {
12442 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
12443 return *internal_default_instance();
12444 }
12445
12446 UninterpretedOption_NamePart* UninterpretedOption_NamePart::New(::google::protob uf::Arena* arena) const {
12447 UninterpretedOption_NamePart* n = new UninterpretedOption_NamePart;
12448 if (arena != NULL) {
12449 arena->Own(n);
12450 }
12451 return n;
12452 }
12453
12454 void UninterpretedOption_NamePart::Clear() {
12455 // @@protoc_insertion_point(message_clear_start:google.protobuf.UninterpretedOpt ion.NamePart)
12456 if (has_name_part()) {
12457 GOOGLE_DCHECK(!name_part_.IsDefault(&::google::protobuf::internal::GetEmptyS tringAlreadyInited()));
12458 (*name_part_.UnsafeRawStringPointer())->clear();
12459 }
12460 is_extension_ = false;
12461 _has_bits_.Clear();
12462 _internal_metadata_.Clear();
12463 }
12464
12465 bool UninterpretedOption_NamePart::MergePartialFromCodedStream(
12466 ::google::protobuf::io::CodedInputStream* input) {
12467 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
12468 ::google::protobuf::uint32 tag;
12469 // @@protoc_insertion_point(parse_start:google.protobuf.UninterpretedOption.Na mePart)
12470 for (;;) {
12471 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u);
12472 tag = p.first;
12473 if (!p.second) goto handle_unusual;
12474 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
12475 // required string name_part = 1;
12476 case 1: {
12477 if (tag == 10u) {
12478 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
12479 input, this->mutable_name_part()));
12480 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
12481 this->name_part().data(), this->name_part().length(),
12482 ::google::protobuf::internal::WireFormat::PARSE,
12483 "google.protobuf.UninterpretedOption.NamePart.name_part");
12484 } else {
12485 goto handle_unusual;
12486 }
12487 break;
12488 }
12489
12490 // required bool is_extension = 2;
12491 case 2: {
12492 if (tag == 16u) {
12493 set_has_is_extension();
12494 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
12495 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
12496 input, &is_extension_)));
12497 } else {
12498 goto handle_unusual;
12499 }
12500 break;
12501 }
12502
12503 default: {
12504 handle_unusual:
12505 if (tag == 0 ||
12506 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
12507 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
12508 goto success;
12509 }
12510 DO_(::google::protobuf::internal::WireFormat::SkipField(
12511 input, tag, mutable_unknown_fields()));
12512 break;
12513 }
12514 }
12515 }
12516 success:
12273 // @@protoc_insertion_point(parse_success:google.protobuf.UninterpretedOption. NamePart) 12517 // @@protoc_insertion_point(parse_success:google.protobuf.UninterpretedOption. NamePart)
12274 return true; 12518 return true;
12275 failure: 12519 failure:
12276 // @@protoc_insertion_point(parse_failure:google.protobuf.UninterpretedOption. NamePart) 12520 // @@protoc_insertion_point(parse_failure:google.protobuf.UninterpretedOption. NamePart)
12277 return false; 12521 return false;
12278 #undef DO_ 12522 #undef DO_
12279 } 12523 }
12280 12524
12281 void UninterpretedOption_NamePart::SerializeWithCachedSizes( 12525 void UninterpretedOption_NamePart::SerializeWithCachedSizes(
12282 ::google::protobuf::io::CodedOutputStream* output) const { 12526 ::google::protobuf::io::CodedOutputStream* output) const {
(...skipping 13 matching lines...) Expand all
12296 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_extensio n(), output); 12540 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_extensio n(), output);
12297 } 12541 }
12298 12542
12299 if (_internal_metadata_.have_unknown_fields()) { 12543 if (_internal_metadata_.have_unknown_fields()) {
12300 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 12544 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
12301 unknown_fields(), output); 12545 unknown_fields(), output);
12302 } 12546 }
12303 // @@protoc_insertion_point(serialize_end:google.protobuf.UninterpretedOption. NamePart) 12547 // @@protoc_insertion_point(serialize_end:google.protobuf.UninterpretedOption. NamePart)
12304 } 12548 }
12305 12549
12306 ::google::protobuf::uint8* UninterpretedOption_NamePart::SerializeWithCachedSize sToArray( 12550 ::google::protobuf::uint8* UninterpretedOption_NamePart::InternalSerializeWithCa chedSizesToArray(
12307 ::google::protobuf::uint8* target) const { 12551 bool deterministic, ::google::protobuf::uint8* target) const {
12552 (void)deterministic; // Unused
12308 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Uninterpr etedOption.NamePart) 12553 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Uninterpr etedOption.NamePart)
12309 // required string name_part = 1; 12554 // required string name_part = 1;
12310 if (has_name_part()) { 12555 if (has_name_part()) {
12311 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 12556 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
12312 this->name_part().data(), this->name_part().length(), 12557 this->name_part().data(), this->name_part().length(),
12313 ::google::protobuf::internal::WireFormat::SERIALIZE, 12558 ::google::protobuf::internal::WireFormat::SERIALIZE,
12314 "google.protobuf.UninterpretedOption.NamePart.name_part"); 12559 "google.protobuf.UninterpretedOption.NamePart.name_part");
12315 target = 12560 target =
12316 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 12561 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
12317 1, this->name_part(), target); 12562 1, this->name_part(), target);
12318 } 12563 }
12319 12564
12320 // required bool is_extension = 2; 12565 // required bool is_extension = 2;
12321 if (has_is_extension()) { 12566 if (has_is_extension()) {
12322 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, t his->is_extension(), target); 12567 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, t his->is_extension(), target);
12323 } 12568 }
12324 12569
12325 if (_internal_metadata_.have_unknown_fields()) { 12570 if (_internal_metadata_.have_unknown_fields()) {
12326 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 12571 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
12327 unknown_fields(), target); 12572 unknown_fields(), target);
12328 } 12573 }
12329 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Uninterpret edOption.NamePart) 12574 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Uninterpret edOption.NamePart)
12330 return target; 12575 return target;
12331 } 12576 }
12332 12577
12333 int UninterpretedOption_NamePart::RequiredFieldsByteSizeFallback() const { 12578 size_t UninterpretedOption_NamePart::RequiredFieldsByteSizeFallback() const {
12334 // @@protoc_insertion_point(required_fields_byte_size_fallback_start:google.prot obuf.UninterpretedOption.NamePart) 12579 // @@protoc_insertion_point(required_fields_byte_size_fallback_start:google.prot obuf.UninterpretedOption.NamePart)
12335 int total_size = 0; 12580 size_t total_size = 0;
12336 12581
12337 if (has_name_part()) { 12582 if (has_name_part()) {
12338 // required string name_part = 1; 12583 // required string name_part = 1;
12339 total_size += 1 + 12584 total_size += 1 +
12340 ::google::protobuf::internal::WireFormatLite::StringSize( 12585 ::google::protobuf::internal::WireFormatLite::StringSize(
12341 this->name_part()); 12586 this->name_part());
12342 } 12587 }
12343 12588
12344 if (has_is_extension()) { 12589 if (has_is_extension()) {
12345 // required bool is_extension = 2; 12590 // required bool is_extension = 2;
12346 total_size += 1 + 1; 12591 total_size += 1 + 1;
12347 } 12592 }
12348 12593
12349 return total_size; 12594 return total_size;
12350 } 12595 }
12351 int UninterpretedOption_NamePart::ByteSize() const { 12596 size_t UninterpretedOption_NamePart::ByteSizeLong() const {
12352 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Uninterprete dOption.NamePart) 12597 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Uninterprete dOption.NamePart)
12353 int total_size = 0; 12598 size_t total_size = 0;
12354 12599
12600 if (_internal_metadata_.have_unknown_fields()) {
12601 total_size +=
12602 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
12603 unknown_fields());
12604 }
12355 if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required field s are present. 12605 if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required field s are present.
12356 // required string name_part = 1; 12606 // required string name_part = 1;
12357 total_size += 1 + 12607 total_size += 1 +
12358 ::google::protobuf::internal::WireFormatLite::StringSize( 12608 ::google::protobuf::internal::WireFormatLite::StringSize(
12359 this->name_part()); 12609 this->name_part());
12360 12610
12361 // required bool is_extension = 2; 12611 // required bool is_extension = 2;
12362 total_size += 1 + 1; 12612 total_size += 1 + 1;
12363 12613
12364 } else { 12614 } else {
12365 total_size += RequiredFieldsByteSizeFallback(); 12615 total_size += RequiredFieldsByteSizeFallback();
12366 } 12616 }
12367 if (_internal_metadata_.have_unknown_fields()) { 12617 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
12368 total_size +=
12369 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
12370 unknown_fields());
12371 }
12372 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 12618 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12373 _cached_size_ = total_size; 12619 _cached_size_ = cached_size;
12374 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 12620 GOOGLE_SAFE_CONCURRENT_WRITES_END();
12375 return total_size; 12621 return total_size;
12376 } 12622 }
12377 12623
12378 void UninterpretedOption_NamePart::MergeFrom(const ::google::protobuf::Message& from) { 12624 void UninterpretedOption_NamePart::MergeFrom(const ::google::protobuf::Message& from) {
12379 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Uninter pretedOption.NamePart) 12625 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Uninter pretedOption.NamePart)
12380 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 12626 GOOGLE_DCHECK_NE(&from, this);
12381 const UninterpretedOption_NamePart* source = 12627 const UninterpretedOption_NamePart* source =
12382 ::google::protobuf::internal::DynamicCastToGenerated<const UninterpretedOp tion_NamePart>( 12628 ::google::protobuf::internal::DynamicCastToGenerated<const UninterpretedOp tion_NamePart>(
12383 &from); 12629 &from);
12384 if (source == NULL) { 12630 if (source == NULL) {
12385 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.U ninterpretedOption.NamePart) 12631 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.U ninterpretedOption.NamePart)
12386 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 12632 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
12387 } else { 12633 } else {
12388 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.UninterpretedOption.NamePart) 12634 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.UninterpretedOption.NamePart)
12389 MergeFrom(*source); 12635 MergeFrom(*source);
12390 } 12636 }
12391 } 12637 }
12392 12638
12393 void UninterpretedOption_NamePart::MergeFrom(const UninterpretedOption_NamePart& from) { 12639 void UninterpretedOption_NamePart::MergeFrom(const UninterpretedOption_NamePart& from) {
12394 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Unin terpretedOption.NamePart) 12640 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Unin terpretedOption.NamePart)
12395 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 12641 GOOGLE_DCHECK_NE(&from, this);
12396 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { 12642 _internal_metadata_.MergeFrom(from._internal_metadata_);
12643 if (from._has_bits_[0 / 32] & 3u) {
12397 if (from.has_name_part()) { 12644 if (from.has_name_part()) {
12398 set_has_name_part(); 12645 set_has_name_part();
12399 name_part_.AssignWithDefault(&::google::protobuf::internal::GetEmptyString AlreadyInited(), from.name_part_); 12646 name_part_.AssignWithDefault(&::google::protobuf::internal::GetEmptyString AlreadyInited(), from.name_part_);
12400 } 12647 }
12401 if (from.has_is_extension()) { 12648 if (from.has_is_extension()) {
12402 set_is_extension(from.is_extension()); 12649 set_is_extension(from.is_extension());
12403 } 12650 }
12404 } 12651 }
12405 if (from._internal_metadata_.have_unknown_fields()) {
12406 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
12407 }
12408 } 12652 }
12409 12653
12410 void UninterpretedOption_NamePart::CopyFrom(const ::google::protobuf::Message& f rom) { 12654 void UninterpretedOption_NamePart::CopyFrom(const ::google::protobuf::Message& f rom) {
12411 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Uninterp retedOption.NamePart) 12655 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Uninterp retedOption.NamePart)
12412 if (&from == this) return; 12656 if (&from == this) return;
12413 Clear(); 12657 Clear();
12414 MergeFrom(from); 12658 MergeFrom(from);
12415 } 12659 }
12416 12660
12417 void UninterpretedOption_NamePart::CopyFrom(const UninterpretedOption_NamePart& from) { 12661 void UninterpretedOption_NamePart::CopyFrom(const UninterpretedOption_NamePart& from) {
12418 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Unint erpretedOption.NamePart) 12662 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Unint erpretedOption.NamePart)
12419 if (&from == this) return; 12663 if (&from == this) return;
12420 Clear(); 12664 Clear();
12421 MergeFrom(from); 12665 MergeFrom(from);
12422 } 12666 }
12423 12667
12424 bool UninterpretedOption_NamePart::IsInitialized() const { 12668 bool UninterpretedOption_NamePart::IsInitialized() const {
12425 if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; 12669 if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
12426
12427 return true; 12670 return true;
12428 } 12671 }
12429 12672
12430 void UninterpretedOption_NamePart::Swap(UninterpretedOption_NamePart* other) { 12673 void UninterpretedOption_NamePart::Swap(UninterpretedOption_NamePart* other) {
12431 if (other == this) return; 12674 if (other == this) return;
12432 InternalSwap(other); 12675 InternalSwap(other);
12433 } 12676 }
12434 void UninterpretedOption_NamePart::InternalSwap(UninterpretedOption_NamePart* ot her) { 12677 void UninterpretedOption_NamePart::InternalSwap(UninterpretedOption_NamePart* ot her) {
12435 name_part_.Swap(&other->name_part_); 12678 name_part_.Swap(&other->name_part_);
12436 std::swap(is_extension_, other->is_extension_); 12679 std::swap(is_extension_, other->is_extension_);
12437 std::swap(_has_bits_[0], other->_has_bits_[0]); 12680 std::swap(_has_bits_[0], other->_has_bits_[0]);
12438 _internal_metadata_.Swap(&other->_internal_metadata_); 12681 _internal_metadata_.Swap(&other->_internal_metadata_);
12439 std::swap(_cached_size_, other->_cached_size_); 12682 std::swap(_cached_size_, other->_cached_size_);
12440 } 12683 }
12441 12684
12442 ::google::protobuf::Metadata UninterpretedOption_NamePart::GetMetadata() const { 12685 ::google::protobuf::Metadata UninterpretedOption_NamePart::GetMetadata() const {
12443 protobuf_AssignDescriptorsOnce(); 12686 protobuf_AssignDescriptorsOnce();
12444 ::google::protobuf::Metadata metadata; 12687 return file_level_metadata[19];
12445 metadata.descriptor = UninterpretedOption_NamePart_descriptor_;
12446 metadata.reflection = UninterpretedOption_NamePart_reflection_;
12447 return metadata;
12448 } 12688 }
12449 12689
12690 #if PROTOBUF_INLINE_NOT_IN_HEADERS
12691 // UninterpretedOption_NamePart
12450 12692
12451 // ------------------------------------------------------------------- 12693 // required string name_part = 1;
12694 bool UninterpretedOption_NamePart::has_name_part() const {
12695 return (_has_bits_[0] & 0x00000001u) != 0;
12696 }
12697 void UninterpretedOption_NamePart::set_has_name_part() {
12698 _has_bits_[0] |= 0x00000001u;
12699 }
12700 void UninterpretedOption_NamePart::clear_has_name_part() {
12701 _has_bits_[0] &= ~0x00000001u;
12702 }
12703 void UninterpretedOption_NamePart::clear_name_part() {
12704 name_part_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited());
12705 clear_has_name_part();
12706 }
12707 const ::std::string& UninterpretedOption_NamePart::name_part() const {
12708 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.Name Part.name_part)
12709 return name_part_.GetNoArena();
12710 }
12711 void UninterpretedOption_NamePart::set_name_part(const ::std::string& value) {
12712 set_has_name_part();
12713 name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), value);
12714 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.Name Part.name_part)
12715 }
12716 void UninterpretedOption_NamePart::set_name_part(const char* value) {
12717 set_has_name_part();
12718 name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), ::std::string(value));
12719 // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption .NamePart.name_part)
12720 }
12721 void UninterpretedOption_NamePart::set_name_part(const char* value, size_t size) {
12722 set_has_name_part();
12723 name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(),
12724 ::std::string(reinterpret_cast<const char*>(value), size));
12725 // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOpt ion.NamePart.name_part)
12726 }
12727 ::std::string* UninterpretedOption_NamePart::mutable_name_part() {
12728 set_has_name_part();
12729 // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption. NamePart.name_part)
12730 return name_part_.MutableNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited());
12731 }
12732 ::std::string* UninterpretedOption_NamePart::release_name_part() {
12733 // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption. NamePart.name_part)
12734 clear_has_name_part();
12735 return name_part_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited());
12736 }
12737 void UninterpretedOption_NamePart::set_allocated_name_part(::std::string* name_p art) {
12738 if (name_part != NULL) {
12739 set_has_name_part();
12740 } else {
12741 clear_has_name_part();
12742 }
12743 name_part_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited(), name_part);
12744 // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedO ption.NamePart.name_part)
12745 }
12746
12747 // required bool is_extension = 2;
12748 bool UninterpretedOption_NamePart::has_is_extension() const {
12749 return (_has_bits_[0] & 0x00000002u) != 0;
12750 }
12751 void UninterpretedOption_NamePart::set_has_is_extension() {
12752 _has_bits_[0] |= 0x00000002u;
12753 }
12754 void UninterpretedOption_NamePart::clear_has_is_extension() {
12755 _has_bits_[0] &= ~0x00000002u;
12756 }
12757 void UninterpretedOption_NamePart::clear_is_extension() {
12758 is_extension_ = false;
12759 clear_has_is_extension();
12760 }
12761 bool UninterpretedOption_NamePart::is_extension() const {
12762 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.Name Part.is_extension)
12763 return is_extension_;
12764 }
12765 void UninterpretedOption_NamePart::set_is_extension(bool value) {
12766 set_has_is_extension();
12767 is_extension_ = value;
12768 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.Name Part.is_extension)
12769 }
12770
12771 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
12772
12773 // ===================================================================
12452 12774
12453 #if !defined(_MSC_VER) || _MSC_VER >= 1900 12775 #if !defined(_MSC_VER) || _MSC_VER >= 1900
12454 const int UninterpretedOption::kNameFieldNumber; 12776 const int UninterpretedOption::kNameFieldNumber;
12455 const int UninterpretedOption::kIdentifierValueFieldNumber; 12777 const int UninterpretedOption::kIdentifierValueFieldNumber;
12456 const int UninterpretedOption::kPositiveIntValueFieldNumber; 12778 const int UninterpretedOption::kPositiveIntValueFieldNumber;
12457 const int UninterpretedOption::kNegativeIntValueFieldNumber; 12779 const int UninterpretedOption::kNegativeIntValueFieldNumber;
12458 const int UninterpretedOption::kDoubleValueFieldNumber; 12780 const int UninterpretedOption::kDoubleValueFieldNumber;
12459 const int UninterpretedOption::kStringValueFieldNumber; 12781 const int UninterpretedOption::kStringValueFieldNumber;
12460 const int UninterpretedOption::kAggregateValueFieldNumber; 12782 const int UninterpretedOption::kAggregateValueFieldNumber;
12461 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 12783 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
12462 12784
12463 UninterpretedOption::UninterpretedOption() 12785 UninterpretedOption::UninterpretedOption()
12464 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 12786 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
12787 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
12788 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
12789 }
12465 SharedCtor(); 12790 SharedCtor();
12466 // @@protoc_insertion_point(constructor:google.protobuf.UninterpretedOption) 12791 // @@protoc_insertion_point(constructor:google.protobuf.UninterpretedOption)
12467 } 12792 }
12468
12469 void UninterpretedOption::InitAsDefaultInstance() {
12470 }
12471
12472 UninterpretedOption::UninterpretedOption(const UninterpretedOption& from) 12793 UninterpretedOption::UninterpretedOption(const UninterpretedOption& from)
12473 : ::google::protobuf::Message(), 12794 : ::google::protobuf::Message(),
12474 _internal_metadata_(NULL) { 12795 _internal_metadata_(NULL),
12475 SharedCtor(); 12796 _has_bits_(from._has_bits_),
12476 MergeFrom(from); 12797 _cached_size_(0),
12798 name_(from.name_) {
12799 _internal_metadata_.MergeFrom(from._internal_metadata_);
12800 identifier_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited());
12801 if (from.has_identifier_value()) {
12802 identifier_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyS tringAlreadyInited(), from.identifier_value_);
12803 }
12804 string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAl readyInited());
12805 if (from.has_string_value()) {
12806 string_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited(), from.string_value_);
12807 }
12808 aggregate_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited());
12809 if (from.has_aggregate_value()) {
12810 aggregate_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptySt ringAlreadyInited(), from.aggregate_value_);
12811 }
12812 ::memcpy(&positive_int_value_, &from.positive_int_value_,
12813 reinterpret_cast<char*>(&double_value_) -
12814 reinterpret_cast<char*>(&positive_int_value_) + sizeof(double_value_));
12477 // @@protoc_insertion_point(copy_constructor:google.protobuf.UninterpretedOpti on) 12815 // @@protoc_insertion_point(copy_constructor:google.protobuf.UninterpretedOpti on)
12478 } 12816 }
12479 12817
12480 void UninterpretedOption::SharedCtor() { 12818 void UninterpretedOption::SharedCtor() {
12481 ::google::protobuf::internal::GetEmptyString();
12482 _cached_size_ = 0; 12819 _cached_size_ = 0;
12483 identifier_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited()); 12820 identifier_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited());
12484 positive_int_value_ = GOOGLE_ULONGLONG(0);
12485 negative_int_value_ = GOOGLE_LONGLONG(0);
12486 double_value_ = 0;
12487 string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAl readyInited()); 12821 string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAl readyInited());
12488 aggregate_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited()); 12822 aggregate_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited());
12489 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 12823 ::memset(&positive_int_value_, 0, reinterpret_cast<char*>(&double_value_) -
12824 reinterpret_cast<char*>(&positive_int_value_) + sizeof(double_value_));
12490 } 12825 }
12491 12826
12492 UninterpretedOption::~UninterpretedOption() { 12827 UninterpretedOption::~UninterpretedOption() {
12493 // @@protoc_insertion_point(destructor:google.protobuf.UninterpretedOption) 12828 // @@protoc_insertion_point(destructor:google.protobuf.UninterpretedOption)
12494 SharedDtor(); 12829 SharedDtor();
12495 } 12830 }
12496 12831
12497 void UninterpretedOption::SharedDtor() { 12832 void UninterpretedOption::SharedDtor() {
12498 identifier_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited()); 12833 identifier_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited());
12499 string_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited()); 12834 string_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited());
12500 aggregate_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringA lreadyInited()); 12835 aggregate_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringA lreadyInited());
12501 if (this != default_instance_) {
12502 }
12503 } 12836 }
12504 12837
12505 void UninterpretedOption::SetCachedSize(int size) const { 12838 void UninterpretedOption::SetCachedSize(int size) const {
12506 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 12839 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12507 _cached_size_ = size; 12840 _cached_size_ = size;
12508 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 12841 GOOGLE_SAFE_CONCURRENT_WRITES_END();
12509 } 12842 }
12510 const ::google::protobuf::Descriptor* UninterpretedOption::descriptor() { 12843 const ::google::protobuf::Descriptor* UninterpretedOption::descriptor() {
12511 protobuf_AssignDescriptorsOnce(); 12844 protobuf_AssignDescriptorsOnce();
12512 return UninterpretedOption_descriptor_; 12845 return file_level_metadata[20].descriptor;
12513 } 12846 }
12514 12847
12515 const UninterpretedOption& UninterpretedOption::default_instance() { 12848 const UninterpretedOption& UninterpretedOption::default_instance() {
12516 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 12849 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
12517 return *default_instance_; 12850 return *internal_default_instance();
12518 } 12851 }
12519 12852
12520 UninterpretedOption* UninterpretedOption::default_instance_ = NULL;
12521
12522 UninterpretedOption* UninterpretedOption::New(::google::protobuf::Arena* arena) const { 12853 UninterpretedOption* UninterpretedOption::New(::google::protobuf::Arena* arena) const {
12523 UninterpretedOption* n = new UninterpretedOption; 12854 UninterpretedOption* n = new UninterpretedOption;
12524 if (arena != NULL) { 12855 if (arena != NULL) {
12525 arena->Own(n); 12856 arena->Own(n);
12526 } 12857 }
12527 return n; 12858 return n;
12528 } 12859 }
12529 12860
12530 void UninterpretedOption::Clear() { 12861 void UninterpretedOption::Clear() {
12531 // @@protoc_insertion_point(message_clear_start:google.protobuf.UninterpretedOpt ion) 12862 // @@protoc_insertion_point(message_clear_start:google.protobuf.UninterpretedOpt ion)
12532 #if defined(__clang__) 12863 name_.Clear();
12533 #define ZR_HELPER_(f) \ 12864 if (_has_bits_[0 / 32] & 7u) {
12534 _Pragma("clang diagnostic push") \
12535 _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \
12536 __builtin_offsetof(UninterpretedOption, f) \
12537 _Pragma("clang diagnostic pop")
12538 #else
12539 #define ZR_HELPER_(f) reinterpret_cast<char*>(\
12540 &reinterpret_cast<UninterpretedOption*>(16)->f)
12541 #endif
12542
12543 #define ZR_(first, last) do {\
12544 ::memset(&first, 0,\
12545 ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
12546 } while (0)
12547
12548 if (_has_bits_[0 / 32] & 126u) {
12549 ZR_(positive_int_value_, double_value_);
12550 if (has_identifier_value()) { 12865 if (has_identifier_value()) {
12551 identifier_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEm ptyStringAlreadyInited()); 12866 GOOGLE_DCHECK(!identifier_value_.IsDefault(&::google::protobuf::internal:: GetEmptyStringAlreadyInited()));
12867 (*identifier_value_.UnsafeRawStringPointer())->clear();
12552 } 12868 }
12553 if (has_string_value()) { 12869 if (has_string_value()) {
12554 string_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyS tringAlreadyInited()); 12870 GOOGLE_DCHECK(!string_value_.IsDefault(&::google::protobuf::internal::GetE mptyStringAlreadyInited()));
12871 (*string_value_.UnsafeRawStringPointer())->clear();
12555 } 12872 }
12556 if (has_aggregate_value()) { 12873 if (has_aggregate_value()) {
12557 aggregate_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmp tyStringAlreadyInited()); 12874 GOOGLE_DCHECK(!aggregate_value_.IsDefault(&::google::protobuf::internal::G etEmptyStringAlreadyInited()));
12875 (*aggregate_value_.UnsafeRawStringPointer())->clear();
12558 } 12876 }
12559 } 12877 }
12560 12878 if (_has_bits_[0 / 32] & 56u) {
12561 #undef ZR_HELPER_ 12879 ::memset(&positive_int_value_, 0, reinterpret_cast<char*>(&double_value_) -
12562 #undef ZR_ 12880 reinterpret_cast<char*>(&positive_int_value_) + sizeof(double_value_));
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 } 12881 }
12882 _has_bits_.Clear();
12883 _internal_metadata_.Clear();
12569 } 12884 }
12570 12885
12571 bool UninterpretedOption::MergePartialFromCodedStream( 12886 bool UninterpretedOption::MergePartialFromCodedStream(
12572 ::google::protobuf::io::CodedInputStream* input) { 12887 ::google::protobuf::io::CodedInputStream* input) {
12573 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 12888 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
12574 ::google::protobuf::uint32 tag; 12889 ::google::protobuf::uint32 tag;
12575 // @@protoc_insertion_point(parse_start:google.protobuf.UninterpretedOption) 12890 // @@protoc_insertion_point(parse_start:google.protobuf.UninterpretedOption)
12576 for (;;) { 12891 for (;;) {
12577 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127); 12892 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u);
12578 tag = p.first; 12893 tag = p.first;
12579 if (!p.second) goto handle_unusual; 12894 if (!p.second) goto handle_unusual;
12580 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 12895 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
12581 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; 12896 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
12582 case 2: { 12897 case 2: {
12583 if (tag == 18) { 12898 if (tag == 18u) {
12584 DO_(input->IncrementRecursionDepth()); 12899 DO_(input->IncrementRecursionDepth());
12585 parse_loop_name:
12586 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 12900 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
12587 input, add_name())); 12901 input, add_name()));
12588 } else { 12902 } else {
12589 goto handle_unusual; 12903 goto handle_unusual;
12590 } 12904 }
12591 if (input->ExpectTag(18)) goto parse_loop_name;
12592 input->UnsafeDecrementRecursionDepth(); 12905 input->UnsafeDecrementRecursionDepth();
12593 if (input->ExpectTag(26)) goto parse_identifier_value;
12594 break; 12906 break;
12595 } 12907 }
12596 12908
12597 // optional string identifier_value = 3; 12909 // optional string identifier_value = 3;
12598 case 3: { 12910 case 3: {
12599 if (tag == 26) { 12911 if (tag == 26u) {
12600 parse_identifier_value:
12601 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 12912 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
12602 input, this->mutable_identifier_value())); 12913 input, this->mutable_identifier_value()));
12603 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 12914 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
12604 this->identifier_value().data(), this->identifier_value().length(), 12915 this->identifier_value().data(), this->identifier_value().length(),
12605 ::google::protobuf::internal::WireFormat::PARSE, 12916 ::google::protobuf::internal::WireFormat::PARSE,
12606 "google.protobuf.UninterpretedOption.identifier_value"); 12917 "google.protobuf.UninterpretedOption.identifier_value");
12607 } else { 12918 } else {
12608 goto handle_unusual; 12919 goto handle_unusual;
12609 } 12920 }
12610 if (input->ExpectTag(32)) goto parse_positive_int_value;
12611 break; 12921 break;
12612 } 12922 }
12613 12923
12614 // optional uint64 positive_int_value = 4; 12924 // optional uint64 positive_int_value = 4;
12615 case 4: { 12925 case 4: {
12616 if (tag == 32) { 12926 if (tag == 32u) {
12617 parse_positive_int_value: 12927 set_has_positive_int_value();
12618 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 12928 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
12619 ::google::protobuf::uint64, ::google::protobuf::internal::Wir eFormatLite::TYPE_UINT64>( 12929 ::google::protobuf::uint64, ::google::protobuf::internal::Wir eFormatLite::TYPE_UINT64>(
12620 input, &positive_int_value_))); 12930 input, &positive_int_value_)));
12621 set_has_positive_int_value();
12622 } else { 12931 } else {
12623 goto handle_unusual; 12932 goto handle_unusual;
12624 } 12933 }
12625 if (input->ExpectTag(40)) goto parse_negative_int_value;
12626 break; 12934 break;
12627 } 12935 }
12628 12936
12629 // optional int64 negative_int_value = 5; 12937 // optional int64 negative_int_value = 5;
12630 case 5: { 12938 case 5: {
12631 if (tag == 40) { 12939 if (tag == 40u) {
12632 parse_negative_int_value: 12940 set_has_negative_int_value();
12633 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 12941 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
12634 ::google::protobuf::int64, ::google::protobuf::internal::Wire FormatLite::TYPE_INT64>( 12942 ::google::protobuf::int64, ::google::protobuf::internal::Wire FormatLite::TYPE_INT64>(
12635 input, &negative_int_value_))); 12943 input, &negative_int_value_)));
12636 set_has_negative_int_value();
12637 } else { 12944 } else {
12638 goto handle_unusual; 12945 goto handle_unusual;
12639 } 12946 }
12640 if (input->ExpectTag(49)) goto parse_double_value;
12641 break; 12947 break;
12642 } 12948 }
12643 12949
12644 // optional double double_value = 6; 12950 // optional double double_value = 6;
12645 case 6: { 12951 case 6: {
12646 if (tag == 49) { 12952 if (tag == 49u) {
12647 parse_double_value: 12953 set_has_double_value();
12648 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 12954 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
12649 double, ::google::protobuf::internal::WireFormatLite::TYPE_DO UBLE>( 12955 double, ::google::protobuf::internal::WireFormatLite::TYPE_DO UBLE>(
12650 input, &double_value_))); 12956 input, &double_value_)));
12651 set_has_double_value();
12652 } else { 12957 } else {
12653 goto handle_unusual; 12958 goto handle_unusual;
12654 } 12959 }
12655 if (input->ExpectTag(58)) goto parse_string_value;
12656 break; 12960 break;
12657 } 12961 }
12658 12962
12659 // optional bytes string_value = 7; 12963 // optional bytes string_value = 7;
12660 case 7: { 12964 case 7: {
12661 if (tag == 58) { 12965 if (tag == 58u) {
12662 parse_string_value:
12663 DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( 12966 DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
12664 input, this->mutable_string_value())); 12967 input, this->mutable_string_value()));
12665 } else { 12968 } else {
12666 goto handle_unusual; 12969 goto handle_unusual;
12667 } 12970 }
12668 if (input->ExpectTag(66)) goto parse_aggregate_value;
12669 break; 12971 break;
12670 } 12972 }
12671 12973
12672 // optional string aggregate_value = 8; 12974 // optional string aggregate_value = 8;
12673 case 8: { 12975 case 8: {
12674 if (tag == 66) { 12976 if (tag == 66u) {
12675 parse_aggregate_value:
12676 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 12977 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
12677 input, this->mutable_aggregate_value())); 12978 input, this->mutable_aggregate_value()));
12678 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 12979 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
12679 this->aggregate_value().data(), this->aggregate_value().length(), 12980 this->aggregate_value().data(), this->aggregate_value().length(),
12680 ::google::protobuf::internal::WireFormat::PARSE, 12981 ::google::protobuf::internal::WireFormat::PARSE,
12681 "google.protobuf.UninterpretedOption.aggregate_value"); 12982 "google.protobuf.UninterpretedOption.aggregate_value");
12682 } else { 12983 } else {
12683 goto handle_unusual; 12984 goto handle_unusual;
12684 } 12985 }
12685 if (input->ExpectAtEnd()) goto success;
12686 break; 12986 break;
12687 } 12987 }
12688 12988
12689 default: { 12989 default: {
12690 handle_unusual: 12990 handle_unusual:
12691 if (tag == 0 || 12991 if (tag == 0 ||
12692 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 12992 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
12693 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 12993 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
12694 goto success; 12994 goto success;
12695 } 12995 }
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
12758 8, this->aggregate_value(), output); 13058 8, this->aggregate_value(), output);
12759 } 13059 }
12760 13060
12761 if (_internal_metadata_.have_unknown_fields()) { 13061 if (_internal_metadata_.have_unknown_fields()) {
12762 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 13062 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
12763 unknown_fields(), output); 13063 unknown_fields(), output);
12764 } 13064 }
12765 // @@protoc_insertion_point(serialize_end:google.protobuf.UninterpretedOption) 13065 // @@protoc_insertion_point(serialize_end:google.protobuf.UninterpretedOption)
12766 } 13066 }
12767 13067
12768 ::google::protobuf::uint8* UninterpretedOption::SerializeWithCachedSizesToArray( 13068 ::google::protobuf::uint8* UninterpretedOption::InternalSerializeWithCachedSizes ToArray(
12769 ::google::protobuf::uint8* target) const { 13069 bool deterministic, ::google::protobuf::uint8* target) const {
13070 (void)deterministic; // Unused
12770 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Uninterpr etedOption) 13071 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Uninterpr etedOption)
12771 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; 13072 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
12772 for (unsigned int i = 0, n = this->name_size(); i < n; i++) { 13073 for (unsigned int i = 0, n = this->name_size(); i < n; i++) {
12773 target = ::google::protobuf::internal::WireFormatLite:: 13074 target = ::google::protobuf::internal::WireFormatLite::
12774 WriteMessageNoVirtualToArray( 13075 InternalWriteMessageNoVirtualToArray(
12775 2, this->name(i), target); 13076 2, this->name(i), false, target);
12776 } 13077 }
12777 13078
12778 // optional string identifier_value = 3; 13079 // optional string identifier_value = 3;
12779 if (has_identifier_value()) { 13080 if (has_identifier_value()) {
12780 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 13081 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
12781 this->identifier_value().data(), this->identifier_value().length(), 13082 this->identifier_value().data(), this->identifier_value().length(),
12782 ::google::protobuf::internal::WireFormat::SERIALIZE, 13083 ::google::protobuf::internal::WireFormat::SERIALIZE,
12783 "google.protobuf.UninterpretedOption.identifier_value"); 13084 "google.protobuf.UninterpretedOption.identifier_value");
12784 target = 13085 target =
12785 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 13086 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
12820 } 13121 }
12821 13122
12822 if (_internal_metadata_.have_unknown_fields()) { 13123 if (_internal_metadata_.have_unknown_fields()) {
12823 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 13124 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
12824 unknown_fields(), target); 13125 unknown_fields(), target);
12825 } 13126 }
12826 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Uninterpret edOption) 13127 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Uninterpret edOption)
12827 return target; 13128 return target;
12828 } 13129 }
12829 13130
12830 int UninterpretedOption::ByteSize() const { 13131 size_t UninterpretedOption::ByteSizeLong() const {
12831 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Uninterprete dOption) 13132 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Uninterprete dOption)
12832 int total_size = 0; 13133 size_t total_size = 0;
12833 13134
12834 if (_has_bits_[1 / 32] & 126u) { 13135 if (_internal_metadata_.have_unknown_fields()) {
13136 total_size +=
13137 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
13138 unknown_fields());
13139 }
13140 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
13141 {
13142 unsigned int count = this->name_size();
13143 total_size += 1UL * count;
13144 for (unsigned int i = 0; i < count; i++) {
13145 total_size +=
13146 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
13147 this->name(i));
13148 }
13149 }
13150
13151 if (_has_bits_[0 / 32] & 63u) {
12835 // optional string identifier_value = 3; 13152 // optional string identifier_value = 3;
12836 if (has_identifier_value()) { 13153 if (has_identifier_value()) {
12837 total_size += 1 + 13154 total_size += 1 +
12838 ::google::protobuf::internal::WireFormatLite::StringSize( 13155 ::google::protobuf::internal::WireFormatLite::StringSize(
12839 this->identifier_value()); 13156 this->identifier_value());
12840 } 13157 }
12841 13158
13159 // optional bytes string_value = 7;
13160 if (has_string_value()) {
13161 total_size += 1 +
13162 ::google::protobuf::internal::WireFormatLite::BytesSize(
13163 this->string_value());
13164 }
13165
13166 // optional string aggregate_value = 8;
13167 if (has_aggregate_value()) {
13168 total_size += 1 +
13169 ::google::protobuf::internal::WireFormatLite::StringSize(
13170 this->aggregate_value());
13171 }
13172
12842 // optional uint64 positive_int_value = 4; 13173 // optional uint64 positive_int_value = 4;
12843 if (has_positive_int_value()) { 13174 if (has_positive_int_value()) {
12844 total_size += 1 + 13175 total_size += 1 +
12845 ::google::protobuf::internal::WireFormatLite::UInt64Size( 13176 ::google::protobuf::internal::WireFormatLite::UInt64Size(
12846 this->positive_int_value()); 13177 this->positive_int_value());
12847 } 13178 }
12848 13179
12849 // optional int64 negative_int_value = 5; 13180 // optional int64 negative_int_value = 5;
12850 if (has_negative_int_value()) { 13181 if (has_negative_int_value()) {
12851 total_size += 1 + 13182 total_size += 1 +
12852 ::google::protobuf::internal::WireFormatLite::Int64Size( 13183 ::google::protobuf::internal::WireFormatLite::Int64Size(
12853 this->negative_int_value()); 13184 this->negative_int_value());
12854 } 13185 }
12855 13186
12856 // optional double double_value = 6; 13187 // optional double double_value = 6;
12857 if (has_double_value()) { 13188 if (has_double_value()) {
12858 total_size += 1 + 8; 13189 total_size += 1 + 8;
12859 } 13190 }
12860 13191
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 } 13192 }
12876 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; 13193 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
12877 total_size += 1 * this->name_size();
12878 for (int i = 0; i < this->name_size(); i++) {
12879 total_size +=
12880 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
12881 this->name(i));
12882 }
12883
12884 if (_internal_metadata_.have_unknown_fields()) {
12885 total_size +=
12886 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
12887 unknown_fields());
12888 }
12889 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 13194 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12890 _cached_size_ = total_size; 13195 _cached_size_ = cached_size;
12891 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 13196 GOOGLE_SAFE_CONCURRENT_WRITES_END();
12892 return total_size; 13197 return total_size;
12893 } 13198 }
12894 13199
12895 void UninterpretedOption::MergeFrom(const ::google::protobuf::Message& from) { 13200 void UninterpretedOption::MergeFrom(const ::google::protobuf::Message& from) {
12896 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Uninter pretedOption) 13201 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Uninter pretedOption)
12897 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 13202 GOOGLE_DCHECK_NE(&from, this);
12898 const UninterpretedOption* source = 13203 const UninterpretedOption* source =
12899 ::google::protobuf::internal::DynamicCastToGenerated<const UninterpretedOp tion>( 13204 ::google::protobuf::internal::DynamicCastToGenerated<const UninterpretedOp tion>(
12900 &from); 13205 &from);
12901 if (source == NULL) { 13206 if (source == NULL) {
12902 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.U ninterpretedOption) 13207 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.U ninterpretedOption)
12903 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 13208 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
12904 } else { 13209 } else {
12905 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.UninterpretedOption) 13210 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.UninterpretedOption)
12906 MergeFrom(*source); 13211 MergeFrom(*source);
12907 } 13212 }
12908 } 13213 }
12909 13214
12910 void UninterpretedOption::MergeFrom(const UninterpretedOption& from) { 13215 void UninterpretedOption::MergeFrom(const UninterpretedOption& from) {
12911 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Unin terpretedOption) 13216 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Unin terpretedOption)
12912 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 13217 GOOGLE_DCHECK_NE(&from, this);
13218 _internal_metadata_.MergeFrom(from._internal_metadata_);
12913 name_.MergeFrom(from.name_); 13219 name_.MergeFrom(from.name_);
12914 if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { 13220 if (from._has_bits_[0 / 32] & 63u) {
12915 if (from.has_identifier_value()) { 13221 if (from.has_identifier_value()) {
12916 set_has_identifier_value(); 13222 set_has_identifier_value();
12917 identifier_value_.AssignWithDefault(&::google::protobuf::internal::GetEmpt yStringAlreadyInited(), from.identifier_value_); 13223 identifier_value_.AssignWithDefault(&::google::protobuf::internal::GetEmpt yStringAlreadyInited(), from.identifier_value_);
12918 } 13224 }
13225 if (from.has_string_value()) {
13226 set_has_string_value();
13227 string_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited(), from.string_value_);
13228 }
13229 if (from.has_aggregate_value()) {
13230 set_has_aggregate_value();
13231 aggregate_value_.AssignWithDefault(&::google::protobuf::internal::GetEmpty StringAlreadyInited(), from.aggregate_value_);
13232 }
12919 if (from.has_positive_int_value()) { 13233 if (from.has_positive_int_value()) {
12920 set_positive_int_value(from.positive_int_value()); 13234 set_positive_int_value(from.positive_int_value());
12921 } 13235 }
12922 if (from.has_negative_int_value()) { 13236 if (from.has_negative_int_value()) {
12923 set_negative_int_value(from.negative_int_value()); 13237 set_negative_int_value(from.negative_int_value());
12924 } 13238 }
12925 if (from.has_double_value()) { 13239 if (from.has_double_value()) {
12926 set_double_value(from.double_value()); 13240 set_double_value(from.double_value());
12927 } 13241 }
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 } 13242 }
12940 } 13243 }
12941 13244
12942 void UninterpretedOption::CopyFrom(const ::google::protobuf::Message& from) { 13245 void UninterpretedOption::CopyFrom(const ::google::protobuf::Message& from) {
12943 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Uninterp retedOption) 13246 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Uninterp retedOption)
12944 if (&from == this) return; 13247 if (&from == this) return;
12945 Clear(); 13248 Clear();
12946 MergeFrom(from); 13249 MergeFrom(from);
12947 } 13250 }
12948 13251
12949 void UninterpretedOption::CopyFrom(const UninterpretedOption& from) { 13252 void UninterpretedOption::CopyFrom(const UninterpretedOption& from) {
12950 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Unint erpretedOption) 13253 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Unint erpretedOption)
12951 if (&from == this) return; 13254 if (&from == this) return;
12952 Clear(); 13255 Clear();
12953 MergeFrom(from); 13256 MergeFrom(from);
12954 } 13257 }
12955 13258
12956 bool UninterpretedOption::IsInitialized() const { 13259 bool UninterpretedOption::IsInitialized() const {
12957
12958 if (!::google::protobuf::internal::AllAreInitialized(this->name())) return fal se; 13260 if (!::google::protobuf::internal::AllAreInitialized(this->name())) return fal se;
12959 return true; 13261 return true;
12960 } 13262 }
12961 13263
12962 void UninterpretedOption::Swap(UninterpretedOption* other) { 13264 void UninterpretedOption::Swap(UninterpretedOption* other) {
12963 if (other == this) return; 13265 if (other == this) return;
12964 InternalSwap(other); 13266 InternalSwap(other);
12965 } 13267 }
12966 void UninterpretedOption::InternalSwap(UninterpretedOption* other) { 13268 void UninterpretedOption::InternalSwap(UninterpretedOption* other) {
12967 name_.UnsafeArenaSwap(&other->name_); 13269 name_.UnsafeArenaSwap(&other->name_);
12968 identifier_value_.Swap(&other->identifier_value_); 13270 identifier_value_.Swap(&other->identifier_value_);
13271 string_value_.Swap(&other->string_value_);
13272 aggregate_value_.Swap(&other->aggregate_value_);
12969 std::swap(positive_int_value_, other->positive_int_value_); 13273 std::swap(positive_int_value_, other->positive_int_value_);
12970 std::swap(negative_int_value_, other->negative_int_value_); 13274 std::swap(negative_int_value_, other->negative_int_value_);
12971 std::swap(double_value_, other->double_value_); 13275 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]); 13276 std::swap(_has_bits_[0], other->_has_bits_[0]);
12975 _internal_metadata_.Swap(&other->_internal_metadata_); 13277 _internal_metadata_.Swap(&other->_internal_metadata_);
12976 std::swap(_cached_size_, other->_cached_size_); 13278 std::swap(_cached_size_, other->_cached_size_);
12977 } 13279 }
12978 13280
12979 ::google::protobuf::Metadata UninterpretedOption::GetMetadata() const { 13281 ::google::protobuf::Metadata UninterpretedOption::GetMetadata() const {
12980 protobuf_AssignDescriptorsOnce(); 13282 protobuf_AssignDescriptorsOnce();
12981 ::google::protobuf::Metadata metadata; 13283 return file_level_metadata[20];
12982 metadata.descriptor = UninterpretedOption_descriptor_;
12983 metadata.reflection = UninterpretedOption_reflection_;
12984 return metadata;
12985 } 13284 }
12986 13285
12987 #if PROTOBUF_INLINE_NOT_IN_HEADERS 13286 #if PROTOBUF_INLINE_NOT_IN_HEADERS
12988 // UninterpretedOption_NamePart
12989
12990 // required string name_part = 1;
12991 bool UninterpretedOption_NamePart::has_name_part() const {
12992 return (_has_bits_[0] & 0x00000001u) != 0;
12993 }
12994 void UninterpretedOption_NamePart::set_has_name_part() {
12995 _has_bits_[0] |= 0x00000001u;
12996 }
12997 void UninterpretedOption_NamePart::clear_has_name_part() {
12998 _has_bits_[0] &= ~0x00000001u;
12999 }
13000 void UninterpretedOption_NamePart::clear_name_part() {
13001 name_part_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited());
13002 clear_has_name_part();
13003 }
13004 const ::std::string& UninterpretedOption_NamePart::name_part() const {
13005 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.Name Part.name_part)
13006 return name_part_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited());
13007 }
13008 void UninterpretedOption_NamePart::set_name_part(const ::std::string& value) {
13009 set_has_name_part();
13010 name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), value);
13011 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.Name Part.name_part)
13012 }
13013 void UninterpretedOption_NamePart::set_name_part(const char* value) {
13014 set_has_name_part();
13015 name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), ::std::string(value));
13016 // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption .NamePart.name_part)
13017 }
13018 void UninterpretedOption_NamePart::set_name_part(const char* value, size_t size ) {
13019 set_has_name_part();
13020 name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(),
13021 ::std::string(reinterpret_cast<const char*>(value), size));
13022 // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOpt ion.NamePart.name_part)
13023 }
13024 ::std::string* UninterpretedOption_NamePart::mutable_name_part() {
13025 set_has_name_part();
13026 // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption. NamePart.name_part)
13027 return name_part_.MutableNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited());
13028 }
13029 ::std::string* UninterpretedOption_NamePart::release_name_part() {
13030 // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption. NamePart.name_part)
13031 clear_has_name_part();
13032 return name_part_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited());
13033 }
13034 void UninterpretedOption_NamePart::set_allocated_name_part(::std::string* name_ part) {
13035 if (name_part != NULL) {
13036 set_has_name_part();
13037 } else {
13038 clear_has_name_part();
13039 }
13040 name_part_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited(), name_part);
13041 // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedO ption.NamePart.name_part)
13042 }
13043
13044 // required bool is_extension = 2;
13045 bool UninterpretedOption_NamePart::has_is_extension() const {
13046 return (_has_bits_[0] & 0x00000002u) != 0;
13047 }
13048 void UninterpretedOption_NamePart::set_has_is_extension() {
13049 _has_bits_[0] |= 0x00000002u;
13050 }
13051 void UninterpretedOption_NamePart::clear_has_is_extension() {
13052 _has_bits_[0] &= ~0x00000002u;
13053 }
13054 void UninterpretedOption_NamePart::clear_is_extension() {
13055 is_extension_ = false;
13056 clear_has_is_extension();
13057 }
13058 bool UninterpretedOption_NamePart::is_extension() const {
13059 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.Name Part.is_extension)
13060 return is_extension_;
13061 }
13062 void UninterpretedOption_NamePart::set_is_extension(bool value) {
13063 set_has_is_extension();
13064 is_extension_ = value;
13065 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.Name Part.is_extension)
13066 }
13067
13068 // -------------------------------------------------------------------
13069
13070 // UninterpretedOption 13287 // UninterpretedOption
13071 13288
13072 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; 13289 // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
13073 int UninterpretedOption::name_size() const { 13290 int UninterpretedOption::name_size() const {
13074 return name_.size(); 13291 return name_.size();
13075 } 13292 }
13076 void UninterpretedOption::clear_name() { 13293 void UninterpretedOption::clear_name() {
13077 name_.Clear(); 13294 name_.Clear();
13078 } 13295 }
13079 const ::google::protobuf::UninterpretedOption_NamePart& UninterpretedOption::nam e(int index) const { 13296 const ::google::protobuf::UninterpretedOption_NamePart& UninterpretedOption::nam e(int index) const {
(...skipping 14 matching lines...) Expand all
13094 return &name_; 13311 return &name_;
13095 } 13312 }
13096 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt ion_NamePart >& 13313 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOpt ion_NamePart >&
13097 UninterpretedOption::name() const { 13314 UninterpretedOption::name() const {
13098 // @@protoc_insertion_point(field_list:google.protobuf.UninterpretedOption.nam e) 13315 // @@protoc_insertion_point(field_list:google.protobuf.UninterpretedOption.nam e)
13099 return name_; 13316 return name_;
13100 } 13317 }
13101 13318
13102 // optional string identifier_value = 3; 13319 // optional string identifier_value = 3;
13103 bool UninterpretedOption::has_identifier_value() const { 13320 bool UninterpretedOption::has_identifier_value() const {
13104 return (_has_bits_[0] & 0x00000002u) != 0; 13321 return (_has_bits_[0] & 0x00000001u) != 0;
13105 } 13322 }
13106 void UninterpretedOption::set_has_identifier_value() { 13323 void UninterpretedOption::set_has_identifier_value() {
13107 _has_bits_[0] |= 0x00000002u; 13324 _has_bits_[0] |= 0x00000001u;
13108 } 13325 }
13109 void UninterpretedOption::clear_has_identifier_value() { 13326 void UninterpretedOption::clear_has_identifier_value() {
13110 _has_bits_[0] &= ~0x00000002u; 13327 _has_bits_[0] &= ~0x00000001u;
13111 } 13328 }
13112 void UninterpretedOption::clear_identifier_value() { 13329 void UninterpretedOption::clear_identifier_value() {
13113 identifier_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyS tringAlreadyInited()); 13330 identifier_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyS tringAlreadyInited());
13114 clear_has_identifier_value(); 13331 clear_has_identifier_value();
13115 } 13332 }
13116 const ::std::string& UninterpretedOption::identifier_value() const { 13333 const ::std::string& UninterpretedOption::identifier_value() const {
13117 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.iden tifier_value) 13334 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.iden tifier_value)
13118 return identifier_value_.GetNoArena(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited()); 13335 return identifier_value_.GetNoArena();
13119 } 13336 }
13120 void UninterpretedOption::set_identifier_value(const ::std::string& value) { 13337 void UninterpretedOption::set_identifier_value(const ::std::string& value) {
13121 set_has_identifier_value(); 13338 set_has_identifier_value();
13122 identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), value); 13339 identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), value);
13123 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.iden tifier_value) 13340 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.iden tifier_value)
13124 } 13341 }
13125 void UninterpretedOption::set_identifier_value(const char* value) { 13342 void UninterpretedOption::set_identifier_value(const char* value) {
13126 set_has_identifier_value(); 13343 set_has_identifier_value();
13127 identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), ::std::string(value)); 13344 identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), ::std::string(value));
13128 // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption .identifier_value) 13345 // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption .identifier_value)
13129 } 13346 }
13130 void UninterpretedOption::set_identifier_value(const char* value, size_t size) { 13347 void UninterpretedOption::set_identifier_value(const char* value, size_t size) {
13131 set_has_identifier_value(); 13348 set_has_identifier_value();
13132 identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), 13349 identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(),
13133 ::std::string(reinterpret_cast<const char*>(value), size)); 13350 ::std::string(reinterpret_cast<const char*>(value), size));
13134 // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOpt ion.identifier_value) 13351 // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOpt ion.identifier_value)
13135 } 13352 }
13136 ::std::string* UninterpretedOption::mutable_identifier_value() { 13353 ::std::string* UninterpretedOption::mutable_identifier_value() {
13137 set_has_identifier_value(); 13354 set_has_identifier_value();
13138 // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption. identifier_value) 13355 // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption. identifier_value)
13139 return identifier_value_.MutableNoArena(&::google::protobuf::internal::GetEmpt yStringAlreadyInited()); 13356 return identifier_value_.MutableNoArena(&::google::protobuf::internal::GetEmpt yStringAlreadyInited());
13140 } 13357 }
13141 ::std::string* UninterpretedOption::release_identifier_value() { 13358 ::std::string* UninterpretedOption::release_identifier_value() {
13142 // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption. identifier_value) 13359 // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption. identifier_value)
13143 clear_has_identifier_value(); 13360 clear_has_identifier_value();
13144 return identifier_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmpt yStringAlreadyInited()); 13361 return identifier_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmpt yStringAlreadyInited());
13145 } 13362 }
13146 void UninterpretedOption::set_allocated_identifier_value(::std::string* identif ier_value) { 13363 void UninterpretedOption::set_allocated_identifier_value(::std::string* identifi er_value) {
13147 if (identifier_value != NULL) { 13364 if (identifier_value != NULL) {
13148 set_has_identifier_value(); 13365 set_has_identifier_value();
13149 } else { 13366 } else {
13150 clear_has_identifier_value(); 13367 clear_has_identifier_value();
13151 } 13368 }
13152 identifier_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyS tringAlreadyInited(), identifier_value); 13369 identifier_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyS tringAlreadyInited(), identifier_value);
13153 // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedO ption.identifier_value) 13370 // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedO ption.identifier_value)
13154 } 13371 }
13155 13372
13156 // optional uint64 positive_int_value = 4; 13373 // optional uint64 positive_int_value = 4;
13157 bool UninterpretedOption::has_positive_int_value() const { 13374 bool UninterpretedOption::has_positive_int_value() const {
13158 return (_has_bits_[0] & 0x00000004u) != 0; 13375 return (_has_bits_[0] & 0x00000008u) != 0;
13159 } 13376 }
13160 void UninterpretedOption::set_has_positive_int_value() { 13377 void UninterpretedOption::set_has_positive_int_value() {
13161 _has_bits_[0] |= 0x00000004u; 13378 _has_bits_[0] |= 0x00000008u;
13162 } 13379 }
13163 void UninterpretedOption::clear_has_positive_int_value() { 13380 void UninterpretedOption::clear_has_positive_int_value() {
13164 _has_bits_[0] &= ~0x00000004u; 13381 _has_bits_[0] &= ~0x00000008u;
13165 } 13382 }
13166 void UninterpretedOption::clear_positive_int_value() { 13383 void UninterpretedOption::clear_positive_int_value() {
13167 positive_int_value_ = GOOGLE_ULONGLONG(0); 13384 positive_int_value_ = GOOGLE_ULONGLONG(0);
13168 clear_has_positive_int_value(); 13385 clear_has_positive_int_value();
13169 } 13386 }
13170 ::google::protobuf::uint64 UninterpretedOption::positive_int_value() const { 13387 ::google::protobuf::uint64 UninterpretedOption::positive_int_value() const {
13171 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.posi tive_int_value) 13388 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.posi tive_int_value)
13172 return positive_int_value_; 13389 return positive_int_value_;
13173 } 13390 }
13174 void UninterpretedOption::set_positive_int_value(::google::protobuf::uint64 val ue) { 13391 void UninterpretedOption::set_positive_int_value(::google::protobuf::uint64 valu e) {
13175 set_has_positive_int_value(); 13392 set_has_positive_int_value();
13176 positive_int_value_ = value; 13393 positive_int_value_ = value;
13177 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.posi tive_int_value) 13394 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.posi tive_int_value)
13178 } 13395 }
13179 13396
13180 // optional int64 negative_int_value = 5; 13397 // optional int64 negative_int_value = 5;
13181 bool UninterpretedOption::has_negative_int_value() const { 13398 bool UninterpretedOption::has_negative_int_value() const {
13182 return (_has_bits_[0] & 0x00000008u) != 0; 13399 return (_has_bits_[0] & 0x00000010u) != 0;
13183 } 13400 }
13184 void UninterpretedOption::set_has_negative_int_value() { 13401 void UninterpretedOption::set_has_negative_int_value() {
13185 _has_bits_[0] |= 0x00000008u; 13402 _has_bits_[0] |= 0x00000010u;
13186 } 13403 }
13187 void UninterpretedOption::clear_has_negative_int_value() { 13404 void UninterpretedOption::clear_has_negative_int_value() {
13188 _has_bits_[0] &= ~0x00000008u; 13405 _has_bits_[0] &= ~0x00000010u;
13189 } 13406 }
13190 void UninterpretedOption::clear_negative_int_value() { 13407 void UninterpretedOption::clear_negative_int_value() {
13191 negative_int_value_ = GOOGLE_LONGLONG(0); 13408 negative_int_value_ = GOOGLE_LONGLONG(0);
13192 clear_has_negative_int_value(); 13409 clear_has_negative_int_value();
13193 } 13410 }
13194 ::google::protobuf::int64 UninterpretedOption::negative_int_value() const { 13411 ::google::protobuf::int64 UninterpretedOption::negative_int_value() const {
13195 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.nega tive_int_value) 13412 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.nega tive_int_value)
13196 return negative_int_value_; 13413 return negative_int_value_;
13197 } 13414 }
13198 void UninterpretedOption::set_negative_int_value(::google::protobuf::int64 valu e) { 13415 void UninterpretedOption::set_negative_int_value(::google::protobuf::int64 value ) {
13199 set_has_negative_int_value(); 13416 set_has_negative_int_value();
13200 negative_int_value_ = value; 13417 negative_int_value_ = value;
13201 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.nega tive_int_value) 13418 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.nega tive_int_value)
13202 } 13419 }
13203 13420
13204 // optional double double_value = 6; 13421 // optional double double_value = 6;
13205 bool UninterpretedOption::has_double_value() const { 13422 bool UninterpretedOption::has_double_value() const {
13206 return (_has_bits_[0] & 0x00000010u) != 0; 13423 return (_has_bits_[0] & 0x00000020u) != 0;
13207 } 13424 }
13208 void UninterpretedOption::set_has_double_value() { 13425 void UninterpretedOption::set_has_double_value() {
13209 _has_bits_[0] |= 0x00000010u; 13426 _has_bits_[0] |= 0x00000020u;
13210 } 13427 }
13211 void UninterpretedOption::clear_has_double_value() { 13428 void UninterpretedOption::clear_has_double_value() {
13212 _has_bits_[0] &= ~0x00000010u; 13429 _has_bits_[0] &= ~0x00000020u;
13213 } 13430 }
13214 void UninterpretedOption::clear_double_value() { 13431 void UninterpretedOption::clear_double_value() {
13215 double_value_ = 0; 13432 double_value_ = 0;
13216 clear_has_double_value(); 13433 clear_has_double_value();
13217 } 13434 }
13218 double UninterpretedOption::double_value() const { 13435 double UninterpretedOption::double_value() const {
13219 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.doub le_value) 13436 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.doub le_value)
13220 return double_value_; 13437 return double_value_;
13221 } 13438 }
13222 void UninterpretedOption::set_double_value(double value) { 13439 void UninterpretedOption::set_double_value(double value) {
13223 set_has_double_value(); 13440 set_has_double_value();
13224 double_value_ = value; 13441 double_value_ = value;
13225 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.doub le_value) 13442 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.doub le_value)
13226 } 13443 }
13227 13444
13228 // optional bytes string_value = 7; 13445 // optional bytes string_value = 7;
13229 bool UninterpretedOption::has_string_value() const { 13446 bool UninterpretedOption::has_string_value() const {
13230 return (_has_bits_[0] & 0x00000020u) != 0; 13447 return (_has_bits_[0] & 0x00000002u) != 0;
13231 } 13448 }
13232 void UninterpretedOption::set_has_string_value() { 13449 void UninterpretedOption::set_has_string_value() {
13233 _has_bits_[0] |= 0x00000020u; 13450 _has_bits_[0] |= 0x00000002u;
13234 } 13451 }
13235 void UninterpretedOption::clear_has_string_value() { 13452 void UninterpretedOption::clear_has_string_value() {
13236 _has_bits_[0] &= ~0x00000020u; 13453 _has_bits_[0] &= ~0x00000002u;
13237 } 13454 }
13238 void UninterpretedOption::clear_string_value() { 13455 void UninterpretedOption::clear_string_value() {
13239 string_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited()); 13456 string_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited());
13240 clear_has_string_value(); 13457 clear_has_string_value();
13241 } 13458 }
13242 const ::std::string& UninterpretedOption::string_value() const { 13459 const ::std::string& UninterpretedOption::string_value() const {
13243 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.stri ng_value) 13460 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.stri ng_value)
13244 return string_value_.GetNoArena(&::google::protobuf::internal::GetEmptyStringA lreadyInited()); 13461 return string_value_.GetNoArena();
13245 } 13462 }
13246 void UninterpretedOption::set_string_value(const ::std::string& value) { 13463 void UninterpretedOption::set_string_value(const ::std::string& value) {
13247 set_has_string_value(); 13464 set_has_string_value();
13248 string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI nited(), value); 13465 string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI nited(), value);
13249 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.stri ng_value) 13466 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.stri ng_value)
13250 } 13467 }
13251 void UninterpretedOption::set_string_value(const char* value) { 13468 void UninterpretedOption::set_string_value(const char* value) {
13252 set_has_string_value(); 13469 set_has_string_value();
13253 string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI nited(), ::std::string(value)); 13470 string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI nited(), ::std::string(value));
13254 // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption .string_value) 13471 // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption .string_value)
13255 } 13472 }
13256 void UninterpretedOption::set_string_value(const void* value, size_t size) { 13473 void UninterpretedOption::set_string_value(const void* value, size_t size) {
13257 set_has_string_value(); 13474 set_has_string_value();
13258 string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI nited(), 13475 string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI nited(),
13259 ::std::string(reinterpret_cast<const char*>(value), size)); 13476 ::std::string(reinterpret_cast<const char*>(value), size));
13260 // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOpt ion.string_value) 13477 // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOpt ion.string_value)
13261 } 13478 }
13262 ::std::string* UninterpretedOption::mutable_string_value() { 13479 ::std::string* UninterpretedOption::mutable_string_value() {
13263 set_has_string_value(); 13480 set_has_string_value();
13264 // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption. string_value) 13481 // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption. string_value)
13265 return string_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited()); 13482 return string_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited());
13266 } 13483 }
13267 ::std::string* UninterpretedOption::release_string_value() { 13484 ::std::string* UninterpretedOption::release_string_value() {
13268 // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption. string_value) 13485 // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption. string_value)
13269 clear_has_string_value(); 13486 clear_has_string_value();
13270 return string_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited()); 13487 return string_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited());
13271 } 13488 }
13272 void UninterpretedOption::set_allocated_string_value(::std::string* string_valu e) { 13489 void UninterpretedOption::set_allocated_string_value(::std::string* string_value ) {
13273 if (string_value != NULL) { 13490 if (string_value != NULL) {
13274 set_has_string_value(); 13491 set_has_string_value();
13275 } else { 13492 } else {
13276 clear_has_string_value(); 13493 clear_has_string_value();
13277 } 13494 }
13278 string_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited(), string_value); 13495 string_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited(), string_value);
13279 // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedO ption.string_value) 13496 // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedO ption.string_value)
13280 } 13497 }
13281 13498
13282 // optional string aggregate_value = 8; 13499 // optional string aggregate_value = 8;
13283 bool UninterpretedOption::has_aggregate_value() const { 13500 bool UninterpretedOption::has_aggregate_value() const {
13284 return (_has_bits_[0] & 0x00000040u) != 0; 13501 return (_has_bits_[0] & 0x00000004u) != 0;
13285 } 13502 }
13286 void UninterpretedOption::set_has_aggregate_value() { 13503 void UninterpretedOption::set_has_aggregate_value() {
13287 _has_bits_[0] |= 0x00000040u; 13504 _has_bits_[0] |= 0x00000004u;
13288 } 13505 }
13289 void UninterpretedOption::clear_has_aggregate_value() { 13506 void UninterpretedOption::clear_has_aggregate_value() {
13290 _has_bits_[0] &= ~0x00000040u; 13507 _has_bits_[0] &= ~0x00000004u;
13291 } 13508 }
13292 void UninterpretedOption::clear_aggregate_value() { 13509 void UninterpretedOption::clear_aggregate_value() {
13293 aggregate_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptySt ringAlreadyInited()); 13510 aggregate_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptySt ringAlreadyInited());
13294 clear_has_aggregate_value(); 13511 clear_has_aggregate_value();
13295 } 13512 }
13296 const ::std::string& UninterpretedOption::aggregate_value() const { 13513 const ::std::string& UninterpretedOption::aggregate_value() const {
13297 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.aggr egate_value) 13514 // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.aggr egate_value)
13298 return aggregate_value_.GetNoArena(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited()); 13515 return aggregate_value_.GetNoArena();
13299 } 13516 }
13300 void UninterpretedOption::set_aggregate_value(const ::std::string& value) { 13517 void UninterpretedOption::set_aggregate_value(const ::std::string& value) {
13301 set_has_aggregate_value(); 13518 set_has_aggregate_value();
13302 aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), value); 13519 aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), value);
13303 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.aggr egate_value) 13520 // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.aggr egate_value)
13304 } 13521 }
13305 void UninterpretedOption::set_aggregate_value(const char* value) { 13522 void UninterpretedOption::set_aggregate_value(const char* value) {
13306 set_has_aggregate_value(); 13523 set_has_aggregate_value();
13307 aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), ::std::string(value)); 13524 aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), ::std::string(value));
13308 // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption .aggregate_value) 13525 // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption .aggregate_value)
13309 } 13526 }
13310 void UninterpretedOption::set_aggregate_value(const char* value, size_t size) { 13527 void UninterpretedOption::set_aggregate_value(const char* value, size_t size) {
13311 set_has_aggregate_value(); 13528 set_has_aggregate_value();
13312 aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), 13529 aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(),
13313 ::std::string(reinterpret_cast<const char*>(value), size)); 13530 ::std::string(reinterpret_cast<const char*>(value), size));
13314 // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOpt ion.aggregate_value) 13531 // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOpt ion.aggregate_value)
13315 } 13532 }
13316 ::std::string* UninterpretedOption::mutable_aggregate_value() { 13533 ::std::string* UninterpretedOption::mutable_aggregate_value() {
13317 set_has_aggregate_value(); 13534 set_has_aggregate_value();
13318 // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption. aggregate_value) 13535 // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption. aggregate_value)
13319 return aggregate_value_.MutableNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited()); 13536 return aggregate_value_.MutableNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited());
13320 } 13537 }
13321 ::std::string* UninterpretedOption::release_aggregate_value() { 13538 ::std::string* UninterpretedOption::release_aggregate_value() {
13322 // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption. aggregate_value) 13539 // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption. aggregate_value)
13323 clear_has_aggregate_value(); 13540 clear_has_aggregate_value();
13324 return aggregate_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited()); 13541 return aggregate_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited());
13325 } 13542 }
13326 void UninterpretedOption::set_allocated_aggregate_value(::std::string* aggregat e_value) { 13543 void UninterpretedOption::set_allocated_aggregate_value(::std::string* aggregate _value) {
13327 if (aggregate_value != NULL) { 13544 if (aggregate_value != NULL) {
13328 set_has_aggregate_value(); 13545 set_has_aggregate_value();
13329 } else { 13546 } else {
13330 clear_has_aggregate_value(); 13547 clear_has_aggregate_value();
13331 } 13548 }
13332 aggregate_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptySt ringAlreadyInited(), aggregate_value); 13549 aggregate_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptySt ringAlreadyInited(), aggregate_value);
13333 // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedO ption.aggregate_value) 13550 // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedO ption.aggregate_value)
13334 } 13551 }
13335 13552
13336 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 13553 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
13337 13554
13338 // =================================================================== 13555 // ===================================================================
13339 13556
13340 #if !defined(_MSC_VER) || _MSC_VER >= 1900 13557 #if !defined(_MSC_VER) || _MSC_VER >= 1900
13341 const int SourceCodeInfo_Location::kPathFieldNumber; 13558 const int SourceCodeInfo_Location::kPathFieldNumber;
13342 const int SourceCodeInfo_Location::kSpanFieldNumber; 13559 const int SourceCodeInfo_Location::kSpanFieldNumber;
13343 const int SourceCodeInfo_Location::kLeadingCommentsFieldNumber; 13560 const int SourceCodeInfo_Location::kLeadingCommentsFieldNumber;
13344 const int SourceCodeInfo_Location::kTrailingCommentsFieldNumber; 13561 const int SourceCodeInfo_Location::kTrailingCommentsFieldNumber;
13345 const int SourceCodeInfo_Location::kLeadingDetachedCommentsFieldNumber; 13562 const int SourceCodeInfo_Location::kLeadingDetachedCommentsFieldNumber;
13346 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 13563 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
13347 13564
13348 SourceCodeInfo_Location::SourceCodeInfo_Location() 13565 SourceCodeInfo_Location::SourceCodeInfo_Location()
13349 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 13566 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
13567 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
13568 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
13569 }
13350 SharedCtor(); 13570 SharedCtor();
13351 // @@protoc_insertion_point(constructor:google.protobuf.SourceCodeInfo.Locatio n) 13571 // @@protoc_insertion_point(constructor:google.protobuf.SourceCodeInfo.Locatio n)
13352 } 13572 }
13353
13354 void SourceCodeInfo_Location::InitAsDefaultInstance() {
13355 }
13356
13357 SourceCodeInfo_Location::SourceCodeInfo_Location(const SourceCodeInfo_Location& from) 13573 SourceCodeInfo_Location::SourceCodeInfo_Location(const SourceCodeInfo_Location& from)
13358 : ::google::protobuf::Message(), 13574 : ::google::protobuf::Message(),
13359 _internal_metadata_(NULL) { 13575 _internal_metadata_(NULL),
13360 SharedCtor(); 13576 _has_bits_(from._has_bits_),
13361 MergeFrom(from); 13577 _cached_size_(0),
13578 path_(from.path_),
13579 span_(from.span_),
13580 leading_detached_comments_(from.leading_detached_comments_) {
13581 _internal_metadata_.MergeFrom(from._internal_metadata_);
13582 leading_comments_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited());
13583 if (from.has_leading_comments()) {
13584 leading_comments_.AssignWithDefault(&::google::protobuf::internal::GetEmptyS tringAlreadyInited(), from.leading_comments_);
13585 }
13586 trailing_comments_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited());
13587 if (from.has_trailing_comments()) {
13588 trailing_comments_.AssignWithDefault(&::google::protobuf::internal::GetEmpty StringAlreadyInited(), from.trailing_comments_);
13589 }
13362 // @@protoc_insertion_point(copy_constructor:google.protobuf.SourceCodeInfo.Lo cation) 13590 // @@protoc_insertion_point(copy_constructor:google.protobuf.SourceCodeInfo.Lo cation)
13363 } 13591 }
13364 13592
13365 void SourceCodeInfo_Location::SharedCtor() { 13593 void SourceCodeInfo_Location::SharedCtor() {
13366 ::google::protobuf::internal::GetEmptyString();
13367 _cached_size_ = 0; 13594 _cached_size_ = 0;
13368 leading_comments_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited()); 13595 leading_comments_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited());
13369 trailing_comments_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited()); 13596 trailing_comments_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited());
13370 ::memset(_has_bits_, 0, sizeof(_has_bits_));
13371 } 13597 }
13372 13598
13373 SourceCodeInfo_Location::~SourceCodeInfo_Location() { 13599 SourceCodeInfo_Location::~SourceCodeInfo_Location() {
13374 // @@protoc_insertion_point(destructor:google.protobuf.SourceCodeInfo.Location ) 13600 // @@protoc_insertion_point(destructor:google.protobuf.SourceCodeInfo.Location )
13375 SharedDtor(); 13601 SharedDtor();
13376 } 13602 }
13377 13603
13378 void SourceCodeInfo_Location::SharedDtor() { 13604 void SourceCodeInfo_Location::SharedDtor() {
13379 leading_comments_.DestroyNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited()); 13605 leading_comments_.DestroyNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited());
13380 trailing_comments_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited()); 13606 trailing_comments_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited());
13381 if (this != default_instance_) {
13382 }
13383 } 13607 }
13384 13608
13385 void SourceCodeInfo_Location::SetCachedSize(int size) const { 13609 void SourceCodeInfo_Location::SetCachedSize(int size) const {
13386 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 13610 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13387 _cached_size_ = size; 13611 _cached_size_ = size;
13388 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 13612 GOOGLE_SAFE_CONCURRENT_WRITES_END();
13389 } 13613 }
13390 const ::google::protobuf::Descriptor* SourceCodeInfo_Location::descriptor() { 13614 const ::google::protobuf::Descriptor* SourceCodeInfo_Location::descriptor() {
13391 protobuf_AssignDescriptorsOnce(); 13615 protobuf_AssignDescriptorsOnce();
13392 return SourceCodeInfo_Location_descriptor_; 13616 return file_level_metadata[21].descriptor;
13393 } 13617 }
13394 13618
13395 const SourceCodeInfo_Location& SourceCodeInfo_Location::default_instance() { 13619 const SourceCodeInfo_Location& SourceCodeInfo_Location::default_instance() {
13396 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 13620 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
13397 return *default_instance_; 13621 return *internal_default_instance();
13398 } 13622 }
13399 13623
13400 SourceCodeInfo_Location* SourceCodeInfo_Location::default_instance_ = NULL;
13401
13402 SourceCodeInfo_Location* SourceCodeInfo_Location::New(::google::protobuf::Arena* arena) const { 13624 SourceCodeInfo_Location* SourceCodeInfo_Location::New(::google::protobuf::Arena* arena) const {
13403 SourceCodeInfo_Location* n = new SourceCodeInfo_Location; 13625 SourceCodeInfo_Location* n = new SourceCodeInfo_Location;
13404 if (arena != NULL) { 13626 if (arena != NULL) {
13405 arena->Own(n); 13627 arena->Own(n);
13406 } 13628 }
13407 return n; 13629 return n;
13408 } 13630 }
13409 13631
13410 void SourceCodeInfo_Location::Clear() { 13632 void SourceCodeInfo_Location::Clear() {
13411 // @@protoc_insertion_point(message_clear_start:google.protobuf.SourceCodeInfo.L ocation) 13633 // @@protoc_insertion_point(message_clear_start:google.protobuf.SourceCodeInfo.L ocation)
13412 if (_has_bits_[0 / 32] & 12u) {
13413 if (has_leading_comments()) {
13414 leading_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEm ptyStringAlreadyInited());
13415 }
13416 if (has_trailing_comments()) {
13417 trailing_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetE mptyStringAlreadyInited());
13418 }
13419 }
13420 path_.Clear(); 13634 path_.Clear();
13421 span_.Clear(); 13635 span_.Clear();
13422 leading_detached_comments_.Clear(); 13636 leading_detached_comments_.Clear();
13423 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 13637 if (_has_bits_[0 / 32] & 3u) {
13424 if (_internal_metadata_.have_unknown_fields()) { 13638 if (has_leading_comments()) {
13425 mutable_unknown_fields()->Clear(); 13639 GOOGLE_DCHECK(!leading_comments_.IsDefault(&::google::protobuf::internal:: GetEmptyStringAlreadyInited()));
13640 (*leading_comments_.UnsafeRawStringPointer())->clear();
13641 }
13642 if (has_trailing_comments()) {
13643 GOOGLE_DCHECK(!trailing_comments_.IsDefault(&::google::protobuf::internal: :GetEmptyStringAlreadyInited()));
13644 (*trailing_comments_.UnsafeRawStringPointer())->clear();
13645 }
13426 } 13646 }
13647 _has_bits_.Clear();
13648 _internal_metadata_.Clear();
13427 } 13649 }
13428 13650
13429 bool SourceCodeInfo_Location::MergePartialFromCodedStream( 13651 bool SourceCodeInfo_Location::MergePartialFromCodedStream(
13430 ::google::protobuf::io::CodedInputStream* input) { 13652 ::google::protobuf::io::CodedInputStream* input) {
13431 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 13653 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
13432 ::google::protobuf::uint32 tag; 13654 ::google::protobuf::uint32 tag;
13433 // @@protoc_insertion_point(parse_start:google.protobuf.SourceCodeInfo.Locatio n) 13655 // @@protoc_insertion_point(parse_start:google.protobuf.SourceCodeInfo.Locatio n)
13434 for (;;) { 13656 for (;;) {
13435 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127); 13657 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u);
13436 tag = p.first; 13658 tag = p.first;
13437 if (!p.second) goto handle_unusual; 13659 if (!p.second) goto handle_unusual;
13438 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 13660 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
13439 // repeated int32 path = 1 [packed = true]; 13661 // repeated int32 path = 1 [packed = true];
13440 case 1: { 13662 case 1: {
13441 if (tag == 10) { 13663 if (tag == 10u) {
13442 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive < 13664 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive <
13443 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>( 13665 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
13444 input, this->mutable_path()))); 13666 input, this->mutable_path())));
13445 } else if (tag == 8) { 13667 } else if (tag == 8u) {
13446 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimiti veNoInline< 13668 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimiti veNoInline<
13447 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>( 13669 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
13448 1, 10, input, this->mutable_path()))); 13670 1, 10u, input, this->mutable_path())));
13449 } else { 13671 } else {
13450 goto handle_unusual; 13672 goto handle_unusual;
13451 } 13673 }
13452 if (input->ExpectTag(18)) goto parse_span;
13453 break; 13674 break;
13454 } 13675 }
13455 13676
13456 // repeated int32 span = 2 [packed = true]; 13677 // repeated int32 span = 2 [packed = true];
13457 case 2: { 13678 case 2: {
13458 if (tag == 18) { 13679 if (tag == 18u) {
13459 parse_span:
13460 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive < 13680 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive <
13461 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>( 13681 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
13462 input, this->mutable_span()))); 13682 input, this->mutable_span())));
13463 } else if (tag == 16) { 13683 } else if (tag == 16u) {
13464 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimiti veNoInline< 13684 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimiti veNoInline<
13465 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>( 13685 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
13466 1, 18, input, this->mutable_span()))); 13686 1, 18u, input, this->mutable_span())));
13467 } else { 13687 } else {
13468 goto handle_unusual; 13688 goto handle_unusual;
13469 } 13689 }
13470 if (input->ExpectTag(26)) goto parse_leading_comments;
13471 break; 13690 break;
13472 } 13691 }
13473 13692
13474 // optional string leading_comments = 3; 13693 // optional string leading_comments = 3;
13475 case 3: { 13694 case 3: {
13476 if (tag == 26) { 13695 if (tag == 26u) {
13477 parse_leading_comments:
13478 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 13696 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
13479 input, this->mutable_leading_comments())); 13697 input, this->mutable_leading_comments()));
13480 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 13698 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13481 this->leading_comments().data(), this->leading_comments().length(), 13699 this->leading_comments().data(), this->leading_comments().length(),
13482 ::google::protobuf::internal::WireFormat::PARSE, 13700 ::google::protobuf::internal::WireFormat::PARSE,
13483 "google.protobuf.SourceCodeInfo.Location.leading_comments"); 13701 "google.protobuf.SourceCodeInfo.Location.leading_comments");
13484 } else { 13702 } else {
13485 goto handle_unusual; 13703 goto handle_unusual;
13486 } 13704 }
13487 if (input->ExpectTag(34)) goto parse_trailing_comments;
13488 break; 13705 break;
13489 } 13706 }
13490 13707
13491 // optional string trailing_comments = 4; 13708 // optional string trailing_comments = 4;
13492 case 4: { 13709 case 4: {
13493 if (tag == 34) { 13710 if (tag == 34u) {
13494 parse_trailing_comments:
13495 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 13711 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
13496 input, this->mutable_trailing_comments())); 13712 input, this->mutable_trailing_comments()));
13497 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 13713 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13498 this->trailing_comments().data(), this->trailing_comments().length() , 13714 this->trailing_comments().data(), this->trailing_comments().length() ,
13499 ::google::protobuf::internal::WireFormat::PARSE, 13715 ::google::protobuf::internal::WireFormat::PARSE,
13500 "google.protobuf.SourceCodeInfo.Location.trailing_comments"); 13716 "google.protobuf.SourceCodeInfo.Location.trailing_comments");
13501 } else { 13717 } else {
13502 goto handle_unusual; 13718 goto handle_unusual;
13503 } 13719 }
13504 if (input->ExpectTag(50)) goto parse_leading_detached_comments;
13505 break; 13720 break;
13506 } 13721 }
13507 13722
13508 // repeated string leading_detached_comments = 6; 13723 // repeated string leading_detached_comments = 6;
13509 case 6: { 13724 case 6: {
13510 if (tag == 50) { 13725 if (tag == 50u) {
13511 parse_leading_detached_comments:
13512 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 13726 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
13513 input, this->add_leading_detached_comments())); 13727 input, this->add_leading_detached_comments()));
13514 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 13728 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13515 this->leading_detached_comments(this->leading_detached_comments_size () - 1).data(), 13729 this->leading_detached_comments(this->leading_detached_comments_size () - 1).data(),
13516 this->leading_detached_comments(this->leading_detached_comments_size () - 1).length(), 13730 this->leading_detached_comments(this->leading_detached_comments_size () - 1).length(),
13517 ::google::protobuf::internal::WireFormat::PARSE, 13731 ::google::protobuf::internal::WireFormat::PARSE,
13518 "google.protobuf.SourceCodeInfo.Location.leading_detached_comments") ; 13732 "google.protobuf.SourceCodeInfo.Location.leading_detached_comments") ;
13519 } else { 13733 } else {
13520 goto handle_unusual; 13734 goto handle_unusual;
13521 } 13735 }
13522 if (input->ExpectTag(50)) goto parse_leading_detached_comments;
13523 if (input->ExpectAtEnd()) goto success;
13524 break; 13736 break;
13525 } 13737 }
13526 13738
13527 default: { 13739 default: {
13528 handle_unusual: 13740 handle_unusual:
13529 if (tag == 0 || 13741 if (tag == 0 ||
13530 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 13742 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
13531 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 13743 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
13532 goto success; 13744 goto success;
13533 } 13745 }
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
13599 6, this->leading_detached_comments(i), output); 13811 6, this->leading_detached_comments(i), output);
13600 } 13812 }
13601 13813
13602 if (_internal_metadata_.have_unknown_fields()) { 13814 if (_internal_metadata_.have_unknown_fields()) {
13603 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 13815 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
13604 unknown_fields(), output); 13816 unknown_fields(), output);
13605 } 13817 }
13606 // @@protoc_insertion_point(serialize_end:google.protobuf.SourceCodeInfo.Locat ion) 13818 // @@protoc_insertion_point(serialize_end:google.protobuf.SourceCodeInfo.Locat ion)
13607 } 13819 }
13608 13820
13609 ::google::protobuf::uint8* SourceCodeInfo_Location::SerializeWithCachedSizesToAr ray( 13821 ::google::protobuf::uint8* SourceCodeInfo_Location::InternalSerializeWithCachedS izesToArray(
13610 ::google::protobuf::uint8* target) const { 13822 bool deterministic, ::google::protobuf::uint8* target) const {
13823 (void)deterministic; // Unused
13611 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.SourceCod eInfo.Location) 13824 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.SourceCod eInfo.Location)
13612 // repeated int32 path = 1 [packed = true]; 13825 // repeated int32 path = 1 [packed = true];
13613 if (this->path_size() > 0) { 13826 if (this->path_size() > 0) {
13614 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( 13827 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
13615 1, 13828 1,
13616 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, 13829 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
13617 target); 13830 target);
13618 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( 13831 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
13619 _path_cached_byte_size_, target); 13832 _path_cached_byte_size_, target);
13620 } 13833 }
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
13670 } 13883 }
13671 13884
13672 if (_internal_metadata_.have_unknown_fields()) { 13885 if (_internal_metadata_.have_unknown_fields()) {
13673 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 13886 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
13674 unknown_fields(), target); 13887 unknown_fields(), target);
13675 } 13888 }
13676 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.SourceCodeI nfo.Location) 13889 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.SourceCodeI nfo.Location)
13677 return target; 13890 return target;
13678 } 13891 }
13679 13892
13680 int SourceCodeInfo_Location::ByteSize() const { 13893 size_t SourceCodeInfo_Location::ByteSizeLong() const {
13681 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.SourceCodeIn fo.Location) 13894 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.SourceCodeIn fo.Location)
13682 int total_size = 0; 13895 size_t total_size = 0;
13683 13896
13684 if (_has_bits_[2 / 32] & 12u) { 13897 if (_internal_metadata_.have_unknown_fields()) {
13685 // optional string leading_comments = 3; 13898 total_size +=
13686 if (has_leading_comments()) { 13899 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
13687 total_size += 1 + 13900 unknown_fields());
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 } 13901 }
13700 // repeated int32 path = 1 [packed = true]; 13902 // repeated int32 path = 1 [packed = true];
13701 { 13903 {
13702 int data_size = 0; 13904 size_t data_size = 0;
13703 for (int i = 0; i < this->path_size(); i++) { 13905 unsigned int count = this->path_size();
13906 for (unsigned int i = 0; i < count; i++) {
13704 data_size += ::google::protobuf::internal::WireFormatLite:: 13907 data_size += ::google::protobuf::internal::WireFormatLite::
13705 Int32Size(this->path(i)); 13908 Int32Size(this->path(i));
13706 } 13909 }
13707 if (data_size > 0) { 13910 if (data_size > 0) {
13708 total_size += 1 + 13911 total_size += 1 +
13709 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); 13912 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
13710 } 13913 }
13914 int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
13711 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 13915 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13712 _path_cached_byte_size_ = data_size; 13916 _path_cached_byte_size_ = cached_size;
13713 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 13917 GOOGLE_SAFE_CONCURRENT_WRITES_END();
13714 total_size += data_size; 13918 total_size += data_size;
13715 } 13919 }
13716 13920
13717 // repeated int32 span = 2 [packed = true]; 13921 // repeated int32 span = 2 [packed = true];
13718 { 13922 {
13719 int data_size = 0; 13923 size_t data_size = 0;
13720 for (int i = 0; i < this->span_size(); i++) { 13924 unsigned int count = this->span_size();
13925 for (unsigned int i = 0; i < count; i++) {
13721 data_size += ::google::protobuf::internal::WireFormatLite:: 13926 data_size += ::google::protobuf::internal::WireFormatLite::
13722 Int32Size(this->span(i)); 13927 Int32Size(this->span(i));
13723 } 13928 }
13724 if (data_size > 0) { 13929 if (data_size > 0) {
13725 total_size += 1 + 13930 total_size += 1 +
13726 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); 13931 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
13727 } 13932 }
13933 int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
13728 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 13934 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13729 _span_cached_byte_size_ = data_size; 13935 _span_cached_byte_size_ = cached_size;
13730 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 13936 GOOGLE_SAFE_CONCURRENT_WRITES_END();
13731 total_size += data_size; 13937 total_size += data_size;
13732 } 13938 }
13733 13939
13734 // repeated string leading_detached_comments = 6; 13940 // repeated string leading_detached_comments = 6;
13735 total_size += 1 * this->leading_detached_comments_size(); 13941 total_size += 1 *
13942 ::google::protobuf::internal::FromIntSize(this->leading_detached_comments_ size());
13736 for (int i = 0; i < this->leading_detached_comments_size(); i++) { 13943 for (int i = 0; i < this->leading_detached_comments_size(); i++) {
13737 total_size += ::google::protobuf::internal::WireFormatLite::StringSize( 13944 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
13738 this->leading_detached_comments(i)); 13945 this->leading_detached_comments(i));
13739 } 13946 }
13740 13947
13741 if (_internal_metadata_.have_unknown_fields()) { 13948 if (_has_bits_[0 / 32] & 3u) {
13742 total_size += 13949 // optional string leading_comments = 3;
13743 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( 13950 if (has_leading_comments()) {
13744 unknown_fields()); 13951 total_size += 1 +
13952 ::google::protobuf::internal::WireFormatLite::StringSize(
13953 this->leading_comments());
13954 }
13955
13956 // optional string trailing_comments = 4;
13957 if (has_trailing_comments()) {
13958 total_size += 1 +
13959 ::google::protobuf::internal::WireFormatLite::StringSize(
13960 this->trailing_comments());
13961 }
13962
13745 } 13963 }
13964 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
13746 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 13965 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13747 _cached_size_ = total_size; 13966 _cached_size_ = cached_size;
13748 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 13967 GOOGLE_SAFE_CONCURRENT_WRITES_END();
13749 return total_size; 13968 return total_size;
13750 } 13969 }
13751 13970
13752 void SourceCodeInfo_Location::MergeFrom(const ::google::protobuf::Message& from) { 13971 void SourceCodeInfo_Location::MergeFrom(const ::google::protobuf::Message& from) {
13753 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.SourceC odeInfo.Location) 13972 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.SourceC odeInfo.Location)
13754 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 13973 GOOGLE_DCHECK_NE(&from, this);
13755 const SourceCodeInfo_Location* source = 13974 const SourceCodeInfo_Location* source =
13756 ::google::protobuf::internal::DynamicCastToGenerated<const SourceCodeInfo_ Location>( 13975 ::google::protobuf::internal::DynamicCastToGenerated<const SourceCodeInfo_ Location>(
13757 &from); 13976 &from);
13758 if (source == NULL) { 13977 if (source == NULL) {
13759 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.S ourceCodeInfo.Location) 13978 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.S ourceCodeInfo.Location)
13760 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 13979 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
13761 } else { 13980 } else {
13762 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.SourceCodeInfo.Location) 13981 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.SourceCodeInfo.Location)
13763 MergeFrom(*source); 13982 MergeFrom(*source);
13764 } 13983 }
13765 } 13984 }
13766 13985
13767 void SourceCodeInfo_Location::MergeFrom(const SourceCodeInfo_Location& from) { 13986 void SourceCodeInfo_Location::MergeFrom(const SourceCodeInfo_Location& from) {
13768 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Sour ceCodeInfo.Location) 13987 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Sour ceCodeInfo.Location)
13769 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 13988 GOOGLE_DCHECK_NE(&from, this);
13989 _internal_metadata_.MergeFrom(from._internal_metadata_);
13770 path_.MergeFrom(from.path_); 13990 path_.MergeFrom(from.path_);
13771 span_.MergeFrom(from.span_); 13991 span_.MergeFrom(from.span_);
13772 leading_detached_comments_.MergeFrom(from.leading_detached_comments_); 13992 leading_detached_comments_.MergeFrom(from.leading_detached_comments_);
13773 if (from._has_bits_[2 / 32] & (0xffu << (2 % 32))) { 13993 if (from._has_bits_[0 / 32] & 3u) {
13774 if (from.has_leading_comments()) { 13994 if (from.has_leading_comments()) {
13775 set_has_leading_comments(); 13995 set_has_leading_comments();
13776 leading_comments_.AssignWithDefault(&::google::protobuf::internal::GetEmpt yStringAlreadyInited(), from.leading_comments_); 13996 leading_comments_.AssignWithDefault(&::google::protobuf::internal::GetEmpt yStringAlreadyInited(), from.leading_comments_);
13777 } 13997 }
13778 if (from.has_trailing_comments()) { 13998 if (from.has_trailing_comments()) {
13779 set_has_trailing_comments(); 13999 set_has_trailing_comments();
13780 trailing_comments_.AssignWithDefault(&::google::protobuf::internal::GetEmp tyStringAlreadyInited(), from.trailing_comments_); 14000 trailing_comments_.AssignWithDefault(&::google::protobuf::internal::GetEmp tyStringAlreadyInited(), from.trailing_comments_);
13781 } 14001 }
13782 } 14002 }
13783 if (from._internal_metadata_.have_unknown_fields()) {
13784 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
13785 }
13786 } 14003 }
13787 14004
13788 void SourceCodeInfo_Location::CopyFrom(const ::google::protobuf::Message& from) { 14005 void SourceCodeInfo_Location::CopyFrom(const ::google::protobuf::Message& from) {
13789 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.SourceCo deInfo.Location) 14006 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.SourceCo deInfo.Location)
13790 if (&from == this) return; 14007 if (&from == this) return;
13791 Clear(); 14008 Clear();
13792 MergeFrom(from); 14009 MergeFrom(from);
13793 } 14010 }
13794 14011
13795 void SourceCodeInfo_Location::CopyFrom(const SourceCodeInfo_Location& from) { 14012 void SourceCodeInfo_Location::CopyFrom(const SourceCodeInfo_Location& from) {
13796 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Sourc eCodeInfo.Location) 14013 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Sourc eCodeInfo.Location)
13797 if (&from == this) return; 14014 if (&from == this) return;
13798 Clear(); 14015 Clear();
13799 MergeFrom(from); 14016 MergeFrom(from);
13800 } 14017 }
13801 14018
13802 bool SourceCodeInfo_Location::IsInitialized() const { 14019 bool SourceCodeInfo_Location::IsInitialized() const {
13803
13804 return true; 14020 return true;
13805 } 14021 }
13806 14022
13807 void SourceCodeInfo_Location::Swap(SourceCodeInfo_Location* other) { 14023 void SourceCodeInfo_Location::Swap(SourceCodeInfo_Location* other) {
13808 if (other == this) return; 14024 if (other == this) return;
13809 InternalSwap(other); 14025 InternalSwap(other);
13810 } 14026 }
13811 void SourceCodeInfo_Location::InternalSwap(SourceCodeInfo_Location* other) { 14027 void SourceCodeInfo_Location::InternalSwap(SourceCodeInfo_Location* other) {
13812 path_.UnsafeArenaSwap(&other->path_); 14028 path_.UnsafeArenaSwap(&other->path_);
13813 span_.UnsafeArenaSwap(&other->span_); 14029 span_.UnsafeArenaSwap(&other->span_);
14030 leading_detached_comments_.UnsafeArenaSwap(&other->leading_detached_comments_) ;
13814 leading_comments_.Swap(&other->leading_comments_); 14031 leading_comments_.Swap(&other->leading_comments_);
13815 trailing_comments_.Swap(&other->trailing_comments_); 14032 trailing_comments_.Swap(&other->trailing_comments_);
13816 leading_detached_comments_.UnsafeArenaSwap(&other->leading_detached_comments_) ;
13817 std::swap(_has_bits_[0], other->_has_bits_[0]); 14033 std::swap(_has_bits_[0], other->_has_bits_[0]);
13818 _internal_metadata_.Swap(&other->_internal_metadata_); 14034 _internal_metadata_.Swap(&other->_internal_metadata_);
13819 std::swap(_cached_size_, other->_cached_size_); 14035 std::swap(_cached_size_, other->_cached_size_);
13820 } 14036 }
13821 14037
13822 ::google::protobuf::Metadata SourceCodeInfo_Location::GetMetadata() const { 14038 ::google::protobuf::Metadata SourceCodeInfo_Location::GetMetadata() const {
13823 protobuf_AssignDescriptorsOnce(); 14039 protobuf_AssignDescriptorsOnce();
13824 ::google::protobuf::Metadata metadata; 14040 return file_level_metadata[21];
13825 metadata.descriptor = SourceCodeInfo_Location_descriptor_;
13826 metadata.reflection = SourceCodeInfo_Location_reflection_;
13827 return metadata;
13828 }
13829
13830
13831 // -------------------------------------------------------------------
13832
13833 #if !defined(_MSC_VER) || _MSC_VER >= 1900
13834 const int SourceCodeInfo::kLocationFieldNumber;
13835 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
13836
13837 SourceCodeInfo::SourceCodeInfo()
13838 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
13839 SharedCtor();
13840 // @@protoc_insertion_point(constructor:google.protobuf.SourceCodeInfo)
13841 }
13842
13843 void SourceCodeInfo::InitAsDefaultInstance() {
13844 }
13845
13846 SourceCodeInfo::SourceCodeInfo(const SourceCodeInfo& from)
13847 : ::google::protobuf::Message(),
13848 _internal_metadata_(NULL) {
13849 SharedCtor();
13850 MergeFrom(from);
13851 // @@protoc_insertion_point(copy_constructor:google.protobuf.SourceCodeInfo)
13852 }
13853
13854 void SourceCodeInfo::SharedCtor() {
13855 _cached_size_ = 0;
13856 ::memset(_has_bits_, 0, sizeof(_has_bits_));
13857 }
13858
13859 SourceCodeInfo::~SourceCodeInfo() {
13860 // @@protoc_insertion_point(destructor:google.protobuf.SourceCodeInfo)
13861 SharedDtor();
13862 }
13863
13864 void SourceCodeInfo::SharedDtor() {
13865 if (this != default_instance_) {
13866 }
13867 }
13868
13869 void SourceCodeInfo::SetCachedSize(int size) const {
13870 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13871 _cached_size_ = size;
13872 GOOGLE_SAFE_CONCURRENT_WRITES_END();
13873 }
13874 const ::google::protobuf::Descriptor* SourceCodeInfo::descriptor() {
13875 protobuf_AssignDescriptorsOnce();
13876 return SourceCodeInfo_descriptor_;
13877 }
13878
13879 const SourceCodeInfo& SourceCodeInfo::default_instance() {
13880 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto();
13881 return *default_instance_;
13882 }
13883
13884 SourceCodeInfo* SourceCodeInfo::default_instance_ = NULL;
13885
13886 SourceCodeInfo* SourceCodeInfo::New(::google::protobuf::Arena* arena) const {
13887 SourceCodeInfo* n = new SourceCodeInfo;
13888 if (arena != NULL) {
13889 arena->Own(n);
13890 }
13891 return n;
13892 }
13893
13894 void SourceCodeInfo::Clear() {
13895 // @@protoc_insertion_point(message_clear_start:google.protobuf.SourceCodeInfo)
13896 location_.Clear();
13897 ::memset(_has_bits_, 0, sizeof(_has_bits_));
13898 if (_internal_metadata_.have_unknown_fields()) {
13899 mutable_unknown_fields()->Clear();
13900 }
13901 }
13902
13903 bool SourceCodeInfo::MergePartialFromCodedStream(
13904 ::google::protobuf::io::CodedInputStream* input) {
13905 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
13906 ::google::protobuf::uint32 tag;
13907 // @@protoc_insertion_point(parse_start:google.protobuf.SourceCodeInfo)
13908 for (;;) {
13909 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127);
13910 tag = p.first;
13911 if (!p.second) goto handle_unusual;
13912 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
13913 // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
13914 case 1: {
13915 if (tag == 10) {
13916 DO_(input->IncrementRecursionDepth());
13917 parse_loop_location:
13918 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
13919 input, add_location()));
13920 } else {
13921 goto handle_unusual;
13922 }
13923 if (input->ExpectTag(10)) goto parse_loop_location;
13924 input->UnsafeDecrementRecursionDepth();
13925 if (input->ExpectAtEnd()) goto success;
13926 break;
13927 }
13928
13929 default: {
13930 handle_unusual:
13931 if (tag == 0 ||
13932 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
13933 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
13934 goto success;
13935 }
13936 DO_(::google::protobuf::internal::WireFormat::SkipField(
13937 input, tag, mutable_unknown_fields()));
13938 break;
13939 }
13940 }
13941 }
13942 success:
13943 // @@protoc_insertion_point(parse_success:google.protobuf.SourceCodeInfo)
13944 return true;
13945 failure:
13946 // @@protoc_insertion_point(parse_failure:google.protobuf.SourceCodeInfo)
13947 return false;
13948 #undef DO_
13949 }
13950
13951 void SourceCodeInfo::SerializeWithCachedSizes(
13952 ::google::protobuf::io::CodedOutputStream* output) const {
13953 // @@protoc_insertion_point(serialize_start:google.protobuf.SourceCodeInfo)
13954 // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
13955 for (unsigned int i = 0, n = this->location_size(); i < n; i++) {
13956 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
13957 1, this->location(i), output);
13958 }
13959
13960 if (_internal_metadata_.have_unknown_fields()) {
13961 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
13962 unknown_fields(), output);
13963 }
13964 // @@protoc_insertion_point(serialize_end:google.protobuf.SourceCodeInfo)
13965 }
13966
13967 ::google::protobuf::uint8* SourceCodeInfo::SerializeWithCachedSizesToArray(
13968 ::google::protobuf::uint8* target) const {
13969 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.SourceCod eInfo)
13970 // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
13971 for (unsigned int i = 0, n = this->location_size(); i < n; i++) {
13972 target = ::google::protobuf::internal::WireFormatLite::
13973 WriteMessageNoVirtualToArray(
13974 1, this->location(i), target);
13975 }
13976
13977 if (_internal_metadata_.have_unknown_fields()) {
13978 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
13979 unknown_fields(), target);
13980 }
13981 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.SourceCodeI nfo)
13982 return target;
13983 }
13984
13985 int SourceCodeInfo::ByteSize() const {
13986 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.SourceCodeIn fo)
13987 int total_size = 0;
13988
13989 // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
13990 total_size += 1 * this->location_size();
13991 for (int i = 0; i < this->location_size(); i++) {
13992 total_size +=
13993 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
13994 this->location(i));
13995 }
13996
13997 if (_internal_metadata_.have_unknown_fields()) {
13998 total_size +=
13999 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
14000 unknown_fields());
14001 }
14002 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
14003 _cached_size_ = total_size;
14004 GOOGLE_SAFE_CONCURRENT_WRITES_END();
14005 return total_size;
14006 }
14007
14008 void SourceCodeInfo::MergeFrom(const ::google::protobuf::Message& from) {
14009 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.SourceC odeInfo)
14010 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
14011 const SourceCodeInfo* source =
14012 ::google::protobuf::internal::DynamicCastToGenerated<const SourceCodeInfo> (
14013 &from);
14014 if (source == NULL) {
14015 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.S ourceCodeInfo)
14016 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
14017 } else {
14018 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.SourceCodeInfo)
14019 MergeFrom(*source);
14020 }
14021 }
14022
14023 void SourceCodeInfo::MergeFrom(const SourceCodeInfo& from) {
14024 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Sour ceCodeInfo)
14025 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
14026 location_.MergeFrom(from.location_);
14027 if (from._internal_metadata_.have_unknown_fields()) {
14028 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
14029 }
14030 }
14031
14032 void SourceCodeInfo::CopyFrom(const ::google::protobuf::Message& from) {
14033 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.SourceCo deInfo)
14034 if (&from == this) return;
14035 Clear();
14036 MergeFrom(from);
14037 }
14038
14039 void SourceCodeInfo::CopyFrom(const SourceCodeInfo& from) {
14040 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Sourc eCodeInfo)
14041 if (&from == this) return;
14042 Clear();
14043 MergeFrom(from);
14044 }
14045
14046 bool SourceCodeInfo::IsInitialized() const {
14047
14048 return true;
14049 }
14050
14051 void SourceCodeInfo::Swap(SourceCodeInfo* other) {
14052 if (other == this) return;
14053 InternalSwap(other);
14054 }
14055 void SourceCodeInfo::InternalSwap(SourceCodeInfo* other) {
14056 location_.UnsafeArenaSwap(&other->location_);
14057 std::swap(_has_bits_[0], other->_has_bits_[0]);
14058 _internal_metadata_.Swap(&other->_internal_metadata_);
14059 std::swap(_cached_size_, other->_cached_size_);
14060 }
14061
14062 ::google::protobuf::Metadata SourceCodeInfo::GetMetadata() const {
14063 protobuf_AssignDescriptorsOnce();
14064 ::google::protobuf::Metadata metadata;
14065 metadata.descriptor = SourceCodeInfo_descriptor_;
14066 metadata.reflection = SourceCodeInfo_reflection_;
14067 return metadata;
14068 } 14041 }
14069 14042
14070 #if PROTOBUF_INLINE_NOT_IN_HEADERS 14043 #if PROTOBUF_INLINE_NOT_IN_HEADERS
14071 // SourceCodeInfo_Location 14044 // SourceCodeInfo_Location
14072 14045
14073 // repeated int32 path = 1 [packed = true]; 14046 // repeated int32 path = 1 [packed = true];
14074 int SourceCodeInfo_Location::path_size() const { 14047 int SourceCodeInfo_Location::path_size() const {
14075 return path_.size(); 14048 return path_.size();
14076 } 14049 }
14077 void SourceCodeInfo_Location::clear_path() { 14050 void SourceCodeInfo_Location::clear_path() {
14078 path_.Clear(); 14051 path_.Clear();
14079 } 14052 }
14080 ::google::protobuf::int32 SourceCodeInfo_Location::path(int index) const { 14053 ::google::protobuf::int32 SourceCodeInfo_Location::path(int index) const {
14081 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location. path) 14054 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location. path)
14082 return path_.Get(index); 14055 return path_.Get(index);
14083 } 14056 }
14084 void SourceCodeInfo_Location::set_path(int index, ::google::protobuf::int32 val ue) { 14057 void SourceCodeInfo_Location::set_path(int index, ::google::protobuf::int32 valu e) {
14085 path_.Set(index, value); 14058 path_.Set(index, value);
14086 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location. path) 14059 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location. path)
14087 } 14060 }
14088 void SourceCodeInfo_Location::add_path(::google::protobuf::int32 value) { 14061 void SourceCodeInfo_Location::add_path(::google::protobuf::int32 value) {
14089 path_.Add(value); 14062 path_.Add(value);
14090 // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location. path) 14063 // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location. path)
14091 } 14064 }
14092 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& 14065 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
14093 SourceCodeInfo_Location::path() const { 14066 SourceCodeInfo_Location::path() const {
14094 // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location .path) 14067 // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location .path)
14095 return path_; 14068 return path_;
14096 } 14069 }
14097 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* 14070 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
14098 SourceCodeInfo_Location::mutable_path() { 14071 SourceCodeInfo_Location::mutable_path() {
14099 // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo. Location.path) 14072 // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo. Location.path)
14100 return &path_; 14073 return &path_;
14101 } 14074 }
14102 14075
14103 // repeated int32 span = 2 [packed = true]; 14076 // repeated int32 span = 2 [packed = true];
14104 int SourceCodeInfo_Location::span_size() const { 14077 int SourceCodeInfo_Location::span_size() const {
14105 return span_.size(); 14078 return span_.size();
14106 } 14079 }
14107 void SourceCodeInfo_Location::clear_span() { 14080 void SourceCodeInfo_Location::clear_span() {
14108 span_.Clear(); 14081 span_.Clear();
14109 } 14082 }
14110 ::google::protobuf::int32 SourceCodeInfo_Location::span(int index) const { 14083 ::google::protobuf::int32 SourceCodeInfo_Location::span(int index) const {
14111 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location. span) 14084 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location. span)
14112 return span_.Get(index); 14085 return span_.Get(index);
14113 } 14086 }
14114 void SourceCodeInfo_Location::set_span(int index, ::google::protobuf::int32 val ue) { 14087 void SourceCodeInfo_Location::set_span(int index, ::google::protobuf::int32 valu e) {
14115 span_.Set(index, value); 14088 span_.Set(index, value);
14116 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location. span) 14089 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location. span)
14117 } 14090 }
14118 void SourceCodeInfo_Location::add_span(::google::protobuf::int32 value) { 14091 void SourceCodeInfo_Location::add_span(::google::protobuf::int32 value) {
14119 span_.Add(value); 14092 span_.Add(value);
14120 // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location. span) 14093 // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location. span)
14121 } 14094 }
14122 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& 14095 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
14123 SourceCodeInfo_Location::span() const { 14096 SourceCodeInfo_Location::span() const {
14124 // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location .span) 14097 // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location .span)
14125 return span_; 14098 return span_;
14126 } 14099 }
14127 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* 14100 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
14128 SourceCodeInfo_Location::mutable_span() { 14101 SourceCodeInfo_Location::mutable_span() {
14129 // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo. Location.span) 14102 // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo. Location.span)
14130 return &span_; 14103 return &span_;
14131 } 14104 }
14132 14105
14133 // optional string leading_comments = 3; 14106 // optional string leading_comments = 3;
14134 bool SourceCodeInfo_Location::has_leading_comments() const { 14107 bool SourceCodeInfo_Location::has_leading_comments() const {
14135 return (_has_bits_[0] & 0x00000004u) != 0; 14108 return (_has_bits_[0] & 0x00000001u) != 0;
14136 } 14109 }
14137 void SourceCodeInfo_Location::set_has_leading_comments() { 14110 void SourceCodeInfo_Location::set_has_leading_comments() {
14138 _has_bits_[0] |= 0x00000004u; 14111 _has_bits_[0] |= 0x00000001u;
14139 } 14112 }
14140 void SourceCodeInfo_Location::clear_has_leading_comments() { 14113 void SourceCodeInfo_Location::clear_has_leading_comments() {
14141 _has_bits_[0] &= ~0x00000004u; 14114 _has_bits_[0] &= ~0x00000001u;
14142 } 14115 }
14143 void SourceCodeInfo_Location::clear_leading_comments() { 14116 void SourceCodeInfo_Location::clear_leading_comments() {
14144 leading_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyS tringAlreadyInited()); 14117 leading_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyS tringAlreadyInited());
14145 clear_has_leading_comments(); 14118 clear_has_leading_comments();
14146 } 14119 }
14147 const ::std::string& SourceCodeInfo_Location::leading_comments() const { 14120 const ::std::string& SourceCodeInfo_Location::leading_comments() const {
14148 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location. leading_comments) 14121 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location. leading_comments)
14149 return leading_comments_.GetNoArena(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited()); 14122 return leading_comments_.GetNoArena();
14150 } 14123 }
14151 void SourceCodeInfo_Location::set_leading_comments(const ::std::string& value) { 14124 void SourceCodeInfo_Location::set_leading_comments(const ::std::string& value) {
14152 set_has_leading_comments(); 14125 set_has_leading_comments();
14153 leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), value); 14126 leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), value);
14154 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location. leading_comments) 14127 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location. leading_comments)
14155 } 14128 }
14156 void SourceCodeInfo_Location::set_leading_comments(const char* value) { 14129 void SourceCodeInfo_Location::set_leading_comments(const char* value) {
14157 set_has_leading_comments(); 14130 set_has_leading_comments();
14158 leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), ::std::string(value)); 14131 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) 14132 // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Loca tion.leading_comments)
14160 } 14133 }
14161 void SourceCodeInfo_Location::set_leading_comments(const char* value, size_t si ze) { 14134 void SourceCodeInfo_Location::set_leading_comments(const char* value, size_t siz e) {
14162 set_has_leading_comments(); 14135 set_has_leading_comments();
14163 leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(), 14136 leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited(),
14164 ::std::string(reinterpret_cast<const char*>(value), size)); 14137 ::std::string(reinterpret_cast<const char*>(value), size));
14165 // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.L ocation.leading_comments) 14138 // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.L ocation.leading_comments)
14166 } 14139 }
14167 ::std::string* SourceCodeInfo_Location::mutable_leading_comments() { 14140 ::std::string* SourceCodeInfo_Location::mutable_leading_comments() {
14168 set_has_leading_comments(); 14141 set_has_leading_comments();
14169 // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Locat ion.leading_comments) 14142 // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Locat ion.leading_comments)
14170 return leading_comments_.MutableNoArena(&::google::protobuf::internal::GetEmpt yStringAlreadyInited()); 14143 return leading_comments_.MutableNoArena(&::google::protobuf::internal::GetEmpt yStringAlreadyInited());
14171 } 14144 }
14172 ::std::string* SourceCodeInfo_Location::release_leading_comments() { 14145 ::std::string* SourceCodeInfo_Location::release_leading_comments() {
14173 // @@protoc_insertion_point(field_release:google.protobuf.SourceCodeInfo.Locat ion.leading_comments) 14146 // @@protoc_insertion_point(field_release:google.protobuf.SourceCodeInfo.Locat ion.leading_comments)
14174 clear_has_leading_comments(); 14147 clear_has_leading_comments();
14175 return leading_comments_.ReleaseNoArena(&::google::protobuf::internal::GetEmpt yStringAlreadyInited()); 14148 return leading_comments_.ReleaseNoArena(&::google::protobuf::internal::GetEmpt yStringAlreadyInited());
14176 } 14149 }
14177 void SourceCodeInfo_Location::set_allocated_leading_comments(::std::string* lea ding_comments) { 14150 void SourceCodeInfo_Location::set_allocated_leading_comments(::std::string* lead ing_comments) {
14178 if (leading_comments != NULL) { 14151 if (leading_comments != NULL) {
14179 set_has_leading_comments(); 14152 set_has_leading_comments();
14180 } else { 14153 } else {
14181 clear_has_leading_comments(); 14154 clear_has_leading_comments();
14182 } 14155 }
14183 leading_comments_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyS tringAlreadyInited(), leading_comments); 14156 leading_comments_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyS tringAlreadyInited(), leading_comments);
14184 // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceCodeInfo .Location.leading_comments) 14157 // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceCodeInfo .Location.leading_comments)
14185 } 14158 }
14186 14159
14187 // optional string trailing_comments = 4; 14160 // optional string trailing_comments = 4;
14188 bool SourceCodeInfo_Location::has_trailing_comments() const { 14161 bool SourceCodeInfo_Location::has_trailing_comments() const {
14189 return (_has_bits_[0] & 0x00000008u) != 0; 14162 return (_has_bits_[0] & 0x00000002u) != 0;
14190 } 14163 }
14191 void SourceCodeInfo_Location::set_has_trailing_comments() { 14164 void SourceCodeInfo_Location::set_has_trailing_comments() {
14192 _has_bits_[0] |= 0x00000008u; 14165 _has_bits_[0] |= 0x00000002u;
14193 } 14166 }
14194 void SourceCodeInfo_Location::clear_has_trailing_comments() { 14167 void SourceCodeInfo_Location::clear_has_trailing_comments() {
14195 _has_bits_[0] &= ~0x00000008u; 14168 _has_bits_[0] &= ~0x00000002u;
14196 } 14169 }
14197 void SourceCodeInfo_Location::clear_trailing_comments() { 14170 void SourceCodeInfo_Location::clear_trailing_comments() {
14198 trailing_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited()); 14171 trailing_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited());
14199 clear_has_trailing_comments(); 14172 clear_has_trailing_comments();
14200 } 14173 }
14201 const ::std::string& SourceCodeInfo_Location::trailing_comments() const { 14174 const ::std::string& SourceCodeInfo_Location::trailing_comments() const {
14202 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location. trailing_comments) 14175 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location. trailing_comments)
14203 return trailing_comments_.GetNoArena(&::google::protobuf::internal::GetEmptySt ringAlreadyInited()); 14176 return trailing_comments_.GetNoArena();
14204 } 14177 }
14205 void SourceCodeInfo_Location::set_trailing_comments(const ::std::string& value) { 14178 void SourceCodeInfo_Location::set_trailing_comments(const ::std::string& value) {
14206 set_has_trailing_comments(); 14179 set_has_trailing_comments();
14207 trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), value); 14180 trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), value);
14208 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location. trailing_comments) 14181 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location. trailing_comments)
14209 } 14182 }
14210 void SourceCodeInfo_Location::set_trailing_comments(const char* value) { 14183 void SourceCodeInfo_Location::set_trailing_comments(const char* value) {
14211 set_has_trailing_comments(); 14184 set_has_trailing_comments();
14212 trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), ::std::string(value)); 14185 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) 14186 // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Loca tion.trailing_comments)
14214 } 14187 }
14215 void SourceCodeInfo_Location::set_trailing_comments(const char* value, size_t s ize) { 14188 void SourceCodeInfo_Location::set_trailing_comments(const char* value, size_t si ze) {
14216 set_has_trailing_comments(); 14189 set_has_trailing_comments();
14217 trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), 14190 trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(),
14218 ::std::string(reinterpret_cast<const char*>(value), size)); 14191 ::std::string(reinterpret_cast<const char*>(value), size));
14219 // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.L ocation.trailing_comments) 14192 // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.L ocation.trailing_comments)
14220 } 14193 }
14221 ::std::string* SourceCodeInfo_Location::mutable_trailing_comments() { 14194 ::std::string* SourceCodeInfo_Location::mutable_trailing_comments() {
14222 set_has_trailing_comments(); 14195 set_has_trailing_comments();
14223 // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Locat ion.trailing_comments) 14196 // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Locat ion.trailing_comments)
14224 return trailing_comments_.MutableNoArena(&::google::protobuf::internal::GetEmp tyStringAlreadyInited()); 14197 return trailing_comments_.MutableNoArena(&::google::protobuf::internal::GetEmp tyStringAlreadyInited());
14225 } 14198 }
14226 ::std::string* SourceCodeInfo_Location::release_trailing_comments() { 14199 ::std::string* SourceCodeInfo_Location::release_trailing_comments() {
14227 // @@protoc_insertion_point(field_release:google.protobuf.SourceCodeInfo.Locat ion.trailing_comments) 14200 // @@protoc_insertion_point(field_release:google.protobuf.SourceCodeInfo.Locat ion.trailing_comments)
14228 clear_has_trailing_comments(); 14201 clear_has_trailing_comments();
14229 return trailing_comments_.ReleaseNoArena(&::google::protobuf::internal::GetEmp tyStringAlreadyInited()); 14202 return trailing_comments_.ReleaseNoArena(&::google::protobuf::internal::GetEmp tyStringAlreadyInited());
14230 } 14203 }
14231 void SourceCodeInfo_Location::set_allocated_trailing_comments(::std::string* tr ailing_comments) { 14204 void SourceCodeInfo_Location::set_allocated_trailing_comments(::std::string* tra iling_comments) {
14232 if (trailing_comments != NULL) { 14205 if (trailing_comments != NULL) {
14233 set_has_trailing_comments(); 14206 set_has_trailing_comments();
14234 } else { 14207 } else {
14235 clear_has_trailing_comments(); 14208 clear_has_trailing_comments();
14236 } 14209 }
14237 trailing_comments_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited(), trailing_comments); 14210 trailing_comments_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmpty StringAlreadyInited(), trailing_comments);
14238 // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceCodeInfo .Location.trailing_comments) 14211 // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceCodeInfo .Location.trailing_comments)
14239 } 14212 }
14240 14213
14241 // repeated string leading_detached_comments = 6; 14214 // repeated string leading_detached_comments = 6;
14242 int SourceCodeInfo_Location::leading_detached_comments_size() const { 14215 int SourceCodeInfo_Location::leading_detached_comments_size() const {
14243 return leading_detached_comments_.size(); 14216 return leading_detached_comments_.size();
14244 } 14217 }
14245 void SourceCodeInfo_Location::clear_leading_detached_comments() { 14218 void SourceCodeInfo_Location::clear_leading_detached_comments() {
14246 leading_detached_comments_.Clear(); 14219 leading_detached_comments_.Clear();
14247 } 14220 }
14248 const ::std::string& SourceCodeInfo_Location::leading_detached_comments(int ind ex) const { 14221 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) 14222 // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location. leading_detached_comments)
14250 return leading_detached_comments_.Get(index); 14223 return leading_detached_comments_.Get(index);
14251 } 14224 }
14252 ::std::string* SourceCodeInfo_Location::mutable_leading_detached_comments(int i ndex) { 14225 ::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) 14226 // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Locat ion.leading_detached_comments)
14254 return leading_detached_comments_.Mutable(index); 14227 return leading_detached_comments_.Mutable(index);
14255 } 14228 }
14256 void SourceCodeInfo_Location::set_leading_detached_comments(int index, const :: std::string& value) { 14229 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) 14230 // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location. leading_detached_comments)
14258 leading_detached_comments_.Mutable(index)->assign(value); 14231 leading_detached_comments_.Mutable(index)->assign(value);
14259 } 14232 }
14260 void SourceCodeInfo_Location::set_leading_detached_comments(int index, const ch ar* value) { 14233 void SourceCodeInfo_Location::set_leading_detached_comments(int index, const cha r* value) {
14261 leading_detached_comments_.Mutable(index)->assign(value); 14234 leading_detached_comments_.Mutable(index)->assign(value);
14262 // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Loca tion.leading_detached_comments) 14235 // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Loca tion.leading_detached_comments)
14263 } 14236 }
14264 void SourceCodeInfo_Location::set_leading_detached_comments(int index, const ch ar* value, size_t size) { 14237 void SourceCodeInfo_Location::set_leading_detached_comments(int index, const cha r* value, size_t size) {
14265 leading_detached_comments_.Mutable(index)->assign( 14238 leading_detached_comments_.Mutable(index)->assign(
14266 reinterpret_cast<const char*>(value), size); 14239 reinterpret_cast<const char*>(value), size);
14267 // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.L ocation.leading_detached_comments) 14240 // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.L ocation.leading_detached_comments)
14268 } 14241 }
14269 ::std::string* SourceCodeInfo_Location::add_leading_detached_comments() { 14242 ::std::string* SourceCodeInfo_Location::add_leading_detached_comments() {
14270 // @@protoc_insertion_point(field_add_mutable:google.protobuf.SourceCodeInfo.L ocation.leading_detached_comments) 14243 // @@protoc_insertion_point(field_add_mutable:google.protobuf.SourceCodeInfo.L ocation.leading_detached_comments)
14271 return leading_detached_comments_.Add(); 14244 return leading_detached_comments_.Add();
14272 } 14245 }
14273 void SourceCodeInfo_Location::add_leading_detached_comments(const ::std::string & value) { 14246 void SourceCodeInfo_Location::add_leading_detached_comments(const ::std::string& value) {
14274 leading_detached_comments_.Add()->assign(value); 14247 leading_detached_comments_.Add()->assign(value);
14275 // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location. leading_detached_comments) 14248 // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location. leading_detached_comments)
14276 } 14249 }
14277 void SourceCodeInfo_Location::add_leading_detached_comments(const char* value) { 14250 void SourceCodeInfo_Location::add_leading_detached_comments(const char* value) {
14278 leading_detached_comments_.Add()->assign(value); 14251 leading_detached_comments_.Add()->assign(value);
14279 // @@protoc_insertion_point(field_add_char:google.protobuf.SourceCodeInfo.Loca tion.leading_detached_comments) 14252 // @@protoc_insertion_point(field_add_char:google.protobuf.SourceCodeInfo.Loca tion.leading_detached_comments)
14280 } 14253 }
14281 void SourceCodeInfo_Location::add_leading_detached_comments(const char* value, size_t size) { 14254 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); 14255 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) 14256 // @@protoc_insertion_point(field_add_pointer:google.protobuf.SourceCodeInfo.L ocation.leading_detached_comments)
14284 } 14257 }
14285 const ::google::protobuf::RepeatedPtrField< ::std::string>& 14258 const ::google::protobuf::RepeatedPtrField< ::std::string>&
14286 SourceCodeInfo_Location::leading_detached_comments() const { 14259 SourceCodeInfo_Location::leading_detached_comments() const {
14287 // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location .leading_detached_comments) 14260 // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location .leading_detached_comments)
14288 return leading_detached_comments_; 14261 return leading_detached_comments_;
14289 } 14262 }
14290 ::google::protobuf::RepeatedPtrField< ::std::string>* 14263 ::google::protobuf::RepeatedPtrField< ::std::string>*
14291 SourceCodeInfo_Location::mutable_leading_detached_comments() { 14264 SourceCodeInfo_Location::mutable_leading_detached_comments() {
14292 // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo. Location.leading_detached_comments) 14265 // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo. Location.leading_detached_comments)
14293 return &leading_detached_comments_; 14266 return &leading_detached_comments_;
14294 } 14267 }
14295 14268
14296 // ------------------------------------------------------------------- 14269 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
14297 14270
14271 // ===================================================================
14272
14273 #if !defined(_MSC_VER) || _MSC_VER >= 1900
14274 const int SourceCodeInfo::kLocationFieldNumber;
14275 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
14276
14277 SourceCodeInfo::SourceCodeInfo()
14278 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
14279 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
14280 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
14281 }
14282 SharedCtor();
14283 // @@protoc_insertion_point(constructor:google.protobuf.SourceCodeInfo)
14284 }
14285 SourceCodeInfo::SourceCodeInfo(const SourceCodeInfo& from)
14286 : ::google::protobuf::Message(),
14287 _internal_metadata_(NULL),
14288 _has_bits_(from._has_bits_),
14289 _cached_size_(0),
14290 location_(from.location_) {
14291 _internal_metadata_.MergeFrom(from._internal_metadata_);
14292 // @@protoc_insertion_point(copy_constructor:google.protobuf.SourceCodeInfo)
14293 }
14294
14295 void SourceCodeInfo::SharedCtor() {
14296 _cached_size_ = 0;
14297 }
14298
14299 SourceCodeInfo::~SourceCodeInfo() {
14300 // @@protoc_insertion_point(destructor:google.protobuf.SourceCodeInfo)
14301 SharedDtor();
14302 }
14303
14304 void SourceCodeInfo::SharedDtor() {
14305 }
14306
14307 void SourceCodeInfo::SetCachedSize(int size) const {
14308 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
14309 _cached_size_ = size;
14310 GOOGLE_SAFE_CONCURRENT_WRITES_END();
14311 }
14312 const ::google::protobuf::Descriptor* SourceCodeInfo::descriptor() {
14313 protobuf_AssignDescriptorsOnce();
14314 return file_level_metadata[22].descriptor;
14315 }
14316
14317 const SourceCodeInfo& SourceCodeInfo::default_instance() {
14318 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
14319 return *internal_default_instance();
14320 }
14321
14322 SourceCodeInfo* SourceCodeInfo::New(::google::protobuf::Arena* arena) const {
14323 SourceCodeInfo* n = new SourceCodeInfo;
14324 if (arena != NULL) {
14325 arena->Own(n);
14326 }
14327 return n;
14328 }
14329
14330 void SourceCodeInfo::Clear() {
14331 // @@protoc_insertion_point(message_clear_start:google.protobuf.SourceCodeInfo)
14332 location_.Clear();
14333 _has_bits_.Clear();
14334 _internal_metadata_.Clear();
14335 }
14336
14337 bool SourceCodeInfo::MergePartialFromCodedStream(
14338 ::google::protobuf::io::CodedInputStream* input) {
14339 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
14340 ::google::protobuf::uint32 tag;
14341 // @@protoc_insertion_point(parse_start:google.protobuf.SourceCodeInfo)
14342 for (;;) {
14343 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u);
14344 tag = p.first;
14345 if (!p.second) goto handle_unusual;
14346 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
14347 // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
14348 case 1: {
14349 if (tag == 10u) {
14350 DO_(input->IncrementRecursionDepth());
14351 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
14352 input, add_location()));
14353 } else {
14354 goto handle_unusual;
14355 }
14356 input->UnsafeDecrementRecursionDepth();
14357 break;
14358 }
14359
14360 default: {
14361 handle_unusual:
14362 if (tag == 0 ||
14363 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
14364 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
14365 goto success;
14366 }
14367 DO_(::google::protobuf::internal::WireFormat::SkipField(
14368 input, tag, mutable_unknown_fields()));
14369 break;
14370 }
14371 }
14372 }
14373 success:
14374 // @@protoc_insertion_point(parse_success:google.protobuf.SourceCodeInfo)
14375 return true;
14376 failure:
14377 // @@protoc_insertion_point(parse_failure:google.protobuf.SourceCodeInfo)
14378 return false;
14379 #undef DO_
14380 }
14381
14382 void SourceCodeInfo::SerializeWithCachedSizes(
14383 ::google::protobuf::io::CodedOutputStream* output) const {
14384 // @@protoc_insertion_point(serialize_start:google.protobuf.SourceCodeInfo)
14385 // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
14386 for (unsigned int i = 0, n = this->location_size(); i < n; i++) {
14387 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
14388 1, this->location(i), output);
14389 }
14390
14391 if (_internal_metadata_.have_unknown_fields()) {
14392 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
14393 unknown_fields(), output);
14394 }
14395 // @@protoc_insertion_point(serialize_end:google.protobuf.SourceCodeInfo)
14396 }
14397
14398 ::google::protobuf::uint8* SourceCodeInfo::InternalSerializeWithCachedSizesToArr ay(
14399 bool deterministic, ::google::protobuf::uint8* target) const {
14400 (void)deterministic; // Unused
14401 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.SourceCod eInfo)
14402 // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
14403 for (unsigned int i = 0, n = this->location_size(); i < n; i++) {
14404 target = ::google::protobuf::internal::WireFormatLite::
14405 InternalWriteMessageNoVirtualToArray(
14406 1, this->location(i), false, target);
14407 }
14408
14409 if (_internal_metadata_.have_unknown_fields()) {
14410 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
14411 unknown_fields(), target);
14412 }
14413 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.SourceCodeI nfo)
14414 return target;
14415 }
14416
14417 size_t SourceCodeInfo::ByteSizeLong() const {
14418 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.SourceCodeIn fo)
14419 size_t total_size = 0;
14420
14421 if (_internal_metadata_.have_unknown_fields()) {
14422 total_size +=
14423 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
14424 unknown_fields());
14425 }
14426 // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
14427 {
14428 unsigned int count = this->location_size();
14429 total_size += 1UL * count;
14430 for (unsigned int i = 0; i < count; i++) {
14431 total_size +=
14432 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
14433 this->location(i));
14434 }
14435 }
14436
14437 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
14438 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
14439 _cached_size_ = cached_size;
14440 GOOGLE_SAFE_CONCURRENT_WRITES_END();
14441 return total_size;
14442 }
14443
14444 void SourceCodeInfo::MergeFrom(const ::google::protobuf::Message& from) {
14445 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.SourceC odeInfo)
14446 GOOGLE_DCHECK_NE(&from, this);
14447 const SourceCodeInfo* source =
14448 ::google::protobuf::internal::DynamicCastToGenerated<const SourceCodeInfo> (
14449 &from);
14450 if (source == NULL) {
14451 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.S ourceCodeInfo)
14452 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
14453 } else {
14454 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.SourceCodeInfo)
14455 MergeFrom(*source);
14456 }
14457 }
14458
14459 void SourceCodeInfo::MergeFrom(const SourceCodeInfo& from) {
14460 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Sour ceCodeInfo)
14461 GOOGLE_DCHECK_NE(&from, this);
14462 _internal_metadata_.MergeFrom(from._internal_metadata_);
14463 location_.MergeFrom(from.location_);
14464 }
14465
14466 void SourceCodeInfo::CopyFrom(const ::google::protobuf::Message& from) {
14467 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.SourceCo deInfo)
14468 if (&from == this) return;
14469 Clear();
14470 MergeFrom(from);
14471 }
14472
14473 void SourceCodeInfo::CopyFrom(const SourceCodeInfo& from) {
14474 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Sourc eCodeInfo)
14475 if (&from == this) return;
14476 Clear();
14477 MergeFrom(from);
14478 }
14479
14480 bool SourceCodeInfo::IsInitialized() const {
14481 return true;
14482 }
14483
14484 void SourceCodeInfo::Swap(SourceCodeInfo* other) {
14485 if (other == this) return;
14486 InternalSwap(other);
14487 }
14488 void SourceCodeInfo::InternalSwap(SourceCodeInfo* other) {
14489 location_.UnsafeArenaSwap(&other->location_);
14490 std::swap(_has_bits_[0], other->_has_bits_[0]);
14491 _internal_metadata_.Swap(&other->_internal_metadata_);
14492 std::swap(_cached_size_, other->_cached_size_);
14493 }
14494
14495 ::google::protobuf::Metadata SourceCodeInfo::GetMetadata() const {
14496 protobuf_AssignDescriptorsOnce();
14497 return file_level_metadata[22];
14498 }
14499
14500 #if PROTOBUF_INLINE_NOT_IN_HEADERS
14298 // SourceCodeInfo 14501 // SourceCodeInfo
14299 14502
14300 // repeated .google.protobuf.SourceCodeInfo.Location location = 1; 14503 // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
14301 int SourceCodeInfo::location_size() const { 14504 int SourceCodeInfo::location_size() const {
14302 return location_.size(); 14505 return location_.size();
14303 } 14506 }
14304 void SourceCodeInfo::clear_location() { 14507 void SourceCodeInfo::clear_location() {
14305 location_.Clear(); 14508 location_.Clear();
14306 } 14509 }
14307 const ::google::protobuf::SourceCodeInfo_Location& SourceCodeInfo::location(int index) const { 14510 const ::google::protobuf::SourceCodeInfo_Location& SourceCodeInfo::location(int index) const {
(...skipping 25 matching lines...) Expand all
14333 14536
14334 #if !defined(_MSC_VER) || _MSC_VER >= 1900 14537 #if !defined(_MSC_VER) || _MSC_VER >= 1900
14335 const int GeneratedCodeInfo_Annotation::kPathFieldNumber; 14538 const int GeneratedCodeInfo_Annotation::kPathFieldNumber;
14336 const int GeneratedCodeInfo_Annotation::kSourceFileFieldNumber; 14539 const int GeneratedCodeInfo_Annotation::kSourceFileFieldNumber;
14337 const int GeneratedCodeInfo_Annotation::kBeginFieldNumber; 14540 const int GeneratedCodeInfo_Annotation::kBeginFieldNumber;
14338 const int GeneratedCodeInfo_Annotation::kEndFieldNumber; 14541 const int GeneratedCodeInfo_Annotation::kEndFieldNumber;
14339 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 14542 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
14340 14543
14341 GeneratedCodeInfo_Annotation::GeneratedCodeInfo_Annotation() 14544 GeneratedCodeInfo_Annotation::GeneratedCodeInfo_Annotation()
14342 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 14545 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
14546 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
14547 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
14548 }
14343 SharedCtor(); 14549 SharedCtor();
14344 // @@protoc_insertion_point(constructor:google.protobuf.GeneratedCodeInfo.Anno tation) 14550 // @@protoc_insertion_point(constructor:google.protobuf.GeneratedCodeInfo.Anno tation)
14345 } 14551 }
14346
14347 void GeneratedCodeInfo_Annotation::InitAsDefaultInstance() {
14348 }
14349
14350 GeneratedCodeInfo_Annotation::GeneratedCodeInfo_Annotation(const GeneratedCodeIn fo_Annotation& from) 14552 GeneratedCodeInfo_Annotation::GeneratedCodeInfo_Annotation(const GeneratedCodeIn fo_Annotation& from)
14351 : ::google::protobuf::Message(), 14553 : ::google::protobuf::Message(),
14352 _internal_metadata_(NULL) { 14554 _internal_metadata_(NULL),
14353 SharedCtor(); 14555 _has_bits_(from._has_bits_),
14354 MergeFrom(from); 14556 _cached_size_(0),
14557 path_(from.path_) {
14558 _internal_metadata_.MergeFrom(from._internal_metadata_);
14559 source_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlr eadyInited());
14560 if (from.has_source_file()) {
14561 source_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyString AlreadyInited(), from.source_file_);
14562 }
14563 ::memcpy(&begin_, &from.begin_,
14564 reinterpret_cast<char*>(&end_) -
14565 reinterpret_cast<char*>(&begin_) + sizeof(end_));
14355 // @@protoc_insertion_point(copy_constructor:google.protobuf.GeneratedCodeInfo .Annotation) 14566 // @@protoc_insertion_point(copy_constructor:google.protobuf.GeneratedCodeInfo .Annotation)
14356 } 14567 }
14357 14568
14358 void GeneratedCodeInfo_Annotation::SharedCtor() { 14569 void GeneratedCodeInfo_Annotation::SharedCtor() {
14359 ::google::protobuf::internal::GetEmptyString();
14360 _cached_size_ = 0; 14570 _cached_size_ = 0;
14361 source_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlr eadyInited()); 14571 source_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlr eadyInited());
14362 begin_ = 0; 14572 ::memset(&begin_, 0, reinterpret_cast<char*>(&end_) -
14363 end_ = 0; 14573 reinterpret_cast<char*>(&begin_) + sizeof(end_));
14364 ::memset(_has_bits_, 0, sizeof(_has_bits_));
14365 } 14574 }
14366 14575
14367 GeneratedCodeInfo_Annotation::~GeneratedCodeInfo_Annotation() { 14576 GeneratedCodeInfo_Annotation::~GeneratedCodeInfo_Annotation() {
14368 // @@protoc_insertion_point(destructor:google.protobuf.GeneratedCodeInfo.Annot ation) 14577 // @@protoc_insertion_point(destructor:google.protobuf.GeneratedCodeInfo.Annot ation)
14369 SharedDtor(); 14578 SharedDtor();
14370 } 14579 }
14371 14580
14372 void GeneratedCodeInfo_Annotation::SharedDtor() { 14581 void GeneratedCodeInfo_Annotation::SharedDtor() {
14373 source_file_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 14582 source_file_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
14374 if (this != default_instance_) {
14375 }
14376 } 14583 }
14377 14584
14378 void GeneratedCodeInfo_Annotation::SetCachedSize(int size) const { 14585 void GeneratedCodeInfo_Annotation::SetCachedSize(int size) const {
14379 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 14586 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
14380 _cached_size_ = size; 14587 _cached_size_ = size;
14381 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 14588 GOOGLE_SAFE_CONCURRENT_WRITES_END();
14382 } 14589 }
14383 const ::google::protobuf::Descriptor* GeneratedCodeInfo_Annotation::descriptor() { 14590 const ::google::protobuf::Descriptor* GeneratedCodeInfo_Annotation::descriptor() {
14384 protobuf_AssignDescriptorsOnce(); 14591 protobuf_AssignDescriptorsOnce();
14385 return GeneratedCodeInfo_Annotation_descriptor_; 14592 return file_level_metadata[23].descriptor;
14386 } 14593 }
14387 14594
14388 const GeneratedCodeInfo_Annotation& GeneratedCodeInfo_Annotation::default_instan ce() { 14595 const GeneratedCodeInfo_Annotation& GeneratedCodeInfo_Annotation::default_instan ce() {
14389 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 14596 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
14390 return *default_instance_; 14597 return *internal_default_instance();
14391 } 14598 }
14392 14599
14393 GeneratedCodeInfo_Annotation* GeneratedCodeInfo_Annotation::default_instance_ = NULL;
14394
14395 GeneratedCodeInfo_Annotation* GeneratedCodeInfo_Annotation::New(::google::protob uf::Arena* arena) const { 14600 GeneratedCodeInfo_Annotation* GeneratedCodeInfo_Annotation::New(::google::protob uf::Arena* arena) const {
14396 GeneratedCodeInfo_Annotation* n = new GeneratedCodeInfo_Annotation; 14601 GeneratedCodeInfo_Annotation* n = new GeneratedCodeInfo_Annotation;
14397 if (arena != NULL) { 14602 if (arena != NULL) {
14398 arena->Own(n); 14603 arena->Own(n);
14399 } 14604 }
14400 return n; 14605 return n;
14401 } 14606 }
14402 14607
14403 void GeneratedCodeInfo_Annotation::Clear() { 14608 void GeneratedCodeInfo_Annotation::Clear() {
14404 // @@protoc_insertion_point(message_clear_start:google.protobuf.GeneratedCodeInf o.Annotation) 14609 // @@protoc_insertion_point(message_clear_start:google.protobuf.GeneratedCodeInf o.Annotation)
14405 #if defined(__clang__) 14610 path_.Clear();
14406 #define ZR_HELPER_(f) \ 14611 if (has_source_file()) {
14407 _Pragma("clang diagnostic push") \ 14612 GOOGLE_DCHECK(!source_file_.IsDefault(&::google::protobuf::internal::GetEmpt yStringAlreadyInited()));
14408 _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ 14613 (*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 } 14614 }
14427 14615 if (_has_bits_[0 / 32] & 6u) {
14428 #undef ZR_HELPER_ 14616 ::memset(&begin_, 0, reinterpret_cast<char*>(&end_) -
14429 #undef ZR_ 14617 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 } 14618 }
14619 _has_bits_.Clear();
14620 _internal_metadata_.Clear();
14436 } 14621 }
14437 14622
14438 bool GeneratedCodeInfo_Annotation::MergePartialFromCodedStream( 14623 bool GeneratedCodeInfo_Annotation::MergePartialFromCodedStream(
14439 ::google::protobuf::io::CodedInputStream* input) { 14624 ::google::protobuf::io::CodedInputStream* input) {
14440 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 14625 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
14441 ::google::protobuf::uint32 tag; 14626 ::google::protobuf::uint32 tag;
14442 // @@protoc_insertion_point(parse_start:google.protobuf.GeneratedCodeInfo.Anno tation) 14627 // @@protoc_insertion_point(parse_start:google.protobuf.GeneratedCodeInfo.Anno tation)
14443 for (;;) { 14628 for (;;) {
14444 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127); 14629 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u);
14445 tag = p.first; 14630 tag = p.first;
14446 if (!p.second) goto handle_unusual; 14631 if (!p.second) goto handle_unusual;
14447 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 14632 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
14448 // repeated int32 path = 1 [packed = true]; 14633 // repeated int32 path = 1 [packed = true];
14449 case 1: { 14634 case 1: {
14450 if (tag == 10) { 14635 if (tag == 10u) {
14451 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive < 14636 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive <
14452 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>( 14637 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
14453 input, this->mutable_path()))); 14638 input, this->mutable_path())));
14454 } else if (tag == 8) { 14639 } else if (tag == 8u) {
14455 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimiti veNoInline< 14640 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimiti veNoInline<
14456 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>( 14641 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
14457 1, 10, input, this->mutable_path()))); 14642 1, 10u, input, this->mutable_path())));
14458 } else { 14643 } else {
14459 goto handle_unusual; 14644 goto handle_unusual;
14460 } 14645 }
14461 if (input->ExpectTag(18)) goto parse_source_file;
14462 break; 14646 break;
14463 } 14647 }
14464 14648
14465 // optional string source_file = 2; 14649 // optional string source_file = 2;
14466 case 2: { 14650 case 2: {
14467 if (tag == 18) { 14651 if (tag == 18u) {
14468 parse_source_file:
14469 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 14652 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
14470 input, this->mutable_source_file())); 14653 input, this->mutable_source_file()));
14471 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( 14654 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14472 this->source_file().data(), this->source_file().length(), 14655 this->source_file().data(), this->source_file().length(),
14473 ::google::protobuf::internal::WireFormat::PARSE, 14656 ::google::protobuf::internal::WireFormat::PARSE,
14474 "google.protobuf.GeneratedCodeInfo.Annotation.source_file"); 14657 "google.protobuf.GeneratedCodeInfo.Annotation.source_file");
14475 } else { 14658 } else {
14476 goto handle_unusual; 14659 goto handle_unusual;
14477 } 14660 }
14478 if (input->ExpectTag(24)) goto parse_begin;
14479 break; 14661 break;
14480 } 14662 }
14481 14663
14482 // optional int32 begin = 3; 14664 // optional int32 begin = 3;
14483 case 3: { 14665 case 3: {
14484 if (tag == 24) { 14666 if (tag == 24u) {
14485 parse_begin: 14667 set_has_begin();
14486 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 14668 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
14487 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>( 14669 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
14488 input, &begin_))); 14670 input, &begin_)));
14489 set_has_begin();
14490 } else { 14671 } else {
14491 goto handle_unusual; 14672 goto handle_unusual;
14492 } 14673 }
14493 if (input->ExpectTag(32)) goto parse_end;
14494 break; 14674 break;
14495 } 14675 }
14496 14676
14497 // optional int32 end = 4; 14677 // optional int32 end = 4;
14498 case 4: { 14678 case 4: {
14499 if (tag == 32) { 14679 if (tag == 32u) {
14500 parse_end: 14680 set_has_end();
14501 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 14681 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
14502 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>( 14682 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
14503 input, &end_))); 14683 input, &end_)));
14504 set_has_end();
14505 } else { 14684 } else {
14506 goto handle_unusual; 14685 goto handle_unusual;
14507 } 14686 }
14508 if (input->ExpectAtEnd()) goto success;
14509 break; 14687 break;
14510 } 14688 }
14511 14689
14512 default: { 14690 default: {
14513 handle_unusual: 14691 handle_unusual:
14514 if (tag == 0 || 14692 if (tag == 0 ||
14515 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 14693 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
14516 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 14694 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
14517 goto success; 14695 goto success;
14518 } 14696 }
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
14564 ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->end(), out put); 14742 ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->end(), out put);
14565 } 14743 }
14566 14744
14567 if (_internal_metadata_.have_unknown_fields()) { 14745 if (_internal_metadata_.have_unknown_fields()) {
14568 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 14746 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
14569 unknown_fields(), output); 14747 unknown_fields(), output);
14570 } 14748 }
14571 // @@protoc_insertion_point(serialize_end:google.protobuf.GeneratedCodeInfo.An notation) 14749 // @@protoc_insertion_point(serialize_end:google.protobuf.GeneratedCodeInfo.An notation)
14572 } 14750 }
14573 14751
14574 ::google::protobuf::uint8* GeneratedCodeInfo_Annotation::SerializeWithCachedSize sToArray( 14752 ::google::protobuf::uint8* GeneratedCodeInfo_Annotation::InternalSerializeWithCa chedSizesToArray(
14575 ::google::protobuf::uint8* target) const { 14753 bool deterministic, ::google::protobuf::uint8* target) const {
14754 (void)deterministic; // Unused
14576 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Generated CodeInfo.Annotation) 14755 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Generated CodeInfo.Annotation)
14577 // repeated int32 path = 1 [packed = true]; 14756 // repeated int32 path = 1 [packed = true];
14578 if (this->path_size() > 0) { 14757 if (this->path_size() > 0) {
14579 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( 14758 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
14580 1, 14759 1,
14581 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, 14760 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
14582 target); 14761 target);
14583 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( 14762 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
14584 _path_cached_byte_size_, target); 14763 _path_cached_byte_size_, target);
14585 } 14764 }
(...skipping 24 matching lines...) Expand all
14610 } 14789 }
14611 14790
14612 if (_internal_metadata_.have_unknown_fields()) { 14791 if (_internal_metadata_.have_unknown_fields()) {
14613 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 14792 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
14614 unknown_fields(), target); 14793 unknown_fields(), target);
14615 } 14794 }
14616 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.GeneratedCo deInfo.Annotation) 14795 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.GeneratedCo deInfo.Annotation)
14617 return target; 14796 return target;
14618 } 14797 }
14619 14798
14620 int GeneratedCodeInfo_Annotation::ByteSize() const { 14799 size_t GeneratedCodeInfo_Annotation::ByteSizeLong() const {
14621 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.GeneratedCod eInfo.Annotation) 14800 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.GeneratedCod eInfo.Annotation)
14622 int total_size = 0; 14801 size_t total_size = 0;
14623 14802
14624 if (_has_bits_[1 / 32] & 14u) { 14803 if (_internal_metadata_.have_unknown_fields()) {
14804 total_size +=
14805 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
14806 unknown_fields());
14807 }
14808 // repeated int32 path = 1 [packed = true];
14809 {
14810 size_t data_size = 0;
14811 unsigned int count = this->path_size();
14812 for (unsigned int i = 0; i < count; i++) {
14813 data_size += ::google::protobuf::internal::WireFormatLite::
14814 Int32Size(this->path(i));
14815 }
14816 if (data_size > 0) {
14817 total_size += 1 +
14818 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
14819 }
14820 int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
14821 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
14822 _path_cached_byte_size_ = cached_size;
14823 GOOGLE_SAFE_CONCURRENT_WRITES_END();
14824 total_size += data_size;
14825 }
14826
14827 if (_has_bits_[0 / 32] & 7u) {
14625 // optional string source_file = 2; 14828 // optional string source_file = 2;
14626 if (has_source_file()) { 14829 if (has_source_file()) {
14627 total_size += 1 + 14830 total_size += 1 +
14628 ::google::protobuf::internal::WireFormatLite::StringSize( 14831 ::google::protobuf::internal::WireFormatLite::StringSize(
14629 this->source_file()); 14832 this->source_file());
14630 } 14833 }
14631 14834
14632 // optional int32 begin = 3; 14835 // optional int32 begin = 3;
14633 if (has_begin()) { 14836 if (has_begin()) {
14634 total_size += 1 + 14837 total_size += 1 +
14635 ::google::protobuf::internal::WireFormatLite::Int32Size( 14838 ::google::protobuf::internal::WireFormatLite::Int32Size(
14636 this->begin()); 14839 this->begin());
14637 } 14840 }
14638 14841
14639 // optional int32 end = 4; 14842 // optional int32 end = 4;
14640 if (has_end()) { 14843 if (has_end()) {
14641 total_size += 1 + 14844 total_size += 1 +
14642 ::google::protobuf::internal::WireFormatLite::Int32Size( 14845 ::google::protobuf::internal::WireFormatLite::Int32Size(
14643 this->end()); 14846 this->end());
14644 } 14847 }
14645 14848
14646 } 14849 }
14647 // repeated int32 path = 1 [packed = true]; 14850 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(); 14851 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
14670 _cached_size_ = total_size; 14852 _cached_size_ = cached_size;
14671 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 14853 GOOGLE_SAFE_CONCURRENT_WRITES_END();
14672 return total_size; 14854 return total_size;
14673 } 14855 }
14674 14856
14675 void GeneratedCodeInfo_Annotation::MergeFrom(const ::google::protobuf::Message& from) { 14857 void GeneratedCodeInfo_Annotation::MergeFrom(const ::google::protobuf::Message& from) {
14676 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Generat edCodeInfo.Annotation) 14858 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Generat edCodeInfo.Annotation)
14677 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 14859 GOOGLE_DCHECK_NE(&from, this);
14678 const GeneratedCodeInfo_Annotation* source = 14860 const GeneratedCodeInfo_Annotation* source =
14679 ::google::protobuf::internal::DynamicCastToGenerated<const GeneratedCodeIn fo_Annotation>( 14861 ::google::protobuf::internal::DynamicCastToGenerated<const GeneratedCodeIn fo_Annotation>(
14680 &from); 14862 &from);
14681 if (source == NULL) { 14863 if (source == NULL) {
14682 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.G eneratedCodeInfo.Annotation) 14864 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.G eneratedCodeInfo.Annotation)
14683 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 14865 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
14684 } else { 14866 } else {
14685 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.GeneratedCodeInfo.Annotation) 14867 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.GeneratedCodeInfo.Annotation)
14686 MergeFrom(*source); 14868 MergeFrom(*source);
14687 } 14869 }
14688 } 14870 }
14689 14871
14690 void GeneratedCodeInfo_Annotation::MergeFrom(const GeneratedCodeInfo_Annotation& from) { 14872 void GeneratedCodeInfo_Annotation::MergeFrom(const GeneratedCodeInfo_Annotation& from) {
14691 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Gene ratedCodeInfo.Annotation) 14873 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Gene ratedCodeInfo.Annotation)
14692 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 14874 GOOGLE_DCHECK_NE(&from, this);
14875 _internal_metadata_.MergeFrom(from._internal_metadata_);
14693 path_.MergeFrom(from.path_); 14876 path_.MergeFrom(from.path_);
14694 if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { 14877 if (from._has_bits_[0 / 32] & 7u) {
14695 if (from.has_source_file()) { 14878 if (from.has_source_file()) {
14696 set_has_source_file(); 14879 set_has_source_file();
14697 source_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited(), from.source_file_); 14880 source_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited(), from.source_file_);
14698 } 14881 }
14699 if (from.has_begin()) { 14882 if (from.has_begin()) {
14700 set_begin(from.begin()); 14883 set_begin(from.begin());
14701 } 14884 }
14702 if (from.has_end()) { 14885 if (from.has_end()) {
14703 set_end(from.end()); 14886 set_end(from.end());
14704 } 14887 }
14705 } 14888 }
14706 if (from._internal_metadata_.have_unknown_fields()) {
14707 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
14708 }
14709 } 14889 }
14710 14890
14711 void GeneratedCodeInfo_Annotation::CopyFrom(const ::google::protobuf::Message& f rom) { 14891 void GeneratedCodeInfo_Annotation::CopyFrom(const ::google::protobuf::Message& f rom) {
14712 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Generate dCodeInfo.Annotation) 14892 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Generate dCodeInfo.Annotation)
14713 if (&from == this) return; 14893 if (&from == this) return;
14714 Clear(); 14894 Clear();
14715 MergeFrom(from); 14895 MergeFrom(from);
14716 } 14896 }
14717 14897
14718 void GeneratedCodeInfo_Annotation::CopyFrom(const GeneratedCodeInfo_Annotation& from) { 14898 void GeneratedCodeInfo_Annotation::CopyFrom(const GeneratedCodeInfo_Annotation& from) {
14719 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Gener atedCodeInfo.Annotation) 14899 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Gener atedCodeInfo.Annotation)
14720 if (&from == this) return; 14900 if (&from == this) return;
14721 Clear(); 14901 Clear();
14722 MergeFrom(from); 14902 MergeFrom(from);
14723 } 14903 }
14724 14904
14725 bool GeneratedCodeInfo_Annotation::IsInitialized() const { 14905 bool GeneratedCodeInfo_Annotation::IsInitialized() const {
14726
14727 return true; 14906 return true;
14728 } 14907 }
14729 14908
14730 void GeneratedCodeInfo_Annotation::Swap(GeneratedCodeInfo_Annotation* other) { 14909 void GeneratedCodeInfo_Annotation::Swap(GeneratedCodeInfo_Annotation* other) {
14731 if (other == this) return; 14910 if (other == this) return;
14732 InternalSwap(other); 14911 InternalSwap(other);
14733 } 14912 }
14734 void GeneratedCodeInfo_Annotation::InternalSwap(GeneratedCodeInfo_Annotation* ot her) { 14913 void GeneratedCodeInfo_Annotation::InternalSwap(GeneratedCodeInfo_Annotation* ot her) {
14735 path_.UnsafeArenaSwap(&other->path_); 14914 path_.UnsafeArenaSwap(&other->path_);
14736 source_file_.Swap(&other->source_file_); 14915 source_file_.Swap(&other->source_file_);
14737 std::swap(begin_, other->begin_); 14916 std::swap(begin_, other->begin_);
14738 std::swap(end_, other->end_); 14917 std::swap(end_, other->end_);
14739 std::swap(_has_bits_[0], other->_has_bits_[0]); 14918 std::swap(_has_bits_[0], other->_has_bits_[0]);
14740 _internal_metadata_.Swap(&other->_internal_metadata_); 14919 _internal_metadata_.Swap(&other->_internal_metadata_);
14741 std::swap(_cached_size_, other->_cached_size_); 14920 std::swap(_cached_size_, other->_cached_size_);
14742 } 14921 }
14743 14922
14744 ::google::protobuf::Metadata GeneratedCodeInfo_Annotation::GetMetadata() const { 14923 ::google::protobuf::Metadata GeneratedCodeInfo_Annotation::GetMetadata() const {
14745 protobuf_AssignDescriptorsOnce(); 14924 protobuf_AssignDescriptorsOnce();
14746 ::google::protobuf::Metadata metadata; 14925 return file_level_metadata[23];
14747 metadata.descriptor = GeneratedCodeInfo_Annotation_descriptor_; 14926 }
14748 metadata.reflection = GeneratedCodeInfo_Annotation_reflection_; 14927
14749 return metadata; 14928 #if PROTOBUF_INLINE_NOT_IN_HEADERS
14750 } 14929 // GeneratedCodeInfo_Annotation
14751 14930
14752 14931 // repeated int32 path = 1 [packed = true];
14753 // ------------------------------------------------------------------- 14932 int GeneratedCodeInfo_Annotation::path_size() const {
14933 return path_.size();
14934 }
14935 void GeneratedCodeInfo_Annotation::clear_path() {
14936 path_.Clear();
14937 }
14938 ::google::protobuf::int32 GeneratedCodeInfo_Annotation::path(int index) const {
14939 // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annota tion.path)
14940 return path_.Get(index);
14941 }
14942 void GeneratedCodeInfo_Annotation::set_path(int index, ::google::protobuf::int32 value) {
14943 path_.Set(index, value);
14944 // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annota tion.path)
14945 }
14946 void GeneratedCodeInfo_Annotation::add_path(::google::protobuf::int32 value) {
14947 path_.Add(value);
14948 // @@protoc_insertion_point(field_add:google.protobuf.GeneratedCodeInfo.Annota tion.path)
14949 }
14950 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
14951 GeneratedCodeInfo_Annotation::path() const {
14952 // @@protoc_insertion_point(field_list:google.protobuf.GeneratedCodeInfo.Annot ation.path)
14953 return path_;
14954 }
14955 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
14956 GeneratedCodeInfo_Annotation::mutable_path() {
14957 // @@protoc_insertion_point(field_mutable_list:google.protobuf.GeneratedCodeIn fo.Annotation.path)
14958 return &path_;
14959 }
14960
14961 // optional string source_file = 2;
14962 bool GeneratedCodeInfo_Annotation::has_source_file() const {
14963 return (_has_bits_[0] & 0x00000001u) != 0;
14964 }
14965 void GeneratedCodeInfo_Annotation::set_has_source_file() {
14966 _has_bits_[0] |= 0x00000001u;
14967 }
14968 void GeneratedCodeInfo_Annotation::clear_has_source_file() {
14969 _has_bits_[0] &= ~0x00000001u;
14970 }
14971 void GeneratedCodeInfo_Annotation::clear_source_file() {
14972 source_file_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited());
14973 clear_has_source_file();
14974 }
14975 const ::std::string& GeneratedCodeInfo_Annotation::source_file() const {
14976 // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annota tion.source_file)
14977 return source_file_.GetNoArena();
14978 }
14979 void GeneratedCodeInfo_Annotation::set_source_file(const ::std::string& value) {
14980 set_has_source_file();
14981 source_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited(), value);
14982 // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annota tion.source_file)
14983 }
14984 void GeneratedCodeInfo_Annotation::set_source_file(const char* value) {
14985 set_has_source_file();
14986 source_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited(), ::std::string(value));
14987 // @@protoc_insertion_point(field_set_char:google.protobuf.GeneratedCodeInfo.A nnotation.source_file)
14988 }
14989 void GeneratedCodeInfo_Annotation::set_source_file(const char* value, size_t siz e) {
14990 set_has_source_file();
14991 source_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited(),
14992 ::std::string(reinterpret_cast<const char*>(value), size));
14993 // @@protoc_insertion_point(field_set_pointer:google.protobuf.GeneratedCodeInf o.Annotation.source_file)
14994 }
14995 ::std::string* GeneratedCodeInfo_Annotation::mutable_source_file() {
14996 set_has_source_file();
14997 // @@protoc_insertion_point(field_mutable:google.protobuf.GeneratedCodeInfo.An notation.source_file)
14998 return source_file_.MutableNoArena(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited());
14999 }
15000 ::std::string* GeneratedCodeInfo_Annotation::release_source_file() {
15001 // @@protoc_insertion_point(field_release:google.protobuf.GeneratedCodeInfo.An notation.source_file)
15002 clear_has_source_file();
15003 return source_file_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited());
15004 }
15005 void GeneratedCodeInfo_Annotation::set_allocated_source_file(::std::string* sour ce_file) {
15006 if (source_file != NULL) {
15007 set_has_source_file();
15008 } else {
15009 clear_has_source_file();
15010 }
15011 source_file_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited(), source_file);
15012 // @@protoc_insertion_point(field_set_allocated:google.protobuf.GeneratedCodeI nfo.Annotation.source_file)
15013 }
15014
15015 // optional int32 begin = 3;
15016 bool GeneratedCodeInfo_Annotation::has_begin() const {
15017 return (_has_bits_[0] & 0x00000002u) != 0;
15018 }
15019 void GeneratedCodeInfo_Annotation::set_has_begin() {
15020 _has_bits_[0] |= 0x00000002u;
15021 }
15022 void GeneratedCodeInfo_Annotation::clear_has_begin() {
15023 _has_bits_[0] &= ~0x00000002u;
15024 }
15025 void GeneratedCodeInfo_Annotation::clear_begin() {
15026 begin_ = 0;
15027 clear_has_begin();
15028 }
15029 ::google::protobuf::int32 GeneratedCodeInfo_Annotation::begin() const {
15030 // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annota tion.begin)
15031 return begin_;
15032 }
15033 void GeneratedCodeInfo_Annotation::set_begin(::google::protobuf::int32 value) {
15034 set_has_begin();
15035 begin_ = value;
15036 // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annota tion.begin)
15037 }
15038
15039 // optional int32 end = 4;
15040 bool GeneratedCodeInfo_Annotation::has_end() const {
15041 return (_has_bits_[0] & 0x00000004u) != 0;
15042 }
15043 void GeneratedCodeInfo_Annotation::set_has_end() {
15044 _has_bits_[0] |= 0x00000004u;
15045 }
15046 void GeneratedCodeInfo_Annotation::clear_has_end() {
15047 _has_bits_[0] &= ~0x00000004u;
15048 }
15049 void GeneratedCodeInfo_Annotation::clear_end() {
15050 end_ = 0;
15051 clear_has_end();
15052 }
15053 ::google::protobuf::int32 GeneratedCodeInfo_Annotation::end() const {
15054 // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annota tion.end)
15055 return end_;
15056 }
15057 void GeneratedCodeInfo_Annotation::set_end(::google::protobuf::int32 value) {
15058 set_has_end();
15059 end_ = value;
15060 // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annota tion.end)
15061 }
15062
15063 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
15064
15065 // ===================================================================
14754 15066
14755 #if !defined(_MSC_VER) || _MSC_VER >= 1900 15067 #if !defined(_MSC_VER) || _MSC_VER >= 1900
14756 const int GeneratedCodeInfo::kAnnotationFieldNumber; 15068 const int GeneratedCodeInfo::kAnnotationFieldNumber;
14757 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 15069 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
14758 15070
14759 GeneratedCodeInfo::GeneratedCodeInfo() 15071 GeneratedCodeInfo::GeneratedCodeInfo()
14760 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 15072 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
15073 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
15074 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
15075 }
14761 SharedCtor(); 15076 SharedCtor();
14762 // @@protoc_insertion_point(constructor:google.protobuf.GeneratedCodeInfo) 15077 // @@protoc_insertion_point(constructor:google.protobuf.GeneratedCodeInfo)
14763 } 15078 }
14764
14765 void GeneratedCodeInfo::InitAsDefaultInstance() {
14766 }
14767
14768 GeneratedCodeInfo::GeneratedCodeInfo(const GeneratedCodeInfo& from) 15079 GeneratedCodeInfo::GeneratedCodeInfo(const GeneratedCodeInfo& from)
14769 : ::google::protobuf::Message(), 15080 : ::google::protobuf::Message(),
14770 _internal_metadata_(NULL) { 15081 _internal_metadata_(NULL),
14771 SharedCtor(); 15082 _has_bits_(from._has_bits_),
14772 MergeFrom(from); 15083 _cached_size_(0),
15084 annotation_(from.annotation_) {
15085 _internal_metadata_.MergeFrom(from._internal_metadata_);
14773 // @@protoc_insertion_point(copy_constructor:google.protobuf.GeneratedCodeInfo ) 15086 // @@protoc_insertion_point(copy_constructor:google.protobuf.GeneratedCodeInfo )
14774 } 15087 }
14775 15088
14776 void GeneratedCodeInfo::SharedCtor() { 15089 void GeneratedCodeInfo::SharedCtor() {
14777 _cached_size_ = 0; 15090 _cached_size_ = 0;
14778 ::memset(_has_bits_, 0, sizeof(_has_bits_));
14779 } 15091 }
14780 15092
14781 GeneratedCodeInfo::~GeneratedCodeInfo() { 15093 GeneratedCodeInfo::~GeneratedCodeInfo() {
14782 // @@protoc_insertion_point(destructor:google.protobuf.GeneratedCodeInfo) 15094 // @@protoc_insertion_point(destructor:google.protobuf.GeneratedCodeInfo)
14783 SharedDtor(); 15095 SharedDtor();
14784 } 15096 }
14785 15097
14786 void GeneratedCodeInfo::SharedDtor() { 15098 void GeneratedCodeInfo::SharedDtor() {
14787 if (this != default_instance_) {
14788 }
14789 } 15099 }
14790 15100
14791 void GeneratedCodeInfo::SetCachedSize(int size) const { 15101 void GeneratedCodeInfo::SetCachedSize(int size) const {
14792 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 15102 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
14793 _cached_size_ = size; 15103 _cached_size_ = size;
14794 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 15104 GOOGLE_SAFE_CONCURRENT_WRITES_END();
14795 } 15105 }
14796 const ::google::protobuf::Descriptor* GeneratedCodeInfo::descriptor() { 15106 const ::google::protobuf::Descriptor* GeneratedCodeInfo::descriptor() {
14797 protobuf_AssignDescriptorsOnce(); 15107 protobuf_AssignDescriptorsOnce();
14798 return GeneratedCodeInfo_descriptor_; 15108 return file_level_metadata[24].descriptor;
14799 } 15109 }
14800 15110
14801 const GeneratedCodeInfo& GeneratedCodeInfo::default_instance() { 15111 const GeneratedCodeInfo& GeneratedCodeInfo::default_instance() {
14802 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor _2eproto(); 15112 protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto();
14803 return *default_instance_; 15113 return *internal_default_instance();
14804 } 15114 }
14805 15115
14806 GeneratedCodeInfo* GeneratedCodeInfo::default_instance_ = NULL;
14807
14808 GeneratedCodeInfo* GeneratedCodeInfo::New(::google::protobuf::Arena* arena) cons t { 15116 GeneratedCodeInfo* GeneratedCodeInfo::New(::google::protobuf::Arena* arena) cons t {
14809 GeneratedCodeInfo* n = new GeneratedCodeInfo; 15117 GeneratedCodeInfo* n = new GeneratedCodeInfo;
14810 if (arena != NULL) { 15118 if (arena != NULL) {
14811 arena->Own(n); 15119 arena->Own(n);
14812 } 15120 }
14813 return n; 15121 return n;
14814 } 15122 }
14815 15123
14816 void GeneratedCodeInfo::Clear() { 15124 void GeneratedCodeInfo::Clear() {
14817 // @@protoc_insertion_point(message_clear_start:google.protobuf.GeneratedCodeInf o) 15125 // @@protoc_insertion_point(message_clear_start:google.protobuf.GeneratedCodeInf o)
14818 annotation_.Clear(); 15126 annotation_.Clear();
14819 ::memset(_has_bits_, 0, sizeof(_has_bits_)); 15127 _has_bits_.Clear();
14820 if (_internal_metadata_.have_unknown_fields()) { 15128 _internal_metadata_.Clear();
14821 mutable_unknown_fields()->Clear();
14822 }
14823 } 15129 }
14824 15130
14825 bool GeneratedCodeInfo::MergePartialFromCodedStream( 15131 bool GeneratedCodeInfo::MergePartialFromCodedStream(
14826 ::google::protobuf::io::CodedInputStream* input) { 15132 ::google::protobuf::io::CodedInputStream* input) {
14827 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 15133 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
14828 ::google::protobuf::uint32 tag; 15134 ::google::protobuf::uint32 tag;
14829 // @@protoc_insertion_point(parse_start:google.protobuf.GeneratedCodeInfo) 15135 // @@protoc_insertion_point(parse_start:google.protobuf.GeneratedCodeInfo)
14830 for (;;) { 15136 for (;;) {
14831 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127); 15137 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u);
14832 tag = p.first; 15138 tag = p.first;
14833 if (!p.second) goto handle_unusual; 15139 if (!p.second) goto handle_unusual;
14834 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 15140 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
14835 // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; 15141 // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
14836 case 1: { 15142 case 1: {
14837 if (tag == 10) { 15143 if (tag == 10u) {
14838 DO_(input->IncrementRecursionDepth()); 15144 DO_(input->IncrementRecursionDepth());
14839 parse_loop_annotation:
14840 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 15145 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
14841 input, add_annotation())); 15146 input, add_annotation()));
14842 } else { 15147 } else {
14843 goto handle_unusual; 15148 goto handle_unusual;
14844 } 15149 }
14845 if (input->ExpectTag(10)) goto parse_loop_annotation;
14846 input->UnsafeDecrementRecursionDepth(); 15150 input->UnsafeDecrementRecursionDepth();
14847 if (input->ExpectAtEnd()) goto success;
14848 break; 15151 break;
14849 } 15152 }
14850 15153
14851 default: { 15154 default: {
14852 handle_unusual: 15155 handle_unusual:
14853 if (tag == 0 || 15156 if (tag == 0 ||
14854 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 15157 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
14855 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 15158 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
14856 goto success; 15159 goto success;
14857 } 15160 }
(...skipping 21 matching lines...) Expand all
14879 1, this->annotation(i), output); 15182 1, this->annotation(i), output);
14880 } 15183 }
14881 15184
14882 if (_internal_metadata_.have_unknown_fields()) { 15185 if (_internal_metadata_.have_unknown_fields()) {
14883 ::google::protobuf::internal::WireFormat::SerializeUnknownFields( 15186 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
14884 unknown_fields(), output); 15187 unknown_fields(), output);
14885 } 15188 }
14886 // @@protoc_insertion_point(serialize_end:google.protobuf.GeneratedCodeInfo) 15189 // @@protoc_insertion_point(serialize_end:google.protobuf.GeneratedCodeInfo)
14887 } 15190 }
14888 15191
14889 ::google::protobuf::uint8* GeneratedCodeInfo::SerializeWithCachedSizesToArray( 15192 ::google::protobuf::uint8* GeneratedCodeInfo::InternalSerializeWithCachedSizesTo Array(
14890 ::google::protobuf::uint8* target) const { 15193 bool deterministic, ::google::protobuf::uint8* target) const {
15194 (void)deterministic; // Unused
14891 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Generated CodeInfo) 15195 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Generated CodeInfo)
14892 // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; 15196 // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
14893 for (unsigned int i = 0, n = this->annotation_size(); i < n; i++) { 15197 for (unsigned int i = 0, n = this->annotation_size(); i < n; i++) {
14894 target = ::google::protobuf::internal::WireFormatLite:: 15198 target = ::google::protobuf::internal::WireFormatLite::
14895 WriteMessageNoVirtualToArray( 15199 InternalWriteMessageNoVirtualToArray(
14896 1, this->annotation(i), target); 15200 1, this->annotation(i), false, target);
14897 } 15201 }
14898 15202
14899 if (_internal_metadata_.have_unknown_fields()) { 15203 if (_internal_metadata_.have_unknown_fields()) {
14900 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray( 15204 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToA rray(
14901 unknown_fields(), target); 15205 unknown_fields(), target);
14902 } 15206 }
14903 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.GeneratedCo deInfo) 15207 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.GeneratedCo deInfo)
14904 return target; 15208 return target;
14905 } 15209 }
14906 15210
14907 int GeneratedCodeInfo::ByteSize() const { 15211 size_t GeneratedCodeInfo::ByteSizeLong() const {
14908 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.GeneratedCod eInfo) 15212 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.GeneratedCod eInfo)
14909 int total_size = 0; 15213 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 15214
14919 if (_internal_metadata_.have_unknown_fields()) { 15215 if (_internal_metadata_.have_unknown_fields()) {
14920 total_size += 15216 total_size +=
14921 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( 15217 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
14922 unknown_fields()); 15218 unknown_fields());
14923 } 15219 }
15220 // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
15221 {
15222 unsigned int count = this->annotation_size();
15223 total_size += 1UL * count;
15224 for (unsigned int i = 0; i < count; i++) {
15225 total_size +=
15226 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
15227 this->annotation(i));
15228 }
15229 }
15230
15231 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
14924 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 15232 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
14925 _cached_size_ = total_size; 15233 _cached_size_ = cached_size;
14926 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 15234 GOOGLE_SAFE_CONCURRENT_WRITES_END();
14927 return total_size; 15235 return total_size;
14928 } 15236 }
14929 15237
14930 void GeneratedCodeInfo::MergeFrom(const ::google::protobuf::Message& from) { 15238 void GeneratedCodeInfo::MergeFrom(const ::google::protobuf::Message& from) {
14931 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Generat edCodeInfo) 15239 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Generat edCodeInfo)
14932 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 15240 GOOGLE_DCHECK_NE(&from, this);
14933 const GeneratedCodeInfo* source = 15241 const GeneratedCodeInfo* source =
14934 ::google::protobuf::internal::DynamicCastToGenerated<const GeneratedCodeIn fo>( 15242 ::google::protobuf::internal::DynamicCastToGenerated<const GeneratedCodeIn fo>(
14935 &from); 15243 &from);
14936 if (source == NULL) { 15244 if (source == NULL) {
14937 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.G eneratedCodeInfo) 15245 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.G eneratedCodeInfo)
14938 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 15246 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
14939 } else { 15247 } else {
14940 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.GeneratedCodeInfo) 15248 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.GeneratedCodeInfo)
14941 MergeFrom(*source); 15249 MergeFrom(*source);
14942 } 15250 }
14943 } 15251 }
14944 15252
14945 void GeneratedCodeInfo::MergeFrom(const GeneratedCodeInfo& from) { 15253 void GeneratedCodeInfo::MergeFrom(const GeneratedCodeInfo& from) {
14946 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Gene ratedCodeInfo) 15254 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Gene ratedCodeInfo)
14947 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 15255 GOOGLE_DCHECK_NE(&from, this);
15256 _internal_metadata_.MergeFrom(from._internal_metadata_);
14948 annotation_.MergeFrom(from.annotation_); 15257 annotation_.MergeFrom(from.annotation_);
14949 if (from._internal_metadata_.have_unknown_fields()) {
14950 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
14951 }
14952 } 15258 }
14953 15259
14954 void GeneratedCodeInfo::CopyFrom(const ::google::protobuf::Message& from) { 15260 void GeneratedCodeInfo::CopyFrom(const ::google::protobuf::Message& from) {
14955 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Generate dCodeInfo) 15261 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Generate dCodeInfo)
14956 if (&from == this) return; 15262 if (&from == this) return;
14957 Clear(); 15263 Clear();
14958 MergeFrom(from); 15264 MergeFrom(from);
14959 } 15265 }
14960 15266
14961 void GeneratedCodeInfo::CopyFrom(const GeneratedCodeInfo& from) { 15267 void GeneratedCodeInfo::CopyFrom(const GeneratedCodeInfo& from) {
14962 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Gener atedCodeInfo) 15268 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Gener atedCodeInfo)
14963 if (&from == this) return; 15269 if (&from == this) return;
14964 Clear(); 15270 Clear();
14965 MergeFrom(from); 15271 MergeFrom(from);
14966 } 15272 }
14967 15273
14968 bool GeneratedCodeInfo::IsInitialized() const { 15274 bool GeneratedCodeInfo::IsInitialized() const {
14969
14970 return true; 15275 return true;
14971 } 15276 }
14972 15277
14973 void GeneratedCodeInfo::Swap(GeneratedCodeInfo* other) { 15278 void GeneratedCodeInfo::Swap(GeneratedCodeInfo* other) {
14974 if (other == this) return; 15279 if (other == this) return;
14975 InternalSwap(other); 15280 InternalSwap(other);
14976 } 15281 }
14977 void GeneratedCodeInfo::InternalSwap(GeneratedCodeInfo* other) { 15282 void GeneratedCodeInfo::InternalSwap(GeneratedCodeInfo* other) {
14978 annotation_.UnsafeArenaSwap(&other->annotation_); 15283 annotation_.UnsafeArenaSwap(&other->annotation_);
14979 std::swap(_has_bits_[0], other->_has_bits_[0]); 15284 std::swap(_has_bits_[0], other->_has_bits_[0]);
14980 _internal_metadata_.Swap(&other->_internal_metadata_); 15285 _internal_metadata_.Swap(&other->_internal_metadata_);
14981 std::swap(_cached_size_, other->_cached_size_); 15286 std::swap(_cached_size_, other->_cached_size_);
14982 } 15287 }
14983 15288
14984 ::google::protobuf::Metadata GeneratedCodeInfo::GetMetadata() const { 15289 ::google::protobuf::Metadata GeneratedCodeInfo::GetMetadata() const {
14985 protobuf_AssignDescriptorsOnce(); 15290 protobuf_AssignDescriptorsOnce();
14986 ::google::protobuf::Metadata metadata; 15291 return file_level_metadata[24];
14987 metadata.descriptor = GeneratedCodeInfo_descriptor_;
14988 metadata.reflection = GeneratedCodeInfo_reflection_;
14989 return metadata;
14990 } 15292 }
14991 15293
14992 #if PROTOBUF_INLINE_NOT_IN_HEADERS 15294 #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 15295 // GeneratedCodeInfo
15130 15296
15131 // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; 15297 // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
15132 int GeneratedCodeInfo::annotation_size() const { 15298 int GeneratedCodeInfo::annotation_size() const {
15133 return annotation_.size(); 15299 return annotation_.size();
15134 } 15300 }
15135 void GeneratedCodeInfo::clear_annotation() { 15301 void GeneratedCodeInfo::clear_annotation() {
15136 annotation_.Clear(); 15302 annotation_.Clear();
15137 } 15303 }
15138 const ::google::protobuf::GeneratedCodeInfo_Annotation& GeneratedCodeInfo::annot ation(int index) const { 15304 const ::google::protobuf::GeneratedCodeInfo_Annotation& GeneratedCodeInfo::annot ation(int index) const {
(...skipping 20 matching lines...) Expand all
15159 } 15325 }
15160 15326
15161 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 15327 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
15162 15328
15163 // @@protoc_insertion_point(namespace_scope) 15329 // @@protoc_insertion_point(namespace_scope)
15164 15330
15165 } // namespace protobuf 15331 } // namespace protobuf
15166 } // namespace google 15332 } // namespace google
15167 15333
15168 // @@protoc_insertion_point(global_scope) 15334 // @@protoc_insertion_point(global_scope)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698