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

Side by Side Diff: third_party/protobuf/src/google/protobuf/type.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/type.proto 2 // source: google/protobuf/type.proto
3 3
4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION 4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
5 #include <google/protobuf/type.pb.h> 5 #include <google/protobuf/type.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 TypeDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyC onstructed<Type> {};
23 TypeDefaultTypeInternal _Type_default_instance_;
24 class FieldDefaultTypeInternal : public ::google::protobuf::internal::Explicitly Constructed<Field> {};
25 FieldDefaultTypeInternal _Field_default_instance_;
26 class EnumDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyC onstructed<Enum> {};
27 EnumDefaultTypeInternal _Enum_default_instance_;
28 class EnumValueDefaultTypeInternal : public ::google::protobuf::internal::Explic itlyConstructed<EnumValue> {};
29 EnumValueDefaultTypeInternal _EnumValue_default_instance_;
30 class OptionDefaultTypeInternal : public ::google::protobuf::internal::Explicitl yConstructed<Option> {};
31 OptionDefaultTypeInternal _Option_default_instance_;
22 32
23 namespace { 33 namespace {
24 34
25 const ::google::protobuf::Descriptor* Type_descriptor_ = NULL; 35 ::google::protobuf::Metadata file_level_metadata[5];
26 const ::google::protobuf::internal::GeneratedMessageReflection* 36 const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[3];
27 Type_reflection_ = NULL;
28 const ::google::protobuf::Descriptor* Field_descriptor_ = NULL;
29 const ::google::protobuf::internal::GeneratedMessageReflection*
30 Field_reflection_ = NULL;
31 const ::google::protobuf::EnumDescriptor* Field_Kind_descriptor_ = NULL;
32 const ::google::protobuf::EnumDescriptor* Field_Cardinality_descriptor_ = NULL;
33 const ::google::protobuf::Descriptor* Enum_descriptor_ = NULL;
34 const ::google::protobuf::internal::GeneratedMessageReflection*
35 Enum_reflection_ = NULL;
36 const ::google::protobuf::Descriptor* EnumValue_descriptor_ = NULL;
37 const ::google::protobuf::internal::GeneratedMessageReflection*
38 EnumValue_reflection_ = NULL;
39 const ::google::protobuf::Descriptor* Option_descriptor_ = NULL;
40 const ::google::protobuf::internal::GeneratedMessageReflection*
41 Option_reflection_ = NULL;
42 const ::google::protobuf::EnumDescriptor* Syntax_descriptor_ = NULL;
43 37
44 } // namespace 38 } // namespace
45 39
46 40
47 void protobuf_AssignDesc_google_2fprotobuf_2ftype_2eproto() { 41 const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2ftype_2epr oto() GOOGLE_ATTRIBUTE_COLD;
48 protobuf_AddDesc_google_2fprotobuf_2ftype_2eproto(); 42 const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2ftype_2epr oto() {
49 const ::google::protobuf::FileDescriptor* file = 43 static const ::google::protobuf::uint32 offsets[] = {
50 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( 44 ~0u, // no _has_bits_
51 "google/protobuf/type.proto"); 45 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Type, _internal_metadata_),
52 GOOGLE_CHECK(file != NULL); 46 ~0u, // no _extensions_
53 Type_descriptor_ = file->message_type(0); 47 ~0u, // no _oneof_case_
54 static const int Type_offsets_[6] = {
55 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Type, name_), 48 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Type, name_),
56 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Type, fields_), 49 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Type, fields_),
57 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Type, oneofs_), 50 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Type, oneofs_),
58 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Type, options_), 51 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Type, options_),
59 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Type, source_context_), 52 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Type, source_context_),
60 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Type, syntax_), 53 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Type, syntax_),
61 }; 54 ~0u, // no _has_bits_
62 Type_reflection_ = 55 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, _internal_metadata_),
63 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag eReflection( 56 ~0u, // no _extensions_
64 Type_descriptor_, 57 ~0u, // no _oneof_case_
65 Type::default_instance_,
66 Type_offsets_,
67 -1,
68 -1,
69 -1,
70 sizeof(Type),
71 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Type, _internal_metadata_),
72 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Type, _is_default_instance_ ));
73 Field_descriptor_ = file->message_type(1);
74 static const int Field_offsets_[10] = {
75 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, kind_), 58 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, kind_),
76 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, cardinality_), 59 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, cardinality_),
77 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, number_), 60 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, number_),
78 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, name_), 61 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, name_),
79 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, type_url_), 62 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, type_url_),
80 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, oneof_index_), 63 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, oneof_index_),
81 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, packed_), 64 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, packed_),
82 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, options_), 65 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, options_),
83 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, json_name_), 66 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, json_name_),
84 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, default_value_), 67 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, default_value_),
85 }; 68 ~0u, // no _has_bits_
86 Field_reflection_ = 69 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Enum, _internal_metadata_),
87 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag eReflection( 70 ~0u, // no _extensions_
88 Field_descriptor_, 71 ~0u, // no _oneof_case_
89 Field::default_instance_,
90 Field_offsets_,
91 -1,
92 -1,
93 -1,
94 sizeof(Field),
95 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, _internal_metadata_) ,
96 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Field, _is_default_instance _));
97 Field_Kind_descriptor_ = Field_descriptor_->enum_type(0);
98 Field_Cardinality_descriptor_ = Field_descriptor_->enum_type(1);
99 Enum_descriptor_ = file->message_type(2);
100 static const int Enum_offsets_[5] = {
101 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Enum, name_), 72 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Enum, name_),
102 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Enum, enumvalue_), 73 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Enum, enumvalue_),
103 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Enum, options_), 74 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Enum, options_),
104 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Enum, source_context_), 75 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Enum, source_context_),
105 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Enum, syntax_), 76 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Enum, syntax_),
106 }; 77 ~0u, // no _has_bits_
107 Enum_reflection_ = 78 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValue, _internal_metadata _),
108 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag eReflection( 79 ~0u, // no _extensions_
109 Enum_descriptor_, 80 ~0u, // no _oneof_case_
110 Enum::default_instance_,
111 Enum_offsets_,
112 -1,
113 -1,
114 -1,
115 sizeof(Enum),
116 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Enum, _internal_metadata_),
117 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Enum, _is_default_instance_ ));
118 EnumValue_descriptor_ = file->message_type(3);
119 static const int EnumValue_offsets_[3] = {
120 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValue, name_), 81 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValue, name_),
121 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValue, number_), 82 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValue, number_),
122 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValue, options_), 83 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValue, options_),
123 }; 84 ~0u, // no _has_bits_
124 EnumValue_reflection_ = 85 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Option, _internal_metadata_),
125 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag eReflection( 86 ~0u, // no _extensions_
126 EnumValue_descriptor_, 87 ~0u, // no _oneof_case_
127 EnumValue::default_instance_,
128 EnumValue_offsets_,
129 -1,
130 -1,
131 -1,
132 sizeof(EnumValue),
133 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValue, _internal_metada ta_),
134 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValue, _is_default_inst ance_));
135 Option_descriptor_ = file->message_type(4);
136 static const int Option_offsets_[2] = {
137 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Option, name_), 88 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Option, name_),
138 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Option, value_), 89 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Option, value_),
139 }; 90 };
140 Option_reflection_ = 91 return offsets;
141 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag eReflection( 92 }
142 Option_descriptor_, 93
143 Option::default_instance_, 94 static const ::google::protobuf::internal::MigrationSchema schemas[] = {
144 Option_offsets_, 95 { 0, -1, sizeof(Type)},
145 -1, 96 { 10, -1, sizeof(Field)},
146 -1, 97 { 24, -1, sizeof(Enum)},
147 -1, 98 { 33, -1, sizeof(EnumValue)},
148 sizeof(Option), 99 { 40, -1, sizeof(Option)},
149 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Option, _internal_metadata_ ), 100 };
150 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Option, _is_default_instanc e_)); 101
151 Syntax_descriptor_ = file->enum_type(0); 102 static const ::google::protobuf::internal::DefaultInstanceData file_default_inst ances[] = {
152 } 103 {reinterpret_cast<const ::google::protobuf::Message*>(&_Type_default_instance_ ), NULL},
104 {reinterpret_cast<const ::google::protobuf::Message*>(&_Field_default_instance _), NULL},
105 {reinterpret_cast<const ::google::protobuf::Message*>(&_Enum_default_instance_ ), NULL},
106 {reinterpret_cast<const ::google::protobuf::Message*>(&_EnumValue_default_inst ance_), NULL},
107 {reinterpret_cast<const ::google::protobuf::Message*>(&_Option_default_instanc e_), NULL},
108 };
153 109
154 namespace { 110 namespace {
155 111
156 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); 112 void protobuf_AssignDescriptors() {
157 inline void protobuf_AssignDescriptorsOnce() { 113 protobuf_AddDesc_google_2fprotobuf_2ftype_2eproto();
158 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, 114 ::google::protobuf::MessageFactory* factory = NULL;
159 &protobuf_AssignDesc_google_2fprotobuf_2ftype_2eproto); 115 AssignDescriptors(
160 } 116 "google/protobuf/type.proto", schemas, file_default_instances, protobuf_Of fsets_google_2fprotobuf_2ftype_2eproto(), factory,
161 117 file_level_metadata, file_level_enum_descriptors, NULL);
118 }
119
120 void protobuf_AssignDescriptorsOnce() {
121 static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
122 ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
123 }
124
125 void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD;
162 void protobuf_RegisterTypes(const ::std::string&) { 126 void protobuf_RegisterTypes(const ::std::string&) {
163 protobuf_AssignDescriptorsOnce(); 127 protobuf_AssignDescriptorsOnce();
164 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( 128 ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 5);
165 Type_descriptor_, &Type::default_instance());
166 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
167 Field_descriptor_, &Field::default_instance());
168 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
169 Enum_descriptor_, &Enum::default_instance());
170 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
171 EnumValue_descriptor_, &EnumValue::default_instance());
172 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
173 Option_descriptor_, &Option::default_instance());
174 } 129 }
175 130
176 } // namespace 131 } // namespace
177 132
178 void protobuf_ShutdownFile_google_2fprotobuf_2ftype_2eproto() { 133 void protobuf_ShutdownFile_google_2fprotobuf_2ftype_2eproto() {
179 delete Type::default_instance_; 134 _Type_default_instance_.Shutdown();
180 delete Type_reflection_; 135 delete file_level_metadata[0].reflection;
181 delete Field::default_instance_; 136 _Field_default_instance_.Shutdown();
182 delete Field_reflection_; 137 delete file_level_metadata[1].reflection;
183 delete Enum::default_instance_; 138 _Enum_default_instance_.Shutdown();
184 delete Enum_reflection_; 139 delete file_level_metadata[2].reflection;
185 delete EnumValue::default_instance_; 140 _EnumValue_default_instance_.Shutdown();
186 delete EnumValue_reflection_; 141 delete file_level_metadata[3].reflection;
187 delete Option::default_instance_; 142 _Option_default_instance_.Shutdown();
188 delete Option_reflection_; 143 delete file_level_metadata[4].reflection;
189 } 144 }
190 145
191 void protobuf_AddDesc_google_2fprotobuf_2ftype_2eproto() { 146 void protobuf_InitDefaults_google_2fprotobuf_2ftype_2eproto_impl() {
192 static bool already_here = false;
193 if (already_here) return;
194 already_here = true;
195 GOOGLE_PROTOBUF_VERIFY_VERSION; 147 GOOGLE_PROTOBUF_VERIFY_VERSION;
196 148
149 ::google::protobuf::protobuf_InitDefaults_google_2fprotobuf_2fany_2eproto();
150 ::google::protobuf::protobuf_InitDefaults_google_2fprotobuf_2fsource_5fcontext _2eproto();
151 ::google::protobuf::internal::InitProtobufDefaults();
152 _Type_default_instance_.DefaultConstruct();
153 _Field_default_instance_.DefaultConstruct();
154 _Enum_default_instance_.DefaultConstruct();
155 _EnumValue_default_instance_.DefaultConstruct();
156 _Option_default_instance_.DefaultConstruct();
157 _Type_default_instance_.get_mutable()->source_context_ = const_cast< ::google: :protobuf::SourceContext*>(
158 ::google::protobuf::SourceContext::internal_default_instance());
159 _Enum_default_instance_.get_mutable()->source_context_ = const_cast< ::google: :protobuf::SourceContext*>(
160 ::google::protobuf::SourceContext::internal_default_instance());
161 _Option_default_instance_.get_mutable()->value_ = const_cast< ::google::protob uf::Any*>(
162 ::google::protobuf::Any::internal_default_instance());
163 }
164
165 void protobuf_InitDefaults_google_2fprotobuf_2ftype_2eproto() {
166 static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
167 ::google::protobuf::GoogleOnceInit(&once, &protobuf_InitDefaults_google_2fprot obuf_2ftype_2eproto_impl);
168 }
169 void protobuf_AddDesc_google_2fprotobuf_2ftype_2eproto_impl() {
170 protobuf_InitDefaults_google_2fprotobuf_2ftype_2eproto();
171 static const char descriptor[] = {
172 "\n\032google/protobuf/type.proto\022\017google.pro"
173 "tobuf\032\031google/protobuf/any.proto\032$google"
174 "/protobuf/source_context.proto\"\327\001\n\004Type\022"
175 "\014\n\004name\030\001 \001(\t\022&\n\006fields\030\002 \003(\0132\026.go ogle.p"
176 "rotobuf.Field\022\016\n\006oneofs\030\003 \003(\t\022(\n\007options"
177 "\030\004 \003(\0132\027.google.protobuf.Option\0226\n\016sourc"
178 "e_context\030\005 \001(\0132\036.google.protobuf.Source"
179 "Context\022\'\n\006syntax\030\006 \001(\0162\027.google.protobu"
180 "f.Syntax\"\325\005\n\005Field\022)\n\004kind\030\001 \001(\0162\033.googl "
181 "e.protobuf.Field.Kind\0227\n\013cardinality\030\002 \001"
182 "(\0162\".google.protobuf.Field.Cardinality\022\016"
183 "\n\006number\030\003 \001(\005\022\014\n\004name\030\004 \001(\t\022\020\ n\010type_url"
184 "\030\006 \001(\t\022\023\n\013oneof_index\030\007 \001(\005\022\016\n\006 packed\030\010 "
185 "\001(\010\022(\n\007options\030\t \003(\0132\027.google.protobuf.O"
186 "ption\022\021\n\tjson_name\030\n \001(\t\022\025\n\rdefault_valu"
187 "e\030\013 \001(\t\"\310\002\n\004Kind\022\020\n\014TYPE_UNKNOWN\020\000\0 22\017\n\013TY"
188 "PE_DOUBLE\020\001\022\016\n\nTYPE_FLOAT\020\002\022\016\n\nTYPE_INT6"
189 "4\020\003\022\017\n\013TYPE_UINT64\020\004\022\016\n\nTYPE_INT32\020\005\ 022\020\n\014"
190 "TYPE_FIXED64\020\006\022\020\n\014TYPE_FIXED32\020\007\022\r\n\tTYPE"
191 "_BOOL\020\010\022\017\n\013TYPE_STRING\020\t\022\016\n\nTYPE_GROUP\020\n"
192 "\022\020\n\014TYPE_MESSAGE\020\013\022\016\n\nTYPE_BYTES\020\014\022\017\ n\013TY"
193 "PE_UINT32\020\r\022\r\n\tTYPE_ENUM\020\016\022\021\n\rTYPE_SFIXE"
194 "D32\020\017\022\021\n\rTYPE_SFIXED64\020\020\022\017\n\013TYPE_SINT32\020 "
195 "\021\022\017\n\013TYPE_SINT64\020\022\"t\n\013Cardinality\022\027\n\023CA R"
196 "DINALITY_UNKNOWN\020\000\022\030\n\024CARDINALITY_OPTION"
197 "AL\020\001\022\030\n\024CARDINALITY_REQUIRED\020\002\022\030\n\024CARDIN"
198 "ALITY_REPEATED\020\003\"\316\001\n\004Enum\022\014\n\004name\030\001 \001 (\t\022"
199 "-\n\tenumvalue\030\002 \003(\0132\032.google.protobuf.Enu"
200 "mValue\022(\n\007options\030\003 \003(\0132\027.google.protobu"
201 "f.Option\0226\n\016source_context\030\004 \001(\0132\036.googl"
202 "e.protobuf.SourceContext\022\'\n\006syntax\030\005 \001(\016"
203 "2\027.google.protobuf.Syntax\"S\n\tEnumValue\022\014"
204 "\n\004name\030\001 \001(\t\022\016\n\006number\030\002 \001(\005\022(\n\0 07options\030"
205 "\003 \003(\0132\027.google.protobuf.Option\";\n\006Option"
206 "\022\014\n\004name\030\001 \001(\t\022#\n\005value\030\002 \001(\0132\024 .google.p"
207 "rotobuf.Any*.\n\006Syntax\022\021\n\rSYNTAX_PROTO2\020\000"
208 "\022\021\n\rSYNTAX_PROTO3\020\001B}\n\023com.google.protob"
209 "ufB\tTypeProtoP\001Z/google.golang.org/genpr"
210 "oto/protobuf/ptype;ptype\370\001\001\242\002\003GPB\252\002\036Goog"
211 "le.Protobuf.WellKnownTypesb\006proto3"
212 };
213 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
214 descriptor, 1594);
215 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
216 "google/protobuf/type.proto", &protobuf_RegisterTypes);
197 ::google::protobuf::protobuf_AddDesc_google_2fprotobuf_2fany_2eproto(); 217 ::google::protobuf::protobuf_AddDesc_google_2fprotobuf_2fany_2eproto();
198 ::google::protobuf::protobuf_AddDesc_google_2fprotobuf_2fsource_5fcontext_2epr oto(); 218 ::google::protobuf::protobuf_AddDesc_google_2fprotobuf_2fsource_5fcontext_2epr oto();
199 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
200 "\n\032google/protobuf/type.proto\022\017google.pro"
201 "tobuf\032\031google/protobuf/any.proto\032$google"
202 "/protobuf/source_context.proto\"\327\001\n\004Type\022"
203 "\014\n\004name\030\001 \001(\t\022&\n\006fields\030\002 \003(\0132\026.goog le.p"
204 "rotobuf.Field\022\016\n\006oneofs\030\003 \003(\t\022(\n\007options"
205 "\030\004 \003(\0132\027.google.protobuf.Option\0226\n\016sourc"
206 "e_context\030\005 \001(\0132\036.google.protobuf.Source"
207 "Context\022\'\n\006syntax\030\006 \001(\0162\027.google.protobu"
208 "f.Syntax\"\325\005\n\005Field\022)\n\004kind\030\001 \001(\0162\033.googl"
209 "e.protobuf.Field.Kind\0227\n\013cardinality\030\002 \001"
210 "(\0162\".google.protobuf.Field.Cardinality\022\016"
211 "\n\006number\030\003 \001(\005\022\014\n\004name\030\004 \001(\t\022\020\n\ 010type_url"
212 "\030\006 \001(\t\022\023\n\013oneof_index\030\007 \001(\005\022\016\n\006pa cked\030\010 "
213 "\001(\010\022(\n\007options\030\t \003(\0132\027.google.protobuf.O"
214 "ption\022\021\n\tjson_name\030\n \001(\t\022\025\n\rdefault_valu"
215 "e\030\013 \001(\t\"\310\002\n\004Kind\022\020\n\014TYPE_UNKNOWN\020\000\022 \017\n\013TY"
216 "PE_DOUBLE\020\001\022\016\n\nTYPE_FLOAT\020\002\022\016\n\nTYPE_INT6"
217 "4\020\003\022\017\n\013TYPE_UINT64\020\004\022\016\n\nTYPE_INT32\020\005\02 2\020\n\014"
218 "TYPE_FIXED64\020\006\022\020\n\014TYPE_FIXED32\020\007\022\r\n\tTYPE"
219 "_BOOL\020\010\022\017\n\013TYPE_STRING\020\t\022\016\n\nTYPE_GROUP\020\n"
220 "\022\020\n\014TYPE_MESSAGE\020\013\022\016\n\nTYPE_BYTES\020\014\022\017\n\ 013TY"
221 "PE_UINT32\020\r\022\r\n\tTYPE_ENUM\020\016\022\021\n\rTYPE_SFIXE"
222 "D32\020\017\022\021\n\rTYPE_SFIXED64\020\020\022\017\n\013TYPE_SINT32\020"
223 "\021\022\017\n\013TYPE_SINT64\020\022\"t\n\013Cardinality\022\027\n\023CAR"
224 "DINALITY_UNKNOWN\020\000\022\030\n\024CARDINALITY_OPTION"
225 "AL\020\001\022\030\n\024CARDINALITY_REQUIRED\020\002\022\030\n\024CARDIN"
226 "ALITY_REPEATED\020\003\"\316\001\n\004Enum\022\014\n\004name\030\001 \001(\ t\022"
227 "-\n\tenumvalue\030\002 \003(\0132\032.google.protobuf.Enu"
228 "mValue\022(\n\007options\030\003 \003(\0132\027.google.protobu"
229 "f.Option\0226\n\016source_context\030\004 \001(\0132\036.googl"
230 "e.protobuf.SourceContext\022\'\n\006syntax\030\005 \001(\016"
231 "2\027.google.protobuf.Syntax\"S\n\tEnumValue\022\014"
232 "\n\004name\030\001 \001(\t\022\016\n\006number\030\002 \001(\005\022(\n\007 options\030"
233 "\003 \003(\0132\027.google.protobuf.Option\";\n\006Option"
234 "\022\014\n\004name\030\001 \001(\t\022#\n\005value\030\002 \001(\0132\024.g oogle.p"
235 "rotobuf.Any*.\n\006Syntax\022\021\n\rSYNTAX_PROTO2\020\000"
236 "\022\021\n\rSYNTAX_PROTO3\020\001BL\n\023com.google.protob"
237 "ufB\tTypeProtoP\001\240\001\001\242\002\003GPB\252\002\036Google.Protob"
238 "uf.WellKnownTypesb\006proto3", 1545);
239 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
240 "google/protobuf/type.proto", &protobuf_RegisterTypes);
241 Type::default_instance_ = new Type();
242 Field::default_instance_ = new Field();
243 Enum::default_instance_ = new Enum();
244 EnumValue::default_instance_ = new EnumValue();
245 Option::default_instance_ = new Option();
246 Type::default_instance_->InitAsDefaultInstance();
247 Field::default_instance_->InitAsDefaultInstance();
248 Enum::default_instance_->InitAsDefaultInstance();
249 EnumValue::default_instance_->InitAsDefaultInstance();
250 Option::default_instance_->InitAsDefaultInstance();
251 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fproto buf_2ftype_2eproto); 219 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fproto buf_2ftype_2eproto);
252 } 220 }
253 221
222 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_google_2fprotobuf_2ftype_2eproto_o nce_);
223 void protobuf_AddDesc_google_2fprotobuf_2ftype_2eproto() {
224 ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_google_2fprotobuf_2ftype_ 2eproto_once_,
225 &protobuf_AddDesc_google_2fprotobuf_2ftype_2eproto_impl);
226 }
254 // Force AddDescriptors() to be called at static initialization time. 227 // Force AddDescriptors() to be called at static initialization time.
255 struct StaticDescriptorInitializer_google_2fprotobuf_2ftype_2eproto { 228 struct StaticDescriptorInitializer_google_2fprotobuf_2ftype_2eproto {
256 StaticDescriptorInitializer_google_2fprotobuf_2ftype_2eproto() { 229 StaticDescriptorInitializer_google_2fprotobuf_2ftype_2eproto() {
257 protobuf_AddDesc_google_2fprotobuf_2ftype_2eproto(); 230 protobuf_AddDesc_google_2fprotobuf_2ftype_2eproto();
258 } 231 }
259 } static_descriptor_initializer_google_2fprotobuf_2ftype_2eproto_; 232 } static_descriptor_initializer_google_2fprotobuf_2ftype_2eproto_;
233 const ::google::protobuf::EnumDescriptor* Field_Kind_descriptor() {
234 protobuf_AssignDescriptorsOnce();
235 return file_level_enum_descriptors[0];
236 }
237 bool Field_Kind_IsValid(int value) {
238 switch (value) {
239 case 0:
240 case 1:
241 case 2:
242 case 3:
243 case 4:
244 case 5:
245 case 6:
246 case 7:
247 case 8:
248 case 9:
249 case 10:
250 case 11:
251 case 12:
252 case 13:
253 case 14:
254 case 15:
255 case 16:
256 case 17:
257 case 18:
258 return true;
259 default:
260 return false;
261 }
262 }
263
264 #if !defined(_MSC_VER) || _MSC_VER >= 1900
265 const Field_Kind Field::TYPE_UNKNOWN;
266 const Field_Kind Field::TYPE_DOUBLE;
267 const Field_Kind Field::TYPE_FLOAT;
268 const Field_Kind Field::TYPE_INT64;
269 const Field_Kind Field::TYPE_UINT64;
270 const Field_Kind Field::TYPE_INT32;
271 const Field_Kind Field::TYPE_FIXED64;
272 const Field_Kind Field::TYPE_FIXED32;
273 const Field_Kind Field::TYPE_BOOL;
274 const Field_Kind Field::TYPE_STRING;
275 const Field_Kind Field::TYPE_GROUP;
276 const Field_Kind Field::TYPE_MESSAGE;
277 const Field_Kind Field::TYPE_BYTES;
278 const Field_Kind Field::TYPE_UINT32;
279 const Field_Kind Field::TYPE_ENUM;
280 const Field_Kind Field::TYPE_SFIXED32;
281 const Field_Kind Field::TYPE_SFIXED64;
282 const Field_Kind Field::TYPE_SINT32;
283 const Field_Kind Field::TYPE_SINT64;
284 const Field_Kind Field::Kind_MIN;
285 const Field_Kind Field::Kind_MAX;
286 const int Field::Kind_ARRAYSIZE;
287 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
288 const ::google::protobuf::EnumDescriptor* Field_Cardinality_descriptor() {
289 protobuf_AssignDescriptorsOnce();
290 return file_level_enum_descriptors[1];
291 }
292 bool Field_Cardinality_IsValid(int value) {
293 switch (value) {
294 case 0:
295 case 1:
296 case 2:
297 case 3:
298 return true;
299 default:
300 return false;
301 }
302 }
303
304 #if !defined(_MSC_VER) || _MSC_VER >= 1900
305 const Field_Cardinality Field::CARDINALITY_UNKNOWN;
306 const Field_Cardinality Field::CARDINALITY_OPTIONAL;
307 const Field_Cardinality Field::CARDINALITY_REQUIRED;
308 const Field_Cardinality Field::CARDINALITY_REPEATED;
309 const Field_Cardinality Field::Cardinality_MIN;
310 const Field_Cardinality Field::Cardinality_MAX;
311 const int Field::Cardinality_ARRAYSIZE;
312 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
260 const ::google::protobuf::EnumDescriptor* Syntax_descriptor() { 313 const ::google::protobuf::EnumDescriptor* Syntax_descriptor() {
261 protobuf_AssignDescriptorsOnce(); 314 protobuf_AssignDescriptorsOnce();
262 return Syntax_descriptor_; 315 return file_level_enum_descriptors[2];
263 } 316 }
264 bool Syntax_IsValid(int value) { 317 bool Syntax_IsValid(int value) {
265 switch(value) { 318 switch (value) {
266 case 0: 319 case 0:
267 case 1: 320 case 1:
268 return true; 321 return true;
269 default: 322 default:
270 return false; 323 return false;
271 } 324 }
272 } 325 }
273 326
274 327
275 namespace {
276
277 static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD;
278 static void MergeFromFail(int line) {
279 GOOGLE_CHECK(false) << __FILE__ << ":" << line;
280 }
281
282 } // namespace
283
284
285 // =================================================================== 328 // ===================================================================
286 329
330 void Type::_slow_mutable_source_context() {
331 source_context_ = ::google::protobuf::Arena::Create< ::google::protobuf::Sourc eContext >(
332 GetArenaNoVirtual());
333 }
334 ::google::protobuf::SourceContext* Type::_slow_release_source_context() {
335 if (source_context_ == NULL) {
336 return NULL;
337 } else {
338 ::google::protobuf::SourceContext* temp = new ::google::protobuf::SourceCont ext(*source_context_);
339 source_context_ = NULL;
340 return temp;
341 }
342 }
343 ::google::protobuf::SourceContext* Type::unsafe_arena_release_source_context() {
344 // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Type.so urce_context)
345
346 ::google::protobuf::SourceContext* temp = source_context_;
347 source_context_ = NULL;
348 return temp;
349 }
350 void Type::unsafe_arena_set_allocated_source_context(
351 ::google::protobuf::SourceContext* source_context) {
352 if (GetArenaNoVirtual() == NULL) {
353 delete source_context_;
354 }
355 source_context_ = source_context;
356 if (source_context) {
357
358 } else {
359
360 }
361 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.T ype.source_context)
362 }
287 #if !defined(_MSC_VER) || _MSC_VER >= 1900 363 #if !defined(_MSC_VER) || _MSC_VER >= 1900
288 const int Type::kNameFieldNumber; 364 const int Type::kNameFieldNumber;
289 const int Type::kFieldsFieldNumber; 365 const int Type::kFieldsFieldNumber;
290 const int Type::kOneofsFieldNumber; 366 const int Type::kOneofsFieldNumber;
291 const int Type::kOptionsFieldNumber; 367 const int Type::kOptionsFieldNumber;
292 const int Type::kSourceContextFieldNumber; 368 const int Type::kSourceContextFieldNumber;
293 const int Type::kSyntaxFieldNumber; 369 const int Type::kSyntaxFieldNumber;
294 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 370 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
295 371
296 Type::Type() 372 Type::Type()
297 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 373 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
374 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
375 protobuf_InitDefaults_google_2fprotobuf_2ftype_2eproto();
376 }
298 SharedCtor(); 377 SharedCtor();
299 // @@protoc_insertion_point(constructor:google.protobuf.Type) 378 // @@protoc_insertion_point(constructor:google.protobuf.Type)
300 } 379 }
301 380 Type::Type(::google::protobuf::Arena* arena)
302 void Type::InitAsDefaultInstance() { 381 : ::google::protobuf::Message(),
303 _is_default_instance_ = true; 382 _internal_metadata_(arena),
304 source_context_ = const_cast< ::google::protobuf::SourceContext*>(&::google::p rotobuf::SourceContext::default_instance()); 383 fields_(arena),
384 oneofs_(arena),
385 options_(arena) {
386 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
387 protobuf_InitDefaults_google_2fprotobuf_2ftype_2eproto();
388 #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
389 SharedCtor();
390 RegisterArenaDtor(arena);
391 // @@protoc_insertion_point(arena_constructor:google.protobuf.Type)
305 } 392 }
306
307 Type::Type(const Type& from) 393 Type::Type(const Type& from)
308 : ::google::protobuf::Message(), 394 : ::google::protobuf::Message(),
309 _internal_metadata_(NULL) { 395 _internal_metadata_(NULL),
310 SharedCtor(); 396 fields_(from.fields_),
311 MergeFrom(from); 397 oneofs_(from.oneofs_),
398 options_(from.options_),
399 _cached_size_(0) {
400 _internal_metadata_.MergeFrom(from._internal_metadata_);
401 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
402 if (from.name().size() > 0) {
403 name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from .name(),
404 GetArenaNoVirtual());
405 }
406 if (from.has_source_context()) {
407 source_context_ = new ::google::protobuf::SourceContext(*from.source_context _);
408 } else {
409 source_context_ = NULL;
410 }
411 syntax_ = from.syntax_;
312 // @@protoc_insertion_point(copy_constructor:google.protobuf.Type) 412 // @@protoc_insertion_point(copy_constructor:google.protobuf.Type)
313 } 413 }
314 414
315 void Type::SharedCtor() { 415 void Type::SharedCtor() {
316 _is_default_instance_ = false; 416 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
317 ::google::protobuf::internal::GetEmptyString(); 417 ::memset(&source_context_, 0, reinterpret_cast<char*>(&syntax_) -
418 reinterpret_cast<char*>(&source_context_) + sizeof(syntax_));
318 _cached_size_ = 0; 419 _cached_size_ = 0;
319 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
320 source_context_ = NULL;
321 syntax_ = 0;
322 } 420 }
323 421
324 Type::~Type() { 422 Type::~Type() {
325 // @@protoc_insertion_point(destructor:google.protobuf.Type) 423 // @@protoc_insertion_point(destructor:google.protobuf.Type)
326 SharedDtor(); 424 SharedDtor();
327 } 425 }
328 426
329 void Type::SharedDtor() { 427 void Type::SharedDtor() {
330 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d()); 428 ::google::protobuf::Arena* arena = GetArenaNoVirtual();
331 if (this != default_instance_) { 429 if (arena != NULL) {
430 return;
431 }
432
433 name_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ar ena);
434 if (this != internal_default_instance()) {
332 delete source_context_; 435 delete source_context_;
333 } 436 }
334 } 437 }
335 438
439 void Type::ArenaDtor(void* object) {
440 Type* _this = reinterpret_cast< Type* >(object);
441 (void)_this;
442 }
443 void Type::RegisterArenaDtor(::google::protobuf::Arena* arena) {
444 }
336 void Type::SetCachedSize(int size) const { 445 void Type::SetCachedSize(int size) const {
337 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 446 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
338 _cached_size_ = size; 447 _cached_size_ = size;
339 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 448 GOOGLE_SAFE_CONCURRENT_WRITES_END();
340 } 449 }
341 const ::google::protobuf::Descriptor* Type::descriptor() { 450 const ::google::protobuf::Descriptor* Type::descriptor() {
342 protobuf_AssignDescriptorsOnce(); 451 protobuf_AssignDescriptorsOnce();
343 return Type_descriptor_; 452 return file_level_metadata[0].descriptor;
344 } 453 }
345 454
346 const Type& Type::default_instance() { 455 const Type& Type::default_instance() {
347 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2ftype_2epro to(); 456 protobuf_InitDefaults_google_2fprotobuf_2ftype_2eproto();
348 return *default_instance_; 457 return *internal_default_instance();
349 } 458 }
350 459
351 Type* Type::default_instance_ = NULL;
352
353 Type* Type::New(::google::protobuf::Arena* arena) const { 460 Type* Type::New(::google::protobuf::Arena* arena) const {
354 Type* n = new Type; 461 return ::google::protobuf::Arena::CreateMessage<Type>(arena);
355 if (arena != NULL) {
356 arena->Own(n);
357 }
358 return n;
359 } 462 }
360 463
361 void Type::Clear() { 464 void Type::Clear() {
362 // @@protoc_insertion_point(message_clear_start:google.protobuf.Type) 465 // @@protoc_insertion_point(message_clear_start:google.protobuf.Type)
363 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
364 if (GetArenaNoVirtual() == NULL && source_context_ != NULL) delete source_cont ext_;
365 source_context_ = NULL;
366 syntax_ = 0;
367 fields_.Clear(); 466 fields_.Clear();
368 oneofs_.Clear(); 467 oneofs_.Clear();
369 options_.Clear(); 468 options_.Clear();
469 name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), GetArenaNoVirtual());
470 if (GetArenaNoVirtual() == NULL && source_context_ != NULL) {
471 delete source_context_;
472 }
473 source_context_ = NULL;
474 syntax_ = 0;
370 } 475 }
371 476
372 bool Type::MergePartialFromCodedStream( 477 bool Type::MergePartialFromCodedStream(
373 ::google::protobuf::io::CodedInputStream* input) { 478 ::google::protobuf::io::CodedInputStream* input) {
374 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 479 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
375 ::google::protobuf::uint32 tag; 480 ::google::protobuf::uint32 tag;
376 // @@protoc_insertion_point(parse_start:google.protobuf.Type) 481 // @@protoc_insertion_point(parse_start:google.protobuf.Type)
377 for (;;) { 482 for (;;) {
378 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127); 483 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u);
379 tag = p.first; 484 tag = p.first;
380 if (!p.second) goto handle_unusual; 485 if (!p.second) goto handle_unusual;
381 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 486 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
382 // optional string name = 1; 487 // string name = 1;
383 case 1: { 488 case 1: {
384 if (tag == 10) { 489 if (tag == 10u) {
385 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 490 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
386 input, this->mutable_name())); 491 input, this->mutable_name()));
387 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 492 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
388 this->name().data(), this->name().length(), 493 this->name().data(), this->name().length(),
389 ::google::protobuf::internal::WireFormatLite::PARSE, 494 ::google::protobuf::internal::WireFormatLite::PARSE,
390 "google.protobuf.Type.name")); 495 "google.protobuf.Type.name"));
391 } else { 496 } else {
392 goto handle_unusual; 497 goto handle_unusual;
393 } 498 }
394 if (input->ExpectTag(18)) goto parse_fields;
395 break; 499 break;
396 } 500 }
397 501
398 // repeated .google.protobuf.Field fields = 2; 502 // repeated .google.protobuf.Field fields = 2;
399 case 2: { 503 case 2: {
400 if (tag == 18) { 504 if (tag == 18u) {
401 parse_fields:
402 DO_(input->IncrementRecursionDepth()); 505 DO_(input->IncrementRecursionDepth());
403 parse_loop_fields:
404 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 506 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
405 input, add_fields())); 507 input, add_fields()));
406 } else { 508 } else {
407 goto handle_unusual; 509 goto handle_unusual;
408 } 510 }
409 if (input->ExpectTag(18)) goto parse_loop_fields;
410 input->UnsafeDecrementRecursionDepth(); 511 input->UnsafeDecrementRecursionDepth();
411 if (input->ExpectTag(26)) goto parse_oneofs;
412 break; 512 break;
413 } 513 }
414 514
415 // repeated string oneofs = 3; 515 // repeated string oneofs = 3;
416 case 3: { 516 case 3: {
417 if (tag == 26) { 517 if (tag == 26u) {
418 parse_oneofs:
419 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 518 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
420 input, this->add_oneofs())); 519 input, this->add_oneofs()));
421 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 520 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
422 this->oneofs(this->oneofs_size() - 1).data(), 521 this->oneofs(this->oneofs_size() - 1).data(),
423 this->oneofs(this->oneofs_size() - 1).length(), 522 this->oneofs(this->oneofs_size() - 1).length(),
424 ::google::protobuf::internal::WireFormatLite::PARSE, 523 ::google::protobuf::internal::WireFormatLite::PARSE,
425 "google.protobuf.Type.oneofs")); 524 "google.protobuf.Type.oneofs"));
426 } else { 525 } else {
427 goto handle_unusual; 526 goto handle_unusual;
428 } 527 }
429 if (input->ExpectTag(26)) goto parse_oneofs;
430 if (input->ExpectTag(34)) goto parse_options;
431 break; 528 break;
432 } 529 }
433 530
434 // repeated .google.protobuf.Option options = 4; 531 // repeated .google.protobuf.Option options = 4;
435 case 4: { 532 case 4: {
436 if (tag == 34) { 533 if (tag == 34u) {
437 parse_options:
438 DO_(input->IncrementRecursionDepth()); 534 DO_(input->IncrementRecursionDepth());
439 parse_loop_options:
440 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 535 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
441 input, add_options())); 536 input, add_options()));
442 } else { 537 } else {
443 goto handle_unusual; 538 goto handle_unusual;
444 } 539 }
445 if (input->ExpectTag(34)) goto parse_loop_options;
446 input->UnsafeDecrementRecursionDepth(); 540 input->UnsafeDecrementRecursionDepth();
447 if (input->ExpectTag(42)) goto parse_source_context;
448 break; 541 break;
449 } 542 }
450 543
451 // optional .google.protobuf.SourceContext source_context = 5; 544 // .google.protobuf.SourceContext source_context = 5;
452 case 5: { 545 case 5: {
453 if (tag == 42) { 546 if (tag == 42u) {
454 parse_source_context:
455 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual ( 547 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual (
456 input, mutable_source_context())); 548 input, mutable_source_context()));
457 } else { 549 } else {
458 goto handle_unusual; 550 goto handle_unusual;
459 } 551 }
460 if (input->ExpectTag(48)) goto parse_syntax;
461 break; 552 break;
462 } 553 }
463 554
464 // optional .google.protobuf.Syntax syntax = 6; 555 // .google.protobuf.Syntax syntax = 6;
465 case 6: { 556 case 6: {
466 if (tag == 48) { 557 if (tag == 48u) {
467 parse_syntax:
468 int value; 558 int value;
469 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 559 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
470 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM> ( 560 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM> (
471 input, &value))); 561 input, &value)));
472 set_syntax(static_cast< ::google::protobuf::Syntax >(value)); 562 set_syntax(static_cast< ::google::protobuf::Syntax >(value));
473 } else { 563 } else {
474 goto handle_unusual; 564 goto handle_unusual;
475 } 565 }
476 if (input->ExpectAtEnd()) goto success;
477 break; 566 break;
478 } 567 }
479 568
480 default: { 569 default: {
481 handle_unusual: 570 handle_unusual:
482 if (tag == 0 || 571 if (tag == 0 ||
483 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 572 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
484 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 573 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
485 goto success; 574 goto success;
486 } 575 }
487 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)) ; 576 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)) ;
488 break; 577 break;
489 } 578 }
490 } 579 }
491 } 580 }
492 success: 581 success:
493 // @@protoc_insertion_point(parse_success:google.protobuf.Type) 582 // @@protoc_insertion_point(parse_success:google.protobuf.Type)
494 return true; 583 return true;
495 failure: 584 failure:
496 // @@protoc_insertion_point(parse_failure:google.protobuf.Type) 585 // @@protoc_insertion_point(parse_failure:google.protobuf.Type)
497 return false; 586 return false;
498 #undef DO_ 587 #undef DO_
499 } 588 }
500 589
501 void Type::SerializeWithCachedSizes( 590 void Type::SerializeWithCachedSizes(
502 ::google::protobuf::io::CodedOutputStream* output) const { 591 ::google::protobuf::io::CodedOutputStream* output) const {
503 // @@protoc_insertion_point(serialize_start:google.protobuf.Type) 592 // @@protoc_insertion_point(serialize_start:google.protobuf.Type)
504 // optional string name = 1; 593 // string name = 1;
505 if (this->name().size() > 0) { 594 if (this->name().size() > 0) {
506 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 595 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
507 this->name().data(), this->name().length(), 596 this->name().data(), this->name().length(),
508 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 597 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
509 "google.protobuf.Type.name"); 598 "google.protobuf.Type.name");
510 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 599 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
511 1, this->name(), output); 600 1, this->name(), output);
512 } 601 }
513 602
514 // repeated .google.protobuf.Field fields = 2; 603 // repeated .google.protobuf.Field fields = 2;
(...skipping 11 matching lines...) Expand all
526 ::google::protobuf::internal::WireFormatLite::WriteString( 615 ::google::protobuf::internal::WireFormatLite::WriteString(
527 3, this->oneofs(i), output); 616 3, this->oneofs(i), output);
528 } 617 }
529 618
530 // repeated .google.protobuf.Option options = 4; 619 // repeated .google.protobuf.Option options = 4;
531 for (unsigned int i = 0, n = this->options_size(); i < n; i++) { 620 for (unsigned int i = 0, n = this->options_size(); i < n; i++) {
532 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 621 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
533 4, this->options(i), output); 622 4, this->options(i), output);
534 } 623 }
535 624
536 // optional .google.protobuf.SourceContext source_context = 5; 625 // .google.protobuf.SourceContext source_context = 5;
537 if (this->has_source_context()) { 626 if (this->has_source_context()) {
538 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 627 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
539 5, *this->source_context_, output); 628 5, *this->source_context_, output);
540 } 629 }
541 630
542 // optional .google.protobuf.Syntax syntax = 6; 631 // .google.protobuf.Syntax syntax = 6;
543 if (this->syntax() != 0) { 632 if (this->syntax() != 0) {
544 ::google::protobuf::internal::WireFormatLite::WriteEnum( 633 ::google::protobuf::internal::WireFormatLite::WriteEnum(
545 6, this->syntax(), output); 634 6, this->syntax(), output);
546 } 635 }
547 636
548 // @@protoc_insertion_point(serialize_end:google.protobuf.Type) 637 // @@protoc_insertion_point(serialize_end:google.protobuf.Type)
549 } 638 }
550 639
551 ::google::protobuf::uint8* Type::SerializeWithCachedSizesToArray( 640 ::google::protobuf::uint8* Type::InternalSerializeWithCachedSizesToArray(
552 ::google::protobuf::uint8* target) const { 641 bool deterministic, ::google::protobuf::uint8* target) const {
642 (void)deterministic; // Unused
553 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Type) 643 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Type)
554 // optional string name = 1; 644 // string name = 1;
555 if (this->name().size() > 0) { 645 if (this->name().size() > 0) {
556 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 646 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
557 this->name().data(), this->name().length(), 647 this->name().data(), this->name().length(),
558 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 648 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
559 "google.protobuf.Type.name"); 649 "google.protobuf.Type.name");
560 target = 650 target =
561 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 651 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
562 1, this->name(), target); 652 1, this->name(), target);
563 } 653 }
564 654
565 // repeated .google.protobuf.Field fields = 2; 655 // repeated .google.protobuf.Field fields = 2;
566 for (unsigned int i = 0, n = this->fields_size(); i < n; i++) { 656 for (unsigned int i = 0, n = this->fields_size(); i < n; i++) {
567 target = ::google::protobuf::internal::WireFormatLite:: 657 target = ::google::protobuf::internal::WireFormatLite::
568 WriteMessageNoVirtualToArray( 658 InternalWriteMessageNoVirtualToArray(
569 2, this->fields(i), target); 659 2, this->fields(i), false, target);
570 } 660 }
571 661
572 // repeated string oneofs = 3; 662 // repeated string oneofs = 3;
573 for (int i = 0; i < this->oneofs_size(); i++) { 663 for (int i = 0; i < this->oneofs_size(); i++) {
574 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 664 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
575 this->oneofs(i).data(), this->oneofs(i).length(), 665 this->oneofs(i).data(), this->oneofs(i).length(),
576 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 666 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
577 "google.protobuf.Type.oneofs"); 667 "google.protobuf.Type.oneofs");
578 target = ::google::protobuf::internal::WireFormatLite:: 668 target = ::google::protobuf::internal::WireFormatLite::
579 WriteStringToArray(3, this->oneofs(i), target); 669 WriteStringToArray(3, this->oneofs(i), target);
580 } 670 }
581 671
582 // repeated .google.protobuf.Option options = 4; 672 // repeated .google.protobuf.Option options = 4;
583 for (unsigned int i = 0, n = this->options_size(); i < n; i++) { 673 for (unsigned int i = 0, n = this->options_size(); i < n; i++) {
584 target = ::google::protobuf::internal::WireFormatLite:: 674 target = ::google::protobuf::internal::WireFormatLite::
585 WriteMessageNoVirtualToArray( 675 InternalWriteMessageNoVirtualToArray(
586 4, this->options(i), target); 676 4, this->options(i), false, target);
587 } 677 }
588 678
589 // optional .google.protobuf.SourceContext source_context = 5; 679 // .google.protobuf.SourceContext source_context = 5;
590 if (this->has_source_context()) { 680 if (this->has_source_context()) {
591 target = ::google::protobuf::internal::WireFormatLite:: 681 target = ::google::protobuf::internal::WireFormatLite::
592 WriteMessageNoVirtualToArray( 682 InternalWriteMessageNoVirtualToArray(
593 5, *this->source_context_, target); 683 5, *this->source_context_, false, target);
594 } 684 }
595 685
596 // optional .google.protobuf.Syntax syntax = 6; 686 // .google.protobuf.Syntax syntax = 6;
597 if (this->syntax() != 0) { 687 if (this->syntax() != 0) {
598 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 688 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
599 6, this->syntax(), target); 689 6, this->syntax(), target);
600 } 690 }
601 691
602 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Type) 692 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Type)
603 return target; 693 return target;
604 } 694 }
605 695
606 int Type::ByteSize() const { 696 size_t Type::ByteSizeLong() const {
607 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Type) 697 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Type)
608 int total_size = 0; 698 size_t total_size = 0;
609 699
610 // optional string name = 1; 700 // repeated .google.protobuf.Field fields = 2;
701 {
702 unsigned int count = this->fields_size();
703 total_size += 1UL * count;
704 for (unsigned int i = 0; i < count; i++) {
705 total_size +=
706 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
707 this->fields(i));
708 }
709 }
710
711 // repeated string oneofs = 3;
712 total_size += 1 *
713 ::google::protobuf::internal::FromIntSize(this->oneofs_size());
714 for (int i = 0; i < this->oneofs_size(); i++) {
715 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
716 this->oneofs(i));
717 }
718
719 // repeated .google.protobuf.Option options = 4;
720 {
721 unsigned int count = this->options_size();
722 total_size += 1UL * count;
723 for (unsigned int i = 0; i < count; i++) {
724 total_size +=
725 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
726 this->options(i));
727 }
728 }
729
730 // string name = 1;
611 if (this->name().size() > 0) { 731 if (this->name().size() > 0) {
612 total_size += 1 + 732 total_size += 1 +
613 ::google::protobuf::internal::WireFormatLite::StringSize( 733 ::google::protobuf::internal::WireFormatLite::StringSize(
614 this->name()); 734 this->name());
615 } 735 }
616 736
617 // optional .google.protobuf.SourceContext source_context = 5; 737 // .google.protobuf.SourceContext source_context = 5;
618 if (this->has_source_context()) { 738 if (this->has_source_context()) {
619 total_size += 1 + 739 total_size += 1 +
620 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( 740 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
621 *this->source_context_); 741 *this->source_context_);
622 } 742 }
623 743
624 // optional .google.protobuf.Syntax syntax = 6; 744 // .google.protobuf.Syntax syntax = 6;
625 if (this->syntax() != 0) { 745 if (this->syntax() != 0) {
626 total_size += 1 + 746 total_size += 1 +
627 ::google::protobuf::internal::WireFormatLite::EnumSize(this->syntax()); 747 ::google::protobuf::internal::WireFormatLite::EnumSize(this->syntax());
628 } 748 }
629 749
630 // repeated .google.protobuf.Field fields = 2; 750 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
631 total_size += 1 * this->fields_size();
632 for (int i = 0; i < this->fields_size(); i++) {
633 total_size +=
634 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
635 this->fields(i));
636 }
637
638 // repeated string oneofs = 3;
639 total_size += 1 * this->oneofs_size();
640 for (int i = 0; i < this->oneofs_size(); i++) {
641 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
642 this->oneofs(i));
643 }
644
645 // repeated .google.protobuf.Option options = 4;
646 total_size += 1 * this->options_size();
647 for (int i = 0; i < this->options_size(); i++) {
648 total_size +=
649 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
650 this->options(i));
651 }
652
653 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 751 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
654 _cached_size_ = total_size; 752 _cached_size_ = cached_size;
655 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 753 GOOGLE_SAFE_CONCURRENT_WRITES_END();
656 return total_size; 754 return total_size;
657 } 755 }
658 756
659 void Type::MergeFrom(const ::google::protobuf::Message& from) { 757 void Type::MergeFrom(const ::google::protobuf::Message& from) {
660 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Type) 758 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Type)
661 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 759 GOOGLE_DCHECK_NE(&from, this);
662 const Type* source = 760 const Type* source =
663 ::google::protobuf::internal::DynamicCastToGenerated<const Type>( 761 ::google::protobuf::internal::DynamicCastToGenerated<const Type>(
664 &from); 762 &from);
665 if (source == NULL) { 763 if (source == NULL) {
666 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.T ype) 764 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.T ype)
667 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 765 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
668 } else { 766 } else {
669 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.Type) 767 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.Type)
670 MergeFrom(*source); 768 MergeFrom(*source);
671 } 769 }
672 } 770 }
673 771
674 void Type::MergeFrom(const Type& from) { 772 void Type::MergeFrom(const Type& from) {
675 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Type ) 773 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Type )
676 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 774 GOOGLE_DCHECK_NE(&from, this);
775 _internal_metadata_.MergeFrom(from._internal_metadata_);
677 fields_.MergeFrom(from.fields_); 776 fields_.MergeFrom(from.fields_);
678 oneofs_.MergeFrom(from.oneofs_); 777 oneofs_.MergeFrom(from.oneofs_);
679 options_.MergeFrom(from.options_); 778 options_.MergeFrom(from.options_);
680 if (from.name().size() > 0) { 779 if (from.name().size() > 0) {
681 780 set_name(from.name());
682 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlready Inited(), from.name_);
683 } 781 }
684 if (from.has_source_context()) { 782 if (from.has_source_context()) {
685 mutable_source_context()->::google::protobuf::SourceContext::MergeFrom(from. source_context()); 783 mutable_source_context()->::google::protobuf::SourceContext::MergeFrom(from. source_context());
686 } 784 }
687 if (from.syntax() != 0) { 785 if (from.syntax() != 0) {
688 set_syntax(from.syntax()); 786 set_syntax(from.syntax());
689 } 787 }
690 } 788 }
691 789
692 void Type::CopyFrom(const ::google::protobuf::Message& from) { 790 void Type::CopyFrom(const ::google::protobuf::Message& from) {
693 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Type) 791 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Type)
694 if (&from == this) return; 792 if (&from == this) return;
695 Clear(); 793 Clear();
696 MergeFrom(from); 794 MergeFrom(from);
697 } 795 }
698 796
699 void Type::CopyFrom(const Type& from) { 797 void Type::CopyFrom(const Type& from) {
700 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Type) 798 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Type)
701 if (&from == this) return; 799 if (&from == this) return;
702 Clear(); 800 Clear();
703 MergeFrom(from); 801 MergeFrom(from);
704 } 802 }
705 803
706 bool Type::IsInitialized() const { 804 bool Type::IsInitialized() const {
707
708 return true; 805 return true;
709 } 806 }
710 807
711 void Type::Swap(Type* other) { 808 void Type::Swap(Type* other) {
712 if (other == this) return; 809 if (other == this) return;
810 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
811 InternalSwap(other);
812 } else {
813 Type* temp = New(GetArenaNoVirtual());
814 temp->MergeFrom(*other);
815 other->CopyFrom(*this);
816 InternalSwap(temp);
817 if (GetArenaNoVirtual() == NULL) {
818 delete temp;
819 }
820 }
821 }
822 void Type::UnsafeArenaSwap(Type* other) {
823 if (other == this) return;
824 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
713 InternalSwap(other); 825 InternalSwap(other);
714 } 826 }
715 void Type::InternalSwap(Type* other) { 827 void Type::InternalSwap(Type* other) {
716 name_.Swap(&other->name_);
717 fields_.UnsafeArenaSwap(&other->fields_); 828 fields_.UnsafeArenaSwap(&other->fields_);
718 oneofs_.UnsafeArenaSwap(&other->oneofs_); 829 oneofs_.UnsafeArenaSwap(&other->oneofs_);
719 options_.UnsafeArenaSwap(&other->options_); 830 options_.UnsafeArenaSwap(&other->options_);
831 name_.Swap(&other->name_);
720 std::swap(source_context_, other->source_context_); 832 std::swap(source_context_, other->source_context_);
721 std::swap(syntax_, other->syntax_); 833 std::swap(syntax_, other->syntax_);
722 _internal_metadata_.Swap(&other->_internal_metadata_);
723 std::swap(_cached_size_, other->_cached_size_); 834 std::swap(_cached_size_, other->_cached_size_);
724 } 835 }
725 836
726 ::google::protobuf::Metadata Type::GetMetadata() const { 837 ::google::protobuf::Metadata Type::GetMetadata() const {
727 protobuf_AssignDescriptorsOnce(); 838 protobuf_AssignDescriptorsOnce();
728 ::google::protobuf::Metadata metadata; 839 return file_level_metadata[0];
729 metadata.descriptor = Type_descriptor_;
730 metadata.reflection = Type_reflection_;
731 return metadata;
732 } 840 }
733 841
734 #if PROTOBUF_INLINE_NOT_IN_HEADERS 842 #if PROTOBUF_INLINE_NOT_IN_HEADERS
735 // Type 843 // Type
736 844
737 // optional string name = 1; 845 // string name = 1;
738 void Type::clear_name() { 846 void Type::clear_name() {
739 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 847 name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), GetArenaNoVirtual());
740 } 848 }
741 const ::std::string& Type::name() const { 849 const ::std::string& Type::name() const {
742 // @@protoc_insertion_point(field_get:google.protobuf.Type.name) 850 // @@protoc_insertion_point(field_get:google.protobuf.Type.name)
743 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited()); 851 return name_.Get();
744 } 852 }
745 void Type::set_name(const ::std::string& value) { 853 void Type::set_name(const ::std::string& value) {
746 854
747 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 855 name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
748 // @@protoc_insertion_point(field_set:google.protobuf.Type.name) 856 // @@protoc_insertion_point(field_set:google.protobuf.Type.name)
749 } 857 }
750 void Type::set_name(const char* value) { 858 void Type::set_name(const char* value) {
751 859
752 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 860 name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std: :string(value),
861 GetArenaNoVirtual());
753 // @@protoc_insertion_point(field_set_char:google.protobuf.Type.name) 862 // @@protoc_insertion_point(field_set_char:google.protobuf.Type.name)
754 } 863 }
755 void Type::set_name(const char* value, size_t size) { 864 void Type::set_name(const char* value,
865 size_t size) {
756 866
757 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 867 name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std: :string(
758 ::std::string(reinterpret_cast<const char*>(value), size)); 868 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
759 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Type.name) 869 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Type.name)
760 } 870 }
761 ::std::string* Type::mutable_name() { 871 ::std::string* Type::mutable_name() {
762 872
763 // @@protoc_insertion_point(field_mutable:google.protobuf.Type.name) 873 // @@protoc_insertion_point(field_mutable:google.protobuf.Type.name)
764 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 874 return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInite d(), GetArenaNoVirtual());
765 } 875 }
766 ::std::string* Type::release_name() { 876 ::std::string* Type::release_name() {
767 // @@protoc_insertion_point(field_release:google.protobuf.Type.name) 877 // @@protoc_insertion_point(field_release:google.protobuf.Type.name)
768 878
769 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 879 return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInite d(), GetArenaNoVirtual());
770 } 880 }
771 void Type::set_allocated_name(::std::string* name) { 881 ::std::string* Type::unsafe_arena_release_name() {
882 // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Type.na me)
883 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
884
885 return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringA lreadyInited(),
886 GetArenaNoVirtual());
887 }
888 void Type::set_allocated_name(::std::string* name) {
772 if (name != NULL) { 889 if (name != NULL) {
773 890
774 } else { 891 } else {
775 892
776 } 893 }
777 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name); 894 name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), name,
895 GetArenaNoVirtual());
778 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Type.name) 896 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Type.name)
779 } 897 }
898 void Type::unsafe_arena_set_allocated_name(
899 ::std::string* name) {
900 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
901 if (name != NULL) {
902
903 } else {
904
905 }
906 name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(),
907 name, GetArenaNoVirtual());
908 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.T ype.name)
909 }
780 910
781 // repeated .google.protobuf.Field fields = 2; 911 // repeated .google.protobuf.Field fields = 2;
782 int Type::fields_size() const { 912 int Type::fields_size() const {
783 return fields_.size(); 913 return fields_.size();
784 } 914 }
785 void Type::clear_fields() { 915 void Type::clear_fields() {
786 fields_.Clear(); 916 fields_.Clear();
787 } 917 }
788 const ::google::protobuf::Field& Type::fields(int index) const { 918 const ::google::protobuf::Field& Type::fields(int index) const {
789 // @@protoc_insertion_point(field_get:google.protobuf.Type.fields) 919 // @@protoc_insertion_point(field_get:google.protobuf.Type.fields)
(...skipping 18 matching lines...) Expand all
808 return fields_; 938 return fields_;
809 } 939 }
810 940
811 // repeated string oneofs = 3; 941 // repeated string oneofs = 3;
812 int Type::oneofs_size() const { 942 int Type::oneofs_size() const {
813 return oneofs_.size(); 943 return oneofs_.size();
814 } 944 }
815 void Type::clear_oneofs() { 945 void Type::clear_oneofs() {
816 oneofs_.Clear(); 946 oneofs_.Clear();
817 } 947 }
818 const ::std::string& Type::oneofs(int index) const { 948 const ::std::string& Type::oneofs(int index) const {
819 // @@protoc_insertion_point(field_get:google.protobuf.Type.oneofs) 949 // @@protoc_insertion_point(field_get:google.protobuf.Type.oneofs)
820 return oneofs_.Get(index); 950 return oneofs_.Get(index);
821 } 951 }
822 ::std::string* Type::mutable_oneofs(int index) { 952 ::std::string* Type::mutable_oneofs(int index) {
823 // @@protoc_insertion_point(field_mutable:google.protobuf.Type.oneofs) 953 // @@protoc_insertion_point(field_mutable:google.protobuf.Type.oneofs)
824 return oneofs_.Mutable(index); 954 return oneofs_.Mutable(index);
825 } 955 }
826 void Type::set_oneofs(int index, const ::std::string& value) { 956 void Type::set_oneofs(int index, const ::std::string& value) {
827 // @@protoc_insertion_point(field_set:google.protobuf.Type.oneofs) 957 // @@protoc_insertion_point(field_set:google.protobuf.Type.oneofs)
828 oneofs_.Mutable(index)->assign(value); 958 oneofs_.Mutable(index)->assign(value);
829 } 959 }
830 void Type::set_oneofs(int index, const char* value) { 960 void Type::set_oneofs(int index, const char* value) {
831 oneofs_.Mutable(index)->assign(value); 961 oneofs_.Mutable(index)->assign(value);
832 // @@protoc_insertion_point(field_set_char:google.protobuf.Type.oneofs) 962 // @@protoc_insertion_point(field_set_char:google.protobuf.Type.oneofs)
833 } 963 }
834 void Type::set_oneofs(int index, const char* value, size_t size) { 964 void Type::set_oneofs(int index, const char* value, size_t size) {
835 oneofs_.Mutable(index)->assign( 965 oneofs_.Mutable(index)->assign(
836 reinterpret_cast<const char*>(value), size); 966 reinterpret_cast<const char*>(value), size);
837 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Type.oneofs) 967 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Type.oneofs)
838 } 968 }
839 ::std::string* Type::add_oneofs() { 969 ::std::string* Type::add_oneofs() {
840 // @@protoc_insertion_point(field_add_mutable:google.protobuf.Type.oneofs) 970 // @@protoc_insertion_point(field_add_mutable:google.protobuf.Type.oneofs)
841 return oneofs_.Add(); 971 return oneofs_.Add();
842 } 972 }
843 void Type::add_oneofs(const ::std::string& value) { 973 void Type::add_oneofs(const ::std::string& value) {
844 oneofs_.Add()->assign(value); 974 oneofs_.Add()->assign(value);
845 // @@protoc_insertion_point(field_add:google.protobuf.Type.oneofs) 975 // @@protoc_insertion_point(field_add:google.protobuf.Type.oneofs)
846 } 976 }
847 void Type::add_oneofs(const char* value) { 977 void Type::add_oneofs(const char* value) {
848 oneofs_.Add()->assign(value); 978 oneofs_.Add()->assign(value);
849 // @@protoc_insertion_point(field_add_char:google.protobuf.Type.oneofs) 979 // @@protoc_insertion_point(field_add_char:google.protobuf.Type.oneofs)
850 } 980 }
851 void Type::add_oneofs(const char* value, size_t size) { 981 void Type::add_oneofs(const char* value, size_t size) {
852 oneofs_.Add()->assign(reinterpret_cast<const char*>(value), size); 982 oneofs_.Add()->assign(reinterpret_cast<const char*>(value), size);
853 // @@protoc_insertion_point(field_add_pointer:google.protobuf.Type.oneofs) 983 // @@protoc_insertion_point(field_add_pointer:google.protobuf.Type.oneofs)
854 } 984 }
855 const ::google::protobuf::RepeatedPtrField< ::std::string>& 985 const ::google::protobuf::RepeatedPtrField< ::std::string>&
856 Type::oneofs() const { 986 Type::oneofs() const {
857 // @@protoc_insertion_point(field_list:google.protobuf.Type.oneofs) 987 // @@protoc_insertion_point(field_list:google.protobuf.Type.oneofs)
858 return oneofs_; 988 return oneofs_;
859 } 989 }
860 ::google::protobuf::RepeatedPtrField< ::std::string>* 990 ::google::protobuf::RepeatedPtrField< ::std::string>*
861 Type::mutable_oneofs() { 991 Type::mutable_oneofs() {
862 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Type.oneofs) 992 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Type.oneofs)
863 return &oneofs_; 993 return &oneofs_;
864 } 994 }
865 995
866 // repeated .google.protobuf.Option options = 4; 996 // repeated .google.protobuf.Option options = 4;
867 int Type::options_size() const { 997 int Type::options_size() const {
868 return options_.size(); 998 return options_.size();
869 } 999 }
870 void Type::clear_options() { 1000 void Type::clear_options() {
(...skipping 15 matching lines...) Expand all
886 Type::mutable_options() { 1016 Type::mutable_options() {
887 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Type.options) 1017 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Type.options)
888 return &options_; 1018 return &options_;
889 } 1019 }
890 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >& 1020 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
891 Type::options() const { 1021 Type::options() const {
892 // @@protoc_insertion_point(field_list:google.protobuf.Type.options) 1022 // @@protoc_insertion_point(field_list:google.protobuf.Type.options)
893 return options_; 1023 return options_;
894 } 1024 }
895 1025
896 // optional .google.protobuf.SourceContext source_context = 5; 1026 // .google.protobuf.SourceContext source_context = 5;
897 bool Type::has_source_context() const { 1027 bool Type::has_source_context() const {
898 return !_is_default_instance_ && source_context_ != NULL; 1028 return this != internal_default_instance() && source_context_ != NULL;
899 } 1029 }
900 void Type::clear_source_context() { 1030 void Type::clear_source_context() {
901 if (GetArenaNoVirtual() == NULL && source_context_ != NULL) delete source_cont ext_; 1031 if (GetArenaNoVirtual() == NULL && source_context_ != NULL) delete source_cont ext_;
902 source_context_ = NULL; 1032 source_context_ = NULL;
903 } 1033 }
904 const ::google::protobuf::SourceContext& Type::source_context() const { 1034 const ::google::protobuf::SourceContext& Type::source_context() const {
905 // @@protoc_insertion_point(field_get:google.protobuf.Type.source_context) 1035 // @@protoc_insertion_point(field_get:google.protobuf.Type.source_context)
906 return source_context_ != NULL ? *source_context_ : *default_instance_->source _context_; 1036 return source_context_ != NULL ? *source_context_
1037 : *::google::protobuf::SourceContext::internal_default_ instance();
907 } 1038 }
908 ::google::protobuf::SourceContext* Type::mutable_source_context() { 1039 ::google::protobuf::SourceContext* Type::mutable_source_context() {
909 1040
910 if (source_context_ == NULL) { 1041 if (source_context_ == NULL) {
911 source_context_ = new ::google::protobuf::SourceContext; 1042 _slow_mutable_source_context();
912 } 1043 }
913 // @@protoc_insertion_point(field_mutable:google.protobuf.Type.source_context) 1044 // @@protoc_insertion_point(field_mutable:google.protobuf.Type.source_context)
914 return source_context_; 1045 return source_context_;
915 } 1046 }
916 ::google::protobuf::SourceContext* Type::release_source_context() { 1047 ::google::protobuf::SourceContext* Type::release_source_context() {
917 // @@protoc_insertion_point(field_release:google.protobuf.Type.source_context) 1048 // @@protoc_insertion_point(field_release:google.protobuf.Type.source_context)
918 1049
919 ::google::protobuf::SourceContext* temp = source_context_; 1050 if (GetArenaNoVirtual() != NULL) {
920 source_context_ = NULL; 1051 return _slow_release_source_context();
921 return temp; 1052 } else {
1053 ::google::protobuf::SourceContext* temp = source_context_;
1054 source_context_ = NULL;
1055 return temp;
1056 }
922 } 1057 }
923 void Type::set_allocated_source_context(::google::protobuf::SourceContext* sourc e_context) { 1058 void Type::set_allocated_source_context(::google::protobuf::SourceContext* sour ce_context) {
924 delete source_context_; 1059 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1060 if (message_arena == NULL) {
1061 delete source_context_;
1062 }
1063 if (source_context != NULL) {
1064 if (message_arena != NULL) {
1065 message_arena->Own(source_context);
1066 }
1067 }
925 source_context_ = source_context; 1068 source_context_ = source_context;
926 if (source_context) { 1069 if (source_context) {
927 1070
928 } else { 1071 } else {
929 1072
930 } 1073 }
931 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Type.source_co ntext) 1074 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Type.source_co ntext)
932 } 1075 }
933 1076
934 // optional .google.protobuf.Syntax syntax = 6; 1077 // .google.protobuf.Syntax syntax = 6;
935 void Type::clear_syntax() { 1078 void Type::clear_syntax() {
936 syntax_ = 0; 1079 syntax_ = 0;
937 } 1080 }
938 ::google::protobuf::Syntax Type::syntax() const { 1081 ::google::protobuf::Syntax Type::syntax() const {
939 // @@protoc_insertion_point(field_get:google.protobuf.Type.syntax) 1082 // @@protoc_insertion_point(field_get:google.protobuf.Type.syntax)
940 return static_cast< ::google::protobuf::Syntax >(syntax_); 1083 return static_cast< ::google::protobuf::Syntax >(syntax_);
941 } 1084 }
942 void Type::set_syntax(::google::protobuf::Syntax value) { 1085 void Type::set_syntax(::google::protobuf::Syntax value) {
943 1086
944 syntax_ = value; 1087 syntax_ = value;
945 // @@protoc_insertion_point(field_set:google.protobuf.Type.syntax) 1088 // @@protoc_insertion_point(field_set:google.protobuf.Type.syntax)
946 } 1089 }
947 1090
948 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 1091 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
949 1092
950 // =================================================================== 1093 // ===================================================================
951 1094
952 const ::google::protobuf::EnumDescriptor* Field_Kind_descriptor() {
953 protobuf_AssignDescriptorsOnce();
954 return Field_Kind_descriptor_;
955 }
956 bool Field_Kind_IsValid(int value) {
957 switch(value) {
958 case 0:
959 case 1:
960 case 2:
961 case 3:
962 case 4:
963 case 5:
964 case 6:
965 case 7:
966 case 8:
967 case 9:
968 case 10:
969 case 11:
970 case 12:
971 case 13:
972 case 14:
973 case 15:
974 case 16:
975 case 17:
976 case 18:
977 return true;
978 default:
979 return false;
980 }
981 }
982
983 #if !defined(_MSC_VER) || _MSC_VER >= 1900
984 const Field_Kind Field::TYPE_UNKNOWN;
985 const Field_Kind Field::TYPE_DOUBLE;
986 const Field_Kind Field::TYPE_FLOAT;
987 const Field_Kind Field::TYPE_INT64;
988 const Field_Kind Field::TYPE_UINT64;
989 const Field_Kind Field::TYPE_INT32;
990 const Field_Kind Field::TYPE_FIXED64;
991 const Field_Kind Field::TYPE_FIXED32;
992 const Field_Kind Field::TYPE_BOOL;
993 const Field_Kind Field::TYPE_STRING;
994 const Field_Kind Field::TYPE_GROUP;
995 const Field_Kind Field::TYPE_MESSAGE;
996 const Field_Kind Field::TYPE_BYTES;
997 const Field_Kind Field::TYPE_UINT32;
998 const Field_Kind Field::TYPE_ENUM;
999 const Field_Kind Field::TYPE_SFIXED32;
1000 const Field_Kind Field::TYPE_SFIXED64;
1001 const Field_Kind Field::TYPE_SINT32;
1002 const Field_Kind Field::TYPE_SINT64;
1003 const Field_Kind Field::Kind_MIN;
1004 const Field_Kind Field::Kind_MAX;
1005 const int Field::Kind_ARRAYSIZE;
1006 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1007 const ::google::protobuf::EnumDescriptor* Field_Cardinality_descriptor() {
1008 protobuf_AssignDescriptorsOnce();
1009 return Field_Cardinality_descriptor_;
1010 }
1011 bool Field_Cardinality_IsValid(int value) {
1012 switch(value) {
1013 case 0:
1014 case 1:
1015 case 2:
1016 case 3:
1017 return true;
1018 default:
1019 return false;
1020 }
1021 }
1022
1023 #if !defined(_MSC_VER) || _MSC_VER >= 1900
1024 const Field_Cardinality Field::CARDINALITY_UNKNOWN;
1025 const Field_Cardinality Field::CARDINALITY_OPTIONAL;
1026 const Field_Cardinality Field::CARDINALITY_REQUIRED;
1027 const Field_Cardinality Field::CARDINALITY_REPEATED;
1028 const Field_Cardinality Field::Cardinality_MIN;
1029 const Field_Cardinality Field::Cardinality_MAX;
1030 const int Field::Cardinality_ARRAYSIZE;
1031 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1032 #if !defined(_MSC_VER) || _MSC_VER >= 1900 1095 #if !defined(_MSC_VER) || _MSC_VER >= 1900
1033 const int Field::kKindFieldNumber; 1096 const int Field::kKindFieldNumber;
1034 const int Field::kCardinalityFieldNumber; 1097 const int Field::kCardinalityFieldNumber;
1035 const int Field::kNumberFieldNumber; 1098 const int Field::kNumberFieldNumber;
1036 const int Field::kNameFieldNumber; 1099 const int Field::kNameFieldNumber;
1037 const int Field::kTypeUrlFieldNumber; 1100 const int Field::kTypeUrlFieldNumber;
1038 const int Field::kOneofIndexFieldNumber; 1101 const int Field::kOneofIndexFieldNumber;
1039 const int Field::kPackedFieldNumber; 1102 const int Field::kPackedFieldNumber;
1040 const int Field::kOptionsFieldNumber; 1103 const int Field::kOptionsFieldNumber;
1041 const int Field::kJsonNameFieldNumber; 1104 const int Field::kJsonNameFieldNumber;
1042 const int Field::kDefaultValueFieldNumber; 1105 const int Field::kDefaultValueFieldNumber;
1043 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 1106 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1044 1107
1045 Field::Field() 1108 Field::Field()
1046 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 1109 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1110 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1111 protobuf_InitDefaults_google_2fprotobuf_2ftype_2eproto();
1112 }
1047 SharedCtor(); 1113 SharedCtor();
1048 // @@protoc_insertion_point(constructor:google.protobuf.Field) 1114 // @@protoc_insertion_point(constructor:google.protobuf.Field)
1049 } 1115 }
1050 1116 Field::Field(::google::protobuf::Arena* arena)
1051 void Field::InitAsDefaultInstance() { 1117 : ::google::protobuf::Message(),
1052 _is_default_instance_ = true; 1118 _internal_metadata_(arena),
1119 options_(arena) {
1120 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
1121 protobuf_InitDefaults_google_2fprotobuf_2ftype_2eproto();
1122 #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
1123 SharedCtor();
1124 RegisterArenaDtor(arena);
1125 // @@protoc_insertion_point(arena_constructor:google.protobuf.Field)
1053 } 1126 }
1054
1055 Field::Field(const Field& from) 1127 Field::Field(const Field& from)
1056 : ::google::protobuf::Message(), 1128 : ::google::protobuf::Message(),
1057 _internal_metadata_(NULL) { 1129 _internal_metadata_(NULL),
1058 SharedCtor(); 1130 options_(from.options_),
1059 MergeFrom(from); 1131 _cached_size_(0) {
1132 _internal_metadata_.MergeFrom(from._internal_metadata_);
1133 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
1134 if (from.name().size() > 0) {
1135 name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from .name(),
1136 GetArenaNoVirtual());
1137 }
1138 type_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlread yInited());
1139 if (from.type_url().size() > 0) {
1140 type_url_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_url(),
1141 GetArenaNoVirtual());
1142 }
1143 json_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
1144 if (from.json_name().size() > 0) {
1145 json_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.json_name(),
1146 GetArenaNoVirtual());
1147 }
1148 default_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringA lreadyInited());
1149 if (from.default_value().size() > 0) {
1150 default_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInite d(), from.default_value(),
1151 GetArenaNoVirtual());
1152 }
1153 ::memcpy(&kind_, &from.kind_,
1154 reinterpret_cast<char*>(&packed_) -
1155 reinterpret_cast<char*>(&kind_) + sizeof(packed_));
1060 // @@protoc_insertion_point(copy_constructor:google.protobuf.Field) 1156 // @@protoc_insertion_point(copy_constructor:google.protobuf.Field)
1061 } 1157 }
1062 1158
1063 void Field::SharedCtor() { 1159 void Field::SharedCtor() {
1064 _is_default_instance_ = false;
1065 ::google::protobuf::internal::GetEmptyString();
1066 _cached_size_ = 0;
1067 kind_ = 0;
1068 cardinality_ = 0;
1069 number_ = 0;
1070 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted()); 1160 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
1071 type_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlread yInited()); 1161 type_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlread yInited());
1072 oneof_index_ = 0;
1073 packed_ = false;
1074 json_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 1162 json_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea dyInited());
1075 default_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringA lreadyInited()); 1163 default_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringA lreadyInited());
1164 ::memset(&kind_, 0, reinterpret_cast<char*>(&packed_) -
1165 reinterpret_cast<char*>(&kind_) + sizeof(packed_));
1166 _cached_size_ = 0;
1076 } 1167 }
1077 1168
1078 Field::~Field() { 1169 Field::~Field() {
1079 // @@protoc_insertion_point(destructor:google.protobuf.Field) 1170 // @@protoc_insertion_point(destructor:google.protobuf.Field)
1080 SharedDtor(); 1171 SharedDtor();
1081 } 1172 }
1082 1173
1083 void Field::SharedDtor() { 1174 void Field::SharedDtor() {
1084 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d()); 1175 ::google::protobuf::Arena* arena = GetArenaNoVirtual();
1085 type_url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyI nited()); 1176 if (arena != NULL) {
1086 json_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 1177 return;
1087 default_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited());
1088 if (this != default_instance_) {
1089 } 1178 }
1179
1180 name_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ar ena);
1181 type_url_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited() , arena);
1182 json_name_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), arena);
1183 default_value_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted(), arena);
1090 } 1184 }
1091 1185
1186 void Field::ArenaDtor(void* object) {
1187 Field* _this = reinterpret_cast< Field* >(object);
1188 (void)_this;
1189 }
1190 void Field::RegisterArenaDtor(::google::protobuf::Arena* arena) {
1191 }
1092 void Field::SetCachedSize(int size) const { 1192 void Field::SetCachedSize(int size) const {
1093 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 1193 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1094 _cached_size_ = size; 1194 _cached_size_ = size;
1095 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 1195 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1096 } 1196 }
1097 const ::google::protobuf::Descriptor* Field::descriptor() { 1197 const ::google::protobuf::Descriptor* Field::descriptor() {
1098 protobuf_AssignDescriptorsOnce(); 1198 protobuf_AssignDescriptorsOnce();
1099 return Field_descriptor_; 1199 return file_level_metadata[1].descriptor;
1100 } 1200 }
1101 1201
1102 const Field& Field::default_instance() { 1202 const Field& Field::default_instance() {
1103 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2ftype_2epro to(); 1203 protobuf_InitDefaults_google_2fprotobuf_2ftype_2eproto();
1104 return *default_instance_; 1204 return *internal_default_instance();
1105 } 1205 }
1106 1206
1107 Field* Field::default_instance_ = NULL;
1108
1109 Field* Field::New(::google::protobuf::Arena* arena) const { 1207 Field* Field::New(::google::protobuf::Arena* arena) const {
1110 Field* n = new Field; 1208 return ::google::protobuf::Arena::CreateMessage<Field>(arena);
1111 if (arena != NULL) {
1112 arena->Own(n);
1113 }
1114 return n;
1115 } 1209 }
1116 1210
1117 void Field::Clear() { 1211 void Field::Clear() {
1118 // @@protoc_insertion_point(message_clear_start:google.protobuf.Field) 1212 // @@protoc_insertion_point(message_clear_start:google.protobuf.Field)
1119 #if defined(__clang__)
1120 #define ZR_HELPER_(f) \
1121 _Pragma("clang diagnostic push") \
1122 _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \
1123 __builtin_offsetof(Field, f) \
1124 _Pragma("clang diagnostic pop")
1125 #else
1126 #define ZR_HELPER_(f) reinterpret_cast<char*>(\
1127 &reinterpret_cast<Field*>(16)->f)
1128 #endif
1129
1130 #define ZR_(first, last) do {\
1131 ::memset(&first, 0,\
1132 ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
1133 } while (0)
1134
1135 ZR_(kind_, cardinality_);
1136 ZR_(number_, oneof_index_);
1137 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited());
1138 type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited());
1139 packed_ = false;
1140 json_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited());
1141 default_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited());
1142
1143 #undef ZR_HELPER_
1144 #undef ZR_
1145
1146 options_.Clear(); 1213 options_.Clear();
1214 name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), GetArenaNoVirtual());
1215 type_url_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted(), GetArenaNoVirtual());
1216 json_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited(), GetArenaNoVirtual());
1217 default_value_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), GetArenaNoVirtual());
1218 ::memset(&kind_, 0, reinterpret_cast<char*>(&packed_) -
1219 reinterpret_cast<char*>(&kind_) + sizeof(packed_));
1147 } 1220 }
1148 1221
1149 bool Field::MergePartialFromCodedStream( 1222 bool Field::MergePartialFromCodedStream(
1150 ::google::protobuf::io::CodedInputStream* input) { 1223 ::google::protobuf::io::CodedInputStream* input) {
1151 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 1224 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1152 ::google::protobuf::uint32 tag; 1225 ::google::protobuf::uint32 tag;
1153 // @@protoc_insertion_point(parse_start:google.protobuf.Field) 1226 // @@protoc_insertion_point(parse_start:google.protobuf.Field)
1154 for (;;) { 1227 for (;;) {
1155 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127); 1228 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u);
1156 tag = p.first; 1229 tag = p.first;
1157 if (!p.second) goto handle_unusual; 1230 if (!p.second) goto handle_unusual;
1158 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 1231 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
1159 // optional .google.protobuf.Field.Kind kind = 1; 1232 // .google.protobuf.Field.Kind kind = 1;
1160 case 1: { 1233 case 1: {
1161 if (tag == 8) { 1234 if (tag == 8u) {
1162 int value; 1235 int value;
1163 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 1236 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1164 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM> ( 1237 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM> (
1165 input, &value))); 1238 input, &value)));
1166 set_kind(static_cast< ::google::protobuf::Field_Kind >(value)); 1239 set_kind(static_cast< ::google::protobuf::Field_Kind >(value));
1167 } else { 1240 } else {
1168 goto handle_unusual; 1241 goto handle_unusual;
1169 } 1242 }
1170 if (input->ExpectTag(16)) goto parse_cardinality;
1171 break; 1243 break;
1172 } 1244 }
1173 1245
1174 // optional .google.protobuf.Field.Cardinality cardinality = 2; 1246 // .google.protobuf.Field.Cardinality cardinality = 2;
1175 case 2: { 1247 case 2: {
1176 if (tag == 16) { 1248 if (tag == 16u) {
1177 parse_cardinality:
1178 int value; 1249 int value;
1179 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 1250 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1180 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM> ( 1251 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM> (
1181 input, &value))); 1252 input, &value)));
1182 set_cardinality(static_cast< ::google::protobuf::Field_Cardinality >(v alue)); 1253 set_cardinality(static_cast< ::google::protobuf::Field_Cardinality >(v alue));
1183 } else { 1254 } else {
1184 goto handle_unusual; 1255 goto handle_unusual;
1185 } 1256 }
1186 if (input->ExpectTag(24)) goto parse_number;
1187 break; 1257 break;
1188 } 1258 }
1189 1259
1190 // optional int32 number = 3; 1260 // int32 number = 3;
1191 case 3: { 1261 case 3: {
1192 if (tag == 24) { 1262 if (tag == 24u) {
1193 parse_number: 1263
1194 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 1264 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1195 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>( 1265 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
1196 input, &number_))); 1266 input, &number_)));
1197
1198 } else { 1267 } else {
1199 goto handle_unusual; 1268 goto handle_unusual;
1200 } 1269 }
1201 if (input->ExpectTag(34)) goto parse_name;
1202 break; 1270 break;
1203 } 1271 }
1204 1272
1205 // optional string name = 4; 1273 // string name = 4;
1206 case 4: { 1274 case 4: {
1207 if (tag == 34) { 1275 if (tag == 34u) {
1208 parse_name:
1209 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 1276 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1210 input, this->mutable_name())); 1277 input, this->mutable_name()));
1211 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1278 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1212 this->name().data(), this->name().length(), 1279 this->name().data(), this->name().length(),
1213 ::google::protobuf::internal::WireFormatLite::PARSE, 1280 ::google::protobuf::internal::WireFormatLite::PARSE,
1214 "google.protobuf.Field.name")); 1281 "google.protobuf.Field.name"));
1215 } else { 1282 } else {
1216 goto handle_unusual; 1283 goto handle_unusual;
1217 } 1284 }
1218 if (input->ExpectTag(50)) goto parse_type_url;
1219 break; 1285 break;
1220 } 1286 }
1221 1287
1222 // optional string type_url = 6; 1288 // string type_url = 6;
1223 case 6: { 1289 case 6: {
1224 if (tag == 50) { 1290 if (tag == 50u) {
1225 parse_type_url:
1226 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 1291 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1227 input, this->mutable_type_url())); 1292 input, this->mutable_type_url()));
1228 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1293 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1229 this->type_url().data(), this->type_url().length(), 1294 this->type_url().data(), this->type_url().length(),
1230 ::google::protobuf::internal::WireFormatLite::PARSE, 1295 ::google::protobuf::internal::WireFormatLite::PARSE,
1231 "google.protobuf.Field.type_url")); 1296 "google.protobuf.Field.type_url"));
1232 } else { 1297 } else {
1233 goto handle_unusual; 1298 goto handle_unusual;
1234 } 1299 }
1235 if (input->ExpectTag(56)) goto parse_oneof_index;
1236 break; 1300 break;
1237 } 1301 }
1238 1302
1239 // optional int32 oneof_index = 7; 1303 // int32 oneof_index = 7;
1240 case 7: { 1304 case 7: {
1241 if (tag == 56) { 1305 if (tag == 56u) {
1242 parse_oneof_index: 1306
1243 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 1307 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1244 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>( 1308 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
1245 input, &oneof_index_))); 1309 input, &oneof_index_)));
1246
1247 } else { 1310 } else {
1248 goto handle_unusual; 1311 goto handle_unusual;
1249 } 1312 }
1250 if (input->ExpectTag(64)) goto parse_packed;
1251 break; 1313 break;
1252 } 1314 }
1253 1315
1254 // optional bool packed = 8; 1316 // bool packed = 8;
1255 case 8: { 1317 case 8: {
1256 if (tag == 64) { 1318 if (tag == 64u) {
1257 parse_packed: 1319
1258 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 1320 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1259 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >( 1321 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL >(
1260 input, &packed_))); 1322 input, &packed_)));
1261
1262 } else { 1323 } else {
1263 goto handle_unusual; 1324 goto handle_unusual;
1264 } 1325 }
1265 if (input->ExpectTag(74)) goto parse_options;
1266 break; 1326 break;
1267 } 1327 }
1268 1328
1269 // repeated .google.protobuf.Option options = 9; 1329 // repeated .google.protobuf.Option options = 9;
1270 case 9: { 1330 case 9: {
1271 if (tag == 74) { 1331 if (tag == 74u) {
1272 parse_options:
1273 DO_(input->IncrementRecursionDepth()); 1332 DO_(input->IncrementRecursionDepth());
1274 parse_loop_options:
1275 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 1333 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
1276 input, add_options())); 1334 input, add_options()));
1277 } else { 1335 } else {
1278 goto handle_unusual; 1336 goto handle_unusual;
1279 } 1337 }
1280 if (input->ExpectTag(74)) goto parse_loop_options;
1281 input->UnsafeDecrementRecursionDepth(); 1338 input->UnsafeDecrementRecursionDepth();
1282 if (input->ExpectTag(82)) goto parse_json_name;
1283 break; 1339 break;
1284 } 1340 }
1285 1341
1286 // optional string json_name = 10; 1342 // string json_name = 10;
1287 case 10: { 1343 case 10: {
1288 if (tag == 82) { 1344 if (tag == 82u) {
1289 parse_json_name:
1290 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 1345 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1291 input, this->mutable_json_name())); 1346 input, this->mutable_json_name()));
1292 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1347 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1293 this->json_name().data(), this->json_name().length(), 1348 this->json_name().data(), this->json_name().length(),
1294 ::google::protobuf::internal::WireFormatLite::PARSE, 1349 ::google::protobuf::internal::WireFormatLite::PARSE,
1295 "google.protobuf.Field.json_name")); 1350 "google.protobuf.Field.json_name"));
1296 } else { 1351 } else {
1297 goto handle_unusual; 1352 goto handle_unusual;
1298 } 1353 }
1299 if (input->ExpectTag(90)) goto parse_default_value;
1300 break; 1354 break;
1301 } 1355 }
1302 1356
1303 // optional string default_value = 11; 1357 // string default_value = 11;
1304 case 11: { 1358 case 11: {
1305 if (tag == 90) { 1359 if (tag == 90u) {
1306 parse_default_value:
1307 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 1360 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1308 input, this->mutable_default_value())); 1361 input, this->mutable_default_value()));
1309 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1362 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1310 this->default_value().data(), this->default_value().length(), 1363 this->default_value().data(), this->default_value().length(),
1311 ::google::protobuf::internal::WireFormatLite::PARSE, 1364 ::google::protobuf::internal::WireFormatLite::PARSE,
1312 "google.protobuf.Field.default_value")); 1365 "google.protobuf.Field.default_value"));
1313 } else { 1366 } else {
1314 goto handle_unusual; 1367 goto handle_unusual;
1315 } 1368 }
1316 if (input->ExpectAtEnd()) goto success;
1317 break; 1369 break;
1318 } 1370 }
1319 1371
1320 default: { 1372 default: {
1321 handle_unusual: 1373 handle_unusual:
1322 if (tag == 0 || 1374 if (tag == 0 ||
1323 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 1375 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1324 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 1376 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1325 goto success; 1377 goto success;
1326 } 1378 }
1327 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)) ; 1379 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)) ;
1328 break; 1380 break;
1329 } 1381 }
1330 } 1382 }
1331 } 1383 }
1332 success: 1384 success:
1333 // @@protoc_insertion_point(parse_success:google.protobuf.Field) 1385 // @@protoc_insertion_point(parse_success:google.protobuf.Field)
1334 return true; 1386 return true;
1335 failure: 1387 failure:
1336 // @@protoc_insertion_point(parse_failure:google.protobuf.Field) 1388 // @@protoc_insertion_point(parse_failure:google.protobuf.Field)
1337 return false; 1389 return false;
1338 #undef DO_ 1390 #undef DO_
1339 } 1391 }
1340 1392
1341 void Field::SerializeWithCachedSizes( 1393 void Field::SerializeWithCachedSizes(
1342 ::google::protobuf::io::CodedOutputStream* output) const { 1394 ::google::protobuf::io::CodedOutputStream* output) const {
1343 // @@protoc_insertion_point(serialize_start:google.protobuf.Field) 1395 // @@protoc_insertion_point(serialize_start:google.protobuf.Field)
1344 // optional .google.protobuf.Field.Kind kind = 1; 1396 // .google.protobuf.Field.Kind kind = 1;
1345 if (this->kind() != 0) { 1397 if (this->kind() != 0) {
1346 ::google::protobuf::internal::WireFormatLite::WriteEnum( 1398 ::google::protobuf::internal::WireFormatLite::WriteEnum(
1347 1, this->kind(), output); 1399 1, this->kind(), output);
1348 } 1400 }
1349 1401
1350 // optional .google.protobuf.Field.Cardinality cardinality = 2; 1402 // .google.protobuf.Field.Cardinality cardinality = 2;
1351 if (this->cardinality() != 0) { 1403 if (this->cardinality() != 0) {
1352 ::google::protobuf::internal::WireFormatLite::WriteEnum( 1404 ::google::protobuf::internal::WireFormatLite::WriteEnum(
1353 2, this->cardinality(), output); 1405 2, this->cardinality(), output);
1354 } 1406 }
1355 1407
1356 // optional int32 number = 3; 1408 // int32 number = 3;
1357 if (this->number() != 0) { 1409 if (this->number() != 0) {
1358 ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->number(), output); 1410 ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->number(), output);
1359 } 1411 }
1360 1412
1361 // optional string name = 4; 1413 // string name = 4;
1362 if (this->name().size() > 0) { 1414 if (this->name().size() > 0) {
1363 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1415 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1364 this->name().data(), this->name().length(), 1416 this->name().data(), this->name().length(),
1365 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 1417 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1366 "google.protobuf.Field.name"); 1418 "google.protobuf.Field.name");
1367 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1419 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1368 4, this->name(), output); 1420 4, this->name(), output);
1369 } 1421 }
1370 1422
1371 // optional string type_url = 6; 1423 // string type_url = 6;
1372 if (this->type_url().size() > 0) { 1424 if (this->type_url().size() > 0) {
1373 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1425 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1374 this->type_url().data(), this->type_url().length(), 1426 this->type_url().data(), this->type_url().length(),
1375 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 1427 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1376 "google.protobuf.Field.type_url"); 1428 "google.protobuf.Field.type_url");
1377 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1429 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1378 6, this->type_url(), output); 1430 6, this->type_url(), output);
1379 } 1431 }
1380 1432
1381 // optional int32 oneof_index = 7; 1433 // int32 oneof_index = 7;
1382 if (this->oneof_index() != 0) { 1434 if (this->oneof_index() != 0) {
1383 ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->oneof_inde x(), output); 1435 ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->oneof_inde x(), output);
1384 } 1436 }
1385 1437
1386 // optional bool packed = 8; 1438 // bool packed = 8;
1387 if (this->packed() != 0) { 1439 if (this->packed() != 0) {
1388 ::google::protobuf::internal::WireFormatLite::WriteBool(8, this->packed(), o utput); 1440 ::google::protobuf::internal::WireFormatLite::WriteBool(8, this->packed(), o utput);
1389 } 1441 }
1390 1442
1391 // repeated .google.protobuf.Option options = 9; 1443 // repeated .google.protobuf.Option options = 9;
1392 for (unsigned int i = 0, n = this->options_size(); i < n; i++) { 1444 for (unsigned int i = 0, n = this->options_size(); i < n; i++) {
1393 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1445 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1394 9, this->options(i), output); 1446 9, this->options(i), output);
1395 } 1447 }
1396 1448
1397 // optional string json_name = 10; 1449 // string json_name = 10;
1398 if (this->json_name().size() > 0) { 1450 if (this->json_name().size() > 0) {
1399 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1451 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1400 this->json_name().data(), this->json_name().length(), 1452 this->json_name().data(), this->json_name().length(),
1401 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 1453 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1402 "google.protobuf.Field.json_name"); 1454 "google.protobuf.Field.json_name");
1403 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1455 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1404 10, this->json_name(), output); 1456 10, this->json_name(), output);
1405 } 1457 }
1406 1458
1407 // optional string default_value = 11; 1459 // string default_value = 11;
1408 if (this->default_value().size() > 0) { 1460 if (this->default_value().size() > 0) {
1409 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1461 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1410 this->default_value().data(), this->default_value().length(), 1462 this->default_value().data(), this->default_value().length(),
1411 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 1463 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1412 "google.protobuf.Field.default_value"); 1464 "google.protobuf.Field.default_value");
1413 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1465 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1414 11, this->default_value(), output); 1466 11, this->default_value(), output);
1415 } 1467 }
1416 1468
1417 // @@protoc_insertion_point(serialize_end:google.protobuf.Field) 1469 // @@protoc_insertion_point(serialize_end:google.protobuf.Field)
1418 } 1470 }
1419 1471
1420 ::google::protobuf::uint8* Field::SerializeWithCachedSizesToArray( 1472 ::google::protobuf::uint8* Field::InternalSerializeWithCachedSizesToArray(
1421 ::google::protobuf::uint8* target) const { 1473 bool deterministic, ::google::protobuf::uint8* target) const {
1474 (void)deterministic; // Unused
1422 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Field) 1475 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Field)
1423 // optional .google.protobuf.Field.Kind kind = 1; 1476 // .google.protobuf.Field.Kind kind = 1;
1424 if (this->kind() != 0) { 1477 if (this->kind() != 0) {
1425 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 1478 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1426 1, this->kind(), target); 1479 1, this->kind(), target);
1427 } 1480 }
1428 1481
1429 // optional .google.protobuf.Field.Cardinality cardinality = 2; 1482 // .google.protobuf.Field.Cardinality cardinality = 2;
1430 if (this->cardinality() != 0) { 1483 if (this->cardinality() != 0) {
1431 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 1484 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1432 2, this->cardinality(), target); 1485 2, this->cardinality(), target);
1433 } 1486 }
1434 1487
1435 // optional int32 number = 3; 1488 // int32 number = 3;
1436 if (this->number() != 0) { 1489 if (this->number() != 0) {
1437 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->number(), target); 1490 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->number(), target);
1438 } 1491 }
1439 1492
1440 // optional string name = 4; 1493 // string name = 4;
1441 if (this->name().size() > 0) { 1494 if (this->name().size() > 0) {
1442 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1495 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1443 this->name().data(), this->name().length(), 1496 this->name().data(), this->name().length(),
1444 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 1497 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1445 "google.protobuf.Field.name"); 1498 "google.protobuf.Field.name");
1446 target = 1499 target =
1447 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1500 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1448 4, this->name(), target); 1501 4, this->name(), target);
1449 } 1502 }
1450 1503
1451 // optional string type_url = 6; 1504 // string type_url = 6;
1452 if (this->type_url().size() > 0) { 1505 if (this->type_url().size() > 0) {
1453 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1506 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1454 this->type_url().data(), this->type_url().length(), 1507 this->type_url().data(), this->type_url().length(),
1455 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 1508 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1456 "google.protobuf.Field.type_url"); 1509 "google.protobuf.Field.type_url");
1457 target = 1510 target =
1458 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1511 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1459 6, this->type_url(), target); 1512 6, this->type_url(), target);
1460 } 1513 }
1461 1514
1462 // optional int32 oneof_index = 7; 1515 // int32 oneof_index = 7;
1463 if (this->oneof_index() != 0) { 1516 if (this->oneof_index() != 0) {
1464 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->oneof_index(), target); 1517 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->oneof_index(), target);
1465 } 1518 }
1466 1519
1467 // optional bool packed = 8; 1520 // bool packed = 8;
1468 if (this->packed() != 0) { 1521 if (this->packed() != 0) {
1469 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(8, t his->packed(), target); 1522 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(8, t his->packed(), target);
1470 } 1523 }
1471 1524
1472 // repeated .google.protobuf.Option options = 9; 1525 // repeated .google.protobuf.Option options = 9;
1473 for (unsigned int i = 0, n = this->options_size(); i < n; i++) { 1526 for (unsigned int i = 0, n = this->options_size(); i < n; i++) {
1474 target = ::google::protobuf::internal::WireFormatLite:: 1527 target = ::google::protobuf::internal::WireFormatLite::
1475 WriteMessageNoVirtualToArray( 1528 InternalWriteMessageNoVirtualToArray(
1476 9, this->options(i), target); 1529 9, this->options(i), false, target);
1477 } 1530 }
1478 1531
1479 // optional string json_name = 10; 1532 // string json_name = 10;
1480 if (this->json_name().size() > 0) { 1533 if (this->json_name().size() > 0) {
1481 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1534 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1482 this->json_name().data(), this->json_name().length(), 1535 this->json_name().data(), this->json_name().length(),
1483 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 1536 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1484 "google.protobuf.Field.json_name"); 1537 "google.protobuf.Field.json_name");
1485 target = 1538 target =
1486 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1539 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1487 10, this->json_name(), target); 1540 10, this->json_name(), target);
1488 } 1541 }
1489 1542
1490 // optional string default_value = 11; 1543 // string default_value = 11;
1491 if (this->default_value().size() > 0) { 1544 if (this->default_value().size() > 0) {
1492 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1545 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1493 this->default_value().data(), this->default_value().length(), 1546 this->default_value().data(), this->default_value().length(),
1494 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 1547 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1495 "google.protobuf.Field.default_value"); 1548 "google.protobuf.Field.default_value");
1496 target = 1549 target =
1497 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1550 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1498 11, this->default_value(), target); 1551 11, this->default_value(), target);
1499 } 1552 }
1500 1553
1501 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Field) 1554 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Field)
1502 return target; 1555 return target;
1503 } 1556 }
1504 1557
1505 int Field::ByteSize() const { 1558 size_t Field::ByteSizeLong() const {
1506 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Field) 1559 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Field)
1507 int total_size = 0; 1560 size_t total_size = 0;
1508 1561
1509 // optional .google.protobuf.Field.Kind kind = 1; 1562 // repeated .google.protobuf.Option options = 9;
1563 {
1564 unsigned int count = this->options_size();
1565 total_size += 1UL * count;
1566 for (unsigned int i = 0; i < count; i++) {
1567 total_size +=
1568 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1569 this->options(i));
1570 }
1571 }
1572
1573 // string name = 4;
1574 if (this->name().size() > 0) {
1575 total_size += 1 +
1576 ::google::protobuf::internal::WireFormatLite::StringSize(
1577 this->name());
1578 }
1579
1580 // string type_url = 6;
1581 if (this->type_url().size() > 0) {
1582 total_size += 1 +
1583 ::google::protobuf::internal::WireFormatLite::StringSize(
1584 this->type_url());
1585 }
1586
1587 // string json_name = 10;
1588 if (this->json_name().size() > 0) {
1589 total_size += 1 +
1590 ::google::protobuf::internal::WireFormatLite::StringSize(
1591 this->json_name());
1592 }
1593
1594 // string default_value = 11;
1595 if (this->default_value().size() > 0) {
1596 total_size += 1 +
1597 ::google::protobuf::internal::WireFormatLite::StringSize(
1598 this->default_value());
1599 }
1600
1601 // .google.protobuf.Field.Kind kind = 1;
1510 if (this->kind() != 0) { 1602 if (this->kind() != 0) {
1511 total_size += 1 + 1603 total_size += 1 +
1512 ::google::protobuf::internal::WireFormatLite::EnumSize(this->kind()); 1604 ::google::protobuf::internal::WireFormatLite::EnumSize(this->kind());
1513 } 1605 }
1514 1606
1515 // optional .google.protobuf.Field.Cardinality cardinality = 2; 1607 // .google.protobuf.Field.Cardinality cardinality = 2;
1516 if (this->cardinality() != 0) { 1608 if (this->cardinality() != 0) {
1517 total_size += 1 + 1609 total_size += 1 +
1518 ::google::protobuf::internal::WireFormatLite::EnumSize(this->cardinality() ); 1610 ::google::protobuf::internal::WireFormatLite::EnumSize(this->cardinality() );
1519 } 1611 }
1520 1612
1521 // optional int32 number = 3; 1613 // int32 number = 3;
1522 if (this->number() != 0) { 1614 if (this->number() != 0) {
1523 total_size += 1 + 1615 total_size += 1 +
1524 ::google::protobuf::internal::WireFormatLite::Int32Size( 1616 ::google::protobuf::internal::WireFormatLite::Int32Size(
1525 this->number()); 1617 this->number());
1526 } 1618 }
1527 1619
1528 // optional string name = 4; 1620 // int32 oneof_index = 7;
1529 if (this->name().size() > 0) {
1530 total_size += 1 +
1531 ::google::protobuf::internal::WireFormatLite::StringSize(
1532 this->name());
1533 }
1534
1535 // optional string type_url = 6;
1536 if (this->type_url().size() > 0) {
1537 total_size += 1 +
1538 ::google::protobuf::internal::WireFormatLite::StringSize(
1539 this->type_url());
1540 }
1541
1542 // optional int32 oneof_index = 7;
1543 if (this->oneof_index() != 0) { 1621 if (this->oneof_index() != 0) {
1544 total_size += 1 + 1622 total_size += 1 +
1545 ::google::protobuf::internal::WireFormatLite::Int32Size( 1623 ::google::protobuf::internal::WireFormatLite::Int32Size(
1546 this->oneof_index()); 1624 this->oneof_index());
1547 } 1625 }
1548 1626
1549 // optional bool packed = 8; 1627 // bool packed = 8;
1550 if (this->packed() != 0) { 1628 if (this->packed() != 0) {
1551 total_size += 1 + 1; 1629 total_size += 1 + 1;
1552 } 1630 }
1553 1631
1554 // optional string json_name = 10; 1632 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1555 if (this->json_name().size() > 0) {
1556 total_size += 1 +
1557 ::google::protobuf::internal::WireFormatLite::StringSize(
1558 this->json_name());
1559 }
1560
1561 // optional string default_value = 11;
1562 if (this->default_value().size() > 0) {
1563 total_size += 1 +
1564 ::google::protobuf::internal::WireFormatLite::StringSize(
1565 this->default_value());
1566 }
1567
1568 // repeated .google.protobuf.Option options = 9;
1569 total_size += 1 * this->options_size();
1570 for (int i = 0; i < this->options_size(); i++) {
1571 total_size +=
1572 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1573 this->options(i));
1574 }
1575
1576 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 1633 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1577 _cached_size_ = total_size; 1634 _cached_size_ = cached_size;
1578 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 1635 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1579 return total_size; 1636 return total_size;
1580 } 1637 }
1581 1638
1582 void Field::MergeFrom(const ::google::protobuf::Message& from) { 1639 void Field::MergeFrom(const ::google::protobuf::Message& from) {
1583 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Field) 1640 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Field)
1584 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 1641 GOOGLE_DCHECK_NE(&from, this);
1585 const Field* source = 1642 const Field* source =
1586 ::google::protobuf::internal::DynamicCastToGenerated<const Field>( 1643 ::google::protobuf::internal::DynamicCastToGenerated<const Field>(
1587 &from); 1644 &from);
1588 if (source == NULL) { 1645 if (source == NULL) {
1589 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.F ield) 1646 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.F ield)
1590 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 1647 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1591 } else { 1648 } else {
1592 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.Field) 1649 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.Field)
1593 MergeFrom(*source); 1650 MergeFrom(*source);
1594 } 1651 }
1595 } 1652 }
1596 1653
1597 void Field::MergeFrom(const Field& from) { 1654 void Field::MergeFrom(const Field& from) {
1598 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Fiel d) 1655 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Fiel d)
1599 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 1656 GOOGLE_DCHECK_NE(&from, this);
1657 _internal_metadata_.MergeFrom(from._internal_metadata_);
1600 options_.MergeFrom(from.options_); 1658 options_.MergeFrom(from.options_);
1659 if (from.name().size() > 0) {
1660 set_name(from.name());
1661 }
1662 if (from.type_url().size() > 0) {
1663 set_type_url(from.type_url());
1664 }
1665 if (from.json_name().size() > 0) {
1666 set_json_name(from.json_name());
1667 }
1668 if (from.default_value().size() > 0) {
1669 set_default_value(from.default_value());
1670 }
1601 if (from.kind() != 0) { 1671 if (from.kind() != 0) {
1602 set_kind(from.kind()); 1672 set_kind(from.kind());
1603 } 1673 }
1604 if (from.cardinality() != 0) { 1674 if (from.cardinality() != 0) {
1605 set_cardinality(from.cardinality()); 1675 set_cardinality(from.cardinality());
1606 } 1676 }
1607 if (from.number() != 0) { 1677 if (from.number() != 0) {
1608 set_number(from.number()); 1678 set_number(from.number());
1609 } 1679 }
1610 if (from.name().size() > 0) {
1611
1612 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlready Inited(), from.name_);
1613 }
1614 if (from.type_url().size() > 0) {
1615
1616 type_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), from.type_url_);
1617 }
1618 if (from.oneof_index() != 0) { 1680 if (from.oneof_index() != 0) {
1619 set_oneof_index(from.oneof_index()); 1681 set_oneof_index(from.oneof_index());
1620 } 1682 }
1621 if (from.packed() != 0) { 1683 if (from.packed() != 0) {
1622 set_packed(from.packed()); 1684 set_packed(from.packed());
1623 } 1685 }
1624 if (from.json_name().size() > 0) {
1625
1626 json_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAl readyInited(), from.json_name_);
1627 }
1628 if (from.default_value().size() > 0) {
1629
1630 default_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited(), from.default_value_);
1631 }
1632 } 1686 }
1633 1687
1634 void Field::CopyFrom(const ::google::protobuf::Message& from) { 1688 void Field::CopyFrom(const ::google::protobuf::Message& from) {
1635 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Field) 1689 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Field)
1636 if (&from == this) return; 1690 if (&from == this) return;
1637 Clear(); 1691 Clear();
1638 MergeFrom(from); 1692 MergeFrom(from);
1639 } 1693 }
1640 1694
1641 void Field::CopyFrom(const Field& from) { 1695 void Field::CopyFrom(const Field& from) {
1642 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Field ) 1696 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Field )
1643 if (&from == this) return; 1697 if (&from == this) return;
1644 Clear(); 1698 Clear();
1645 MergeFrom(from); 1699 MergeFrom(from);
1646 } 1700 }
1647 1701
1648 bool Field::IsInitialized() const { 1702 bool Field::IsInitialized() const {
1649
1650 return true; 1703 return true;
1651 } 1704 }
1652 1705
1653 void Field::Swap(Field* other) { 1706 void Field::Swap(Field* other) {
1654 if (other == this) return; 1707 if (other == this) return;
1708 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
1709 InternalSwap(other);
1710 } else {
1711 Field* temp = New(GetArenaNoVirtual());
1712 temp->MergeFrom(*other);
1713 other->CopyFrom(*this);
1714 InternalSwap(temp);
1715 if (GetArenaNoVirtual() == NULL) {
1716 delete temp;
1717 }
1718 }
1719 }
1720 void Field::UnsafeArenaSwap(Field* other) {
1721 if (other == this) return;
1722 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
1655 InternalSwap(other); 1723 InternalSwap(other);
1656 } 1724 }
1657 void Field::InternalSwap(Field* other) { 1725 void Field::InternalSwap(Field* other) {
1726 options_.UnsafeArenaSwap(&other->options_);
1727 name_.Swap(&other->name_);
1728 type_url_.Swap(&other->type_url_);
1729 json_name_.Swap(&other->json_name_);
1730 default_value_.Swap(&other->default_value_);
1658 std::swap(kind_, other->kind_); 1731 std::swap(kind_, other->kind_);
1659 std::swap(cardinality_, other->cardinality_); 1732 std::swap(cardinality_, other->cardinality_);
1660 std::swap(number_, other->number_); 1733 std::swap(number_, other->number_);
1661 name_.Swap(&other->name_);
1662 type_url_.Swap(&other->type_url_);
1663 std::swap(oneof_index_, other->oneof_index_); 1734 std::swap(oneof_index_, other->oneof_index_);
1664 std::swap(packed_, other->packed_); 1735 std::swap(packed_, other->packed_);
1665 options_.UnsafeArenaSwap(&other->options_);
1666 json_name_.Swap(&other->json_name_);
1667 default_value_.Swap(&other->default_value_);
1668 _internal_metadata_.Swap(&other->_internal_metadata_);
1669 std::swap(_cached_size_, other->_cached_size_); 1736 std::swap(_cached_size_, other->_cached_size_);
1670 } 1737 }
1671 1738
1672 ::google::protobuf::Metadata Field::GetMetadata() const { 1739 ::google::protobuf::Metadata Field::GetMetadata() const {
1673 protobuf_AssignDescriptorsOnce(); 1740 protobuf_AssignDescriptorsOnce();
1674 ::google::protobuf::Metadata metadata; 1741 return file_level_metadata[1];
1675 metadata.descriptor = Field_descriptor_;
1676 metadata.reflection = Field_reflection_;
1677 return metadata;
1678 } 1742 }
1679 1743
1680 #if PROTOBUF_INLINE_NOT_IN_HEADERS 1744 #if PROTOBUF_INLINE_NOT_IN_HEADERS
1681 // Field 1745 // Field
1682 1746
1683 // optional .google.protobuf.Field.Kind kind = 1; 1747 // .google.protobuf.Field.Kind kind = 1;
1684 void Field::clear_kind() { 1748 void Field::clear_kind() {
1685 kind_ = 0; 1749 kind_ = 0;
1686 } 1750 }
1687 ::google::protobuf::Field_Kind Field::kind() const { 1751 ::google::protobuf::Field_Kind Field::kind() const {
1688 // @@protoc_insertion_point(field_get:google.protobuf.Field.kind) 1752 // @@protoc_insertion_point(field_get:google.protobuf.Field.kind)
1689 return static_cast< ::google::protobuf::Field_Kind >(kind_); 1753 return static_cast< ::google::protobuf::Field_Kind >(kind_);
1690 } 1754 }
1691 void Field::set_kind(::google::protobuf::Field_Kind value) { 1755 void Field::set_kind(::google::protobuf::Field_Kind value) {
1692 1756
1693 kind_ = value; 1757 kind_ = value;
1694 // @@protoc_insertion_point(field_set:google.protobuf.Field.kind) 1758 // @@protoc_insertion_point(field_set:google.protobuf.Field.kind)
1695 } 1759 }
1696 1760
1697 // optional .google.protobuf.Field.Cardinality cardinality = 2; 1761 // .google.protobuf.Field.Cardinality cardinality = 2;
1698 void Field::clear_cardinality() { 1762 void Field::clear_cardinality() {
1699 cardinality_ = 0; 1763 cardinality_ = 0;
1700 } 1764 }
1701 ::google::protobuf::Field_Cardinality Field::cardinality() const { 1765 ::google::protobuf::Field_Cardinality Field::cardinality() const {
1702 // @@protoc_insertion_point(field_get:google.protobuf.Field.cardinality) 1766 // @@protoc_insertion_point(field_get:google.protobuf.Field.cardinality)
1703 return static_cast< ::google::protobuf::Field_Cardinality >(cardinality_); 1767 return static_cast< ::google::protobuf::Field_Cardinality >(cardinality_);
1704 } 1768 }
1705 void Field::set_cardinality(::google::protobuf::Field_Cardinality value) { 1769 void Field::set_cardinality(::google::protobuf::Field_Cardinality value) {
1706 1770
1707 cardinality_ = value; 1771 cardinality_ = value;
1708 // @@protoc_insertion_point(field_set:google.protobuf.Field.cardinality) 1772 // @@protoc_insertion_point(field_set:google.protobuf.Field.cardinality)
1709 } 1773 }
1710 1774
1711 // optional int32 number = 3; 1775 // int32 number = 3;
1712 void Field::clear_number() { 1776 void Field::clear_number() {
1713 number_ = 0; 1777 number_ = 0;
1714 } 1778 }
1715 ::google::protobuf::int32 Field::number() const { 1779 ::google::protobuf::int32 Field::number() const {
1716 // @@protoc_insertion_point(field_get:google.protobuf.Field.number) 1780 // @@protoc_insertion_point(field_get:google.protobuf.Field.number)
1717 return number_; 1781 return number_;
1718 } 1782 }
1719 void Field::set_number(::google::protobuf::int32 value) { 1783 void Field::set_number(::google::protobuf::int32 value) {
1720 1784
1721 number_ = value; 1785 number_ = value;
1722 // @@protoc_insertion_point(field_set:google.protobuf.Field.number) 1786 // @@protoc_insertion_point(field_set:google.protobuf.Field.number)
1723 } 1787 }
1724 1788
1725 // optional string name = 4; 1789 // string name = 4;
1726 void Field::clear_name() { 1790 void Field::clear_name() {
1727 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 1791 name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), GetArenaNoVirtual());
1728 } 1792 }
1729 const ::std::string& Field::name() const { 1793 const ::std::string& Field::name() const {
1730 // @@protoc_insertion_point(field_get:google.protobuf.Field.name) 1794 // @@protoc_insertion_point(field_get:google.protobuf.Field.name)
1731 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited()); 1795 return name_.Get();
1732 } 1796 }
1733 void Field::set_name(const ::std::string& value) { 1797 void Field::set_name(const ::std::string& value) {
1734 1798
1735 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 1799 name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
1736 // @@protoc_insertion_point(field_set:google.protobuf.Field.name) 1800 // @@protoc_insertion_point(field_set:google.protobuf.Field.name)
1737 } 1801 }
1738 void Field::set_name(const char* value) { 1802 void Field::set_name(const char* value) {
1739 1803
1740 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 1804 name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std: :string(value),
1805 GetArenaNoVirtual());
1741 // @@protoc_insertion_point(field_set_char:google.protobuf.Field.name) 1806 // @@protoc_insertion_point(field_set_char:google.protobuf.Field.name)
1742 } 1807 }
1743 void Field::set_name(const char* value, size_t size) { 1808 void Field::set_name(const char* value,
1744 1809 size_t size) {
1745 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 1810
1746 ::std::string(reinterpret_cast<const char*>(value), size)); 1811 name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std: :string(
1812 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
1747 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Field.name) 1813 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Field.name)
1748 } 1814 }
1749 ::std::string* Field::mutable_name() { 1815 ::std::string* Field::mutable_name() {
1750 1816
1751 // @@protoc_insertion_point(field_mutable:google.protobuf.Field.name) 1817 // @@protoc_insertion_point(field_mutable:google.protobuf.Field.name)
1752 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 1818 return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInite d(), GetArenaNoVirtual());
1753 } 1819 }
1754 ::std::string* Field::release_name() { 1820 ::std::string* Field::release_name() {
1755 // @@protoc_insertion_point(field_release:google.protobuf.Field.name) 1821 // @@protoc_insertion_point(field_release:google.protobuf.Field.name)
1756 1822
1757 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 1823 return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInite d(), GetArenaNoVirtual());
1758 } 1824 }
1759 void Field::set_allocated_name(::std::string* name) { 1825 ::std::string* Field::unsafe_arena_release_name() {
1826 // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Field.n ame)
1827 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1828
1829 return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringA lreadyInited(),
1830 GetArenaNoVirtual());
1831 }
1832 void Field::set_allocated_name(::std::string* name) {
1760 if (name != NULL) { 1833 if (name != NULL) {
1761 1834
1762 } else { 1835 } else {
1763 1836
1764 } 1837 }
1765 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name); 1838 name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), name,
1839 GetArenaNoVirtual());
1766 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.name) 1840 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.name)
1767 } 1841 }
1768 1842 void Field::unsafe_arena_set_allocated_name(
1769 // optional string type_url = 6; 1843 ::std::string* name) {
1844 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1845 if (name != NULL) {
1846
1847 } else {
1848
1849 }
1850 name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(),
1851 name, GetArenaNoVirtual());
1852 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.F ield.name)
1853 }
1854
1855 // string type_url = 6;
1770 void Field::clear_type_url() { 1856 void Field::clear_type_url() {
1771 type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited()); 1857 type_url_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted(), GetArenaNoVirtual());
1772 } 1858 }
1773 const ::std::string& Field::type_url() const { 1859 const ::std::string& Field::type_url() const {
1774 // @@protoc_insertion_point(field_get:google.protobuf.Field.type_url) 1860 // @@protoc_insertion_point(field_get:google.protobuf.Field.type_url)
1775 return type_url_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 1861 return type_url_.Get();
1776 } 1862 }
1777 void Field::set_type_url(const ::std::string& value) { 1863 void Field::set_type_url(const ::std::string& value) {
1778 1864
1779 type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d(), value); 1865 type_url_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), va lue, GetArenaNoVirtual());
1780 // @@protoc_insertion_point(field_set:google.protobuf.Field.type_url) 1866 // @@protoc_insertion_point(field_set:google.protobuf.Field.type_url)
1781 } 1867 }
1782 void Field::set_type_url(const char* value) { 1868 void Field::set_type_url(const char* value) {
1783 1869
1784 type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d(), ::std::string(value)); 1870 type_url_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), :: std::string(value),
1871 GetArenaNoVirtual());
1785 // @@protoc_insertion_point(field_set_char:google.protobuf.Field.type_url) 1872 // @@protoc_insertion_point(field_set_char:google.protobuf.Field.type_url)
1786 } 1873 }
1787 void Field::set_type_url(const char* value, size_t size) { 1874 void Field::set_type_url(const char* value,
1788 1875 size_t size) {
1789 type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d(), 1876
1790 ::std::string(reinterpret_cast<const char*>(value), size)); 1877 type_url_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), :: std::string(
1878 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
1791 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Field.type_url) 1879 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Field.type_url)
1792 } 1880 }
1793 ::std::string* Field::mutable_type_url() { 1881 ::std::string* Field::mutable_type_url() {
1794 1882
1795 // @@protoc_insertion_point(field_mutable:google.protobuf.Field.type_url) 1883 // @@protoc_insertion_point(field_mutable:google.protobuf.Field.type_url)
1796 return type_url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringA lreadyInited()); 1884 return type_url_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyI nited(), GetArenaNoVirtual());
1797 } 1885 }
1798 ::std::string* Field::release_type_url() { 1886 ::std::string* Field::release_type_url() {
1799 // @@protoc_insertion_point(field_release:google.protobuf.Field.type_url) 1887 // @@protoc_insertion_point(field_release:google.protobuf.Field.type_url)
1800 1888
1801 return type_url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringA lreadyInited()); 1889 return type_url_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyI nited(), GetArenaNoVirtual());
1802 } 1890 }
1803 void Field::set_allocated_type_url(::std::string* type_url) { 1891 ::std::string* Field::unsafe_arena_release_type_url() {
1892 // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Field.t ype_url)
1893 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1894
1895 return type_url_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStr ingAlreadyInited(),
1896 GetArenaNoVirtual());
1897 }
1898 void Field::set_allocated_type_url(::std::string* type_url) {
1804 if (type_url != NULL) { 1899 if (type_url != NULL) {
1805 1900
1806 } else { 1901 } else {
1807 1902
1808 } 1903 }
1809 type_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), type_url); 1904 type_url_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted(), type_url,
1905 GetArenaNoVirtual());
1810 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.type_url ) 1906 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.type_url )
1811 } 1907 }
1812 1908 void Field::unsafe_arena_set_allocated_type_url(
1813 // optional int32 oneof_index = 7; 1909 ::std::string* type_url) {
1910 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1911 if (type_url != NULL) {
1912
1913 } else {
1914
1915 }
1916 type_url_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStrin gAlreadyInited(),
1917 type_url, GetArenaNoVirtual());
1918 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.F ield.type_url)
1919 }
1920
1921 // int32 oneof_index = 7;
1814 void Field::clear_oneof_index() { 1922 void Field::clear_oneof_index() {
1815 oneof_index_ = 0; 1923 oneof_index_ = 0;
1816 } 1924 }
1817 ::google::protobuf::int32 Field::oneof_index() const { 1925 ::google::protobuf::int32 Field::oneof_index() const {
1818 // @@protoc_insertion_point(field_get:google.protobuf.Field.oneof_index) 1926 // @@protoc_insertion_point(field_get:google.protobuf.Field.oneof_index)
1819 return oneof_index_; 1927 return oneof_index_;
1820 } 1928 }
1821 void Field::set_oneof_index(::google::protobuf::int32 value) { 1929 void Field::set_oneof_index(::google::protobuf::int32 value) {
1822 1930
1823 oneof_index_ = value; 1931 oneof_index_ = value;
1824 // @@protoc_insertion_point(field_set:google.protobuf.Field.oneof_index) 1932 // @@protoc_insertion_point(field_set:google.protobuf.Field.oneof_index)
1825 } 1933 }
1826 1934
1827 // optional bool packed = 8; 1935 // bool packed = 8;
1828 void Field::clear_packed() { 1936 void Field::clear_packed() {
1829 packed_ = false; 1937 packed_ = false;
1830 } 1938 }
1831 bool Field::packed() const { 1939 bool Field::packed() const {
1832 // @@protoc_insertion_point(field_get:google.protobuf.Field.packed) 1940 // @@protoc_insertion_point(field_get:google.protobuf.Field.packed)
1833 return packed_; 1941 return packed_;
1834 } 1942 }
1835 void Field::set_packed(bool value) { 1943 void Field::set_packed(bool value) {
1836 1944
1837 packed_ = value; 1945 packed_ = value;
1838 // @@protoc_insertion_point(field_set:google.protobuf.Field.packed) 1946 // @@protoc_insertion_point(field_set:google.protobuf.Field.packed)
1839 } 1947 }
1840 1948
1841 // repeated .google.protobuf.Option options = 9; 1949 // repeated .google.protobuf.Option options = 9;
1842 int Field::options_size() const { 1950 int Field::options_size() const {
1843 return options_.size(); 1951 return options_.size();
1844 } 1952 }
1845 void Field::clear_options() { 1953 void Field::clear_options() {
(...skipping 15 matching lines...) Expand all
1861 Field::mutable_options() { 1969 Field::mutable_options() {
1862 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Field.options) 1970 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Field.options)
1863 return &options_; 1971 return &options_;
1864 } 1972 }
1865 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >& 1973 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
1866 Field::options() const { 1974 Field::options() const {
1867 // @@protoc_insertion_point(field_list:google.protobuf.Field.options) 1975 // @@protoc_insertion_point(field_list:google.protobuf.Field.options)
1868 return options_; 1976 return options_;
1869 } 1977 }
1870 1978
1871 // optional string json_name = 10; 1979 // string json_name = 10;
1872 void Field::clear_json_name() { 1980 void Field::clear_json_name() {
1873 json_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited()); 1981 json_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited(), GetArenaNoVirtual());
1874 } 1982 }
1875 const ::std::string& Field::json_name() const { 1983 const ::std::string& Field::json_name() const {
1876 // @@protoc_insertion_point(field_get:google.protobuf.Field.json_name) 1984 // @@protoc_insertion_point(field_get:google.protobuf.Field.json_name)
1877 return json_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlre adyInited()); 1985 return json_name_.Get();
1878 } 1986 }
1879 void Field::set_json_name(const ::std::string& value) { 1987 void Field::set_json_name(const ::std::string& value) {
1880 1988
1881 json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), value); 1989 json_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), v alue, GetArenaNoVirtual());
1882 // @@protoc_insertion_point(field_set:google.protobuf.Field.json_name) 1990 // @@protoc_insertion_point(field_set:google.protobuf.Field.json_name)
1883 } 1991 }
1884 void Field::set_json_name(const char* value) { 1992 void Field::set_json_name(const char* value) {
1885 1993
1886 json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), ::std::string(value)); 1994 json_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), : :std::string(value),
1995 GetArenaNoVirtual());
1887 // @@protoc_insertion_point(field_set_char:google.protobuf.Field.json_name) 1996 // @@protoc_insertion_point(field_set_char:google.protobuf.Field.json_name)
1888 } 1997 }
1889 void Field::set_json_name(const char* value, size_t size) { 1998 void Field::set_json_name(const char* value,
1999 size_t size) {
1890 2000
1891 json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), 2001 json_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), : :std::string(
1892 ::std::string(reinterpret_cast<const char*>(value), size)); 2002 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
1893 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Field.json_name) 2003 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Field.json_name)
1894 } 2004 }
1895 ::std::string* Field::mutable_json_name() { 2005 ::std::string* Field::mutable_json_name() {
1896 2006
1897 // @@protoc_insertion_point(field_mutable:google.protobuf.Field.json_name) 2007 // @@protoc_insertion_point(field_mutable:google.protobuf.Field.json_name)
1898 return json_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited()); 2008 return json_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlready Inited(), GetArenaNoVirtual());
1899 } 2009 }
1900 ::std::string* Field::release_json_name() { 2010 ::std::string* Field::release_json_name() {
1901 // @@protoc_insertion_point(field_release:google.protobuf.Field.json_name) 2011 // @@protoc_insertion_point(field_release:google.protobuf.Field.json_name)
1902 2012
1903 return json_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited()); 2013 return json_name_.Release(&::google::protobuf::internal::GetEmptyStringAlready Inited(), GetArenaNoVirtual());
1904 } 2014 }
1905 void Field::set_allocated_json_name(::std::string* json_name) { 2015 ::std::string* Field::unsafe_arena_release_json_name() {
2016 // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Field.j son_name)
2017 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
2018
2019 return json_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptySt ringAlreadyInited(),
2020 GetArenaNoVirtual());
2021 }
2022 void Field::set_allocated_json_name(::std::string* json_name) {
1906 if (json_name != NULL) { 2023 if (json_name != NULL) {
1907 2024
1908 } else { 2025 } else {
1909 2026
1910 } 2027 }
1911 json_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited(), json_name); 2028 json_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited(), json_name,
2029 GetArenaNoVirtual());
1912 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.json_nam e) 2030 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.json_nam e)
1913 } 2031 }
2032 void Field::unsafe_arena_set_allocated_json_name(
2033 ::std::string* json_name) {
2034 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
2035 if (json_name != NULL) {
2036
2037 } else {
2038
2039 }
2040 json_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited(),
2041 json_name, GetArenaNoVirtual());
2042 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.F ield.json_name)
2043 }
1914 2044
1915 // optional string default_value = 11; 2045 // string default_value = 11;
1916 void Field::clear_default_value() { 2046 void Field::clear_default_value() {
1917 default_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited()); 2047 default_value_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), GetArenaNoVirtual());
1918 } 2048 }
1919 const ::std::string& Field::default_value() const { 2049 const ::std::string& Field::default_value() const {
1920 // @@protoc_insertion_point(field_get:google.protobuf.Field.default_value) 2050 // @@protoc_insertion_point(field_get:google.protobuf.Field.default_value)
1921 return default_value_.GetNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited()); 2051 return default_value_.Get();
1922 } 2052 }
1923 void Field::set_default_value(const ::std::string& value) { 2053 void Field::set_default_value(const ::std::string& value) {
1924 2054
1925 default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), value); 2055 default_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), value, GetArenaNoVirtual());
1926 // @@protoc_insertion_point(field_set:google.protobuf.Field.default_value) 2056 // @@protoc_insertion_point(field_set:google.protobuf.Field.default_value)
1927 } 2057 }
1928 void Field::set_default_value(const char* value) { 2058 void Field::set_default_value(const char* value) {
1929 2059
1930 default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), ::std::string(value)); 2060 default_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), ::std::string(value),
2061 GetArenaNoVirtual());
1931 // @@protoc_insertion_point(field_set_char:google.protobuf.Field.default_value ) 2062 // @@protoc_insertion_point(field_set_char:google.protobuf.Field.default_value )
1932 } 2063 }
1933 void Field::set_default_value(const char* value, size_t size) { 2064 void Field::set_default_value(const char* value,
2065 size_t size) {
1934 2066
1935 default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), 2067 default_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), ::std::string(
1936 ::std::string(reinterpret_cast<const char*>(value), size)); 2068 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
1937 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Field.default_va lue) 2069 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Field.default_va lue)
1938 } 2070 }
1939 ::std::string* Field::mutable_default_value() { 2071 ::std::string* Field::mutable_default_value() {
1940 2072
1941 // @@protoc_insertion_point(field_mutable:google.protobuf.Field.default_value) 2073 // @@protoc_insertion_point(field_mutable:google.protobuf.Field.default_value)
1942 return default_value_.MutableNoArena(&::google::protobuf::internal::GetEmptySt ringAlreadyInited()); 2074 return default_value_.Mutable(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), GetArenaNoVirtual());
1943 } 2075 }
1944 ::std::string* Field::release_default_value() { 2076 ::std::string* Field::release_default_value() {
1945 // @@protoc_insertion_point(field_release:google.protobuf.Field.default_value) 2077 // @@protoc_insertion_point(field_release:google.protobuf.Field.default_value)
1946 2078
1947 return default_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptySt ringAlreadyInited()); 2079 return default_value_.Release(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(), GetArenaNoVirtual());
1948 } 2080 }
1949 void Field::set_allocated_default_value(::std::string* default_value) { 2081 ::std::string* Field::unsafe_arena_release_default_value() {
2082 // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Field.d efault_value)
2083 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
2084
2085 return default_value_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmp tyStringAlreadyInited(),
2086 GetArenaNoVirtual());
2087 }
2088 void Field::set_allocated_default_value(::std::string* default_value) {
1950 if (default_value != NULL) { 2089 if (default_value != NULL) {
1951 2090
1952 } else { 2091 } else {
1953 2092
1954 } 2093 }
1955 default_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStri ngAlreadyInited(), default_value); 2094 default_value_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlrea dyInited(), default_value,
2095 GetArenaNoVirtual());
1956 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.default_ value) 2096 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.default_ value)
1957 } 2097 }
2098 void Field::unsafe_arena_set_allocated_default_value(
2099 ::std::string* default_value) {
2100 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
2101 if (default_value != NULL) {
2102
2103 } else {
2104
2105 }
2106 default_value_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmpty StringAlreadyInited(),
2107 default_value, GetArenaNoVirtual());
2108 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.F ield.default_value)
2109 }
1958 2110
1959 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 2111 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
1960 2112
1961 // =================================================================== 2113 // ===================================================================
1962 2114
2115 void Enum::_slow_mutable_source_context() {
2116 source_context_ = ::google::protobuf::Arena::Create< ::google::protobuf::Sourc eContext >(
2117 GetArenaNoVirtual());
2118 }
2119 ::google::protobuf::SourceContext* Enum::_slow_release_source_context() {
2120 if (source_context_ == NULL) {
2121 return NULL;
2122 } else {
2123 ::google::protobuf::SourceContext* temp = new ::google::protobuf::SourceCont ext(*source_context_);
2124 source_context_ = NULL;
2125 return temp;
2126 }
2127 }
2128 ::google::protobuf::SourceContext* Enum::unsafe_arena_release_source_context() {
2129 // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Enum.so urce_context)
2130
2131 ::google::protobuf::SourceContext* temp = source_context_;
2132 source_context_ = NULL;
2133 return temp;
2134 }
2135 void Enum::unsafe_arena_set_allocated_source_context(
2136 ::google::protobuf::SourceContext* source_context) {
2137 if (GetArenaNoVirtual() == NULL) {
2138 delete source_context_;
2139 }
2140 source_context_ = source_context;
2141 if (source_context) {
2142
2143 } else {
2144
2145 }
2146 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.E num.source_context)
2147 }
1963 #if !defined(_MSC_VER) || _MSC_VER >= 1900 2148 #if !defined(_MSC_VER) || _MSC_VER >= 1900
1964 const int Enum::kNameFieldNumber; 2149 const int Enum::kNameFieldNumber;
1965 const int Enum::kEnumvalueFieldNumber; 2150 const int Enum::kEnumvalueFieldNumber;
1966 const int Enum::kOptionsFieldNumber; 2151 const int Enum::kOptionsFieldNumber;
1967 const int Enum::kSourceContextFieldNumber; 2152 const int Enum::kSourceContextFieldNumber;
1968 const int Enum::kSyntaxFieldNumber; 2153 const int Enum::kSyntaxFieldNumber;
1969 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 2154 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1970 2155
1971 Enum::Enum() 2156 Enum::Enum()
1972 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 2157 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2158 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2159 protobuf_InitDefaults_google_2fprotobuf_2ftype_2eproto();
2160 }
1973 SharedCtor(); 2161 SharedCtor();
1974 // @@protoc_insertion_point(constructor:google.protobuf.Enum) 2162 // @@protoc_insertion_point(constructor:google.protobuf.Enum)
1975 } 2163 }
1976 2164 Enum::Enum(::google::protobuf::Arena* arena)
1977 void Enum::InitAsDefaultInstance() { 2165 : ::google::protobuf::Message(),
1978 _is_default_instance_ = true; 2166 _internal_metadata_(arena),
1979 source_context_ = const_cast< ::google::protobuf::SourceContext*>(&::google::p rotobuf::SourceContext::default_instance()); 2167 enumvalue_(arena),
2168 options_(arena) {
2169 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
2170 protobuf_InitDefaults_google_2fprotobuf_2ftype_2eproto();
2171 #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
2172 SharedCtor();
2173 RegisterArenaDtor(arena);
2174 // @@protoc_insertion_point(arena_constructor:google.protobuf.Enum)
1980 } 2175 }
1981
1982 Enum::Enum(const Enum& from) 2176 Enum::Enum(const Enum& from)
1983 : ::google::protobuf::Message(), 2177 : ::google::protobuf::Message(),
1984 _internal_metadata_(NULL) { 2178 _internal_metadata_(NULL),
1985 SharedCtor(); 2179 enumvalue_(from.enumvalue_),
1986 MergeFrom(from); 2180 options_(from.options_),
2181 _cached_size_(0) {
2182 _internal_metadata_.MergeFrom(from._internal_metadata_);
2183 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
2184 if (from.name().size() > 0) {
2185 name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from .name(),
2186 GetArenaNoVirtual());
2187 }
2188 if (from.has_source_context()) {
2189 source_context_ = new ::google::protobuf::SourceContext(*from.source_context _);
2190 } else {
2191 source_context_ = NULL;
2192 }
2193 syntax_ = from.syntax_;
1987 // @@protoc_insertion_point(copy_constructor:google.protobuf.Enum) 2194 // @@protoc_insertion_point(copy_constructor:google.protobuf.Enum)
1988 } 2195 }
1989 2196
1990 void Enum::SharedCtor() { 2197 void Enum::SharedCtor() {
1991 _is_default_instance_ = false; 2198 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
1992 ::google::protobuf::internal::GetEmptyString(); 2199 ::memset(&source_context_, 0, reinterpret_cast<char*>(&syntax_) -
2200 reinterpret_cast<char*>(&source_context_) + sizeof(syntax_));
1993 _cached_size_ = 0; 2201 _cached_size_ = 0;
1994 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
1995 source_context_ = NULL;
1996 syntax_ = 0;
1997 } 2202 }
1998 2203
1999 Enum::~Enum() { 2204 Enum::~Enum() {
2000 // @@protoc_insertion_point(destructor:google.protobuf.Enum) 2205 // @@protoc_insertion_point(destructor:google.protobuf.Enum)
2001 SharedDtor(); 2206 SharedDtor();
2002 } 2207 }
2003 2208
2004 void Enum::SharedDtor() { 2209 void Enum::SharedDtor() {
2005 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d()); 2210 ::google::protobuf::Arena* arena = GetArenaNoVirtual();
2006 if (this != default_instance_) { 2211 if (arena != NULL) {
2212 return;
2213 }
2214
2215 name_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ar ena);
2216 if (this != internal_default_instance()) {
2007 delete source_context_; 2217 delete source_context_;
2008 } 2218 }
2009 } 2219 }
2010 2220
2221 void Enum::ArenaDtor(void* object) {
2222 Enum* _this = reinterpret_cast< Enum* >(object);
2223 (void)_this;
2224 }
2225 void Enum::RegisterArenaDtor(::google::protobuf::Arena* arena) {
2226 }
2011 void Enum::SetCachedSize(int size) const { 2227 void Enum::SetCachedSize(int size) const {
2012 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 2228 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2013 _cached_size_ = size; 2229 _cached_size_ = size;
2014 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 2230 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2015 } 2231 }
2016 const ::google::protobuf::Descriptor* Enum::descriptor() { 2232 const ::google::protobuf::Descriptor* Enum::descriptor() {
2017 protobuf_AssignDescriptorsOnce(); 2233 protobuf_AssignDescriptorsOnce();
2018 return Enum_descriptor_; 2234 return file_level_metadata[2].descriptor;
2019 } 2235 }
2020 2236
2021 const Enum& Enum::default_instance() { 2237 const Enum& Enum::default_instance() {
2022 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2ftype_2epro to(); 2238 protobuf_InitDefaults_google_2fprotobuf_2ftype_2eproto();
2023 return *default_instance_; 2239 return *internal_default_instance();
2024 } 2240 }
2025 2241
2026 Enum* Enum::default_instance_ = NULL;
2027
2028 Enum* Enum::New(::google::protobuf::Arena* arena) const { 2242 Enum* Enum::New(::google::protobuf::Arena* arena) const {
2029 Enum* n = new Enum; 2243 return ::google::protobuf::Arena::CreateMessage<Enum>(arena);
2030 if (arena != NULL) {
2031 arena->Own(n);
2032 }
2033 return n;
2034 } 2244 }
2035 2245
2036 void Enum::Clear() { 2246 void Enum::Clear() {
2037 // @@protoc_insertion_point(message_clear_start:google.protobuf.Enum) 2247 // @@protoc_insertion_point(message_clear_start:google.protobuf.Enum)
2038 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 2248 enumvalue_.Clear();
2039 if (GetArenaNoVirtual() == NULL && source_context_ != NULL) delete source_cont ext_; 2249 options_.Clear();
2250 name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), GetArenaNoVirtual());
2251 if (GetArenaNoVirtual() == NULL && source_context_ != NULL) {
2252 delete source_context_;
2253 }
2040 source_context_ = NULL; 2254 source_context_ = NULL;
2041 syntax_ = 0; 2255 syntax_ = 0;
2042 enumvalue_.Clear();
2043 options_.Clear();
2044 } 2256 }
2045 2257
2046 bool Enum::MergePartialFromCodedStream( 2258 bool Enum::MergePartialFromCodedStream(
2047 ::google::protobuf::io::CodedInputStream* input) { 2259 ::google::protobuf::io::CodedInputStream* input) {
2048 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 2260 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2049 ::google::protobuf::uint32 tag; 2261 ::google::protobuf::uint32 tag;
2050 // @@protoc_insertion_point(parse_start:google.protobuf.Enum) 2262 // @@protoc_insertion_point(parse_start:google.protobuf.Enum)
2051 for (;;) { 2263 for (;;) {
2052 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127); 2264 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u);
2053 tag = p.first; 2265 tag = p.first;
2054 if (!p.second) goto handle_unusual; 2266 if (!p.second) goto handle_unusual;
2055 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 2267 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
2056 // optional string name = 1; 2268 // string name = 1;
2057 case 1: { 2269 case 1: {
2058 if (tag == 10) { 2270 if (tag == 10u) {
2059 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 2271 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2060 input, this->mutable_name())); 2272 input, this->mutable_name()));
2061 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 2273 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2062 this->name().data(), this->name().length(), 2274 this->name().data(), this->name().length(),
2063 ::google::protobuf::internal::WireFormatLite::PARSE, 2275 ::google::protobuf::internal::WireFormatLite::PARSE,
2064 "google.protobuf.Enum.name")); 2276 "google.protobuf.Enum.name"));
2065 } else { 2277 } else {
2066 goto handle_unusual; 2278 goto handle_unusual;
2067 } 2279 }
2068 if (input->ExpectTag(18)) goto parse_enumvalue;
2069 break; 2280 break;
2070 } 2281 }
2071 2282
2072 // repeated .google.protobuf.EnumValue enumvalue = 2; 2283 // repeated .google.protobuf.EnumValue enumvalue = 2;
2073 case 2: { 2284 case 2: {
2074 if (tag == 18) { 2285 if (tag == 18u) {
2075 parse_enumvalue:
2076 DO_(input->IncrementRecursionDepth()); 2286 DO_(input->IncrementRecursionDepth());
2077 parse_loop_enumvalue:
2078 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 2287 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
2079 input, add_enumvalue())); 2288 input, add_enumvalue()));
2080 } else { 2289 } else {
2081 goto handle_unusual; 2290 goto handle_unusual;
2082 } 2291 }
2083 if (input->ExpectTag(18)) goto parse_loop_enumvalue;
2084 if (input->ExpectTag(26)) goto parse_loop_options;
2085 input->UnsafeDecrementRecursionDepth(); 2292 input->UnsafeDecrementRecursionDepth();
2086 break; 2293 break;
2087 } 2294 }
2088 2295
2089 // repeated .google.protobuf.Option options = 3; 2296 // repeated .google.protobuf.Option options = 3;
2090 case 3: { 2297 case 3: {
2091 if (tag == 26) { 2298 if (tag == 26u) {
2092 DO_(input->IncrementRecursionDepth()); 2299 DO_(input->IncrementRecursionDepth());
2093 parse_loop_options:
2094 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 2300 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
2095 input, add_options())); 2301 input, add_options()));
2096 } else { 2302 } else {
2097 goto handle_unusual; 2303 goto handle_unusual;
2098 } 2304 }
2099 if (input->ExpectTag(26)) goto parse_loop_options;
2100 input->UnsafeDecrementRecursionDepth(); 2305 input->UnsafeDecrementRecursionDepth();
2101 if (input->ExpectTag(34)) goto parse_source_context;
2102 break; 2306 break;
2103 } 2307 }
2104 2308
2105 // optional .google.protobuf.SourceContext source_context = 4; 2309 // .google.protobuf.SourceContext source_context = 4;
2106 case 4: { 2310 case 4: {
2107 if (tag == 34) { 2311 if (tag == 34u) {
2108 parse_source_context:
2109 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual ( 2312 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual (
2110 input, mutable_source_context())); 2313 input, mutable_source_context()));
2111 } else { 2314 } else {
2112 goto handle_unusual; 2315 goto handle_unusual;
2113 } 2316 }
2114 if (input->ExpectTag(40)) goto parse_syntax;
2115 break; 2317 break;
2116 } 2318 }
2117 2319
2118 // optional .google.protobuf.Syntax syntax = 5; 2320 // .google.protobuf.Syntax syntax = 5;
2119 case 5: { 2321 case 5: {
2120 if (tag == 40) { 2322 if (tag == 40u) {
2121 parse_syntax:
2122 int value; 2323 int value;
2123 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 2324 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2124 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM> ( 2325 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM> (
2125 input, &value))); 2326 input, &value)));
2126 set_syntax(static_cast< ::google::protobuf::Syntax >(value)); 2327 set_syntax(static_cast< ::google::protobuf::Syntax >(value));
2127 } else { 2328 } else {
2128 goto handle_unusual; 2329 goto handle_unusual;
2129 } 2330 }
2130 if (input->ExpectAtEnd()) goto success;
2131 break; 2331 break;
2132 } 2332 }
2133 2333
2134 default: { 2334 default: {
2135 handle_unusual: 2335 handle_unusual:
2136 if (tag == 0 || 2336 if (tag == 0 ||
2137 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 2337 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2138 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 2338 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2139 goto success; 2339 goto success;
2140 } 2340 }
2141 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)) ; 2341 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)) ;
2142 break; 2342 break;
2143 } 2343 }
2144 } 2344 }
2145 } 2345 }
2146 success: 2346 success:
2147 // @@protoc_insertion_point(parse_success:google.protobuf.Enum) 2347 // @@protoc_insertion_point(parse_success:google.protobuf.Enum)
2148 return true; 2348 return true;
2149 failure: 2349 failure:
2150 // @@protoc_insertion_point(parse_failure:google.protobuf.Enum) 2350 // @@protoc_insertion_point(parse_failure:google.protobuf.Enum)
2151 return false; 2351 return false;
2152 #undef DO_ 2352 #undef DO_
2153 } 2353 }
2154 2354
2155 void Enum::SerializeWithCachedSizes( 2355 void Enum::SerializeWithCachedSizes(
2156 ::google::protobuf::io::CodedOutputStream* output) const { 2356 ::google::protobuf::io::CodedOutputStream* output) const {
2157 // @@protoc_insertion_point(serialize_start:google.protobuf.Enum) 2357 // @@protoc_insertion_point(serialize_start:google.protobuf.Enum)
2158 // optional string name = 1; 2358 // string name = 1;
2159 if (this->name().size() > 0) { 2359 if (this->name().size() > 0) {
2160 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 2360 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2161 this->name().data(), this->name().length(), 2361 this->name().data(), this->name().length(),
2162 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 2362 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
2163 "google.protobuf.Enum.name"); 2363 "google.protobuf.Enum.name");
2164 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2364 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2165 1, this->name(), output); 2365 1, this->name(), output);
2166 } 2366 }
2167 2367
2168 // repeated .google.protobuf.EnumValue enumvalue = 2; 2368 // repeated .google.protobuf.EnumValue enumvalue = 2;
2169 for (unsigned int i = 0, n = this->enumvalue_size(); i < n; i++) { 2369 for (unsigned int i = 0, n = this->enumvalue_size(); i < n; i++) {
2170 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2370 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2171 2, this->enumvalue(i), output); 2371 2, this->enumvalue(i), output);
2172 } 2372 }
2173 2373
2174 // repeated .google.protobuf.Option options = 3; 2374 // repeated .google.protobuf.Option options = 3;
2175 for (unsigned int i = 0, n = this->options_size(); i < n; i++) { 2375 for (unsigned int i = 0, n = this->options_size(); i < n; i++) {
2176 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2376 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2177 3, this->options(i), output); 2377 3, this->options(i), output);
2178 } 2378 }
2179 2379
2180 // optional .google.protobuf.SourceContext source_context = 4; 2380 // .google.protobuf.SourceContext source_context = 4;
2181 if (this->has_source_context()) { 2381 if (this->has_source_context()) {
2182 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2382 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2183 4, *this->source_context_, output); 2383 4, *this->source_context_, output);
2184 } 2384 }
2185 2385
2186 // optional .google.protobuf.Syntax syntax = 5; 2386 // .google.protobuf.Syntax syntax = 5;
2187 if (this->syntax() != 0) { 2387 if (this->syntax() != 0) {
2188 ::google::protobuf::internal::WireFormatLite::WriteEnum( 2388 ::google::protobuf::internal::WireFormatLite::WriteEnum(
2189 5, this->syntax(), output); 2389 5, this->syntax(), output);
2190 } 2390 }
2191 2391
2192 // @@protoc_insertion_point(serialize_end:google.protobuf.Enum) 2392 // @@protoc_insertion_point(serialize_end:google.protobuf.Enum)
2193 } 2393 }
2194 2394
2195 ::google::protobuf::uint8* Enum::SerializeWithCachedSizesToArray( 2395 ::google::protobuf::uint8* Enum::InternalSerializeWithCachedSizesToArray(
2196 ::google::protobuf::uint8* target) const { 2396 bool deterministic, ::google::protobuf::uint8* target) const {
2397 (void)deterministic; // Unused
2197 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Enum) 2398 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Enum)
2198 // optional string name = 1; 2399 // string name = 1;
2199 if (this->name().size() > 0) { 2400 if (this->name().size() > 0) {
2200 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 2401 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2201 this->name().data(), this->name().length(), 2402 this->name().data(), this->name().length(),
2202 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 2403 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
2203 "google.protobuf.Enum.name"); 2404 "google.protobuf.Enum.name");
2204 target = 2405 target =
2205 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2406 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2206 1, this->name(), target); 2407 1, this->name(), target);
2207 } 2408 }
2208 2409
2209 // repeated .google.protobuf.EnumValue enumvalue = 2; 2410 // repeated .google.protobuf.EnumValue enumvalue = 2;
2210 for (unsigned int i = 0, n = this->enumvalue_size(); i < n; i++) { 2411 for (unsigned int i = 0, n = this->enumvalue_size(); i < n; i++) {
2211 target = ::google::protobuf::internal::WireFormatLite:: 2412 target = ::google::protobuf::internal::WireFormatLite::
2212 WriteMessageNoVirtualToArray( 2413 InternalWriteMessageNoVirtualToArray(
2213 2, this->enumvalue(i), target); 2414 2, this->enumvalue(i), false, target);
2214 } 2415 }
2215 2416
2216 // repeated .google.protobuf.Option options = 3; 2417 // repeated .google.protobuf.Option options = 3;
2217 for (unsigned int i = 0, n = this->options_size(); i < n; i++) { 2418 for (unsigned int i = 0, n = this->options_size(); i < n; i++) {
2218 target = ::google::protobuf::internal::WireFormatLite:: 2419 target = ::google::protobuf::internal::WireFormatLite::
2219 WriteMessageNoVirtualToArray( 2420 InternalWriteMessageNoVirtualToArray(
2220 3, this->options(i), target); 2421 3, this->options(i), false, target);
2221 } 2422 }
2222 2423
2223 // optional .google.protobuf.SourceContext source_context = 4; 2424 // .google.protobuf.SourceContext source_context = 4;
2224 if (this->has_source_context()) { 2425 if (this->has_source_context()) {
2225 target = ::google::protobuf::internal::WireFormatLite:: 2426 target = ::google::protobuf::internal::WireFormatLite::
2226 WriteMessageNoVirtualToArray( 2427 InternalWriteMessageNoVirtualToArray(
2227 4, *this->source_context_, target); 2428 4, *this->source_context_, false, target);
2228 } 2429 }
2229 2430
2230 // optional .google.protobuf.Syntax syntax = 5; 2431 // .google.protobuf.Syntax syntax = 5;
2231 if (this->syntax() != 0) { 2432 if (this->syntax() != 0) {
2232 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 2433 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2233 5, this->syntax(), target); 2434 5, this->syntax(), target);
2234 } 2435 }
2235 2436
2236 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Enum) 2437 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Enum)
2237 return target; 2438 return target;
2238 } 2439 }
2239 2440
2240 int Enum::ByteSize() const { 2441 size_t Enum::ByteSizeLong() const {
2241 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Enum) 2442 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Enum)
2242 int total_size = 0; 2443 size_t total_size = 0;
2243 2444
2244 // optional string name = 1; 2445 // repeated .google.protobuf.EnumValue enumvalue = 2;
2446 {
2447 unsigned int count = this->enumvalue_size();
2448 total_size += 1UL * count;
2449 for (unsigned int i = 0; i < count; i++) {
2450 total_size +=
2451 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2452 this->enumvalue(i));
2453 }
2454 }
2455
2456 // repeated .google.protobuf.Option options = 3;
2457 {
2458 unsigned int count = this->options_size();
2459 total_size += 1UL * count;
2460 for (unsigned int i = 0; i < count; i++) {
2461 total_size +=
2462 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2463 this->options(i));
2464 }
2465 }
2466
2467 // string name = 1;
2245 if (this->name().size() > 0) { 2468 if (this->name().size() > 0) {
2246 total_size += 1 + 2469 total_size += 1 +
2247 ::google::protobuf::internal::WireFormatLite::StringSize( 2470 ::google::protobuf::internal::WireFormatLite::StringSize(
2248 this->name()); 2471 this->name());
2249 } 2472 }
2250 2473
2251 // optional .google.protobuf.SourceContext source_context = 4; 2474 // .google.protobuf.SourceContext source_context = 4;
2252 if (this->has_source_context()) { 2475 if (this->has_source_context()) {
2253 total_size += 1 + 2476 total_size += 1 +
2254 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( 2477 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2255 *this->source_context_); 2478 *this->source_context_);
2256 } 2479 }
2257 2480
2258 // optional .google.protobuf.Syntax syntax = 5; 2481 // .google.protobuf.Syntax syntax = 5;
2259 if (this->syntax() != 0) { 2482 if (this->syntax() != 0) {
2260 total_size += 1 + 2483 total_size += 1 +
2261 ::google::protobuf::internal::WireFormatLite::EnumSize(this->syntax()); 2484 ::google::protobuf::internal::WireFormatLite::EnumSize(this->syntax());
2262 } 2485 }
2263 2486
2264 // repeated .google.protobuf.EnumValue enumvalue = 2; 2487 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2265 total_size += 1 * this->enumvalue_size();
2266 for (int i = 0; i < this->enumvalue_size(); i++) {
2267 total_size +=
2268 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2269 this->enumvalue(i));
2270 }
2271
2272 // repeated .google.protobuf.Option options = 3;
2273 total_size += 1 * this->options_size();
2274 for (int i = 0; i < this->options_size(); i++) {
2275 total_size +=
2276 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2277 this->options(i));
2278 }
2279
2280 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 2488 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2281 _cached_size_ = total_size; 2489 _cached_size_ = cached_size;
2282 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 2490 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2283 return total_size; 2491 return total_size;
2284 } 2492 }
2285 2493
2286 void Enum::MergeFrom(const ::google::protobuf::Message& from) { 2494 void Enum::MergeFrom(const ::google::protobuf::Message& from) {
2287 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Enum) 2495 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Enum)
2288 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 2496 GOOGLE_DCHECK_NE(&from, this);
2289 const Enum* source = 2497 const Enum* source =
2290 ::google::protobuf::internal::DynamicCastToGenerated<const Enum>( 2498 ::google::protobuf::internal::DynamicCastToGenerated<const Enum>(
2291 &from); 2499 &from);
2292 if (source == NULL) { 2500 if (source == NULL) {
2293 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.E num) 2501 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.E num)
2294 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 2502 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2295 } else { 2503 } else {
2296 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.Enum) 2504 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.Enum)
2297 MergeFrom(*source); 2505 MergeFrom(*source);
2298 } 2506 }
2299 } 2507 }
2300 2508
2301 void Enum::MergeFrom(const Enum& from) { 2509 void Enum::MergeFrom(const Enum& from) {
2302 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Enum ) 2510 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Enum )
2303 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 2511 GOOGLE_DCHECK_NE(&from, this);
2512 _internal_metadata_.MergeFrom(from._internal_metadata_);
2304 enumvalue_.MergeFrom(from.enumvalue_); 2513 enumvalue_.MergeFrom(from.enumvalue_);
2305 options_.MergeFrom(from.options_); 2514 options_.MergeFrom(from.options_);
2306 if (from.name().size() > 0) { 2515 if (from.name().size() > 0) {
2307 2516 set_name(from.name());
2308 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlready Inited(), from.name_);
2309 } 2517 }
2310 if (from.has_source_context()) { 2518 if (from.has_source_context()) {
2311 mutable_source_context()->::google::protobuf::SourceContext::MergeFrom(from. source_context()); 2519 mutable_source_context()->::google::protobuf::SourceContext::MergeFrom(from. source_context());
2312 } 2520 }
2313 if (from.syntax() != 0) { 2521 if (from.syntax() != 0) {
2314 set_syntax(from.syntax()); 2522 set_syntax(from.syntax());
2315 } 2523 }
2316 } 2524 }
2317 2525
2318 void Enum::CopyFrom(const ::google::protobuf::Message& from) { 2526 void Enum::CopyFrom(const ::google::protobuf::Message& from) {
2319 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Enum) 2527 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Enum)
2320 if (&from == this) return; 2528 if (&from == this) return;
2321 Clear(); 2529 Clear();
2322 MergeFrom(from); 2530 MergeFrom(from);
2323 } 2531 }
2324 2532
2325 void Enum::CopyFrom(const Enum& from) { 2533 void Enum::CopyFrom(const Enum& from) {
2326 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Enum) 2534 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Enum)
2327 if (&from == this) return; 2535 if (&from == this) return;
2328 Clear(); 2536 Clear();
2329 MergeFrom(from); 2537 MergeFrom(from);
2330 } 2538 }
2331 2539
2332 bool Enum::IsInitialized() const { 2540 bool Enum::IsInitialized() const {
2333
2334 return true; 2541 return true;
2335 } 2542 }
2336 2543
2337 void Enum::Swap(Enum* other) { 2544 void Enum::Swap(Enum* other) {
2338 if (other == this) return; 2545 if (other == this) return;
2546 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
2547 InternalSwap(other);
2548 } else {
2549 Enum* temp = New(GetArenaNoVirtual());
2550 temp->MergeFrom(*other);
2551 other->CopyFrom(*this);
2552 InternalSwap(temp);
2553 if (GetArenaNoVirtual() == NULL) {
2554 delete temp;
2555 }
2556 }
2557 }
2558 void Enum::UnsafeArenaSwap(Enum* other) {
2559 if (other == this) return;
2560 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
2339 InternalSwap(other); 2561 InternalSwap(other);
2340 } 2562 }
2341 void Enum::InternalSwap(Enum* other) { 2563 void Enum::InternalSwap(Enum* other) {
2342 name_.Swap(&other->name_);
2343 enumvalue_.UnsafeArenaSwap(&other->enumvalue_); 2564 enumvalue_.UnsafeArenaSwap(&other->enumvalue_);
2344 options_.UnsafeArenaSwap(&other->options_); 2565 options_.UnsafeArenaSwap(&other->options_);
2566 name_.Swap(&other->name_);
2345 std::swap(source_context_, other->source_context_); 2567 std::swap(source_context_, other->source_context_);
2346 std::swap(syntax_, other->syntax_); 2568 std::swap(syntax_, other->syntax_);
2347 _internal_metadata_.Swap(&other->_internal_metadata_);
2348 std::swap(_cached_size_, other->_cached_size_); 2569 std::swap(_cached_size_, other->_cached_size_);
2349 } 2570 }
2350 2571
2351 ::google::protobuf::Metadata Enum::GetMetadata() const { 2572 ::google::protobuf::Metadata Enum::GetMetadata() const {
2352 protobuf_AssignDescriptorsOnce(); 2573 protobuf_AssignDescriptorsOnce();
2353 ::google::protobuf::Metadata metadata; 2574 return file_level_metadata[2];
2354 metadata.descriptor = Enum_descriptor_;
2355 metadata.reflection = Enum_reflection_;
2356 return metadata;
2357 } 2575 }
2358 2576
2359 #if PROTOBUF_INLINE_NOT_IN_HEADERS 2577 #if PROTOBUF_INLINE_NOT_IN_HEADERS
2360 // Enum 2578 // Enum
2361 2579
2362 // optional string name = 1; 2580 // string name = 1;
2363 void Enum::clear_name() { 2581 void Enum::clear_name() {
2364 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 2582 name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), GetArenaNoVirtual());
2365 } 2583 }
2366 const ::std::string& Enum::name() const { 2584 const ::std::string& Enum::name() const {
2367 // @@protoc_insertion_point(field_get:google.protobuf.Enum.name) 2585 // @@protoc_insertion_point(field_get:google.protobuf.Enum.name)
2368 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited()); 2586 return name_.Get();
2369 } 2587 }
2370 void Enum::set_name(const ::std::string& value) { 2588 void Enum::set_name(const ::std::string& value) {
2371 2589
2372 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 2590 name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
2373 // @@protoc_insertion_point(field_set:google.protobuf.Enum.name) 2591 // @@protoc_insertion_point(field_set:google.protobuf.Enum.name)
2374 } 2592 }
2375 void Enum::set_name(const char* value) { 2593 void Enum::set_name(const char* value) {
2376 2594
2377 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 2595 name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std: :string(value),
2596 GetArenaNoVirtual());
2378 // @@protoc_insertion_point(field_set_char:google.protobuf.Enum.name) 2597 // @@protoc_insertion_point(field_set_char:google.protobuf.Enum.name)
2379 } 2598 }
2380 void Enum::set_name(const char* value, size_t size) { 2599 void Enum::set_name(const char* value,
2600 size_t size) {
2381 2601
2382 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 2602 name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std: :string(
2383 ::std::string(reinterpret_cast<const char*>(value), size)); 2603 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
2384 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Enum.name) 2604 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Enum.name)
2385 } 2605 }
2386 ::std::string* Enum::mutable_name() { 2606 ::std::string* Enum::mutable_name() {
2387 2607
2388 // @@protoc_insertion_point(field_mutable:google.protobuf.Enum.name) 2608 // @@protoc_insertion_point(field_mutable:google.protobuf.Enum.name)
2389 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 2609 return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInite d(), GetArenaNoVirtual());
2390 } 2610 }
2391 ::std::string* Enum::release_name() { 2611 ::std::string* Enum::release_name() {
2392 // @@protoc_insertion_point(field_release:google.protobuf.Enum.name) 2612 // @@protoc_insertion_point(field_release:google.protobuf.Enum.name)
2393 2613
2394 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 2614 return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInite d(), GetArenaNoVirtual());
2395 } 2615 }
2396 void Enum::set_allocated_name(::std::string* name) { 2616 ::std::string* Enum::unsafe_arena_release_name() {
2617 // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Enum.na me)
2618 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
2619
2620 return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringA lreadyInited(),
2621 GetArenaNoVirtual());
2622 }
2623 void Enum::set_allocated_name(::std::string* name) {
2397 if (name != NULL) { 2624 if (name != NULL) {
2398 2625
2399 } else { 2626 } else {
2400 2627
2401 } 2628 }
2402 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name); 2629 name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), name,
2630 GetArenaNoVirtual());
2403 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Enum.name) 2631 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Enum.name)
2404 } 2632 }
2633 void Enum::unsafe_arena_set_allocated_name(
2634 ::std::string* name) {
2635 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
2636 if (name != NULL) {
2637
2638 } else {
2639
2640 }
2641 name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(),
2642 name, GetArenaNoVirtual());
2643 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.E num.name)
2644 }
2405 2645
2406 // repeated .google.protobuf.EnumValue enumvalue = 2; 2646 // repeated .google.protobuf.EnumValue enumvalue = 2;
2407 int Enum::enumvalue_size() const { 2647 int Enum::enumvalue_size() const {
2408 return enumvalue_.size(); 2648 return enumvalue_.size();
2409 } 2649 }
2410 void Enum::clear_enumvalue() { 2650 void Enum::clear_enumvalue() {
2411 enumvalue_.Clear(); 2651 enumvalue_.Clear();
2412 } 2652 }
2413 const ::google::protobuf::EnumValue& Enum::enumvalue(int index) const { 2653 const ::google::protobuf::EnumValue& Enum::enumvalue(int index) const {
2414 // @@protoc_insertion_point(field_get:google.protobuf.Enum.enumvalue) 2654 // @@protoc_insertion_point(field_get:google.protobuf.Enum.enumvalue)
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
2456 Enum::mutable_options() { 2696 Enum::mutable_options() {
2457 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Enum.options) 2697 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Enum.options)
2458 return &options_; 2698 return &options_;
2459 } 2699 }
2460 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >& 2700 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
2461 Enum::options() const { 2701 Enum::options() const {
2462 // @@protoc_insertion_point(field_list:google.protobuf.Enum.options) 2702 // @@protoc_insertion_point(field_list:google.protobuf.Enum.options)
2463 return options_; 2703 return options_;
2464 } 2704 }
2465 2705
2466 // optional .google.protobuf.SourceContext source_context = 4; 2706 // .google.protobuf.SourceContext source_context = 4;
2467 bool Enum::has_source_context() const { 2707 bool Enum::has_source_context() const {
2468 return !_is_default_instance_ && source_context_ != NULL; 2708 return this != internal_default_instance() && source_context_ != NULL;
2469 } 2709 }
2470 void Enum::clear_source_context() { 2710 void Enum::clear_source_context() {
2471 if (GetArenaNoVirtual() == NULL && source_context_ != NULL) delete source_cont ext_; 2711 if (GetArenaNoVirtual() == NULL && source_context_ != NULL) delete source_cont ext_;
2472 source_context_ = NULL; 2712 source_context_ = NULL;
2473 } 2713 }
2474 const ::google::protobuf::SourceContext& Enum::source_context() const { 2714 const ::google::protobuf::SourceContext& Enum::source_context() const {
2475 // @@protoc_insertion_point(field_get:google.protobuf.Enum.source_context) 2715 // @@protoc_insertion_point(field_get:google.protobuf.Enum.source_context)
2476 return source_context_ != NULL ? *source_context_ : *default_instance_->source _context_; 2716 return source_context_ != NULL ? *source_context_
2717 : *::google::protobuf::SourceContext::internal_default_ instance();
2477 } 2718 }
2478 ::google::protobuf::SourceContext* Enum::mutable_source_context() { 2719 ::google::protobuf::SourceContext* Enum::mutable_source_context() {
2479 2720
2480 if (source_context_ == NULL) { 2721 if (source_context_ == NULL) {
2481 source_context_ = new ::google::protobuf::SourceContext; 2722 _slow_mutable_source_context();
2482 } 2723 }
2483 // @@protoc_insertion_point(field_mutable:google.protobuf.Enum.source_context) 2724 // @@protoc_insertion_point(field_mutable:google.protobuf.Enum.source_context)
2484 return source_context_; 2725 return source_context_;
2485 } 2726 }
2486 ::google::protobuf::SourceContext* Enum::release_source_context() { 2727 ::google::protobuf::SourceContext* Enum::release_source_context() {
2487 // @@protoc_insertion_point(field_release:google.protobuf.Enum.source_context) 2728 // @@protoc_insertion_point(field_release:google.protobuf.Enum.source_context)
2488 2729
2489 ::google::protobuf::SourceContext* temp = source_context_; 2730 if (GetArenaNoVirtual() != NULL) {
2490 source_context_ = NULL; 2731 return _slow_release_source_context();
2491 return temp; 2732 } else {
2733 ::google::protobuf::SourceContext* temp = source_context_;
2734 source_context_ = NULL;
2735 return temp;
2736 }
2492 } 2737 }
2493 void Enum::set_allocated_source_context(::google::protobuf::SourceContext* sourc e_context) { 2738 void Enum::set_allocated_source_context(::google::protobuf::SourceContext* sour ce_context) {
2494 delete source_context_; 2739 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
2740 if (message_arena == NULL) {
2741 delete source_context_;
2742 }
2743 if (source_context != NULL) {
2744 if (message_arena != NULL) {
2745 message_arena->Own(source_context);
2746 }
2747 }
2495 source_context_ = source_context; 2748 source_context_ = source_context;
2496 if (source_context) { 2749 if (source_context) {
2497 2750
2498 } else { 2751 } else {
2499 2752
2500 } 2753 }
2501 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Enum.source_co ntext) 2754 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Enum.source_co ntext)
2502 } 2755 }
2503 2756
2504 // optional .google.protobuf.Syntax syntax = 5; 2757 // .google.protobuf.Syntax syntax = 5;
2505 void Enum::clear_syntax() { 2758 void Enum::clear_syntax() {
2506 syntax_ = 0; 2759 syntax_ = 0;
2507 } 2760 }
2508 ::google::protobuf::Syntax Enum::syntax() const { 2761 ::google::protobuf::Syntax Enum::syntax() const {
2509 // @@protoc_insertion_point(field_get:google.protobuf.Enum.syntax) 2762 // @@protoc_insertion_point(field_get:google.protobuf.Enum.syntax)
2510 return static_cast< ::google::protobuf::Syntax >(syntax_); 2763 return static_cast< ::google::protobuf::Syntax >(syntax_);
2511 } 2764 }
2512 void Enum::set_syntax(::google::protobuf::Syntax value) { 2765 void Enum::set_syntax(::google::protobuf::Syntax value) {
2513 2766
2514 syntax_ = value; 2767 syntax_ = value;
2515 // @@protoc_insertion_point(field_set:google.protobuf.Enum.syntax) 2768 // @@protoc_insertion_point(field_set:google.protobuf.Enum.syntax)
2516 } 2769 }
2517 2770
2518 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 2771 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
2519 2772
2520 // =================================================================== 2773 // ===================================================================
2521 2774
2522 #if !defined(_MSC_VER) || _MSC_VER >= 1900 2775 #if !defined(_MSC_VER) || _MSC_VER >= 1900
2523 const int EnumValue::kNameFieldNumber; 2776 const int EnumValue::kNameFieldNumber;
2524 const int EnumValue::kNumberFieldNumber; 2777 const int EnumValue::kNumberFieldNumber;
2525 const int EnumValue::kOptionsFieldNumber; 2778 const int EnumValue::kOptionsFieldNumber;
2526 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 2779 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
2527 2780
2528 EnumValue::EnumValue() 2781 EnumValue::EnumValue()
2529 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 2782 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2783 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2784 protobuf_InitDefaults_google_2fprotobuf_2ftype_2eproto();
2785 }
2530 SharedCtor(); 2786 SharedCtor();
2531 // @@protoc_insertion_point(constructor:google.protobuf.EnumValue) 2787 // @@protoc_insertion_point(constructor:google.protobuf.EnumValue)
2532 } 2788 }
2533 2789 EnumValue::EnumValue(::google::protobuf::Arena* arena)
2534 void EnumValue::InitAsDefaultInstance() { 2790 : ::google::protobuf::Message(),
2535 _is_default_instance_ = true; 2791 _internal_metadata_(arena),
2792 options_(arena) {
2793 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
2794 protobuf_InitDefaults_google_2fprotobuf_2ftype_2eproto();
2795 #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
2796 SharedCtor();
2797 RegisterArenaDtor(arena);
2798 // @@protoc_insertion_point(arena_constructor:google.protobuf.EnumValue)
2536 } 2799 }
2537
2538 EnumValue::EnumValue(const EnumValue& from) 2800 EnumValue::EnumValue(const EnumValue& from)
2539 : ::google::protobuf::Message(), 2801 : ::google::protobuf::Message(),
2540 _internal_metadata_(NULL) { 2802 _internal_metadata_(NULL),
2541 SharedCtor(); 2803 options_(from.options_),
2542 MergeFrom(from); 2804 _cached_size_(0) {
2805 _internal_metadata_.MergeFrom(from._internal_metadata_);
2806 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
2807 if (from.name().size() > 0) {
2808 name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from .name(),
2809 GetArenaNoVirtual());
2810 }
2811 number_ = from.number_;
2543 // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValue) 2812 // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValue)
2544 } 2813 }
2545 2814
2546 void EnumValue::SharedCtor() { 2815 void EnumValue::SharedCtor() {
2547 _is_default_instance_ = false;
2548 ::google::protobuf::internal::GetEmptyString();
2549 _cached_size_ = 0;
2550 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted()); 2816 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
2551 number_ = 0; 2817 number_ = 0;
2818 _cached_size_ = 0;
2552 } 2819 }
2553 2820
2554 EnumValue::~EnumValue() { 2821 EnumValue::~EnumValue() {
2555 // @@protoc_insertion_point(destructor:google.protobuf.EnumValue) 2822 // @@protoc_insertion_point(destructor:google.protobuf.EnumValue)
2556 SharedDtor(); 2823 SharedDtor();
2557 } 2824 }
2558 2825
2559 void EnumValue::SharedDtor() { 2826 void EnumValue::SharedDtor() {
2560 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d()); 2827 ::google::protobuf::Arena* arena = GetArenaNoVirtual();
2561 if (this != default_instance_) { 2828 if (arena != NULL) {
2829 return;
2562 } 2830 }
2831
2832 name_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ar ena);
2563 } 2833 }
2564 2834
2835 void EnumValue::ArenaDtor(void* object) {
2836 EnumValue* _this = reinterpret_cast< EnumValue* >(object);
2837 (void)_this;
2838 }
2839 void EnumValue::RegisterArenaDtor(::google::protobuf::Arena* arena) {
2840 }
2565 void EnumValue::SetCachedSize(int size) const { 2841 void EnumValue::SetCachedSize(int size) const {
2566 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 2842 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2567 _cached_size_ = size; 2843 _cached_size_ = size;
2568 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 2844 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2569 } 2845 }
2570 const ::google::protobuf::Descriptor* EnumValue::descriptor() { 2846 const ::google::protobuf::Descriptor* EnumValue::descriptor() {
2571 protobuf_AssignDescriptorsOnce(); 2847 protobuf_AssignDescriptorsOnce();
2572 return EnumValue_descriptor_; 2848 return file_level_metadata[3].descriptor;
2573 } 2849 }
2574 2850
2575 const EnumValue& EnumValue::default_instance() { 2851 const EnumValue& EnumValue::default_instance() {
2576 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2ftype_2epro to(); 2852 protobuf_InitDefaults_google_2fprotobuf_2ftype_2eproto();
2577 return *default_instance_; 2853 return *internal_default_instance();
2578 } 2854 }
2579 2855
2580 EnumValue* EnumValue::default_instance_ = NULL;
2581
2582 EnumValue* EnumValue::New(::google::protobuf::Arena* arena) const { 2856 EnumValue* EnumValue::New(::google::protobuf::Arena* arena) const {
2583 EnumValue* n = new EnumValue; 2857 return ::google::protobuf::Arena::CreateMessage<EnumValue>(arena);
2584 if (arena != NULL) {
2585 arena->Own(n);
2586 }
2587 return n;
2588 } 2858 }
2589 2859
2590 void EnumValue::Clear() { 2860 void EnumValue::Clear() {
2591 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumValue) 2861 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumValue)
2592 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 2862 options_.Clear();
2863 name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), GetArenaNoVirtual());
2593 number_ = 0; 2864 number_ = 0;
2594 options_.Clear();
2595 } 2865 }
2596 2866
2597 bool EnumValue::MergePartialFromCodedStream( 2867 bool EnumValue::MergePartialFromCodedStream(
2598 ::google::protobuf::io::CodedInputStream* input) { 2868 ::google::protobuf::io::CodedInputStream* input) {
2599 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 2869 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2600 ::google::protobuf::uint32 tag; 2870 ::google::protobuf::uint32 tag;
2601 // @@protoc_insertion_point(parse_start:google.protobuf.EnumValue) 2871 // @@protoc_insertion_point(parse_start:google.protobuf.EnumValue)
2602 for (;;) { 2872 for (;;) {
2603 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127); 2873 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u);
2604 tag = p.first; 2874 tag = p.first;
2605 if (!p.second) goto handle_unusual; 2875 if (!p.second) goto handle_unusual;
2606 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 2876 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
2607 // optional string name = 1; 2877 // string name = 1;
2608 case 1: { 2878 case 1: {
2609 if (tag == 10) { 2879 if (tag == 10u) {
2610 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 2880 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2611 input, this->mutable_name())); 2881 input, this->mutable_name()));
2612 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 2882 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2613 this->name().data(), this->name().length(), 2883 this->name().data(), this->name().length(),
2614 ::google::protobuf::internal::WireFormatLite::PARSE, 2884 ::google::protobuf::internal::WireFormatLite::PARSE,
2615 "google.protobuf.EnumValue.name")); 2885 "google.protobuf.EnumValue.name"));
2616 } else { 2886 } else {
2617 goto handle_unusual; 2887 goto handle_unusual;
2618 } 2888 }
2619 if (input->ExpectTag(16)) goto parse_number;
2620 break; 2889 break;
2621 } 2890 }
2622 2891
2623 // optional int32 number = 2; 2892 // int32 number = 2;
2624 case 2: { 2893 case 2: {
2625 if (tag == 16) { 2894 if (tag == 16u) {
2626 parse_number: 2895
2627 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 2896 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2628 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>( 2897 ::google::protobuf::int32, ::google::protobuf::internal::Wire FormatLite::TYPE_INT32>(
2629 input, &number_))); 2898 input, &number_)));
2630
2631 } else { 2899 } else {
2632 goto handle_unusual; 2900 goto handle_unusual;
2633 } 2901 }
2634 if (input->ExpectTag(26)) goto parse_options;
2635 break; 2902 break;
2636 } 2903 }
2637 2904
2638 // repeated .google.protobuf.Option options = 3; 2905 // repeated .google.protobuf.Option options = 3;
2639 case 3: { 2906 case 3: {
2640 if (tag == 26) { 2907 if (tag == 26u) {
2641 parse_options:
2642 DO_(input->IncrementRecursionDepth()); 2908 DO_(input->IncrementRecursionDepth());
2643 parse_loop_options:
2644 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth( 2909 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual NoRecursionDepth(
2645 input, add_options())); 2910 input, add_options()));
2646 } else { 2911 } else {
2647 goto handle_unusual; 2912 goto handle_unusual;
2648 } 2913 }
2649 if (input->ExpectTag(26)) goto parse_loop_options;
2650 input->UnsafeDecrementRecursionDepth(); 2914 input->UnsafeDecrementRecursionDepth();
2651 if (input->ExpectAtEnd()) goto success;
2652 break; 2915 break;
2653 } 2916 }
2654 2917
2655 default: { 2918 default: {
2656 handle_unusual: 2919 handle_unusual:
2657 if (tag == 0 || 2920 if (tag == 0 ||
2658 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 2921 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2659 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 2922 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2660 goto success; 2923 goto success;
2661 } 2924 }
2662 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)) ; 2925 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)) ;
2663 break; 2926 break;
2664 } 2927 }
2665 } 2928 }
2666 } 2929 }
2667 success: 2930 success:
2668 // @@protoc_insertion_point(parse_success:google.protobuf.EnumValue) 2931 // @@protoc_insertion_point(parse_success:google.protobuf.EnumValue)
2669 return true; 2932 return true;
2670 failure: 2933 failure:
2671 // @@protoc_insertion_point(parse_failure:google.protobuf.EnumValue) 2934 // @@protoc_insertion_point(parse_failure:google.protobuf.EnumValue)
2672 return false; 2935 return false;
2673 #undef DO_ 2936 #undef DO_
2674 } 2937 }
2675 2938
2676 void EnumValue::SerializeWithCachedSizes( 2939 void EnumValue::SerializeWithCachedSizes(
2677 ::google::protobuf::io::CodedOutputStream* output) const { 2940 ::google::protobuf::io::CodedOutputStream* output) const {
2678 // @@protoc_insertion_point(serialize_start:google.protobuf.EnumValue) 2941 // @@protoc_insertion_point(serialize_start:google.protobuf.EnumValue)
2679 // optional string name = 1; 2942 // string name = 1;
2680 if (this->name().size() > 0) { 2943 if (this->name().size() > 0) {
2681 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 2944 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2682 this->name().data(), this->name().length(), 2945 this->name().data(), this->name().length(),
2683 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 2946 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
2684 "google.protobuf.EnumValue.name"); 2947 "google.protobuf.EnumValue.name");
2685 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2948 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2686 1, this->name(), output); 2949 1, this->name(), output);
2687 } 2950 }
2688 2951
2689 // optional int32 number = 2; 2952 // int32 number = 2;
2690 if (this->number() != 0) { 2953 if (this->number() != 0) {
2691 ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->number(), output); 2954 ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->number(), output);
2692 } 2955 }
2693 2956
2694 // repeated .google.protobuf.Option options = 3; 2957 // repeated .google.protobuf.Option options = 3;
2695 for (unsigned int i = 0, n = this->options_size(); i < n; i++) { 2958 for (unsigned int i = 0, n = this->options_size(); i < n; i++) {
2696 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2959 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2697 3, this->options(i), output); 2960 3, this->options(i), output);
2698 } 2961 }
2699 2962
2700 // @@protoc_insertion_point(serialize_end:google.protobuf.EnumValue) 2963 // @@protoc_insertion_point(serialize_end:google.protobuf.EnumValue)
2701 } 2964 }
2702 2965
2703 ::google::protobuf::uint8* EnumValue::SerializeWithCachedSizesToArray( 2966 ::google::protobuf::uint8* EnumValue::InternalSerializeWithCachedSizesToArray(
2704 ::google::protobuf::uint8* target) const { 2967 bool deterministic, ::google::protobuf::uint8* target) const {
2968 (void)deterministic; // Unused
2705 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValue ) 2969 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValue )
2706 // optional string name = 1; 2970 // string name = 1;
2707 if (this->name().size() > 0) { 2971 if (this->name().size() > 0) {
2708 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 2972 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2709 this->name().data(), this->name().length(), 2973 this->name().data(), this->name().length(),
2710 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 2974 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
2711 "google.protobuf.EnumValue.name"); 2975 "google.protobuf.EnumValue.name");
2712 target = 2976 target =
2713 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2977 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2714 1, this->name(), target); 2978 1, this->name(), target);
2715 } 2979 }
2716 2980
2717 // optional int32 number = 2; 2981 // int32 number = 2;
2718 if (this->number() != 0) { 2982 if (this->number() != 0) {
2719 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->number(), target); 2983 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->number(), target);
2720 } 2984 }
2721 2985
2722 // repeated .google.protobuf.Option options = 3; 2986 // repeated .google.protobuf.Option options = 3;
2723 for (unsigned int i = 0, n = this->options_size(); i < n; i++) { 2987 for (unsigned int i = 0, n = this->options_size(); i < n; i++) {
2724 target = ::google::protobuf::internal::WireFormatLite:: 2988 target = ::google::protobuf::internal::WireFormatLite::
2725 WriteMessageNoVirtualToArray( 2989 InternalWriteMessageNoVirtualToArray(
2726 3, this->options(i), target); 2990 3, this->options(i), false, target);
2727 } 2991 }
2728 2992
2729 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumValue) 2993 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumValue)
2730 return target; 2994 return target;
2731 } 2995 }
2732 2996
2733 int EnumValue::ByteSize() const { 2997 size_t EnumValue::ByteSizeLong() const {
2734 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumValue) 2998 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumValue)
2735 int total_size = 0; 2999 size_t total_size = 0;
2736 3000
2737 // optional string name = 1; 3001 // repeated .google.protobuf.Option options = 3;
3002 {
3003 unsigned int count = this->options_size();
3004 total_size += 1UL * count;
3005 for (unsigned int i = 0; i < count; i++) {
3006 total_size +=
3007 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3008 this->options(i));
3009 }
3010 }
3011
3012 // string name = 1;
2738 if (this->name().size() > 0) { 3013 if (this->name().size() > 0) {
2739 total_size += 1 + 3014 total_size += 1 +
2740 ::google::protobuf::internal::WireFormatLite::StringSize( 3015 ::google::protobuf::internal::WireFormatLite::StringSize(
2741 this->name()); 3016 this->name());
2742 } 3017 }
2743 3018
2744 // optional int32 number = 2; 3019 // int32 number = 2;
2745 if (this->number() != 0) { 3020 if (this->number() != 0) {
2746 total_size += 1 + 3021 total_size += 1 +
2747 ::google::protobuf::internal::WireFormatLite::Int32Size( 3022 ::google::protobuf::internal::WireFormatLite::Int32Size(
2748 this->number()); 3023 this->number());
2749 } 3024 }
2750 3025
2751 // repeated .google.protobuf.Option options = 3; 3026 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2752 total_size += 1 * this->options_size();
2753 for (int i = 0; i < this->options_size(); i++) {
2754 total_size +=
2755 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2756 this->options(i));
2757 }
2758
2759 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 3027 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2760 _cached_size_ = total_size; 3028 _cached_size_ = cached_size;
2761 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 3029 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2762 return total_size; 3030 return total_size;
2763 } 3031 }
2764 3032
2765 void EnumValue::MergeFrom(const ::google::protobuf::Message& from) { 3033 void EnumValue::MergeFrom(const ::google::protobuf::Message& from) {
2766 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumVal ue) 3034 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumVal ue)
2767 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 3035 GOOGLE_DCHECK_NE(&from, this);
2768 const EnumValue* source = 3036 const EnumValue* source =
2769 ::google::protobuf::internal::DynamicCastToGenerated<const EnumValue>( 3037 ::google::protobuf::internal::DynamicCastToGenerated<const EnumValue>(
2770 &from); 3038 &from);
2771 if (source == NULL) { 3039 if (source == NULL) {
2772 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.E numValue) 3040 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.E numValue)
2773 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 3041 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2774 } else { 3042 } else {
2775 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.EnumValue) 3043 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.EnumValue)
2776 MergeFrom(*source); 3044 MergeFrom(*source);
2777 } 3045 }
2778 } 3046 }
2779 3047
2780 void EnumValue::MergeFrom(const EnumValue& from) { 3048 void EnumValue::MergeFrom(const EnumValue& from) {
2781 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Enum Value) 3049 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Enum Value)
2782 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 3050 GOOGLE_DCHECK_NE(&from, this);
3051 _internal_metadata_.MergeFrom(from._internal_metadata_);
2783 options_.MergeFrom(from.options_); 3052 options_.MergeFrom(from.options_);
2784 if (from.name().size() > 0) { 3053 if (from.name().size() > 0) {
2785 3054 set_name(from.name());
2786 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlready Inited(), from.name_);
2787 } 3055 }
2788 if (from.number() != 0) { 3056 if (from.number() != 0) {
2789 set_number(from.number()); 3057 set_number(from.number());
2790 } 3058 }
2791 } 3059 }
2792 3060
2793 void EnumValue::CopyFrom(const ::google::protobuf::Message& from) { 3061 void EnumValue::CopyFrom(const ::google::protobuf::Message& from) {
2794 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumValu e) 3062 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumValu e)
2795 if (&from == this) return; 3063 if (&from == this) return;
2796 Clear(); 3064 Clear();
2797 MergeFrom(from); 3065 MergeFrom(from);
2798 } 3066 }
2799 3067
2800 void EnumValue::CopyFrom(const EnumValue& from) { 3068 void EnumValue::CopyFrom(const EnumValue& from) {
2801 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumV alue) 3069 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumV alue)
2802 if (&from == this) return; 3070 if (&from == this) return;
2803 Clear(); 3071 Clear();
2804 MergeFrom(from); 3072 MergeFrom(from);
2805 } 3073 }
2806 3074
2807 bool EnumValue::IsInitialized() const { 3075 bool EnumValue::IsInitialized() const {
2808
2809 return true; 3076 return true;
2810 } 3077 }
2811 3078
2812 void EnumValue::Swap(EnumValue* other) { 3079 void EnumValue::Swap(EnumValue* other) {
2813 if (other == this) return; 3080 if (other == this) return;
3081 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
3082 InternalSwap(other);
3083 } else {
3084 EnumValue* temp = New(GetArenaNoVirtual());
3085 temp->MergeFrom(*other);
3086 other->CopyFrom(*this);
3087 InternalSwap(temp);
3088 if (GetArenaNoVirtual() == NULL) {
3089 delete temp;
3090 }
3091 }
3092 }
3093 void EnumValue::UnsafeArenaSwap(EnumValue* other) {
3094 if (other == this) return;
3095 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
2814 InternalSwap(other); 3096 InternalSwap(other);
2815 } 3097 }
2816 void EnumValue::InternalSwap(EnumValue* other) { 3098 void EnumValue::InternalSwap(EnumValue* other) {
3099 options_.UnsafeArenaSwap(&other->options_);
2817 name_.Swap(&other->name_); 3100 name_.Swap(&other->name_);
2818 std::swap(number_, other->number_); 3101 std::swap(number_, other->number_);
2819 options_.UnsafeArenaSwap(&other->options_);
2820 _internal_metadata_.Swap(&other->_internal_metadata_);
2821 std::swap(_cached_size_, other->_cached_size_); 3102 std::swap(_cached_size_, other->_cached_size_);
2822 } 3103 }
2823 3104
2824 ::google::protobuf::Metadata EnumValue::GetMetadata() const { 3105 ::google::protobuf::Metadata EnumValue::GetMetadata() const {
2825 protobuf_AssignDescriptorsOnce(); 3106 protobuf_AssignDescriptorsOnce();
2826 ::google::protobuf::Metadata metadata; 3107 return file_level_metadata[3];
2827 metadata.descriptor = EnumValue_descriptor_;
2828 metadata.reflection = EnumValue_reflection_;
2829 return metadata;
2830 } 3108 }
2831 3109
2832 #if PROTOBUF_INLINE_NOT_IN_HEADERS 3110 #if PROTOBUF_INLINE_NOT_IN_HEADERS
2833 // EnumValue 3111 // EnumValue
2834 3112
2835 // optional string name = 1; 3113 // string name = 1;
2836 void EnumValue::clear_name() { 3114 void EnumValue::clear_name() {
2837 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 3115 name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), GetArenaNoVirtual());
2838 } 3116 }
2839 const ::std::string& EnumValue::name() const { 3117 const ::std::string& EnumValue::name() const {
2840 // @@protoc_insertion_point(field_get:google.protobuf.EnumValue.name) 3118 // @@protoc_insertion_point(field_get:google.protobuf.EnumValue.name)
2841 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited()); 3119 return name_.Get();
2842 } 3120 }
2843 void EnumValue::set_name(const ::std::string& value) { 3121 void EnumValue::set_name(const ::std::string& value) {
2844 3122
2845 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 3123 name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
2846 // @@protoc_insertion_point(field_set:google.protobuf.EnumValue.name) 3124 // @@protoc_insertion_point(field_set:google.protobuf.EnumValue.name)
2847 } 3125 }
2848 void EnumValue::set_name(const char* value) { 3126 void EnumValue::set_name(const char* value) {
2849 3127
2850 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 3128 name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std: :string(value),
3129 GetArenaNoVirtual());
2851 // @@protoc_insertion_point(field_set_char:google.protobuf.EnumValue.name) 3130 // @@protoc_insertion_point(field_set_char:google.protobuf.EnumValue.name)
2852 } 3131 }
2853 void EnumValue::set_name(const char* value, size_t size) { 3132 void EnumValue::set_name(const char* value,
3133 size_t size) {
2854 3134
2855 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 3135 name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std: :string(
2856 ::std::string(reinterpret_cast<const char*>(value), size)); 3136 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
2857 // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumValue.name) 3137 // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumValue.name)
2858 } 3138 }
2859 ::std::string* EnumValue::mutable_name() { 3139 ::std::string* EnumValue::mutable_name() {
2860 3140
2861 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValue.name) 3141 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValue.name)
2862 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 3142 return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInite d(), GetArenaNoVirtual());
2863 } 3143 }
2864 ::std::string* EnumValue::release_name() { 3144 ::std::string* EnumValue::release_name() {
2865 // @@protoc_insertion_point(field_release:google.protobuf.EnumValue.name) 3145 // @@protoc_insertion_point(field_release:google.protobuf.EnumValue.name)
2866 3146
2867 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 3147 return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInite d(), GetArenaNoVirtual());
2868 } 3148 }
2869 void EnumValue::set_allocated_name(::std::string* name) { 3149 ::std::string* EnumValue::unsafe_arena_release_name() {
3150 // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.EnumVal ue.name)
3151 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
3152
3153 return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringA lreadyInited(),
3154 GetArenaNoVirtual());
3155 }
3156 void EnumValue::set_allocated_name(::std::string* name) {
2870 if (name != NULL) { 3157 if (name != NULL) {
2871 3158
2872 } else { 3159 } else {
2873 3160
2874 } 3161 }
2875 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name); 3162 name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), name,
3163 GetArenaNoVirtual());
2876 // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValue.name ) 3164 // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValue.name )
2877 } 3165 }
3166 void EnumValue::unsafe_arena_set_allocated_name(
3167 ::std::string* name) {
3168 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
3169 if (name != NULL) {
3170
3171 } else {
3172
3173 }
3174 name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(),
3175 name, GetArenaNoVirtual());
3176 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.E numValue.name)
3177 }
2878 3178
2879 // optional int32 number = 2; 3179 // int32 number = 2;
2880 void EnumValue::clear_number() { 3180 void EnumValue::clear_number() {
2881 number_ = 0; 3181 number_ = 0;
2882 } 3182 }
2883 ::google::protobuf::int32 EnumValue::number() const { 3183 ::google::protobuf::int32 EnumValue::number() const {
2884 // @@protoc_insertion_point(field_get:google.protobuf.EnumValue.number) 3184 // @@protoc_insertion_point(field_get:google.protobuf.EnumValue.number)
2885 return number_; 3185 return number_;
2886 } 3186 }
2887 void EnumValue::set_number(::google::protobuf::int32 value) { 3187 void EnumValue::set_number(::google::protobuf::int32 value) {
2888 3188
2889 number_ = value; 3189 number_ = value;
2890 // @@protoc_insertion_point(field_set:google.protobuf.EnumValue.number) 3190 // @@protoc_insertion_point(field_set:google.protobuf.EnumValue.number)
2891 } 3191 }
2892 3192
2893 // repeated .google.protobuf.Option options = 3; 3193 // repeated .google.protobuf.Option options = 3;
2894 int EnumValue::options_size() const { 3194 int EnumValue::options_size() const {
2895 return options_.size(); 3195 return options_.size();
2896 } 3196 }
2897 void EnumValue::clear_options() { 3197 void EnumValue::clear_options() {
(...skipping 19 matching lines...) Expand all
2917 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >& 3217 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
2918 EnumValue::options() const { 3218 EnumValue::options() const {
2919 // @@protoc_insertion_point(field_list:google.protobuf.EnumValue.options) 3219 // @@protoc_insertion_point(field_list:google.protobuf.EnumValue.options)
2920 return options_; 3220 return options_;
2921 } 3221 }
2922 3222
2923 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 3223 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
2924 3224
2925 // =================================================================== 3225 // ===================================================================
2926 3226
3227 void Option::_slow_mutable_value() {
3228 value_ = ::google::protobuf::Arena::Create< ::google::protobuf::Any >(
3229 GetArenaNoVirtual());
3230 }
3231 ::google::protobuf::Any* Option::_slow_release_value() {
3232 if (value_ == NULL) {
3233 return NULL;
3234 } else {
3235 ::google::protobuf::Any* temp = new ::google::protobuf::Any(*value_);
3236 value_ = NULL;
3237 return temp;
3238 }
3239 }
3240 ::google::protobuf::Any* Option::unsafe_arena_release_value() {
3241 // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Option. value)
3242
3243 ::google::protobuf::Any* temp = value_;
3244 value_ = NULL;
3245 return temp;
3246 }
3247 void Option::unsafe_arena_set_allocated_value(
3248 ::google::protobuf::Any* value) {
3249 if (GetArenaNoVirtual() == NULL) {
3250 delete value_;
3251 }
3252 value_ = value;
3253 if (value) {
3254
3255 } else {
3256
3257 }
3258 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.O ption.value)
3259 }
2927 #if !defined(_MSC_VER) || _MSC_VER >= 1900 3260 #if !defined(_MSC_VER) || _MSC_VER >= 1900
2928 const int Option::kNameFieldNumber; 3261 const int Option::kNameFieldNumber;
2929 const int Option::kValueFieldNumber; 3262 const int Option::kValueFieldNumber;
2930 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 3263 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
2931 3264
2932 Option::Option() 3265 Option::Option()
2933 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 3266 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
3267 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
3268 protobuf_InitDefaults_google_2fprotobuf_2ftype_2eproto();
3269 }
2934 SharedCtor(); 3270 SharedCtor();
2935 // @@protoc_insertion_point(constructor:google.protobuf.Option) 3271 // @@protoc_insertion_point(constructor:google.protobuf.Option)
2936 } 3272 }
2937 3273 Option::Option(::google::protobuf::Arena* arena)
2938 void Option::InitAsDefaultInstance() { 3274 : ::google::protobuf::Message(),
2939 _is_default_instance_ = true; 3275 _internal_metadata_(arena) {
2940 value_ = const_cast< ::google::protobuf::Any*>(&::google::protobuf::Any::defau lt_instance()); 3276 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
3277 protobuf_InitDefaults_google_2fprotobuf_2ftype_2eproto();
3278 #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
3279 SharedCtor();
3280 RegisterArenaDtor(arena);
3281 // @@protoc_insertion_point(arena_constructor:google.protobuf.Option)
2941 } 3282 }
2942
2943 Option::Option(const Option& from) 3283 Option::Option(const Option& from)
2944 : ::google::protobuf::Message(), 3284 : ::google::protobuf::Message(),
2945 _internal_metadata_(NULL) { 3285 _internal_metadata_(NULL),
2946 SharedCtor(); 3286 _cached_size_(0) {
2947 MergeFrom(from); 3287 _internal_metadata_.MergeFrom(from._internal_metadata_);
3288 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
3289 if (from.name().size() > 0) {
3290 name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from .name(),
3291 GetArenaNoVirtual());
3292 }
3293 if (from.has_value()) {
3294 value_ = new ::google::protobuf::Any(*from.value_);
3295 } else {
3296 value_ = NULL;
3297 }
2948 // @@protoc_insertion_point(copy_constructor:google.protobuf.Option) 3298 // @@protoc_insertion_point(copy_constructor:google.protobuf.Option)
2949 } 3299 }
2950 3300
2951 void Option::SharedCtor() { 3301 void Option::SharedCtor() {
2952 _is_default_instance_ = false;
2953 ::google::protobuf::internal::GetEmptyString();
2954 _cached_size_ = 0;
2955 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted()); 3302 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIni ted());
2956 value_ = NULL; 3303 value_ = NULL;
3304 _cached_size_ = 0;
2957 } 3305 }
2958 3306
2959 Option::~Option() { 3307 Option::~Option() {
2960 // @@protoc_insertion_point(destructor:google.protobuf.Option) 3308 // @@protoc_insertion_point(destructor:google.protobuf.Option)
2961 SharedDtor(); 3309 SharedDtor();
2962 } 3310 }
2963 3311
2964 void Option::SharedDtor() { 3312 void Option::SharedDtor() {
2965 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInite d()); 3313 ::google::protobuf::Arena* arena = GetArenaNoVirtual();
2966 if (this != default_instance_) { 3314 if (arena != NULL) {
3315 return;
3316 }
3317
3318 name_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ar ena);
3319 if (this != internal_default_instance()) {
2967 delete value_; 3320 delete value_;
2968 } 3321 }
2969 } 3322 }
2970 3323
3324 void Option::ArenaDtor(void* object) {
3325 Option* _this = reinterpret_cast< Option* >(object);
3326 (void)_this;
3327 }
3328 void Option::RegisterArenaDtor(::google::protobuf::Arena* arena) {
3329 }
2971 void Option::SetCachedSize(int size) const { 3330 void Option::SetCachedSize(int size) const {
2972 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 3331 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2973 _cached_size_ = size; 3332 _cached_size_ = size;
2974 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 3333 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2975 } 3334 }
2976 const ::google::protobuf::Descriptor* Option::descriptor() { 3335 const ::google::protobuf::Descriptor* Option::descriptor() {
2977 protobuf_AssignDescriptorsOnce(); 3336 protobuf_AssignDescriptorsOnce();
2978 return Option_descriptor_; 3337 return file_level_metadata[4].descriptor;
2979 } 3338 }
2980 3339
2981 const Option& Option::default_instance() { 3340 const Option& Option::default_instance() {
2982 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2ftype_2epro to(); 3341 protobuf_InitDefaults_google_2fprotobuf_2ftype_2eproto();
2983 return *default_instance_; 3342 return *internal_default_instance();
2984 } 3343 }
2985 3344
2986 Option* Option::default_instance_ = NULL;
2987
2988 Option* Option::New(::google::protobuf::Arena* arena) const { 3345 Option* Option::New(::google::protobuf::Arena* arena) const {
2989 Option* n = new Option; 3346 return ::google::protobuf::Arena::CreateMessage<Option>(arena);
2990 if (arena != NULL) {
2991 arena->Own(n);
2992 }
2993 return n;
2994 } 3347 }
2995 3348
2996 void Option::Clear() { 3349 void Option::Clear() {
2997 // @@protoc_insertion_point(message_clear_start:google.protobuf.Option) 3350 // @@protoc_insertion_point(message_clear_start:google.protobuf.Option)
2998 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 3351 name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), GetArenaNoVirtual());
2999 if (GetArenaNoVirtual() == NULL && value_ != NULL) delete value_; 3352 if (GetArenaNoVirtual() == NULL && value_ != NULL) {
3353 delete value_;
3354 }
3000 value_ = NULL; 3355 value_ = NULL;
3001 } 3356 }
3002 3357
3003 bool Option::MergePartialFromCodedStream( 3358 bool Option::MergePartialFromCodedStream(
3004 ::google::protobuf::io::CodedInputStream* input) { 3359 ::google::protobuf::io::CodedInputStream* input) {
3005 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 3360 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
3006 ::google::protobuf::uint32 tag; 3361 ::google::protobuf::uint32 tag;
3007 // @@protoc_insertion_point(parse_start:google.protobuf.Option) 3362 // @@protoc_insertion_point(parse_start:google.protobuf.Option)
3008 for (;;) { 3363 for (;;) {
3009 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127); 3364 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u);
3010 tag = p.first; 3365 tag = p.first;
3011 if (!p.second) goto handle_unusual; 3366 if (!p.second) goto handle_unusual;
3012 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 3367 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
3013 // optional string name = 1; 3368 // string name = 1;
3014 case 1: { 3369 case 1: {
3015 if (tag == 10) { 3370 if (tag == 10u) {
3016 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 3371 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3017 input, this->mutable_name())); 3372 input, this->mutable_name()));
3018 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 3373 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3019 this->name().data(), this->name().length(), 3374 this->name().data(), this->name().length(),
3020 ::google::protobuf::internal::WireFormatLite::PARSE, 3375 ::google::protobuf::internal::WireFormatLite::PARSE,
3021 "google.protobuf.Option.name")); 3376 "google.protobuf.Option.name"));
3022 } else { 3377 } else {
3023 goto handle_unusual; 3378 goto handle_unusual;
3024 } 3379 }
3025 if (input->ExpectTag(18)) goto parse_value;
3026 break; 3380 break;
3027 } 3381 }
3028 3382
3029 // optional .google.protobuf.Any value = 2; 3383 // .google.protobuf.Any value = 2;
3030 case 2: { 3384 case 2: {
3031 if (tag == 18) { 3385 if (tag == 18u) {
3032 parse_value:
3033 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual ( 3386 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual (
3034 input, mutable_value())); 3387 input, mutable_value()));
3035 } else { 3388 } else {
3036 goto handle_unusual; 3389 goto handle_unusual;
3037 } 3390 }
3038 if (input->ExpectAtEnd()) goto success;
3039 break; 3391 break;
3040 } 3392 }
3041 3393
3042 default: { 3394 default: {
3043 handle_unusual: 3395 handle_unusual:
3044 if (tag == 0 || 3396 if (tag == 0 ||
3045 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 3397 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3046 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 3398 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
3047 goto success; 3399 goto success;
3048 } 3400 }
3049 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)) ; 3401 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)) ;
3050 break; 3402 break;
3051 } 3403 }
3052 } 3404 }
3053 } 3405 }
3054 success: 3406 success:
3055 // @@protoc_insertion_point(parse_success:google.protobuf.Option) 3407 // @@protoc_insertion_point(parse_success:google.protobuf.Option)
3056 return true; 3408 return true;
3057 failure: 3409 failure:
3058 // @@protoc_insertion_point(parse_failure:google.protobuf.Option) 3410 // @@protoc_insertion_point(parse_failure:google.protobuf.Option)
3059 return false; 3411 return false;
3060 #undef DO_ 3412 #undef DO_
3061 } 3413 }
3062 3414
3063 void Option::SerializeWithCachedSizes( 3415 void Option::SerializeWithCachedSizes(
3064 ::google::protobuf::io::CodedOutputStream* output) const { 3416 ::google::protobuf::io::CodedOutputStream* output) const {
3065 // @@protoc_insertion_point(serialize_start:google.protobuf.Option) 3417 // @@protoc_insertion_point(serialize_start:google.protobuf.Option)
3066 // optional string name = 1; 3418 // string name = 1;
3067 if (this->name().size() > 0) { 3419 if (this->name().size() > 0) {
3068 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 3420 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3069 this->name().data(), this->name().length(), 3421 this->name().data(), this->name().length(),
3070 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 3422 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
3071 "google.protobuf.Option.name"); 3423 "google.protobuf.Option.name");
3072 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 3424 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3073 1, this->name(), output); 3425 1, this->name(), output);
3074 } 3426 }
3075 3427
3076 // optional .google.protobuf.Any value = 2; 3428 // .google.protobuf.Any value = 2;
3077 if (this->has_value()) { 3429 if (this->has_value()) {
3078 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3430 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3079 2, *this->value_, output); 3431 2, *this->value_, output);
3080 } 3432 }
3081 3433
3082 // @@protoc_insertion_point(serialize_end:google.protobuf.Option) 3434 // @@protoc_insertion_point(serialize_end:google.protobuf.Option)
3083 } 3435 }
3084 3436
3085 ::google::protobuf::uint8* Option::SerializeWithCachedSizesToArray( 3437 ::google::protobuf::uint8* Option::InternalSerializeWithCachedSizesToArray(
3086 ::google::protobuf::uint8* target) const { 3438 bool deterministic, ::google::protobuf::uint8* target) const {
3439 (void)deterministic; // Unused
3087 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Option) 3440 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Option)
3088 // optional string name = 1; 3441 // string name = 1;
3089 if (this->name().size() > 0) { 3442 if (this->name().size() > 0) {
3090 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 3443 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3091 this->name().data(), this->name().length(), 3444 this->name().data(), this->name().length(),
3092 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 3445 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
3093 "google.protobuf.Option.name"); 3446 "google.protobuf.Option.name");
3094 target = 3447 target =
3095 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 3448 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3096 1, this->name(), target); 3449 1, this->name(), target);
3097 } 3450 }
3098 3451
3099 // optional .google.protobuf.Any value = 2; 3452 // .google.protobuf.Any value = 2;
3100 if (this->has_value()) { 3453 if (this->has_value()) {
3101 target = ::google::protobuf::internal::WireFormatLite:: 3454 target = ::google::protobuf::internal::WireFormatLite::
3102 WriteMessageNoVirtualToArray( 3455 InternalWriteMessageNoVirtualToArray(
3103 2, *this->value_, target); 3456 2, *this->value_, false, target);
3104 } 3457 }
3105 3458
3106 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Option) 3459 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Option)
3107 return target; 3460 return target;
3108 } 3461 }
3109 3462
3110 int Option::ByteSize() const { 3463 size_t Option::ByteSizeLong() const {
3111 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Option) 3464 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Option)
3112 int total_size = 0; 3465 size_t total_size = 0;
3113 3466
3114 // optional string name = 1; 3467 // string name = 1;
3115 if (this->name().size() > 0) { 3468 if (this->name().size() > 0) {
3116 total_size += 1 + 3469 total_size += 1 +
3117 ::google::protobuf::internal::WireFormatLite::StringSize( 3470 ::google::protobuf::internal::WireFormatLite::StringSize(
3118 this->name()); 3471 this->name());
3119 } 3472 }
3120 3473
3121 // optional .google.protobuf.Any value = 2; 3474 // .google.protobuf.Any value = 2;
3122 if (this->has_value()) { 3475 if (this->has_value()) {
3123 total_size += 1 + 3476 total_size += 1 +
3124 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( 3477 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3125 *this->value_); 3478 *this->value_);
3126 } 3479 }
3127 3480
3481 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3128 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 3482 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3129 _cached_size_ = total_size; 3483 _cached_size_ = cached_size;
3130 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 3484 GOOGLE_SAFE_CONCURRENT_WRITES_END();
3131 return total_size; 3485 return total_size;
3132 } 3486 }
3133 3487
3134 void Option::MergeFrom(const ::google::protobuf::Message& from) { 3488 void Option::MergeFrom(const ::google::protobuf::Message& from) {
3135 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Option) 3489 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Option)
3136 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 3490 GOOGLE_DCHECK_NE(&from, this);
3137 const Option* source = 3491 const Option* source =
3138 ::google::protobuf::internal::DynamicCastToGenerated<const Option>( 3492 ::google::protobuf::internal::DynamicCastToGenerated<const Option>(
3139 &from); 3493 &from);
3140 if (source == NULL) { 3494 if (source == NULL) {
3141 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.O ption) 3495 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.O ption)
3142 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 3496 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3143 } else { 3497 } else {
3144 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.Option) 3498 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.Option)
3145 MergeFrom(*source); 3499 MergeFrom(*source);
3146 } 3500 }
3147 } 3501 }
3148 3502
3149 void Option::MergeFrom(const Option& from) { 3503 void Option::MergeFrom(const Option& from) {
3150 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Opti on) 3504 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Opti on)
3151 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 3505 GOOGLE_DCHECK_NE(&from, this);
3506 _internal_metadata_.MergeFrom(from._internal_metadata_);
3152 if (from.name().size() > 0) { 3507 if (from.name().size() > 0) {
3153 3508 set_name(from.name());
3154 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlready Inited(), from.name_);
3155 } 3509 }
3156 if (from.has_value()) { 3510 if (from.has_value()) {
3157 mutable_value()->::google::protobuf::Any::MergeFrom(from.value()); 3511 mutable_value()->::google::protobuf::Any::MergeFrom(from.value());
3158 } 3512 }
3159 } 3513 }
3160 3514
3161 void Option::CopyFrom(const ::google::protobuf::Message& from) { 3515 void Option::CopyFrom(const ::google::protobuf::Message& from) {
3162 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Option) 3516 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Option)
3163 if (&from == this) return; 3517 if (&from == this) return;
3164 Clear(); 3518 Clear();
3165 MergeFrom(from); 3519 MergeFrom(from);
3166 } 3520 }
3167 3521
3168 void Option::CopyFrom(const Option& from) { 3522 void Option::CopyFrom(const Option& from) {
3169 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Optio n) 3523 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Optio n)
3170 if (&from == this) return; 3524 if (&from == this) return;
3171 Clear(); 3525 Clear();
3172 MergeFrom(from); 3526 MergeFrom(from);
3173 } 3527 }
3174 3528
3175 bool Option::IsInitialized() const { 3529 bool Option::IsInitialized() const {
3176
3177 return true; 3530 return true;
3178 } 3531 }
3179 3532
3180 void Option::Swap(Option* other) { 3533 void Option::Swap(Option* other) {
3181 if (other == this) return; 3534 if (other == this) return;
3535 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
3536 InternalSwap(other);
3537 } else {
3538 Option* temp = New(GetArenaNoVirtual());
3539 temp->MergeFrom(*other);
3540 other->CopyFrom(*this);
3541 InternalSwap(temp);
3542 if (GetArenaNoVirtual() == NULL) {
3543 delete temp;
3544 }
3545 }
3546 }
3547 void Option::UnsafeArenaSwap(Option* other) {
3548 if (other == this) return;
3549 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
3182 InternalSwap(other); 3550 InternalSwap(other);
3183 } 3551 }
3184 void Option::InternalSwap(Option* other) { 3552 void Option::InternalSwap(Option* other) {
3185 name_.Swap(&other->name_); 3553 name_.Swap(&other->name_);
3186 std::swap(value_, other->value_); 3554 std::swap(value_, other->value_);
3187 _internal_metadata_.Swap(&other->_internal_metadata_);
3188 std::swap(_cached_size_, other->_cached_size_); 3555 std::swap(_cached_size_, other->_cached_size_);
3189 } 3556 }
3190 3557
3191 ::google::protobuf::Metadata Option::GetMetadata() const { 3558 ::google::protobuf::Metadata Option::GetMetadata() const {
3192 protobuf_AssignDescriptorsOnce(); 3559 protobuf_AssignDescriptorsOnce();
3193 ::google::protobuf::Metadata metadata; 3560 return file_level_metadata[4];
3194 metadata.descriptor = Option_descriptor_;
3195 metadata.reflection = Option_reflection_;
3196 return metadata;
3197 } 3561 }
3198 3562
3199 #if PROTOBUF_INLINE_NOT_IN_HEADERS 3563 #if PROTOBUF_INLINE_NOT_IN_HEADERS
3200 // Option 3564 // Option
3201 3565
3202 // optional string name = 1; 3566 // string name = 1;
3203 void Option::clear_name() { 3567 void Option::clear_name() {
3204 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited()); 3568 name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), GetArenaNoVirtual());
3205 } 3569 }
3206 const ::std::string& Option::name() const { 3570 const ::std::string& Option::name() const {
3207 // @@protoc_insertion_point(field_get:google.protobuf.Option.name) 3571 // @@protoc_insertion_point(field_get:google.protobuf.Option.name)
3208 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyIn ited()); 3572 return name_.Get();
3209 } 3573 }
3210 void Option::set_name(const ::std::string& value) { 3574 void Option::set_name(const ::std::string& value) {
3211 3575
3212 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 3576 name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
3213 // @@protoc_insertion_point(field_set:google.protobuf.Option.name) 3577 // @@protoc_insertion_point(field_set:google.protobuf.Option.name)
3214 } 3578 }
3215 void Option::set_name(const char* value) { 3579 void Option::set_name(const char* value) {
3216 3580
3217 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 3581 name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std: :string(value),
3582 GetArenaNoVirtual());
3218 // @@protoc_insertion_point(field_set_char:google.protobuf.Option.name) 3583 // @@protoc_insertion_point(field_set_char:google.protobuf.Option.name)
3219 } 3584 }
3220 void Option::set_name(const char* value, size_t size) { 3585 void Option::set_name(const char* value,
3586 size_t size) {
3221 3587
3222 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 3588 name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std: :string(
3223 ::std::string(reinterpret_cast<const char*>(value), size)); 3589 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
3224 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Option.name) 3590 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Option.name)
3225 } 3591 }
3226 ::std::string* Option::mutable_name() { 3592 ::std::string* Option::mutable_name() {
3227 3593
3228 // @@protoc_insertion_point(field_mutable:google.protobuf.Option.name) 3594 // @@protoc_insertion_point(field_mutable:google.protobuf.Option.name)
3229 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 3595 return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInite d(), GetArenaNoVirtual());
3230 } 3596 }
3231 ::std::string* Option::release_name() { 3597 ::std::string* Option::release_name() {
3232 // @@protoc_insertion_point(field_release:google.protobuf.Option.name) 3598 // @@protoc_insertion_point(field_release:google.protobuf.Option.name)
3233 3599
3234 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlrea dyInited()); 3600 return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInite d(), GetArenaNoVirtual());
3235 } 3601 }
3236 void Option::set_allocated_name(::std::string* name) { 3602 ::std::string* Option::unsafe_arena_release_name() {
3603 // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Option. name)
3604 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
3605
3606 return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringA lreadyInited(),
3607 GetArenaNoVirtual());
3608 }
3609 void Option::set_allocated_name(::std::string* name) {
3237 if (name != NULL) { 3610 if (name != NULL) {
3238 3611
3239 } else { 3612 } else {
3240 3613
3241 } 3614 }
3242 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlready Inited(), name); 3615 name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited( ), name,
3616 GetArenaNoVirtual());
3243 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Option.name) 3617 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Option.name)
3244 } 3618 }
3619 void Option::unsafe_arena_set_allocated_name(
3620 ::std::string* name) {
3621 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
3622 if (name != NULL) {
3623
3624 } else {
3625
3626 }
3627 name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlr eadyInited(),
3628 name, GetArenaNoVirtual());
3629 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.O ption.name)
3630 }
3245 3631
3246 // optional .google.protobuf.Any value = 2; 3632 // .google.protobuf.Any value = 2;
3247 bool Option::has_value() const { 3633 bool Option::has_value() const {
3248 return !_is_default_instance_ && value_ != NULL; 3634 return this != internal_default_instance() && value_ != NULL;
3249 } 3635 }
3250 void Option::clear_value() { 3636 void Option::clear_value() {
3251 if (GetArenaNoVirtual() == NULL && value_ != NULL) delete value_; 3637 if (GetArenaNoVirtual() == NULL && value_ != NULL) delete value_;
3252 value_ = NULL; 3638 value_ = NULL;
3253 } 3639 }
3254 const ::google::protobuf::Any& Option::value() const { 3640 const ::google::protobuf::Any& Option::value() const {
3255 // @@protoc_insertion_point(field_get:google.protobuf.Option.value) 3641 // @@protoc_insertion_point(field_get:google.protobuf.Option.value)
3256 return value_ != NULL ? *value_ : *default_instance_->value_; 3642 return value_ != NULL ? *value_
3643 : *::google::protobuf::Any::internal_default_instance() ;
3257 } 3644 }
3258 ::google::protobuf::Any* Option::mutable_value() { 3645 ::google::protobuf::Any* Option::mutable_value() {
3259 3646
3260 if (value_ == NULL) { 3647 if (value_ == NULL) {
3261 value_ = new ::google::protobuf::Any; 3648 _slow_mutable_value();
3262 } 3649 }
3263 // @@protoc_insertion_point(field_mutable:google.protobuf.Option.value) 3650 // @@protoc_insertion_point(field_mutable:google.protobuf.Option.value)
3264 return value_; 3651 return value_;
3265 } 3652 }
3266 ::google::protobuf::Any* Option::release_value() { 3653 ::google::protobuf::Any* Option::release_value() {
3267 // @@protoc_insertion_point(field_release:google.protobuf.Option.value) 3654 // @@protoc_insertion_point(field_release:google.protobuf.Option.value)
3268 3655
3269 ::google::protobuf::Any* temp = value_; 3656 if (GetArenaNoVirtual() != NULL) {
3270 value_ = NULL; 3657 return _slow_release_value();
3271 return temp; 3658 } else {
3659 ::google::protobuf::Any* temp = value_;
3660 value_ = NULL;
3661 return temp;
3662 }
3272 } 3663 }
3273 void Option::set_allocated_value(::google::protobuf::Any* value) { 3664 void Option::set_allocated_value(::google::protobuf::Any* value) {
3274 delete value_; 3665 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
3666 if (message_arena == NULL) {
3667 delete value_;
3668 }
3669 if (value != NULL) {
3670 if (message_arena != NULL) {
3671 message_arena->Own(value);
3672 }
3673 }
3275 value_ = value; 3674 value_ = value;
3276 if (value) { 3675 if (value) {
3277 3676
3278 } else { 3677 } else {
3279 3678
3280 } 3679 }
3281 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Option.value) 3680 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Option.value)
3282 } 3681 }
3283 3682
3284 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 3683 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
3285 3684
3286 // @@protoc_insertion_point(namespace_scope) 3685 // @@protoc_insertion_point(namespace_scope)
3287 3686
3288 } // namespace protobuf 3687 } // namespace protobuf
3289 } // namespace google 3688 } // namespace google
3290 3689
3291 // @@protoc_insertion_point(global_scope) 3690 // @@protoc_insertion_point(global_scope)
OLDNEW
« no previous file with comments | « third_party/protobuf/src/google/protobuf/type.pb.h ('k') | third_party/protobuf/src/google/protobuf/unittest.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698